setenv: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         setenv: Move AC_LIBOBJ invocations to module description.
4         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5         here...
6         * modules/setenv (configure.ac): ... to here.
7
8 2011-05-21  Bruno Haible  <bruno@clisp.org>
9
10         selinux-h: Move AC_LIBOBJ invocations to module description.
11         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12         AC_LIBOBJ invocation from here...
13         * modules/selinux-h (configure.ac): ... to here.
14
15 2011-05-21  Bruno Haible  <bruno@clisp.org>
16
17         select: Respect rules for use of AC_LIBOBJ.
18         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19         here...
20         * modules/select (configure.ac): ... to here.
21
22 2011-05-21  Bruno Haible  <bruno@clisp.org>
23
24         scandir: Move AC_LIBOBJ invocations to module description.
25         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
26         invocations from here...
27         * modules/scandir (configure.ac): ... to here.
28
29 2011-05-21  Bruno Haible  <bruno@clisp.org>
30
31         rpmatch: Move AC_LIBOBJ invocations to module description.
32         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
33         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34         here...
35         * modules/rpmatch (configure.ac): ... to here.
36
37 2011-05-21  Bruno Haible  <bruno@clisp.org>
38
39         rmdir: Respect rules for use of AC_LIBOBJ.
40         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
41         * modules/rmdir (configure.ac): ... to here.
42
43 2011-05-21  Bruno Haible  <bruno@clisp.org>
44
45         renameat: Move AC_LIBOBJ invocations to module description.
46         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
47         here...
48         * modules/renameat (configure.ac): ... to here.
49
50 2011-05-21  Bruno Haible  <bruno@clisp.org>
51
52         rename: Respect rules for use of AC_LIBOBJ.
53         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
54         here...
55         * modules/rename (configure.ac): ... to here.
56
57 2011-05-21  Bruno Haible  <bruno@clisp.org>
58
59         remove: Move AC_LIBOBJ invocations to module description.
60         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
61         here...
62         * modules/remove (configure.ac): ... to here.
63
64 2011-05-21  Bruno Haible  <bruno@clisp.org>
65
66         relocatable-lib: Move AC_LIBOBJ invocations to module description.
67         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
68         macro.
69         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
70         * modules/relocatable-lib (configure.ac): ... to here.
71         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
73
74 2011-05-21  Bruno Haible  <bruno@clisp.org>
75
76         relocatable-prog: Move AC_LIBOBJ invocations to module description.
77         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
78         here...
79         * modules/relocatable-prog (configure.ac): ... to here.
80
81 2011-05-21  Bruno Haible  <bruno@clisp.org>
82
83         regex: Move AC_LIBOBJ invocations to module description.
84         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
85         invocations from here...
86         * modules/regex (configure.ac): ... to here.
87
88 2011-05-21  Bruno Haible  <bruno@clisp.org>
89
90         realloc-*: Move AC_LIBOBJ invocations to module description.
91         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
92         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
93         AC_LIBOBJ invocations from here...
94         * modules/realloc-gnu (configure.ac): ... to here.
95         * modules/realloc-posix (configure.ac): ... and here.
96
97 2011-05-21  Bruno Haible  <bruno@clisp.org>
98
99         readutmp: Move AC_LIBOBJ invocations to module description.
100         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
101         * modules/readutmp (configure.ac): ... to here.
102
103 2011-05-21  Bruno Haible  <bruno@clisp.org>
104
105         readlinkat: Move AC_LIBOBJ invocations to module description.
106         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
107         here...
108         * modules/readlinkat (configure.ac): ... to here.
109
110 2011-05-21  Bruno Haible  <bruno@clisp.org>
111
112         readlink: Move AC_LIBOBJ invocations to module description.
113         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
114         gl_PREREQ_READLINK invocations from here...
115         * modules/readlink (configure.ac): ... to here.
116
117 2011-05-21  Bruno Haible  <bruno@clisp.org>
118
119         readline: Move AC_LIBOBJ invocations to module description.
120         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
121         gl_PREREQ_READLINE invocations from here...
122         * modules/readline (configure.ac): ... to here.
123
124 2011-05-21  Bruno Haible  <bruno@clisp.org>
125
126         read: Move AC_LIBOBJ invocations to module description.
127         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
128         * modules/read (configure.ac): ... to here.
129
130 2011-05-21  Bruno Haible  <bruno@clisp.org>
131
132         rawmemchr: Move AC_LIBOBJ invocations to module description.
133         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
134         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
135         from here...
136         * modules/rawmemchr (configure.ac): ... to here.
137
138 2011-05-21  Bruno Haible  <bruno@clisp.org>
139
140         random_r: Move AC_LIBOBJ invocations to module description.
141         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
142         gl_PREREQ_RANDOM_R invocations from here...
143         * modules/random_r (configure.ac): ... to here.
144
145 2011-05-21  Bruno Haible  <bruno@clisp.org>
146
147         pwrite: Move AC_LIBOBJ invocations to module description.
148         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
149         * modules/pwrite (configure.ac): ... to here.
150
151 2011-05-21  Bruno Haible  <bruno@clisp.org>
152
153         putenv: Move AC_LIBOBJ invocations to module description.
154         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
155         * modules/putenv (configure.ac): ... to here.
156
157 2011-05-21  Bruno Haible  <bruno@clisp.org>
158
159         login_tty: Move AC_LIBOBJ invocations to module description.
160         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
161         * modules/login_tty (configure.ac): ... to here.
162
163 2011-05-21  Bruno Haible  <bruno@clisp.org>
164
165         openpty: Move AC_LIBOBJ invocations to module description.
166         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
167         * modules/openpty (configure.ac): ... to here.
168
169 2011-05-21  Bruno Haible  <bruno@clisp.org>
170
171         forkpty: Move AC_LIBOBJ invocations to module description.
172         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
173         * modules/forkpty (configure.ac): ... to here.
174
175 2011-05-21  Bruno Haible  <bruno@clisp.org>
176
177         ptsname: Move AC_LIBOBJ invocations to module description.
178         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
179         invocations from here...
180         * modules/ptsname (configure.ac): ... to here.
181
182 2011-05-21  Bruno Haible  <bruno@clisp.org>
183
184         pread: Move AC_LIBOBJ invocations to module description.
185         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
186         * modules/pread (configure.ac): ... to here.
187
188 2011-05-21  Bruno Haible  <bruno@clisp.org>
189
190         posix_spawn*: Move AC_LIBOBJ invocations to module description.
191         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
192         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
193         * modules/posix_spawn (configure.ac): ... to here.
194         * modules/posix_spawnp (configure.ac): ... and here.
195
196 2011-05-21  Bruno Haible  <bruno@clisp.org>
197
198         popen: Move AC_LIBOBJ invocations to module description.
199         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
200         invocations from here...
201         * modules/popen (configure.ac): ... to here.
202
203 2011-05-21  Bruno Haible  <bruno@clisp.org>
204
205         poll: Move AC_LIBOBJ invocations to module description.
206         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
207         invocations from here...
208         * modules/poll (configure.ac): ... to here.
209
210 2011-05-21  Bruno Haible  <bruno@clisp.org>
211
212         pipe-posix: Move AC_LIBOBJ invocations to module description.
213         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
214         * modules/pipe-posix (configure.ac): ... to here.
215
216 2011-05-21  Bruno Haible  <bruno@clisp.org>
217
218         openat: Respect rules for use of AC_LIBOBJ.
219         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
220         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
221         * modules/openat (configure.ac): ... to here.
222
223 2011-05-21  Bruno Haible  <bruno@clisp.org>
224
225         obstack-printf*: Move AC_LIBOBJ invocations to module description.
226         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
227         invocation from here...
228         * modules/obstack-printf (configure.ac): ... to here.
229         * modules/obstack-printf-posix (configure.ac): ... and here.
230
231 2011-05-21  Bruno Haible  <bruno@clisp.org>
232
233         nl_langinfo: Move AC_LIBOBJ invocations to module description.
234         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
235         from here...
236         * modules/nl_langinfo (configure.ac): ... to here.
237
238 2011-05-21  Bruno Haible  <bruno@clisp.org>
239
240         nanosleep: Move AC_LIBOBJ invocations to module description.
241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
242         gl_PREREQ_NANOSLEEP invocations from here...
243         * modules/nanosleep (configure.ac): ... to here.
244
245 2011-05-21  Bruno Haible  <bruno@clisp.org>
246
247         mountlist: Move AC_LIBOBJ invocations to module description.
248         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
249         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
250         * modules/mountlist (configure.ac): ... to here.
251
252 2011-05-21  Bruno Haible  <bruno@clisp.org>
253
254         mktime: Respect rules for use of AC_LIBOBJ.
255         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
256         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
257         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
258         (gl_FUNC_MKTIME_INTERNAL): ... and here...
259         * modules/mktime (configure.ac): ... to here.
260         * modules/mktime-internal (configure.ac): ... and here.
261         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
262
263 2011-05-21  Bruno Haible  <bruno@clisp.org>
264
265         mkstemps: Move AC_LIBOBJ invocations to module description.
266         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
267         here...
268         * modules/mkstemps (configure.ac): ... to here.
269
270 2011-05-21  Bruno Haible  <bruno@clisp.org>
271
272         mkstemp: Move AC_LIBOBJ invocations to module description.
273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
274         gl_PREREQ_MKSTEMP invocations from here...
275         * modules/mkstemp (configure.ac): ... to here.
276
277 2011-05-21  Bruno Haible  <bruno@clisp.org>
278
279         mkostemps: Move AC_LIBOBJ invocations to module description.
280         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
281         here...
282         * modules/mkostemps (configure.ac): ... to here.
283
284 2011-05-21  Bruno Haible  <bruno@clisp.org>
285
286         mkostemp: Move AC_LIBOBJ invocations to module description.
287         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
288         gl_PREREQ_MKOSTEMP invocations from here...
289         * modules/mkostemp (configure.ac): ... to here.
290
291 2011-05-21  Bruno Haible  <bruno@clisp.org>
292
293         mknod: Move AC_LIBOBJ invocations to module description.
294         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
295         * modules/mknod (configure.ac): ... to here.
296
297 2011-05-21  Bruno Haible  <bruno@clisp.org>
298
299         mkfifoat: Move AC_LIBOBJ invocations to module description.
300         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
301         here...
302         * modules/mkfifoat (configure.ac): ... to here.
303
304 2011-05-21  Bruno Haible  <bruno@clisp.org>
305
306         mkfifo: Respect rules for use of AC_LIBOBJ.
307         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
308         here...
309         * modules/mkfifo (configure.ac): ... to here.
310
311 2011-05-21  Bruno Haible  <bruno@clisp.org>
312
313         mkdtemp: Move AC_LIBOBJ invocations to module description.
314         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
315         invocations from here...
316         * modules/mkdtemp (configure.ac): ... to here.
317
318 2011-05-21  Bruno Haible  <bruno@clisp.org>
319
320         mkdir: Move AC_LIBOBJ invocations to module description.
321         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
322         * modules/mkdir (configure.ac): ... to here.
323
324 2011-05-21  Bruno Haible  <bruno@clisp.org>
325
326         memset: Move AC_LIBOBJ invocations to module description.
327         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
329         here...
330         * modules/memset (configure.ac): ... to here.
331
332 2011-05-21  Bruno Haible  <bruno@clisp.org>
333
334         memrchr: Move AC_LIBOBJ invocations to module description.
335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
337         here...
338         * modules/memrchr (configure.ac): ... to here.
339
340 2011-05-21  Bruno Haible  <bruno@clisp.org>
341
342         mempcpy: Move AC_LIBOBJ invocations to module description.
343         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
345         here...
346         * modules/mempcpy (configure.ac): ... to here.
347
348 2011-05-21  Bruno Haible  <bruno@clisp.org>
349
350         memmove: Move AC_LIBOBJ invocations to module description.
351         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
353         here...
354         * modules/memmove (configure.ac): ... to here.
355
356 2011-05-21  Bruno Haible  <bruno@clisp.org>
357
358         memmem*: Move AC_LIBOBJ invocations to module description.
359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
360         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
361         here...
362         (gl_FUNC_MEMMEM): ... and here...
363         * modules/memmem-simple (configure.ac): ... to here.
364         * modules/memmem (configure.ac): ... and here.
365
366 2011-05-21  Bruno Haible  <bruno@clisp.org>
367
368         memcpy: Move AC_LIBOBJ invocations to module description.
369         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
371         here...
372         * modules/memcpy (configure.ac): ... to here.
373
374 2011-05-21  Bruno Haible  <bruno@clisp.org>
375
376         memcmp: Simplify autoconf macro.
377         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
378         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
379         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
380
381 2011-05-21  Bruno Haible  <bruno@clisp.org>
382
383         memcmp: Move AC_LIBOBJ invocations to module description.
384         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
385         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
386         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
387         * modules/memcmp (configure.ac): ... to here.
388         (Depends-on): Update conditions.
389
390 2011-05-21  Bruno Haible  <bruno@clisp.org>
391
392         memchr: Respect rules for use of AC_LIBOBJ.
393         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
394         invocations from here...
395         * modules/memchr (configure.ac): ... to here.
396
397 2011-05-21  Bruno Haible  <bruno@clisp.org>
398
399         mbtowc: Move AC_LIBOBJ invocations to module description.
400         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
401         invocations from here...
402         * modules/mbtowc (configure.ac): ... to here.
403
404 2011-05-21  Bruno Haible  <bruno@clisp.org>
405
406         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
407         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
408         gl_PREREQ_MBSRTOWCS invocations from here...
409         * modules/mbsrtowcs (configure.ac): ... to here.
410
411 2011-05-21  Bruno Haible  <bruno@clisp.org>
412
413         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
414         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
415         gl_PREREQ_MBSNRTOWCS invocations from here...
416         * modules/mbsnrtowcs (configure.ac): ... to here.
417
418 2011-05-21  Bruno Haible  <bruno@clisp.org>
419
420         mbsinit: Move AC_LIBOBJ invocations to module description.
421         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
422         invocations from here...
423         * modules/mbsinit (configure.ac): ... to here.
424
425 2011-05-21  Bruno Haible  <bruno@clisp.org>
426
427         mbrlen: Move AC_LIBOBJ invocations to module description.
428         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
429         invocations from here...
430         * modules/mbrlen (configure.ac): ... to here.
431
432 2011-05-21  Bruno Haible  <bruno@clisp.org>
433
434         mbrtowc: Respect rules for use of AC_LIBOBJ.
435         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
436         invocations from here...
437         * modules/mbrtowc (configure.ac): ... to here.
438
439 2011-05-21  Bruno Haible  <bruno@clisp.org>
440
441         malloc-*: Move AC_LIBOBJ invocations to module description.
442         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
443         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
444         AC_LIBOBJ invocations from here...
445         * modules/malloc-gnu (configure.ac): ... to here.
446         * modules/malloc-posix (configure.ac): ... and here.
447
448 2011-05-21  Bruno Haible  <bruno@clisp.org>
449
450         lstat, openat: Respect rules for use of AC_LIBOBJ.
451         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
452         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
453         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
454         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
455         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
456         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
457         here.
458         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
459
460 2011-05-21  Bruno Haible  <bruno@clisp.org>
461
462         lseek: Move AC_LIBOBJ invocations to module description.
463         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
464         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
465         * modules/lseek (configure.ac): ... to here.
466
467 2011-05-21  Bruno Haible  <bruno@clisp.org>
468
469         linkat: Move AC_LIBOBJ invocations to module description.
470         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
471         here...
472         * modules/linkat (configure.ac): ... to here.
473
474 2011-05-21  Bruno Haible  <bruno@clisp.org>
475
476         link: Respect rules for use of AC_LIBOBJ.
477         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
478         * modules/link (configure.ac): ... to here.
479
480 2011-05-21  Bruno Haible  <bruno@clisp.org>
481
482         lchown: Move AC_LIBOBJ invocations to module description.
483         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
484         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
485         * modules/lchown (configure.ac): ... to here.
486
487 2011-05-21  Bruno Haible  <bruno@clisp.org>
488
489         iswctype: Move AC_LIBOBJ invocations to module description.
490         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
491         here...
492         * modules/iswctype (configure.ac): ... to here.
493
494 2011-05-21  Bruno Haible  <bruno@clisp.org>
495
496         iswblank: Move AC_LIBOBJ invocations to module description.
497         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
498         here...
499         * modules/iswblank (configure.ac): ... to here.
500
501 2011-05-21  Bruno Haible  <bruno@clisp.org>
502
503         atanl: Move AC_LIBOBJ invocations to module description.
504         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
505         * modules/atanl (configure.ac): ... to here.
506
507 2011-05-21  Bruno Haible  <bruno@clisp.org>
508
509         acosl: Move AC_LIBOBJ invocations to module description.
510         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
511         * modules/acosl (configure.ac): ... to here.
512
513 2011-05-21  Bruno Haible  <bruno@clisp.org>
514
515         asinl: Respect rules for use of AC_LIBOBJ.
516         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
517         * modules/asinl (configure.ac): ... to here.
518
519 2011-05-21  Bruno Haible  <bruno@clisp.org>
520
521         tanl: Move AC_LIBOBJ invocations to module description.
522         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
523         * modules/tanl (configure.ac): ... to here.
524
525 2011-05-21  Bruno Haible  <bruno@clisp.org>
526
527         cosl: Move AC_LIBOBJ invocations to module description.
528         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
529         * modules/cosl (configure.ac): ... to here.
530
531 2011-05-21  Bruno Haible  <bruno@clisp.org>
532
533         sinl: Move AC_LIBOBJ invocations to module description.
534         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
535         * modules/sinl (configure.ac): ... to here.
536
537 2011-05-21  Bruno Haible  <bruno@clisp.org>
538
539         logl: Move AC_LIBOBJ invocations to module description.
540         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
541         * modules/logl (configure.ac): ... to here.
542
543 2011-05-21  Bruno Haible  <bruno@clisp.org>
544
545         expl: Move AC_LIBOBJ invocations to module description.
546         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
547         * modules/expl (configure.ac): ... to here.
548
549 2011-05-21  Bruno Haible  <bruno@clisp.org>
550
551         roundl: Move AC_LIBOBJ invocations to module description.
552         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
553         * modules/roundl (configure.ac): ... to here.
554
555 2011-05-21  Bruno Haible  <bruno@clisp.org>
556
557         round: Move AC_LIBOBJ invocations to module description.
558         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
559         * modules/round (configure.ac): ... to here.
560
561 2011-05-21  Bruno Haible  <bruno@clisp.org>
562
563         roundf: Move AC_LIBOBJ invocations to module description.
564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
565         * modules/roundf (configure.ac): ... to here.
566
567 2011-05-21  Bruno Haible  <bruno@clisp.org>
568
569         truncl: Move AC_LIBOBJ invocations to module description.
570         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
571         * modules/truncl (configure.ac): ... to here.
572
573 2011-05-21  Bruno Haible  <bruno@clisp.org>
574
575         trunc: Move AC_LIBOBJ invocations to module description.
576         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
577         * modules/trunc (configure.ac): ... to here.
578
579 2011-05-21  Bruno Haible  <bruno@clisp.org>
580
581         truncf: Move AC_LIBOBJ invocations to module description.
582         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
583         * modules/truncf (configure.ac): ... to here.
584
585 2011-05-21  Bruno Haible  <bruno@clisp.org>
586
587         ceill: Move AC_LIBOBJ invocations to module description.
588         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
589         * modules/ceill (configure.ac): ... to here.
590
591 2011-05-21  Bruno Haible  <bruno@clisp.org>
592
593         ceil: Move AC_LIBOBJ invocations to module description.
594         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
595         * modules/ceil (configure.ac): ... to here.
596
597 2011-05-21  Bruno Haible  <bruno@clisp.org>
598
599         ceilf: Move AC_LIBOBJ invocations to module description.
600         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
601         * modules/ceilf (configure.ac): ... to here.
602
603 2011-05-21  Bruno Haible  <bruno@clisp.org>
604
605         floorl: Respect rules for use of AC_LIBOBJ.
606         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
607         * modules/floorl (configure.ac): ... to here.
608
609 2011-05-21  Bruno Haible  <bruno@clisp.org>
610
611         floor: Respect rules for use of AC_LIBOBJ.
612         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
613         * modules/floor (configure.ac): ... to here.
614
615 2011-05-21  Bruno Haible  <bruno@clisp.org>
616
617         floorf: Move AC_LIBOBJ invocations to module description.
618         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
619         * modules/floorf (configure.ac): ... to here.
620
621 2011-05-20  Bruno Haible  <bruno@clisp.org>
622
623         sqrtl: Respect rules for use of AC_LIBOBJ.
624         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
625         * modules/sqrtl (configure.ac): ... to here.
626
627 2011-05-20  Bruno Haible  <bruno@clisp.org>
628
629         ldexpl: Respect rules for use of AC_LIBOBJ.
630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
631         * modules/ldexpl (configure.ac): ... to here.
632
633 2011-05-20  Bruno Haible  <bruno@clisp.org>
634
635         frexpl*: Respect rules for use of AC_LIBOBJ.
636         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
637         invocation from here...
638         * modules/frexpl (configure.ac): ... to here.
639         * modules/frexpl-nolibm (configure.ac): ... and here.
640
641 2011-05-20  Bruno Haible  <bruno@clisp.org>
642
643         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
644         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
645         invocation from here...
646         * modules/frexp (configure.ac): ... to here.
647         * modules/frexp-nolibm (configure.ac): ... and here.
648
649 2011-05-20  Bruno Haible  <bruno@clisp.org>
650
651         isnan: Respect rules for use of AC_LIBOBJ.
652         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
653         invocations here.
654         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
655         REPLACE_ISNAN.
656         * modules/isnand (configure.ac): Likewise.
657         * modules/isnanl (configure.ac): Likewise.
658
659 2011-05-20  Bruno Haible  <bruno@clisp.org>
660
661         isnanl*: Respect rules for use of AC_LIBOBJ.
662         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
663         invocation from here...
664         * modules/isnanl (configure.ac): ... to here.
665         * modules/isnanl-nolibm (configure.ac): ... and here.
666
667 2011-05-20  Bruno Haible  <bruno@clisp.org>
668
669         isnand*: Move AC_LIBOBJ invocations to module description.
670         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
671         invocation from here...
672         * modules/isnand (configure.ac): ... to here.
673         * modules/isnand-nolibm (configure.ac): ... and here.
674
675 2011-05-20  Bruno Haible  <bruno@clisp.org>
676
677         isnanf*: Move AC_LIBOBJ invocations to module description.
678         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
679         invocation from here...
680         * modules/isnanf (configure.ac): ... to here.
681         * modules/isnanf-nolibm (configure.ac): ... and here.
682
683 2011-05-20  Bruno Haible  <bruno@clisp.org>
684
685         isnan*: Separate the AC_LIBOBJ invocations.
686         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
687         AC_LIBOBJ invocation.
688         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
689         here.
690         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
691         AC_LIBOBJ invocation.
692         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
693         here.
694         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
695         AC_LIBOBJ invocation.
696         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
697         here.
698         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
699
700 2011-05-08  Bruno Haible  <bruno@clisp.org>
701
702         isinf: Move AC_LIBOBJ invocations to module description.
703         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
704         * modules/isinf (configure.ac): ... to here.
705
706 2011-05-08  Bruno Haible  <bruno@clisp.org>
707
708         isfinite: Move AC_LIBOBJ invocations to module description.
709         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
710         * modules/isfinite (configure.ac): ... to here.
711
712 2011-05-08  Bruno Haible  <bruno@clisp.org>
713
714         isblank: Move AC_LIBOBJ invocations to module description.
715         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
716         here...
717         * modules/isblank (configure.ac): ... to here.
718
719 2011-05-08  Bruno Haible  <bruno@clisp.org>
720
721         isapipe: Move AC_LIBOBJ invocations to module description.
722         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
723         gl_PREREQ_ISAPIPE invocations from here...
724         * modules/isapipe (configure.ac): ... to here.
725         (Depends-on): Update condition.
726
727 2011-05-08  Bruno Haible  <bruno@clisp.org>
728
729         ioctl: Move AC_LIBOBJ invocations to module description.
730         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
731         invocations from here...
732         * modules/ioctl (configure.ac): ... to here.
733         (Depends-on): Update condition.
734
735 2011-05-08  Bruno Haible  <bruno@clisp.org>
736
737         imaxdiv: Move AC_LIBOBJ invocations to module description.
738         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
739         invocations from here...
740         * modules/imaxdiv (configure.ac): ... to here.
741
742 2011-05-08  Bruno Haible  <bruno@clisp.org>
743
744         imaxabs: Move AC_LIBOBJ invocations to module description.
745         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
746         invocations from here...
747         * modules/imaxabs (configure.ac): ... to here.
748
749 2011-05-08  Bruno Haible  <bruno@clisp.org>
750
751         getaddrinfo: Move AC_LIBOBJ invocations to module description.
752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
753         AC_LIBOBJ invocations from here...
754         * modules/getaddrinfo (configure.ac): ... to here.
755         (Depends-on): Add conditions.
756
757 2011-05-08  Bruno Haible  <bruno@clisp.org>
758
759         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
760         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
761         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
762         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
763         (gl_PREREQ_INET_PTON): ... from here.
764         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
765         gl_PREREQ_INET_PTON here.
766         (Depends-on): Update condition.
767
768 2011-05-08  Bruno Haible  <bruno@clisp.org>
769
770         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
771         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
772         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
773         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
774         (gl_PREREQ_INET_NTOP): ... from here.
775         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
776         gl_PREREQ_INET_NTOP here.
777         (Depends-on): Update condition.
778
779 2011-05-08  Bruno Haible  <bruno@clisp.org>
780
781         iconv_open: Move AC_LIBOBJ invocations to module description.
782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
783         AC_LIBOBJ invocations from here...
784         * modules/iconv_open (configure.ac): ... to here.
785
786 2011-05-08  Bruno Haible  <bruno@clisp.org>
787
788         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
789         If module 'iconv_open' is among the main modules and module
790         'iconv_open-utf' is among the tests dependencies, then
791         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
792         return the special iconv_t values. Therefore iconv() and iconv_close()
793         must support these special iconv_t values, already in lib, not only in
794         tests.
795         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
797         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
798         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
799         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
800         (Depends-on): Add the dependencies of iconv_open-utf.
801         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
802         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
803         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
804
805 2011-05-08  Bruno Haible  <bruno@clisp.org>
806
807         group-member: Move AC_LIBOBJ invocations to module description.
808         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
809         gl_PREREQ_GROUP_MEMBER invocations from here...
810         * modules/group-member (configure.ac): ... to here.
811
812 2011-05-08  Bruno Haible  <bruno@clisp.org>
813
814         grantpt: Move AC_LIBOBJ invocations to module description.
815         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
816         invocations from here...
817         * modules/grantpt (configure.ac): ... to here.
818
819 2011-05-08  Bruno Haible  <bruno@clisp.org>
820
821         glob: Move AC_LIBOBJ invocations to module description.
822         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
823         from here...
824         * modules/glob (configure.ac): ... to here.
825
826 2011-05-08  Bruno Haible  <bruno@clisp.org>
827
828         getusershell: Move AC_LIBOBJ invocations to module description.
829         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
830         Move AC_LIBOBJ invocation from here...
831         * modules/getusershell (configure.ac): ... to here.
832         (Depends-on): Update condition.
833
834 2011-05-08  Bruno Haible  <bruno@clisp.org>
835
836         gettimeofday: Move AC_LIBOBJ invocations to module description.
837         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
838         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
839         gl_PREREQ_GETTIMEOFDAY invocations from here...
840         * modules/gettimeofday (configure.ac): ... to here.
841
842 2011-05-08  Bruno Haible  <bruno@clisp.org>
843
844         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
845         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
846         just gl_FUNC_TZSET.
847         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
848         (gl_FUNC_TZSET_CLOBBER): Remove actions.
849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
850         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
851
852 2011-05-08  Bruno Haible  <bruno@clisp.org>
853
854         getsubopt: Move AC_LIBOBJ invocations to module description.
855         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
856         gl_PREREQ_GETSUBOPT invocations from here...
857         * modules/getsubopt (configure.ac): ... to here.
858
859 2011-05-08  Bruno Haible  <bruno@clisp.org>
860
861         getpass-gnu: Move AC_LIBOBJ invocations to module description.
862         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
863         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
864         * modules/getpass-gnu (configure.ac): ... to here.
865
866 2011-05-08  Bruno Haible  <bruno@clisp.org>
867
868         getpass: Move AC_LIBOBJ invocations to module description.
869         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
870         gl_PREREQ_GETPASS invocations from here...
871         * modules/getpass (configure.ac): ... to here.
872
873 2011-05-08  Bruno Haible  <bruno@clisp.org>
874
875         getpagesize: Move AC_LIBOBJ invocations to module description.
876         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
877         from here...
878         * modules/getpagesize (configure.ac): ... to here.
879
880 2011-05-08  Bruno Haible  <bruno@clisp.org>
881
882         getopt: Move AC_LIBOBJ invocations to module description.
883         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
884         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
885         invocations from here...
886         * modules/getopt-gnu (configure.ac): ... to here.
887         * modules/getopt-posix (configure.ac): ... and here.
888         (Depends-on): Update condition.
889
890 2011-05-08  Bruno Haible  <bruno@clisp.org>
891
892         getopt, argp: Respect rules for use of AC_LIBOBJ.
893         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
894         (gl_REPLACE_GETOPT_ALWAYS): New macro.
895         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
896         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
897
898 2011-05-08  Bruno Haible  <bruno@clisp.org>
899
900         getlogin_r: Move AC_LIBOBJ invocations to module description.
901         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
902         gl_PREREQ_GETLOGIN_R invocations from here...
903         * modules/getlogin_r (configure.ac): ... to here.
904
905 2011-05-08  Bruno Haible  <bruno@clisp.org>
906
907         getlogin: Move AC_LIBOBJ invocations to module description.
908         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
909         here...
910         * modules/getlogin (configure.ac): ... to here.
911
912 2011-05-08  Bruno Haible  <bruno@clisp.org>
913
914         getloadavg: Move AC_LIBOBJ invocations to module description.
915         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
916         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
917         * modules/getloadavg (configure.ac): ... to here.
918
919 2011-05-08  Bruno Haible  <bruno@clisp.org>
920
921         gethrxtime: Move AC_LIBOBJ invocations to module description.
922         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
923         LIB_GETHRXTIME from here...
924         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
925         invocations from here...
926         * modules/gethrxtime (configure.ac): ... to here.
927
928 2011-05-08  Bruno Haible  <bruno@clisp.org>
929
930         gethostname: Move AC_LIBOBJ invocations to module description.
931         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
932         gl_PREREQ_GETHOSTNAME invocations from here...
933         * modules/gethostname (configure.ac): ... to here.
934
935 2011-05-08  Bruno Haible  <bruno@clisp.org>
936
937         getgroups: Move AC_LIBOBJ invocations to module description.
938         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
939         here...
940         * modules/getgroups (configure.ac): ... to here.
941
942 2011-05-08  Bruno Haible  <bruno@clisp.org>
943
944         getdtablesize: Move AC_LIBOBJ invocations to module description.
945         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
946         invocation from here...
947         * modules/getdtablesize (configure.ac): ... to here.
948
949 2011-05-08  Bruno Haible  <bruno@clisp.org>
950
951         getdomainname: Move AC_LIBOBJ invocations to module description.
952         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
953         gl_PREREQ_GETDOMAINNAME invocations from here...
954         * modules/getdomainname (configure.ac): ... to here.
955
956 2011-05-08  Bruno Haible  <bruno@clisp.org>
957
958         getline: Move AC_LIBOBJ invocations to module description.
959         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
960         invocations from here...
961         * modules/getline (configure.ac): ... to here.
962
963 2011-05-08  Bruno Haible  <bruno@clisp.org>
964
965         getline: Simplify.
966         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
967         It's already handled through the module dependency.
968
969 2011-05-08  Bruno Haible  <bruno@clisp.org>
970
971         getdelim: Move AC_LIBOBJ invocations to module description.
972         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
973         and gl_PREREQ_GETDELIM invocations from here...
974         * modules/getdelim (configure.ac): ... to here.
975         (Depends-on): Fix condition.
976
977 2011-05-08  Bruno Haible  <bruno@clisp.org>
978
979         getcwd: Move AC_LIBOBJ invocations to module description.
980         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
981         invocations from here...
982         * modules/getcwd (configure.ac): ... to here.
983
984 2011-05-08  Bruno Haible  <bruno@clisp.org>
985
986         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
987         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
988         here...
989         * modules/getcwd-lgpl (configure.ac): ... to here.
990
991 2011-05-07  Bruno Haible  <bruno@clisp.org>
992
993         crypto/gc: Move AC_LIBOBJ invocations to module description.
994         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
995         * modules/crypto/gc (configure.ac): ... to here.
996
997 2011-05-07  Bruno Haible  <bruno@clisp.org>
998
999         fwriting: Move AC_LIBOBJ invocations to module description.
1000         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1001         here...
1002         * modules/fwriting (configure.ac): ... to here.
1003
1004 2011-05-07  Bruno Haible  <bruno@clisp.org>
1005
1006         fwritable: Move AC_LIBOBJ invocations to module description.
1007         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1008         here...
1009         * modules/fwritable (configure.ac): ... to here.
1010
1011 2011-05-07  Bruno Haible  <bruno@clisp.org>
1012
1013         futimens: Move AC_LIBOBJ invocations to module description.
1014         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1015         here...
1016         * modules/futimens (configure.ac): ... to here.
1017
1018 2011-05-07  Bruno Haible  <bruno@clisp.org>
1019
1020         ftruncate: Move AC_LIBOBJ invocations to module description.
1021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1022         gl_PREREQ_FTRUNCATE invocations from here...
1023         * modules/ftruncate (configure.ac): ... to here.
1024
1025 2011-05-07  Bruno Haible  <bruno@clisp.org>
1026
1027         fsync: Move AC_LIBOBJ invocations to module description.
1028         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1029         invocations from here...
1030         * modules/fsync (configure.ac): ... to here.
1031
1032 2011-05-07  Bruno Haible  <bruno@clisp.org>
1033
1034         fsusage: Move AC_LIBOBJ invocations to module description.
1035         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1036         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1037         * modules/fsusage (configure.ac): ... to here.
1038
1039 2011-05-07  Bruno Haible  <bruno@clisp.org>
1040
1041         freopen: Move AC_LIBOBJ invocations to module description.
1042         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1043         invocations from here...
1044         * modules/freopen (configure.ac): ... to here.
1045
1046 2011-05-07  Bruno Haible  <bruno@clisp.org>
1047
1048         free: Move AC_LIBOBJ invocations to module description.
1049         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1050         invocations from here...
1051         * modules/free (configure.ac): ... to here.
1052
1053 2011-05-07  Bruno Haible  <bruno@clisp.org>
1054
1055         freadable: Move AC_LIBOBJ invocations to module description.
1056         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1057         here...
1058         * modules/freadable (configure.ac): ... to here.
1059
1060 2011-05-07  Bruno Haible  <bruno@clisp.org>
1061
1062         fpurge: Move AC_LIBOBJ invocations to module description.
1063         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1064         invocations from here...
1065         * modules/fpurge (configure.ac): ... to here.
1066
1067 2011-05-07  Bruno Haible  <bruno@clisp.org>
1068
1069         fpending: Move AC_LIBOBJ invocations to module description.
1070         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1071         gl_FUNC_FPENDING.
1072         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1073         invocations from here...
1074         * modules/fpending (configure.ac): ... to here.
1075
1076 2011-05-07  Bruno Haible  <bruno@clisp.org>
1077
1078         fopen: Move AC_LIBOBJ invocations to module description.
1079         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1080         invocations from here...
1081         * modules/fopen (configure.ac): ... to here.
1082
1083 2011-05-07  Bruno Haible  <bruno@clisp.org>
1084
1085         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1086         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1087         gl_FUNC_FNMATCH_POSIX.
1088         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1089         invocations from here...
1090         * modules/fnmatch (configure.ac): ... to here.
1091         * modules/fnmatch-gnu (configure.ac): ... and here.
1092
1093 2011-05-07  Bruno Haible  <bruno@clisp.org>
1094
1095         flock: Move AC_LIBOBJ invocations to module description.
1096         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1097         invocations from here...
1098         * modules/flock (configure.ac): ... to here.
1099
1100 2011-05-07  Bruno Haible  <bruno@clisp.org>
1101
1102         fileblocks: Move AC_LIBOBJ invocations to module description.
1103         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1104         gl_PREREQ_FILEBLOCKS invocations from here...
1105         * modules/fileblocks (configure.ac): ... to here.
1106
1107 2011-05-06  Bruno Haible  <bruno@clisp.org>
1108
1109         fflush: Move AC_LIBOBJ invocations to module description.
1110         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1111         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1112         invocations from here...
1113         * modules/fflush (configure.ac): ... to here.
1114
1115 2011-05-06  Bruno Haible  <bruno@clisp.org>
1116
1117         fdopendir: Move AC_LIBOBJ invocations to module description.
1118         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1119         here...
1120         * modules/fdopendir (configure.ac): ... to here.
1121         (Depends-on): Improve conditions.
1122
1123 2011-05-06  Bruno Haible  <bruno@clisp.org>
1124
1125         _Exit: Move AC_LIBOBJ invocations to module description.
1126         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1127         invocations from here...
1128         * modules/_Exit (configure.ac): ... to here.
1129
1130 2011-05-21  Bruno Haible  <bruno@clisp.org>
1131
1132         euidaccess: Respect rules for use of AC_LIBOBJ.
1133         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1134         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1135         from here...
1136         * modules/euidaccess (configure.ac): ... to here.
1137
1138 2011-05-06  Bruno Haible  <bruno@clisp.org>
1139
1140         error: Move AC_LIBOBJ invocations to module description.
1141         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1142         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1143         invocations from here...
1144         * modules/error (configure.ac): ... to here.
1145
1146 2011-05-06  Bruno Haible  <bruno@clisp.org>
1147
1148         duplocale: Move AC_LIBOBJ invocations to module description.
1149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1150         gl_PREREQ_DUPLOCALE invocations from here...
1151         * modules/duplocale (configure.ac): ... to here.
1152
1153 2011-05-05  Bruno Haible  <bruno@clisp.org>
1154
1155         dirfd: Move AC_LIBOBJ invocations to module description.
1156         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1157         gl_FUNC_DIRFD.
1158         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1159         here...
1160         * modules/dirfd (configure.ac): ... to here.
1161         (Depends-on): Fix condition.
1162
1163 2011-05-05  Bruno Haible  <bruno@clisp.org>
1164
1165         chown: Respect rules for use of AC_LIBOBJ.
1166         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1167         * modules/chown (configure.ac): ... to here.
1168
1169 2011-05-05  Bruno Haible  <bruno@clisp.org>
1170
1171         chdir-long: Move AC_LIBOBJ invocations to module description.
1172         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1173         gl_PREREQ_CHDIR_LONG invocations from here...
1174         * modules/chdir-long (configure.ac): ... to here.
1175
1176 2011-05-05  Bruno Haible  <bruno@clisp.org>
1177
1178         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1179         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1180         from here...
1181         * modules/canonicalize-lgpl (configure.ac): ... to here.
1182
1183 2011-05-05  Bruno Haible  <bruno@clisp.org>
1184
1185         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1186         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1187         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1188         REPLACE_CALLOC.
1189         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1190         * modules/calloc-gnu (configure.ac): Likewise.
1191
1192 2011-05-05  Bruno Haible  <bruno@clisp.org>
1193
1194         btowc: Move AC_LIBOBJ invocations to module description.
1195         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1196         invocations from here...
1197         * modules/btowc (configure.ac): ... to here.
1198
1199 2011-05-21  Bruno Haible  <bruno@clisp.org>
1200
1201         atexit: Move AC_LIBOBJ invocations to module description.
1202         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1203         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1204         here...
1205         * modules/atexit (configure.ac): ... to here.
1206
1207 2011-05-05  Bruno Haible  <bruno@clisp.org>
1208
1209         atoll: Move AC_LIBOBJ invocations to module description.
1210         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1211         invocations from here...
1212         * modules/atoll (configure.ac): ... to here.
1213
1214 2011-05-05  Bruno Haible  <bruno@clisp.org>
1215
1216         argz: Move AC_LIBOBJ invocations to module description.
1217         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1218         * modules/argz (configure.ac): ... to here.
1219
1220 2011-05-05  Bruno Haible  <bruno@clisp.org>
1221
1222         alphasort: Move AC_LIBOBJ invocations to module description.
1223         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1224         gl_PREREQ_ALPHASORT invocations from here...
1225         * modules/alphasort (configure.ac): ... to here.
1226
1227 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1228
1229         verify: new macro verify_expr; verify_true deprecated
1230         * NEWS: Mention this.
1231         * doc/verify.texi (Compile-time Assertions): Document this.
1232         * lib/verify.h (verify_true): Deprecate.
1233         (verify_expr): New macro.
1234         * tests/test-verify.c (function): Test verify_expr.
1235
1236 2011-06-14  Jim Meyering  <meyering@redhat.com>
1237
1238         init.sh: give more portable redirection-related advice in a comment
1239         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1240         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1241         for lots of discussion.  Stefano Lattarini suggested the solution
1242         of putting "9>&2" after the command.  Reported by Bruno Haible.
1243
1244 2011-06-13  Bruno Haible  <bruno@clisp.org>
1245
1246         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1248         'none'.
1249
1250 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1251
1252         ftoastr: use strtof only if HAVE_STRTOF
1253         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1255         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1256         * modules/ftoastr (configure.ac): Check for strtof.
1257
1258 2011-06-13  Bruno Haible  <bruno@clisp.org>
1259
1260         gnulib-tool: Addendum to 2011-06-08 commit.
1261         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1262         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1263
1264 2011-06-13  Bruno Haible  <bruno@clisp.org>
1265
1266         fseeko: Provide a non-inline replacement of fseek().
1267         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1268         * modules/fseeko (Depends-on): Add fseek.
1269         * modules/fseek (License): Change to LGPLv2+.
1270
1271 2011-06-13  Bruno Haible  <bruno@clisp.org>
1272
1273         ftello: Provide a non-inline replacement of ftell().
1274         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1275         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1276         not have ftello() (such as on mingw).
1277         * modules/ftello (Depends-on): Add ftell.
1278         * modules/ftell (License): Change to LGPLv2+.
1279
1280 2011-05-07  Bruno Haible  <bruno@clisp.org>
1281
1282         ftell: Move AC_LIBOBJ invocations to module description.
1283         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1284         * modules/ftell (configure.ac): ... to here.
1285
1286 2011-05-07  Bruno Haible  <bruno@clisp.org>
1287
1288         ftello: Respect rules for use of AC_LIBOBJ.
1289         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1290         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1291         here...
1292         * modules/ftello (configure.ac): ... to here.
1293
1294 2011-05-07  Bruno Haible  <bruno@clisp.org>
1295
1296         fseeko: Simplify.
1297         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1298         (gl_FUNC_FSEEKO): Inline it here.
1299
1300 2011-05-07  Bruno Haible  <bruno@clisp.org>
1301
1302         fseek: Move AC_LIBOBJ invocations to module description.
1303         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1304         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1305         * modules/fseek (configure.ac): ... to here.
1306
1307 2011-05-07  Bruno Haible  <bruno@clisp.org>
1308
1309         fseek: Respect rules for use of AC_LIBOBJ.
1310         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1311         here...
1312         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1313
1314 2011-05-07  Bruno Haible  <bruno@clisp.org>
1315
1316         fseeko: Respect rules for use of AC_LIBOBJ.
1317         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1318         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1319         here...
1320         * modules/fseeko (configure.ac): ... to here.
1321
1322 2011-06-13  Bruno Haible  <bruno@clisp.org>
1323
1324         gnulib-tool: Allow comments in the 'Depends-on' section.
1325         * doc/gnulib.texi (Module description): Mention comment syntax in the
1326         Depends-on section.
1327         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1328
1329 2011-06-13  Bruno Haible  <bruno@clisp.org>
1330
1331         file-set.h: guard __attibute__ use, now that it's not always defined
1332         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1333         versions that support it.  This fixes a coreutils build failure with
1334         the vendor cc on HP-UX 11.31.
1335
1336 2011-06-12  Bruno Haible  <bruno@clisp.org>
1337
1338         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1339         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1340         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1341         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1342         (acl, aclsort): New declarations.
1343         (aclv_nontrivial): New declaration.
1344         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1345         (file_has_acl): Read also the second kind of HP-UX ACLs.
1346         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1347         kind of HP-UX ACLs if the first kind fails.
1348         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1349         second kind of HP-UX ACLs.
1350         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1351         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1352         agree.
1353         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1354         hpuxjfs.
1355         Handle hpuxjfs.
1356         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1357         hpuxjfs.
1358         Handle hpuxjfs.
1359         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1360         (func_test_same_acls): Use both lsacl and getacl.
1361         Handle hpuxjfs.
1362         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1363         (func_test_same_acls): Use both lsacl and getacl.
1364         Handle hpuxjfs.
1365
1366 2011-06-12  Bruno Haible  <bruno@clisp.org>
1367
1368         acl: Complete the 2010-08-10 fix.
1369         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1370         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1371         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1372         explicitly.
1373         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1374         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1375
1376 2011-06-12  Bruno Haible  <bruno@clisp.org>
1377
1378         spawn-pipe tests: Comments.
1379         * tests/test-spawn-pipe-child.c (main): Update comment.
1380         Reported by James Youngman <jay@gnu.org>.
1381
1382 2011-06-11  James Youngman  <jay@gnu.org>
1383
1384         New module 'stat-size'.
1385         * modules/stat-size: New module.  Provides macros for accessing
1386         file size information in instances of struct stat.  Depends on the
1387         fileblocks module because it calls st_blocks.
1388         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1389         * doc/gnulib.texi: Include stat-size.texi.
1390         * doc/stat-size.texi: Documentation for this module.
1391         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1392         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1393         AC_STRUCT_ST_BLOCKS.
1394
1395 2011-06-09  Bruno Haible  <bruno@clisp.org>
1396
1397         thread: Support pthreads-win32.
1398         * lib/glthread/thread.h (gl_thread_self): Define differently on
1399         pthreads-win32.
1400         (gl_null_thread): New declaration.
1401         (gl_thread_self_pointer): New macro.
1402         * lib/glthread/thread.c (gl_null_thread): New constant.
1403         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1404         gl_thread_self.
1405         * tests/test-tls.c: Likewise.
1406         Suggested by Paul Eggert. Reported by Eric Blake.
1407
1408 2011-06-09  Bruno Haible  <bruno@clisp.org>
1409
1410         thread: Fix confusion between NULL and 0.
1411         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1412         Reported by Paul Eggert.
1413
1414 2011-06-09  Bruno Haible  <bruno@clisp.org>
1415
1416         spawn-pipe tests: Avoid test failure on HP-UX 11.
1417         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1418         is closed.
1419
1420 2011-06-09  Bruno Haible  <bruno@clisp.org>
1421
1422         acl tests: Fix compilation error on HP-UX 11.
1423         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1424
1425 2011-06-09  Bruno Haible  <bruno@clisp.org>
1426
1427         rmdir: Avoid test failure on HP-UX 10.20.
1428         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1429         EEXIST.
1430
1431 2011-06-08  Eric Blake  <eblake@redhat.com>
1432
1433         perror: fix test on mingw
1434         * modules/perror-tests (Depends-on): Add dup2.
1435
1436         strerror_r-posix: fix on MacOS
1437         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1438         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1439         logic bug.
1440         * lib/strerror_r.c (strerror_r): Fix the bug.
1441         * lib/strerror.c (strerror): Likewise.
1442         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1443         problem.
1444         * doc/posix-functions/strerror.texi (strerror): Likewise.
1445         * doc/posix-functions/perror.texi (perror): Likewise.
1446         * tests/test-strerror.c (main): Enhance test.
1447         * tests/test-strerror_r.c (main): Likewise.
1448
1449 2011-06-08  Bruno Haible  <bruno@clisp.org>
1450
1451         gnulib-tool: Better isolation between different gnulib-tool invocations.
1452         * gnulib-tool: New option --witness-c-macro.
1453         (witness_c_macro): New variable.
1454         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1455         AM_CPPFLAGS define it as a C macro.
1456         (func_emit_tests_Makefile_am): Likewise.
1457         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1458         read it from there.
1459         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1460         m4_define, not AC_DEFUN.
1461         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1462         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1463         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1464         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1465         s|...|...|, to substitute the values of the GNULIB_* module indicator
1466         variables.
1467         * modules/dirent (Makefile.am): Likewise.
1468         * modules/fcntl-h (Makefile.am): Likewise.
1469         * modules/iconv-h (Makefile.am): Likewise.
1470         * modules/langinfo (Makefile.am): Likewise.
1471         * modules/locale (Makefile.am): Likewise.
1472         * modules/math (Makefile.am): Likewise.
1473         * modules/netdb (Makefile.am): Likewise.
1474         * modules/poll-h (Makefile.am): Likewise.
1475         * modules/pty (Makefile.am): Likewise.
1476         * modules/search (Makefile.am): Likewise.
1477         * modules/signal (Makefile.am): Likewise.
1478         * modules/spawn (Makefile.am): Likewise.
1479         * modules/stdio (Makefile.am): Likewise.
1480         * modules/stdlib (Makefile.am): Likewise.
1481         * modules/string (Makefile.am): Likewise.
1482         * modules/sys_ioctl (Makefile.am): Likewise.
1483         * modules/sys_select (Makefile.am): Likewise.
1484         * modules/sys_socket (Makefile.am): Likewise.
1485         * modules/sys_stat (Makefile.am): Likewise.
1486         * modules/sys_times (Makefile.am): Likewise.
1487         * modules/sys_utsname (Makefile.am): Likewise.
1488         * modules/sys_wait (Makefile.am): Likewise.
1489         * modules/termios (Makefile.am): Likewise.
1490         * modules/time (Makefile.am): Likewise.
1491         * modules/unistd (Makefile.am): Likewise.
1492         * modules/wchar (Makefile.am): Likewise.
1493
1494 2011-06-08  Eric Blake  <eblake@redhat.com>
1495
1496         strerror: simplify replacement
1497         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1498         * modules/strerror (configure.ac): No prereqs needed here...
1499         * modules/strerror-override (configure.ac): ...but this needs it.
1500         (Files): Add file for needed prereq macro.
1501
1502 2011-06-08  Bruno Haible  <bruno@clisp.org>
1503
1504         strerror_r-posix: Tweaks.
1505         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1506         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1508         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1509         (gl_FUNC_STRERROR_R): ... to here.
1510         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1511
1512 2011-06-07  Eric Blake  <eblake@redhat.com>
1513
1514         perror: document fixed bugs
1515         * doc/posix-functions/perror.texi (perror): Document recent
1516         patches.
1517
1518 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         stat-time: get_stat_birthtime failure is better-defined
1521         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1522         return a timestamp whose tv_sec and tv_nsec values are both -1.
1523         Previously, the spec said only that the tv_nsec value was negative.
1524         This upward-compatible change simplifies GNU tar a bit.
1525
1526 2011-06-07  Eric Blake  <eblake@redhat.com>
1527
1528         strerror_r-posix: work around cygwin 1.7.9
1529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1530         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1531         bug without replacing strerror_r.
1532         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1533         strerror_r is buggy, but without requiring strerror_r compilation.
1534         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1535
1536         test-perror: relax test to ignore cygwin bug
1537         * tests/test-perror2.c (main): Relax test on requiring detection
1538         of stream errors, and use unbuffered stream.
1539         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1540         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1541         * doc/posix-functions/fputc.texi (fputc): Likewise.
1542         * doc/posix-functions/fputs.texi (fputs): Likewise.
1543         * doc/posix-functions/fputws.texi (fputws): Likewise.
1544         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1545         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1546         * doc/posix-functions/getopt.texi (getopt): Likewise.
1547         * doc/posix-functions/perror.texi (perror): Likewise.
1548         * doc/posix-functions/printf.texi (printf): Likewise.
1549         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1550         * doc/posix-functions/psignal.texi (psignal): Likewise.
1551         * doc/posix-functions/putc.texi (putc): Likewise.
1552         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1553         Likewise.
1554         * doc/posix-functions/putchar.texi (putchar): Likewise.
1555         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1556         Likewise.
1557         * doc/posix-functions/puts.texi (puts): Likewise.
1558         * doc/posix-functions/putwc.texi (putwc): Likewise.
1559         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1560         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1561         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1562         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1563         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1564         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1565         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1566         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1567
1568 2011-05-22  Bruno Haible  <bruno@clisp.org>
1569
1570         strerror: Move AC_LIBOBJ invocations to module description.
1571         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1572         gl_PREREQ_STRERROR invocations from here...
1573         * modules/strerror (configure.ac): ... to here.
1574
1575 2011-05-21  Bruno Haible  <bruno@clisp.org>
1576
1577         perror: Use common idiom.
1578         * modules/perror (configure.ac): Reorder statements.
1579
1580 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1581
1582         tests: fix usage message in 'mktempd_'
1583         * tests/init.sh (mktempd_): In the usage message, use literal
1584         'mktempd_', not '$ME' (which is even undefined), as the name of
1585         the subroutine.
1586
1587 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1588
1589         tests init: new function 'fatal_', for hard errors
1590         Before this patch, the only way offered by tests/init.sh to
1591         properly signal a hard error was the `framework_failure_'
1592         function.  But the error message issued by that function,
1593         as its name would suggest, refers to a set-up failure in the
1594         testsuite, while hard errors can obviously also be due to
1595         other reasons.  The best way to fix this inconsistency is to
1596         introduce a new function with a more general error message.
1597         * tests/init.sh (fatal_): New function.
1598
1599 2011-06-06  Eric Blake  <eblake@redhat.com>
1600
1601         canonicalize-lgpl: use common idiom
1602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1603         over newer POSIX -Rf.
1604         Reported by Bruno Haible.
1605
1606         canonicalize-lgpl: work around AIX realpath bug
1607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1608         * doc/posix-functions/realpath.texi (realpath): Document it.
1609         Reported by Bruno Haible.
1610
1611         strerror: work around FreeBSD bug
1612         * lib/strerror.c (strerror): Special case 0.
1613         Reported by Bruno Haible.
1614
1615         strerror-override: avoid bloating errno module
1616         * modules/errno (Files, configure.ac): Move replacement strings...
1617         * modules/strerror-override: ...to new module.
1618         * modules/strerror (Depends-on): Add strerror-override.
1619         * modules/strerror_r-posix (Depends-on): Likewise.
1620         * MODULES.html.sh: Document new module.
1621         Reported by Bruno Haible.
1622
1623 2011-06-06  Bruno Haible  <bruno@clisp.org>
1624
1625         spawn-pipe tests: Rename program.
1626         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1627         * tests/test-spawn-pipe-child.c: Update comment.
1628         * tests/test-spawn-pipe.sh: Update.
1629         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1630
1631         spawn-pipe tests: Link the child program only against libc.
1632         * tests/test-spawn-pipe-child.c: New file, extracted from
1633         tests/test-spawn-pipe.c.
1634         (main): Expect only one argument.
1635         (is_open): New function, copied from tests/test-pipe.c.
1636         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1637         (child_main): Remove function.
1638         (test_pipe): Pass only one argument to the child program.
1639         (main): Remove child process code. Expect the child program's name as
1640         first argument.
1641         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1642         argument.
1643         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1644         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1645         test-spawn-pipe-child against no libraries.
1646
1647 2011-06-06  Bruno Haible  <bruno@clisp.org>
1648
1649         careadlinkat: Avoid mismatch between ssize_t and int.
1650         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1651         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1652
1653 2011-06-06  Jim Meyering  <meyering@redhat.com>
1654
1655         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1656         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1657         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1658
1659 2011-06-05  Bruno Haible  <bruno@clisp.org>
1660
1661         ansi-c++-opt: Interoperability with libtool.
1662         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1663         set the variable to "no", not to ":".
1664         * NEWS: Mention the change.
1665
1666 2011-06-05  Bruno Haible  <bruno@clisp.org>
1667
1668         acl: Fix test failure on AIX 7.
1669         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1670         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1671
1672 2011-06-05  Bruno Haible  <bruno@clisp.org>
1673
1674         pipe-filter-ii: Fix test failure on AIX and IRIX.
1675         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1676         with EAGAIN, retry with a smaller buffer size.
1677
1678 2011-06-05  Bruno Haible  <bruno@clisp.org>
1679
1680         localename: Fix link dependencies.
1681         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1682         * modules/localename-tests (Makefile.am): Link test-localename with
1683         $(LIBTHREAD).
1684
1685 2011-06-05  Bruno Haible  <bruno@clisp.org>
1686
1687         error: Avoid gcc warning.
1688         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1689
1690 2011-06-05  Bruno Haible  <bruno@clisp.org>
1691
1692         unsetenv: Avoid gcc warning.
1693         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1694
1695 2011-06-05  Bruno Haible  <bruno@clisp.org>
1696
1697         setenv: Avoid gcc warning.
1698         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1699
1700 2011-06-05  Bruno Haible  <bruno@clisp.org>
1701
1702         sys_select: Ensure memset is declared also on AIX 7.
1703         * lib/sys_select.in.h: Include <string.h> also on AIX.
1704         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1705         self-contained also on AIX 7.1.
1706
1707 2011-06-04  Jim Meyering  <meyering@redhat.com>
1708
1709         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1710         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1711         function name, "error".
1712         (_gl_translatable_diag_func_re): New configurable variable.
1713
1714 2011-06-04  Bruno Haible  <bruno@clisp.org>
1715
1716         getopt: Avoid gcc warning.
1717         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1718
1719 2011-06-04  Bruno Haible  <bruno@clisp.org>
1720
1721         strerror_r: Fix comments.
1722         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1723         commit.
1724
1725 2011-06-04  Bruno Haible  <bruno@clisp.org>
1726
1727         perror: Fix compilation error.
1728         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1729         Undefine fprintf, not sprintf.
1730         * modules/perror (Depends-on): Remove intprops, verify.
1731
1732 2011-06-04  Bruno Haible  <bruno@clisp.org>
1733
1734         setlocale: Enable replacement on Cygwin 1.5.
1735         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1736         Cygwin 1.5.x.
1737         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1738         LC_CTYPE category also exists on Cygwin 1.5.x.
1739
1740 2011-06-04  Bruno Haible  <bruno@clisp.org>
1741
1742         strerror-override: Don't disable symbol renamings.
1743         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1744         * lib/strerror-override.c: Include config.h.
1745         (strerror_override): Don't undefine.
1746
1747 2011-06-03  Bruno Haible  <bruno@clisp.org>
1748
1749         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1750         * lib/localename.h: Update copyright header.
1751         * lib/localename.c: Likewise.
1752         * lib/relocatable.h: Likewise.
1753         * lib/relocatable.c: Likewise.
1754
1755 2011-06-02  Bruno Haible  <bruno@clisp.org>
1756
1757         doc: Fix a module name.
1758         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1759
1760 2011-06-02  Bruno Haible  <bruno@clisp.org>
1761
1762         pipe2: Remove dependency on 'nonblocking' module.
1763         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1764         O_NONBLOCK is defined by gnulib.
1765         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1766         is zero.
1767         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1768         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1769         defined by gnulib.
1770         (get_nonblocking_flag): New function.
1771         (main): Test O_NONBLOCK flag only if it is nonzero.
1772         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1773
1774 2011-06-03  Jim Meyering  <meyering@redhat.com>
1775
1776         maint: three new prohibit-header-without-use rules
1777         Prohibit use of cloexec.h, posixver.h, same.h without use.
1778         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1779         (sc_prohibit_posixver_without_use): Likewise.
1780         (sc_prohibit_same_without_use): Likewise.
1781
1782 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         allocator: 'die' routine is now given requested size
1785         * lib/allocator.h (struct allocator.die): New size arg.
1786         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1787         If the actual problem is an ssize_t limitation, not a size_t or
1788         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1789
1790 2011-06-01  Eric Blake  <eblake@redhat.com>
1791
1792         strerror: drop strerror_r dependency
1793         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1794         * lib/strerror-override.c (strerror_override): ...to new file.
1795         * lib/strerror-override.h: Add prototype.
1796         * lib/strerror-impl.h: Delete.
1797         * lib/strerror.c (strerror): New implementation.
1798         * modules/errno (Files): Add new files.
1799         (configure.ac): Compile new file as appropriate.
1800         * modules/strerror (Files): Drop unused file.
1801         (Depends-on): Drop strerror_r-posix.
1802         * MODULES.html.sh: Document strerror_r-posix.
1803         Requested by Sam Steingold.
1804
1805         perror: call strerror_r directly
1806         * modules/perror (Files): Drop strerror-impl.h.
1807         * lib/perror.c (perror): Use our own stack buffer, rather than
1808         calling a wrapper that uses static storage.
1809         * doc/posix-functions/perror.texi (perror): Document a limitation
1810         of our replacement.
1811
1812         strerror_r: fix includes for FreeBSD
1813         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1814         since we use abort on some platforms.
1815         Reported by Matthias Bolte.
1816
1817 2011-05-31  Bruno Haible  <bruno@clisp.org>
1818
1819         Fix link errors in tests: openat-die uses gettext-h.
1820         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1821         against $(LIBINTL).
1822         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1823         against $(LIBINTL).
1824         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1825         $(LIBINTL).
1826         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1827         against $(LIBINTL).
1828         * modules/linkat-tests (Makefile.am): Link test-linkat against
1829         $(LIBINTL).
1830         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1831         $(LIBINTL).
1832         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1833         against $(LIBINTL).
1834         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1835         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1836         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1837         $(LIBINTL).
1838         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1839         $(LIBINTL).
1840         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1841         $(LIBINTL).
1842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1843
1844 2011-05-31  Bruno Haible  <bruno@clisp.org>
1845
1846         Fix link errors in tests: wait-process uses gettext-h.
1847         * modules/nonblocking-pipe-tests (Makefile.am): Set
1848         test_nonblocking_pipe_main_LDADD.
1849         * modules/nonblocking-socket-tests (Makefile.am): Link
1850         test-nonblocking-socket-main against $(LIBINTL).
1851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1852
1853 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         assert-h: work around 'verify' incompatibility
1856         * lib/verify.h: Use @...@ directives, not ifdef.
1857         * modules/assert-h (assert.h): Implement the directives.
1858         (assert.h): Substitute the symbol-prefix more consistently.
1859
1860 2011-05-29  Jim Meyering  <meyering@redhat.com>
1861
1862         trim: remove three superfluous assignments
1863         * lib/trim.c (trim2): Remove three superfluous assignments
1864         and correct brace positioning.
1865
1866 2011-05-29  Bruno Haible  <bruno@clisp.org>
1867
1868         wctype-h: Avoid namespace pollution on Solaris 2.6.
1869         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1870         identifiers.
1871         * doc/posix-headers/wctype.texi: Mention the problem.
1872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1873
1874 2011-05-28  Jim Meyering  <meyering@redhat.com>
1875
1876         parse-datetime.y: accommodate -Wstrict-overflow
1877         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1878         placate -Wstrict-overflow.
1879
1880         trim: avoid a warning from -O2 -Wstrict-overflow
1881         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1882
1883 2011-05-29  Bruno Haible  <bruno@clisp.org>
1884
1885         gnulib-tool: Fix bug in yesterday's commit.
1886         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1887         twice.
1888
1889 2011-05-29  Bruno Haible  <bruno@clisp.org>
1890
1891         Allow multiple gnulib generated include files to be combined.
1892         * gnulib-tool (func_compute_include_guard_prefix): New function.
1893         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1894         ${gl_include_guard_prefix} references.
1895         (func_import, func_create_testdir): Invoke
1896         func_compute_include_guard_prefix.
1897         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1898         * lib/ctype.in.h: Likewise.
1899         * lib/dirent.in.h: Likewise.
1900         * lib/errno.in.h: Likewise.
1901         * lib/fcntl.in.h: Likewise.
1902         * lib/float.in.h: Likewise.
1903         * lib/getopt.in.h: Likewise.
1904         * lib/iconv.in.h: Likewise.
1905         * lib/langinfo.in.h: Likewise.
1906         * lib/locale.in.h: Likewise.
1907         * lib/math.in.h: Likewise.
1908         * lib/netdb.in.h: Likewise.
1909         * lib/netinet_in.in.h: Likewise.
1910         * lib/poll.in.h: Likewise.
1911         * lib/pthread.in.h: Likewise.
1912         * lib/pty.in.h: Likewise.
1913         * lib/sched.in.h: Likewise.
1914         * lib/se-selinux.in.h: Likewise.
1915         * lib/search.in.h: Likewise.
1916         * lib/signal.in.h: Likewise.
1917         * lib/spawn.in.h: Likewise.
1918         * lib/stdarg.in.h: Likewise.
1919         * lib/stddef.in.h: Likewise.
1920         * lib/stdint.in.h: Likewise.
1921         * lib/stdio.in.h: Likewise.
1922         * lib/stdlib.in.h: Likewise.
1923         * lib/string.in.h: Likewise.
1924         * lib/strings.in.h: Likewise.
1925         * lib/sys_file.in.h: Likewise.
1926         * lib/sys_ioctl.in.h: Likewise.
1927         * lib/sys_select.in.h: Likewise.
1928         * lib/sys_socket.in.h: Likewise.
1929         * lib/sys_stat.in.h: Likewise.
1930         * lib/sys_time.in.h: Likewise.
1931         * lib/sys_times.in.h: Likewise.
1932         * lib/sys_uio.in.h: Likewise.
1933         * lib/sys_utsname.in.h: Likewise.
1934         * lib/sys_wait.in.h: Likewise.
1935         * lib/sysexits.in.h: Likewise.
1936         * lib/termios.in.h: Likewise.
1937         * lib/time.in.h: Likewise.
1938         * lib/unistd.in.h: Likewise.
1939         * lib/wchar.in.h: Likewise.
1940         * lib/wctype.in.h: Likewise.
1941         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1942         * modules/ctype (Makefile.am): Likewise.
1943         * modules/dirent (Makefile.am): Likewise.
1944         * modules/errno (Makefile.am): Likewise.
1945         * modules/fcntl-h (Makefile.am): Likewise.
1946         * modules/float (Makefile.am): Likewise.
1947         * modules/getopt-posix (Makefile.am): Likewise.
1948         * modules/iconv-h (Makefile.am): Likewise.
1949         * modules/langinfo (Makefile.am): Likewise.
1950         * modules/locale (Makefile.am): Likewise.
1951         * modules/math (Makefile.am): Likewise.
1952         * modules/netdb (Makefile.am): Likewise.
1953         * modules/netinet_in (Makefile.am): Likewise.
1954         * modules/poll-h (Makefile.am): Likewise.
1955         * modules/pthread (Makefile.am): Likewise.
1956         * modules/pty (Makefile.am): Likewise.
1957         * modules/sched (Makefile.am): Likewise.
1958         * modules/search (Makefile.am): Likewise.
1959         * modules/selinux-h (Makefile.am): Likewise.
1960         * modules/signal (Makefile.am): Likewise.
1961         * modules/spawn (Makefile.am): Likewise.
1962         * modules/stdarg (Makefile.am): Likewise.
1963         * modules/stddef (Makefile.am): Likewise.
1964         * modules/stdint (Makefile.am): Likewise.
1965         * modules/stdio (Makefile.am): Likewise.
1966         * modules/stdlib (Makefile.am): Likewise.
1967         * modules/string (Makefile.am): Likewise.
1968         * modules/strings (Makefile.am): Likewise.
1969         * modules/sys_file (Makefile.am): Likewise.
1970         * modules/sys_ioctl (Makefile.am): Likewise.
1971         * modules/sys_select (Makefile.am): Likewise.
1972         * modules/sys_socket (Makefile.am): Likewise.
1973         * modules/sys_stat (Makefile.am): Likewise.
1974         * modules/sys_time (Makefile.am): Likewise.
1975         * modules/sys_times (Makefile.am): Likewise.
1976         * modules/sys_uio (Makefile.am): Likewise.
1977         * modules/sys_utsname (Makefile.am): Likewise.
1978         * modules/sys_wait (Makefile.am): Likewise.
1979         * modules/sysexits (Makefile.am): Likewise.
1980         * modules/termios (Makefile.am): Likewise.
1981         * modules/time (Makefile.am): Likewise.
1982         * modules/unistd (Makefile.am): Likewise.
1983         * modules/wchar (Makefile.am): Likewise.
1984         * modules/wctype-h (Makefile.am): Likewise.
1985         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1986
1987 2011-05-29  Bruno Haible  <bruno@clisp.org>
1988
1989         assert-h: Allow multiple gnulib generated replacements to coexist.
1990         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1991
1992 2011-05-29  Bruno Haible  <bruno@clisp.org>
1993
1994         argp: Allow coexistence with strerror_r-posix module.
1995         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1996         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1997         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1998         not the glibc signature.
1999
2000 2011-05-28  Bruno Haible  <bruno@clisp.org>
2001
2002         gnulib-tool: Alternative structure of testdirs, similar to --import.
2003         * gnulib-tool: New option --single-configure.
2004         (func_usage): Document it.
2005         (single_configure): New variable.
2006         (func_modules_transitive_closure_separately,
2007         func_modules_transitive_closure_separately,
2008         func_determine_use_libtests, func_modules_add_dummy_separately,
2009         func_modules_to_filelist_separately): New functions, extracted from
2010         func_import.
2011         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2012         (func_import): Use the new functions.
2013         (func_create_testdir): Set final_modules. Handle $single_configure =
2014         true case.
2015
2016 2011-05-28  Bruno Haible  <bruno@clisp.org>
2017
2018         getloadavg: Remove an unreliable safety check.
2019         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2020         getloadavg.c is in place.
2021         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2022         Reported by Sam Steingold <sds@gnu.org>.
2023
2024 2011-05-28  Bruno Haible  <bruno@clisp.org>
2025
2026         doc: Cleanup yet another file produced by texinfo.tex.
2027         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2028
2029 2011-05-28  Bruno Haible  <bruno@clisp.org>
2030
2031         Finish the conditional dependencies mechanism.
2032         * gnulib-tool: New option --no-conditional-dependencies.
2033         (func_usage): Document it. Don't mark --conditional-dependencies as
2034         experimental.
2035         (cond_dependencies): The possible values can now be true, false, empty.
2036         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2037         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2038         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2039
2040 2011-05-28  Bruno Haible  <bruno@clisp.org>
2041
2042         doc: Use a recent texinfo.tex.
2043         * doc/Makefile (tex_opts): New variable.
2044         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2045
2046 2011-05-28  Jim Meyering  <meyering@redhat.com>
2047
2048         intprops.h: adjust comment to match code change
2049         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2050         only once, it *may* have side effects.  Also fix an unrelated typo.
2051         (_GL_INT_SIGNED): Likewise.
2052
2053 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2054
2055         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2056
2057 2011-05-26  Bruno Haible  <bruno@clisp.org>
2058
2059         mbsrchr: Avoid collision with system function on Interix.
2060         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2061         Reported by Markus Duft <mduft@gentoo.org>.
2062
2063 2011-05-15  James Youngman  <jay@gnu.org>
2064
2065         getopt: for ambiguous options, enumerate the possibilities.
2066         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2067         the ambiguous options when an ambiguous prefix is given. This was
2068         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2069         glibc change was
2070         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2071
2072 2011-05-25  Eric Blake  <eblake@redhat.com>
2073
2074         getcwd: work around mingw bug
2075         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2076         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2077         Reported by Matthias Bolte.
2078
2079 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         test-intprops: disable -Wtype-limits diagnostics
2082         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2083         diagnostics.  Otherwise, the integer overflow macros generate many
2084         diagnostics.  Reported by Jim Meyering in
2085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2086
2087         intprops: shorten, to pacify gcc -Woverlength-strings
2088         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2089         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2090         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2091         likely to run afoul of C compiler limits for string constant lengths.
2092         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2093
2094 2011-05-24  Eric Blake  <eblake@redhat.com>
2095
2096         docs: document recently fixed glibc printf bug
2097         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2098         * doc/posix-functions/printf.texi (printf): Likewise.
2099         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2100         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2101
2102         closein-tests: convert to init.sh
2103         * modules/closein-tests (Files): Add init.sh
2104         * tests/test-closein.sh Use it.
2105
2106         yesno-tests: convert to init.sh
2107         * modules/yesno-tests (Files): Add init.sh.
2108         * tests/test-yesno.sh: Use it.
2109
2110         atexit-tests: ensure reliable exit status
2111         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2112         Reported by Bruno Haible.
2113
2114 2011-05-24  Bruno Haible  <bruno@clisp.org>
2115
2116         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2117         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2118         gl_PREREQ_STRERROR_R invocations from here...
2119         * modules/strerror_r-posix (configure.ac): ... to here.
2120
2121 2011-05-24  Eric Blake  <eblake@redhat.com>
2122
2123         strerror_r: fix missing header
2124         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2125
2126         strerror_r: fix AIX test failures
2127         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2128         ERANGE failure.
2129
2130         strerror_r: fix Solaris test failures
2131         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2132         failures.
2133         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2134
2135         strerror_r: enforce POSIX recommendations
2136         * lib/strerror_r.c (safe_copy): New helper method.
2137         (strerror_r): Guarantee a non-empty string.
2138         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2139         recent POSIX rulings and to match our strerror guarantees.
2140         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2141
2142 2011-05-24  Jim Meyering  <meyering@redhat.com>
2143
2144         test-perror2.c: avoid warning about unused variable
2145         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2146
2147 2011-05-24  Eric Blake  <eblake@redhat.com>
2148
2149         perror: avoid spurious test failure on HP-UX
2150         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2151
2152         tests: fix logic bug in init.sh
2153         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2154         shell.
2155
2156 2011-05-24  Jim Meyering  <meyering@redhat.com>
2157
2158         utimensat: do not reference an out-of-scope buffer
2159         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2160         declared in an inner scope, yet "times" would be dereferenced outside
2161         the scope in which "ts" was valid.
2162         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2163         of ts[2] "out/up", so that the use of aliased "times" (via
2164         "times = ts;") does not end up referencing an out-of-scope "ts"
2165
2166         opendir-safer.c: don't clobber errno; don't close negative FD
2167         * lib/opendir-safer.c (opendir_safer):
2168         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2169         file descriptor, and more importantly, don't clobber the
2170         offending errno value with EINVAL.  Before, upon failure
2171         of dup_safer, we would pass the negative file descriptor to
2172         fdopendir, which would clobber errno.
2173
2174 2011-05-23  Bruno Haible  <bruno@clisp.org>
2175
2176         idcache: Fix module description.
2177         * modules/idcache (Include): Set to "idcache.h".
2178
2179 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2180
2181         gnulib-tool: fix portability problem with MacOS sed
2182         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2183         before the "}".  Problem reported by Leo in
2184         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2185         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2186         sed_extract_condition1, sed_extract_condition2.
2187
2188 2011-05-23  Bruno Haible  <bruno@clisp.org>
2189
2190         hash: Simplify autoconf macro.
2191         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2192
2193 2011-05-23  Bruno Haible  <bruno@clisp.org>
2194
2195         getugroups: Fix module description.
2196         * modules/getugroups (Include): Set to "getugroups.h".
2197
2198 2011-05-23  Bruno Haible  <bruno@clisp.org>
2199
2200         linkat: Simplify autoconf macro.
2201         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2202
2203 2011-05-23  Bruno Haible  <bruno@clisp.org>
2204             Eric Blake  <eblake@redhat.com>
2205
2206         linkat, renameat: Update dependencies.
2207         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2208         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2209         symlinkat.
2210
2211 2011-05-23  Jim Meyering  <meyering@redhat.com>
2212
2213         maint.mk: more tight_scope improvements
2214         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2215         (_gl_TS_headers): Define only in if-0'd block.
2216         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2217         sometimes we must *not* use it.  Adjust uses accordingly.
2218         (sc_tight_scope): Use much simpler grep-based test to determine
2219         whether we skip this rule.
2220
2221         maint.mk: generalize/improve the tight-scope rule
2222         * top/maint.mk: Emit a warning when the test is skipped.
2223         (_gl_TS_dir): Add $(srcdir)/ prefix.
2224         (_gl_TS_function_match): Simplify, rather than trying
2225         to enumerate common types.  Otherwise, it would fail to match an
2226         "extern unsigned char const *" declaration in idutils.
2227         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2228         a way to support use of that type of macro.
2229         (_gl_TS_var_match): Simplify regexp.
2230         (_gl_TS_obj_files): New configurable variable.
2231         (_gl_TS_headers): Likewise.
2232
2233 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         verify: fix bug when gnulib <assert.h> is also included
2236         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2237         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2238         Perhaps there's a better way, but this fixes the immediate problem.
2239         Problem reported by Bruno Haible in
2240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2241
2242 2011-05-22  Bruno Haible  <bruno@clisp.org>
2243
2244         xgetcwd: Simplify autoconf macro.
2245         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2246
2247 2011-05-22  Bruno Haible  <bruno@clisp.org>
2248
2249         New module 'mktime-internal'.
2250         * modules/mktime-internal: New file.
2251         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2252         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2253         mktime_internal as a C macro if libc has __mktime_internal.
2254         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2255         conditions.
2256         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2257
2258 2011-05-22  Bruno Haible  <bruno@clisp.org>
2259
2260         timegm: Correct mktime replacement statements.
2261         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2262         defining mktime as a C macro. This completes a 2009-07-28 commit.
2263
2264 2011-05-22  Bruno Haible  <bruno@clisp.org>
2265
2266         timegm: Simplify autoconf macro.
2267         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2268
2269 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         clock-time: change to LGPLv2+.
2272         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2273         BSD-like but we have no mark for that; this is good enough for now.
2274
2275 2011-05-21  Bruno Haible  <bruno@clisp.org>
2276
2277         strerror_r: Fix comments.
2278         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2279
2280 2011-05-21  Bruno Haible  <bruno@clisp.org>
2281
2282         relocatable-prog-wrapper: Fix possible link error.
2283         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2284         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2285         (gl_FUNC_SETENV): ... to here.
2286         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2287         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2288
2289 2011-05-21  Bruno Haible  <bruno@clisp.org>
2290
2291         relocatable-prog-wrapper: Assume strerror() exists.
2292         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2293         m4/strerror.m4.
2294         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2295         * lib/relocwrapper.c: Remove mention of strerror module.
2296         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2298         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2299         C macro.
2300
2301 2011-05-21  Bruno Haible  <bruno@clisp.org>
2302
2303         select: Simplify replacement idiom.
2304         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2305         Win32 platforms.
2306         * lib/sys_select.in.h (select): Simplify accordingly.
2307         * modules/select (Depends-on): Likewise.
2308
2309 2011-05-21  Bruno Haible  <bruno@clisp.org>
2310
2311         mkdir-p: Simplify autoconf macro.
2312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2313         gl_FUNC_LCHOWN.
2314
2315 2011-05-21  Eric Blake  <eblake@redhat.com>
2316
2317         strerror_r: avoid clobbering strerror on cygwin
2318         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2319         fall back instead to sys_errlist.
2320         * modules/strerror (configure.ac): Add witness.
2321         * tests/test-strerror_r.c (main): Enhance test.
2322         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2323         * tests/test-perror2.c (main): Free memory before exit.
2324
2325 2011-05-21  Bruno Haible  <bruno@clisp.org>
2326
2327         mkdtemp: Use gnulib naming conventions.
2328         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2329         * modules/mkdtemp (configure.ac): Update.
2330
2331 2011-05-20  Eric Blake  <eblake@redhat.com>
2332
2333         strerror_r: avoid corrupting errno on Solaris
2334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2335         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2336
2337         strerror_r: avoid compiler warning
2338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2339
2340         strerror_r: simplify AIX code
2341         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2342
2343         test-perror: avoid spurious failure on FreeBSD
2344         * modules/perror-tests (Depends-on): Add strerror, now that
2345         strerror_r no longer pulls it in.
2346
2347 2011-05-20  Bruno Haible  <bruno@clisp.org>
2348
2349         strerror_r-posix: Remove unused dependencies.
2350         * modules/strerror_r-posix (Depends-on): Remove strerror.
2351         Reported by Eric Blake.
2352
2353 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2354
2355         intprops: remove assumption about A|B representation
2356         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2357         is a valid integer if both A and B are.  Although this is true for
2358         all known practical hosts, the C standard doesn't guarantee it,
2359         and the code need not assume it.  Also, this change may work around
2360         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2362
2363 2011-05-20  Eric Blake  <eblake@redhat.com>
2364
2365         perror: work around FreeBSD bug
2366         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2367         is broken.  Move AC_LIBOBJ...
2368         * modules/perror (configure.ac): Here.
2369         * doc/posix-functions/perror.texi (perror): Document this.
2370         * tests/test-perror2.c (main): Enhance test.
2371
2372         test-perror: check for strerror interactions
2373         * tests/macros.h (STREQ): Add macro.
2374         * modules/perror-tests (Files): Add second test.
2375         * tests/test-perror2.c (main): New file.
2376         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2377
2378         test-perror: rewrite to use init script
2379         * modules/perror-tests (Files): Add init.sh.
2380         * tests/test-perror.sh: Use temporary directory.
2381
2382 2011-05-20  Jim Meyering  <meyering@redhat.com>
2383
2384         maint: replace misused "a" with "an"
2385         * doc/intprops.texi: "a integer"
2386         * doc/regex.texi: "a explanation"
2387         * lib/alignof.h: "a object"
2388         * lib/argmatch.h: "a explanation"
2389         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2390         * lib/stdint.in.h: "a integer"
2391         * lib/userspec.c: "a owner"
2392         * doc/gnulib.texi: Fix "a idea", and reword.
2393
2394 2011-05-19  Jim Meyering  <meyering@redhat.com>
2395
2396         maint: correct misuse of "a" and "an"
2397         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2398         * lib/argp-help.c: "an docum...": s/an/a/
2399         * lib/argp-parse.c: "An vector": s/An/A/
2400         * lib/execute.c: "an native": s/an/a/
2401         * lib/spawn-pipe.c: Likewise.
2402         * lib/gc.h: "an Gc_rc": s/an/a/
2403         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2404         * lib/fts.c: "an stat.st_dev": s/an/a/
2405
2406 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         intprops-tests: work around HP-UX 11.23 cc bug with constants
2409         * tests/test-intprops.c (VERIFY): New macro.
2410         (main): Use it, instead of verify, to work around the compiler bug; see
2411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2412
2413         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2414         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2415         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2416         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2417         (_GL_REMAINDER_OVERFLOW): Use it.
2418
2419         intprops-tests: revert unsigned part of previous change
2420         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2421         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2422         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2424
2425 2011-05-19  Bruno Haible  <bruno@clisp.org>
2426
2427         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2428         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2429         strerror_r() returned without filling the buffer.
2430         Reported by Eric Blake.
2431
2432 2011-05-19  Eric Blake  <eblake@redhat.com>
2433
2434         strerror_r: guarantee unchanged errno
2435         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2436         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2437         failure.
2438         * tests/test-strerror_r.c (main): Enhance test.
2439
2440 2011-05-19  Bruno Haible  <bruno@clisp.org>
2441
2442         strerror_r: Reorder #if blocks.
2443         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2444         for consistency with the previous commit.
2445
2446 2011-05-19  Bruno Haible  <bruno@clisp.org>
2447
2448         perror: Avoid clobbering the strerror buffer when possible.
2449         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2450         * lib/strerror.c: Include it.
2451         * modules/strerror (Files): Add lib/strerror-impl.h.
2452         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2453         (my_strerror): New function, defined through lib/strerror-impl.h.
2454         (perror): Use it instead of strerror.
2455         * modules/perror (Files): Add lib/strerror-impl.h.
2456         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2457
2458 2011-05-19  Eric Blake  <eblake@redhat.com>
2459
2460         strerror_r: fix on newer cygwin
2461         * lib/strerror_r.c (strerror_r): Cygwin now has
2462         __xpg_strerror_r, use it.
2463
2464 2011-05-19  Bruno Haible  <bruno@clisp.org>
2465
2466         strerror_r: Avoid clobbering the strerror buffer when possible.
2467         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2468         (sys_nerr, sys_errlist): New declarations.
2469         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2470         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2471         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2472
2473 2011-05-19  Bruno Haible  <bruno@clisp.org>
2474
2475         strerror_r: Fix test failure on mingw.
2476         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2477         EXTEND_STRERROR_R.
2478         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2479         macros from errno.in.h instead.
2480
2481 2011-05-19  Eric Blake  <eblake@redhat.com>
2482
2483         strerror: relax test for Solaris
2484         * tests/test-strerror.c (main): Permit Solaris behavior.
2485         * tests/test-strerror_r.c (main): Likewise.
2486
2487         strerror: enforce POSIX ruling on strerror(0)
2488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2490         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2491         * doc/posix-functions/strerror.texi (strerror): Document it.
2492         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2493         * tests/test-strerror.c (main): Strengthen test.
2494         * tests/test-strerror_r.c (main): Likewise.
2495
2496 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         intprop-tests: port to older and more-pedantic compilers
2499         * modules/intprops-tests (Files): Add tests/macros.h.
2500         * tests/test-intprops.c: Include macros.h.
2501         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2502         it's no longer documented to expand to an integer constant expression.
2503         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2504         argument is floating point, as it's no longer documented to expand
2505         to an integer constant expression in that case.
2506         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2507         compiler bugs reported by Bruno Haible.  See
2508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2509         (U0, U1): New constants, to work around the same bugs.  Also,
2510         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2511
2512         intprops: work around C compiler bugs
2513         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2514         bug in Sun C 5.11 2010/08/13 and other compilers; see
2515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2516
2517         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2518         * doc/intprops.texi (Integer Type Determination): Fix
2519         documentation for TYPE_IS_INTEGER: it returns an constant
2520         expression, not an integer constant expression.  Fix doc for
2521         TYPE_SIGNED: it returns an integer constant expression only if its
2522         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2523         hardly worth documented that way....)
2524
2525 2011-05-18  Bruno Haible  <bruno@clisp.org>
2526
2527         strerror_r: Avoid clobbering the strerror buffer when possible.
2528         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2529         Handle gnulib defined errno values here. When strerror() returns NULL
2530         or an empty string, return EINVAL.
2531         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2532         gnulib defined errno values here.
2533         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2534
2535 2011-05-18  Eric Blake  <eblake@redhat.com>
2536
2537         fnmatch: avoid compiler warning
2538         * lib/fnmatch_loop.c (FCT): Use correct type.
2539         Reported by Matthias Bolte.
2540
2541 2011-05-13  Jim Meyering  <meyering@redhat.com>
2542
2543         maint.mk: three new prohibit_<HDR>_without_use rules
2544         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2545         (sc_prohibit_stdio-safer_without_use): Likewise.
2546         (sc_prohibit_xfreopen_without_use): Likewise.
2547
2548 2011-05-17  Jim Meyering  <meyering@redhat.com>
2549
2550         announce-gen: fail if the NEWS delta is empty
2551         If there's nothing noteworthy in NEWS, then either you forgot
2552         or you shouldn't be releasing.
2553         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2554
2555 2011-05-17  Pádraig Brady <P@draigBrady.com>
2556
2557         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2558         reserved symbols starting with double underscore from the check.
2559
2560 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         intprops: add doc
2563         * doc/intprops.texi: New file, documenting intprops.
2564         * doc/gnulib.texi (Particular Modules): Include it.
2565
2566         verify: add doc to gnulib manual and fix example
2567         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2568         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2569         (Compile-time Assertions): Fix example so it can't overflow.
2570
2571 2011-05-17  Jim Meyering  <meyering@redhat.com>
2572
2573         warnings.m4: don't usurp save_CPPFLAGS variable name
2574         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2575
2576         doc: fix typo
2577         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2578
2579 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2580             Bruno Haible  <bruno@clisp.org>
2581
2582         doc: Tweak recent change.
2583         * README (Portability guidelines): Tweak new text.
2584         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2585         Interix 6.1.
2586
2587 2011-05-16  Eric Blake  <eblake@redhat.com>
2588
2589         inttypes: avoid autoconf warning
2590         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2591         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2592
2593 2011-05-16  Sam Steingold <sds@gnu.org>
2594         and Eric Blake  <eblake@redhat.com>
2595
2596         vc-list-files: accept multiple directory operands
2597         * build-aux/vc-list-files: Iterate over all remaining operands.
2598
2599 2011-05-16  Bruno Haible  <bruno@clisp.org>
2600
2601         Fix confusion regarding deprecated modules.
2602         * modules/calloc (Status, Notice): Mark module as deprecated, not
2603         obsolete.
2604         * modules/fnmatch-posix (Status, Notice): Likewise.
2605         * modules/getdate (Status, Notice): Likewise.
2606         * modules/getopt (Status, Notice): Likewise.
2607         * modules/malloc (Status, Notice): Likewise.
2608         * modules/pipe (Status, Notice): Likewise.
2609         * modules/realloc (Status, Notice): Likewise.
2610         * modules/rename-dest-slash (Status, Notice): Likewise.
2611         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2612         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2613         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2614         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2615         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2616
2617 2011-05-16  Bruno Haible  <bruno@clisp.org>
2618
2619         doc: List the target platforms.
2620         * doc/gnulib-intro.texi (Target Platforms): New section.
2621         * doc/gnulib.texi (Introduction): Update menu.
2622         * README (Portability guidelines): Refer to the new section. Update
2623         statement about oldest supported environment. Remove rationale why
2624         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2625         unportable C89 function.
2626         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2627         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2628
2629 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2630
2631         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2632
2633 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2634
2635         intprops-tests: new module
2636         * modules/intprops-tests, tests/test-intprops.c: New files.
2637
2638         intprops: add safe, portable integer overflow checking
2639         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2640         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2641         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2642         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2643         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2644         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2645         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2646         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2647         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2648         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2649         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2650
2651 2011-05-12  James Youngman  <jay@gnu.org>
2652
2653         Add a test for glibc's Bugzilla bug #12378.
2654         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2655         doesn't allow the literal matching of a lone "[" (which is
2656         required by POSIX).
2657         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2658
2659 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2660
2661         Sync glibc change fixing Bugzilla bug #12378.
2662         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2663         beginning and fall back to matching as normal character if the
2664         string ends before the matching ']' is found.  This is what POSIX
2665         requires.
2666
2667 2011-05-13  Eric Blake  <eblake@redhat.com>
2668
2669         getcwd-lgpl: relax test for FreeBSD
2670         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2671         issue.
2672         * tests/test-getcwd-lgpl.c (main): Relax test.
2673         Reported by Matthias Bolte.
2674
2675 2011-05-11  Eric Blake  <eblake@redhat.com>
2676
2677         test-fflush: silence compiler warning
2678         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2679
2680 2011-05-11  Bruno Haible  <bruno@clisp.org>
2681
2682         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2683         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2684         * modules/canonicalize (Depends-on): Add 'nocrash'.
2685         * modules/canonicalize-lgpl (Depends-on): Likewise.
2686         * doc/posix-functions/realpath.texi: Update platforms list.
2687         Reported by Ryan Schmidt <ryandesign@macports.org>.
2688
2689 2011-05-11  Bruno Haible  <bruno@clisp.org>
2690
2691         group-member: Declare function in <unistd.h>.
2692         * lib/unistd.in.h (group_member): New declaration.
2693         * lib/group-member.h: Remove file.
2694         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2695         * tests/test-unistd-c++.cc: Check signature of group_member.
2696         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2697         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2698         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2699         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2700         HAVE_GROUP_MEMBER.
2701         * modules/group-member (Files): Remove lib/group-member.h.
2702         (Depends-on): Add unistd. Specify conditions.
2703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2704         (Include): Change to <unistd.h>.
2705         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2706         HAVE_GROUP_MEMBER.
2707         * NEWS: Mention the change.
2708         * lib/euidaccess.c: Don't include group-member.h.
2709
2710 2011-05-11  Bruno Haible  <bruno@clisp.org>
2711
2712         group-member: Document module.
2713         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2714         module.
2715
2716 2011-05-11  Bruno Haible  <bruno@clisp.org>
2717
2718         fclose: Fix mistake earlier today.
2719         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2720
2721 2011-05-11  Eric Blake  <eblake@redhat.com>
2722
2723         fclose: preserve fflush errors
2724         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2725         Reported by Jim Meyering.
2726
2727         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2728         * build-aux/bootstrap (check_versions): When no specific version
2729         is required, merely check that the app produces an exit status
2730         that indicates its existence.
2731
2732         maint.mk: drop redundant check
2733         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2734         the same but better.
2735
2736 2011-05-11  Bruno Haible  <bruno@clisp.org>
2737
2738         fclose: Fix possible link error.
2739         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2740         unregister_shadow_fd. Improve comments.
2741         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2742         Eric Blake.
2743
2744 2011-05-11  Jim Meyering  <meyering@redhat.com>
2745
2746         maint.mk: improve "can not" detection and generalize rule name
2747         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2748         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2749         Use the same technique as in sc_prohibit_doubled_word, so that
2750         we recognize "can not" also when the words are separated by a newline.
2751         Suggested by Eric Blake.
2752         (perl_filename_lineno_text_): Define.  Factored out of...
2753         (prohibit_doubled_word_): ...here.  Use the new definition.
2754         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2755         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2756         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2757
2758 2011-05-10  Eric Blake  <eblake@redhat.com>
2759
2760         fclose: avoid double close race when possible
2761         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2762         all but WINDOWS_SOCKETS.
2763
2764 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2765
2766         openat: correct new comment
2767         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2768
2769 2011-05-10  Jim Meyering  <meyering@redhat.com>
2770
2771         openat: add comments
2772         * lib/openat-proc.c (openat_proc_name): Add comments,
2773         mostly from Eric Blake.
2774
2775 2011-05-09  Eric Blake  <eblake@redhat.com>
2776
2777         openat: reduce syscalls in first probe of /proc
2778         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2779         be a directory.  Simplify the probe for .. bugs.
2780         * modules/openat (Depends-on): Drop same-inode.
2781         Reported by Bastien ROUCARIES.
2782
2783 2011-05-09  Jim Meyering  <meyering@redhat.com>
2784
2785         maint.mk: change semantics/name of tight_scope variables
2786         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2787         Rename variables to align with semantics that make them more useful.
2788
2789         maint.mk: tweak new rule's name not to impinge
2790         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2791         (sc_tight_scope): Use new rule name rather than $@-0.
2792
2793         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2794         * top/maint.mk (sc_tight_scope): New rule.
2795         (sc_tight_scope-0): New rule, ifdef'd out.
2796         (_gl_TS_dir): Default.
2797         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2798         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2799
2800 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2801
2802         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2803         Haible <bruno@clisp.org>.
2804
2805 2011-05-08  Bruno Haible  <bruno@clisp.org>
2806
2807         Comments.
2808         * m4/isnanf.m4: Add comment.
2809         * m4/isnanl.m4: Likewise.
2810
2811 2011-05-08  Bruno Haible  <bruno@clisp.org>
2812
2813         glob: Remove obsolete macro.
2814         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2815
2816 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2817
2818         intprops: Sun C 5.11 supports __typeof__
2819         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2820         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2821         which is new.
2822         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2823
2824         intprops: switch to usual gnulib indenting and naming
2825         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2826         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2827
2828         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2829
2830 2011-05-08  Jim Meyering  <meyering@redhat.com>
2831
2832         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2833         * top/maint.mk (release-prep): Use make's --no-print-directory
2834         option when generating the announcement.  This eliminates the
2835         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2836         generated announcement template.
2837
2838 2011-05-08  Bruno Haible  <bruno@clisp.org>
2839
2840         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2841         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2842         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2843
2844 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2845
2846         ignore-value, verify: Omit include files from lib_SOURCES.
2847         * modules/ignore-value, modules/verify (Makefile.am):
2848         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2849         that leads Automake to duplicate use of am__objects_... variables
2850         in Makefile.in.  See
2851         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2852
2853 2011-05-07  Bruno Haible  <bruno@clisp.org>
2854
2855         fclose: Simplify autoconf macro.
2856         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2857         defined.
2858
2859 2011-05-07  Bruno Haible  <bruno@clisp.org>
2860
2861         canonicalize-lgpl: Fix autoconf macro ordering bug.
2862         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2863         gl_STDLIB_H_DEFAULTS.
2864
2865 2011-05-06  Eric Blake  <eblake@redhat.com>
2866
2867         maintainer-makefile: make sc_po_check easier to tune
2868         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2869         to probe for strings, such as an alternate location for gnulib.
2870
2871         fclose: guarantee behavior on seekable stdin
2872         * modules/fclose (Depends-on): Add fflush.
2873         * doc/posix-functions/fclose.texi (fclose): Document this.
2874         * tests/test-fclose.c (main): Make test for this unconditional.
2875
2876 2011-05-06  Bruno Haible  <bruno@clisp.org>
2877
2878         fflush, fpurge: Relicense under LGPLv2+.
2879         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2880         * modules/fpurge (License): Likewise.
2881         With permission from Eric Blake and Jim Meyering.
2882         Suggested by Eric Blake.
2883
2884 2011-05-06  Karl Berry  <karl@gnu.org>
2885
2886         * MODULES.html.sh (func_all_modules): remove exit.
2887
2888 2011-05-06  Jim Meyering  <meyering@redhat.com>
2889
2890         maint.mk: use info-gnu@ as the default only for a stable release
2891         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2892         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2893         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2895
2896 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2897
2898         assert-h: new module, which supports C1X-style static_assert
2899         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2900         * lib/verify.h: Revamp so that this can be copied into assert.h,
2901         while retaining the ability to use it standalone as before.
2902         Rename private identifiers so as not to encroach on the
2903         standard C namespace, since this is now used by assert.h.
2904         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2905         the old verify_true.
2906         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2907         the old verify_true.  Use _GL_VERIFY_TYPE.
2908         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2909         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2910         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2911         defined when this file is copied into the replacement assert.h.
2912         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2913         and _Static_assert is not built in.
2914         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2915         defined, and use the new macros mentioned above.
2916         * doc/posix-headers/assert.texi: Document this.
2917
2918 2011-05-05  Bruno Haible  <bruno@clisp.org>
2919
2920         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2921         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2922         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2923         gl_REPLACE_FCLOSE here.
2924         * modules/fflush (Depends-on): Remove fclose.
2925         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2926         combination with module 'fclose'.
2927
2928 2011-05-05  Bruno Haible  <bruno@clisp.org>
2929
2930         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2931         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2932         gl_FUNC_FFLUSH.
2933         (gl_FUNC_FFLUSH): Use it.
2934         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2936         gl_REPLACE_FSEEKO here.
2937
2938 2011-05-05  Bruno Haible  <bruno@clisp.org>
2939
2940         tzset: Relicense under LGPL.
2941         * modules/tzset (License): Change to LGPL.
2942         No agreement needed; it's a no-op.
2943
2944         strtoimax, strtoumax: Relicense under LGPL.
2945         * modules/strtoimax (License): Change to LGPL.
2946         * modules/strtoumax (License): Likewise.
2947         With permission from Jim Meyering, Paul Eggert:
2948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2950
2951         getgroups: Relicense under LGPL.
2952         * modules/getgroups (License): Change to LGPL.
2953         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2957
2958         nanosleep: Relicense under LGPL.
2959         * modules/nanosleep (License): Change to LGPL.
2960         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2961         Haible:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2966
2967         futimens: Relicense under LGPL.
2968         * modules/futimens (License): Change to LGPL.
2969         With permission from Eric Blake:
2970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2971
2972         fflush: Relicense under LGPL.
2973         * modules/fflush (License): Change to LGPL.
2974         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2978
2979         tmpfile: Relicense under LGPL.
2980         * modules/tmpfile (License): Change to LGPL.
2981         With permission from Ben Pfaff:
2982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2983
2984         isfinite: Relicense under LGPL.
2985         * modules/isfinite (License): Change to LGPL.
2986         With permission from Ben Pfaff, Bruno Haible:
2987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2989
2990         acosl..tanl: Relicense under LGPL.
2991         * modules/acosl (License): Change to LGPL.
2992         * modules/asinl (License): Likewise.
2993         * modules/atanl (License): Likewise.
2994         * modules/cosl (License): Likewise.
2995         * modules/expl (License): Likewise.
2996         * modules/logl (License): Likewise.
2997         * modules/sinl (License): Likewise.
2998         * modules/sqrtl (License): Likewise.
2999         * modules/tanl (License): Likewise.
3000         Source code originally from glibc and Paolo Bonzini. Agreements:
3001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3003
3004 2011-05-05  Bruno Haible  <bruno@clisp.org>
3005
3006         signal: Define sighandler_t.
3007         * lib/signal.in.h (sighandler_t): New type.
3008         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3009         whether sighandler_t is defined.
3010         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3011         * modules/signal (Depends-on): Add extensions.
3012         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3013         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3014         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3015
3016 2011-05-05  Eric Blake  <eblake@redhat.com>
3017
3018         maint: remove useless REPLACE_*_H macros
3019         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3020         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3021         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3022         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3023         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3024         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3025         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3026         * m4/btowc.m4: Update callers.
3027         * m4/dirfd.m4: Likewise.
3028         * m4/duplocale.m4: Likewise.
3029         * m4/fchdir.m4: Likewise.
3030         * m4/fdopendir.m4: Likewise.
3031         * m4/inet_ntop.m4: Likewise.
3032         * m4/inet_pton.m4: Likewise.
3033         * m4/ioctl.m4: Likewise.
3034         * m4/mbrlen.m4: Likewise.
3035         * m4/mbrtowc.m4: Likewise.
3036         * m4/mbsinit.m4: Likewise.
3037         * m4/mbsnrtowcs.m4: Likewise.
3038         * m4/mbsrtowcs.m4: Likewise.
3039         * m4/poll.m4: Likewise.
3040         * m4/setlocale.m4: Likewise.
3041         * m4/wcrtomb.m4: Likewise.
3042         * m4/wcsnrtombs.m4: Likewise.
3043         * m4/wcsrtombs.m4: Likewise.
3044         * m4/wctob.m4: Likewise.
3045         * m4/wcwidth.m4: Likewise.
3046         * modules/posix_spawn: Likewise.
3047         * modules/posix_spawn_file_actions_addclose: Likewise.
3048         * modules/posix_spawn_file_actions_adddup2: Likewise.
3049         * modules/posix_spawn_file_actions_addopen: Likewise.
3050         * modules/posix_spawn_file_actions_destroy: Likewise.
3051         * modules/posix_spawn_file_actions_init: Likewise.
3052         * modules/posix_spawnattr_destroy: Likewise.
3053         * modules/posix_spawnattr_getflags: Likewise.
3054         * modules/posix_spawnattr_getpgroup: Likewise.
3055         * modules/posix_spawnattr_getschedparam: Likewise.
3056         * modules/posix_spawnattr_getschedpolicy: Likewise.
3057         * modules/posix_spawnattr_getsigdefault: Likewise.
3058         * modules/posix_spawnattr_getsigmask: Likewise.
3059         * modules/posix_spawnattr_init: Likewise.
3060         * modules/posix_spawnattr_setflags: Likewise.
3061         * modules/posix_spawnattr_setpgroup: Likewise.
3062         * modules/posix_spawnattr_setschedparam: Likewise.
3063         * modules/posix_spawnattr_setschedpolicy: Likewise.
3064         * modules/posix_spawnattr_setsigdefault: Likewise.
3065         * modules/posix_spawnattr_setsigmask: Likewise.
3066         * modules/posix_spawnp: Likewise.
3067
3068 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3069
3070         Add option to do-release-commit-and-tag to specify branch.
3071         * build-aux/do-release-commit-and-tag: Add --branch.
3072
3073 2011-05-03  Bruno Haible  <bruno@clisp.org>
3074
3075         Avoid unnecessary compilation units, through conditional dependencies.
3076         * modules/accept (Depends-on): Add conditions to the dependencies.
3077         * modules/acosl (Depends-on): Likewise.
3078         * modules/argz (Depends-on): Likewise.
3079         * modules/asinl (Depends-on): Likewise.
3080         * modules/atanl (Depends-on): Likewise.
3081         * modules/atoll (Depends-on): Likewise.
3082         * modules/bind (Depends-on): Likewise.
3083         * modules/btowc (Depends-on): Likewise.
3084         * modules/canonicalize-lgpl (Depends-on): Likewise.
3085         * modules/ceil (Depends-on): Likewise.
3086         * modules/ceilf (Depends-on): Likewise.
3087         * modules/ceill (Depends-on): Likewise.
3088         * modules/chdir-long (Depends-on): Likewise.
3089         * modules/chown (Depends-on): Likewise.
3090         * modules/close (Depends-on): Likewise.
3091         * modules/connect (Depends-on): Likewise.
3092         * modules/cosl (Depends-on): Likewise.
3093         * modules/dirfd (Depends-on): Likewise.
3094         * modules/dprintf (Depends-on): Likewise.
3095         * modules/dprintf-posix (Depends-on): Likewise.
3096         * modules/error (Depends-on): Likewise.
3097         * modules/euidaccess (Depends-on): Likewise.
3098         * modules/expl (Depends-on): Likewise.
3099         * modules/faccessat (Depends-on): Likewise.
3100         * modules/fchdir (Depends-on): Likewise.
3101         * modules/fclose (Depends-on): Likewise.
3102         * modules/fcntl (Depends-on): Likewise.
3103         * modules/fdopendir (Depends-on): Likewise.
3104         * modules/fflush (Depends-on): Likewise.
3105         * modules/floor (Depends-on): Likewise.
3106         * modules/floorf (Depends-on): Likewise.
3107         * modules/floorl (Depends-on): Likewise.
3108         * modules/fnmatch (Depends-on): Likewise.
3109         * modules/fopen (Depends-on): Likewise.
3110         * modules/fprintf-posix (Depends-on): Likewise.
3111         * modules/frexp (Depends-on): Likewise.
3112         * modules/frexp-nolibm (Depends-on): Likewise.
3113         * modules/frexpl (Depends-on): Likewise.
3114         * modules/frexpl-nolibm (Depends-on): Likewise.
3115         * modules/fseek (Depends-on): Likewise.
3116         * modules/fsusage (Depends-on): Likewise.
3117         * modules/ftell (Depends-on): Likewise.
3118         * modules/ftello (Depends-on): Likewise.
3119         * modules/futimens (Depends-on): Likewise.
3120         * modules/getcwd (Depends-on): Likewise.
3121         * modules/getcwd-lgpl (Depends-on): Likewise.
3122         * modules/getdelim (Depends-on): Likewise.
3123         * modules/getdomainname (Depends-on): Likewise.
3124         * modules/getgroups (Depends-on): Likewise.
3125         * modules/gethostname (Depends-on): Likewise.
3126         * modules/getline (Depends-on): Likewise.
3127         * modules/getlogin_r (Depends-on): Likewise.
3128         * modules/getopt-posix (Depends-on): Likewise.
3129         * modules/getpeername (Depends-on): Likewise.
3130         * modules/getsockname (Depends-on): Likewise.
3131         * modules/getsockopt (Depends-on): Likewise.
3132         * modules/getsubopt (Depends-on): Likewise.
3133         * modules/getusershell (Depends-on): Likewise.
3134         * modules/glob (Depends-on): Likewise.
3135         * modules/grantpt (Depends-on): Likewise.
3136         * modules/iconv_open (Depends-on): Likewise.
3137         * modules/iconv_open-utf (Depends-on): Likewise.
3138         * modules/inet_ntop (Depends-on): Likewise.
3139         * modules/inet_pton (Depends-on): Likewise.
3140         * modules/ioctl (Depends-on): Likewise.
3141         * modules/isapipe (Depends-on): Likewise.
3142         * modules/isfinite (Depends-on): Likewise.
3143         * modules/isinf (Depends-on): Likewise.
3144         * modules/lchown (Depends-on): Likewise.
3145         * modules/ldexpl (Depends-on): Likewise.
3146         * modules/link (Depends-on): Likewise.
3147         * modules/linkat (Depends-on): Likewise.
3148         * modules/listen (Depends-on): Likewise.
3149         * modules/logl (Depends-on): Likewise.
3150         * modules/lstat (Depends-on): Likewise.
3151         * modules/mbrlen (Depends-on): Likewise.
3152         * modules/mbrtowc (Depends-on): Likewise.
3153         * modules/mbsinit (Depends-on): Likewise.
3154         * modules/mbsnrtowcs (Depends-on): Likewise.
3155         * modules/mbsrtowcs (Depends-on): Likewise.
3156         * modules/mbtowc (Depends-on): Likewise.
3157         * modules/memcmp (Depends-on): Likewise.
3158         * modules/mkdir (Depends-on): Likewise.
3159         * modules/mkdtemp (Depends-on): Likewise.
3160         * modules/mkfifo (Depends-on): Likewise.
3161         * modules/mkfifoat (Depends-on): Likewise.
3162         * modules/mknod (Depends-on): Likewise.
3163         * modules/mkostemp (Depends-on): Likewise.
3164         * modules/mkostemps (Depends-on): Likewise.
3165         * modules/mkstemp (Depends-on): Likewise.
3166         * modules/mkstemps (Depends-on): Likewise.
3167         * modules/mktime (Depends-on): Likewise.
3168         * modules/nanosleep (Depends-on): Likewise.
3169         * modules/open (Depends-on): Likewise.
3170         * modules/openat (Depends-on): Likewise.
3171         * modules/perror (Depends-on): Likewise.
3172         * modules/poll (Depends-on): Likewise.
3173         * modules/popen (Depends-on): Likewise.
3174         * modules/posix_spawn (Depends-on): Likewise.
3175         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3176         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3177         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3178         * modules/posix_spawnp (Depends-on): Likewise.
3179         * modules/pread (Depends-on): Likewise.
3180         * modules/printf-posix (Depends-on): Likewise.
3181         * modules/ptsname (Depends-on): Likewise.
3182         * modules/putenv (Depends-on): Likewise.
3183         * modules/pwrite (Depends-on): Likewise.
3184         * modules/readline (Depends-on): Likewise.
3185         * modules/readlink (Depends-on): Likewise.
3186         * modules/readlinkat (Depends-on): Likewise.
3187         * modules/recv (Depends-on): Likewise.
3188         * modules/recvfrom (Depends-on): Likewise.
3189         * modules/regex (Depends-on): Likewise.
3190         * modules/remove (Depends-on): Likewise.
3191         * modules/rename (Depends-on): Likewise.
3192         * modules/renameat (Depends-on): Likewise.
3193         * modules/rmdir (Depends-on): Likewise.
3194         * modules/round (Depends-on): Likewise.
3195         * modules/roundf (Depends-on): Likewise.
3196         * modules/roundl (Depends-on): Likewise.
3197         * modules/rpmatch (Depends-on): Likewise.
3198         * modules/select (Depends-on): Likewise.
3199         * modules/send (Depends-on): Likewise.
3200         * modules/sendto (Depends-on): Likewise.
3201         * modules/setenv (Depends-on): Likewise.
3202         * modules/setlocale (Depends-on): Likewise.
3203         * modules/setsockopt (Depends-on): Likewise.
3204         * modules/shutdown (Depends-on): Likewise.
3205         * modules/sigaction (Depends-on): Likewise.
3206         * modules/signbit (Depends-on): Likewise.
3207         * modules/sigprocmask (Depends-on): Likewise.
3208         * modules/sinl (Depends-on): Likewise.
3209         * modules/sleep (Depends-on): Likewise.
3210         * modules/snprintf (Depends-on): Likewise.
3211         * modules/snprintf-posix (Depends-on): Likewise.
3212         * modules/socket (Depends-on): Likewise.
3213         * modules/sprintf-posix (Depends-on): Likewise.
3214         * modules/sqrtl (Depends-on): Likewise.
3215         * modules/stat (Depends-on): Likewise.
3216         * modules/strchrnul (Depends-on): Likewise.
3217         * modules/strdup-posix (Depends-on): Likewise.
3218         * modules/strerror (Depends-on): Likewise.
3219         * modules/strerror_r-posix (Depends-on): Likewise.
3220         * modules/strndup (Depends-on): Likewise.
3221         * modules/strnlen (Depends-on): Likewise.
3222         * modules/strptime (Depends-on): Likewise.
3223         * modules/strsep (Depends-on): Likewise.
3224         * modules/strsignal (Depends-on): Likewise.
3225         * modules/strstr-simple (Depends-on): Likewise.
3226         * modules/strtod (Depends-on): Likewise.
3227         * modules/strtoimax (Depends-on): Likewise.
3228         * modules/strtok_r (Depends-on): Likewise.
3229         * modules/strtoumax (Depends-on): Likewise.
3230         * modules/symlink (Depends-on): Likewise.
3231         * modules/symlinkat (Depends-on): Likewise.
3232         * modules/tanl (Depends-on): Likewise.
3233         * modules/tcgetsid (Depends-on): Likewise.
3234         * modules/tmpfile (Depends-on): Likewise.
3235         * modules/trunc (Depends-on): Likewise.
3236         * modules/truncf (Depends-on): Likewise.
3237         * modules/truncl (Depends-on): Likewise.
3238         * modules/uname (Depends-on): Likewise.
3239         * modules/unlink (Depends-on): Likewise.
3240         * modules/unlockpt (Depends-on): Likewise.
3241         * modules/unsetenv (Depends-on): Likewise.
3242         * modules/usleep (Depends-on): Likewise.
3243         * modules/utimensat (Depends-on): Likewise.
3244         * modules/vasprintf (Depends-on): Likewise.
3245         * modules/vdprintf (Depends-on): Likewise.
3246         * modules/vdprintf-posix (Depends-on): Likewise.
3247         * modules/vfprintf-posix (Depends-on): Likewise.
3248         * modules/vprintf-posix (Depends-on): Likewise.
3249         * modules/vsnprintf (Depends-on): Likewise.
3250         * modules/vsnprintf-posix (Depends-on): Likewise.
3251         * modules/vsprintf-posix (Depends-on): Likewise.
3252         * modules/wcrtomb (Depends-on): Likewise.
3253         * modules/wcscasecmp (Depends-on): Likewise.
3254         * modules/wcscspn (Depends-on): Likewise.
3255         * modules/wcsdup (Depends-on): Likewise.
3256         * modules/wcsncasecmp (Depends-on): Likewise.
3257         * modules/wcsnrtombs (Depends-on): Likewise.
3258         * modules/wcspbrk (Depends-on): Likewise.
3259         * modules/wcsrtombs (Depends-on): Likewise.
3260         * modules/wcsspn (Depends-on): Likewise.
3261         * modules/wcsstr (Depends-on): Likewise.
3262         * modules/wcstok (Depends-on): Likewise.
3263         * modules/wcswidth (Depends-on): Likewise.
3264         * modules/wctob (Depends-on): Likewise.
3265         * modules/wctomb (Depends-on): Likewise.
3266         * modules/wctype (Depends-on): Likewise.
3267         * modules/wcwidth (Depends-on): Likewise.
3268         * modules/write (Depends-on): Likewise.
3269
3270 2011-05-03  Bruno Haible  <bruno@clisp.org>
3271
3272         Support for conditional dependencies.
3273         * doc/gnulib.texi (Module description): Document the syntax of
3274         conditional dependencies.
3275         * gnulib-tool: New option --conditional-dependencies.
3276         (func_usage): Document it.
3277         (cond_dependencies): New variable.
3278         (func_get_automake_snippet_conditional,
3279         func_get_automake_snippet_unconditional): New functions, extracted from
3280         func_get_automake_snippet.
3281         (func_get_automake_snippet): Use them.
3282         (sed_first_32_chars): New variable.
3283         (func_module_shellfunc_name): New function.
3284         (func_module_shellvar_name): New function.
3285         (func_module_conditional_name): New function.
3286         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3287         func_cond_module_condition): New functions.
3288         (func_modules_transitive_closure): Add support for conditional
3289         dependencies.
3290         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3291         conditional automake snippet in an automake conditional.
3292         (func_emit_autoconf_snippets): Emit shell functions that contain the
3293         code for conditional modules.
3294         (func_import, func_create_testdir): Update specification.
3295
3296 2011-05-03  Eric Blake  <eblake@redhat.com>
3297
3298         test-getaddrinfo: report error information
3299         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3300
3301 2011-05-03  Jim Meyering  <meyering@redhat.com>
3302
3303         bootstrap: avoid build failure when $GZIP is set
3304         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3305         program name.  If defined at all, it is supposed to list gzip options.
3306         Reported by Alan Curry in http://debbugs.gnu.org/8609
3307
3308 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3309
3310         readme-release: new module with release instructions
3311         * modules/readme-release: New module.
3312         * top/README-release: New file, from coreutils, grep, diffutils.
3313         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3314
3315 2011-05-02  Eric Blake  <eblake@redhat.com>
3316
3317         fflush: also replace fclose when fixing fflush
3318         * modules/fflush (Depends-on): Add fclose.
3319         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3320         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3321         memstreams with no backing fd.
3322         * doc/posix-functions/fclose.texi (fclose): Document the use of
3323         fflush module to fix the bug.
3324         * tests/test-fclose.c (main): Relax test when fclose is used in
3325         isolation.
3326
3327         fclose: add some tests
3328         * modules/fclose-tests: New test module.
3329         * tests/test-fclose.c: New file.
3330         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3331
3332         fclose: reduced dependencies
3333         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3334         simpler lseek.
3335         * lib/fclose.c (rpl_fclose): Likewise.
3336         Reported by Simon Josefsson.
3337
3338         exit: drop remaining clients
3339         * modules/argmatch (Depends-on): Replace exit with stdlib.
3340         * modules/copy-file (Depends-on): Likewise.
3341         * modules/execute (Depends-on): Likewise.
3342         * modules/exitfail (Depends-on): Likewise.
3343         * modules/obstack (Depends-on): Likewise.
3344         * modules/pagealign_alloc (Depends-on): Likewise.
3345         * modules/pipe-filter-gi (Depends-on): Likewise.
3346         * modules/pipe-filter-ii (Depends-on): Likewise.
3347         * modules/savewd (Depends-on): Likewise.
3348         * modules/spawn-pipe (Depends-on): Likewise.
3349         * modules/wait-process (Depends-on): Likewise.
3350         * modules/xsetenv (Depends-on): Likewise.
3351         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3352         * modules/git-merge-changelog (Depends-on): Likewise.
3353         * modules/long-options (Depends-on): Likewise.
3354         * modules/pt_chown (Depends-on): Likewise.
3355         * modules/sysexits (Depends-on): Likewise.
3356
3357         freading: relax license from LGPLv3+ to LGPLv2+
3358         * modules/freading (License): Relax LGPL version.
3359
3360 2011-05-02  Bruno Haible  <bruno@clisp.org>
3361
3362         fchdir: Remove unused dependencies.
3363         * modules/fchdir (Depends-on): Remove include_next.
3364
3365 2011-05-02  Bruno Haible  <bruno@clisp.org>
3366
3367         gnulib-tool: Refactor.
3368         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3369         from func_emit_autoconf_snippets.
3370         (func_emit_autoconf_snippets): Use it.
3371
3372 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3373
3374         * NEWS: Document removal of 'exit'.
3375         * modules/exit: Remove file.
3376
3377 2011-05-01  Bruno Haible  <bruno@clisp.org>
3378
3379         Update DEPENDENCIES.
3380         * DEPENDENCIES (gettext): Recommend the newest release.
3381         Reported by Simon Josefsson.
3382
3383 2011-05-01  Bruno Haible  <bruno@clisp.org>
3384
3385         gnulib-tool: Reduce code duplication.
3386         * gnulib-tool (func_emit_autoconf_snippets): New function.
3387         (func_import, func_create_testdir): Use it.
3388
3389 2011-04-30  Eric Blake  <eblake@redhat.com>
3390
3391         fclose: don't fail on non-seekable input stream
3392         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3393         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3394         since fflush is allowed to fail in that case.
3395
3396 2011-04-30  Bruno Haible  <bruno@clisp.org>
3397
3398         dup3: cleanup
3399         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3400
3401 2011-04-30  Bruno Haible  <bruno@clisp.org>
3402
3403         netdb: Make it work in C++ mode.
3404         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3405         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3406         module.
3407         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3408         gl_MODULE_INDICATOR_FOR_TESTS.
3409         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3410         * modules/netdb-c++-tests: New file.
3411         * tests/test-netdb-c++.cc: New file.
3412
3413 2011-04-30  Bruno Haible  <bruno@clisp.org>
3414
3415         New modules 'vfscanf', 'vscanf'.
3416         * modules/vfscanf: New file.
3417         * modules/vscanf: New file.
3418         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3419         here.
3420         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3421         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3422
3423 2011-04-30  Bruno Haible  <bruno@clisp.org>
3424
3425         passfd: Add comments.
3426         * lib/passfd.c: Add comments about platforms.
3427
3428 2011-04-30  Bruno Haible  <bruno@clisp.org>
3429
3430         sys_uio: Make <sys/uio.h> self-contained.
3431         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3432         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3433
3434 2011-04-30  Bruno Haible  <bruno@clisp.org>
3435
3436         sys_socket: Ensure 'struct iovec' definition.
3437         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3438         <sys/socket.h>.
3439         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3440
3441 2011-04-30  Bruno Haible  <bruno@clisp.org>
3442
3443         sys_uio: Protect definition of 'struct iovec'.
3444         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3445         it as a C struct.
3446
3447 2011-04-30  Bruno Haible  <bruno@clisp.org>
3448
3449         manywarnings: fix indentation
3450         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3451
3452 2011-04-30  Pádraig Brady <P@draigBrady.com>
3453
3454         manywarnings: add -Wno-missing-field-initializers if needed.
3455         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3456         option if it's needed to allow initialization with { 0, }
3457
3458 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3459
3460         announce-gen: cosmetic improvement
3461         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3462
3463 2011-04-29  Jim Meyering  <meyering@redhat.com>
3464
3465         vc-list-files: indent with spaces, not TABs
3466         * build-aux/vc-list-files: Convert leading TABs to spaces,
3467         to match the style of most other files in gnulib.
3468
3469         announce-gen: indent with spaces, not TABs
3470         * build-aux/announce-gen: Convert all TABs to spaces, to match
3471         the style of most other files in gnulib.
3472
3473 2011-04-29  Eric Blake  <eblake@redhat.com>
3474
3475         quotearg: avoid uninitialized variable use
3476         * lib/quotearg.c (quoting_options_from_style): Initialize
3477         remaining fields, and ensure that custom styles are only used via
3478         quoting_options rather than quoting_style.
3479
3480 2011-04-29  Jim Meyering  <meyering@redhat.com>
3481
3482         maint.mk: remove unused VC-tag variable
3483         * top/maint.mk (VC-tag): Remove unused variable.
3484
3485 2011-04-29  Bruno Haible  <bruno@clisp.org>
3486
3487         netdb: fix gai_strerror replacements
3488         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3489         * modules/netdb: Substitute it.
3490
3491 2011-04-29  Jim Meyering  <meyering@redhat.com>
3492
3493         test-getcwd.c: avoid new set-but-not-used warning
3494         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3495         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3496         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3497         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3498
3499         test-hash.c: avoid a new shadowing warning
3500         * tests/test-hash.c (main): Don't shadow "dup".
3501
3502 2011-04-28  Eric Blake  <eblake@redhat.com>
3503
3504         getaddrinfo: fix gai_strerror signature
3505         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3506         and work around mingw with UNICODE defined.
3507         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3508         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3509         * modules/netdb (Makefile.am): Substitute it.
3510         * lib/netdb.in.h (gai_strerror): Declare replacement.
3511         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3512         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3513         the fix.
3514
3515         getsockopt: avoid compiler warning
3516         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3517         Reported by Matthias Bolte.
3518
3519         tests: drop unused link dependency
3520         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3521         * modules/dirent-safer-tests (Makefile.am): Likewise.
3522         * modules/fdopendir-tests (Makefile.am): Likewise.
3523         * modules/mkfifoat-tests (Makefile.am): Likewise.
3524         * modules/openat-safer-tests (Makefile.am): Likewise.
3525         * modules/openat-tests (Makefile.am): Likewise.
3526         * modules/readlinkat-tests (Makefile.am): Likewise.
3527         * modules/symlinkat-tests (Makefile.am): Likewise.
3528         * modules/linkat-tests (Makefile.am): Likewise.
3529         (Depends-on): Switch to filenamecat-lgpl.
3530         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3531         LIBINTL.
3532         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3533         * tests/test-linkat.c (main): Don't require xalloc.
3534
3535         hash, mgetgroups: drop xalloc dependency
3536         * lib/hash.c (includes): Adjust includes.
3537         * lib/mgetgroups.c (includes): Likewise.
3538         (xgetgroups): Move...
3539         * lib/xgetgroups.c: ...to new file.
3540         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3541         * modules/xgetgroups: New file, split from...
3542         * modules/mgetgroups: ...here.
3543         (Depends-on): Add xalloc-oversized.
3544         * modules/hash (Depends-on): Likewise.
3545         * modules/hash-tests (Depends-on): Drop xalloc.
3546         (test_hash_LDADD): Drop unused library.
3547         * tests/test-hash.c (main): Break xalloc dependency.
3548         (includes): Drop unused include.
3549
3550         xalloc-oversized: new module
3551         * modules/xalloc-oversized: New module.
3552         * modules/xalloc (Depends-on): Add it.
3553         * lib/xalloc.h (xalloc_oversized): Move...
3554         * lib/xalloc-oversized.h: ...into new file.
3555
3556         utimecmp: drop dependency on xmalloc
3557         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3558         due to memory pressure.
3559         * modules/utimecmp (Depends-on): Drop xalloc.
3560
3561 2011-04-27  Eric Blake  <eblake@redhat.com>
3562
3563         getcwd: fix mingw bugs
3564         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3565         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3566         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3567
3568 2011-04-27  Bruno Haible  <bruno@clisp.org>
3569
3570         mkstemps: Ensure declaration on MacOS X 10.5.
3571         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3572         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3573         MacOS X.
3574
3575 2011-04-27  Bruno Haible  <bruno@clisp.org>
3576
3577         mkstemp: More documentation.
3578         * doc/posix-functions/mkstemp.texi: Document header file problem on
3579         MacOS X.
3580
3581 2011-04-27  Bruno Haible  <bruno@clisp.org>
3582
3583         mkstemp: Tweak configure message when cross-compiling.
3584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3585         result as a guess.
3586
3587 2011-04-27  Bruno Haible  <bruno@clisp.org>
3588
3589         clean-temp: Clarify what it does.
3590         * lib/clean-temp.h: Add more comments.
3591         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3592         module.
3593         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3594         * doc/glibc-functions/mkstemps.texi: Likewise.
3595         * doc/glibc-functions/mkostemps.texi: Likewise.
3596
3597 2011-04-27  Eric Blake  <eblake@redhat.com>
3598
3599         fchdir: avoid extra chdir and fix test
3600         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3601         getcwd-lgpl.
3602         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3603         have to be canonical.
3604         (canonicalize_file_name): Drop unused macro.
3605         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3606
3607         filenamecat-lgpl: fix licence
3608         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3609         when it was first created.
3610
3611         linkat, renameat: add missing dependency
3612         * modules/linkat (Depends-on): Require getcwd-lgpl.
3613         * modules/renameat (Depends-on): Likewise.
3614
3615         tests: reduce dependencies
3616         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3617         * tests/test-renameat.c (main): Likewise.
3618         * modules/linkat-tests (Depends-on): Relax dependency.
3619         * modules/renameat-tests (Depends-on): Likewise.
3620         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3621         dependency explicit.
3622
3623         save-cwd: reduce default dependency
3624         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3625         * lib/save-cwd.c: Update comments.
3626         * NEWS: Document the semantic change.
3627
3628         getcwd: enhance tests
3629         * tests/test-getcwd-lgpl.c: New file, taken from...
3630         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3631         repeat long path stress tests from m4 probe.
3632         * modules/getcwd-lgpl-tests: New module.
3633         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3634         * m4/getcwd-abort-bug.m4: Update comment.
3635         * m4/getcwd-path-max.m4: Likewise.
3636
3637         getcwd-lgpl: new module
3638         * modules/getcwd-lgpl: New module.
3639         * lib/getcwd-lgpl.c: New file.
3640         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3641         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3642         * modules/getcwd (configure.ac): Set C witness.
3643         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3644
3645         getcwd: tweak comments
3646         * m4/getcwd-abort-bug.m4: Fix comments.
3647         * m4/getcwd-path-max.m4: Likewise.
3648         * m4/getcwd.m4: Likewise.
3649
3650 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3651         and Eric Blake  <eblake@redhat.com>
3652
3653         mkstemp: replace if system version uses wrong permissions
3654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3655         read/write mode bits set in file created by mkstemp.
3656         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3657
3658 2011-04-27  Eric Blake  <eblake@redhat.com>
3659
3660         passfd: avoid compiler warning
3661         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3662         Reported by Laine Stump.
3663
3664 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3665
3666         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3667         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3668
3669 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3670         and Eric Blake  <eblake@redhat.com>
3671
3672         mkstemp: mention clean-temp module
3673         * lib/mkstemp.c: Add comment.
3674         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3675
3676 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3677
3678         inttypes: also provide default values for 32-bit tests
3679         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3680         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3681
3682 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         strtoumax: remove dependency on strtoimax
3685         This is like the strtoull change of yesterday.
3686         * modules/strtoumax (Files): Add lib/strtoimax.c.
3687         (Depends-on): Remove strtoimax and add verify.
3688
3689         inttypes-incomplete: new module
3690         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3691         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3692         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3693         of gl_INTTYPES_H.
3694         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3695         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3696         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3697         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3698         * modules/strtoumax, modules/xstrtol (Depends-on):
3699         Depend on inttypes-incomplete, not inttypes.
3700         * modules/inttypes-incomplete: New module, containing the contents
3701         of the old modules/inttypes module, except that the Files: section
3702         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3703         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3704         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3705         (Depends-on): Depend only on inttypes-incomplete.
3706         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3707
3708         inttypes: omit now-redundant strtoimax and strtoumax work
3709         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3710         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3711
3712         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3713         This supports apps that need pointers to strtoimax and strtoumax,
3714         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3715         nonexistent functions.  See
3716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3717         et seq.
3718         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3719         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3720         a macro.
3721         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3722
3723 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3724
3725         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3726
3727 2011-04-25  Bruno Haible  <bruno@clisp.org>
3728
3729         strtol, strtoul: Mark modules as obsolete.
3730         * modules/strtol (Status, Notice): New sections.
3731         * modules/strtoul (Status, Notice): New sections.
3732
3733 2011-04-25  Bruno Haible  <bruno@clisp.org>
3734
3735         strtod: Remove check for strtod, unless supporting old platforms.
3736         * modules/strtod-obsolete: New file.
3737         * m4/strtod-obsolete.m4: New file.
3738         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3739         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3740         * modules/strtod (Depends-on): Add strtod-obsolete.
3741         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3742
3743 2011-04-25  Bruno Haible  <bruno@clisp.org>
3744
3745         strcase: Make module obsolete.
3746         * modules/strcase (Status, Notice): New sections.
3747
3748 2011-04-25  Bruno Haible  <bruno@clisp.org>
3749
3750         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3751         * modules/dup2-obsolete: New file.
3752         * m4/dup2-obsolete.m4: New file.
3753         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3754         gl_FUNC_DUP2_OBSOLETE is not also defined.
3755         * modules/dup2 (Depends-on): Add dup2-obsolete.
3756         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3757
3758 2011-04-25  Bruno Haible  <bruno@clisp.org>
3759
3760         strnlen: Avoid memchr related link error on old obsolete platforms.
3761         * modules/memchr-obsolete: New file.
3762         * m4/memchr-obsolete.m4: New file.
3763         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3764         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3765         * modules/memchr (Depends-on): Add memchr-obsolete.
3766         * modules/strnlen (Depends-on): Likewise.
3767         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3768
3769 2011-04-25  Jim Meyering  <meyering@redhat.com>
3770
3771         maint.mk: makefile_at_at_check extend and clean up
3772         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3773         in addition to */Makefile.am.
3774         Exempt legitimate uses of @VAR@ notation, e.g.,
3775         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3776         Remove obsolete coreutils-specific comment.
3777         Prompted by discussion here:
3778         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3779
3780 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3781
3782         strtoul: remove dependency on strtol
3783         This is so that 'configure' need not check for strtol merely because
3784         the application needs strtoul.
3785         * modules/strtoul (Files): Add lib/strtol.c.
3786         (Depends-on): Remove strtol.
3787
3788         strtoull: remove dependency on strtoul
3789         This is like the strtoll change.
3790         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3791         (Depends-on): Remove strtoul.
3792
3793         strtoll: remove dependency on strtol
3794         This is so that 'configure' need not check for strtol merely because
3795         the application needs strtoll.
3796         * modules/strtoll (Files): Add lib/strtol.c.
3797         (Depends-on): Remove strtol.
3798
3799 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3800
3801         inttypes: Move some configure check to module 'imaxdiv'.
3802         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3803         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3804         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3805
3806 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3807
3808         inttypes: Move some configure check to module 'imaxabs'.
3809         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3810         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3811         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3812
3813 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         inttypes: Remove configure tests that are not needed since 2009-12-31.
3816         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3817         gl_cv_header_working_inttypes_h.
3818
3819 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3820
3821         * modules/strnlen (Depends-on): Remove memchr.
3822         The strnlen implementation doesn't need the memchr module's fixes; see
3823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3824
3825         strtol: remove dependency on wchar
3826         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3827         * modules/strtol (Depends-on): Remove wchar.
3828
3829 2011-04-21  Eric Blake  <eblake@redhat.com>
3830
3831         passfd: fix test regression on Linux
3832         * modules/passfd-tests (configure.ac): Correct socketpair check.
3833
3834         passfd: speed up configure and drop unused code
3835         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3836         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3837         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3838         Instead of probing at configure for unix_scm_rights_bsd44_way,
3839         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3840         check to a struct member probe.
3841         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3842         (sendfd, recvfd): Update preprocessor checks.
3843         * modules/passfd (Files): Reflect rename, and drop unused file.
3844         (Depends-on): Drop unused dependency.
3845
3846         passfd: allow compilation on mingw
3847         * modules/sys_socket (Depends-on): Add sys_uio.
3848         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3849         iovec and a minimal struct msghdr.
3850         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3851         * tests/test-sys_socket.c (main): Enhance test.
3852         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3853         guaranteed to provide what we need.
3854         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3855         * modules/passfd-tests (Depends-on): Add sys_wait.
3856         * tests/test-passfd.c (main): Skip test on mingw, for now.
3857         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3858         partial 'struct msghdr' implementation.
3859
3860         sys_uio: new module
3861         * modules/sys_uio: New module.
3862         * modules/sys_uio-tests: Likewise.
3863         * lib/sys_uio.in.h: New file.
3864         * m4/sys_uio_h.m4: Likewise.
3865         * tests/test-sys_uio.c: Likewise.
3866         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3867         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3868
3869 2011-04-20  Jim Meyering  <meyering@redhat.com>
3870
3871         useless-if-before-free: avoid false-positive
3872         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3873         disjunct so that it too requires a terminating ";".  Without that,
3874         this script would identify as useless one statement from gcc that
3875         was not:
3876           if (aligned_ptr)
3877             free (((void **) aligned_ptr) [-1]);
3878
3879 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3880
3881         doc: update users.txt.
3882         * users.txt: Add barcode.
3883
3884 2011-04-19  Bruno Haible  <bruno@clisp.org>
3885
3886         ioctl: Remove link dependency on native Windows.
3887         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3888         (gl_close_fn, gl_ioctl_fn): New types.
3889         (struct fd_hook): Renamed from struct close_hook. Change type of
3890         private_close_fn field. Add private_ioctl_fn field.
3891         (close_hook_fn): Add parameter for primary close method.
3892         (execute_close_hooks, execute_all_close_hooks): Likewise.
3893         (ioctl_hook_fn): New type.
3894         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3895         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3896         argument.
3897         (unregister_fd_hook): Renamed from unregister_close_hook.
3898         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3899         Don't include <unistd.h>.
3900         (close): Remove undef.
3901         (anchor): Update.
3902         (execute_close_hooks): Add argument for primary close method.
3903         (execute_all_close_hooks): Likewise.
3904         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3905         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3906         argument. Allow each argument to be NULL.
3907         (unregister_fd_hook): Renamed from unregister_close_hook.
3908         * lib/close.c (rpl_close): Pass 'close' function pointer to
3909         execute_all_close_hooks.
3910         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3911         (primary_ioctl): New function.
3912         (ioctl): Don't call ioctlsocket here. Instead, call
3913         execute_all_ioctl_hooks.
3914         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3915         close method.
3916         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3917         (fd_sockets_hook): Renamed from close_sockets_hook.
3918         (gl_sockets_startup, gl_sockets_cleanup): Update.
3919         * modules/fd-hook: Renamed from modules/close-hook. Update.
3920         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3921         * modules/sockets (Depends-on): Likewise.
3922         * modules/ioctl (Depends-on): Add fd-hook.
3923         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3924         GNULIB_SOCKET.
3925
3926 2011-04-19  Bruno Haible  <bruno@clisp.org>
3927
3928         Move the support of O_NONBLOCK in open() to the 'open' module.
3929         * modules/nonblocking (Depends-on): Remove 'open'.
3930         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3931         gl_cv_have_open_O_NONBLOCK.
3932         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3933         O_NONBLOCK support.
3934         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3935
3936 2011-04-17  Bruno Haible  <bruno@clisp.org>
3937
3938         pipe2: Simplify code.
3939         * lib/pipe2.c (pipe2): Reduce code duplication.
3940
3941 2011-04-17  Bruno Haible  <bruno@clisp.org>
3942
3943         nonblocking: Add comment.
3944         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3945
3946 2011-04-17  Bruno Haible  <bruno@clisp.org>
3947
3948         nonblocking: Add tests for sockets.
3949         * tests/test-nonblocking-socket.sh: New file.
3950         * tests/test-nonblocking-socket-main.c: New file.
3951         * tests/test-nonblocking-socket-child.c: New file.
3952         * tests/test-nonblocking-socket.h: New file.
3953         * tests/socket-server.h: New file.
3954         * tests/socket-client.h: New file.
3955         * modules/nonblocking-socket-tests: New file.
3956         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3957
3958 2011-04-17  Bruno Haible  <bruno@clisp.org>
3959
3960         nonblocking: Add tests for pipes.
3961         * tests/test-nonblocking-pipe.sh: New file.
3962         * tests/test-nonblocking-pipe-main.c: New file.
3963         * tests/test-nonblocking-pipe-child.c: New file.
3964         * tests/test-nonblocking-pipe.h: New file.
3965         * tests/test-nonblocking-writer.h: New file.
3966         * tests/test-nonblocking-reader.h: New file.
3967         * tests/test-nonblocking-misc.h: New file.
3968         * modules/nonblocking-pipe-tests: New file.
3969         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3970
3971 2011-04-16  Bruno Haible  <bruno@clisp.org>
3972
3973         gettext: Clarify the needed programmer actions.
3974         * modules/gettext (Notice): New field.
3975         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3976
3977 2011-04-16  Bruno Haible  <bruno@clisp.org>
3978
3979         strchrnul: Tweak last commit.
3980         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3981         bug.
3982         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3983         as in _GL_FUNCDECL_SYS.
3984         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3985         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3986
3987 2011-04-15  Eric Blake  <eblake@redhat.com>
3988
3989         strchrnul: work around cygwin bug
3990         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3991         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3993         * modules/string (Makefile.am): Substitute it.
3994         * lib/string.in.h (strchrnul): Use it.
3995
3996 2011-04-15  Bruno Haible  <bruno@clisp.org>
3997
3998         Don't require lib/stdio-write.c when only module 'stdio' is used.
3999         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4000         invocation.
4001         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4002
4003 2011-04-14  Bruno Haible  <bruno@clisp.org>
4004
4005         Support non-blocking pipe I/O in read() on native Windows.
4006         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4007         (read): New declaration.
4008         * lib/read.c: New file.
4009         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4010         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4011         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4012         vscanf): New declarations.
4013         * lib/stdio-read.c: New file.
4014         * m4/read.m4: New file.
4015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4016         REPLACE_READ.
4017         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4018         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4019         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4020         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4021         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4022         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4023         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4024         * modules/read: New file.
4025         * modules/nonblocking (Files): Add lib/stdio-read.c.
4026         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4027         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4028         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4029         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4030         * modules/pread (Depends-on): Add read.
4031         * modules/safe-read (Depends-on): Likewise.
4032         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4033         gets, scanf, vfscanf, vscanf): Verify signatures.
4034         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4035         problem with non-blocking pipes.
4036         * doc/posix-functions/fgetc.texi: Likewise.
4037         * doc/posix-functions/fgets.texi: Likewise.
4038         * doc/posix-functions/fread.texi: Likewise.
4039         * doc/posix-functions/fscanf.texi: Likewise.
4040         * doc/posix-functions/getc.texi: Likewise.
4041         * doc/posix-functions/getchar.texi: Likewise.
4042         * doc/posix-functions/gets.texi: Likewise.
4043         * doc/posix-functions/scanf.texi: Likewise.
4044         * doc/posix-functions/vfscanf.texi: Likewise.
4045         * doc/posix-functions/vscanf.texi: Likewise.
4046
4047 2011-04-14  Bruno Haible  <bruno@clisp.org>
4048
4049         Support non-blocking pipe I/O in write() on native Windows.
4050         * lib/write.c (rpl_write): Split a write request that failed merely
4051         because the byte count was larger than the pipe buffer's size.
4052         * doc/posix-functions/write.texi: Mention the problem with large byte
4053         counts.
4054
4055 2011-04-14  Bruno Haible  <bruno@clisp.org>
4056
4057         wchar: Ensure that wchar_t gets defined on uClibc.
4058         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4059         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4060
4061 2011-04-13  Bruno Haible  <bruno@clisp.org>
4062
4063         safe-write, full-read: Avoid unnecessary compilation units.
4064         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4065         (Depends-on): Remove safe-read. Add ssize_t.
4066         * modules/full-read (Files): Add lib/full-write.c.
4067         (Depends-on): Add full-write.
4068
4069 2011-04-13  Bruno Haible  <bruno@clisp.org>
4070
4071         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4072         * modules/pwrite (Depends-on): Add 'write'.
4073
4074 2011-04-13  Bruno Haible  <bruno@clisp.org>
4075
4076         Support non-blocking pipe I/O in write() on native Windows.
4077         * lib/unistd.in.h (write): Enable replacement also if
4078         GNULIB_UNISTD_H_NONBLOCKING is 1.
4079         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4080         (rpl_write): When failing to write on a non-blocking pipe, change
4081         errno from ENOSPC to EAGAIN.
4082         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4083         putchar, puts, vfprintf, vprintf): Enable replacement also if
4084         GNULIB_STDIO_H_NONBLOCKING is 1.
4085         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4086         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4087         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4088         CALL_WITH_SIGPIPE_EMULATION.
4089         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4090         * m4/nonblocking.m4: New file.
4091         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4092         for non-blocking I/O support.
4093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4094         GNULIB_UNISTD_H_NONBLOCKING.
4095         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4096         required for non-blocking I/O support.
4097         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4098         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4099         lib/stdio-write.c, m4/asm-underscore.m4.
4100         (Depends-on): Add stdio, unistd.
4101         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4102         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4103         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4104         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4105         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4106         problem with non-blocking pipes.
4107         * doc/posix-functions/fputc.texi: Likewise.
4108         * doc/posix-functions/fputs.texi: Likewise.
4109         * doc/posix-functions/fwrite.texi: Likewise.
4110         * doc/posix-functions/printf.texi: Likewise.
4111         * doc/posix-functions/putc.texi: Likewise.
4112         * doc/posix-functions/putchar.texi: Likewise.
4113         * doc/posix-functions/puts.texi: Likewise.
4114         * doc/posix-functions/vfprintf.texi: Likewise.
4115         * doc/posix-functions/vprintf.texi: Likewise.
4116         * doc/posix-functions/write.texi: Likewise.
4117
4118 2011-04-10  Jim Meyering  <meyering@redhat.com>
4119
4120         maint.mk: prohibit doubled words
4121         Detect them also when they're separated by a newline.
4122         There are 3 ways to customize it:
4123           - disable the test on a per file basis, as usual with rules using
4124             $(VC_LIST_EXCEPT)
4125           - replace the default doubled-word-selecting regexp (affects all files)
4126           - ignore a particular file-vs-doubled-word match
4127         I nearly used that last one to ignore the "is is" match in
4128         coreutils' NEWS file, since the text was "ls -is is ..."
4129         To do that, I would have added this line to cfg.mk:
4130           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4131         but it would have ignored any "is is" match in NEWS.
4132         Low probability, but still...
4133         Instead, I changed the text, slightly:
4134           -  ls -is is now consistent with ls -lis in ignoring values returned
4135           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4136         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4137         (prohibit_doubled_word_): Define.
4138         (sc_prohibit_doubled_word): New rule.
4139         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4140
4141 2011-04-10  Jim Meyering  <meyering@redhat.com>
4142
4143         maint: fix doubled-word typo in comment
4144         * m4/gethostname.m4: s/is is/it is/
4145         * m4/getdomainname.m4: Likewise.
4146
4147 2011-04-10  Jim Meyering  <meyering@redhat.com>
4148
4149         maint: remove doubled word: s/it it/it/
4150         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4151
4152 2011-04-10  Jim Meyering  <meyering@redhat.com>
4153
4154         maint.mk: remove useless semicolon and backslash
4155         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4156         semicolon and backslash.
4157
4158 2011-04-10  Bruno Haible  <bruno@clisp.org>
4159
4160         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4161         * modules/stdint-tests (Depends-on): Add wchar.
4162
4163 2011-04-10  Jim Meyering  <meyering@redhat.com>
4164
4165         maint: remove doubled words in comments, e.g., s/a a/a/
4166         * lib/strptime.c (day_of_the_week): s/the the/the/
4167         * tests/test-chown.h (test_chown): s/a a/a/
4168
4169         test-chown.h: correct a cast
4170         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4171         when the destination is a stat.st_gid.
4172
4173 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4174
4175         getaddrinfo: Fix test for sa_len member.
4176         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4177         include <sys/types.h> before <sys/socket.h>.
4178
4179 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4180
4181         maint: change "can not" to "cannot"
4182         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4183         boundaries.
4184
4185 2011-04-09  Jim Meyering  <meyering@redhat.com>
4186
4187         maint: change "a a" to "a"
4188         * tests/test-lchown.h (test_lchown): s/a a/a/
4189
4190         maint.mk: prohibit \<the the\>
4191         * top/maint.mk (sc_prohibit_the_the): New rule.
4192
4193         maint: fix "the the" in comment
4194         * lib/count-one-bits.h: s/the the/the/
4195
4196         maint: change "can not" to "cannot"
4197         But do not change the occurrences in maintain.texi or in
4198         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4199         * doc/gnulib-tool.texi: s/can not/cannot/
4200         * doc/posix-functions/accept.texi (accept): Likewise.
4201         * doc/posix-functions/socket.texi (socket): Likewise.
4202         * lib/mbrtowc.c: Likewise.
4203
4204         maint.mk: prohibit use of "can not"
4205         * top/maint.mk (sc_prohibit_can_not): New rule.
4206         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4207
4208 2011-04-09  Bruno Haible  <bruno@clisp.org>
4209
4210         careadlinkat: Guard against misuse of careadlinkatcwd.
4211         * lib/careadlinkat.c: Include <stdlib.h>.
4212         (careadlinkatcwd): Check that the fd argument is as expected.
4213
4214 2011-04-09  Bruno Haible  <bruno@clisp.org>
4215
4216         careadlinkat: Use common coding style.
4217         * lib/careadlinkat.c: Move gnulib includes after system includes.
4218
4219 2011-04-09  Bruno Haible  <bruno@clisp.org>
4220
4221         careadlinkat: Clarify specification.
4222         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4223         (careadlinkatcwd): Add comment.
4224         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4225
4226 2011-04-09  Bruno Haible  <bruno@clisp.org>
4227
4228         areadlinkat: Avoid link error on many platforms.
4229         * modules/areadlinkat (Depends-on): Add areadlink.
4230
4231 2011-04-09  Bruno Haible  <bruno@clisp.org>
4232
4233         allocator, careadlinkat: Fix double-inclusion guard.
4234         * lib/allocator.h: Fix double-inclusion guard.
4235         * lib/careadlinkat.h: Likewise.
4236
4237 2011-04-09  Bruno Haible  <bruno@clisp.org>
4238
4239         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4240         * lib/relocwrapper.c: Update dependencies hierarchy.
4241         * build-aux/install-reloc: Update list of files to be compiled.
4242         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4243         lib/allocator.[hc].
4244
4245 2011-04-08  Eric Blake  <eblake@redhat.com>
4246
4247         strftime: silence gnulib-tool warning
4248         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4249
4250 2011-04-08  Bruno Haible  <bruno@clisp.org>
4251
4252         verify: Fix syntax error with GCC 4.6 in C++ mode.
4253         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4254         (HAVE_STATIC_ASSERT): New macro.
4255         (verify_true, verify): Use 'static_assert' if it is supported and
4256         '_Static_assert' is not supported.
4257
4258 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         allocator: New module.
4261         * modules/allocator, lib/allocator.c: New files.
4262         * lib/allocator.h (stdlib_allocator): New decl.
4263         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4264         Remove.  Do not include <stdlib.h>.
4265         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4266         * modules/careadlinkat (Files): Remove lib/allocator.h.
4267         (Depends-on): Add allocator.
4268
4269         stdlib: let modules use system malloc, realloc
4270         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4271         if !_GL_USE_STDLIB_ALLOC.
4272         (malloc, realloc): Limit this change to a smaller scope.
4273
4274         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4275         (malloc, realloc): Don't #undef; no longer needed.
4276         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4277         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4278         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4279         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4280         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4281         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4282         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4283         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4284
4285         careadlinkat: rename members to avoid problem
4286         * lib/allocator.h (struct allocator): Rename members from
4287         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4288         and realloc are #define'd.  Reported by Eric Blake in
4289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4290         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4291
4292 2011-04-08  Eric Blake  <eblake@redhat.com>
4293
4294         nonblocking: reduce dependency
4295         * tests/test-nonblocking.c: Only test sockets when in use.
4296         * modules/nonblocking-tests (Depends-on): Drop socket.
4297         (Makefile.am): Link even if sockets are not present.
4298         * modules/pipe2-tests (Makefile.am): Likewise.
4299         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4300
4301         pipe2: fix O_NONBLOCK support on mingw
4302         * modules/pipe2 (Depends-on): Add nonblocking.
4303         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4304         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4305         * tests/test-nonblocking.c (main): Likewise.
4306         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4307
4308         fcntl-h: fix O_ACCMODE on cygwin
4309         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4310         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4311
4312         pipe-filter: drop O_NONBLOCK workarounds
4313         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4314         * modules/pipe-filter-ii (Depends-on): Likewise.
4315         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4316
4317         nonblocking: provide O_NONBLOCK for mingw
4318         * modules/nonblocking (Depends-on): Add open.
4319         (configure.ac): Set new witness macro.
4320         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4321         * modules/fcntl-h (Makefile.am): Substitute it.
4322         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4323         nonblocking module is in use.
4324         * lib/nonblocking.c: Adjust portability test.
4325         * lib/open.c (open): Don't let native open see gnulib flag.
4326         * tests/test-fcntl-h.c (main): Enhance test.
4327         * tests/test-open.h (test_open): Likewise.
4328         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4329
4330         careadlinkat: fix compilation error on mingw
4331         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4332         within struct allocator.
4333
4334 2011-04-06  Eric Blake  <eblake@redhat.com>
4335
4336         binary-io: relicense under LGPLv2+
4337         * modules/binary-io (License): Relax to LGPLv2+.
4338         Requested for libvirt, and required by pipe2.
4339
4340 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4341
4342         verify: use _Static_assert if available
4343         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4344         (verify_true, verify): Use it if available.  This generates better
4345         diagnostics with GCC 4.6.0 and later.
4346
4347 2011-04-05  Bruno Haible  <bruno@clisp.org>
4348
4349         Remove leftover generated .h files after config.status changed.
4350
4351         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4352         GL_GENERATE_ALLOCA_H.
4353         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4354         GL_GENERATE_ALLOCA_H evaluates to false.
4355
4356         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4357         GL_GENERATE_ARGZ_H.
4358         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4359         evaluates to false.
4360
4361         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4362         GL_GENERATE_BYTESWAP_H.
4363         * modules/byteswap (Makefile.am): Remove byteswap.h if
4364         GL_GENERATE_BYTESWAP_H evaluates to false.
4365
4366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4367         GL_GENERATE_ERRNO_H.
4368         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4369         evaluates to false.
4370
4371         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4372         GL_GENERATE_FLOAT_H.
4373         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4374         evaluates to false.
4375
4376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4377         GL_GENERATE_FNMATCH_H.
4378         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4379         GL_GENERATE_FNMATCH_H evaluates to false.
4380
4381         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4382         GL_GENERATE_GLOB_H.
4383         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4384         evaluates to false.
4385
4386         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4387         automake conditional GL_GENERATE_ICONV_H.
4388         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4389         evaluates to false.
4390
4391         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4392         GL_GENERATE_NETINET_IN_H.
4393         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4394         GL_GENERATE_NETINET_IN_H evaluates to false.
4395
4396         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4397         conditional GL_GENERATE_PTHREAD_H.
4398         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4399         * modules/pthread (Makefile.am): Remove pthread.h if
4400         GL_GENERATE_PTHREAD_H evaluates to false.
4401
4402         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4403         GL_GENERATE_SCHED_H.
4404         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4405         evaluates to false.
4406
4407         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4408         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4409         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4410         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4411
4412         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4413         GL_GENERATE_STDARG_H.
4414         * modules/stdarg (Makefile.am): Remove stdarg.h if
4415         GL_GENERATE_STDARG_H evaluates to false.
4416
4417         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4418         GL_GENERATE_STDBOOL_H.
4419         * modules/stdbool (Makefile.am): Remove stdbool.h if
4420         GL_GENERATE_STDBOOL_H evaluates to false.
4421
4422         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4423         conditional GL_GENERATE_STDDEF_H.
4424         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4425         * modules/stddef (Makefile.am): Remove stddef.h if
4426         GL_GENERATE_STDDEF_H evaluates to false.
4427
4428         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4429         GL_GENERATE_STDINT_H.
4430         * modules/stdint (Makefile.am): Remove stdint.h if
4431         GL_GENERATE_STDINT_H evaluates to false.
4432
4433         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4434         GL_GENERATE_SYSEXITS_H.
4435         * modules/sysexits (Makefile.am): Remove sysexits.h if
4436         GL_GENERATE_SYSEXITS_H evaluates to false.
4437
4438         Reported by Karl Berry and Ralf Wildenhues.
4439
4440 2011-04-05  Bruno Haible  <bruno@clisp.org>
4441
4442         Ensure to rebuild generated .h files when config.status has changed.
4443         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4444         config.status.
4445         * modules/ctype (Makefile.am): Likewise.
4446         * modules/dirent (Makefile.am): Likewise.
4447         * modules/errno (Makefile.am): Likewise.
4448         * modules/fcntl-h (Makefile.am): Likewise.
4449         * modules/float (Makefile.am): Likewise.
4450         * modules/getopt-posix (Makefile.am): Likewise.
4451         * modules/glob (Makefile.am): Likewise.
4452         * modules/iconv-h (Makefile.am): Likewise.
4453         * modules/inttypes (Makefile.am): Likewise.
4454         * modules/langinfo (Makefile.am): Likewise.
4455         * modules/locale (Makefile.am): Likewise.
4456         * modules/math (Makefile.am): Likewise.
4457         * modules/netdb (Makefile.am): Likewise.
4458         * modules/netinet_in (Makefile.am): Likewise.
4459         * modules/poll-h (Makefile.am): Likewise.
4460         * modules/pthread (Makefile.am): Likewise.
4461         * modules/pty (Makefile.am): Likewise.
4462         * modules/sched (Makefile.am): Likewise.
4463         * modules/search (Makefile.am): Likewise.
4464         * modules/selinux-h (Makefile.am): Likewise.
4465         * modules/signal (Makefile.am): Likewise.
4466         * modules/spawn (Makefile.am): Likewise.
4467         * modules/stdarg (Makefile.am): Likewise.
4468         * modules/stdbool (Makefile.am): Likewise.
4469         * modules/stddef (Makefile.am): Likewise.
4470         * modules/stdint (Makefile.am): Likewise.
4471         * modules/stdio (Makefile.am): Likewise.
4472         * modules/stdlib (Makefile.am): Likewise.
4473         * modules/string (Makefile.am): Likewise.
4474         * modules/strings (Makefile.am): Likewise.
4475         * modules/sys_file (Makefile.am): Likewise.
4476         * modules/sys_ioctl (Makefile.am): Likewise.
4477         * modules/sys_select (Makefile.am): Likewise.
4478         * modules/sys_socket (Makefile.am): Likewise.
4479         * modules/sys_stat (Makefile.am): Likewise.
4480         * modules/sys_time (Makefile.am): Likewise.
4481         * modules/sys_times (Makefile.am): Likewise.
4482         * modules/sys_utsname (Makefile.am): Likewise.
4483         * modules/sys_wait (Makefile.am): Likewise.
4484         * modules/sysexits (Makefile.am): Likewise.
4485         * modules/termios (Makefile.am): Likewise.
4486         * modules/time (Makefile.am): Likewise.
4487         * modules/unistd (Makefile.am): Likewise.
4488         * modules/wchar (Makefile.am): Likewise.
4489         * modules/wctype-h (Makefile.am): Likewise.
4490         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4491
4492 2011-04-05  Bruno Haible  <bruno@clisp.org>
4493
4494         pipe2: Relicense under LGPLv2+.
4495         * modules/pipe2 (License): Change to LGPLv2+.
4496         Requested by Eric Blake, for libvirt.
4497
4498 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4499
4500         bootstrap: compute gnulib_extra_files after updating build_aux
4501         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4502         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4503
4504 2011-04-05  Eric Blake  <eblake@redhat.com>
4505
4506         bootstrap: preserve git whitelist item sorting
4507         * build-aux/bootstrap (sort_patterns): New function.
4508         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4509
4510 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4511
4512         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4513         sc_space_tab check.
4514
4515 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4516
4517         areadlink, areadlinkat: rewrite in terms of careadlinkat
4518         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4519         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4520         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4521         (malloc, realloc): Remove #undefs.
4522         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4523         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4524         readlink, ssize_t, stdint, unistd.
4525         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4526         areadlink, stdint.
4527
4528         careadlinkat: new module
4529         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4530         * modules/careadlinkat: New files, written by me with
4531         a review and feedback from Ben Pfaff in
4532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4533
4534 2011-04-01  Bruno Haible  <bruno@clisp.org>
4535
4536         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4537         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4538         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4539         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4540         Reported by Bruce Korb <bruce.korb@gmail.com>.
4541
4542 2011-04-01  Bruno Haible  <bruno@clisp.org>
4543
4544         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4545         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4546         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4547         * modules/wcpcpy (Depends-on): Add extensions.
4548         * modules/wcpncpy (Depends-on): Likewise.
4549         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4550         systems.
4551         * doc/posix-functions/wcpncpy.texi: Likewise.
4552         * doc/posix-functions/wcwidth.texi: Likewise.
4553
4554 2011-03-31  Eric Blake  <eblake@redhat.com>
4555
4556         nonblocking: fix mingw test failures
4557         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4558         non-blocking flag on regular file.
4559         (get_nonblocking_flag): Set errno on invalid fd.
4560         * tests/test-nonblocking.c (main): Avoid test failure on
4561         directories if fchdir is not active.
4562         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4563
4564 2011-03-31  Bruno Haible  <bruno@clisp.org>
4565
4566         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4567         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4568         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4569         Reported by Simon Josefsson <simon@josefsson.org>.
4570
4571 2011-03-31  Bruno Haible  <bruno@clisp.org>
4572         and Eric Blake  <eblake@redhat.com>
4573
4574         nonblocking: new module
4575         * modules/nonblocking: New module.
4576         * modules/nonblocking-tests: Likewise.
4577         * lib/nonblocking.h: New file.
4578         * lib/nonblocking.c: Likewise.
4579         * tests/test-nonblocking.c: New test.
4580         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4581
4582 2011-03-30  Bruno Haible  <bruno@clisp.org>
4583
4584         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4585         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4586         instead of 'printf' format for GCC >= 4.4.
4587         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4588         (fprintf, printf, vfprintf, vprintf): Declare with
4589         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4590         the system's vfprintf() function.
4591         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4592
4593 2011-03-30  Eric Blake  <eblake@redhat.com>
4594
4595         passfd: fix scoping bug
4596         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4597         before sendmsg/recvmsg.
4598
4599         passfd: standardize coding conventions
4600         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4601         can be learned at compile time.
4602         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4603         ifdefs.
4604         (sendfd, recvfd): Follow gnulib code conventions.
4605
4606         passfd: fix incorrect sendmsg arguments
4607         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4608         incorrect msg_controllen value.
4609         * modules/passfd-tests (Depends-on): Check for alarm.
4610         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4611         Reported by Bastien ROUCARIES.
4612
4613 2011-03-30  Bruno Haible  <bruno@clisp.org>
4614
4615         c-strcasestr: Relicense under LGPLv2+.
4616         * modules/c-strcasestr (License): Change to LGPLv2+.
4617         Requested by Eric Blake, for libvirt.
4618
4619 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4620
4621         * users.txt: Add libidn2.  Fix libtasn1 link.
4622
4623 2011-03-30  Jim Meyering  <meyering@redhat.com>
4624
4625         tests: readlink* ("",... fails with EINVAL on newer kernels
4626         readlink and readlinkat have typically failed with ENOENT for
4627         the invalid, empty file name,  "".  However, with the advent
4628         of linux-2.6.39, they fail with EINVAL.
4629         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4630         when operating on the empty file name.
4631         * tests/test-readlink.h (test_readlink): Likewise.
4632
4633 2011-03-29  Bruno Haible  <bruno@clisp.org>
4634
4635         Relicense some modules under LGPLv2+, for libidn2.
4636         * modules/array-mergesort (License): Change to LGPLv2+.
4637         * modules/c-strcaseeq (License): Likewise.
4638         * modules/striconveh (License): Likewise.
4639         * modules/striconveha (License): Likewise.
4640         * modules/uniconv/base (License): Likewise.
4641         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4642         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4643         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4644         * modules/unictype/base (License): Likewise.
4645         * modules/unictype/bidiclass-of (License): Likewise.
4646         * modules/unictype/category-M (License): Likewise.
4647         * modules/unictype/category-none (License): Likewise.
4648         * modules/unictype/category-of (License): Likewise.
4649         * modules/unictype/category-test (License): Likewise.
4650         * modules/unictype/category-test-withtable (License): Likewise.
4651         * modules/unictype/combining-class (License): Likewise.
4652         * modules/unictype/joiningtype-of (License): Likewise.
4653         * modules/unictype/scripts (License): Likewise.
4654         * modules/uninorm/base (License): Likewise.
4655         * modules/uninorm/canonical-decomposition (License): Likewise.
4656         * modules/uninorm/composition (License): Likewise.
4657         * modules/uninorm/decompose-internal (License): Likewise.
4658         * modules/uninorm/decomposition-table (License): Likewise.
4659         * modules/uninorm/nfc (License): Likewise.
4660         * modules/uninorm/nfd (License): Likewise.
4661         * modules/uninorm/u32-normalize (License): Likewise.
4662         * modules/unistr/base (License): Likewise.
4663         * modules/unistr/u32-cpy (License): Likewise.
4664         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4665         * modules/unistr/u32-to-u8 (License): Likewise.
4666         * modules/unistr/u32-uctomb (License): Likewise.
4667         * modules/unistr/u8-check (License): Likewise.
4668         * modules/unistr/u8-mblen (License): Likewise.
4669         * modules/unistr/u8-mbtouc (License): Likewise.
4670         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4671         * modules/unistr/u8-mbtoucr (License): Likewise.
4672         * modules/unistr/u8-prev (License): Likewise.
4673         * modules/unistr/u8-strlen (License): Likewise.
4674         * modules/unistr/u8-to-u32 (License): Likewise.
4675         * modules/unistr/u8-uctomb (License): Likewise.
4676         * modules/unitypes (License): Likewise.
4677         Requested by Simon Josefsson.
4678
4679 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4680
4681         lib-symbol-visibility: Add a notice.
4682         * modules/lib-symbol-visibility (Notice): New field.
4683
4684 2011-03-29  Bruno Haible  <bruno@clisp.org>
4685
4686         getaddrinfo: Doc fix.
4687         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4688         section "fixed in Gnulib".
4689
4690 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4691
4692         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4693         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4694
4695 2011-03-26  Bruno Haible  <bruno@clisp.org>
4696
4697         unictype/property-byname: Reduce the number of load-time relocations.
4698         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4699         (UC_PROPERTY_INDEX_*): New enumeration values.
4700         (uc_property_byname): Convert an index from the lookup table to an
4701         uc_property_t.
4702         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4703         values.
4704
4705 2011-03-26  Bruno Haible  <bruno@clisp.org>
4706
4707         unictype/property-byname: Allow omitted word separators and aliases.
4708         * lib/unictype/pr_byname.gperf: Add property names without word
4709         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4710         for 'space'.
4711
4712 2011-03-26  Bruno Haible  <bruno@clisp.org>
4713
4714         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4715         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4716         also hyphens to space.
4717         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4718         without spaces.
4719         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4720
4721 2011-03-26  Bruno Haible  <bruno@clisp.org>
4722
4723         unictype/joiningtype-byname: Recognize long names as well.
4724         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4725         a long name.
4726         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4727         unictype/joiningtype_byname.h.
4728         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4729         * lib/unictype/joiningtype_byname.gperf: New file.
4730         * modules/unictype/joiningtype-byname (Files): Add
4731         lib/unictype/joiningtype_byname.gperf.
4732         (Depends-on): Add gperf.
4733         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4734         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4735         long names.
4736
4737         Tests for module 'unictype/joiningtype-longname'.
4738         * modules/unictype/joiningtype-longname-tests: New file.
4739         * tests/unictype/test-joiningtype_longname.c: New file.
4740
4741         New module 'unictype/joiningtype-longname'.
4742         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4743         * lib/unictype/joiningtype_longname.c: New file.
4744         * modules/unictype/joiningtype-longname: New file.
4745         * modules/unictype/joiningtype-all (Depends-on): Add
4746         unictype/joiningtype-longname.
4747
4748 2011-03-26  Bruno Haible  <bruno@clisp.org>
4749
4750         unictype/bidiclass-byname: Recognize long names as well.
4751         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4752         name.
4753         * lib/unictype/bidi_byname.c: Include <string.h>,
4754         unictype/bidi_byname.h.
4755         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4756         * lib/unictype/bidi_byname.gperf: New file.
4757         * modules/unictype/bidiclass-byname (Files): Add
4758         lib/unictype/bidi_byname.gperf.
4759         (Depends-on): Add gperf.
4760         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4761         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4762         long names.
4763
4764         Tests for module 'unictype/bidiclass-longname'.
4765         * modules/unictype/bidiclass-longname-tests: New file.
4766         * tests/unictype/test-bidi_longname.c: New file.
4767
4768         New module 'unictype/bidiclass-longname'.
4769         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4770         * lib/unictype/bidi_longname.c: New file.
4771         * modules/unictype/bidiclass-longname: New file.
4772         * modules/unictype/bidiclass-all (Depends-on): Add
4773         unictype/bidiclass-longname.
4774
4775 2011-03-26  Bruno Haible  <bruno@clisp.org>
4776
4777         unictype/bidi*: Rename modules.
4778         * modules/unictype/bidiclass-all: Renamed from
4779         modules/unictype/bidicategory-all.
4780         * modules/unictype/bidiclass-name: Renamed from
4781         modules/unictype/bidiclass-name.
4782         (Description): Update.
4783         * modules/unictype/bidiclass-name-tests: Renamed from
4784         modules/unictype/bidicategory-name-tests.
4785         * modules/unictype/bidiclass-byname: Renamed from
4786         modules/unictype/bidicategory-byname.
4787         (Description): Update.
4788         * modules/unictype/bidiclass-byname-tests: Renamed from
4789         modules/unictype/bidicategory-byname-tests.
4790         * modules/unictype/bidiclass-of: Renamed from
4791         modules/unictype/bidicategory-of.
4792         (Description): Update.
4793         * modules/unictype/bidiclass-of-tests: Renamed from
4794         modules/unictype/bidicategory-of-tests.
4795         * modules/unictype/bidiclass-test: Renamed from
4796         modules/unictype/bidicategory-test.
4797         (Description): Update.
4798         * modules/unictype/bidiclass-test-tests: Renamed from
4799         modules/unictype/bidicategory-test-tests.
4800         * modules/unictype/bidicategory-all: New file, a simple redirection.
4801         * modules/unictype/bidicategory-name: Likewise.
4802         * modules/unictype/bidicategory-byname: Likewise.
4803         * modules/unictype/bidicategory-of: Likewise.
4804         * modules/unictype/bidicategory-test: Likewise.
4805         * modules/unictype/property-bidi-* (Dependencies): Update.
4806         * lib/unictype/bidi_*.c: Update comment.
4807
4808 2011-03-26  Bruno Haible  <bruno@clisp.org>
4809
4810         unictype/bidi*: Rename functions, part 2.
4811         * modules/unictype/bidicategory-name (configure.ac): Update required
4812         libunistring version.
4813         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4814
4815 2011-03-25  Bruno Haible  <bruno@clisp.org>
4816
4817         New module 'unictype/combining-class-all'.
4818         * modules/unictype/combining-class-all: New file.
4819
4820         Tests for module 'unictype/combining-class-byname'.
4821         * modules/unictype/combining-class-byname-tests: New file.
4822         * tests/unictype/test-combiningclass_byname.c: New file.
4823
4824         New module 'unictype/combining-class-byname'.
4825         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4826         * lib/unictype/combiningclass_byname.c: New file.
4827         * lib/unictype/combiningclass_byname.gperf: New file.
4828         * modules/unictype/combining-class-byname: New file.
4829
4830         Tests for module 'unictype/combining-class-longname'.
4831         * modules/unictype/combining-class-longname-tests: New file.
4832         * tests/unictype/test-combiningclass_longname.c: New file.
4833
4834         New module 'unictype/combining-class-longname'.
4835         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4836         * lib/unictype/combiningclass_longname.c: New file.
4837         * modules/unictype/combining-class-longname: New file.
4838
4839         Tests for module 'unictype/combining-class-name'.
4840         * modules/unictype/combining-class-name-tests: New file.
4841         * tests/unictype/test-combiningclass_name.c: New file.
4842
4843         New module 'unictype/combining-class-name'.
4844         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4845         * lib/unictype/combiningclass_name.c: New file.
4846         * modules/unictype/combining-class-name: New file.
4847
4848 2011-03-25  Bruno Haible  <bruno@clisp.org>
4849
4850         unictype/combining-class: Rename source files.
4851         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4852         of unictype/combining.h.
4853         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4854         Update.
4855         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4856         * modules/unictype/combining-class (Description): Fix.
4857         (Files, Makefile.am): Update.
4858         * tests/unictype/test-combiningclass.c: Renamed from
4859         tests/unictype/test-combining.c.
4860         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4861
4862 2011-03-25  Bruno Haible  <bruno@clisp.org>
4863
4864         unictype: Update list of canonical combining classes.
4865         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4866
4867 2011-03-25  Bruno Haible  <bruno@clisp.org>
4868
4869         unictype/category-byname: Recognize long names as well.
4870         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4871         a long name.
4872         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4873         unictype/categ_byname.h.
4874         (UC_CATEGORY_INDEX_*): New enumeration values.
4875         (uc_general_category_byname): Use uc_general_category_lookup and
4876         convert from index to value.
4877         * lib/unictype/categ_byname.gperf: New file.
4878         * modules/unictype/category-byname (Files): Add
4879         lib/unictype/categ_byname.gperf.
4880         (Depends-on): Add gperf.
4881         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4882         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4883         long names.
4884
4885         Tests for module 'unictype/category-longname'.
4886         * modules/unictype/category-longname-tests: New file.
4887         * tests/unictype/test-categ_longname.c: New file.
4888
4889         New module 'unictype/category-longname'.
4890         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4891         * lib/unictype/categ_longname.c: New file.
4892         * modules/unictype/category-longname: New file.
4893         * modules/unictype/category-all (Depends-on): Add it.
4894
4895 2011-03-25  Bruno Haible  <bruno@clisp.org>
4896
4897         Tests for module 'unictype/category-LC'.
4898         * modules/unictype/category-LC-tests: New file.
4899         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4900
4901         New module 'unictype/category-LC'.
4902         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4903         (UC_CATEGORY_LC): New declaration.
4904         (UC_CASED_LETTER): New macro.
4905         * lib/gen-uni-tables.c (is_category_LC): New function.
4906         (output_categories): Also handle category LC.
4907         (UC_CATEGORY_MASK_LC): New enumeration value.
4908         (general_category_byname): Also handle category LC.
4909         * lib/unictype/categ_LC.c: New file.
4910         * lib/unictype/categ_LC.h: New file, automatically generated.
4911         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4912         category LC.
4913         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4914         * modules/unictype/category-LC: New file.
4915         * modules/unictype/category-byname (Depends-on): Add
4916         unictype/category-LC.
4917         * modules/unictype/category-all (Depends-on): Likewise.
4918
4919 2011-03-25  Eric Blake  <eblake@redhat.com>
4920
4921         xmalloc: revert yesterday's regression
4922         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4923         realloc's underlying behavior (allowing allocation of zero-size
4924         objects, especially if malloc-gnu is also in use).
4925
4926 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4927
4928         maint.mk: add missing version to VC-tag
4929         * top/maint.mk: git tag was missing actual tag name; add it.
4930
4931         valgrind: do leak checking, and exit with code 1 on error (not 0)
4932         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4933         to VALGRIND.
4934
4935 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4936
4937         posix-modules: say what it does.
4938         * posix-modules: Add a line to the --help output saying what it does.
4939
4940 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4941
4942         xmalloc: Do not leak if underlying realloc is C99 compatible.
4943         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4944         This avoids a leak on C99-based systems.  See
4945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4946
4947 2011-03-24  Eric Blake  <eblake@redhat.com>
4948
4949         realloc: document portability problem
4950         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4951         passing 0 size to realloc.
4952
4953 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4954
4955         doc: update users.txt
4956         * users.txt: Add cvsps, tmpwatch
4957
4958 2011-03-23  Matt Rice  <ratmice@gmail.com>
4959
4960         doc: update users.txt
4961         * users.txt: Add gdb.
4962
4963 2011-03-23  Jim Meyering  <meyering@redhat.com>
4964
4965         doc: update users.txt
4966         Looking through matches up to the following URL (there are still
4967         several more pages), I found several projects that use gnulib:
4968         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4969         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4970         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4971
4972 2011-03-22  Bruno Haible  <bruno@clisp.org>
4973
4974         unictype/bidi*: Rename functions.
4975         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4976         uc_bidi_class, uc_is_bidi_class): New declarations.
4977         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4978         uc_bidi_category_byname.
4979         (uc_bidi_category_byname): New function.
4980         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4981         u_bidi_category_name.
4982         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4983         (uc_bidi_category_name): New function.
4984         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4985         uc_bidi_category.
4986         (uc_bidi_category): New function.
4987         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4988         uc_is_bidi_category. Invoke uc_bidi_class.
4989         (uc_is_bidi_category): New function.
4990         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4991         instead of uc_bidi_category_byname.
4992         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4993         instead of uc_bidi_category_name.
4994         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4995         uc_bidi_category.
4996         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4997         instead of uc_is_bidi_category.
4998
4999 2011-03-21  Bruno Haible  <bruno@clisp.org>
5000
5001         New module 'unictype/joininggroup-all'.
5002         * modules/unictype/joininggroup-all: New file.
5003
5004         Tests for module 'unictype/joininggroup-of'.
5005         * modules/unictype/joininggroup-of-tests: New file.
5006         * tests/unictype/test-joininggroup_of.c: New file.
5007         * tests/unictype/test-joininggroup_of.h: New file, automatically
5008         generated by gen-uni-tables.
5009
5010         New module 'unictype/joininggroup-of'.
5011         * modules/unictype/joininggroup-of: New file.
5012         * lib/unictype/joininggroup_of.c: New file.
5013         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5014         gen-uni-tables.
5015
5016         Tests for module 'unictype/joininggroup-byname'.
5017         * modules/unictype/joininggroup-byname-tests: New file.
5018         * tests/unictype/test-joininggroup_byname.c: New file.
5019
5020         New module 'unictype/joininggroup-byname'.
5021         * modules/unictype/joininggroup-byname: New file.
5022         * lib/unictype/joininggroup_byname.c: New file.
5023         * lib/unictype/joininggroup_byname.gperf: New file.
5024
5025         Tests for module 'unictype/joininggroup-name'.
5026         * modules/unictype/joininggroup-name-tests: New file.
5027         * tests/unictype/test-joininggroup_name.c: New file.
5028
5029         New module 'unictype/joininggroup-name'.
5030         * modules/unictype/joininggroup-name: New file.
5031         * lib/unictype/joininggroup_name.c: New file.
5032         * lib/unictype/joininggroup_name.h: New file.
5033
5034         New module 'unictype/joiningtype-all'.
5035         * modules/unictype/joiningtype-all: New file.
5036
5037         Tests for module 'unictype/joiningtype-of'.
5038         * modules/unictype/joiningtype-of-tests: New file.
5039         * tests/unictype/test-joiningtype_of.c: New file.
5040         * tests/unictype/test-joiningtype_of.h: New file, automatically
5041         generated by gen-uni-tables.
5042
5043         New module 'unictype/joiningtype-of'.
5044         * modules/unictype/joiningtype-of: New file.
5045         * lib/unictype/joiningtype_of.c: New file.
5046         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5047         gen-uni-tables.
5048
5049         Tests for module 'unictype/joiningtype-byname'.
5050         * modules/unictype/joiningtype-byname-tests: New file.
5051         * tests/unictype/test-joiningtype_byname.c: New file.
5052
5053         New module 'unictype/joiningtype-byname'.
5054         * modules/unictype/joiningtype-byname: New file.
5055         * lib/unictype/joiningtype_byname.c: New file.
5056
5057         Tests for module 'unictype/joiningtype-name'.
5058         * modules/unictype/joiningtype-name-tests: New file.
5059         * tests/unictype/test-joiningtype_name.c: New file.
5060
5061         New module 'unictype/joiningtype-name'.
5062         * modules/unictype/joiningtype-name: New file.
5063         * lib/unictype/joiningtype_name.c: New file.
5064
5065         unictype: Add support for Arabic shaping properties.
5066         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5067         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5068         declarations.
5069         (UC_JOINING_GROUP_*): New enumeration values.
5070         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5071         declarations.
5072         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5073         (unicode_joining_type): New variable.
5074         (UC_JOINING_GROUP_*): New enumeration values.
5075         (unicode_joining_group): New variable.
5076         (fill_arabicshaping, joining_type_as_c_identifier,
5077         output_joining_type_test, output_joining_type,
5078         joining_group_as_c_identifier, output_joining_group_test,
5079         output_joining_group): New functions.
5080         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5081         fill_arabicshaping and output_joining_type_test, output_joining_type,
5082         output_joining_group_test, output_joining_group.
5083         Reported by Simon Josefsson.
5084
5085 2011-03-21  Jim Meyering  <meyering@redhat.com>
5086
5087         strftime: fix a bug in yesterday's change
5088         * lib/strftime.c (add): Accommodate width's initial value of -1.
5089         Otherwise, nstrftime would copy uninitialized data into
5090         the result buffer.
5091
5092 2011-03-21  Jim Meyering  <meyering@redhat.com>
5093
5094         tests: add strftime-tests module
5095         * tests/test-strftime.c: New file.
5096         * modules/strftime-tests: New module.
5097
5098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         strftime: don't assume a byte count fits in 'int'
5101         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5102         found this problem by static analysis, using gcc -Wstrict-overflow
5103         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5104         on an integer overflow having undefined behavior, but it turns out
5105         that the argument is a size, which might not fit in 'int' anyway,
5106
5107 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5108
5109         stdio: don't require ignore_value around fwrite
5110
5111         This patch works around libc bug 11959
5112         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5113         Without this patch, applications must often write
5114         ignore_value (fwrite (...)) even though the ignore_value is
5115         not helpful here.  It's common to write many objects, using
5116         fwrite/printf/etc., and then use ferror to detect output error.
5117
5118         I considered making this patch optional, but decided against it,
5119         because libc is obviously being inconsistent here: there is no
5120         reason libc should insist that user code must inspect fwrite
5121         return's value without also insisting that it inspect printf's,
5122         putchar's, etc.  If user code wants to have a strict style where
5123         all these functions' values are checked (so that ferror need not
5124         be checked), we could add support for that style in a new gnulib
5125         module, but in the meantime it's better to be consistent and to
5126         support common usage.
5127
5128         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5129         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5130         that we are compiling in checking mode, and if not C++, and
5131         if not already wrapping fwrite for some other reason.
5132         (fwrite): #define to rpl_fwrite if the latter is defined.
5133
5134 2011-03-20  Bruno Haible  <bruno@clisp.org>
5135
5136         verror: Fix compilation error introduced on 2011-02-13.
5137         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5138         instead of __attribute__.
5139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5140
5141 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5142             Bruno Haible  <bruno@clisp.org>
5143
5144         socklen: do not depend on sys_socket
5145         While trying to modify Emacs to use gnulib's socklen module,
5146         I discovered a circular dependency: socklen depends on sys_socket
5147         and vice versa.  Emacs can use socklen, but it does not need
5148         sys_socket because it has its own substitute for sys/socket.h.
5149         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5150         gl_TYPE_SOCKLEN_T.
5151         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5152         gl_PREREQ_SYS_H_SOCKET.
5153         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5154         gl_PREREQ_SYS_H_SOCKET.
5155         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5156         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5157         * modules/socklen (Depends-on): Do not depend on sys_socket.
5158         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5159
5160 2011-03-20  Jim Meyering  <meyering@redhat.com>
5161
5162         maint.mk: sort file names *after* new transformation
5163         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5164         prefix would have led to an unwarranted failure in GNU parted.
5165         Sort after that transformation.
5166
5167 2011-03-19  Jim Meyering  <meyering@redhat.com>
5168
5169         maint.mk: fix po-file syntax-check rule
5170         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5171         Patch by Bruno Haible.
5172
5173 2011-03-19  Bruno Haible  <bruno@clisp.org>
5174
5175         socklen: Update comment.
5176         * m4/socklen.m4: Update comment about platforms.
5177
5178 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5179             Bruno Haible  <bruno@clisp.org>
5180
5181         inet_ntop, inet_pton: Simplify.
5182         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5183         documented to provide socklen_t and we already depend on sys_socket.
5184         * modules/inet_pton (Depends-on): Likewise.
5185         * lib/arpa_inet.in.h: Adjust comment.
5186
5187 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5188             Bruno Haible  <bruno@clisp.org>
5189
5190         netdb: Simplify.
5191         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5192         documented to provide socklen_t and we already depend on sys_socket.
5193         * lib/netdb.in.h: Adjust comment.
5194
5195 2011-03-19  Bruno Haible  <bruno@clisp.org>
5196
5197         sys_socket, netdb: Document problem with socklen_t.
5198         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5199         platforms.
5200         * doc/posix-headers/netdb.texi: Likewise.
5201
5202 2011-03-18  Eric Blake  <eblake@redhat.com>
5203
5204         maint.mk: let po check work in VPATH build
5205         * top/maint.mk (po_file): Allow cfg.mk override.
5206         (sc_po_check): Allow VPATH use.
5207         Reported by Jiri Denemark.
5208
5209 2011-03-16  Jim Meyering  <meyering@redhat.com>
5210
5211         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5212         Before, you would have had to create one .x-sc_ file per rule in order
5213         to exempt offending files.  Now, you may instead use a Make variable --
5214         usually defined in cfg.mk -- whose name identifies the affected rule.
5215         * top/maint.mk (_sc_excl): Define.
5216         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5217         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5218
5219 2011-03-13  Bruno Haible  <bruno@clisp.org>
5220
5221         ignore-value tests: Avoid warnings.
5222         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5223         empty for gcc < 3.4.
5224
5225 2011-03-13  Bruno Haible  <bruno@clisp.org>
5226
5227         passfd: Fix link error on Solaris.
5228         * modules/passfd (Description): Correct.
5229         (Depends-on): Add socketlib.
5230         (Link): New section.
5231         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5232
5233 2011-03-13  Bruno Haible  <bruno@clisp.org>
5234
5235         passfd: Fix link error on AIX 5.2.
5236         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5237
5238 2011-03-13  Bruno Haible  <bruno@clisp.org>
5239
5240         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5241         * lib/sys_socket.in.h: Include <stddef.h>.
5242         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5243         CMSG_FIRSTHDR. Remove unused variable.
5244
5245 2011-03-13  Bruno Haible  <bruno@clisp.org>
5246
5247         passfd: Fix compilation error on OpenBSD.
5248         * lib/passfd.c: Include <sys/uio.h>.
5249
5250 2011-03-13  Bruno Haible  <bruno@clisp.org>
5251
5252         passfd test: Fix warnings.
5253         * tests/test-passfd.c: Include <sys/wait.h>.
5254         (main): Fix typo.
5255
5256 2011-03-13  Bruno Haible  <bruno@clisp.org>
5257
5258         passfd module, part 4, tweaks.
5259         * tests/test-passfd.c: Reorder includes.
5260         (main): Fix perror and printf calls.
5261
5262 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5263
5264         passfd module, part 4.
5265         * modules/passfd-tests: New file.
5266         * tests/test-passfd.c: New file.
5267
5268 2011-03-13  Jim Meyering  <meyering@redhat.com>
5269
5270         Makefile: rely on GNU make; derive syntax-check rule names
5271         Rather than requiring that each sc_ rule be listed as a dependent
5272         of "check", use features of GNU make to derive the list.
5273         * Makefile (syntax-check-rules): Define.
5274         (check): Depend on the new variable, not the hard-coded list.
5275
5276 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5277             Bruno Haible  <bruno@clisp.org>
5278
5279         passfd module, part 3.
5280         * lib/passfd.h (recvfd): Add a flags argument.
5281         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5282         (recvfd): Add a flags argument.
5283         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5284         exists.
5285         * modules/passfd (Depends-on): Add cloexec.
5286         Suggested by Eric Blake.
5287
5288 2011-03-13  Bruno Haible  <bruno@clisp.org>
5289
5290         passfd module, part 2, tweaks.
5291         * modules/passfd (Files): Reorder.
5292         (Depends-on): Remove errno.
5293         (Include): Remove <sys/socket.h>, <sys/un.h>.
5294         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5295         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5296         specification header. Include <sys/socket.h> always. Don't include
5297         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5298         (sendfd): Clarify that it sets errno when it fails.
5299         (recvfd): Fix specification.
5300
5301 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5302
5303         passfd module, part 2.
5304         * modules/passfd: New file.
5305         * lib/passfd.h: New file.
5306         * lib/passfd.c: New file.
5307
5308 2011-03-12  Bruno Haible  <bruno@clisp.org>
5309
5310         wcswidth, mbswidth: Avoid integer overflow.
5311         * lib/wcswidth.c: Include <limits.h>.
5312         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5313         * lib/mbswidth.c: Include <limits.h>.
5314         (mbsnwidth): Avoid 'int' overflow.
5315         Reported by Jim Meyering.
5316
5317 2011-03-12  Bruno Haible  <bruno@clisp.org>
5318
5319         futimens, utimensat: Avoid endless recursion on Solaris 10.
5320         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5321         Solaris.
5322         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5323         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5324
5325 2011-03-11  Jim Meyering  <meyering@redhat.com>
5326
5327         maint.mk: relax a regexp to accommodate other formatting styles
5328         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5329         between "ngettext" and the following "(".
5330
5331 2011-03-11  Pádraig Brady <P@draigBrady.com>
5332
5333         maint.mk: suppress a false positive warning
5334         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5335         diagnostics are marked with ngettext.
5336
5337 2011-03-10  Eric Blake  <eblake@redhat.com>
5338
5339         wchar: add explicit dependencies, for Tru64
5340         * modules/mbmemcasecoll (Depends-on): Add wchar.
5341         * modules/mbtowc (Depends-on): Likewise.
5342         * modules/vasnprintf (Depends-on): Likewise.
5343         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5344         * modules/wctomb (Depends-on): Likewise.
5345         Reported by Peter O'Gorman.
5346
5347 2011-03-08  Bruno Haible  <bruno@clisp.org>
5348
5349         passfd module, part 1, tweaks.
5350         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5351         Improve indentation. Improve AC_MSG_CHECKING messages.
5352         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5353         gl_SOCKET_FAMILIES.
5354
5355 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5356
5357         passfd module, part 1.
5358         * m4/afunix.m4: New file.
5359         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5360         sockets.
5361
5362 2011-03-08  Bruno Haible  <bruno@clisp.org>
5363
5364         regex-quote: New API.
5365         * lib/regex-quote.h: Include <stdbool.h>.
5366         (struct regex_quote_spec): New type.
5367         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5368         New declarations.
5369         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5370         'const struct regex_quote_spec *' argument.
5371         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5372         (pcre_special): New constant.
5373         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5374         New functions.
5375         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5376         'const struct regex_quote_spec *' argument.
5377         * modules/regex-quote (Depends-on): Add stdbool.
5378         * tests/test-regex-quote.c (check): Update for new API. Add test for
5379         anchored results.
5380         * NEWS: Mention the API change.
5381         Reported by Reuben Thomas and Eric Blake.
5382
5383 2011-03-06  Bruno Haible  <bruno@clisp.org>
5384
5385         regex-quote: Fix creation of POSIX extended regular expressions.
5386         * lib/regex-quote.c (ere_special): Add grouping and alternation
5387         operators.
5388
5389 2011-03-05  Bruno Haible  <bruno@clisp.org>
5390
5391         doc: Improve doc regarding autopoint vs. gnulib.
5392         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5393         disable autopoint while running autoreconf.
5394         Suggested by Ralf Wildenhues.
5395
5396 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5397
5398         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5399         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5400
5401 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5402
5403         parse-duration: remove xalloc.h dependency
5404         * lib/parse-duration.c (parse_period): handle NULL return from
5405         strdup instead of calling xstrdup().
5406         * modules/parse-duration: remove "xalloc" dependency
5407
5408 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5409
5410         bootstrap: honor m4_base when running aclocal
5411         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5412
5413 2011-03-02  Jim Meyering  <meyering@redhat.com>
5414
5415         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5416         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5417         on request from Matt Booth.
5418
5419 2011-03-01  Eric Blake  <eblake@redhat.com>
5420
5421         test-link: work on Hurd
5422         * tests/test-link.h (test_link): Hurd rejects linking directories
5423         with EISDIR instead of the POSIX-mandated EPERM.
5424
5425 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         stdio: simplify by moving files to printf-posix, sigpipe
5428         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5429         since this symbol is needed only if printf is replaced.
5430         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5431         Require gl_ASM_SYMBOL_PREFIX.
5432         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5433         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5434         (Depends-on): Add 'raise'.
5435         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5436         * modules/stdio (Files): Remove lib/stdio-write.c,
5437         m4/asm-underscore.m4.
5438         (Depends-on): Remove 'raise'.
5439
5440         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5441         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5442         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5443         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5444
5445 2011-02-28  Bruno Haible  <bruno@clisp.org>
5446
5447         localcharset: Assume ANSI C behaviour of free().
5448         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5449         calling free().
5450         Suggested by Simon Josefsson <simon@josefsson.org>.
5451
5452 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5453             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5454             Bruno Haible  <bruno@clisp.org>  (tiny change)
5455
5456         On Cygwin, use /proc file system instead of win32 API.
5457         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5458         Win32 file names.
5459         (DllMain): Simplify by removing Cygwin specific code.
5460         (find_shared_library_fullname): Use Linux specific implementation also
5461         for Cygwin.
5462         (get_shared_library_fullname): Update accordingly.
5463         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5464         Win32 file names.
5465         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5466         Cygwin specific code.
5467
5468 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5469             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5470
5471         Fix OpenMP flag detection for various Fortran compilers.
5472         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5473         OpenMP-conditional compilation construct, to force compile
5474         failure with missing OpenMP flag.
5475         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5476
5477 2011-02-25  Eric Blake  <eblake@redhat.com>
5478
5479         strstr: expand test coverage
5480         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5481         compilation.
5482         * tests/test-memmem.c (main): Duplicate tests.
5483         * tests/test-strcasestr.c (main): Likewise.
5484         * tests/test-c-strcasestr.c (main): Likewise.
5485
5486 2011-02-25  Jim Meyering  <meyering@redhat.com>
5487
5488         maint.mk: detect missing-NL-at-EOF, too
5489         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5490         it also detects when a file lacks a newline at EOF.
5491         (require_exactly_one_NL_at_EOF_): Renamed from
5492         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5493         since people may well have .x-sc_... file names tied to the
5494         existing name.  Suggested by Eric Blake.
5495
5496 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         dirname: move m4/dos.m4 functionality into lib/dosname.h
5499
5500         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5501         extracts symbols from it, puts them into config.h; but it's much
5502         easier to use the symbols directly.  filename.h already does this,
5503         but it disagrees with dos.m4 in some respects.  This patch
5504         introduces a different include file dosname.h that packages up
5505         dos.m4, and then later we can work on merging filename.h and
5506         dosname.h.  Applications that need only the easy-to-configure
5507         symbols should consider including dosname.h rather than dirname.h.
5508         * NEWS: Mention incompatible changes.
5509         * m4/dos.m4: Remove.
5510         * lib/dosname.h, modules/dosname: New files.
5511         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5512         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5513         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5514         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5515         Include dosname.h, not dirname.h.
5516         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5517         Include dosname.h, for definitions of symbols like ISSLASH
5518         that used to be in config.h.
5519         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5520         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5521         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5522         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5523         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5524         * modules/rmdir (Files): Likewise.
5525         * modules/stat (Files): Likewise.
5526         * modules/unlink (Files): Likewise.
5527         * modules/dirname-lgpl (Depends-on): Add dosname.
5528         * modules/lstat (Depends-on): Likewise.
5529         * modules/openat (Depends-on): Likewise.
5530         * modules/rmdir (Depends-on): Likewise.
5531         * modules/savewd (Depends-on): Likewise.
5532         * modules/stat (Depends-on): Likewise.
5533         * modules/unlink (Depends-on): Likewise.
5534         * modules/openat (Depends-on): Remove dirname-lgpl.
5535         * modules/savewd (Depends-on): Likewise.
5536         * tests/test-dirname.c: Do not use removed symbols like
5537         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5538         the remaining symbols, e.g., ISSLASH ('\\').
5539
5540 2011-02-25  Eric Blake  <eblake@redhat.com>
5541
5542         strstr: revert patches that introduced bug and pessimization
5543         * lib/str-two-way.h: Add another reference.
5544         (two_way_short_needle, two_way_long_needle): Revert changes from
5545         2011-02-24; they pessimize search speed.
5546         (critical_factorization): Partially revert changes from
5547         2010-06-22; they violate the requirement that the left half of the
5548         needle be smaller than the period of the needle.
5549
5550 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         filenamecat: remove unnecessary dependency on dirname-lgpl
5553         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5554         is no direct dependency, just an indirect one via filenamecat-lgpl.
5555
5556         remove: remove unnecessary use of m4/dos.m4
5557         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5558         * modules/remove (FILES): Remove m4/dos.m4.
5559
5560         * lib/openat-proc.c: Don't include dirname.h; not needed.
5561
5562         backupfile: remove unnecessary use of m4/dos.m4
5563         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5564         of its symbols are used by the backupfile code.  backupfile.c does
5565         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5566         for the rare case of programs that want all their backup file
5567         names to live within 8+3 limits, and dos.m4 doesn't address that.
5568         * modules/backupfile (Files): Remove m4/dos.m4.
5569
5570 2011-02-24  Jim Meyering  <meyering@redhat.com>
5571
5572         strstr: fix a bug whereby strstr would mistakenly return NULL
5573         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5574         in period calculation.
5575         (two_way_long_needle): Likewise.
5576         The original problem was reported by Mike Stump in
5577         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5578         Ralf Wildenhues provided the short needle and haystack.
5579         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5580         Add a more involved test to trigger the bug in two_way_long_needle.
5581
5582 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5583
5584         gnulib-tool: remove use of bold display in help screen
5585         * gnulib-tool (func_usage): Do not use bold display anymore in the
5586         help screen.  That was just meant to be a temporary emphasis for a
5587         backward-incompatible change.
5588
5589 2011-02-23  Bruno Haible  <bruno@clisp.org>
5590
5591         Fix misindentation of preprocessor directives.
5592         * lib/argp-namefrob.h: Reindent preprocessor directives.
5593         * lib/getopt_int.h (struct _getopt_data): Likewise.
5594         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5595         * lib/vasnprintf.c (decode_long_double): Likewise.
5596         * tests/test-argmatch.c: Insert blank lines, for clarity.
5597         * tests/test-exclude.c: Likewise.
5598
5599 2011-02-22  Bruno Haible  <bruno@clisp.org>
5600
5601         ioctl: Fix for MacOS X in 64-bit mode.
5602         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5603         value.
5604         Suggested by Eric Blake.
5605         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5606
5607 2011-02-22  Jim Meyering  <meyering@redhat.com>
5608
5609         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5610         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5611         in lib/.
5612
5613 2011-02-22  Eric Blake  <eblake@redhat.com>
5614
5615         maint: avoid any CDPATH issue
5616         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5617
5618         maint: adjust cpp indentation for my modules, as well
5619         * Makefile (sc_cpp_indent_check): Add my name.
5620         * lib/fbufmode.c: Filter through cppi.
5621         * lib/fpurge.c: Likewise.
5622         * lib/freadable.c: Likewise.
5623         * lib/freading.c: Likewise.
5624         * lib/fwritable.c: Likewise.
5625         * lib/fwriting.c: Likewise.
5626         * lib/sigaction.c: Likewise.
5627
5628 2011-02-22  Jim Meyering  <meyering@redhat.com>
5629
5630         maint: adjust cpp indentation to reflect nesting depth
5631         I.e., in a block of code that begins with an unnested "#if",
5632         put one space between the "#" in column 1 and following token.
5633         For example,
5634         -#include <sys/vfs.h>
5635         +# include <sys/vfs.h>
5636         Do this only in .c files that are part of a module I maintain.
5637         * lib/linkat.c: Filter through cppi.
5638         * lib/nanosleep.c: Likewise.
5639         * lib/openat.c: Likewise.
5640         * lib/openat-die.c: Likewise.
5641         * lib/dup3.c: Likewise.
5642         * lib/fchownat.c: Likewise.
5643         * lib/flock.c: Likewise.
5644         * lib/fsync.c: Likewise.
5645         * lib/fts.c: Likewise.
5646         * lib/getpass.c: Likewise.
5647         * lib/gettimeofday.c: Likewise.
5648         * lib/userspec.c: Likewise.
5649         * Makefile (sc_cpp_indent_check): New rule, to check this.
5650
5651 2011-02-22  Bruno Haible  <bruno@clisp.org>
5652
5653         New module 'wctomb'.
5654         * lib/stdlib.in.h (wctomb): New declaration.
5655         * lib/wctomb.c: New file.
5656         * lib/wctomb-impl.h: New file.
5657         * m4/wctomb.m4: New file.
5658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5659         REPLACE_WCTOMB.
5660         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5661         REPLACE_WCTOMB.
5662         * modules/wctomb: New file.
5663         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5664         * doc/posix-functions/wctomb.texi: Mention the new module.
5665         * modules/wctob (Depends-on): Add wctomb.
5666
5667 2011-02-22  Bruno Haible  <bruno@clisp.org>
5668
5669         New module 'mbtowc'.
5670         * lib/stdlib.in.h (mbtowc): New declaration.
5671         * lib/mbtowc.c: New file.
5672         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5673         * m4/mbtowc.m4: New file.
5674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5675         REPLACE_MBTOWC.
5676         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5677         REPLACE_MBTOWC.
5678         * modules/mbtowc: New file.
5679         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5680         * doc/posix-functions/mbtowc.texi: Mention the new module.
5681         * modules/btowc (Depends-on): Add mbtowc.
5682
5683 2011-02-22  Bruno Haible  <bruno@clisp.org>
5684
5685         wcrtomb: Add more tests for native Windows platforms.
5686         * tests/test-wcrtomb-w32-1.sh: New file.
5687         * tests/test-wcrtomb-w32-2.sh: New file.
5688         * tests/test-wcrtomb-w32-3.sh: New file.
5689         * tests/test-wcrtomb-w32-4.sh: New file.
5690         * tests/test-wcrtomb-w32-5.sh: New file.
5691         * tests/test-wcrtomb-w32.c: New file.
5692         * modules/wcrtomb-tests (Files): Add them.
5693         (Makefile.am): Arrange to run these tests.
5694         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5695         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5696
5697 2011-02-20  Bruno Haible  <bruno@clisp.org>
5698
5699         wcrtomb: Enhance test.
5700         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5701
5702 2011-02-20  Bruno Haible  <bruno@clisp.org>
5703
5704         mbrtowc: Tiny optimization.
5705         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5706
5707 2011-02-20  Jim Meyering  <meyering@redhat.com>
5708
5709         test-exclude.c: remove unmatched #endif
5710         * tests/test-exclude.c: Remove stray #endif, left over from
5711         the change of a week ago.
5712
5713 2011-02-19  Jim Meyering  <meyering@redhat.com>
5714
5715         git-version-gen: skip "-dirty" check when appropriate
5716         * build-aux/git-version-gen: Don't run any git commands when the
5717         version string comes from .tarball-version.  Prior to this, we
5718         would run git update-index --refresh even from a just-unpacked
5719         tarball directory, and that could affect a .git/ directory in a
5720         parent of the build directory.  Reported by Mike Frysinger.
5721
5722 2011-02-19  Bruno Haible  <bruno@clisp.org>
5723
5724         unictype/property-byname: Reduce the size of the 'data' segment.
5725         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5726
5727 2011-02-19  Bruno Haible  <bruno@clisp.org>
5728
5729         unictype/scripts: Reduce the size of the 'data' segment.
5730         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5731         '%pic'.
5732         * lib/unictype/scripts_byname.gperf: Regenerated.
5733
5734 2011-02-19  Bruno Haible  <bruno@clisp.org>
5735
5736         stdint: Update documentation.
5737         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5738
5739 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5740
5741         stdint: omit redundant check for wchar.h
5742         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5743         always tests whether wchar.h exists, so remove the now-redundant test.
5744
5745 2011-02-18  Bruno Haible  <bruno@clisp.org>
5746
5747         stdint: Cut dependency to module 'wchar'.
5748         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5749         include the necessary prerequisites.
5750         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5751         * modules/stdint (Depends-on): Remove wchar.
5752         (Makefile.am): Substitute HAVE_WCHAR_H.
5753         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5754
5755 2011-02-18  Eric Blake  <eblake@redhat.com>
5756
5757         longlong: skip, rather than fail, on cross-compilation
5758         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5759         when cross-compiling; regression from 2011-02-16.
5760
5761 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5762
5763         * NEWS: Mention 2011-02-08 change to stdlib.
5764
5765 2011-02-17  Bruno Haible  <bruno@clisp.org>
5766
5767         getloadavg: Add comments about platforms.
5768         * m4/getloadavg.m4: Add comment.
5769         * lib/getloadavg.c: Likewise.
5770
5771 2011-02-17  Bruno Haible  <bruno@clisp.org>
5772
5773         getloadavg: Fix link error on Solaris 2.6.
5774         * modules/getloadavg (Link): New section.
5775         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5776         linking test-getloadavg.
5777         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5778         getloadavg.
5779
5780 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5781
5782         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5783         It was 'int', but this doesn't match the IRIX 6.5 manual.
5784         Suggested by Bruno Haible in
5785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5786
5787 2011-02-17  Bruno Haible  <bruno@clisp.org>
5788
5789         havelib: Fix comments.
5790         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5791         change.
5792
5793 2011-02-17  Bruno Haible  <bruno@clisp.org>
5794
5795         havelib: Update config.rpath.
5796         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5797
5798 2011-02-17  Bruno Haible  <bruno@clisp.org>
5799
5800         getloadavg test: Add some plausibility checks.
5801         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5802         is improbable.
5803
5804 2011-02-16  Eric Blake  <eblake@redhat.com>
5805
5806         maintainer-makefile: make syntax-check a no-op from tarballs
5807         * top/maint.mk (no-vc-detected): New rule.
5808         (local-checks-available): Use it to avoid hanging if someone tries
5809         'make syntax-check' from a tarball.  Also append to any non-syntax
5810         checks already defined in cfg.mk.
5811
5812 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5813
5814         longlong: tune, particularly for common case of c99
5815
5816         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5817         or running anything if c99, or if unsigned long long int does not
5818         work.  In either case, we know the answer without further tests.
5819         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5820         it at most once, and use its results for both long long int and
5821         unsigned long long int.  This is more likely to be efficient in
5822         the common case where the program wants to check for both long
5823         long int and unsigned long long int.
5824         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5825         since the answer is already known.
5826
5827 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5828
5829         getloadavg: set errno
5830         * lib/getloadavg.c: Set errno when returning -1.  If no other
5831         error number looks appropriate, set it to ENOSYS if the getloadavg
5832         looks like it can't possibly ever work, ENOTSUP otherwise.
5833         Suggested by Bruno Haible in
5834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5835
5836         getloadavg: trim unused parts and speed up 'configure'
5837         * NEWS: Document this.
5838         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5839         always compiled if getloadavg is absent.
5840         Move test code to ...
5841         * tests/test-getloadavg.c: New file, containing previous
5842         contents of test from lib/getloadavg.c.  It also contains
5843         suggestions by Bruno Haible in
5844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5845         * modules/getloadavg-tests: New file.
5846         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5847         Do tests in the same order as they're needed for getloadavg.c.
5848         Omit setgid-related tests that generate symbols KMEM_GROUP,
5849         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5850         Do only the tests that are needed to see whether the system has
5851         getloadavg, moving the other tests into ...
5852         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5853         NLIST_NAME_UNION; nobody should be using it.  Do not define
5854         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5855         relevant, as the user of this module shouldn't care how getloadavg
5856         is implemented.
5857
5858         getloadavg: omit unused var
5859         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5860
5861 2011-02-15  Jim Meyering  <meyering@redhat.com>
5862
5863         doc: update users.txt
5864         * users.txt: Update iwhd's URL.
5865
5866 2011-02-13  Bruno Haible  <bruno@clisp.org>
5867
5868         Consistent macro naming for macros that use GCC __attribute__.
5869         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5870         _ATTRIBUTE_NONNULL_.
5871         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5872         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5873         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5874         ATTRIBUTE_DEPRECATED.
5875         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5876         ATTRIBUTE_NORETURN.
5877         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5878         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5879         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5880         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5881         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5882         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5883         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5884         ATTRIBUTE_SENTINEL.
5885         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5886         ATTRIBUTE_RETURN_CHECK.
5887         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5888         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5889         ATTRIBUTE_NORETURN.
5890         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5891         Reported by Paul Eggert.
5892
5893 2011-02-13  Bruno Haible  <bruno@clisp.org>
5894
5895         Don't interfere with a program's definition of __attribute__.
5896         * lib/argp.h (__attribute__): Remove definition.
5897         (_GL_ATTRIBUTE_FORMAT): New macro.
5898         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5899         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5900         (_GL_ATTRIBUTE_FORMAT): New macro.
5901         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5902         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5903         GCC 3 or newer.
5904         * lib/error.h (__attribute__): Remove definition.
5905         (_GL_ATTRIBUTE_FORMAT): New macro.
5906         (error, error_at_line): Use it.
5907         * lib/hash.h (__attribute__): Remove definition.
5908         (ATTRIBUTE_WUR): Update definition. Define always.
5909         * lib/openat.h (__attribute__): Remove definition.
5910         (ATTRIBUTE_NORETURN): Update definition. Define always.
5911         * lib/sigpipe-die.h (__attribute__): Remove definition.
5912         (ATTRIBUTE_NORETURN): Update definition. Define always.
5913         * lib/vasnprintf.h (__attribute__): Remove definition.
5914         (_GL_ATTRIBUTE_FORMAT): New macro.
5915         (asnprintf, vasnprintf): Use it.
5916         * lib/xalloc.h (__attribute__): Remove definition.
5917         (ATTRIBUTE_NORETURN): Update definition. Define always.
5918         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5919         * lib/xmemdup0.h (__attribute__): Remove definition.
5920         (ATTRIBUTE_NORETURN): Update definition. Define always.
5921         * lib/xprintf.h (__attribute__): Remove definition.
5922         (_GL_ATTRIBUTE_FORMAT): New macro.
5923         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5924         * lib/xstrtol.h (__attribute__): Remove definition.
5925         (ATTRIBUTE_NORETURN): Update definition. Define always.
5926         * lib/xvasprintf.h (__attribute__): Remove definition.
5927         (_GL_ATTRIBUTE_FORMAT): New macro.
5928         (xasprintf, xvasprintf): Use it.
5929         * tests/test-argmatch.c (__attribute__): Remove definition.
5930         (ATTRIBUTE_NORETURN): Update definition. Define always.
5931         * tests/test-exclude.c (__attribute__): Remove definition.
5932         (ATTRIBUTE_NORETURN): Update definition. Define always.
5933         Reported by Paul Eggert.
5934
5935 2011-02-13  Bruno Haible  <bruno@clisp.org>
5936
5937         mbrtowc: Add more tests for native Windows platforms.
5938         * tests/test-mbrtowc-w32-1.sh: New file.
5939         * tests/test-mbrtowc-w32-2.sh: New file.
5940         * tests/test-mbrtowc-w32-3.sh: New file.
5941         * tests/test-mbrtowc-w32-4.sh: New file.
5942         * tests/test-mbrtowc-w32-5.sh: New file.
5943         * tests/test-mbrtowc-w32.c: New file.
5944         * modules/mbrtowc-tests (Files): Add them.
5945         (Makefile.am): Arrange to run these tests.
5946         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5947         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5948
5949 2011-02-13  Bruno Haible  <bruno@clisp.org>
5950
5951         mbrtowc: Work around native Windows bug.
5952         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5953         guess when no suitable locale for testing was found.
5954         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5955
5956 2011-02-13  Bruno Haible  <bruno@clisp.org>
5957
5958         mbsinit: Work around mingw bug.
5959         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5960         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5961         Windows.
5962         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5963
5964 2011-02-13  Bruno Haible  <bruno@clisp.org>
5965
5966         mbsinit: Don't crash for a NULL argument.
5967         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5968         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5969
5970 2011-02-13  Bruno Haible  <bruno@clisp.org>
5971
5972         Don't interfere with a program's definition of __attribute__.
5973         * lib/stdio.in.h (__attribute__): Remove definition.
5974         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5975         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5976         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5977         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5978         * lib/string.in.h (__attribute__): Remove definition.
5979         Reported by Paul Eggert.
5980
5981 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5982
5983         stdlib: don't get in the way of non-GCC __attribute__
5984         See thread starting at
5985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5986         Revert previous stdlib change, installing the following instead:
5987         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5988         to get in the way of a non-GCC compiler that supports __attribute__.
5989         (_GL_ATTRIBUTE_RETURN): New macro.
5990         (_Exit): Use it instead of __attribute__.
5991
5992 2011-02-12  Bruno Haible  <bruno@clisp.org>
5993
5994         quotearg test: Avoid test failure on mingw.
5995         * tests/test-quotearg.sh: Convert the locale identifier from native
5996         Windows syntax to Unix syntax.
5997
5998 2011-02-12  Bruno Haible  <bruno@clisp.org>
5999
6000         setlocale: Prefer gnulib's override over libintl's override.
6001         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6002         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6003         GNULIB_defined_setlocale is set.
6004
6005 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6006
6007         stdlib: support non-GCC __attribute__
6008
6009         Fix a serious and tricky problem encountered when attempting to
6010         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6011         5.5, but it crashed due to memory corruption on Solaris 10 with
6012         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6013         bits that are otherwise zero.  This tagging is optional inside
6014         Emacs but is preferred and is used when __attribute__ ((__aligned
6015         (8))) works, as it does with both recent-enough GCC and with Sun C
6016         5.11.  However, Sun C 5.11 is not GCC and does not #define
6017         __GNUC__ and __GNUC_MINOR__.
6018
6019         When I added the getloadavg module to Emacs, it brought in
6020         stdlib.in.h, which contained this fragment:
6021
6022            #ifndef __attribute__
6023            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6024            #  define __attribute__(Spec)   /* empty */
6025            # endif
6026            #endif
6027
6028         When files that include <stdlib.h> were compiled with Sun C 5.11,
6029         the above code disabled __attribute__ ((__aligned (8))), which
6030         caused variables to not be properly aligned, which eventually led
6031         to the pointer corruption mentioned above.  (This was a bit hard
6032         to diagnose, unfortunately.)
6033
6034         Several "#define __attribute__(X) /* empty */" code snippets need
6035         to be eradicated from Gnulib to work with non-GCC compilers that
6036         support __attribute__.  The Autoconf way to do this is to test for
6037         each kind of attribute that we want support for, and selectively
6038         enable that in source code.
6039
6040         Fix this problem just for stdlib.h, by adding a test for the
6041         __noreturn__ attribute, and change stdlib.in.h to use that test
6042         when needed.  This technique can be easily generalized to the
6043         other *.in.h files and attributes, and a similar technique can be
6044         used for *.h and *.c files.  This patch is enough to solve the
6045         problem for Emacs + getloadavg, and I thought I'd publish it for
6046         feedback before undertaking further, similar fixes in other
6047         modules.
6048
6049         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6050         because it's not needed for stdlib.h.  It merely substitutes the
6051         value directly into stdlib.h.  We may well need to #define it, or
6052         similar symbols, for other modules, but it's nice to also have an
6053         option to not #define it for applications like Emacs that do not
6054         need it.
6055
6056         * lib/stdlib.in.h (__attribute__): Do not #define.
6057         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6058         be defined only if the _Exit module is also used.
6059         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6061         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6062         platforms.
6063         * modules/_Exit (Files): Add m4/attribute.m4.
6064         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6065         * m4/attribute.m4: New file.
6066
6067 2011-02-12  Bruno Haible  <bruno@clisp.org>
6068
6069         wcsrtombs: Work around bug on native Windows.
6070         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6071         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6072         instead of len.
6073         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6074
6075 2011-02-12  Bruno Haible  <bruno@clisp.org>
6076
6077         mbsrtowcs: Work around bug on native Windows.
6078         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6079         against mingw bug.
6080         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6081
6082 2011-02-12  Bruno Haible  <bruno@clisp.org>
6083
6084         Avoid setlocale bugs in tests.
6085         * modules/btowc (Dependencies): Add setlocale.
6086         * modules/c-strcase (Dependencies): Likewise.
6087         * modules/mbmemcasecmp (Dependencies): Likewise.
6088         * modules/mbmemcasecoll (Dependencies): Likewise.
6089         * modules/mbrtowc (Dependencies): Likewise.
6090         * modules/mbscasecmp (Dependencies): Likewise.
6091         * modules/mbscasestr (Dependencies): Likewise.
6092         * modules/mbschr (Dependencies): Likewise.
6093         * modules/mbscspn (Dependencies): Likewise.
6094         * modules/mbsinit (Dependencies): Likewise.
6095         * modules/mbsncasecmp (Dependencies): Likewise.
6096         * modules/mbsnrtowcs (Dependencies): Likewise.
6097         * modules/mbspbrk (Dependencies): Likewise.
6098         * modules/mbspcasecmp (Dependencies): Likewise.
6099         * modules/mbsrchr (Dependencies): Likewise.
6100         * modules/mbsrtowcs (Dependencies): Likewise.
6101         * modules/mbsspn (Dependencies): Likewise.
6102         * modules/mbsstr (Dependencies): Likewise.
6103         * modules/nl_langinfo (Dependencies): Likewise.
6104         * modules/quotearg (Dependencies): Likewise.
6105         * modules/unicase/locale-language (Dependencies): Likewise.
6106         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6107         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6108         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6109         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6110         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6111         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6112         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6113         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6114         * modules/vasnprintf-posix (Dependencies): Likewise.
6115         * modules/wcrtomb (Dependencies): Likewise.
6116         * modules/wcsnrtombs (Dependencies): Likewise.
6117         * modules/wcsrtombs (Dependencies): Likewise.
6118
6119 2011-02-12  Bruno Haible  <bruno@clisp.org>
6120
6121         setlocale: Workaround native Windows bug.
6122         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6123         succeeds but sets LC_CTYPE to "C", report a failure.
6124         * tests/test-setlocale2.sh: New file.
6125         * tests/test-setlocale2.c: New file.
6126         * modules/setlocale-tests (Files): Add the new files.
6127         (Makefile.am): Enable test-setlocale2.sh test.
6128         * doc/posix-functions/setlocale.texi: Mention workaround.
6129
6130 2011-02-11  Bruno Haible  <bruno@clisp.org>
6131
6132         Tests for module 'setlocale'.
6133         * modules/setlocale-tests: New file.
6134         * tests/test-setlocale1.sh: New file.
6135         * tests/test-setlocale1.c: New file.
6136
6137         New module 'setlocale'.
6138         * lib/locale.in.h (setlocale): New declaration.
6139         * lib/setlocale.c: New file, based on
6140         gettext/gettext-runtime/intl/setlocale.c.
6141         * m4/setlocale.m4: New file.
6142         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6143         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6144         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6145         REPLACE_SETLOCALE.
6146         * modules/setlocale: New file.
6147         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6148         * doc/posix-functions/setlocale.texi: Mention the new module.
6149
6150 2011-02-11  Bruno Haible  <bruno@clisp.org>
6151
6152         Prepare for locale dependent tests on mingw.
6153         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6154         because it has the wrong locale encoding.
6155         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6156         French_France.1252 instead of "fr".
6157         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6158         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6159         because it has the wrong locale encoding.
6160         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6161         native Windows, try Turkish_Turkey.65001.
6162         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6163         Chinese_China.54936.
6164
6165         Prepare for locale dependent tests on mingw.
6166         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6167         differently.
6168         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6169         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6170         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6172
6173 2011-02-11  Eric Blake  <eblake@redhat.com>
6174
6175         strptime: avoid compiler warnings
6176         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6177         compiler warnings about dead code.
6178         Reported by Daniel P. Berrange.
6179
6180 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6181
6182         doc: update users.txt
6183         * users.txt: Add rcs.
6184
6185 2011-02-10  John W. Eaton  <jwe@gnu.org>
6186
6187         doc: update users.txt
6188         * users.txt: Add octave.
6189
6190 2011-02-10  Jim Meyering  <meyering@redhat.com>
6191
6192         doc: update users.txt
6193         * users.txt: Add iwhd.
6194
6195 2011-02-09  Bruno Haible  <bruno@clisp.org>
6196
6197         gnulib-tool: Make copyright notice adjustment more robust.
6198         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6199         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6200         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6201         License".
6202         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6203
6204 2011-02-06  Bruno Haible  <bruno@clisp.org>
6205
6206         New module 'towctrans'.
6207         * modules/towctrans: New file.
6208         * lib/wctype.in.h (towctrans): New declaration.
6209         * lib/towctrans.c: New file.
6210         * lib/towctrans-impl.h: New file.
6211         * m4/towctrans.m4: New file.
6212         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6213         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6214         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6215         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6216         * doc/posix-functions/towctrans.texi: Mention the new module.
6217
6218 2011-02-06  Bruno Haible  <bruno@clisp.org>
6219
6220         New module 'wctrans'.
6221         * modules/wctrans: New file.
6222         * lib/wctype.in.h (wctrans): New declaration.
6223         * lib/wctrans.c: New file.
6224         * lib/wctrans-impl.h: New file.
6225         * m4/wctrans.m4: New file.
6226         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6227         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6228         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6229         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6230         * doc/posix-functions/wctrans.texi: Mention the new module.
6231
6232 2011-02-06  Bruno Haible  <bruno@clisp.org>
6233
6234         New module 'iswctype'.
6235         * modules/iswctype: New file.
6236         * lib/wctype.in.h (iswctype): New declaration.
6237         * lib/iswctype.c: New file.
6238         * lib/iswctype-impl.h: New file.
6239         * m4/iswctype.m4: New file.
6240         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6241         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6242         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6243         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6244         * doc/posix-functions/iswctype.texi: Mention the new module and the
6245         HP-UX 11.00 problem.
6246
6247 2011-02-06  Bruno Haible  <bruno@clisp.org>
6248
6249         New module 'wctype'.
6250         * modules/wctype: Change to represent the wctype() substitute.
6251         * lib/wctype.in.h (wctype): New declaration.
6252         * lib/wctype.c: New file.
6253         * lib/wctype-impl.h: New file.
6254         * m4/wctype.m4: New file.
6255         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6256         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6257         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6258         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6259         * doc/posix-functions/wctype.texi: Mention the new module and the
6260         HP-UX 11.00 problem.
6261
6262 2011-02-06  Bruno Haible  <bruno@clisp.org>
6263
6264         wctype-h: Ensure wctype_t and wctrans_t are defined.
6265         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6266         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6267         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6268         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6269         HAVE_WCTRANS_T.
6270         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6271
6272 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6273
6274         flock: fix license typo
6275
6276         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6277         omitted.
6278
6279 2011-02-08  Bruno Haible  <bruno@clisp.org>
6280
6281         Split large sed scripts, for HP-UX sed.
6282         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6283         to avoid HP-UX limit of 99 commands, in the near future.
6284         * modules/stdlib (Makefile.am): Likewise.
6285         * modules/unistd (Makefile.am): Likewise.
6286         * modules/wchar (Makefile.am): Likewise.
6287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6288         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6290
6291 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6292             Bruno Haible  <bruno@clisp.org>
6293
6294         stdlib: improve random_r modularization
6295         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6296         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6297         you also need the random_r module to get this material right.
6298         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6299         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6300         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6301
6302 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6303
6304         stdlib: don't depend on stdint
6305         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6306         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6307         be independent of whether stdint.h is needed.
6308         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6309         here, instead of ...
6310         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6311         struct random_data should be using the random_r module, not just
6312         the stdlib module (which wouldn't make sense: what package needs
6313         just struct random_data without also needing random_r?).
6314         * modules/stdlib (Depends-on): Remove stdint.
6315
6316         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6317         See the thread rooted at
6318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6319         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6320         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6321         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6322         __VMS)); previously it was always included (via fcntl--.h).
6323         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6324         hand; this is good enough for load averages.  Also, do not use
6325         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6326         flags directly if available and don't bother otherwise.  (Packages
6327         that need the extra reliability should use the modules that define
6328         these flags on older platforms that lack them.)
6329         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6330         fcntl-safer.
6331
6332 2011-02-08  Jim Meyering  <meyering@redhat.com>
6333
6334         di-set.h, ino-map.h: add multiple-inclusion guard
6335         Technically, the guard is required only for ino-map.h, due to its
6336         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6337         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6338         * lib/ino-map.h: Likewise.
6339
6340 2011-02-06  Bruno Haible  <bruno@clisp.org>
6341
6342         iswblank: Ensure declaration on glibc systems.
6343         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6344         * modules/iswblank (Dependencies): Add 'extensions'.
6345         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6346
6347 2011-02-06  Bruno Haible  <bruno@clisp.org>
6348
6349         New module 'iswblank'.
6350         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6351         * modules/iswblank: New file.
6352         * modules/wctype-h (Files): Remove lib/iswblank.c.
6353         (Makefile.am): Substitute GNULIB_ISWBLANK.
6354         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6355         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6356         (gl_WCTYPE_H_DEFAULTS): New macro.
6357         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6358         * modules/iswblank-tests: New file.
6359         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6360         * tests/test-wctype-h.c (main): Remove iswblank tests.
6361         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6362         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6363         of 'wctype-h'.
6364         * NEWS: Mention the change.
6365         * modules/mbchar (Depends-on): Add iswblank.
6366
6367 2011-02-08  Bruno Haible  <bruno@clisp.org>
6368
6369         di-set tests: Refactor.
6370         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6371         unnecessary includes.
6372         (ASSERT): Remove macro.
6373         (main): Make C90 compliant by avoiding variable declaration after
6374         statement.
6375         * modules/di-set-tests (Files): Add tests/macros.h.
6376
6377 2011-02-08  Bruno Haible  <bruno@clisp.org>
6378
6379         ino-map tests: Refactor.
6380         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6381         unnecessary includes.
6382         (ASSERT): Remove macro.
6383         (main): Make C90 compliant by avoiding variable declaration after
6384         statement.
6385         * modules/ino-map-tests (Files): Add tests/macros.h.
6386
6387 2011-02-08  Jim Meyering  <meyering@redhat.com>
6388
6389         di-set: add "const" to a cast
6390         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6391         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6392
6393 2011-02-06  Bruno Haible  <bruno@clisp.org>
6394
6395         Rename module 'wctype' to 'wctype-h'.
6396         * modules/wctype-h: Renamed from modules/wctype.
6397         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6398         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6399         (Files, Depends-on, Makefile.am): Update.
6400         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6401         (Files, Makefile.am): Update.
6402         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6403         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6404         * doc/posix-headers/wctype.texi: Update.
6405         * doc/posix-functions/iswalnum.texi: Update.
6406         * doc/posix-functions/iswalpha.texi: Update.
6407         * doc/posix-functions/iswblank.texi: Update.
6408         * doc/posix-functions/iswcntrl.texi: Update.
6409         * doc/posix-functions/iswdigit.texi: Update.
6410         * doc/posix-functions/iswgraph.texi: Update.
6411         * doc/posix-functions/iswlower.texi: Update.
6412         * doc/posix-functions/iswprint.texi: Update.
6413         * doc/posix-functions/iswpunct.texi: Update.
6414         * doc/posix-functions/iswspace.texi: Update.
6415         * doc/posix-functions/iswupper.texi: Update.
6416         * doc/posix-functions/iswxdigit.texi: Update.
6417         * doc/posix-functions/towlower.texi: Update.
6418         * doc/posix-functions/towupper.texi: Update.
6419         * NEWS: Mention the change.
6420         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6421         * modules/mbchar (Dependencies): Likewise.
6422         * modules/mbswidth (Dependencies): Likewise.
6423         * modules/quotearg (Dependencies): Likewise.
6424         * modules/regex (Dependencies): Likewise.
6425         * modules/wcscasecmp (Dependencies): Likewise.
6426         * modules/wcsncasecmp (Dependencies): Likewise.
6427         * modules/wcwidth (Dependencies): Likewise.
6428
6429 2011-02-06  Bruno Haible  <bruno@clisp.org>
6430
6431         New module 'wcswidth'.
6432         * modules/wcswidth: New file.
6433         * lib/wchar.in.h (wcswidth): New declaration.
6434         * lib/wcswidth.c: New file.
6435         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6436         * m4/wcswidth.m4: New file.
6437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6439         REPLACE_WCSWIDTH.
6440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6441         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6442         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6443         * doc/posix-functions/wcswidth.texi: Mention the new module.
6444
6445 2011-02-06  Bruno Haible  <bruno@clisp.org>
6446
6447         New module 'wcstok'.
6448         * modules/wcstok: New file.
6449         * lib/wchar.in.h (wcstok): New declaration.
6450         * lib/wcstok.c: New file.
6451         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6452         * m4/wcstok.m4: New file.
6453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6456         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6457         * doc/posix-functions/wcstok.texi: Mention the new module.
6458
6459 2011-02-06  Bruno Haible  <bruno@clisp.org>
6460
6461         New module 'wcsstr'.
6462         * modules/wcsstr: New file.
6463         * lib/wchar.in.h (wcsstr): New declaration.
6464         * lib/wcsstr.c: New file.
6465         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6466         * m4/wcsstr.m4: New file.
6467         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6468         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6469         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6470         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6471         * doc/posix-functions/wcsstr.texi: Mention the new module.
6472
6473 2011-02-06  Bruno Haible  <bruno@clisp.org>
6474
6475         New module 'wcspbrk'.
6476         * modules/wcspbrk: New file.
6477         * lib/wchar.in.h (wcspbrk): New declaration.
6478         * lib/wcspbrk.c: New file.
6479         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6480         * m4/wcspbrk.m4: New file.
6481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6483         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6484         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6485         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6486
6487 2011-02-06  Bruno Haible  <bruno@clisp.org>
6488
6489         New module 'wcsspn'.
6490         * modules/wcsspn: New file.
6491         * lib/wchar.in.h (wcsspn): New declaration.
6492         * lib/wcsspn.c: New file.
6493         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6494         * m4/wcsspn.m4: New file.
6495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6498         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6499         * doc/posix-functions/wcsspn.texi: Mention the new module.
6500
6501 2011-02-06  Bruno Haible  <bruno@clisp.org>
6502
6503         New module 'wcscspn'.
6504         * modules/wcscspn: New file.
6505         * lib/wchar.in.h (wcscspn): New declaration.
6506         * lib/wcscspn.c: New file.
6507         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6508         * m4/wcscspn.m4: New file.
6509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6512         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6513         * doc/posix-functions/wcscspn.texi: Mention the new module.
6514
6515 2011-02-06  Bruno Haible  <bruno@clisp.org>
6516
6517         New module 'wcsrchr'.
6518         * modules/wcsrchr: New file.
6519         * lib/wchar.in.h (wcsrchr): New declaration.
6520         * lib/wcsrchr.c: New file.
6521         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6522         * m4/wcsrchr.m4: New file.
6523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6526         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6527         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6528
6529 2011-02-06  Bruno Haible  <bruno@clisp.org>
6530
6531         New module 'wcschr'.
6532         * modules/wcschr: New file.
6533         * lib/wchar.in.h (wcschr): New declaration.
6534         * lib/wcschr.c: New file.
6535         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6536         * m4/wcschr.m4: New file.
6537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6540         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6541         * doc/posix-functions/wcschr.texi: Mention the new module.
6542
6543 2011-02-06  Bruno Haible  <bruno@clisp.org>
6544
6545         New module 'wcsdup'.
6546         * modules/wcsdup: New file.
6547         * lib/wchar.in.h (wcsdup): New declaration.
6548         * lib/wcsdup.c: New file.
6549         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6550         * m4/wcsdup.m4: New file.
6551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6554         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6555         * doc/posix-functions/wcsdup.texi: Mention the new module.
6556
6557 2011-02-06  Bruno Haible  <bruno@clisp.org>
6558
6559         New module 'wcsxfrm'.
6560         * modules/wcsxfrm: New file.
6561         * lib/wchar.in.h (wcsxfrm): New declaration.
6562         * lib/wcsxfrm.c: New file.
6563         * lib/wcsxfrm-impl.h: New file.
6564         * m4/wcsxfrm.m4: New file.
6565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6568         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6569         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6570
6571 2011-02-06  Bruno Haible  <bruno@clisp.org>
6572
6573         New module 'wcscoll'.
6574         * modules/wcscoll: New file.
6575         * lib/wchar.in.h (wcscoll): New declaration.
6576         * lib/wcscoll.c: New file.
6577         * lib/wcscoll-impl.h: New file.
6578         * m4/wcscoll.m4: New file.
6579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6582         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6583         * doc/posix-functions/wcscoll.texi: Mention the new module.
6584
6585 2011-02-06  Bruno Haible  <bruno@clisp.org>
6586
6587         New module 'wcsncasecmp'.
6588         * modules/wcsncasecmp: New file.
6589         * lib/wchar.in.h (wcsncasecmp): New declaration.
6590         * lib/wcsncasecmp.c: New file.
6591         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6592         * m4/wcsncasecmp.m4: New file.
6593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6596         HAVE_WCSNCASECMP.
6597         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6598         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6599
6600 2011-02-06  Bruno Haible  <bruno@clisp.org>
6601
6602         New module 'wcscasecmp'.
6603         * modules/wcscasecmp: New file.
6604         * lib/wchar.in.h (wcscasecmp): New declaration.
6605         * lib/wcscasecmp.c: New file.
6606         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6607         * m4/wcscasecmp.m4: New file.
6608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6611         HAVE_WCSCASECMP.
6612         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6613         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6614
6615 2011-02-05  Bruno Haible  <bruno@clisp.org>
6616
6617         New module 'wcsncmp'.
6618         * modules/wcsncmp: New file.
6619         * lib/wchar.in.h (wcsncmp): New declaration.
6620         * lib/wcsncmp.c: New file.
6621         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6622         * m4/wcsncmp.m4: New file.
6623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6625         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6626         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6627         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6628
6629 2011-02-05  Bruno Haible  <bruno@clisp.org>
6630
6631         New module 'wcscmp'.
6632         * modules/wcscmp: New file.
6633         * lib/wchar.in.h (wcscmp): New declaration.
6634         * lib/wcscmp.c: New file.
6635         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6636         * m4/wcscmp.m4: New file.
6637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6640         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6641         * doc/posix-functions/wcscmp.texi: Mention the new module.
6642
6643 2011-02-05  Bruno Haible  <bruno@clisp.org>
6644
6645         New module 'wcsncat'.
6646         * modules/wcsncat: New file.
6647         * lib/wchar.in.h (wcsncat): New declaration.
6648         * lib/wcsncat.c: New file.
6649         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6650         * m4/wcsncat.m4: New file.
6651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6654         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6655         * doc/posix-functions/wcsncat.texi: Mention the new module.
6656
6657 2011-02-05  Bruno Haible  <bruno@clisp.org>
6658
6659         New module 'wcscat'.
6660         * modules/wcscat: New file.
6661         * lib/wchar.in.h (wcscat): New declaration.
6662         * lib/wcscat.c: New file.
6663         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6664         * m4/wcscat.m4: New file.
6665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6668         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6669         * doc/posix-functions/wcscat.texi: Mention the new module.
6670
6671 2011-02-05  Bruno Haible  <bruno@clisp.org>
6672
6673         New module 'wcpncpy'.
6674         * modules/wcpncpy: New file.
6675         * lib/wchar.in.h (wcpncpy): New declaration.
6676         * lib/wcpncpy.c: New file.
6677         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6678         * m4/wcpncpy.m4: New file.
6679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6681         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6682         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6683         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6684
6685 2011-02-05  Bruno Haible  <bruno@clisp.org>
6686
6687         New module 'wcsncpy'.
6688         * modules/wcsncpy: New file.
6689         * lib/wchar.in.h (wcsncpy): New declaration.
6690         * lib/wcsncpy.c: New file.
6691         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6692         * m4/wcsncpy.m4: New file.
6693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6696         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6697         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6698
6699 2011-02-05  Bruno Haible  <bruno@clisp.org>
6700
6701         New module 'wcpcpy'.
6702         * modules/wcpcpy: New file.
6703         * lib/wchar.in.h (wcpcpy): New declaration.
6704         * lib/wcpcpy.c: New file.
6705         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6706         * m4/wcpcpy.m4: New file.
6707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6709         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6710         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6711         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6712
6713 2011-02-05  Bruno Haible  <bruno@clisp.org>
6714
6715         New module 'wcscpy'.
6716         * modules/wcscpy: New file.
6717         * lib/wchar.in.h (wcscpy): New declaration.
6718         * lib/wcscpy.c: New file.
6719         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6720         * m4/wcscpy.m4: New file.
6721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6724         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6725         * doc/posix-functions/wcscpy.texi: Mention the new module.
6726
6727 2011-02-05  Bruno Haible  <bruno@clisp.org>
6728
6729         New module 'wcsnlen'.
6730         * modules/wcsnlen: New file.
6731         * lib/wchar.in.h (wcsnlen): New declaration.
6732         * lib/wcsnlen.c: New file.
6733         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6734         * m4/wcsnlen.m4: New file.
6735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6737         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6738         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6739         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6740
6741 2011-02-05  Bruno Haible  <bruno@clisp.org>
6742
6743         New module 'wcslen'.
6744         * modules/wcslen: New file.
6745         * lib/wchar.in.h (wcslen): New declaration.
6746         * lib/wcslen.c: New file.
6747         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6748         * m4/wcslen.m4: New file.
6749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6752         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6753         * doc/posix-functions/wcslen.texi: Mention the new module.
6754
6755 2011-02-05  Bruno Haible  <bruno@clisp.org>
6756
6757         New module 'wmemset'.
6758         * modules/wmemset: New file.
6759         * lib/wchar.in.h (wmemset): New declaration.
6760         * lib/wmemset.c: New file.
6761         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6762         * m4/wmemset.m4: New file.
6763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6765         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6766         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6767         * doc/posix-functions/wmemset.texi: Mention the new module.
6768
6769 2011-02-05  Bruno Haible  <bruno@clisp.org>
6770
6771         New module 'wmemmove'.
6772         * modules/wmemmove: New file.
6773         * lib/wchar.in.h (wmemmove): New declaration.
6774         * lib/wmemmove.c: New file.
6775         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6776         * m4/wmemmove.m4: New file.
6777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6779         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6780         HAVE_WMEMMOVE.
6781         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6782         * doc/posix-functions/wmemmove.texi: Mention the new module.
6783
6784 2011-02-05  Bruno Haible  <bruno@clisp.org>
6785
6786         New module 'wmemcpy'.
6787         * modules/wmemcpy: New file.
6788         * lib/wchar.in.h (wmemcpy): New declaration.
6789         * lib/wmemcpy.c: New file.
6790         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6791         * m4/wmemcpy.m4: New file.
6792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6794         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6795         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6796         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6797
6798 2011-02-05  Bruno Haible  <bruno@clisp.org>
6799
6800         New module 'wmemcmp'.
6801         * modules/wmemcmp: New file.
6802         * lib/wchar.in.h (wmemcmp): New declaration.
6803         * lib/wmemcmp.c: New file.
6804         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6805         * m4/wmemcmp.m4: New file.
6806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6808         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6809         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6810         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6811
6812 2011-02-07  Jim Meyering  <meyering@redhat.com>
6813
6814         di-set, ino-map: new modules, from coreutils
6815         * lib/di-set.c: New file.
6816         * lib/di-set.h: Likewise.
6817         * lib/ino-map.c: Likewise.
6818         * lib/ino-map.h: Likewise.
6819         * modules/di-set: Likewise.
6820         * modules/di-set-tests: Likewise.
6821         * modules/ino-map: Likewise.
6822         * modules/ino-map-tests: Likewise.
6823         * tests/test-di-set.c: Likewise.
6824         * tests/test-ino-map.c: Likewise.
6825
6826 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         getloadavg: merge minor changes from Emacs
6829
6830         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6831         (getloadavg): Use memset, not bzero.
6832
6833         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6834         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6835         clash (bug#86).
6836
6837 2010-11-14  Bruno Haible  <bruno@clisp.org>
6838
6839         Allow multiple gnulib generated replacements to coexist.
6840         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6841         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6842         * lib/langinfo.in.h (nl_item): Likewise.
6843         * lib/math.in.h (_NaN, NAN): Likewise.
6844         * lib/netdb.in.h (struct addrinfo): Likewise.
6845         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6846         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6847         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6848         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6849         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6850         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6851         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6852         pthread_mutexattr_init, pthread_mutexattr_settype,
6853         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6854         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6855         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6856         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6857         * lib/sched.in.h (struct sched_param): Likewise.
6858         * lib/se-selinux.in.h (security_class_t, security_context_t,
6859         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6860         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6861         lsetfilecon, fsetfilecon, security_check_context,
6862         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6863         Likewise.
6864         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6865         Likewise.
6866         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6867         _gl_function_taking_int_returning_void_t, union sigval,
6868         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6869         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6870         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6871         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6872         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6873         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6874         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6875         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6876         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6877         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6878         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6879         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6880         socklen_t, rpl_fd_isset): Likewise.
6881         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6882         * lib/sys_time.in.h (struct timeval): Likewise.
6883         * lib/sys_times.in.h (struct tms): Likewise.
6884         * lib/sys_utsname.in.h (struct utsname):
6885         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6886         * lib/unistd.in.h (getpagesize): Likewise.
6887         * lib/wchar.in.h (mbstate_t): Likewise.
6888         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6889         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6890         towlower, towupper): Likewise.
6891         Reported by Sam Steingold <sds@gnu.org>.
6892
6893 2011-02-05  Eric Blake  <eblake@redhat.com>
6894
6895         unsetenv: work around Haiku issues
6896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6897         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6898
6899 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6900
6901         libposix: avoid calling error() within libposix
6902         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6903         is defined.
6904
6905 2011-02-05  Eric Blake  <eblake@redhat.com>
6906
6907         strerror_r-posix: port to cygwin
6908         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6909         implementation.
6910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6911         * tests/test-strerror_r.c (main): Fix test.
6912         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6913         issue.
6914
6915 2011-02-05  Bruno Haible  <bruno@clisp.org>
6916
6917         New module 'wmemchr'.
6918         * modules/wmemchr: New file.
6919         * lib/wchar.in.h (wmemchr): New declaration.
6920         * lib/wmemchr.c: New file.
6921         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6922         * m4/wmemchr.m4: New file.
6923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6925         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6926         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6927         * doc/posix-functions/wmemchr.texi: Mention the new module.
6928
6929 2011-02-04  Eric Blake  <eblake@redhat.com>
6930
6931         fdopendir: detect FreeBSD bug
6932         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6933         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6934
6935 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6936
6937         stdbool: do not define HAVE_STDBOOL_H
6938         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6939         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6940         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6941         imported from the latest Autoconf git.  It was motivated by Emacs,
6942         which uses gnulib but does not need HAVE_STDBOOL_H.
6943
6944 2011-02-04  Bruno Haible  <bruno@clisp.org>
6945
6946         wcsnrtombs: Prepare for new module wwcsnrtombs.
6947         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6948         * lib/wcsnrtombs.c: Include it.
6949         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6950
6951         wcsrtombs: Prepare for new module wwcsrtombs.
6952         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6953         * lib/wcsrtombs.c: Include it.
6954         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6955
6956         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6957         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6958         * lib/mbsnrtowcs.c: Include it.
6959         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6960
6961         mbsrtowcs: Prepare for new module mbsrtowwcs.
6962         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6963         * lib/mbsrtowcs.c: Include it.
6964         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6965
6966 2011-02-04  Bruno Haible  <bruno@clisp.org>
6967
6968         vasnprintf: Reduce use of malloc for small format strings.
6969         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6970         (arguments): Add room for the first 7 arguments.
6971         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6972         (char_directives, u8_directives, u16_directives, u32_directives): Add
6973         room for the first 7 directives.
6974         * lib/printf-parse.c: Include <string.h>.
6975         (PRINTF_PARSE): Change memory handling code so that it uses the first
6976         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6977         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6978         Reported by Pádraig Brady <P@draigbrady.com>.
6979
6980 2011-01-31  Eric Blake  <eblake@redhat.com>
6981
6982         dup2: work around Haiku bug
6983         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6984         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6985         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6986         * tests/test-dup2.c (main): Enhance test.
6987
6988 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6989
6990         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6991         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6992         declared by eglibc 2.11.2.
6993         * lib/stdio.in.h: Likewise.
6994
6995 2011-01-31  Eric Blake  <eblake@redhat.com>
6996
6997         ignore-value: add missing test dependency
6998         * tests/test-ignore-value.c: Revert previous change; stdio.h
6999         provides off_t.
7000         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7001
7002 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7003
7004         mktime: clarify long_int width checking
7005         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7006         the top level, to make it clearer that the assumption about
7007         long_int width is being checked.  See
7008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7009
7010 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7011
7012         ignore-value: Fix self-test.
7013         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7014
7015 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         TYPE_MAXIMUM: avoid theoretically undefined behavior
7018         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7019         negative number, which the C Standard says has undefined behavior.
7020         In practice this is not a problem, but might as well do it by the book.
7021         Reported by Rich Felker and Eric Blake; see
7022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7023         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7024         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7026         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7027         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7028         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7029
7030         mktime: #undef mktime before #defining it
7031         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7032
7033         mktime: systematically normalize tm_isdst comparisons
7034         * lib/mktime.c (isdst_differ): New function.
7035         (__mktime_internal): Use it systematically for all isdst comparisons.
7036         This completes the fix for libc BZ #6723, and removes the need for
7037         normalizing tm_isdst.  See
7038         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7039         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7040
7041         mktime: fix some integer overflow issues and sidestep the rest
7042
7043         This was prompted by a bug report by Benjamin Lindner for MinGW
7044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7045         His bug is due to signed integer overflow (0 - INT_MIN), and I
7046         I scanned through mktime.c looking for other integer overflow
7047         problems, fixing all the bugs I found.
7048
7049         Although the C Standard says the resulting code is still not safe
7050         in the presence of integer overflow, in practice it should be good
7051         enough for all real-world two's-complement implementations, except
7052         for debugging environments that deliberately trap on integer
7053         overflow (e.g., gcc -ftrapv).
7054
7055         * lib/mktime.c (WRAPV): New macro.
7056         (SHR): Also check that long_int and time_t shift right in the
7057         usual way, before using the fast-but-unportable method.
7058         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7059         used.  The code already assumed two's complement, so there's
7060         no need to test for alternatives.  All uses removed.
7061         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7062         the C standard.  Problem reported by Rich Felker in
7063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7064         (twos_complement_arithmetic): Also check long_int and time_t.
7065         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7066         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7067         (__mktime_internal): Avoid integer overflow with unary subtraction
7068         in two instances where -1 - X is an adequate replacement for -X,
7069         since the calculations are approximate.
7070
7071 2011-01-29  Eric Blake  <eblake@redhat.com>
7072
7073         mktime: avoid infinite loop
7074         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7075         type; behavior is still undefined but portable to all known targets.
7076         Reported by Rich Felker.
7077
7078 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7079
7080         rename, unlink, same-inode: Relicense.
7081         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7082         * modules/unlink (License): Likewise.
7083         * modules/same-inode (License): Likewise.
7084
7085 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7086
7087         mktime: avoid problems on NetBSD 5 / i386
7088         * lib/mktime.c (long_int): New type.  This works around a problem
7089         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7090         but time_t is 64 bits, and where I expect the existing code is
7091         wrong in some cases.
7092         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7093         (ydhms_diff): Bring back the compile-time check for wide-enough
7094         year and yday.
7095
7096         mktime: fix misspelling in comment
7097         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7098         This merges all recent glibc changes of importance.
7099
7100 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7101
7102         move-if-change: cope with concurrent mv of identical file.
7103         * build-aux/move-if-change (CMPPROG): Accept environment
7104         variable as an override for `cmp'.
7105         (usage): Document CMPPROG.
7106         Adjust comparison to drop stdout.  Cope with failure of mv if
7107         the target file exists and is identical to the source, for
7108         parallel builds.
7109         Report from H.J. Lu against binutils in PR binutils/12283.
7110
7111 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7112
7113         * users.txt: Mention sharutils.
7114
7115 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7116
7117         * users.txt: Mention OATH Toolkit.
7118
7119 2011-01-27  Bruno Haible  <bruno@clisp.org>
7120
7121         Prepare for supporting FreeBSD 10.
7122         * build-aux/config.libpath: Remove handling of freebsd1*.
7123
7124 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7125
7126         Prepare for supporting FreeBSD 10.
7127         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7128         match FreeBSD 10.0.
7129
7130 2011-01-27  Bruno Haible  <bruno@clisp.org>
7131
7132         vma-iter, get-rusage-as: Add OpenBSD support.
7133         * modules/vma-iter (configure.ac): Test for mquery.
7134         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7135         * lib/vma-iter.c: Include <sys/mman.h>.
7136         (vma_iterate): Add an implementation based on mquery().
7137         * lib/resource-ext.h (get_rusage_as): Update comments.
7138         * lib/get-rusage-as.c: Likewise.
7139         * lib/get-rusage-data.c: Likewise.
7140
7141 2011-01-26  Karl Berry  <karl@gnu.org>
7142
7143         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7144         variables to make it easier to override the makeinfo program used.
7145
7146 2011-01-26  Eric Blake  <eblake@redhat.com>
7147
7148         fcntl: work around Haiku F_DUPFD bugs
7149         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7150         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7151         cloexec bit on duplication.
7152         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7153
7154 2011-01-26  Bruno Haible  <bruno@clisp.org>
7155
7156         Enable memory leak tests on AIX.
7157         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7158         * tests/test-fprintf-posix3.c (main): Likewise.
7159
7160 2011-01-26  Bruno Haible  <bruno@clisp.org>
7161
7162         Tests for module 'get-rusage-data'.
7163         * modules/get-rusage-data-tests: New file.
7164         * tests/test-get-rusage-data.c: New file.
7165
7166         New module 'get-rusage-data'.
7167         * lib/resource-ext.h (get_rusage_data): New declaration.
7168         * lib/get-rusage-data.c: New file.
7169         * modules/get-rusage-data: New file.
7170
7171 2011-01-25  Bruno Haible  <bruno@clisp.org>
7172
7173         get-rusage-as: Allow for easier testing.
7174         * lib/resource-ext.h (get_rusage_as): Add comment.
7175         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7176         (main): New function for interactive testing.
7177
7178 2011-01-25  Bruno Haible  <bruno@clisp.org>
7179
7180         vma-iter: Treat Haiku like BeOS.
7181         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7182         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7183
7184 2011-01-25  Eric Blake  <eblake@redhat.com>
7185
7186         c-stack: fix regression on cygwin when libsigsegv is present
7187         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7188
7189 2011-01-24  Bruno Haible  <bruno@clisp.org>
7190
7191         vma-iter: Avoid empty intervals.
7192         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7193         on an empty interval.
7194
7195 2011-01-24  Jim Meyering  <meyering@redhat.com>
7196
7197         u64: remove unnecessary #include
7198         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7199
7200 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7201
7202         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7203         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7204
7205 2011-01-23  Bruno Haible  <bruno@clisp.org>
7206
7207         New module 'vma-iter'.
7208         * lib/vma-iter.h: New file.
7209         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7210         * modules/vma-iter: New file.
7211         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7212         for get_rusage_as_via_iterator.
7213         (vma_iterate_callback): New function.
7214         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7215         * modules/get-rusage-as (Depends-on): Add vma-iter.
7216
7217 2011-01-23  Bruno Haible  <bruno@clisp.org>
7218
7219         uninorm: Tweak includes.
7220         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7221         Reported by Jim Meyering.
7222
7223 2011-01-23  Bruno Haible  <bruno@clisp.org>
7224
7225         get-rusage-as: Improve on NetBSD.
7226         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7227         /proc, like on FreeBSD.
7228
7229 2011-01-23  Jim Meyering  <meyering@redhat.com>
7230
7231         xreadlink.h: remove unnecessary #include
7232         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7233
7234         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7235         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7236
7237 2011-01-23  Bruno Haible  <bruno@clisp.org>
7238
7239         get-rusage-as: Fix bug.
7240         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7241         original limit when aborting the first loop.
7242
7243 2011-01-23  Bruno Haible  <bruno@clisp.org>
7244
7245         wctype: Ensure valid C syntax.
7246         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7247         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7248
7249 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7250
7251         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7253         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7254         as they are needed only for configure's test case.
7255         This removes two unnecessary symbols from config.h.
7256
7257         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7258         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7260         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7261         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7263         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7264         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7266         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7267         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7271         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7272         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7273         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7274         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7275
7276 2011-01-21  Eric Blake  <eblake@redhat.com>
7277
7278         maintainer-makefile: work with older git for submodule check
7279         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7280         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7281         Reported by Matthias Bolte.
7282
7283         bootstrap: minor portability fixes
7284         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7285         (usage): Omit leading capital and trailing . on help phrases, per
7286         GNU Coding Standards.
7287         (check_versions, top level): Prefix messages with script name.
7288
7289 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7290
7291         bootstrap: support --no-git option
7292         * build-aux/bootstrap: Add --no-git option, to be used when
7293         --gnulib-srcdir points to the exact desired checkout.
7294
7295 2011-01-21  Eric Blake  <eblake@redhat.com>
7296
7297         strerror_r-posix: work with glibc 2.13
7298         * lib/strerror_r.c (strerror_r): Fix return type.
7299
7300 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7301             Bruno Haible  <bruno@clisp.org>
7302
7303         uN_strstr: New unit tests.
7304         * modules/unistr/u8-strstr-tests: New file.
7305         * modules/unistr/u16-strstr-tests: New file.
7306         * modules/unistr/u32-strstr-tests: New file.
7307         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7308         * tests/unistr/test-u8-strstr.c: New file.
7309         * tests/unistr/test-u16-strstr.c: New file.
7310         * tests/unistr/test-u32-strstr.c: New file.
7311
7312 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7313             Bruno Haible  <bruno@clisp.org>
7314
7315         Make uN_strstr functions O(n) worst-case.
7316         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7317         16-bit and 32-bit unit cases, use the unibyte algorithm from
7318         lib/mbsstr.c.
7319         * lib/unistr/u8-strstr.c: Include <string.h>.
7320         (UNIT_IS_UINT8_T): New macro.
7321         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7322         (U_STRLEN, U_STRNLEN): New macros.
7323         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7324         (U_STRLEN, U_STRNLEN): New macros.
7325         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7326         (configure.ac): Update required libunistring version.
7327         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7328         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7329         malloca.
7330         (configure.ac): Update required libunistring version.
7331         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7332         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7333         malloca.
7334         (configure.ac): Update required libunistring version.
7335
7336 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7337             Bruno Haible  <bruno@clisp.org>
7338
7339         Prepare for faster uN_strstr functions.
7340         * lib/str-kmp.h: Support definable UNITs.
7341         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7342         needle_len argument.
7343         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7344         * lib/mbscasestr.c (mbscasestr): Likewise.
7345
7346 2011-01-21  Pádraig Brady <P@draigBrady.com>
7347
7348         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7349         * tests/test-malloca.c (main): Unset the environment variable
7350         to greatly speed up the test.
7351         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7352         * modules/malloca-tests: Depend on unsetenv.
7353
7354 2011-01-21  Pádraig Brady <P@draigBrady.com>
7355
7356         ignore-value: remove stdint dependency
7357         * lib/ignore-value.h: Remove <stdint.h>
7358         * modules/ignore-value: Remove stdint dependency.
7359
7360 2011-01-21  Jim Meyering  <meyering@redhat.com>
7361
7362         maint.mk: adjust variable name to be consistent with other gl_ vars
7363         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7364         to be lower case.
7365
7366 2011-01-20  Jim Meyering  <meyering@redhat.com>
7367
7368         maint.mk: make "check" depend on public-submodule-commit by default
7369         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7370
7371 2011-01-20  Bruno Haible  <bruno@clisp.org>
7372
7373         mbfile, mbiter: Complete change from 2008-12-21.
7374         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7375         * m4/mbiter.m4 (gl_MBITER): Likewise.
7376
7377 2011-01-20  Jim Meyering  <meyering@redhat.com>
7378
7379         init.sh: insert space between each function name and "()"
7380         * tests/init.sh: Make it a little easier to see that a function's
7381         name is "warn_", and not "warn" when looking at the first part of
7382         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7383
7384 2011-01-20  Jim Meyering  <meyering@redhat.com>
7385
7386         mountlist: clean up code formatting
7387         * lib/mountlist.c (read_file_system_list): Split a long line,
7388         correct bracing style, use NULL in place of "(struct statfs *)0",
7389         don't parenthesize return value, add spaces around "=" and after
7390         ";-in-for-stmt".
7391
7392 2011-01-14  Markus Duft <mduft@gentoo.org>
7393
7394         mountlist: add support for Interix
7395         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7396         Apply statvfs to all entries of /dev/fs.
7397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7398         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7399
7400 2011-01-20  Jim Meyering  <meyering@redhat.com>
7401
7402         maint.mk: improve the public-submodule-commit rule
7403         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7404         to suppress printing of its commands... unless V=1.
7405         Add git submodule's --quiet option to suppress printing of e.g.,
7406         "Entering gnulib" output.
7407         "cd" into $(srcdir) before running git submodule.
7408
7409 2011-01-20  Bruno Haible  <bruno@clisp.org>
7410
7411         include_next: Fix bug introduced on 2011-01-18.
7412         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7413         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7414         ac_cv_header_... variable if the second argument is not 'check'.
7415         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7416         gl_NEXT_HEADERS_INTERNAL.
7417
7418 2011-01-20  Bruno Haible  <bruno@clisp.org>
7419
7420         Allow the user to avoid the GNULIB_TEST_* macros.
7421         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7422         Suggested by Paul Eggert.
7423
7424 2011-01-14  Jim Meyering  <meyering@redhat.com>
7425
7426         bootstrap: avoid failure when there is no .gitmodules file
7427         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7428         has been assigned to, even when its value is the empty string.
7429         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7430         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7431         Reported by John W. Eaton <jwe@gnu.org>.
7432
7433 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7434
7435         assume <ctype.h>, ..., <time.h> exist
7436         For years gnulib has been assuming the existence of the headers
7437         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7438         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7439         them, since they don't appear to be needed.
7440         * README (Portability guidelines): Document this.
7441         * lib/flock.c: Assume <fcntl.h> exists.
7442         * lib/regex_internal.h: Assume <locale.h> exists.
7443         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7444         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7445         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7446         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7447         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7448         * m4/regex.m4 (gl_REGEX): Likewise.
7449         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7450         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7451         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7452         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7453         * tests/test-argp.c: Likewise.
7454         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7455
7456         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7457         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7458         AA_APPLE_UNIVERSAL_BUILD.  See
7459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7460         * NEWS: Document this.
7461
7462 2011-01-19  Eric Blake  <eblake@redhat.com>
7463
7464         c-stack: assume stack overflow if SA_SIGINFO unsupported
7465         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7466         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7467         sigaction will work.
7468         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7469         behavior match Linux.
7470         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7471
7472         stdbool-tests: accomodate Haiku
7473         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7474
7475         binary-io: fix O_TEXT on Haiku
7476         * modules/binary-io (Depends-on): Add fcntl-h.
7477         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7478         than blindly undefining O_TEXT.
7479         Reported by Scott McCreary.
7480
7481 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7482
7483         include_next: do not check for standard headers like stddef.h
7484
7485         I found this problem when modifying Emacs to use gnulib.
7486         I noticed that it added HAVE_STDDEF_H to config.h, even though
7487         gnulib always assumes <stddef.h> exists as per README and this
7488         symbol is unnecessary.
7489         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7490         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7491         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7492         faster for headers like stddef.h that are known to exist.
7493         (gl_CHECK_NEXT_HEADERS): Use it.
7494         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7495         rather than gl_CHECK_NEXT_HEADERS.
7496         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7497         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7498
7499 2011-01-18  Eric Blake  <eblake@redhat.com>
7500
7501         ansi-c++-opt: skip C++ dependency style if C++ is unused
7502         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7503         tests when we know C++ compilation is not desired.
7504         Reported by Scott McCreary.
7505
7506 2011-01-18  Bruno Haible  <bruno@clisp.org>
7507
7508         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7509         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7510         (main): Perform test also when getrlimit and setrlimit don't exist or
7511         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7512         limiting the address space size using setrlimit, compare the address
7513         space size before and after the the test.
7514         * tests/test-dprintf-posix2.c: Likewise.
7515         * tests/test-fprintf-posix3.sh: Update skip messages.
7516         * tests/test-dprintf-posix2.sh: Likewise.
7517         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7518         * modules/dprintf-posix-tests (Depends-on): Likewise.
7519         Reported by Bruce Korb <bkorb@gnu.org> and
7520         Gary V. Vaughan <gary@gnu.org>.
7521
7522 2011-01-18  Bruno Haible  <bruno@clisp.org>
7523
7524         get-rusage-as: Improvement for Cygwin.
7525         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7526         areas that are merely reserved.
7527
7528 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         strftime: remove dependencies on multibyte modules
7531
7532         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7533         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7534         only if __osf__ is defined, and I suspect OSF doesn't need these
7535         other modules.  If my guess is wrong, we'll need to come up with a
7536         variant of strftime that doesn't need the multibyte modules.
7537
7538         I discovered this problem when attempting modify Emacs to use the
7539         strftime module.  With the previous gnulib, this caused Emacs to
7540         need 31 new files, ranging from lib/config.charset to
7541         m4/wint_t.m4.  This was overkill and I expect would be offputting
7542         to the Emacs maintainers.  After this change, only 6 new files are
7543         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7544         stdbool.m4, and tm_gmtoff.m4.
7545
7546         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7547         Suggested by Bruno Haible in
7548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7549         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7550         and do not check for wchar.h.
7551         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7552         (Depends-on): Remove mbrlen, mbsinit, wchar.
7553
7554 2011-01-18  Bruno Haible  <bruno@clisp.org>
7555
7556         Tests for module 'get-rusage-as'.
7557         * modules/get-rusage-as-tests: New file.
7558         * tests/test-get-rusage-as.c: New file.
7559
7560         New module 'get-rusage-as'.
7561         * modules/get-rusage-as: New file.
7562         * lib/resource-ext.h: New file.
7563         * lib/get-rusage-as.c: New file.
7564
7565 2011-01-17  Eric Blake  <eblake@redhat.com>
7566
7567         sigaction: relax license from LGPLv3+ to LGPLv2+
7568         * modules/sigaction (License): Relax to LGPLv2+.
7569
7570 2011-01-14  Bruno Haible  <bruno@clisp.org>
7571
7572         filemode: Make function declarations usable in C++ mode.
7573         * lib/filemode.h: Enclose function declarations in extern "C" block.
7574         Reported by John W. Eaton <jwe@gnu.org>.
7575
7576 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7577
7578         save-cwd: no longer include "xgetcwd.h"
7579         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7580         This avoids a compilation failure in projects that use save-cwd
7581         without also using the xgetcwd module.
7582
7583 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7584
7585         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7586         This is so that a program like Emacs, which needs only dtoastr,
7587         does not have to bother with distributing and compiling ftoastr
7588         and ldtoastr.
7589         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7590         * modules/dtoastr, modules/ldtoastr: New files.
7591         * modules/ftoastr: Now works just for 'float'.
7592         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7593         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7594         dtoastr.c, ldtoastr.c.
7595
7596 2011-01-11  Jim Meyering  <meyering@redhat.com>
7597
7598         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7599         There is no need to work around the lack of the fchdir function,
7600         since gnulib can now provide a replacement when required.
7601         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7602         * modules/save-cwd (Depends-on): Add fchdir.
7603
7604 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7605
7606         openat, save-cwd: avoid xmalloc
7607
7608         This removes a direct (but undocumented) dependency of openat on
7609         xalloc, along with an indirect dependency via save-cwd.  It also
7610         removes a dependency of save-cwd on xgetcwd, and thereby
7611         indirectly on xalloc.  This change causes the openat substitute
7612         to fall back on save_cwd when memory is tight, and for save_cwd to
7613         fail instead of dying when memory is tight, but that's good enough.
7614         Problem and initial idea for fix reported by Bastien Roucaries in
7615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7616
7617         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7618         xalloc.h (for xmalloc).
7619         (openat_proc_name): Use malloc, not xmalloc.
7620         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7621         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7622
7623         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7624         This avoids heap allocation for file names whose lengths are in
7625         the range 512..1023, with the upper bound increasing to at most
7626         4031 depending on the platform's PATH_MAX.  (We do not want
7627         pathmax.h here as it might supply a non-constant PATH_MAX.)
7628         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7629         Perhaps they should be moved to malloca.h?
7630         (OPENAT_BUFFER_SIZE): Use them.
7631
7632 2011-01-10  Bruno Haible  <bruno@clisp.org>
7633
7634         doc: Update users.txt.
7635         * users.txt: Add recutils.
7636
7637 2011-01-09  Karl Berry  <karl@gnu.org>
7638
7639         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7640
7641         * doc/configmake.texi: New file.
7642         * doc/gnulib.texi: Include it.
7643         * modules/configmake: Move documentation from here.
7644
7645 2011-01-09  Bruno Haible  <bruno@clisp.org>
7646
7647         Update to Unicode 6.0.0.
7648         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7649         (get_lbp): Update for Unicode 6.0.0.
7650         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7651         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7652         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7653         U+11001, U+11038..U+11046. Remove U+06DE.
7654         (uc_width): Fix bounds of planes.
7655         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7656         lib/uniwidth/width.c.
7657         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7658         trailing whitespace removed.
7659         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7660         without comments, but with the original copyright notice.
7661         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7662         * lib/unicase/ignorable.h: Likewise.
7663         * lib/unicase/tocasefold.h: Likewise.
7664         * lib/unicase/tolower.h: Likewise.
7665         * lib/unicase/totitle.h: Likewise.
7666         * lib/unicase/toupper.h: Likewise.
7667         * lib/unictype/bidi_of.h: Likewise.
7668         * lib/unictype/blocks.h: Likewise.
7669         * lib/unictype/categ_C.h: Likewise.
7670         * lib/unictype/categ_Cn.h: Likewise.
7671         * lib/unictype/categ_L.h: Likewise.
7672         * lib/unictype/categ_Ll.h: Likewise.
7673         * lib/unictype/categ_Lm.h: Likewise.
7674         * lib/unictype/categ_Lo.h: Likewise.
7675         * lib/unictype/categ_Lu.h: Likewise.
7676         * lib/unictype/categ_M.h: Likewise.
7677         * lib/unictype/categ_Mc.h: Likewise.
7678         * lib/unictype/categ_Me.h: Likewise.
7679         * lib/unictype/categ_Mn.h: Likewise.
7680         * lib/unictype/categ_N.h: Likewise.
7681         * lib/unictype/categ_Nd.h: Likewise.
7682         * lib/unictype/categ_No.h: Likewise.
7683         * lib/unictype/categ_P.h: Likewise.
7684         * lib/unictype/categ_Po.h: Likewise.
7685         * lib/unictype/categ_S.h: Likewise.
7686         * lib/unictype/categ_Sc.h: Likewise.
7687         * lib/unictype/categ_Sk.h: Likewise.
7688         * lib/unictype/categ_Sm.h: Likewise.
7689         * lib/unictype/categ_So.h: Likewise.
7690         * lib/unictype/categ_of.h: Likewise.
7691         * lib/unictype/combining.h: Likewise.
7692         * lib/unictype/ctype_alnum.h: Likewise.
7693         * lib/unictype/ctype_alpha.h: Likewise.
7694         * lib/unictype/ctype_graph.h: Likewise.
7695         * lib/unictype/ctype_lower.h: Likewise.
7696         * lib/unictype/ctype_print.h: Likewise.
7697         * lib/unictype/ctype_punct.h: Likewise.
7698         * lib/unictype/ctype_upper.h: Likewise.
7699         * lib/unictype/decdigit.h: Likewise.
7700         * lib/unictype/digit.h: Likewise.
7701         * lib/unictype/numeric.h: Likewise.
7702         * lib/unictype/pr_alphabetic.h: Likewise.
7703         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7704         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7705         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7706         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7707         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7708         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7709         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7710         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7711         * lib/unictype/pr_case_ignorable.h: Likewise.
7712         * lib/unictype/pr_cased.h: Likewise.
7713         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7714         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7715         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7716         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7717         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7718         * lib/unictype/pr_combining.h: Likewise.
7719         * lib/unictype/pr_composite.h: Likewise.
7720         * lib/unictype/pr_currency_symbol.h: Likewise.
7721         * lib/unictype/pr_decimal_digit.h: Likewise.
7722         * lib/unictype/pr_deprecated.h: Likewise.
7723         * lib/unictype/pr_format_control.h: Likewise.
7724         * lib/unictype/pr_grapheme_base.h: Likewise.
7725         * lib/unictype/pr_grapheme_extend.h: Likewise.
7726         * lib/unictype/pr_grapheme_link.h: Likewise.
7727         * lib/unictype/pr_id_continue.h: Likewise.
7728         * lib/unictype/pr_id_start.h: Likewise.
7729         * lib/unictype/pr_ideographic.h: Likewise.
7730         * lib/unictype/pr_lowercase.h: Likewise.
7731         * lib/unictype/pr_math.h: Likewise.
7732         * lib/unictype/pr_numeric.h: Likewise.
7733         * lib/unictype/pr_other_alphabetic.h: Likewise.
7734         * lib/unictype/pr_other_id_continue.h: Likewise.
7735         * lib/unictype/pr_other_math.h: Likewise.
7736         * lib/unictype/pr_punctuation.h: Likewise.
7737         * lib/unictype/pr_sentence_terminal.h: Likewise.
7738         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7739         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7740         * lib/unictype/pr_unified_ideograph.h: Likewise.
7741         * lib/unictype/pr_uppercase.h: Likewise.
7742         * lib/unictype/pr_xid_continue.h: Likewise.
7743         * lib/unictype/pr_xid_start.h: Likewise.
7744         * lib/unictype/scripts.h: Likewise.
7745         * lib/unictype/scripts_byname.gperf: Likewise.
7746         * lib/unictype/sy_java_ident.h: Likewise.
7747         * lib/unigbrk/gbrkprop.h: Likewise.
7748         * lib/unilbrk/lbrkprop1.h: Likewise.
7749         * lib/unilbrk/lbrkprop2.h: Likewise.
7750         * lib/uninorm/decomposition-table2.h: Likewise.
7751         * lib/uniwbrk/wbrkprop.h: Likewise.
7752         * tests/unicase/test-cased.c: Likewise.
7753         * tests/unicase/test-ignorable.c: Likewise.
7754         * tests/unicase/test-uc_tolower.c: Likewise.
7755         * tests/unicase/test-uc_totitle.c: Likewise.
7756         * tests/unicase/test-uc_toupper.c: Likewise.
7757         * tests/unictype/test-categ_C.c: Likewise.
7758         * tests/unictype/test-categ_Cn.c: Likewise.
7759         * tests/unictype/test-categ_L.c: Likewise.
7760         * tests/unictype/test-categ_Ll.c: Likewise.
7761         * tests/unictype/test-categ_Lm.c: Likewise.
7762         * tests/unictype/test-categ_Lo.c: Likewise.
7763         * tests/unictype/test-categ_Lu.c: Likewise.
7764         * tests/unictype/test-categ_M.c: Likewise.
7765         * tests/unictype/test-categ_Mc.c: Likewise.
7766         * tests/unictype/test-categ_Me.c: Likewise.
7767         * tests/unictype/test-categ_Mn.c: Likewise.
7768         * tests/unictype/test-categ_N.c: Likewise.
7769         * tests/unictype/test-categ_Nd.c: Likewise.
7770         * tests/unictype/test-categ_No.c: Likewise.
7771         * tests/unictype/test-categ_P.c: Likewise.
7772         * tests/unictype/test-categ_Po.c: Likewise.
7773         * tests/unictype/test-categ_S.c: Likewise.
7774         * tests/unictype/test-categ_Sc.c: Likewise.
7775         * tests/unictype/test-categ_Sk.c: Likewise.
7776         * tests/unictype/test-categ_Sm.c: Likewise.
7777         * tests/unictype/test-categ_So.c: Likewise.
7778         * tests/unictype/test-ctype_alnum.c: Likewise.
7779         * tests/unictype/test-ctype_alpha.c: Likewise.
7780         * tests/unictype/test-ctype_graph.c: Likewise.
7781         * tests/unictype/test-ctype_lower.c: Likewise.
7782         * tests/unictype/test-ctype_print.c: Likewise.
7783         * tests/unictype/test-ctype_punct.c: Likewise.
7784         * tests/unictype/test-ctype_upper.c: Likewise.
7785         * tests/unictype/test-decdigit.h: Likewise.
7786         * tests/unictype/test-digit.h: Likewise.
7787         * tests/unictype/test-numeric.h: Likewise.
7788         * tests/unictype/test-pr_alphabetic.c: Likewise.
7789         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7790         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7791         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7792         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7793         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7794         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7795         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7796         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7797         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7798         * tests/unictype/test-pr_cased.c: Likewise.
7799         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7800         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7801         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7802         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7803         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7804         * tests/unictype/test-pr_combining.c: Likewise.
7805         * tests/unictype/test-pr_composite.c: Likewise.
7806         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7807         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7808         * tests/unictype/test-pr_deprecated.c: Likewise.
7809         * tests/unictype/test-pr_format_control.c: Likewise.
7810         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7811         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7812         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7813         * tests/unictype/test-pr_id_continue.c: Likewise.
7814         * tests/unictype/test-pr_id_start.c: Likewise.
7815         * tests/unictype/test-pr_ideographic.c: Likewise.
7816         * tests/unictype/test-pr_lowercase.c: Likewise.
7817         * tests/unictype/test-pr_math.c: Likewise.
7818         * tests/unictype/test-pr_numeric.c: Likewise.
7819         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7820         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7821         * tests/unictype/test-pr_other_math.c: Likewise.
7822         * tests/unictype/test-pr_punctuation.c: Likewise.
7823         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7824         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7825         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7826         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7827         * tests/unictype/test-pr_uppercase.c: Likewise.
7828         * tests/unictype/test-pr_xid_continue.c: Likewise.
7829         * tests/unictype/test-pr_xid_start.c: Likewise.
7830         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7831         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7832         changes.
7833         * lib/unictype/categ_Cc.h: Likewise.
7834         * lib/unictype/categ_Cf.h: Likewise.
7835         * lib/unictype/categ_Co.h: Likewise.
7836         * lib/unictype/categ_Cs.h: Likewise.
7837         * lib/unictype/categ_Lt.h: Likewise.
7838         * lib/unictype/categ_Nl.h: Likewise.
7839         * lib/unictype/categ_Pc.h: Likewise.
7840         * lib/unictype/categ_Pd.h: Likewise.
7841         * lib/unictype/categ_Pe.h: Likewise.
7842         * lib/unictype/categ_Pf.h: Likewise.
7843         * lib/unictype/categ_Pi.h: Likewise.
7844         * lib/unictype/categ_Ps.h: Likewise.
7845         * lib/unictype/categ_Z.h: Likewise.
7846         * lib/unictype/categ_Zl.h: Likewise.
7847         * lib/unictype/categ_Zp.h: Likewise.
7848         * lib/unictype/categ_Zs.h: Likewise.
7849         * lib/unictype/ctype_blank.h: Likewise.
7850         * lib/unictype/ctype_cntrl.h: Likewise.
7851         * lib/unictype/ctype_digit.h: Likewise.
7852         * lib/unictype/ctype_space.h: Likewise.
7853         * lib/unictype/ctype_xdigit.h: Likewise.
7854         * lib/unictype/mirror.h: Likewise.
7855         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7856         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7857         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7858         * lib/unictype/pr_bidi_control.h: Likewise.
7859         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7860         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7861         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7862         * lib/unictype/pr_bidi_pdf.h: Likewise.
7863         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7864         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7865         * lib/unictype/pr_dash.h: Likewise.
7866         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7867         * lib/unictype/pr_diacritic.h: Likewise.
7868         * lib/unictype/pr_extender.h: Likewise.
7869         * lib/unictype/pr_hex_digit.h: Likewise.
7870         * lib/unictype/pr_hyphen.h: Likewise.
7871         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7872         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7873         * lib/unictype/pr_ignorable_control.h: Likewise.
7874         * lib/unictype/pr_iso_control.h: Likewise.
7875         * lib/unictype/pr_join_control.h: Likewise.
7876         * lib/unictype/pr_left_of_pair.h: Likewise.
7877         * lib/unictype/pr_line_separator.h: Likewise.
7878         * lib/unictype/pr_logical_order_exception.h: Likewise.
7879         * lib/unictype/pr_non_break.h: Likewise.
7880         * lib/unictype/pr_not_a_character.h: Likewise.
7881         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7882         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7883         * lib/unictype/pr_other_id_start.h: Likewise.
7884         * lib/unictype/pr_other_lowercase.h: Likewise.
7885         * lib/unictype/pr_other_uppercase.h: Likewise.
7886         * lib/unictype/pr_paired_punctuation.h: Likewise.
7887         * lib/unictype/pr_paragraph_separator.h: Likewise.
7888         * lib/unictype/pr_pattern_syntax.h: Likewise.
7889         * lib/unictype/pr_pattern_white_space.h: Likewise.
7890         * lib/unictype/pr_private_use.h: Likewise.
7891         * lib/unictype/pr_quotation_mark.h: Likewise.
7892         * lib/unictype/pr_radical.h: Likewise.
7893         * lib/unictype/pr_soft_dotted.h: Likewise.
7894         * lib/unictype/pr_space.h: Likewise.
7895         * lib/unictype/pr_titlecase.h: Likewise.
7896         * lib/unictype/pr_variation_selector.h: Likewise.
7897         * lib/unictype/pr_white_space.h: Likewise.
7898         * lib/unictype/pr_zero_width.h: Likewise.
7899         * lib/unictype/sy_c_ident.h: Likewise.
7900         * lib/unictype/sy_c_whitespace.h: Likewise.
7901         * lib/unictype/sy_java_whitespace.h: Likewise.
7902         * lib/uninorm/composition-table.gperf: Likewise.
7903         * lib/uninorm/decomposition-table1.h: Likewise.
7904         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7905         LB8.
7906         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7907         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7908         * modules/unictype/*: Bump version number of expected libunistring
7909         version.
7910
7911 2011-01-09  Bruno Haible  <bruno@clisp.org>
7912
7913         Update to Unicode 5.2.0.
7914         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7915         trailing whitespace removed.
7916
7917 2011-01-09  Bruno Haible  <bruno@clisp.org>
7918
7919         New Unicode character properties, from Unicode 5.2.0.
7920         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7921         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7922         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7923         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7924         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7925         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7926         uc_is_property_cased, uc_is_property_case_ignorable,
7927         uc_is_property_changes_when_lowercased,
7928         uc_is_property_changes_when_uppercased,
7929         uc_is_property_changes_when_titlecased,
7930         uc_is_property_changes_when_casefolded,
7931         uc_is_property_changes_when_casemapped): New declarations.
7932         * lib/unictype/pr_byname.gperf: Add the new properties.
7933         * modules/unictype/property-byname (Depends-on): Depend on the new
7934         properties modules.
7935         * modules/unictype/property-all (Depends-on): Likewise.
7936         * MODULES.html.sh (Unicode string functions): Add
7937         unictype/property-case-ignorable, unictype/property-cased,
7938         unictype/property-changes-when-casefolded,
7939         unictype/property-changes-when-casemapped,
7940         unictype/property-changes-when-lowercased,
7941         unictype/property-changes-when-titlecased,
7942         unictype/property-changes-when-uppercased.
7943
7944         New module 'unictype/property-changes-when-casemapped'.
7945         * modules/unictype/property-changes-when-casemapped: New file.
7946         * lib/unictype/pr_changes_when_casemapped.c: New file.
7947         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7948         generated by gen-uni-tables.
7949         * modules/unictype/property-changes-when-casemapped-tests: New file.
7950         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7951         automatically generated by gen-uni-tables.
7952
7953         New module 'unictype/property-changes-when-casefolded'.
7954         * modules/unictype/property-changes-when-casefolded: New file.
7955         * lib/unictype/pr_changes_when_casefolded.c: New file.
7956         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7957         generated by gen-uni-tables.
7958         * modules/unictype/property-changes-when-casefolded-tests: New file.
7959         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7960         automatically generated by gen-uni-tables.
7961
7962         New module 'unictype/property-changes-when-titlecased'.
7963         * modules/unictype/property-changes-when-titlecased: New file.
7964         * lib/unictype/pr_changes_when_titlecased.c: New file.
7965         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7966         generated by gen-uni-tables.
7967         * modules/unictype/property-changes-when-titlecased-tests: New file.
7968         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7969         automatically generated by gen-uni-tables.
7970
7971         New module 'unictype/property-changes-when-uppercased'.
7972         * modules/unictype/property-changes-when-uppercased: New file.
7973         * lib/unictype/pr_changes_when_uppercased.c: New file.
7974         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7975         generated by gen-uni-tables.
7976         * modules/unictype/property-changes-when-uppercased-tests: New file.
7977         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7978         automatically generated by gen-uni-tables.
7979
7980         New module 'unictype/property-changes-when-lowercased'.
7981         * modules/unictype/property-changes-when-lowercased: New file.
7982         * lib/unictype/pr_changes_when_lowercased.c: New file.
7983         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7984         generated by gen-uni-tables.
7985         * modules/unictype/property-changes-when-lowercased-tests: New file.
7986         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7987         automatically generated by gen-uni-tables.
7988
7989         New module 'unictype/property-case-ignorable'.
7990         * modules/unictype/property-case-ignorable: New file.
7991         * lib/unictype/pr_case_ignorable.c: New file.
7992         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7993         by gen-uni-tables.
7994         * modules/unictype/property-case-ignorable-tests: New file.
7995         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7996         generated by gen-uni-tables.
7997
7998         New module 'unictype/property-cased'.
7999         * modules/unictype/property-cased: New file.
8000         * lib/unictype/pr_cased.c: New file.
8001         * lib/unictype/pr_cased.h: New file, automatically generated by
8002         gen-uni-tables.
8003         * modules/unictype/property-cased-tests: New file.
8004         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8005         gen-uni-tables.
8006
8007 2011-01-09  Bruno Haible  <bruno@clisp.org>
8008
8009         Update to Unicode 5.2.0.
8010         * lib/gen-uni-tables.c (output_predicate, output_category,
8011         output_combclass, output_bidi_category, output_decimal_digit_test,
8012         output_decimal_digit, output_digit_test, output_digit,
8013         output_numeric_test, output_numeric, output_mirror, output_scripts,
8014         output_scripts_byname, output_blocks, output_ident_category): Fix
8015         comment header.
8016         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8017         get_wbp.
8018         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8019         items.
8020         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8021         Changes_When_Lowercased, Changes_When_Uppercased,
8022         Changes_When_Titlecased, Changes_When_Casefolded,
8023         Changes_When_Casemapped.
8024         (is_property_alphabetic, is_property_default_ignorable_code_point):
8025         Update for Unicode 5.2.0.
8026         (is_property_cased, is_property_case_ignorable,
8027         is_property_changes_when_lowercased,
8028         is_property_changes_when_uppercased,
8029         is_property_changes_when_titlecased,
8030         is_property_changes_when_casefolded,
8031         is_property_changes_when_casemapped): New functions.
8032         (output_properties): Output also the properties cased, case_ignorable,
8033         changes_when_lowercased, changes_when_uppercased,
8034         changes_when_titlecased, changes_when_casefolded,
8035         changes_when_casemapped.
8036         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8037         Unicode TR#11 revision 17 -> 19.
8038         (LBP_CP): New enumeration value.
8039         (LBP_*): Adjust values accordingly.
8040         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8041         TR#14 revision 22 -> 24.
8042         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8043         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8044         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8045         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8046         is_WBP_MIDLETTER.
8047         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8048         the code1 and code2 of each composition rule.
8049         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8050         * lib/unicase/ignorable.h: Likewise.
8051         * lib/unicase/tocasefold.h: Likewise.
8052         * lib/unicase/tolower.h: Likewise.
8053         * lib/unicase/totitle.h: Likewise.
8054         * lib/unicase/toupper.h: Likewise.
8055         * lib/unictype/bidi_of.h: Likewise.
8056         * lib/unictype/blocks.h: Likewise.
8057         * lib/unictype/categ_C.h: Likewise.
8058         * lib/unictype/categ_Cf.h: Likewise.
8059         * lib/unictype/categ_Cn.h: Likewise.
8060         * lib/unictype/categ_L.h: Likewise.
8061         * lib/unictype/categ_Ll.h: Likewise.
8062         * lib/unictype/categ_Lm.h: Likewise.
8063         * lib/unictype/categ_Lo.h: Likewise.
8064         * lib/unictype/categ_Lu.h: Likewise.
8065         * lib/unictype/categ_M.h: Likewise.
8066         * lib/unictype/categ_Mc.h: Likewise.
8067         * lib/unictype/categ_Mn.h: Likewise.
8068         * lib/unictype/categ_N.h: Likewise.
8069         * lib/unictype/categ_Nd.h: Likewise.
8070         * lib/unictype/categ_Nl.h: Likewise.
8071         * lib/unictype/categ_No.h: Likewise.
8072         * lib/unictype/categ_P.h: Likewise.
8073         * lib/unictype/categ_Pd.h: Likewise.
8074         * lib/unictype/categ_Po.h: Likewise.
8075         * lib/unictype/categ_S.h: Likewise.
8076         * lib/unictype/categ_Sc.h: Likewise.
8077         * lib/unictype/categ_So.h: Likewise.
8078         * lib/unictype/categ_of.h: Likewise.
8079         * lib/unictype/combining.h: Likewise.
8080         * lib/unictype/ctype_alnum.h: Likewise.
8081         * lib/unictype/ctype_alpha.h: Likewise.
8082         * lib/unictype/ctype_graph.h: Likewise.
8083         * lib/unictype/ctype_lower.h: Likewise.
8084         * lib/unictype/ctype_print.h: Likewise.
8085         * lib/unictype/ctype_punct.h: Likewise.
8086         * lib/unictype/ctype_upper.h: Likewise.
8087         * lib/unictype/decdigit.h: Likewise.
8088         * lib/unictype/digit.h: Likewise.
8089         * lib/unictype/numeric.h: Likewise.
8090         * lib/unictype/pr_alphabetic.h: Likewise.
8091         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8092         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8093         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8094         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8095         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8096         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8097         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8098         * lib/unictype/pr_combining.h: Likewise.
8099         * lib/unictype/pr_composite.h: Likewise.
8100         * lib/unictype/pr_currency_symbol.h: Likewise.
8101         * lib/unictype/pr_dash.h: Likewise.
8102         * lib/unictype/pr_decimal_digit.h: Likewise.
8103         * lib/unictype/pr_deprecated.h: Likewise.
8104         * lib/unictype/pr_diacritic.h: Likewise.
8105         * lib/unictype/pr_extender.h: Likewise.
8106         * lib/unictype/pr_grapheme_base.h: Likewise.
8107         * lib/unictype/pr_grapheme_extend.h: Likewise.
8108         * lib/unictype/pr_grapheme_link.h: Likewise.
8109         * lib/unictype/pr_id_continue.h: Likewise.
8110         * lib/unictype/pr_id_start.h: Likewise.
8111         * lib/unictype/pr_ideographic.h: Likewise.
8112         * lib/unictype/pr_ignorable_control.h: Likewise.
8113         * lib/unictype/pr_logical_order_exception.h: Likewise.
8114         * lib/unictype/pr_lowercase.h: Likewise.
8115         * lib/unictype/pr_numeric.h: Likewise.
8116         * lib/unictype/pr_other_alphabetic.h: Likewise.
8117         * lib/unictype/pr_punctuation.h: Likewise.
8118         * lib/unictype/pr_sentence_terminal.h: Likewise.
8119         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8120         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8121         * lib/unictype/pr_unified_ideograph.h: Likewise.
8122         * lib/unictype/pr_uppercase.h: Likewise.
8123         * lib/unictype/pr_xid_continue.h: Likewise.
8124         * lib/unictype/pr_xid_start.h: Likewise.
8125         * lib/unictype/pr_zero_width.h: Likewise.
8126         * lib/unictype/scripts.h: Likewise.
8127         * lib/unictype/scripts_byname.gperf: Likewise.
8128         * lib/unictype/sy_java_ident.h: Likewise.
8129         * lib/unigbrk/gbrkprop.h: Likewise.
8130         * lib/unilbrk/lbrkprop1.h: Likewise.
8131         * lib/unilbrk/lbrkprop2.h: Likewise.
8132         * lib/unilbrk/lbrktables.h: Likewise.
8133         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8134         LBP_CP. Implement rule LB30.
8135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8136         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8137         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8138         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8139         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8140         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8141         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8142         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8143         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8144         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8145         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8146         bits instead of 16 bits in the code1 and code2 of each composition
8147         rule.
8148         (uc_composition): Update for Unicode 5.2.0.
8149         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8150         * lib/uninorm/decomposition-table2.h: Likewise.
8151         * lib/uniwbrk/wbrkprop.h: Likewise.
8152         * tests/unicase/test-cased.c: Likewise.
8153         * tests/unicase/test-ignorable.c: Likewise.
8154         * tests/unicase/test-uc_tolower.c: Likewise.
8155         * tests/unicase/test-uc_totitle.c: Likewise.
8156         * tests/unicase/test-uc_toupper.c: Likewise.
8157         * tests/unictype/test-categ_C.c: Likewise.
8158         * tests/unictype/test-categ_Cf.c: Likewise.
8159         * tests/unictype/test-categ_Cn.c: Likewise.
8160         * tests/unictype/test-categ_L.c: Likewise.
8161         * tests/unictype/test-categ_Ll.c: Likewise.
8162         * tests/unictype/test-categ_Lm.c: Likewise.
8163         * tests/unictype/test-categ_Lo.c: Likewise.
8164         * tests/unictype/test-categ_Lu.c: Likewise.
8165         * tests/unictype/test-categ_M.c: Likewise.
8166         * tests/unictype/test-categ_Mc.c: Likewise.
8167         * tests/unictype/test-categ_Mn.c: Likewise.
8168         * tests/unictype/test-categ_N.c: Likewise.
8169         * tests/unictype/test-categ_Nd.c: Likewise.
8170         * tests/unictype/test-categ_Nl.c: Likewise.
8171         * tests/unictype/test-categ_No.c: Likewise.
8172         * tests/unictype/test-categ_P.c: Likewise.
8173         * tests/unictype/test-categ_Pd.c: Likewise.
8174         * tests/unictype/test-categ_Po.c: Likewise.
8175         * tests/unictype/test-categ_S.c: Likewise.
8176         * tests/unictype/test-categ_Sc.c: Likewise.
8177         * tests/unictype/test-categ_So.c: Likewise.
8178         * tests/unictype/test-ctype_alnum.c: Likewise.
8179         * tests/unictype/test-ctype_alpha.c: Likewise.
8180         * tests/unictype/test-ctype_graph.c: Likewise.
8181         * tests/unictype/test-ctype_lower.c: Likewise.
8182         * tests/unictype/test-ctype_print.c: Likewise.
8183         * tests/unictype/test-ctype_punct.c: Likewise.
8184         * tests/unictype/test-ctype_upper.c: Likewise.
8185         * tests/unictype/test-decdigit.h: Likewise.
8186         * tests/unictype/test-digit.h: Likewise.
8187         * tests/unictype/test-numeric.h: Likewise.
8188         * tests/unictype/test-pr_alphabetic.c: Likewise.
8189         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8190         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8191         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8192         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8193         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8194         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8195         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8196         * tests/unictype/test-pr_combining.c: Likewise.
8197         * tests/unictype/test-pr_composite.c: Likewise.
8198         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8199         * tests/unictype/test-pr_dash.c: Likewise.
8200         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8201         * tests/unictype/test-pr_deprecated.c: Likewise.
8202         * tests/unictype/test-pr_diacritic.c: Likewise.
8203         * tests/unictype/test-pr_extender.c: Likewise.
8204         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8205         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8206         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8207         * tests/unictype/test-pr_id_continue.c: Likewise.
8208         * tests/unictype/test-pr_id_start.c: Likewise.
8209         * tests/unictype/test-pr_ideographic.c: Likewise.
8210         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8211         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8212         * tests/unictype/test-pr_lowercase.c: Likewise.
8213         * tests/unictype/test-pr_numeric.c: Likewise.
8214         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8215         * tests/unictype/test-pr_punctuation.c: Likewise.
8216         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8217         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8218         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8219         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8220         * tests/unictype/test-pr_uppercase.c: Likewise.
8221         * tests/unictype/test-pr_xid_continue.c: Likewise.
8222         * tests/unictype/test-pr_xid_start.c: Likewise.
8223         * tests/unictype/test-pr_zero_width.c: Likewise.
8224         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8225         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8226         changed behaviour: line breaking is now disallowed between a letter
8227         or '=' and '('.
8228         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8229         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8230         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8231         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8232         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8233         lib/uniwidth/width.c.
8234         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8235         without comments, but with the original copyright notice.
8236         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8237         changes.
8238         * lib/unictype/categ_Cc.h: Likewise.
8239         * lib/unictype/categ_Co.h: Likewise.
8240         * lib/unictype/categ_Cs.h: Likewise.
8241         * lib/unictype/categ_Lt.h: Likewise.
8242         * lib/unictype/categ_Me.h: Likewise.
8243         * lib/unictype/categ_Pc.h: Likewise.
8244         * lib/unictype/categ_Pe.h: Likewise.
8245         * lib/unictype/categ_Pf.h: Likewise.
8246         * lib/unictype/categ_Pi.h: Likewise.
8247         * lib/unictype/categ_Ps.h: Likewise.
8248         * lib/unictype/categ_Sk.h: Likewise.
8249         * lib/unictype/categ_Sm.h: Likewise.
8250         * lib/unictype/categ_Z.h: Likewise.
8251         * lib/unictype/categ_Zl.h: Likewise.
8252         * lib/unictype/categ_Zp.h: Likewise.
8253         * lib/unictype/categ_Zs.h: Likewise.
8254         * lib/unictype/ctype_blank.h: Likewise.
8255         * lib/unictype/ctype_cntrl.h: Likewise.
8256         * lib/unictype/ctype_digit.h: Likewise.
8257         * lib/unictype/ctype_space.h: Likewise.
8258         * lib/unictype/ctype_xdigit.h: Likewise.
8259         * lib/unictype/mirror.h: Likewise.
8260         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8261         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8262         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8263         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8264         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8265         * lib/unictype/pr_bidi_control.h: Likewise.
8266         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8267         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8268         * lib/unictype/pr_bidi_pdf.h: Likewise.
8269         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8270         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8271         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8272         * lib/unictype/pr_format_control.h: Likewise.
8273         * lib/unictype/pr_hex_digit.h: Likewise.
8274         * lib/unictype/pr_hyphen.h: Likewise.
8275         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8276         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8277         * lib/unictype/pr_iso_control.h: Likewise.
8278         * lib/unictype/pr_join_control.h: Likewise.
8279         * lib/unictype/pr_left_of_pair.h: Likewise.
8280         * lib/unictype/pr_line_separator.h: Likewise.
8281         * lib/unictype/pr_math.h: Likewise.
8282         * lib/unictype/pr_non_break.h: Likewise.
8283         * lib/unictype/pr_not_a_character.h: Likewise.
8284         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8285         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8286         * lib/unictype/pr_other_id_continue.h: Likewise.
8287         * lib/unictype/pr_other_id_start.h: Likewise.
8288         * lib/unictype/pr_other_lowercase.h: Likewise.
8289         * lib/unictype/pr_other_math.h: Likewise.
8290         * lib/unictype/pr_other_uppercase.h: Likewise.
8291         * lib/unictype/pr_paired_punctuation.h: Likewise.
8292         * lib/unictype/pr_paragraph_separator.h: Likewise.
8293         * lib/unictype/pr_pattern_syntax.h: Likewise.
8294         * lib/unictype/pr_pattern_white_space.h: Likewise.
8295         * lib/unictype/pr_private_use.h: Likewise.
8296         * lib/unictype/pr_quotation_mark.h: Likewise.
8297         * lib/unictype/pr_radical.h: Likewise.
8298         * lib/unictype/pr_soft_dotted.h: Likewise.
8299         * lib/unictype/pr_space.h: Likewise.
8300         * lib/unictype/pr_titlecase.h: Likewise.
8301         * lib/unictype/pr_variation_selector.h: Likewise.
8302         * lib/unictype/pr_white_space.h: Likewise.
8303         * lib/unictype/sy_c_ident.h: Likewise.
8304         * lib/unictype/sy_c_whitespace.h: Likewise.
8305         * lib/unictype/sy_java_whitespace.h: Likewise.
8306         * modules/uni*/*: Bump version number of expected libunistring version.
8307         Reported by Simon Josefsson.
8308
8309 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8310
8311         useless-if-before-free: fix typo in --help and make the internal,
8312         automatic version date update process work once again.
8313         --help output contained a NUL character instead of the
8314         backslash-zero that was intended.  Also, the "must lie within
8315         the first 8 lines" line is on line 9, and hence not getting
8316         automatically updated.
8317         * build-aux/useless-if-before-free: Fix the former by adding a
8318         backslash, and the latter by condensing the three lines of what-it-does
8319         to a single line, leaving one line of slack for the future.
8320
8321 2011-01-09  Bruno Haible  <bruno@clisp.org>
8322
8323         uniwidth/width: Fix width of U+1D173..U+1D17A.
8324         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8325         symbolic_width, output_width_property_test): New functions.
8326         (main): Invoke output_nonspacing_property, output_width_property_test.
8327         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8328         U+1D173..U+1D17A.
8329         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8330         1.
8331         * modules/uniwidth/*: Bump version number of expected libunistring
8332         version.
8333         * modules/unilbrk/*: Likewise.
8334
8335 2011-01-08  Bruno Haible  <bruno@clisp.org>
8336
8337         uninorm tests: Preserve copyright of Unicode data file.
8338         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8339         Mention modifications.
8340
8341 2011-01-08  Bruno Haible  <bruno@clisp.org>
8342
8343         gen-uni-tables: Prepare for Unicode 5.2.0.
8344         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8345         (debug_output_lbp, output_lbp): Update.
8346
8347 2011-01-08  Bruno Haible  <bruno@clisp.org>
8348
8349         unilbrk: Clarify gen-uni-tables.c code.
8350         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8351         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8352         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8353
8354 2011-01-07  Bruno Haible  <bruno@clisp.org>
8355
8356         strtod: Restore errno when successfully parsing Infinity or NaN.
8357         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8358         restore the original errno.
8359
8360 2011-01-07  Bruno Haible  <bruno@clisp.org>
8361
8362         remove test: Avoid failure on HP-UX 11.
8363         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8364
8365 2011-01-07  Bruno Haible  <bruno@clisp.org>
8366
8367         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8368         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8369         error code.
8370
8371 2011-01-07  Pádraig Brady <P@draigBrady.com>
8372
8373         ignore-value: fixup comments, and add Eric Blake
8374         as an author since he rewrote the macros.
8375         * lib/ignore-value.h (ignore_value):  State that
8376         we now support aggregates.  Also specify exactly
8377         when the GCC warn_unused_result feature was added.
8378
8379 2011-01-06  Eric Blake  <eblake@redhat.com>
8380
8381         ignore-value: support aggregate types
8382         * lib/ignore-value.h (ignore_value): Provide separate gcc
8383         definition.
8384         * modules/ignore-value-tests: New test module.
8385         * tests/test-ignore-value.c: New test.
8386
8387         maint.mk: improve sc_prohibit_strcmp regex
8388         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8389         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8390         definition of STRNEQ.
8391
8392         signal: work around Haiku issue with SIGBUS
8393         * lib/siglist.h: Add comment.
8394         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8395         strsignal's favoring of SIGSEGV.
8396         * tests/test-signal.c (main): Avoid test failure.
8397         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8398         Reported by Scott McCreary.
8399
8400         maint.mk: add pre-release check to ensure submodule commits are public
8401         * top/maint.mk (public-submodule-commit): New rule.
8402         (submodule-checks): New variable.
8403         (alpha beta stable): Depend on the variable.
8404
8405 2011-01-05  Pádraig Brady <P@draigBrady.com>
8406         and Jim Meyering  <meyering@redhat.com>
8407
8408         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8409         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8410         (ATTRIBUTE_DEPRECATED): Define.
8411         (_ignore_case): New function.
8412         (ignore_value): New macro, to replace the old function.
8413         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8414         * modules/ignore-value (Depends-on): Add stdint.
8415
8416 2011-01-04  Eric Blake  <eblake@redhat.com>
8417
8418         doc: regenerate INSTALL
8419         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8420         @firstparagraphindent support, now that autoconf dropped it.
8421         (INSTALL_PRELUDE): Reinstate old macro.
8422         * doc/install.texi: Resync from autoconf.
8423         * doc/INSTALL: Reflect recent autoconf update.
8424         * doc/INSTALL.ISO: Likewise.
8425         * doc/INSTALL.UTF-8: Likewise.
8426         Reported by Karl Berry.
8427
8428 2011-01-04  Bruce Korb  <address@hidden>
8429
8430         git-version-gen: avoid a sub-shell
8431         * build-aux/git-version-gen: Redirect stderr in `...` via
8432         "exec 2>...", rather than via an added sub-shell.
8433
8434 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8435
8436         git-version-gen: use (...) rather than sh -c '...'
8437         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8438         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8439
8440 2011-01-03  Jim Meyering  <meyering@redhat.com>
8441
8442         git-version-gen: convert leading TABs to spaces
8443         * build-aux/git-version-gen: Expand leading TABs.
8444
8445         git-version-gen: handle failed "git rev-list"
8446         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8447         from git and proceeding as if it had succeeded but printed no SHA1
8448         checksums, suppress the diagnostic and handle the failure.
8449         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8450
8451         git-version-gen: include command name in one more diagnostic
8452         * build-aux/git-version-gen: When the required .tarball-version file
8453         was missing or unreadable, you might see the diagnostic from "cat",
8454         but no trace of the name of the invoking script.  Now, you still see
8455         the diagnostic from cat, but also get one from "git-version-gen: ".
8456         Inspired by a patch from Bruce Korb.
8457
8458         update-copyright: adjust test to match changed code
8459         * tests/test-update-copyright.sh: Change test's expected output
8460         to match new actual output.
8461
8462 2011-01-02  Bruno Haible  <bruno@clisp.org>
8463
8464         getlogin_r: Avoid test failure on HP-UX 11.
8465         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8466         ERANGE when the second argument is zero.
8467         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8468         portability problem.
8469
8470 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8471
8472         * build-aux/update-copyright: doc Simon's changes
8473
8474 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8475
8476         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8477         environment variable.
8478
8479 2011-01-02  Bruno Haible  <bruno@clisp.org>
8480
8481         unigbrk: Avoid gcc warnings.
8482         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8483         unused variable.
8484         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8485         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8486         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8487         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8488         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8489         Change type of first argument to 'const char *'.
8490         (main): Remove unused variable.
8491         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8492         type of first argument to 'const char *'.
8493         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8494         Likewise.
8495         (main): Change type of variable 's'.
8496         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8497         to 'int'.
8498
8499 2011-01-02  Bruno Haible  <bruno@clisp.org>
8500
8501         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8502         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8503         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8504         bug.
8505         * lib/pwrite.c: Undo 2010-12-31 patch.
8506         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8507
8508 2011-01-02  Bruno Haible  <bruno@clisp.org>
8509
8510         pread: Fix test whether it works.
8511         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8512
8513 2011-01-02  Bruno Haible  <bruno@clisp.org>
8514
8515         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8516         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8517         ends in "6". Don't require a specific month name. Try also the locale
8518         names found on HP-UX 11 and Solaris 7.
8519
8520 2011-01-02  Bruno Haible  <bruno@clisp.org>
8521
8522         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8523         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8524         C linkage.
8525         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8526
8527 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8528
8529         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8530         for consistency, since the "cluster" term is not used elsewhere.
8531         * lib/unigbrk.in.h: Update name.
8532         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8533         * lib/unigbrk/u16-grapheme-next.c: Update name.
8534         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8535         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8536         * lib/unigbrk/u32-grapheme-next.c: Update name.
8537         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8538         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8539         * lib/unigbrk/u8-grapheme-next.c: Update name.
8540         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8541         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8542         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8543         Suggested by Bruno Haible.
8544
8545 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8546
8547         Remove module 'u8-grapheme-len' as too redundant with
8548         'u8-grapheme-next'.
8549         * modules/unigbrk/u8-grapheme-len: Delete file.
8550         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8551         * lib/unigbrk.in.h: Remove prototype for deleted function.
8552         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8553         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8554
8555         Remove module 'u16-grapheme-len' as too redundant with
8556         'u16-grapheme-next'.
8557         * modules/unigbrk/u16-grapheme-len: Delete file.
8558         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8559         * lib/unigbrk.in.h: Remove prototype for deleted function.
8560         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8561         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8562
8563         Remove module 'u32-grapheme-len' as too redundant with
8564         'u32-grapheme-next'.
8565         * modules/unigbrk/u32-grapheme-len: Delete file.
8566         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8567         * lib/unigbrk.in.h: Remove prototype for deleted function.
8568         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8569         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8570
8571         Suggested by Bruno Haible.
8572
8573 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8574
8575         * unigbrk.in.h: Fix typo: "ben" => "been".
8576         Reported by Bruno Haible.
8577
8578 2011-01-01  Jim Meyering  <meyering@redhat.com>
8579
8580         maint: update almost all copyright ranges to include 2011
8581         Run the new "make update-copyright" rule.
8582
8583 2011-01-01  Jim Meyering  <meyering@redhat.com>
8584
8585         maint: update-copyright: exempt doc/INSTALL*
8586         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8587         since they are generated.  Suggested by Bruno Haible.
8588
8589 2011-01-01  Jim Meyering  <meyering@redhat.com>
8590
8591         maint: refine the update-copyright rule
8592         * Makefile (update-copyright): Also exclude any file that includes
8593         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8594         code that merely generates the comment.
8595
8596 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8597
8598         New module 'u8-grapheme-len'.
8599         * modules/unigbrk/u8-grapheme-len: New file.
8600         * modules/unigbrk/u8-grapheme-len-tests: New file.
8601         * lib/unigbrk.in.h: Add prototype for new function.
8602         * lib/unigbrk/u8-grapheme-len.c: New file.
8603         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8604
8605         New module 'u16-grapheme-len'.
8606         * modules/unigbrk/u16-grapheme-len: New file.
8607         * modules/unigbrk/u16-grapheme-len-tests: New file.
8608         * lib/unigbrk.in.h: Add prototype for new function.
8609         * lib/unigbrk/u16-grapheme-len.c: New file.
8610         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8611
8612         New module 'u32-grapheme-len'.
8613         * modules/unigbrk/u32-grapheme-len: New file.
8614         * modules/unigbrk/u32-grapheme-len-tests: New file.
8615         * lib/unigbrk.in.h: Add prototype for new function.
8616         * lib/unigbrk/u32-grapheme-len.c: New file.
8617         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8618
8619         New module 'u8-grapheme-next'.
8620         * modules/unigbrk/u8-grapheme-next: New file.
8621         * modules/unigbrk/u8-grapheme-next-tests: New file.
8622         * lib/unigbrk.in.h: Add prototype for new function.
8623         * lib/unigbrk/u8-grapheme-next.c: New file.
8624         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8625
8626         New module 'u16-grapheme-next'.
8627         * modules/unigbrk/u16-grapheme-next: New file.
8628         * modules/unigbrk/u16-grapheme-next-tests: New file.
8629         * lib/unigbrk.in.h: Add prototype for new function.
8630         * lib/unigbrk/u16-grapheme-next.c: New file.
8631         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8632
8633         New module 'u32-grapheme-next'.
8634         * modules/unigbrk/u32-grapheme-next: New file.
8635         * modules/unigbrk/u32-grapheme-next-tests: New file.
8636         * lib/unigbrk.in.h: Add prototype for new function.
8637         * lib/unigbrk/u32-grapheme-next.c: New file.
8638         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8639
8640         New module 'u8-grapheme-prev'.
8641         * modules/unigbrk/u8-grapheme-prev: New file.
8642         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8643         * lib/unigbrk.in.h: Add prototype for new function.
8644         * lib/unigbrk/u8-grapheme-prev.c: New file.
8645         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8646
8647         New module 'u16-grapheme-prev'.
8648         * modules/unigbrk/u16-grapheme-prev: New file.
8649         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8650         * lib/unigbrk.in.h: Add prototype for new function.
8651         * lib/unigbrk/u16-grapheme-prev.c: New file.
8652         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8653
8654         New module 'u32-grapheme-prev'.
8655         * modules/unigbrk/u32-grapheme-prev: New file.
8656         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8657         * lib/unigbrk.in.h: Add prototype for new function.
8658         * lib/unigbrk/u32-grapheme-prev.c: New file.
8659         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8660
8661         New module 'u8-grapheme-breaks'.
8662         * modules/unigbrk/u8-grapheme-breaks: New file.
8663         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8664         * lib/unigbrk.in.h: Add prototype for new function.
8665         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8666         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8667
8668         New module 'u16-grapheme-breaks'.
8669         * modules/unigbrk/u16-grapheme-breaks: New file.
8670         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8671         * lib/unigbrk.in.h: Add prototype for new function.
8672         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8673         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8674
8675         New module 'u32-grapheme-breaks'.
8676         * modules/unigbrk/u32-grapheme-breaks: New file.
8677         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8678         * lib/unigbrk.in.h: Add prototype for new function.
8679         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8680         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8681
8682         New module 'ulc-grapheme-breaks'.
8683         * modules/unigbrk/ulc-grapheme-breaks: New file.
8684         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8685         * m4/locale-ar.m4: New file.
8686         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8687         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8688         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8689
8690 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8691
8692         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8693         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8694         modified how this file was generated before I initially submitted
8695         the module, but failed to regenerate it.  This meant that several
8696         of the level2 entries were wrong.
8697         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8698         Remove the division-by-2 that is folded into the table now that
8699         gbrkprop.h has been regenerated properly.  Now -1 entries are
8700         handled correctly.
8701
8702         New module 'unigbrk/uc-gbrk-prop-tests'.
8703         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8704         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8705         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8706         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8707
8708 2011-01-01  Bruno Haible  <bruno@clisp.org>
8709
8710         Avoid use of hexadecimal escapes.
8711         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8712         instead of hexadecimal escapes.
8713
8714 2011-01-01  Jim Meyering  <meyering@redhat.com>
8715
8716         maint: new rule to update copyright year ranges
8717         * Makefile (update-copyright): New rule.
8718
8719         maint: indent with TABs in Makefile
8720         * Makefile: Expand leading sequences of spaces to TABs
8721
8722         version-etc: update the copyright year it reports
8723         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8724
8725 2010-12-31  Bruno Haible  <bruno@clisp.org>
8726
8727         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8728         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8729         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8730         zero.
8731
8732 2010-12-31  Bruno Haible  <bruno@clisp.org>
8733
8734         pwrite: Work around HP-UX 11.11 bug.
8735         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8736         works and set REPLACE_PWRITE if not.
8737         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8738         function.
8739         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8740
8741 2010-12-31  Bruno Haible  <bruno@clisp.org>
8742
8743         pread: Work around HP-UX 11 bugs.
8744         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8745         and set REPLACE_PREAD if not.
8746         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8747
8748 2010-12-31  Eric Blake  <eblake@redhat.com>
8749
8750         nl_langinfo: fix YESEXPR on Irix 6.5
8751         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8752         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8753         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8754         it.
8755
8756 2010-12-31  Bruno Haible  <bruno@clisp.org>
8757
8758         iconv: Document HP-UX 11 bug.
8759         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8760
8761 2010-12-31  Bruno Haible  <bruno@clisp.org>
8762
8763         ldexpl: Fix link error on HP-UX 11.
8764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8765         LDEXPL_LIBM, using $ISNANL_LIBM.
8766
8767 2010-12-31  Eric Blake  <eblake@redhat.com>
8768
8769         ftello: avoid compilation failure with SunStudio c89
8770         * lib/ftello.c (ftello): Use lseek, not llseek.
8771
8772         tests: avoid failing coreutils tests on cygwin
8773         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8774         (create_exe_shims_): Return 0 when skipping.
8775
8776 2010-12-31  Bruno Haible  <bruno@clisp.org>
8777
8778         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8779         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8780
8781 2010-12-31  Bruno Haible  <bruno@clisp.org>
8782
8783         waitpid: Fix link error in C++ mode.
8784         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8785
8786 2010-12-31  Bruno Haible  <bruno@clisp.org>
8787
8788         isnan: Use GCC built-ins when possible.
8789         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8790         __builtin_isnan.
8791         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8792         (isnan): Define using GCC built-ins for GCC >= 4.0.
8793
8794 2010-12-31  Bruno Haible  <bruno@clisp.org>
8795
8796         isnand: Fix mistake.
8797         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8798         __builtin_isnand.
8799
8800 2010-12-31  Bruno Haible  <bruno@clisp.org>
8801
8802         open: Avoid C++ error on HP-UX 11.
8803         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8804
8805 2010-12-31  Bruno Haible  <bruno@clisp.org>
8806
8807         time_r: Add missing declarations on HP-UX 11.
8808         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8809         instead of HAVE_LOCALTIME_R.
8810         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8811         HAVE_LOCALTIME_R always.
8812         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8813         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8814         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8815         HAVE_LOCALTIME_R.
8816         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8817         * doc/posix-functions/localtime_r.texi: Likewise.
8818
8819 2010-12-29  Eric Blake  <eblake@redhat.com>
8820
8821         mountlist: tweak previous commit
8822         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8823         Reported by Paul Eggert.
8824
8825         mountlist: fix local drive detection on cygwin
8826         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8827         that works for cygwin.
8828
8829 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8830
8831         ftoastr, snprintf: ftoastr + snprintf module
8832         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8833         since the snprintf module now should be good enough here.
8834         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8835         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8836         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8837         GNULIB_SNPRINTF only for the test directory, and the latter
8838         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8839         seems to suffice by itself.
8840
8841 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8842
8843         alloca: one step towards thread-safety
8844         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8845         need for a static variable.  All callers changed.  This does not
8846         make the alloca replacement thread-safe, but it's one step.
8847
8848         tests: minor indenting change
8849         * tests/init.sh: Sync from coreutils housekeeping patch
8850         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8851         to keep lines within 80 columns.
8852
8853 2010-12-28  Jim Meyering  <meyering@redhat.com>
8854
8855         regex: don't infloop on persistent failing calloc
8856         * lib/regexec.c (build_trtable): Return failure indication upon
8857         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8858         In glibc, this was fixed for version 2.13:
8859         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8860
8861 2010-12-28  Bruno Haible  <bruno@clisp.org>
8862             Paul Eggert <eggert@cs.ucla.edu>
8863
8864         linkat: Make implementation robust against system behaviour variations.
8865         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8866         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8867         way, and to -2 if it needs a generic runtime test.
8868         * lib/linkat.c (solaris_optimized_link_immediate,
8869         solaris_optimized_link_follow): New functions.
8870         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8871         (check_same_link): Use it.
8872
8873 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8874
8875         New module 'unigbrk/base'.
8876         * modules/unigbrk/base: New file.
8877         * lib/unigbrk.in.h: New file.
8878
8879         New module 'unigbrk/uc-gbrk-prop'.
8880         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8881         * modules/unigbrk/uc-gbrk-prop: New file.
8882         * lib/unigbrk/gbrkprop.h: New file.
8883         * lib/unigbrk/uc-gbrk-prop.c: New file.
8884
8885         New module 'unigbrk/uc-is-grapheme-break'.
8886         * modules/unigbrk/uc-is-grapheme-break: New file.
8887         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8888         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8889         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8890         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8891         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8892
8893         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8894
8895 2010-12-27  Bruno Haible  <bruno@clisp.org>
8896
8897         linkat test: Avoid failure on Solaris 11 2010-11.
8898         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8899
8900 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8901
8902         utimens: work around glibc rounding bug on more platforms
8903         * lib/utimens.c (fdutimens): Work around rounding bug even if
8904         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8906
8907 2010-12-27  Bruno Haible  <bruno@clisp.org>
8908
8909         select tests: Improve comments.
8910         * tests/test-select.c (do_select): Add comments.
8911
8912 2010-12-27  Bruno Haible  <bruno@clisp.org>
8913
8914         select tests: Safer way of handling timeout.
8915         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8916         at every invocation.
8917
8918 2010-12-27  Bruno Haible  <bruno@clisp.org>
8919
8920         select tests: Use 'bool' where appropriate.
8921         * tests/test-select.c (connect_to_socket): Change argument type to
8922         'bool'.
8923
8924 2010-12-27  Bruno Haible  <bruno@clisp.org>
8925
8926         select tests: Use existing modules.
8927         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8928         (configure.ac): Don't test for unistd.h.
8929         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8930         declared in <unistd.h>.
8931
8932 2010-12-27  Bruno Haible  <bruno@clisp.org>
8933
8934         mbrtowc: Work around a Solaris 7 bug.
8935         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8936         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8937         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8938         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8939         MBRTOWC_NULL_ARG1_BUG.
8940         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8941         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8942         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8943         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8944
8945 2010-12-27  Jim Meyering  <meyering@redhat.com>
8946
8947         read-file.c: tweak syntax
8948         * lib/read-file.c (fread_file): Remove space after "*" in function
8949         definitions.
8950
8951 2010-12-27  Bruno Haible  <bruno@clisp.org>
8952
8953         times test: Avoid gcc warnings on OSF/1.
8954         * tests/test-times.c (main): Cast printf arguments from clock_t to
8955         'long int'.
8956
8957 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8958
8959         utimens: work around glibc rounding bug on older Linux kernels
8960         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8961         on Linux with a glibc whose utimes might not work, then work
8962         around a longstanding glibc bug involving rounding rather than
8963         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8965
8966 2010-12-26  Bruno Haible  <bruno@clisp.org>
8967
8968         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8969         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8970         _GL_CXXALIAS_SYS.
8971         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8972
8973 2010-12-26  Bruno Haible  <bruno@clisp.org>
8974
8975         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8976         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8977         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8978         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8979         looking for the declaration.
8980         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8981         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8982         problem.
8983         * doc/posix-functions/inet_pton.texi: Likewise.
8984
8985 2010-12-26  Bruno Haible  <bruno@clisp.org>
8986
8987         arpa_inet: Use the common idioms with C++ support.
8988         * lib/arpa_inet.in.h: Include c++defs.h.
8989         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8990         support.
8991         * modules/arpa_inet (Depends-on): Add c++defs.
8992         (Makefile.am): Substitute the contents of c++defs.h.
8993         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8994         * modules/arpa_inet-c++-tests: New file.
8995         * tests/test-arpa_inet-c++.cc: New file.
8996
8997 2010-12-25  Bruno Haible  <bruno@clisp.org>
8998
8999         Fix more C++ link errors on Solaris 8.
9000         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9001         $(LIB_EACCESS).
9002         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9003         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9004         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9005         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9006         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9007
9008 2010-12-25  Bruno Haible  <bruno@clisp.org>
9009
9010         printf-posix: Fix link error when a non-GCC compiler is used.
9011         * lib/stdio.in.h (printf): When not using GCC, override printf
9012         correctly.
9013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9014
9015 2010-12-25  Bruno Haible  <bruno@clisp.org>
9016
9017         strerror_r-posix: Update doc.
9018         * doc/posix-functions/strerror_r.texi: Update doc about the return
9019         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9020
9021 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         utimens: simplify the logic of the previous change
9024         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9025         This should not affect whether the test succeeds or fails.
9026
9027         utimens: configure better on hosts with NFS clock skew
9028         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9029         uses the clock of the local host.  It might use the clock of the
9030         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9032
9033 2010-12-25  Bruno Haible  <bruno@clisp.org>
9034
9035         ptsname test: Avoid failure on Solaris.
9036         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9037         open a pseudo-terminal; don't use BSD-style ptys.
9038         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9039
9040 2010-12-25  Bruno Haible  <bruno@clisp.org>
9041
9042         ptsname: Avoid ERANGE failure on some systems.
9043         * lib/ptsname.c (buffer): Increase size.
9044
9045 2010-12-25  Bruno Haible  <bruno@clisp.org>
9046
9047         rename, renameat: Avoid test failures at NFS mounted locations.
9048         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9049         so that subsequent mkdir calls succeed.
9050
9051 2010-12-25  Bruno Haible  <bruno@clisp.org>
9052
9053         iswblank: Fix C++ link error on Solaris 8.
9054         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9055         _GL_FUNCDECL_SYS.
9056
9057 2010-12-25  Bruno Haible  <bruno@clisp.org>
9058
9059         unistd: Fix C++ link error on Solaris 8.
9060         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9061
9062 2010-12-25  Bruno Haible  <bruno@clisp.org>
9063
9064         readlink doc: Mention an old glibc bug.
9065         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9066
9067 2010-12-25  Bruno Haible  <bruno@clisp.org>
9068
9069         fcntl-h: Fix for use of C++ on glibc systems.
9070         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9071         also on glibc systems in C++ mode.
9072         Reported by Gary V. Vaughan <gary@gnu.org>.
9073
9074 2010-12-25  Bruno Haible  <bruno@clisp.org>
9075
9076         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9077         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9078
9079 2010-12-25  Bruno Haible  <bruno@clisp.org>
9080
9081         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9082         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9083         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9084         test whether truncl works according to ISO C 99 with IEC 60559.
9085         * m4/truncl-ieee.m4: New file.
9086         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9087         m4/signbit.m4.
9088         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9089
9090 2010-12-25  Bruno Haible  <bruno@clisp.org>
9091
9092         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9093         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9094         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9095         test whether ceill works according to ISO C 99 with IEC 60559.
9096         * m4/ceill-ieee.m4: New file.
9097         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9098         m4/signbit.m4.
9099         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9100
9101 2010-12-25  Bruno Haible  <bruno@clisp.org>
9102
9103         Ensure all prerequisites of <wchar.h> are included.
9104         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9105         before <wchar.h>.
9106         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9107         gl_MBRLEN_NUL_RETVAL): Likewise.
9108         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9109         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9110         AC_FUNC_MBRTOWC): Likewise.
9111         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9112         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9114         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9115         Likewise.
9116         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9117         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9118         (gl_WCHAR_H): Improve comments.
9119         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9120
9121 2010-12-25  Bruno Haible  <bruno@clisp.org>
9122
9123         strtok_r: Fix C syntax error in autoconf macro.
9124         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9125         characters in test program.
9126
9127 2010-12-24  Bruno Haible  <bruno@clisp.org>
9128
9129         ceil, trunc, round: Fix gcc warnings.
9130         * lib/ceil.c (MIN): Undefine before redefining.
9131         * lib/trunc.c (MIN): Likewise.
9132         * lib/round.c (MIN): Likewise.
9133         Include <math.h> first.
9134
9135 2010-12-24  Bruno Haible  <bruno@clisp.org>
9136
9137         select tests: Avoid failures on OSF/1 5.1.
9138         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9139         failure of closing the last socket; it may fail with ECONNRESET.
9140
9141 2010-12-24  Eric Blake  <eblake@redhat.com>
9142
9143         stdint: avoid HP-UX 10.20 preprocessor bug
9144         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9145         than #if.
9146         * tests/test-floor2.c (main): Likewise.
9147         Reported by Peter O'Gorman.
9148
9149         pipe: make obsoletion transition easier
9150         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9151         * modules/pipe (Files): Include revived file.
9152         (Include): Drop reference, to mirror getdate's behavior.
9153
9154 2010-12-24  Bruno Haible  <bruno@clisp.org>
9155
9156         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9157         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9158         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9160
9161 2010-12-24  Bruno Haible  <bruno@clisp.org>
9162
9163         gethostname: Ensure declaration on NonStop Kernel.
9164         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9166
9167 2010-12-24  Bruno Haible  <bruno@clisp.org>
9168
9169         sys_select: Ensure all necessary types on NonStop Kernel.
9170         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9171         include <sys/time.h>.
9172         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9173         NonStop Kernel.
9174         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9175
9176 2010-12-24  Bruno Haible  <bruno@clisp.org>
9177
9178         sys_select: Remove unneeded include.
9179         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9180         have <sys/select.h>.
9181
9182 2010-12-24  Bruno Haible  <bruno@clisp.org>
9183
9184         gethostname: Provide a fallback for HOST_NAME_MAX.
9185         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9186         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9187         instead.
9188         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9189
9190 2010-12-24  Bruno Haible  <bruno@clisp.org>
9191
9192         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9193         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9194         (SA_RESTART): Likewise.
9195         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9196
9197 2010-12-24  Bruno Haible  <bruno@clisp.org>
9198
9199         signal: Define NSIG.
9200         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9201         * tests/test-signal.c (nsig): New variable.
9202         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9203
9204 2010-12-24  Bruno Haible  <bruno@clisp.org>
9205
9206         rename, renameat: Avoid test failures on OSF/1 5.1.
9207         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9208         alternative error codes.
9209         * tests/test-renameat.c (main): Likewise.
9210
9211 2010-12-24  Bruno Haible  <bruno@clisp.org>
9212
9213         *printf: Detect large precisions bug on Solaris 10/SPARC.
9214         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9215         by Paul Eggert.
9216         * tests/test-snprintf-posix.h (test_function): Add this test code here
9217         too.
9218         * tests/test-sprintf-posix.h (test_function): Likewise.
9219         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9220         * tests/test-vasprintf-posix.c (test_function): Likewise.
9221         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9222         around by gnulib.
9223         * doc/posix-functions/printf.texi: Likewise.
9224         * doc/posix-functions/snprintf.texi: Likewise.
9225         * doc/posix-functions/sprintf.texi: Likewise.
9226         * doc/posix-functions/vfprintf.texi: Likewise.
9227         * doc/posix-functions/vprintf.texi: Likewise.
9228         * doc/posix-functions/vsnprintf.texi: Likewise.
9229         * doc/posix-functions/vsprintf.texi: Likewise.
9230         * doc/posix-functions/dprintf.texi: Undo last commit.
9231         * doc/posix-functions/vdprintf.texi: Likewise.
9232
9233 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9234
9235         tests: port test-fdutimensat.c to Solaris 8
9236         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9237         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9238         On Solaris 8, it fails with errno == ENOSYS, because there is no
9239         futimens (so it can't use the fd), and there is no lutimens (so it
9240         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9241
9242         vsnprintf: make more consistent with snprintf; doc fixes
9243
9244         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9245         the byte count return problem was promoted from the snprintf-posix
9246         to the snprintf module.
9247         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9248         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9249         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9250         * tests/test-snprintf.c (main): Check the byte count returned.
9251         * tests/test-vsnprintf.c (main): Likewise.
9252
9253 2010-12-23  Eric Blake  <eblake@redhat.com>
9254
9255         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9256         * modules/sigpipe (License): Relax license.
9257
9258 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         doc: document Solaris printf bug with large float precisions
9261         * doc/posix-functions/dprintf.texi (dprintf):
9262         * doc/posix-functions/fprintf.texi (fprintf):
9263         * doc/posix-functions/printf.texi (printf):
9264         * doc/posix-functions/snprintf.texi (snprintf):
9265         * doc/posix-functions/sprintf.texi (sprintf):
9266         * doc/posix-functions/vdprintf.texi (vdprintf):
9267         * doc/posix-functions/vfprintf.texi (vfprintf):
9268         * doc/posix-functions/vprintf.texi (vprintf):
9269         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9270         * doc/posix-functions/vsprintf.texi (vsprintf):
9271         Mention that these functions mishandle large floating point
9272         precisions on Solaris 10.  The same bug is also present in Solaris
9273         8, and I assume earlier.  This causes "cd gnulib-tests; make
9274         check" to fail on Solaris 8 (and I assume, later) when building
9275         the latest coreutils, in test-vasprintf-posix's call to
9276         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9277         the wide flavors (e.g., wprintf) so this patch just updates the
9278         documentation for the narrow ones.
9279
9280         test-posixtm.c: add two tests
9281         * tests/test-posixtm.c: Add two tests, to highlight the
9282         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9283         around this bug; this is merely to document it.
9284
9285 2010-12-22  Bruno Haible  <bruno@clisp.org>
9286
9287         getlogin_r: Work around portability problem on OSF/1.
9288         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9289         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9290         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9291         test for a truncated result.
9292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9293         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9294         * modules/getlogin_r (Depends-on): Add memchr.
9295         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9296
9297 2010-12-22  Bruno Haible  <bruno@clisp.org>
9298
9299         ptsname: Avoid test failure on OSF/1 5.1.
9300         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9301         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9302         (same_slave): New function.
9303         (main): Use it to compare ptsname's result with the expected file name.
9304
9305 2010-12-22  Bruno Haible  <bruno@clisp.org>
9306
9307         Port extended stdio modules to HP NonStop Kernel.
9308         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9309         macros.
9310         * lib/fbufmode.c: Update comments.
9311         * lib/fflush.c: Likewise.
9312         * lib/fpurge.c: Likewise.
9313         * lib/freadable.c: Likewise.
9314         * lib/freadahead.c: Likewise.
9315         * lib/freading.c: Likewise.
9316         * lib/freadptr.c: Likewise.
9317         * lib/freadseek.c: Likewise.
9318         * lib/fseeko.c: Likewise.
9319         * lib/fseterr.c: Likewise.
9320         * lib/fwritable.c: Likewise.
9321         * lib/fwriting.c: Likewise.
9322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9323
9324 2010-12-22  Bruno Haible  <bruno@clisp.org>
9325
9326         ttyname_r: Work around bug on OSF/1 5.1.
9327         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9328         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9329         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9330         present.
9331         * lib/ttyname_r.c (ttyname_r): Update comments.
9332
9333 2010-12-22  Bruno Haible  <bruno@clisp.org>
9334
9335         round: Implement result sign according to IEEE 754.
9336         * lib/round.c (MIN, MINUS_ZERO): New macros.
9337         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9338         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9339         * tests/test-round-ieee.c (main): Likewise.
9340         * tests/test-roundl-ieee.c (main): Likewise.
9341
9342         trunc: Implement result sign according to IEEE 754.
9343         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9344         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9345         * tests/test-trunc2.c: Include minus-zero.h.
9346         (MINUS_ZERO): New macro.
9347         (trunc_reference): Keep in sync with lib/trunc.c.
9348         * tests/test-truncf2.c: Include minus-zero.h.
9349         (MINUS_ZERO): New macro.
9350         (truncf_reference): Keep in sync with lib/trunc.c.
9351         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9352         * tests/test-trunc-ieee.c (main): Likewise.
9353         * tests/test-truncl-ieee.c (main): Likewise.
9354
9355         ceil: Implement result sign according to IEEE 754.
9356         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9357         (FUNC): Return -0.0 for -1 < x < 0.
9358         * tests/test-ceil2.c: Include minus-zero.h.
9359         (MINUS_ZERO): New macro.
9360         (ceil_reference): Keep in sync with lib/ceil.c.
9361         * tests/test-ceilf2.c: Include minus-zero.h.
9362         (MINUS_ZERO): New macro.
9363         (ceilf_reference): Keep in sync with lib/ceil.c.
9364         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9365         * tests/test-ceil-ieee.c (main): Likewise.
9366         * tests/test-ceill-ieee.c (main): Likewise.
9367
9368         floor: Implement result sign according to IEEE 754.
9369         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9370         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9371         * tests/test-floorf2.c (floorf_reference): Likewise.
9372         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9373         * tests/test-floor-ieee.c (main): Likewise.
9374         * tests/test-floorl-ieee.c (main): Likewise.
9375
9376 2010-12-22  Bruno Haible  <bruno@clisp.org>
9377
9378         getaddrinfo: Update doc.
9379         * doc/posix-functions/gai_strerror.texi: Return type is also different
9380         on AIX and HP-UX.
9381
9382 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9383
9384         getaddrinfo, inet_ntop: Update doc for Solaris.
9385         * doc/posix-functions/gai_strerror.texi: Return type is also an
9386         issue on Solaris 9 and earlier.
9387         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9388         on Solaris 10 and earlier.
9389
9390 2010-12-21  Bruno Haible  <bruno@clisp.org>
9391
9392         New module 'roundl-ieee'.
9393         * modules/roundl-ieee: New file.
9394         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9395         test whether roundl works according to ISO C 99 with IEC 60559.
9396         * m4/roundl-ieee.m4: New file.
9397         * modules/roundl-ieee-tests: New file.
9398         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9399         * tests/test-roundl.c (main): Remove signbit tests.
9400         * modules/roundl-tests (Depends-on): Remove signbit.
9401         * doc/posix-functions/roundl.texi: Mention the new module.
9402
9403 2010-12-21  Bruno Haible  <bruno@clisp.org>
9404
9405         New module 'truncl-ieee'.
9406         * modules/truncl-ieee: New file.
9407         * modules/truncl-ieee-tests: New file.
9408         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9409         * tests/test-truncl.c (main): Remove signbit tests.
9410         * modules/truncl-tests (Depends-on): Remove signbit.
9411         * doc/posix-functions/truncl.texi: Mention the new module.
9412
9413 2010-12-21  Bruno Haible  <bruno@clisp.org>
9414
9415         New module 'ceill-ieee'.
9416         * modules/ceill-ieee: New file.
9417         * modules/ceill-ieee-tests: New file.
9418         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9419         * tests/test-ceill.c (main): Remove signbit tests.
9420         * modules/ceill-tests (Depends-on): Remove signbit.
9421         * doc/posix-functions/ceill.texi: Mention the new module.
9422
9423 2010-12-21  Bruno Haible  <bruno@clisp.org>
9424
9425         New module 'floorl-ieee'.
9426         * modules/floorl-ieee: New file.
9427         * modules/floorl-ieee-tests: New file.
9428         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9429         * tests/test-floorl.c (main): Remove signbit tests.
9430         * modules/floorl-tests (Depends-on): Remove signbit.
9431         * doc/posix-functions/floorl.texi: Mention the new module.
9432
9433 2010-12-21  Bruno Haible  <bruno@clisp.org>
9434
9435         New module 'round-ieee'.
9436         * modules/round-ieee: New file.
9437         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9438         whether round works according to ISO C 99 with IEC 60559.
9439         * m4/round-ieee.m4: New file.
9440         * modules/round-ieee-tests: New file.
9441         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9442         * tests/test-round1.c (main): Remove signbit tests.
9443         * modules/round-tests (Depends-on): Remove 'signbit'.
9444         * doc/posix-functions/round.texi: Mention the new module.
9445
9446 2010-12-21  Bruno Haible  <bruno@clisp.org>
9447
9448         New module 'trunc-ieee'.
9449         * modules/trunc-ieee: New file.
9450         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9451         whether trunc works according to ISO C 99 with IEC 60559.
9452         * m4/trunc-ieee.m4: New file.
9453         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9455         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9456         * modules/trunc-ieee-tests: New file.
9457         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9458         * tests/test-trunc1.c (main): Remove signbit tests.
9459         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9460         * doc/posix-functions/trunc.texi: Mention the new module.
9461
9462 2010-12-21  Bruno Haible  <bruno@clisp.org>
9463
9464         New module 'ceil-ieee'.
9465         * modules/ceil-ieee: New file.
9466         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9467         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9468         ISO C 99 with IEC 60559.
9469         * m4/ceil-ieee.m4: New file.
9470         * modules/ceil (Files): Add lib/ceil.c.
9471         (Depends-on): Add 'float'.
9472         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9473         * lib/math.in.h (ceil): New declaration.
9474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9475         REPLACE_CEIL.
9476         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9477         * modules/ceil-ieee-tests: New file.
9478         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9479         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9480         * doc/posix-functions/ceil.texi: Mention the new module.
9481
9482 2010-12-21  Bruno Haible  <bruno@clisp.org>
9483
9484         New module 'floor-ieee'.
9485         * modules/floor-ieee: New file.
9486         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9487         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9488         ISO C 99 with IEC 60559.
9489         * m4/floor-ieee.m4: New file.
9490         * modules/floor (Files): Add lib/floor.c.
9491         (Depends-on): Add 'float'.
9492         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9493         * lib/math.in.h (floor): New declaration.
9494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9495         REPLACE_FLOOR.
9496         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9497         * modules/floor-ieee-tests: New file.
9498         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9499         * tests/test-math-c++.cc: Check the signature of 'floor'.
9500         * doc/posix-functions/floor.texi: Mention the new module.
9501
9502 2010-12-21  Bruno Haible  <bruno@clisp.org>
9503
9504         New module 'roundf-ieee'.
9505         * modules/roundf-ieee: New file.
9506         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9507         test whether roundf works according to ISO C 99 with IEC 60559.
9508         * m4/roundf-ieee.m4: New file.
9509         * modules/roundf-ieee-tests: New file.
9510         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9511         * tests/test-roundf1.c (main): Remove signbit tests.
9512         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9513         * doc/posix-functions/roundf.texi: Mention the new module.
9514
9515 2010-12-21  Bruno Haible  <bruno@clisp.org>
9516
9517         New module 'truncf-ieee'.
9518         * modules/truncf-ieee: New file.
9519         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9520         test whether truncf works according to ISO C 99 with IEC 60559.
9521         * m4/truncf-ieee.m4: New file.
9522         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9524         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9525         * modules/truncf-ieee-tests: New file.
9526         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9527         * tests/test-truncf1.c (main): Remove signbit tests.
9528         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9529         * doc/posix-functions/truncf.texi: Mention the new module.
9530
9531 2010-12-21  Bruno Haible  <bruno@clisp.org>
9532
9533         New module 'ceilf-ieee'.
9534         * modules/ceilf-ieee: New file.
9535         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9536         test whether ceilf works according to ISO C 99 with IEC 60559.
9537         * m4/ceilf-ieee.m4: New file.
9538         * modules/ceilf-ieee-tests: New file.
9539         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9540         * tests/test-ceilf1.c (main): Remove signbit tests.
9541         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9542         * doc/posix-functions/ceilf.texi: Mention the new module.
9543
9544 2010-12-21  Bruno Haible  <bruno@clisp.org>
9545
9546         New module 'floorf-ieee'.
9547         * modules/floorf-ieee: New file.
9548         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9549         test whether floorf works according to ISO C 99 with IEC 60559.
9550         * m4/floorf-ieee.m4: New file.
9551         * modules/floorf-ieee-tests: New file.
9552         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9553         * tests/test-floorf1.c (main): Remove signbit tests.
9554         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9555         * doc/posix-functions/floorf.texi: Mention the new module.
9556
9557 2010-12-21  Bruno Haible  <bruno@clisp.org>
9558
9559         Support for minus zero in autoconf macros.
9560         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9561         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9562         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9563         * tests/minus-zero.h: Update comments.
9564
9565 2010-12-21  Bruno Haible  <bruno@clisp.org>
9566
9567         Tests for module 'ceil'.
9568         * modules/ceil-tests: New file.
9569         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9570         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9571
9572 2010-12-21  Bruno Haible  <bruno@clisp.org>
9573
9574         Tests for module 'floor'.
9575         * modules/floor-tests: New file.
9576         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9577         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9578
9579 2010-12-21  Bruno Haible  <bruno@clisp.org>
9580
9581         math: Fix indentation.
9582         * lib/math.in.h (floorf): Fix indentation.
9583
9584 2010-12-21  Bruno Haible  <bruno@clisp.org>
9585
9586         Fix cross-compilation guesses on Solaris.
9587         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9588         not match "solaris2.10".
9589         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9590         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9591         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9592
9593 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9594
9595         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9596         This fixes a problem observed with the latest coreutils snapshot
9597         that caused a test to fail on Solaris 8.  src/csplit.c's call
9598         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9599         earlier, instead of returning the number of bytes that would have
9600         been generated; this causes csplit to incorrectly report memory
9601         exhaustion.
9602         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9603         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9604         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9605         comments to match.
9606         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9607         Fix typo in matching older versions of Solaris: "solaris2.10"
9608         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9609         only for guessing while cross-compiling.
9610         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9611
9612 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9613
9614         ftoastr: fix comment again
9615         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9617         Also, simplify example a bit by using flags = 0.
9618
9619 2010-12-20  Bruno Haible  <bruno@clisp.org>
9620
9621         round*, trunc*: Update documentation regarding glibc.
9622         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9623         * doc/posix-functions/round.texi: Likewise.
9624         * doc/posix-functions/roundl.texi: Likewise.
9625         * doc/posix-functions/truncf.texi: Likewise.
9626         * doc/posix-functions/trunc.texi: Likewise.
9627         * doc/posix-functions/truncl.texi: Likewise.
9628
9629 2010-12-20  Bruno Haible  <bruno@clisp.org>
9630
9631         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9632         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9633         * doc/posix-functions/round.texi: Likewise.
9634         * doc/posix-functions/roundl.texi: Likewise.
9635
9636 2010-12-20  Bruno Haible  <bruno@clisp.org>
9637
9638         ttyname_r: Add missing declaration on HP-UX 11.
9639         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9640         HAVE_TTYNAME_R.
9641         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9642         declared. Set HAVE_TTYNAME_R always.
9643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9644         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9645         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9646         HAVE_TTYNAME_R.
9647         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9648
9649 2010-12-20  Bruno Haible  <bruno@clisp.org>
9650
9651         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9652         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9653         * doc/posix-functions/getlogin_r.texi: Likewise.
9654         * tests/test-getlogin.c: Include <errno.h>.
9655         (main): Avoid test failure on HP-UX 11.11.
9656         * tests/test-getlogin_r.c (main): Likewise.
9657
9658 2010-12-20  Bruno Haible  <bruno@clisp.org>
9659
9660         getlogin_r: Add missing declaration on HP-UX 11.
9661         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9662         declared also when it exists as a function.
9663         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9664
9665 2010-12-20  Bruno Haible  <bruno@clisp.org>
9666
9667         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9668         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9669         through wcrtomb.
9670
9671 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         ftoastr: fix comment
9674         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9676
9677 2010-12-19  Bruno Haible  <bruno@clisp.org>
9678
9679         isnan: Ensure it is a macro.
9680         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9681         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9682         Solaris.
9683
9684 2010-12-19  Bruno Haible  <bruno@clisp.org>
9685
9686         ldexpl test: Fix link error on OSF/1 5.1.
9687         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9688
9689 2010-12-19  Bruno Haible  <bruno@clisp.org>
9690
9691         wctype: Make it work in C++ mode on OSF/1 5.1.
9692         * lib/wctype.in.h (iswblank): Declare but not define here.
9693         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9694         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9695         * modules/wctype (Files): Add lib/iswblank.c.
9696
9697 2010-12-19  Bruno Haible  <bruno@clisp.org>
9698
9699         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9700         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9701         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9702
9703 2010-12-19  Bruno Haible  <bruno@clisp.org>
9704
9705         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9706         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9707         _POSIX_PII_SOCKET.
9708         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9709         * doc/posix-functions/recvfrom.texi: Likewise.
9710         * doc/posix-functions/send.texi: Likewise.
9711         * doc/posix-functions/sendto.texi: Likewise.
9712
9713 2010-12-19  Bruno Haible  <bruno@clisp.org>
9714
9715         tcgetsid: Add missing declaration on OSF/1 5.1.
9716         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9717         HAVE_TCGETSID.
9718         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9719         Don't set HAVE_TCGETSID.
9720         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9721         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9722         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9723         HAVE_TCGETSID.
9724         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9725
9726 2010-12-19  Bruno Haible  <bruno@clisp.org>
9727
9728         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9729         * lib/stdio.in.h: During the include_next statement, let recursive
9730         includes of this file include only the system header file.
9731
9732 2010-12-19  Bruno Haible  <bruno@clisp.org>
9733
9734         iconv_open: Fix regression from 2010-12-04.
9735         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9736         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9737
9738 2010-12-19  Bruno Haible  <bruno@clisp.org>
9739
9740         stdbool test: Avoid a gcc warning.
9741         * tests/test-stdbool.c (main): Fail if e1 is false.
9742         Reported by Jim Meyering.
9743
9744 2010-12-19  Jim Meyering  <meyering@redhat.com>
9745
9746         setenv: restore to working order
9747         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9748         mistakenly removed.
9749         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9750         HAVE_SETENV.
9751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9752         HAVE_SETENV.
9753
9754 2010-12-19  Bruno Haible  <bruno@clisp.org>
9755
9756         Document some different function declarations on OSF/1 5.1.
9757         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9758         * doc/posix-functions/inet_ntop.texi: Likewise.
9759         * doc/posix-functions/gethostname.texi: Likewise.
9760         * lib/unistd.in.h (gethostname): Update comment.
9761
9762 2010-12-19  Bruno Haible  <bruno@clisp.org>
9763
9764         doc: Mention vasprintf-posix module.
9765         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9766         the 'vasprintf-posix' module.
9767         * doc/glibc-functions/vasprintf.texi: Likewise.
9768
9769 2010-12-19  Bruno Haible  <bruno@clisp.org>
9770
9771         unsetenv: Add missing declaration on OSF/1 5.1.
9772         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9773         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9774         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9776         not HAVE_UNSETENV.
9777         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9778         HAVE_UNSETENV.
9779         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9780
9781 2010-12-19  Bruno Haible  <bruno@clisp.org>
9782
9783         setenv: Add missing declaration on OSF/1 5.1.
9784         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9785         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9786         declared. Don't set HAVE_SETENV.
9787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9788         not HAVE_SETENV.
9789         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9790         HAVE_SETENV.
9791         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9792
9793 2010-12-19  Bruno Haible  <bruno@clisp.org>
9794
9795         nl_langinfo tests: Avoid gcc warning.
9796         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9797
9798 2010-12-19  Bruno Haible  <bruno@clisp.org>
9799
9800         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9801         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9802         _GL_CXXALIAS_SYS.
9803
9804 2010-12-19  Bruno Haible  <bruno@clisp.org>
9805
9806         stdbool: Relax test.
9807         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9808         address to 'bool' work in static initializer, for compilers other than
9809         GCC.
9810
9811 2010-12-19  Bruno Haible  <bruno@clisp.org>
9812
9813         ftello: Add missing declaration on OSF/1 5.1.
9814         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9815         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9817         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9818         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9819
9820 2010-12-19  Bruno Haible  <bruno@clisp.org>
9821
9822         fseeko: Add missing declaration on OSF/1 5.1.
9823         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9826         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9827         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9828
9829 2010-12-19  Bruno Haible  <bruno@clisp.org>
9830
9831         fchdir: Add missing declaration on OSF/1 5.1.
9832         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9835         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9836         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9837
9838 2010-12-19  Bruno Haible  <bruno@clisp.org>
9839
9840         relocatable-prog-wrapper: Separate from relocatable-prog.
9841         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9842         uninstall-relocwrapper rule here.
9843         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9844         Reported by Ian Beckwith <ianb@erislabs.net>.
9845
9846 2010-12-19  Bruno Haible  <bruno@clisp.org>
9847
9848         unistr/u8-mbsnlen: Add missing dependency.
9849         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9850         Reported by Ian Beckwith <ianb@erislabs.net>.
9851
9852 2010-12-19  Bruno Haible  <bruno@clisp.org>
9853
9854         iconv: Make it possible again to use this module without 'iconv-h'.
9855         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9856         if it is not defined.
9857         Reported by Ian Beckwith <ianb@erislabs.net>.
9858
9859 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9860
9861         acl: port to Solaris 8 when copying from tmpfs to ufs
9862         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9863         error number.  Problem observed on Solaris 8 with latest
9864         coreutils, with "mv A B", where A is on a tmpfs file system and B
9865         is on a ufs file system.  This caused coreutils' mv/part-symlink
9866         test to fail.
9867
9868         tests: set fail=0 at start
9869         * tests/init.sh (setup_): Move fail=0 initialization here ...
9870         (mktempd_): ... from here, so that tests can rely on fail being
9871         set to 0 initially.  This fixes a problem in coreutils; see:
9872         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9873
9874 2010-12-18  Bruno Haible  <bruno@clisp.org>
9875
9876         memmem-simple: Stylistic changes.
9877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9878         Fix preprocessor directive indentation.
9879
9880 2010-12-15  Pádraig Brady <P@draigBrady.com>
9881
9882         memmem, memmem-simple: reorganize and expand empty needle check
9883         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9884         functional checks to memmem-simple so that one has a fully functional
9885         memmem by using just this module.
9886         Restrict the performance only check to the memmem module.
9887         Also expand the empty needle check to ensure the correct
9888         pointer is returned, not just a non NULL pointer.
9889         * doc/glibc-functions/memmem.texi: Rearrange the portability
9890         documentation to correlate with the rearranged checks.
9891         Clarify exactly how the memmem and memmem-simple modules
9892         relate to each other.
9893
9894 2010-12-15  Pádraig Brady <P@draigBrady.com>
9895             Bruno Haible  <bruno@clisp.org>
9896
9897         Improve cross-compilation guesses for uClibc.
9898         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9899         that uClibc does not have the glibc bug.
9900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9901         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9902
9903 2010-12-14  Eric Blake  <eblake@redhat.com>
9904
9905         configmake: provide fallbacks for oldest supported autotools
9906         * m4/configmake.m4: New file.
9907         * modules/configmake (Files): Ship it.
9908         (configure.ac): Use it to guarantee fallbacks.
9909
9910 2010-12-13  Pádraig Brady <P@draigBrady.com>
9911
9912         read-file: Improve handling of large files
9913         * lib/read-file.c (fread_file): Minimize realloc()s
9914         for regular files, and better manage sizes around SIZE_MAX.
9915
9916 2010-12-13  Eric Blake  <eblake@redhat.com>
9917
9918         cloexec, fcntl: relax license
9919         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9920         consent from all contributors.
9921         * modules/fcntl (License): Likewise.
9922
9923 2010-12-10  Bruno Haible  <bruno@clisp.org>
9924
9925         Tests for module 'pipe-posix'.
9926         * modules/pipe-posix-tests: New file.
9927         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9928
9929 2010-12-10  Bruno Haible  <bruno@clisp.org>
9930
9931         pipe-posix: Make it work in C++ mode.
9932         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9933         (pipe): Use common idiom, not a macro definition.
9934         * lib/pipe.c: New file.
9935         * m4/pipe.m4: New file.
9936         * modules/pipe-posix (Description): Enhance.
9937         (Files): Add lib/pipe.c, m4/pipe.m4.
9938         (configure.ac): Invoke gl_FUNC_PIPE.
9939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9940         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9941         * tests/test-unistd-c++.cc: Check the signature of pipe.
9942
9943 2010-12-10  Bruno Haible  <bruno@clisp.org>
9944
9945         Rename module 'pipe' to 'spawn-pipe'.
9946         * modules/spawn-pipe: New file, renamed from modules/pipe.
9947         (Files, configure.ac, Makefile.am): Update.
9948         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9949         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9950         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9951         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9952         "spawn-pipe.h" instead of "pipe.h".
9953         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9954         to gl_SPAWN_PIPE.
9955         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9956         (Files, Makefile.am): Update.
9957         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9958         Update.
9959         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9960         Include "spawn-pipe.h" instead of "pipe.h".
9961         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9962         * lib/javacomp.c: Likewise.
9963         * lib/javaversion.c: Likewise.
9964         * lib/pipe-filter-gi.c: Likewise.
9965         * lib/pipe-filter-ii.c: Likewise.
9966         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9967         * modules/javacomp (Depends-on): Likewise.
9968         * modules/javaversion (Depends-on): Likewise.
9969         * modules/pipe-filter-gi (Depends-on): Likewise.
9970         * modules/pipe-filter-ii (Depends-on): Likewise.
9971         * MODULES.html.sh (Executing programs): Update.
9972         * NEWS: Mention the change.
9973
9974 2010-12-10  Eric Blake  <eblake@redhat.com>
9975
9976         pipe-posix: new module
9977         * modules/pipe-posix: New file.
9978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9979         (gl_UNISTD_H): Check for declaration.
9980         * modules/unistd (Makefile.am): Substitute it.
9981         * lib/unistd.in.h (pipe): Provide it for mingw.
9982         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9983         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9984
9985 2010-12-07  Bruno Haible  <bruno@clisp.org>
9986
9987         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9988         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9989         u8_strcmp_gnu.
9990         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9991
9992 2010-12-06  Bruno Haible  <bruno@clisp.org>
9993
9994         Update internal documentation.
9995         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9996
9997 2010-12-04  Bruno Haible  <bruno@clisp.org>
9998
9999         Put more information about failed tests into the test return codes.
10000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10001         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10002         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10004         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10006         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10007         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10008         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10010         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10011         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10012         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10013         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10014         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10015         returns a bit mask.
10016         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10017         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10018         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10019         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10020         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10021         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10024         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10025         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10027         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10030         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10031         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10032         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10033         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10034         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10035         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10037         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10039         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10040         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10041         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10042         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10043         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10044         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10045         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10046         gl_PRINTF_PRECISION): Likewise.
10047         * m4/regex.m4 (gl_REGEX): Likewise.
10048         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10049         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10051         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10054         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10055         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10056         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10057         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10058         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10059         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10060         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10061         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10062         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10063         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10064         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10065         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10067         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10068         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10069         enumerated value.
10070         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10071
10072 2010-12-04  Bruno Haible  <bruno@clisp.org>
10073
10074         Update for Solaris 11 2010-11.
10075         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10076         Express, released in November 2010.
10077
10078 2010-12-04  Bruno Haible  <bruno@clisp.org>
10079
10080         nproc: Relax license.
10081         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10082         and Paul Eggert.
10083         Requested by Ludovic Courtès <ludo@gnu.org>.
10084
10085 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10086
10087         utimecmp: fine-grained src to nearby coarse-grained dest
10088
10089         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10090         and the source is on a file system with higher-resolution time
10091         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10092         not work, and the time stamps are close together, the algorithm to
10093         determine the exact resolution from the read-back mtime was buggy:
10094         it had a "!=" where it should have had an "==".  This bug has been
10095         in the code ever since it was introduced to gnulib.
10096         Problem reported by Dan Jacobson in
10097         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10098
10099 2010-11-30  Bruno Haible  <bruno@clisp.org>
10100
10101         strerror_r-posix: Fix autoconf test.
10102         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10103
10104 2010-11-28  Bruno Haible  <bruno@clisp.org>
10105             Paul Eggert  <eggert@cs.ucla.edu>
10106
10107         Tests for module 'getdomainname'.
10108         * modules/getdomainname-tests: New file.
10109         * tests/test-getdomainname.c: New file, based on
10110         tests/test-gethostname.c.
10111
10112 2010-11-28  Bruno Haible  <bruno@clisp.org>
10113             Paul Eggert  <eggert@cs.ucla.edu>
10114
10115         getdomainname: Use the system function when possible.
10116         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10117         (getdomainname): Replace if needed. Provide the declaration if it is
10118         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10119         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10120         (getdomainname): When the system has getdomainname, call the system
10121         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10122         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10123         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10124         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10125         the function if its second argument is of type 'int' or if it is found
10126         in libnsl.
10127         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10128         <sys/systeminfo.h> and sysinfo().
10129         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10131         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10132         HAVE_GETDOMAINNAME.
10133         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10134         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10135         * doc/glibc-functions/getdomainname.texi: Document the problems with
10136         the getdomainname declaration.
10137
10138 2010-11-28  Bruno Haible  <bruno@clisp.org>
10139
10140         sys_socket: Ensure ss_family field on AIX.
10141         * lib/sys_socket.in.h (ss_family): New macro definition.
10142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10143         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10144         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10145         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10146         * modules/sys_socket (Makefile.am): Substitute
10147         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10148         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10149
10150 2010-11-27  Bruno Haible  <bruno@clisp.org>
10151
10152         readline: Improve configure output.
10153         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10154         "checking for readline..." result understandable.
10155
10156 2010-11-27  Bruno Haible  <bruno@clisp.org>
10157
10158         *printf-posix: Detect a bug on Solaris 10/x86.
10159         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10160         for floating-point output.
10161         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10162         directive.
10163         * tests/test-snprintf-posix.h (test_function): Likewise.
10164         * tests/test-sprintf-posix.h (test_function): Likewise.
10165         * tests/test-vasprintf-posix.c (test_function): Likewise.
10166         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10167         * doc/posix-functions/printf.texi: Likewise.
10168         * doc/posix-functions/snprintf.texi: Likewise.
10169         * doc/posix-functions/sprintf.texi: Likewise.
10170         * doc/posix-functions/vfprintf.texi: Likewise.
10171         * doc/posix-functions/vprintf.texi: Likewise.
10172         * doc/posix-functions/vsnprintf.texi: Likewise.
10173         * doc/posix-functions/vsprintf.texi: Likewise.
10174         * doc/glibc-functions/obstack_printf.texi: Likewise.
10175         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10176
10177 2010-11-27  Bruno Haible  <bruno@clisp.org>
10178
10179         Fix link error when module libunistring-optional is in use.
10180         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10181         * modules/striconveha-tests (Makefile.am): Likewise.
10182
10183 2010-11-27  Bruno Haible  <bruno@clisp.org>
10184
10185         regex: Mention link dependencies.
10186         * modules/regex (Link): New section.
10187         * modules/rpmatch (Link): Likewise.
10188         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10189
10190 2010-11-27  Bruno Haible  <bruno@clisp.org>
10191
10192         ftoastr: Fix compilation error on Solaris.
10193         * lib/ftoastr.c: Include <config.h>.
10194
10195 2010-11-27  Bruno Haible  <bruno@clisp.org>
10196
10197         getloadavg: Update documentation.
10198         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10199
10200 2010-11-27  Bruno Haible  <bruno@clisp.org>
10201
10202         sys_socket: Fix test whether the functions are declared.
10203         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10204         not <sys/select.h>.
10205
10206 2010-11-27  Bruno Haible  <bruno@clisp.org>
10207
10208         getpass: Make sure to get system declaration on some platforms.
10209         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10210         gl_USE_SYSTEM_EXTENSIONS.
10211         * modules/getpass (Depends-on): Add extensions.
10212
10213 2010-11-26  Bruno Haible  <bruno@clisp.org>
10214
10215         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10216         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10217         'iconv' module is present.
10218         (ICONV_CONST): New macro.
10219         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10220         ICONV_CONST.
10221         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10222         set ICONV_CONST.
10223         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10224         here.
10225         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10226         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10227         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10228         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10229         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10230         present.
10231
10232 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         ftoastr: comment fix
10235         * lib/ftoastr.c: "little" -> "little or no" in comment
10236
10237 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10238
10239         stdint: port to GCC 4.3 + OSX + Octave
10240         On this platform, stdint.h is buggy and defines int64_t to long
10241         long int.  The replacement defined it to long int, causing
10242         problems with C++ style name mangling.  Instead, trust the system
10243         definition if INT64_MAX is defined, and likewise for the unsigned
10244         variant.   Problem reported by Jarno Rajahalme in
10245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10246         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10247         and don't mess with int64_t and INT64_MAX in this case.
10248         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10249
10250 2010-11-24  Bruno Haible  <bruno@clisp.org>
10251
10252         doc: Corrections regarding MacOS X 10.4 and 10.5.
10253         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10254         MacOS X.
10255         Reported by Simon Josefsson.
10256
10257 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10258
10259         Uninstall ".bin" files installed by relocwrapper.
10260         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10261         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10262         unless it is already there.
10263
10264 2010-11-21  Bruno Haible  <bruno@clisp.org>
10265
10266         Update for NetBSD 5.0.
10267         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10268         NetBSD; the test fails on NetBSD 5.0.
10269         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10270         about NetBSD.
10271
10272 2010-11-21  Bruno Haible  <bruno@clisp.org>
10273
10274         Update for HP-UX 11.23 and HP-UX 11.31.
10275         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10276         HP-UX.
10277
10278 2010-11-21  Bruno Haible  <bruno@clisp.org>
10279
10280         Update for MacOS X 10.5.
10281         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10282         MacOS X; the test fails on MacOS X 10.5.8.
10283         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10284         about MacOS X.
10285
10286 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10287
10288         bootstrap: add bootstrap_sync option.
10289         See discussion at
10290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10292         * build-aux/bootstrap: Accept --bootstrap-sync to update
10293         bootstrap if it is not identical to the local gnulib's
10294         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10295         enable this by default.  Accept --no-bootstrap-sync to disable
10296         it.
10297
10298 2010-11-20  Bruno Haible  <bruno@clisp.org>
10299
10300         Ensure that <features.h> is included before __GLIBC__ is tested.
10301         * lib/printf-parse.h: Include <features.h>.
10302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10303         Reported by Mike Frysinger <vapier@gentoo.org>.
10304
10305         Ensure that <features.h> is included before __GLIBC__ is tested.
10306         * lib/wchar.in.h: Include <features.h>.
10307         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10308         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10309         Reported by Mike Frysinger <vapier@gentoo.org>.
10310
10311         Ensure that <features.h> is included before __GLIBC__ is tested.
10312         * lib/arpa_inet.in.h: Include <features.h>.
10313         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10314         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10315         Reported by Mike Frysinger <vapier@gentoo.org>.
10316
10317         Ensure that <features.h> is included before __GLIBC__ is tested.
10318         * build-aux/link-warning.h: Include <features.h>.
10319         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10320         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10321         Reported by Mike Frysinger <vapier@gentoo.org>.
10322
10323         Ensure that <features.h> is included before __GLIBC__ is tested.
10324         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10325         Reported by Mike Frysinger <vapier@gentoo.org>.
10326
10327 2010-11-20  Bruno Haible  <bruno@clisp.org>
10328
10329         memmem: Fix autoconf test.
10330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10331
10332 2010-11-20  Bruno Haible  <bruno@clisp.org>
10333
10334         Port to uClibc.
10335         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10336         * lib/fcntl.in.h: Likewise.
10337         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10338         * lib/mbrtowc.c (mbrtowc): Likewise.
10339         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10340         * lib/strerror_r.c: Likewise.
10341         * lib/unistr/u8-strnlen.c: Likewise.
10342         * lib/vasnprintf.c (decimal_point_char): Likewise.
10343         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10346         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10347         * tests/test-sigaction.c (handler, main): Likewise.
10348         * lib/freading.h: Treat uClibc like a non-glibc platform.
10349         * lib/freading.c: Likewise.
10350         * lib/gettext.h: Likewise.
10351         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10352         Likewise.
10353         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10354         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10355         * lib/propername.c (proper_name_utf8): Likewise.
10356         * lib/spawn.in.h: Likewise.
10357         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10358         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10359         mem_cd_iconveh_internal): Likewise.
10360         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10361         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10362         strstr, strcasestr): Likewise.
10363         * lib/unicodeio.c (unicode_to_mb): Likewise.
10364         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10365         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10366         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10367         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10368         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10369         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10370         * lib/unistr/u8-stpncpy.c: Likewise.
10371         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10372         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10373         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10374         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10375         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10376         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10377         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10380         Likewise.
10381         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10382         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10383         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10386         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10387         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10388         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10389         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10390         * tests/test-striconveha.c (main): Likewise.
10391         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10392         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10393         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10394         * doc/posix-functions/getline.texi: Likewise.
10395         Reported by Mike Frysinger <vapier@gentoo.org>.
10396
10397 2010-11-20  Bruno Haible  <bruno@clisp.org>
10398
10399         nproc: Fix condition.
10400         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10401         HAVE_PTHREAD_AFFINITY_NP.
10402
10403 2010-11-20  Bruno Haible  <bruno@clisp.org>
10404
10405         Fix a comment.
10406         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10407
10408 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10409
10410         ftoastr: don't assume snprintf
10411         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10412         Implement a subset of snprintf here, by using sprintf safely.
10413         * modules/ftoastr (Depends-on): Remove snprintf.
10414
10415 2010-11-19  Jim Meyering  <meyering@redhat.com>
10416
10417         test-rename.h: fix compilation failure
10418         * tests/test-rename.h (test_rename): Add omitted "}".
10419
10420 2010-11-17  Jim Meyering  <meyering@redhat.com>
10421
10422         maint.mk: add a URL discussing the no-@acronym policy
10423         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10424
10425 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10426
10427         ftoastr: depend on snprintf, improve comments
10428         * lib/ftoastr.c: Also mention Loitsch's draft.
10429         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10430         needed in the current implementation, but it might simplify
10431         speeding up the code later.
10432         * modules/ftoastr: Depend on snprintf; this improves portability.
10433         Suggested by Bruno Haible in the same email.
10434
10435         ftoastr: port to hosts lacking strtof and strtold
10436         Problem reported by Bruno Haible in
10437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10438         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10439         environment and strtold (and presumably strtof) are not available.
10440         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10441         (configure.ac): Require gl_C99_STRTOLD.
10442
10443 2010-11-18  Bruno Haible  <bruno@clisp.org>
10444
10445         c-strtold: Avoid link error on AIX 7.
10446         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10447         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10448         (gl_C_STRTOLD): Test whether strtold_l exists.
10449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10450
10451 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10452
10453         intprops: new macro INT_BITS_STRLEN_BOUND
10454         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10455         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10456         not exposed.  Also, it uses a slightly tighter bound than before;
10457         though this makes no practical difference, we might as well be as
10458         tight as we easily can.
10459
10460         ftoastr: new module, for lossless conversion of floats to short strings
10461         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10462         * modules/ftoastr: New files.
10463
10464 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         bootstrap: port to Solaris sed
10467         * build-aux/bootstrap (get_version): Port to Solaris sed.
10468         See Ralf Wildenhues's note in
10469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10470
10471 2010-11-14  Jim Meyering  <meyering@redhat.com>
10472
10473         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10474         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10475         and move definition closer to sole use.
10476
10477 2010-11-13  Jim Meyering  <meyering@redhat.com>
10478
10479         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10480         Now we require at least autoconf-2.59, which means the work-around
10481         is no longer needed.
10482         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10483         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10484         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10485         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10486         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10487
10488 2010-11-13  Bruno Haible  <bruno@clisp.org>
10489
10490         rename, renameat: Avoid test failures at NFS mounted locations.
10491         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10492         functions.
10493         (test_rename): Use assert_nonexistent.
10494         * tests/test-rename.c: Include <dirent.h>.
10495         * tests/test-renameat.c: Likewise.
10496         Reported by Gary V. Vaughan <gary@gnu.org>.
10497
10498         rename, renameat: Document Linux bug with NFS
10499         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10500         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10501         * doc/posix-functions/renameat.texi: Likewise.
10502         Suggested by Eric Blake.
10503
10504 2010-11-13  Bruno Haible  <bruno@clisp.org>
10505
10506         rename test: Add comments.
10507         * tests/test-rename.h (test_rename): Add structure and comments.
10508
10509 2010-11-13  Eric Blake  <eblake@redhat.com>
10510
10511         maintainer-makefile: cover a few more files
10512         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10513         scripts generated within C files, for libvirt.
10514
10515 2010-11-13  Bruno Haible  <bruno@clisp.org>
10516
10517         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10518         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10519         character, return the number of bytes that belong together, not always
10520         1.
10521         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10522         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10523         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10524         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10525         number of bytes of an invalid character.
10526         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10527         (main): Invoke it.
10528         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10529         results.
10530         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10531         malformed byte sequences.
10532         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10533         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10534         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10535         Reported by Ben Pfaff and Paolo Bonzini.
10536
10537 2010-11-13  Bruno Haible  <bruno@clisp.org>
10538
10539         openat: Work around glibc bug with fchownat() and empty file names.
10540         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10541         (gl_FUNC_FCHOWNAT): Invoke it.
10542         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10543         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10544         Reported by Gary V. Vaughan <gary@gnu.org>.
10545
10546 2010-11-13  Bruno Haible  <bruno@clisp.org>
10547
10548         openat: Ensure autoconf macro ordering.
10549         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10550         gl_USE_SYSTEM_EXTENSIONS.
10551         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10552
10553 2010-11-13  Bruno Haible  <bruno@clisp.org>
10554
10555         Update comments.
10556         * lib/unistr/u8-check.c: Update file name in comments.
10557         * lib/unistr/u8-mblen.c: Likewise.
10558         * lib/unistr/u8-prev.c: Likewise.
10559         * lib/unistr/u8-strmblen.c: Likewise.
10560         * lib/unistr/u8-strmbtouc.c: Likewise.
10561
10562 2010-11-13  Jim Meyering  <meyering@redhat.com>
10563
10564         tests: avoid test failure on Solaris 10 due to lack of PATH export
10565         * tests/test-update-copyright.sh: Don't forget to export PATH.
10566
10567         init.sh: ensure that IFS is defined, just in case...
10568         * tests/init.sh (setup_): Ensure that IFS is defined,
10569         so that saving and restoring it works as expected.  This
10570         appears to be useful at least for an old version of dash
10571         from a long time ago (RH 6).  See here for details:
10572         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10573
10574         maint.mk: tighten "test a == b" check
10575         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10576         test to files that contain something like #!/bin/sh.
10577         Without this, coreutils would get two false positives in
10578         the comments of C source files.
10579
10580 2010-11-12  Eric Blake  <eblake@redhat.com>
10581
10582         bootstrap: fix typo in previous attempt
10583         * build-aux/bootstrap (buildreq): Correct the grouping.
10584         Reported by Paul Eggert.
10585
10586         maintainer-makefile: prohibit test x == x
10587         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10588         Based on a report by Matthias Bolte.
10589
10590         bootstrap: allow FreeBSD gzip
10591         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10592         which has no '.' and goes to stderr.
10593         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10594         Reported by Matthias Bolte.
10595
10596         maintainer-makefile: check for i18n setup
10597         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10598         will likely work.
10599
10600 2010-11-12  Bruno Haible  <bruno@clisp.org>
10601
10602         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10603         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10604         * lib/nanosleep.c (nanosleep): Likewise.
10605
10606 2010-11-11  Bruno Haible  <bruno@clisp.org>
10607
10608         fcntl-h: Fix for use of C++ on glibc systems.
10609         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10610         also on glibc systems in C++ mode.
10611         Reported by Gary V. Vaughan <gary@gnu.org>.
10612
10613 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10614
10615         mknod: avoid false failure with dash
10616         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10617
10618 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10619
10620         unlink: Fix "is it should" typo in diagnostic.
10621         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10622         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10623
10624 2010-11-11  Bruno Haible  <bruno@clisp.org>
10625
10626         Tests for module 'strerror_r-posix'.
10627         * modules/strerror_r-posix-tests: New file.
10628         * tests/test-strerror_r.c: New file.
10629         * tests/test-string-c++.cc: Check the signature of strerror_r.
10630
10631         New module 'strerror_r-posix'.
10632         * lib/string.in.h (strerror_r): New declaration.
10633         * lib/strerror_r.c: New file.
10634         * m4/strerror_r.m4: New file.
10635         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10636         of strerror_r.
10637         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10638         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10639         * modules/strerror_r-posix: New file.
10640         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10641         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10642         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10643         portability problems.
10644
10645 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10646
10647         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10648         line is also considered for output. Quoted function name in shell
10649         command, so temporary files for functions like MyClass::operator()
10650         are removed correctly without errors.
10651
10652 2010-11-09  Bruno Haible  <bruno@clisp.org>
10653
10654         * doc/posix-functions/strerror.texi: List more failing platforms.
10655
10656         * doc/posix-functions/strerror.texi: Add a comment.
10657
10658 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         fdopendir: fix bug on MacOS X when low on file descriptors
10661
10662         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10663         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10664         All callers changed.
10665         (fdopendir): Invoke save_cwd at the top level, not after using
10666         multiple dup() calls to use up file descriptors.  Then retry
10667         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10668         less than the maximum number of open file descriptors, because
10669         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10670         on Mac OS X 10.6.4 for tar 1.24
10671         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10672         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10673         and for tar 1.25
10674         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10675
10676 2010-11-07  Bruno Haible  <bruno@clisp.org>
10677
10678         vasnprintf: Support I flag on glibc systems.
10679         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10680         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10681         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10682         snprintf function.
10683         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10684         glibc systems.
10685         * tests/test-vasnprintf-posix3.c: New file.
10686         * modules/vasnprintf-posix-tests (Files): Add it.
10687         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10688
10689 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10690
10691         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10692         * MODULES.html.sh: For compiler warnings, use name
10693         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10694
10695 2010-11-05  Eric Blake  <eblake@redhat.com>
10696
10697         ceil, floor: avoid spurious failure with icc
10698         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10699         [denormals-as-zero] when optimizing without -mieee-fp option.
10700         * tests/test-floorf2.c (floorf_reference): Likewise.
10701         * tests/test-ceilf1.c (dummy): New function.
10702         (main): Use it to outsmart icc's optimization.
10703         * tests/test-floorf1.c (dummy, main): Likewise.
10704
10705         tests: require working signbit
10706         * modules/ceilf-tests (Depends-on): Add signbit.
10707         * modules/ceill-tests (Depends-on): Likewise.
10708         * modules/floorf-tests (Depends-on): Likewise.
10709         * modules/floorl-tests (Depends-on): Likewise.
10710         * modules/round-tests (Depends-on): Likewise.
10711         * modules/roundf-tests (Depends-on): Likewise.
10712         * modules/roundl-tests (Depends-on): Likewise.
10713         * modules/trunc-tests (Depends-on): Likewise.
10714         * modules/truncf-tests (Depends-on): Likewise.
10715         * modules/truncl-tests (Depends-on): Likewise.
10716
10717         strtod: work around icc bug
10718         * lib/strtod.c (minus_zero): Define to working value.
10719         (strtod): Use it to avoid icc bug.
10720
10721         copysign: enhance tests
10722         * modules/copysign-tests (Files): Add minus-zero.h.
10723         * tests/test-copysign.c (main): Also test zeros.
10724
10725 2010-11-04  Eric Blake  <eblake@redhat.com>
10726
10727         ceil, floor, round, trunc: enhance tests of -0
10728         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10729         * tests/test-ceill.c (main): Likewise.
10730         * tests/test-floorf1.c (main): Likewise.
10731         * tests/test-floorl.c (main): Likewise.
10732         * tests/test-round1.c (main): Likewise.
10733         * tests/test-roundf1.c (main): Likewise.
10734         * tests/test-roundl.c (main): Likewise.
10735         * tests/test-trunc1.c (main): Likewise.
10736         * tests/test-truncf1.c (main): Likewise.
10737         * tests/test-truncl.c (main): Likewise.
10738
10739 2010-11-04  Eric Blake  <eblake@redhat.com>
10740
10741         frexp, tests: work around ICC bug with -zero
10742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10743         works with more compilers.
10744         * tests/minus-zero.h: New file.
10745         * modules/ceilf-tests (Files): Include it.
10746         * modules/ceill-tests (Files): Likewise.
10747         * modules/floorf-tests (Files): Likewise.
10748         * modules/floorl-tests (Files): Likewise.
10749         * modules/frexp-nolibm-tests (Files): Likewise.
10750         * modules/frexp-tests (Files): Likewise.
10751         * modules/frexpl-nolibm-tests (Files): Likewise.
10752         * modules/frexpl-tests (Files): Likewise.
10753         * modules/isnan-tests (Files): Likewise.
10754         * modules/isnand-nolibm-tests (Files): Likewise.
10755         * modules/isnand-tests (Files): Likewise.
10756         * modules/isnanf-nolibm-tests (Files): Likewise.
10757         * modules/isnanf-tests (Files): Likewise.
10758         * modules/isnanl-nolibm-tests (Files): Likewise.
10759         * modules/isnanl-tests (Files): Likewise.
10760         * modules/round-tests (Files): Likewise.
10761         * modules/roundf-tests (Files): Likewise.
10762         * modules/roundl-tests (Files): Likewise.
10763         * modules/ldexpl-tests (Files): Likewise.
10764         * modules/signbit-tests (Files): Likewise.
10765         * modules/snprintf-posix-tests (Files): Likewise.
10766         * modules/sprintf-posix-tests (Files): Likewise.
10767         * modules/strtod-tests (Files): Likewise.
10768         * modules/trunc-tests (Files): Likewise.
10769         * modules/truncf-tests (Files): Likewise.
10770         * modules/truncl-tests (Files): Likewise.
10771         * modules/vsnprintf-posix-tests (Files): Likewise.
10772         * modules/vsprintf-posix-tests (Files): Likewise.
10773         * modules/vasnprintf-posix-tests (Files): Likewise.
10774         * modules/vasprintf-posix-tests (Files): Likewise.
10775         * tests/test-ceilf1.c (main): Use it.
10776         * tests/test-ceill.c (main): Likewise.
10777         * tests/test-floorf1.c (main): Likewise.
10778         * tests/test-floorl.c (main): Likewise.
10779         * tests/test-frexp.c (main): Likewise.
10780         * tests/test-frexpl.c (main): Likewise.
10781         * tests/test-isnan.c (main): Likewise.
10782         * tests/test-isnand.h (main): Likewise.
10783         * tests/test-isnanf.h (main): Likewise.
10784         * tests/test-isnanl.h (main): Likewise.
10785         * tests/test-ldexpl.c (main): Likewise.
10786         * tests/test-round.c (main): Likewise.
10787         * tests/test-roundf.c (main): Likewise.
10788         * tests/test-roundl.c (main): Likewise.
10789         * tests/test-signbit.c (test_signbitf, test_signbitd)
10790         (test_signbitl): Likewise.
10791         * tests/test-snprintf-posix.h (test_function): Likewise.
10792         * tests/test-sprintf-posix.h (test_function): Likewise.
10793         * tests/test-strtod.c (main): Likewise.
10794         * tests/test-trunc1.c (main): Likewise.
10795         * tests/test-truncf1.c (main): Likewise.
10796         * tests/test-truncl.c (main): Likewise.
10797
10798         isnanl: work around icc bug
10799         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10800
10801 2010-11-03  Eric Blake  <eblake@redhat.com>
10802
10803         tests: fix compiler warnings
10804         * tests/test-getopt.h (test_getopt): Fix condition.
10805         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10806         * tests/test-pipe2.c (main): Likewise.
10807         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10808
10809         utimens: fix broken m4 test
10810         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10811
10812 2010-10-28  Bruno Haible  <bruno@clisp.org>
10813
10814         posix_spawn*, getdtablesize: Relax license.
10815         * modules/posix_spawn (License): Change to LGPLv2+.
10816         * modules/posix_spawnp (License): Likewise.
10817         * modules/posix_spawn-internal (License): Likewise.
10818         * modules/posix_spawnattr_init (License): Likewise.
10819         * modules/posix_spawnattr_getflags (License): Likewise.
10820         * modules/posix_spawnattr_setflags (License): Likewise.
10821         * modules/posix_spawnattr_getpgroup (License): Likewise.
10822         * modules/posix_spawnattr_setpgroup (License): Likewise.
10823         * modules/posix_spawnattr_getschedparam (License): Likewise.
10824         * modules/posix_spawnattr_setschedparam (License): Likewise.
10825         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10826         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10827         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10828         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10829         * modules/posix_spawnattr_getsigmask (License): Likewise.
10830         * modules/posix_spawnattr_setsigmask (License): Likewise.
10831         * modules/posix_spawnattr_destroy (License): Likewise.
10832         * modules/posix_spawn_file_actions_init (License): Likewise.
10833         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10834         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10835         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10836         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10837         * modules/getdtablesize (License): Likewise.
10838         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10839
10840 2010-10-26  Bruno Haible  <bruno@clisp.org>
10841
10842         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10843         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10844         Cygwin and mingw.
10845         Suggested by Eric Blake.
10846
10847 2010-10-26  Bruno Haible  <bruno@clisp.org>
10848
10849         stdio: Work around compilation error due to renameat() on Solaris 10.
10850         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10851         * lib/renameat.c: Don't include <unistd.h> here.
10852         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10853         Reported by Paul Eggert and Eric Blake.
10854
10855 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10856
10857         renameat: port to Solaris 10, which declares renameat in unistd.h
10858
10859         * lib/renameat.c: Include unistd.h before stdio.h, because
10860         Solaris 10 declares renameat in unistd.h.  Problem encountered
10861         when building GNU tar 1.24 on Solaris 10.
10862
10863 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10864
10865         fdopendir: fix C89 compilation
10866         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10867         compilers.
10868
10869 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10870
10871         inttostr: simplify by removing unnecessary redundancy
10872         * lib/anytostr.c: Don't include verify.h.
10873         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10874         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10875         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10876         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10877         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10878         Likewise.
10879         * modules/inttostr (Depends-on): Remove 'verify'.
10880
10881 2010-10-23  Bruno Haible  <bruno@clisp.org>
10882
10883         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10884         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10885         Reported by Eric Blake.
10886
10887 2010-10-23  Bruno Haible  <bruno@clisp.org>
10888
10889         Tests: Fix LOCALE_JA on MirBSD 10.
10890         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10891         to an UTF-8 locale.
10892         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10894         Reported by Eric Blake.
10895
10896 2010-10-21  Bruno Haible  <bruno@clisp.org>
10897
10898         nl_langinfo test: Avoid test failure on NetBSD 5.
10899         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10900         Reported by Eric Blake.
10901
10902 2010-10-21  Eric Blake  <eblake@redhat.com>
10903
10904         c-stack: work around libsigsegv 2.8 bug
10905         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10906         overflow on at least PowerPC64.
10907
10908 2010-10-17  Bruno Haible  <bruno@clisp.org>
10909
10910         userspec: Drop redundant file.
10911         * modules/userspec (Files): Remove lib/inttostr.h.
10912
10913 2010-10-17  Bruno Haible  <bruno@clisp.org>
10914
10915         nl_langinfo tests: Silence some warnings.
10916         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10917         Reported by Jim Meyering.
10918
10919 2010-10-17  Bruno Haible  <bruno@clisp.org>
10920
10921         Make use of GCC's attribute __alloc_size__.
10922         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10923         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10924         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10925         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10926         __alloc_size__.
10927         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10928         Suggested by Jim Meyering.
10929
10930 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10931
10932         bootstrap: anchor .gitignore entries.
10933         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10934         with...
10935         (insert_vc_ignore): ... this new function, which prepends `/' to
10936         all .gitignore entries before passing them to
10937         insert_sorted_if_absent.
10938
10939 2010-10-16  Bruno Haible  <bruno@clisp.org>
10940
10941         nextafter: Fix configure check.
10942         * modules/nextafter (configure.ac): Correct expected prototype.
10943
10944 2010-10-16  Bruno Haible  <bruno@clisp.org>
10945
10946         termios: Update documentation.
10947         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10948
10949 2010-10-16  Bruno Haible  <bruno@clisp.org>
10950
10951         tests: Make them compile with TinyCC.
10952         * tests/test-strstr.c (main): Remove parentheses around array
10953         initializer.
10954
10955 2010-10-15  Eric Blake  <eblake@redhat.com>
10956
10957         ignore-value: make header idempotent
10958         * lib/ignore-value.h: Add double-inclusion guards.
10959         Reported by Stefan Berger.
10960
10961 2010-10-15  Jim Meyering  <meyering@redhat.com>
10962
10963         GNUmakefile: handle "stable" target, not "major"
10964         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10965         lists in maint.mk and announce-gen.  Without this, "make stable"
10966         would fail to ensure that $(VERSION) is up to date.
10967
10968 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10969
10970         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10971         & co.
10972
10973 2010-10-14  Bruno Haible  <bruno@clisp.org>
10974
10975         vasnprintf: Don't set errno to 0.
10976         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10977         block that sets it to 0.
10978         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10979
10980 2010-10-14  Bruno Haible  <bruno@clisp.org>
10981
10982         socketlib: Fix.
10983         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10984         gl_PREREQ_SYS_H_WINSOCK2.
10985         Reported by Ian Beckwith <ianb@erislabs.net>.
10986
10987 2010-10-13  Jim Meyering  <meyering@redhat.com>
10988
10989         test-select-stdin.c: avoid warn_unused_result warnings
10990         * tests/test-select-stdin.c: Include "macros.h".
10991         ASSERT that read and fflush succeed.
10992
10993 2010-10-13  Jim Meyering  <meyering@redhat.com>
10994
10995         git-version-gen: do require git-VC'd files in cwd
10996         * build-aux/git-version-gen: Reject a git version string
10997         if there are no commits associated with the current directory.
10998         This avoids an unlikely false-positive (unrelated dir whose parent
10999         repository also contains a tag matching v*), as pointed out
11000         by Giuseppe Scrivano in
11001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11002
11003 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11004
11005         argv-iter: omit nonconforming declaration
11006         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11007         enum arg_iter_err declaration, which doesn't conform to C99.
11008         Solaris 10 cc warns about this.
11009
11010 2010-10-13  Eric Blake  <eblake@redhat.com>
11011
11012         termios: fix compilation on mingw
11013         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11014         (gl_TERMIOS_H): Adjust it on mingw.
11015         * modules/termios (Makefile.am): Substitute new key.
11016         * lib/termios.in.h (includes): Make include_next conditional.
11017         * doc/posix-headers/termios.texi (termios.h): Update
11018         documentation.
11019         Reported by Daniel P. Berrange.
11020
11021 2010-10-13  Jim Meyering  <meyering@redhat.com>
11022
11023         git-version-gen: don't require that .git/ be in the current dir
11024         * build-aux/git-version-gen: Adjust this script so that it works
11025         when run from any working directory beneath the top-level .git/-
11026         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11027         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11028
11029         test-select: avoid warn_unused_result warnings
11030         * tests/test-select.c: Include "macros.h".
11031         ASSERT that each call to read, write, and pipe succeeds.
11032         While not technically required, also check each "close".
11033         * modules/select-tests (Files): Add tests/macros.h.
11034
11035         test-symlinkat: remove declaration of unused local
11036         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11037
11038         test-inttostr: avoid shadowing warnings
11039         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11040         and use malloc rather than the stack for the same reason as
11041         mentioned in the comment justifying the other allocation.
11042
11043 2010-10-11  Bruno Haible  <bruno@clisp.org>
11044
11045         stdlib: Allow multiple gnulib generated replacements to coexist.
11046         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11047         Reported by Sam Steingold <sds@gnu.org>.
11048
11049 2010-10-11  Jim Meyering  <meyering@redhat.com>
11050
11051         fix a documentation typo
11052         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11053
11054 2010-10-11  Eric Blake  <eblake@redhat.com>
11055
11056         futimens: work around Solaris 11 bug
11057         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11058         * tests/test-futimens.h (test_futimens): Enhance, rather than
11059         weaken test.
11060         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11061
11062 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         Indentation.
11065         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11066         higher-level operators more to the left.
11067
11068 2010-10-11  Jim Meyering  <meyering@redhat.com>
11069
11070         test-futimens: avoid unwarranted test failure on Solaris 5.11
11071         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11072         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11073         because it tries to dereference the NULL name argument.
11074
11075 2010-10-11  Bruno Haible  <bruno@clisp.org>
11076
11077         Indentation.
11078         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11079         indentation.
11080
11081 2010-10-11  Jim Meyering  <meyering@redhat.com>
11082
11083         spawn.in.h: make indentation consistent with parentheses
11084         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11085         Make indentation consistent with parentheses.
11086
11087 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11088
11089         Fix mismatched parens in previous commit
11090         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11091         parens.
11092
11093 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11094
11095         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11096
11097         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11098         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11099         * lib/malloca.c: Include "verify.h".
11100         (verify1): Remove, replacing with a verify call.
11101         * lib/relocwrapper.c (verify1): Likewise.
11102         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11103         Likewise.
11104         * modules/malloca (Depends-on): Add 'verify'.
11105         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11106         * modules/vasnprintf (Depends-on): Add 'verify'.
11107         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11108         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11109         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11110         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11112         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11113         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11114
11115         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11116
11117         Formerly the style was sometimes 2*X - 1, because the C standard
11118         was wrongly thought to disallow ?: in integral constant expressions.
11119         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11120         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11121         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11122         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11123         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11124         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11125         verify that time_t cannot be floating.
11126
11127 2010-10-08  Eric Blake  <eblake@redhat.com>
11128
11129         time: enforce recent POSIX ruling that time_t is integral
11130         * lib/time.in.h (__time_t_must_be_integral): Detect any
11131         problematic systems, allowing the rest of gnulib to assume POSIX.
11132
11133 2010-10-08  Jim Meyering  <meyering@redhat.com>
11134
11135         fdopendir: fix a bug on systems lacking openat and /proc support
11136         OpenBSD 4.7 is one such system.  The most noticeable effect was
11137         failure of any application making nontrivial use of fts: rm, du,
11138         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11139           ./rm: traversal failed: `a': Bad file descriptor
11140         Debugging that, you see that even though FD 6 was closed just
11141         prior to the opendir call in fd_clone_opendir, its resulting
11142         dir->dd_fd was 8, rather than the expected value of 6:
11143
11144         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11145         93                close (fd);
11146         (gdb) n
11147         94                dir = fd_clone_opendir (dupfd);
11148         (gdb) n
11149         95                saved_errno = errno;
11150         (gdb) p dir->dd_fd
11151         $11 = 8
11152
11153         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11154         The problem is that on OpenBSD, fd_clone_opendir has to resort
11155         to using the old-style save/restore CWD mechanism, due to its
11156         lack of openat/proc support, and *that* would steal the FD (6)
11157         that opendir was supposed to use.
11158
11159         The fix is to squirrel away the desired FD so that save_cwd uses a
11160         different one, and then free the dest FD right before calling opendir.
11161         That guarantees opendir will use the required file descriptor.
11162
11163         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11164
11165 2010-10-08  Bruno Haible  <bruno@clisp.org>
11166
11167         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11168         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11169
11170 2010-10-08  Bruno Haible  <bruno@clisp.org>
11171
11172         nanosleep: Make replacement POSIX compliant.
11173         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11174         is out of range.
11175         Reported by Jim Meyering.
11176
11177 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         bootstrap: add hook for altering gnulib.mk, for Bison
11180         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11181         the Bison bootstrapping process can rewrite file names and variables
11182         in this file before later parts of 'bootstrap' use the file.
11183         Bison wants to include lib/gnulib.mk from the top-level makefile,
11184         so it needs the file names in this file to be relative to the top
11185         level, not relative to lib; plus it needs variable names to be
11186         rewritten.
11187         (slurp): Use the new function.
11188
11189         bootstrap: reformat for readability
11190         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11191
11192 2010-10-08  Eric Blake  <eblake@redhat.com>
11193
11194         docs: update cygwin progress
11195         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11196         1.7.7.
11197         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11198         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11199         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11200         * doc/posix-functions/carg.texi (carg): Likewise.
11201         * doc/posix-functions/cargf.texi (cargf): Likewise.
11202         * doc/posix-functions/casin.texi (casin): Likewise.
11203         * doc/posix-functions/casinf.texi (casinf): Likewise.
11204         * doc/posix-functions/casinh.texi (casinh): Likewise.
11205         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11206         * doc/posix-functions/catan.texi (catan): Likewise.
11207         * doc/posix-functions/catanf.texi (catanf): Likewise.
11208         * doc/posix-functions/catanh.texi (catanh): Likewise.
11209         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11210         * doc/posix-functions/ccos.texi (ccos): Likewise.
11211         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11212         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11213         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11214         * doc/posix-functions/cexp.texi (cexp): Likewise.
11215         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11216         * doc/posix-functions/cimag.texi (cimag): Likewise.
11217         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11218         * doc/posix-functions/clog.texi (clog): Likewise.
11219         * doc/posix-functions/clogf.texi (clogf): Likewise.
11220         * doc/posix-functions/conj.texi (conj): Likewise.
11221         * doc/posix-functions/conjf.texi (conjf): Likewise.
11222         * doc/posix-functions/cpow.texi (cpow): Likewise.
11223         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11224         * doc/posix-functions/cproj.texi (cproj): Likewise.
11225         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11226         * doc/posix-functions/creal.texi (creal): Likewise.
11227         * doc/posix-functions/crealf.texi (crealf): Likewise.
11228         * doc/posix-functions/csin.texi (csin): Likewise.
11229         * doc/posix-functions/csinf.texi (csinf): Likewise.
11230         * doc/posix-functions/csinh.texi (csinh): Likewise.
11231         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11232         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11233         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11234         * doc/posix-functions/ctan.texi (ctan): Likewise.
11235         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11236         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11237         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11238         * doc/posix-headers/complex.texi (complex.h): Likewise.
11239
11240 2010-10-07  Jim Meyering  <meyering@redhat.com>
11241
11242         parse-datetime: avoid compilation failure on OpenBSD 4.7
11243         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11244         This works around a compilation failure on OpenBSD 4.7:
11245         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11246
11247 2010-10-07  Eric Blake  <eblake@redhat.com>
11248
11249         docs: update cygwin progress
11250         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11251         1.7.6.
11252         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11253         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11254         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11255         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11256         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11257         Likewise.
11258         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11259         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11260         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11261         Likewise.
11262         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11263         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11264         Likewise.
11265         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11266         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11267         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11268         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11269         Likewise.
11270         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11271         Likewise.
11272         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11273
11274         docs: update parse-datetime history
11275         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11276         documentation of this function's history and alternatives.
11277
11278         cygwin: use more robust version check
11279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11280         exclude an eventual cygwin 1.9.1.
11281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11283         (gl_FUNC_STRCASESTR): Likewise.
11284         Reported by Bruno Haible.
11285
11286 2010-10-06  Bruno Haible  <bruno@clisp.org>
11287
11288         string, sys_select: Avoid #including large headers unless necessary.
11289         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11290         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11291         OSF/1, BeOS, Haiku.
11292         Reported by Jim Meyering.
11293
11294 2010-10-05  Eric Blake  <eblake@redhat.com>
11295
11296         memmem, strstr, strcasestr: fix bug with long periodic needle
11297         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11298         periodic needle having false positive.
11299         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11300         and cygwin 1.7.7.
11301         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11303         (gl_FUNC_STRCASESTR): Likewise.
11304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11305         * tests/test-memmem.c (main): Expose the bug.
11306         * tests/test-strcasestr.c (main): Likewise.
11307         * tests/test-strstr.c (main): Likewise.
11308         * tests/test-c-strcasestr.c (main): Likewise.
11309         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11310         * doc/posix-functions/strstr.texi (strstr): Likewise.
11311         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11312         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11313
11314 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11315
11316         parse-datetime: do some more renaming
11317         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11318         parse_datetime, not get_date.  Mention the renaming.
11319         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11320         in comments.
11321         * m4/bison.m4: Likewise.
11322
11323 2010-10-05  Eric Blake  <eblake@redhat.com>
11324
11325         parse-datetime: better name than get_date
11326         * NEWS: Reword the deprecation notice.
11327         * modules/get_date: Rename to modules/parse-datetime.
11328         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11329         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11330         * lib/get_date.y: Rename to lib/parse-datetime.y.
11331         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11332         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11333         * doc/getdate.texi: Provide fallback wrapper.
11334         * lib/getdate.h: Move guts, and wrap...
11335         * lib/parse-datetime.h: ...new file.
11336         * lib/parse-datetime.y (get_date): Rename...
11337         (parse_datetime): ...to this.
11338         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11339         (gl_PARSE_DATETIME): ...to this.
11340         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11341         documentation.
11342         * modules/getdate (Files): Provide fallback docs and header.
11343         (Notice, Depends-on): Update references.
11344         * tests/test-parse-datetime.c: Likewise.
11345         * DEPENDENCIES: Likewise.
11346         * MODULES.html.sh (Date and time <time.h>): Likewise.
11347         * doc/parse-datetime.texi (Date input formats)
11348         (Authors of parse_datetime): Likewise.
11349         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11350         (Include): Likewise.
11351         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11352         * gnulib-tool: Likewise.
11353         * m4/bison.m4 (gl_BISON): Likewise.
11354         Suggested by Bruno Haible.
11355
11356 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         more ports to Solaris tr, which needs [] around ranges
11359         * gnulib-tool: Solaris tr needs [] around ranges.
11360         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11361         * tests/test-pipe-filter-gi1.c (main): Likewise.
11362         * tests/test-pipe-filter-ii1.c (main): Likewise.
11363
11364 2010-10-05  Eric Blake  <eblake@redhat.com>
11365
11366         bootstrap: fix Solaris regression
11367         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11368         around ranges.
11369         Reported by Pádraig Brady.
11370
11371         bootstrap: work with pkg-config
11372         * build-aux/bootstrap (check_versions): Also transliterate - in
11373         prerequisite name.
11374         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11375         prerequisites that were already found, to avoid confusion.
11376         Reported by Justin Clift.
11377
11378         faccessat: remove unused wrappers
11379         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11380         presence of these wrappers dragged in -lgen on Solaris.
11381         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11382
11383 2010-10-05  Jim Meyering  <meyering@redhat.com>
11384
11385         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11386         * Makefile (sc_pragma_columns): New syntax-check rule.
11387
11388 2010-10-04  Bruno Haible  <bruno@clisp.org>
11389
11390         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11391         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11392         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11393         Reported by Bruce Korb and Eric Blake.
11394
11395 2010-10-04  Bruno Haible  <bruno@clisp.org>
11396
11397         threadlib: Make option --with-libpth-prefix work.
11398         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11399         use $LIBPTH, not just -lpth.
11400
11401 2010-10-04  Bruno Haible  <bruno@clisp.org>
11402
11403         Avoid line length limitation from HP NonStop system header files.
11404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11405         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11406         * lib/ctype.in.h: Likewise.
11407         * lib/dirent.in.h: Likewise.
11408         * lib/errno.in.h: Likewise.
11409         * lib/fcntl.in.h: Likewise.
11410         * lib/float.in.h: Likewise.
11411         * lib/getopt.in.h: Likewise.
11412         * lib/iconv.in.h: Likewise.
11413         * lib/inttypes.in.h: Likewise.
11414         * lib/langinfo.in.h: Likewise.
11415         * lib/locale.in.h: Likewise.
11416         * lib/math.in.h: Likewise.
11417         * lib/netdb.in.h: Likewise.
11418         * lib/netinet_in.in.h: Likewise.
11419         * lib/poll.in.h: Likewise.
11420         * lib/pthread.in.h: Likewise.
11421         * lib/pty.in.h: Likewise.
11422         * lib/sched.in.h: Likewise.
11423         * lib/se-selinux.in.h: Likewise.
11424         * lib/search.in.h: Likewise.
11425         * lib/signal.in.h: Likewise.
11426         * lib/spawn.in.h: Likewise.
11427         * lib/stdarg.in.h: Likewise.
11428         * lib/stddef.in.h: Likewise.
11429         * lib/stdint.in.h: Likewise.
11430         * lib/stdio.in.h: Likewise.
11431         * lib/stdlib.in.h: Likewise.
11432         * lib/string.in.h: Likewise.
11433         * lib/strings.in.h: Likewise.
11434         * lib/sys_file.in.h: Likewise.
11435         * lib/sys_ioctl.in.h: Likewise.
11436         * lib/sys_select.in.h: Likewise.
11437         * lib/sys_socket.in.h: Likewise.
11438         * lib/sys_stat.in.h: Likewise.
11439         * lib/sys_time.in.h: Likewise.
11440         * lib/sys_times.in.h: Likewise.
11441         * lib/sys_utsname.in.h: Likewise.
11442         * lib/sys_wait.in.h: Likewise.
11443         * lib/sysexits.in.h: Likewise.
11444         * lib/termios.in.h: Likewise.
11445         * lib/time.in.h: Likewise.
11446         * lib/unistd.in.h: Likewise.
11447         * lib/wchar.in.h: Likewise.
11448         * lib/wctype.in.h: Likewise.
11449         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11450         * modules/ctype (Makefile.am): Likewise.
11451         * modules/dirent (Makefile.am): Likewise.
11452         * modules/errno (Makefile.am): Likewise.
11453         * modules/fcntl-h (Makefile.am): Likewise.
11454         * modules/float (Makefile.am): Likewise.
11455         * modules/getopt-posix (Makefile.am): Likewise.
11456         * modules/iconv-h (Makefile.am): Likewise.
11457         * modules/inttypes (Makefile.am): Likewise.
11458         * modules/langinfo (Makefile.am): Likewise.
11459         * modules/locale (Makefile.am): Likewise.
11460         * modules/math (Makefile.am): Likewise.
11461         * modules/netdb (Makefile.am): Likewise.
11462         * modules/netinet_in (Makefile.am): Likewise.
11463         * modules/poll-h (Makefile.am): Likewise.
11464         * modules/pthread (Makefile.am): Likewise.
11465         * modules/pty (Makefile.am): Likewise.
11466         * modules/sched (Makefile.am): Likewise.
11467         * modules/search (Makefile.am): Likewise.
11468         * modules/selinux-h (Makefile.am): Likewise.
11469         * modules/signal (Makefile.am): Likewise.
11470         * modules/spawn (Makefile.am): Likewise.
11471         * modules/stdarg (Makefile.am): Likewise.
11472         * modules/stddef (Makefile.am): Likewise.
11473         * modules/stdint (Makefile.am): Likewise.
11474         * modules/stdio (Makefile.am): Likewise.
11475         * modules/stdlib (Makefile.am): Likewise.
11476         * modules/string (Makefile.am): Likewise.
11477         * modules/strings (Makefile.am): Likewise.
11478         * modules/sys_file (Makefile.am): Likewise.
11479         * modules/sys_ioctl (Makefile.am): Likewise.
11480         * modules/sys_select (Makefile.am): Likewise.
11481         * modules/sys_socket (Makefile.am): Likewise.
11482         * modules/sys_stat (Makefile.am): Likewise.
11483         * modules/sys_time (Makefile.am): Likewise.
11484         * modules/sys_times (Makefile.am): Likewise.
11485         * modules/sys_utsname (Makefile.am): Likewise.
11486         * modules/sys_wait (Makefile.am): Likewise.
11487         * modules/sysexits (Makefile.am): Likewise.
11488         * modules/termios (Makefile.am): Likewise.
11489         * modules/time (Makefile.am): Likewise.
11490         * modules/unistd (Makefile.am): Likewise.
11491         * modules/wchar (Makefile.am): Likewise.
11492         * modules/wctype (Makefile.am): Likewise.
11493
11494 2010-10-04  Bruno Haible  <bruno@clisp.org>
11495
11496         read-file tests: Avoid a test failure on NonStop Kernel.
11497         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11498         a regular file.
11499         Reported by Joachim Schmitz <schmitz@hp.com>.
11500
11501 2010-10-03  Bruno Haible  <bruno@clisp.org>
11502
11503         gnulib-tool: Fixes for --create-testdir with --libtool.
11504         * gnulib-tool (func_get_automake_snippet): Don't augment
11505         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11506         an executable.
11507         (func_create_testdir): Handle module 'alloca' like func_import.
11508         Reported by Bruce Korb <bruce.korb@gmail.com>.
11509
11510 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11511
11512         Avoid some lines longer than 80 characters.
11513         * lib/stdint.in.h: Break long comment lines.
11514         * lib/math.in.h: Likewise.
11515         (_GL_NUM_UINT_WORDS): New macro, for readability.
11516         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11517         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11518         * lib/stdlib.in.h: Likewise.
11519         * lib/spawn.in.h: Likewise.
11520         * lib/sys_socket.in.h: Update an URL.
11521         * lib/sys_stat.in.h: Break long line.
11522
11523 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11524
11525         Improve pmccabe2html.
11526         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11527         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11528         when the sources change. Remove the line in the HTML about "Used
11529         ranges" (which implied that there might be other unused ranges),
11530         rename "Resume" to "Summary" (easier to understand for more users).
11531         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11532         styles, and some unnecessary blank lines.
11533
11534 2010-10-03  Bruno Haible  <bruno@clisp.org>
11535             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11536
11537         acl: Add support for ACLs on NonStop Kernel.
11538         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11539         Check whether the function aclsort() exists.
11540         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11541         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11542         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11543         (acl_nontrivial [HAVE_ACLSORT]: New function.
11544         (file_has_acl): Implement for NonStop Kernel.
11545         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11546         (qset_acl): Implement for NonStop Kernel.
11547         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11548         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11549         (main): Implement for NonStop Kernel.
11550         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11551         Kernel. Handle this flavor.
11552         * tests/test-set-mode-acl.sh: Likewise.
11553         * tests/test-copy-acl.sh: Likewise.
11554         * tests/test-copy-file.sh: Likewise.
11555
11556 2010-10-03  Bruno Haible  <bruno@clisp.org>
11557
11558         Info about ACLs on NonStop Kernel.
11559         * doc/acl-resources.txt: Add info about NonStop Kernel.
11560         References by Joachim Schmitz <schmitz@hp.com>.
11561
11562 2010-10-02  Bruno Haible  <bruno@clisp.org>
11563
11564         Define missing EDQUOT on NonStop Kernel.
11565         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11566         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11567         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11568         missing.
11569         * doc/posix-headers/errno.texi: Mention the NSK bug.
11570         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11571         Reported by Joachim Schmitz <schmitz@hp.com>.
11572
11573 2010-10-02  Bruno Haible  <bruno@clisp.org>
11574
11575         Update doc for POSIX:2008.
11576         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11577         Update URL of POSIX specification.
11578
11579 2010-10-02  Bruno Haible  <bruno@clisp.org>
11580
11581         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11582         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11583         from gnulib, not from Automake.
11584
11585 2010-10-02  Bruno Haible  <bruno@clisp.org>
11586
11587         New module 'system-posix'.
11588         * modules/system-posix: New file.
11589         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11590         module is present.
11591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11592         GNULIB_SYSTEM_POSIX.
11593         * modules/stdlib (Depends-on): Remove sys_wait.
11594         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11595         * doc/posix-functions/system.texi: Mention the new module.
11596         * doc/posix-headers/stdlib.texi: Likewise.
11597         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11598         define test_sys_wait_macros to a no-op.
11599         Reported by Sam Steingold <sds@gnu.org>.
11600
11601 2010-09-30  Bruno Haible  <bruno@clisp.org>
11602
11603         More renaming from 'getdate' to 'get_date'.
11604         * doc/get_date.texi: Renamed from doc/getdate.texi.
11605         * modules/get_date (Files): Update.
11606         * MODULES.html.sh (Date and time <time.h>): Update.
11607         * DEPENDENCIES: Update.
11608         * gnulib-tool: Update comment.
11609         * m4/bison.m4 (gl_BISON): Likewise.
11610         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11611
11612 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11613
11614         bootstrap: support ACLOCAL_FLAGS during aclocal
11615         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11616         can add additional -I dir for third-party .m4 files.
11617
11618 2010-09-30  Eric Blake  <eblake@redhat.com>
11619
11620         bootstrap: use glibtoolize on MacOS
11621         * build-aux/bootstrap (check_versions): Convert libtool into
11622         libtoolize.
11623         (tool search): Move libtool check earlier, and look for
11624         glibtoolize for MacOS.
11625         (gnulib_tool_options): Auto-add --libtool when appropriate.
11626         Reported by Justin Clift.
11627
11628         poll: fix typo that broke test on MacOS
11629         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11630         Reported by Justin Clift.
11631
11632         getdate: rename to get_date
11633         Note: getdate.h is not renamed, to minimize client impact.
11634         * modules/getdate: Mark obsolete.  Move old contents...
11635         * modules/get_date: ...to new module name.
11636         * modules/getdate-tests: Move...
11637         * modules/get_date-tests: ...here.
11638         * m4/getdate.m4: Move...
11639         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11640         * lib/getdate.y: Move...
11641         * lib/get_date.y: ...here.
11642         * tests/test-getdate.c: Move...
11643         * tests/test-get_date.c: ...here.
11644         * doc/posix-functions/getdate.texi (getdate): Update name.
11645         * NEWS: Mention the change.
11646
11647 2010-09-29  Bruno Haible  <bruno@clisp.org>
11648
11649         Separate the module 'waitpid' from the module 'sys_wait'.
11650         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11651         present.
11652         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11653         gl_MODULE_INDICATOR_FOR_TESTS.
11654         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11655         * modules/sys_wait (Depends-on): Remove waitpid.
11656         (Makefile.am): Substitute GNULIB_WAITPID.
11657         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11658         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11659         signature only if the 'waitpid' module is present.
11660         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11661         * NEWS: Mention the change.
11662         * modules/grantpt (Depends-on): Add waitpid.
11663         * modules/wait-process (Depends-on): Likewise.
11664
11665 2010-09-29  Bruno Haible  <bruno@clisp.org>
11666
11667         More tests for module 'sys_wait'.
11668         * modules/sys_wait-c++-tests: New file.
11669         * tests/test-sys_wait-c++.cc: New file.
11670         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11671         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11672
11673 2010-09-29  Bruno Haible  <bruno@clisp.org>
11674
11675         New module 'waitpid'.
11676         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11677         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11678         Don't include <process.h>.
11679         (waitpid): Declare only, using modern idiom.
11680         * m4/waitpid.m4: New file.
11681         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11682         * modules/waitpid: New file.
11683         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11684         (Makefile.am): Update.
11685         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11686
11687 2010-09-28  Bruno Haible  <bruno@clisp.org>
11688
11689         poll: Assume ANSI C.
11690         * lib/poll.c (poll): Use an ANSI C declaration.
11691
11692 2010-09-28  Bruno Haible  <bruno@clisp.org>
11693
11694         poll-h: Create poll.h on all platforms.
11695         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11696         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11697         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11698         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11699         (gl_REPLACE_POLL_H): Don't set POLL_H.
11700         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11701         * modules/poll-h (Depends-on): Add include_next.
11702         (Makefile.am): Create poll.h unconditionally. Substitute also
11703         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11704
11705 2010-09-28  Bruno Haible  <bruno@clisp.org>
11706
11707         Tests for module 'poll-h'.
11708         * modules/poll-h-c++-tests: New file.
11709         * tests/test-poll-h-c++.cc: New file.
11710
11711         Tests for module 'poll-h'.
11712         * modules/poll-h-tests: New file.
11713         * tests/test-poll-h.c: New file.
11714
11715 2010-09-28  Bruno Haible  <bruno@clisp.org>
11716
11717         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11718         * modules/poll-h (Depends-on): Add 'extensions'.
11719
11720 2010-09-28  Bruno Haible  <bruno@clisp.org>
11721
11722         New module 'poll-h'.
11723         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11724         (poll): Use modern idiom.
11725         * modules/poll-h: New file.
11726         * modules/poll (Files): Remove lib/poll.in.h.
11727         (Depends-on): Add poll-h.
11728         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11729         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11730         * m4/poll_h.m4: New file.
11731         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11732         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11733         and invoke gl_REPLACE_POLL_H.
11734         * lib/poll.c: Use common idiom.
11735         * tests/test-poll.c: Likewise.
11736         * doc/posix-headers/poll.texi: Mention the poll-h module.
11737         Suggested by Eric Blake.
11738
11739 2010-09-26  Bruno Haible  <bruno@clisp.org>
11740
11741         sys_wait: Implement WSTOPSIG.
11742         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11743         Reported by Simon Josefsson.
11744
11745 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11746
11747         stdlib, sys_wait: Avoid compilation error on mingw.
11748         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11749
11750 2010-09-26  Bruno Haible  <bruno@clisp.org>
11751
11752         stdlib tests: Avoid code duplication.
11753         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11754         * modules/sys_wait-tests (Files): Likewise.
11755         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11756         * tests/test-stdlib.c: Include test-sys_wait.h.
11757         (main): Invoke test_sys_wait_macros.
11758         * tests/test-sys_wait.c: Include test-sys_wait.h.
11759         (main): Invoke test_sys_wait_macros.
11760
11761 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11762
11763         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11764         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11765         sure Windows sockets are working before calling getaddrinfo.
11766         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11767         * doc/gnulib.texi (Windows sockets): Fix typo.
11768
11769 2010-09-25  Bruno Haible  <bruno@clisp.org>
11770
11771         Tests for module 'regex-quote'.
11772         * modules/regex-quote-tests: New file.
11773         * tests/test-regex-quote.c: New file.
11774
11775         New module 'regex-quote'.
11776         * lib/regex-quote.h: New file.
11777         * lib/regex-quote.c: New file.
11778         * modules/regex-quote: New file.
11779         Suggested by Reuben Thomas <rrt@sc3d.org>.
11780
11781 2010-09-24  Bruno Haible  <bruno@clisp.org>
11782
11783         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11784         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11785
11786 2010-09-23  Bruno Haible  <bruno@clisp.org>
11787
11788         setenv: Relax license.
11789         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11790         Blake.
11791         Requested by Eric Blake.
11792
11793 2010-09-22  Bruno Haible  <bruno@clisp.org>
11794
11795         termios: Relax license.
11796         * modules/termios (License): Change to LGPLv2+.
11797         Requested by Eric Blake.
11798
11799 2010-09-22  Bruno Haible  <bruno@clisp.org>
11800
11801         threadlib: Allow the package to change the default to 'no'.
11802         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11803         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11804         Reported by Paul Eggert.
11805
11806 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11807             Bruno Haible  <bruno@clisp.org>
11808
11809         Fix endless loop in mbmemcasecoll.
11810         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11811         byte.
11812         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11813
11814 2010-09-22  Bruno Haible  <bruno@clisp.org>
11815
11816         Tests for module 'memcoll'.
11817         * modules/memcoll-tests: New file.
11818         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11819
11820         memcoll, xmemcoll: Clarify size vs. length.
11821         * modules/memcoll.c (memcoll0): Clarify specification.
11822         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11823         passed to collate_error.
11824
11825 2010-09-22  Bruno Haible  <bruno@clisp.org>
11826
11827         Tests for module 'memcasecmp'.
11828         * modules/memcasecmp-tests: New file.
11829         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11830
11831 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         * lib/pthread.in.h: Add split double-inclusion guard, and include
11834         system <pthread.h> if there is one.  Use @@-style as in other
11835         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11836         pthread.h doesn't.
11837         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11838         (pthread_mutexattr_settype, pthread_mutex_trylock):
11839         New static inline functions, if there's no system <pthread.h>.
11840         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11841         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11842         Approximate with mutexes if the system lacks spinlocks, as in
11843         MacOS.
11844         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11845         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11846         @@-style.  Check for spinlocks separately.
11847         (gl_PTHREAD_DEFAULTS): New macro.
11848         * modules/pthread: Redo to use a more typical style for in.h files.
11849
11850 2010-09-21  Eric Blake  <eblake@redhat.com>
11851
11852         net_if: enhance tests
11853         * tests/test-net_if.c (main): Move signature checks earlier.
11854         Print failures to stderr.
11855         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11856         Document the bug that we do not yet fix.
11857
11858 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11859
11860         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11861         about gnulib, not GSS.
11862
11863 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11864
11865         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11866         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11867         for Emacs.
11868         * build-aux/pmccabe2html: Make Makefile.am example code more
11869         cut-and-paste friendly.
11870
11871 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11872
11873         * tests/test-net_if.c: New file.
11874         * modules/net_if-tests: New file.
11875
11876 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11877
11878         pthread: add pthread_spin_destroy
11879         * lib/pthread.in.h (pthread_spin_destroy): New function.
11880
11881 2010-09-19  Bruno Haible  <bruno@clisp.org>
11882
11883         gnulib-tool: Fix --help output.
11884         * gnulib-tool (func_usage): Fix help message.
11885         Reported by Reuben Thomas <rrt@sc3d.org>.
11886
11887 2010-09-18  Jim Meyering  <meyering@redhat.com>
11888
11889         maint.mk: avoid unexpanded \n in two diagnostics
11890         * top/maint.mk (sc_prohibit_always_true_header_tests):
11891         Don't use a literal \n in a halt=... assignment.  It would not be
11892         expanded, and the two \n bytes would appear in the diagnostic output
11893         rather than the desired newline.  Use halt=$$(printf ... instead.
11894         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11895
11896 2010-09-18  Bruno Haible  <bruno@clisp.org>
11897
11898         netinet_in: Doc tweak.
11899         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11900         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11901
11902 2010-09-18  Jim Meyering  <meyering@redhat.com>
11903
11904         init.sh: correct an outdated comment
11905         * tests/init.sh (create_exe_shims_):  s/function/alias/
11906
11907         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11908         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11909         a file named "*.exe" is removed between the glob expansion and the
11910         processing of that oddly named file.
11911
11912 2010-09-17  Eric Blake  <eblake@redhat.com>
11913
11914         mirbsd: add some more support
11915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11916         in BSD family.
11917         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11918         devices as OpenBSD.
11919         * m4/host-os.m4 (mirbsd): Add MirBSD.
11920
11921         tests: fix unportable assumption on sys/wait.h
11922         * tests/test-sys_wait.c (main): Relax test.
11923         * tests/test-stdlib.c (main): Likewise.
11924
11925         init.sh: accomodate directory with no .exes
11926         * tests/init.sh: Accomodate directory containing only scripts.
11927
11928         tests: avoid compiler warning
11929         * tests/test-stdlib.c (main): Use the variable.
11930
11931         fdutimens, fdutimensat: update signature, again
11932         * lib/utimens.h (gl_futimens): Delete, and move signature...
11933         (fdutimens): ...here.
11934         (fdutimensat): Rearrange signature.
11935         (lutimensat): Rename variable for clarity.
11936         * lib/fdutimensat.c (fdutimensat): Update signature.
11937         * lib/utimens.c (fdutimens): Likewise.
11938         (gl_futimens): Delete.
11939         (utimens, lutimens): Update callers.
11940         * lib/futimens.c (futimens): Likewise.
11941         * tests/test-fdutimensat.c: Likewise.
11942         * tests/test-utimens.c: Likewise.
11943         * tests/test-futimens.h: Update comment.
11944         * NEWS: Mention this.
11945         Suggested by Paul Eggert.
11946
11947 2010-09-17  Bruno Haible  <bruno@clisp.org>
11948
11949         Take over the maintenance of some older macros from Autoconf.
11950         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11951         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11952         GNU Autoconf.
11953         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11954         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11955
11956 2010-09-17  Eric Blake  <eblake@redhat.com>
11957
11958         fdutimensat: drop atflag validation
11959         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11960         with valid fd, to close a race scenario where futimens is
11961         unsupported and FILE was replaced by a symlink.
11962         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11963         accordingly.
11964         Suggested by Paul Eggert.
11965
11966 2010-09-16  Bruno Haible  <bruno@clisp.org>
11967
11968         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11969         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11970
11971 2010-09-16  Bruno Haible  <bruno@clisp.org>
11972
11973         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11974         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11975         login_tty exists.
11976         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11977
11978 2010-09-16  Bruno Haible  <bruno@clisp.org>
11979
11980         login_tty: Make the replacement code work on BSD systems.
11981         * lib/login_tty.c: Include <sys/ioctl.h>.
11982         (login_tty): Use ioctl TIOCSCTTY when available.
11983         * modules/login_tty (Depends-on): Add sys_ioctl.
11984         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11985
11986 2010-09-16  Bruno Haible  <bruno@clisp.org>
11987
11988         login_tty: Stricter unit test.
11989         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11990         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11991         and tcgetsid() after login_tty.
11992         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11993
11994 2010-09-16  Bruno Haible  <bruno@clisp.org>
11995
11996         New module 'tcgetsid'.
11997         * lib/tcgetsid.c: New file.
11998         * m4/tcgetsid.m4: New file.
11999         * modules/tcgetsid: New file.
12000         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12001         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12002         GNULIB_TCGETSID, HAVE_TCGETSID.
12003         * lib/termios.in.h: Include <sys/types.h>.
12004         (tcgetsid): New declaration.
12005         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12006         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12007         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12008         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12009
12010 2010-09-16  Bruno Haible  <bruno@clisp.org>
12011
12012         Tests for module 'termios'.
12013         * modules/termios-c++-tests: New file.
12014         * modules/termios-tests: New file.
12015         * tests/test-termios-c++.cc: New file.
12016         * tests/test-termios.c: New file.
12017
12018         New module 'termios'.
12019         * modules/termios: New file.
12020         * lib/termios.in.h: New file.
12021         * m4/termios_h.m4: New file.
12022         * doc/posix-headers/termios.texi: Mention the new module.
12023
12024 2010-09-16  Eric Blake  <eblake@redhat.com>
12025
12026         fdutimensat: add an atflag parameter
12027         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12028         * lib/utimens.h (fdutimensat): Update prototype.
12029         * tests/test-fdutimensat.c: Adjust test to match.
12030         * NEWS: Document the change.
12031         Suggested by Paul Eggert.
12032
12033 2010-09-16  Bruno Haible  <bruno@clisp.org>
12034
12035         Fix typos in comments.
12036         * lib/striconveh.h: Fix typo in comment.
12037         * lib/login_tty.c (login_tty): Likewise.
12038
12039 2010-09-15  Bruno Haible  <bruno@clisp.org>
12040
12041         stdlib: clarify MirBSD WEXITSTATUS bug
12042         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12043         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12044
12045 2010-09-15  Eric Blake  <eblake@redhat.com>
12046
12047         stdlib: work around MirBSD WEXITSTATUS bug
12048         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12049         * modules/stdlib (Depends-on): Add sys_wait.
12050         * tests/test-sys_wait.c (main): Enhance test.
12051         * tests/test-stdlib.c (main): Likewise.
12052         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12053
12054         docs: mention MacOS issue with WEXITSTATUS(constant)
12055         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12056         issue.
12057         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12058
12059         strnlen: add tests
12060         * modules/strnlen-tests: New file.
12061         * tests/test-strnlen.c: Likewise.
12062
12063 2010-09-14  Bruno Haible  <bruno@clisp.org>
12064
12065         unistr/base: Avoid link errors when module 'libunistring' is also used.
12066         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12067         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12068         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12069         Declare also when HAVE_LIBUNISTRING is set.
12070         Reported by Pádraig Brady <P@draigbrady.com>.
12071
12072 2010-09-14  Eric Blake  <eblake@redhat.com>
12073
12074         test-rawmemchr: make more robust
12075         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12076         (Depends-on, configure.ac): Add needed prerequisites to use it.
12077         * modules/memchr-tests (Files, Depends-on, configure.ac):
12078         Likewise, to avoid implicit reliance on memchr module prereqs.
12079         * tests/test-memchr.c (main): Ensure proper masking.
12080         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12081         reads.
12082
12083         memchr: detect glibc Alpha bug
12084         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12085         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12086         Alpha.
12087         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12088         * tests/test-memchr.c (main): Enhance test.
12089         Reported by Nelson H. F. Beebe.
12090
12091 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12092
12093         fts, getcwd, glob: audit for dirfd returning -1
12094         * lib/fts.c (opendir): Remove #define; no longer used.
12095         (opendirat): New arg PDIR_FD.  All callers changed.
12096         (fts_build, _opendir2): Use new opendirat to avoid the need for
12097         dirfd, or for checking whether dirfd returns a negative value.
12098         Don't use opendir; always use openat followed by fdopendir.
12099         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12100         it.
12101         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12102         returns -1 here.
12103         * modules/fts (Depends-on): Remove dirfd.
12104         * modules/getcwd (Depends-on): Likewise.
12105
12106 2010-09-13  Eric Blake  <eblake@redhat.com>
12107
12108         float: fix broken MirBSD header
12109         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12110         * doc/posix-headers/float.texi (float.h): Document it.
12111
12112 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12113
12114         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12115         * lib/fts.c (opendirat): New arg extra_flags.
12116         (__opendir2): Use it to avoid following symlinks when opening
12117         a directory, if symlinks are not supposed to be followed.  See
12118         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12119
12120         fdopendir: preserve argument fd before returning
12121         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12122         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12123         (fdopendir): Use them, arranging for FD to be open to the same
12124         directory that it was when it started.  (It might be temporarily
12125         closed while fdopendir is running, so this not thread- or
12126         signal-safe.)  Be careful to do the right thing even when file
12127         descriptors are scarce and dup fails with errno == EMFILE.  See
12128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12129
12130 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12131
12132         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12133         * NEWS: Document change.
12134         * m4/regex.m4: Disable test for regoff_t size.
12135
12136 2010-09-13  Jim Meyering  <meyering@redhat.com>
12137
12138         fts: don't operate on an invalid file descriptor after failed dup
12139         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12140         negative file descriptor.
12141
12142 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12143
12144         savedir: add streamsavedir, deprecate fdsavedir
12145         * NEWS: Mention deprecation of fdsavedir.
12146         * lib/savedir.c (streamsavedir): New extern function, whose name
12147         ends in "savedir" to be consistent with the others.  This differs
12148         from savedirstream in that it doesn't close its argument.  The
12149         next version of GNU tar will use this instead of fdsavedir, to
12150         avoid some race conditions and conserve file descriptors.
12151         (savedirstream): Reimplement as a wrapper around streamsavedir.
12152         (fdsavedir): Add a comment deprecating this function.  As far as
12153         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12154         * lib/savedir.h (streamsavedir): New decl.
12155         (fdsavedir): Add a comment deprecating this.
12156
12157 2010-09-10  Bruno Haible  <bruno@clisp.org>
12158
12159         langinfo: Fix last commit.
12160         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12161         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12163
12164 2010-09-10  Bruno Haible  <bruno@clisp.org>
12165
12166         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12167         * lib/progreloc.c (O_EXEC): Define fallback.
12168
12169 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12170
12171         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12172         * NEWS: Document recent changes to fcntl-h.
12173         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12174         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12175         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12176         Similarly for O_SEARCH; this last was already true, but not documented.
12177         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12178         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12179         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12180         Likewise.
12181         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12182         is zero, not whether it is defined.
12183         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12184         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12185         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12186
12187 2010-09-10  Bruno Haible  <bruno@clisp.org>
12188
12189         langinfo, nl_langinfo: Fix for IRIX 5.3.
12190         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12191         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12192         HAVE_LANGINFO_YESEXPR.
12193         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12194         HAVE_LANGINFO_YESEXPR.
12195         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12196         HAVE_LANGINFO_T_FMT_AMPM is 0.
12197         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12198         HAVE_LANGINFO_YESEXPR is 0.
12199         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12200         NOEXPR.
12201         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12202         * doc/posix-functions/nl_langinfo.texi: Likewise.
12203         Reported by Eric Blake.
12204
12205 2010-09-10  Bruno Haible  <bruno@clisp.org>
12206
12207         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12208         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12209         on FreeBSD 8.0 and OpenBSD 4.6.
12210         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12211         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12212         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12213         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12214         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12215         ac_includes_default.
12216         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12217
12218 2010-09-09  Eric Blake  <eblake@redhat.com>
12219
12220         strsignal: work around NetBSD bug
12221         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12222         * lib/string.in.h (includes): Likewise.
12223         * doc/posix-functions/strsignal.texi (strsignal): Document the
12224         bug.
12225         Reported by Nelson H. F. Beebe.
12226
12227         gnulib-tool: work with NetBSD /bin/sh
12228         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12229         (func_get_description, func_get_comment, func_get_status)
12230         (func_get_notice, func_get_applicability, func_get_filelist)
12231         (func_get_dependencies, func_get_autoconf_early_snippet)
12232         (func_get_autoconf_snippet, func_get_automake_snippet)
12233         (func_get_include_directive, func_get_link_directive)
12234         (func_get_license, func_get_maintainer, func_import): Avoid
12235         shell syntax errors from parsing syntax extensions.
12236
12237 2010-09-09  Bruno Haible  <bruno@clisp.org>
12238
12239         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12240         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12241         a reliable way to determine whether the 'alias' command works.
12242
12243 2010-09-08  Jim Meyering  <meyering@redhat.com>
12244
12245         init.sh: penalize a set-x-impaired shell; don't disqualify it
12246         * tests/init.sh: Too many shells corrupt application stderr when
12247         you set -x, so we can't afford to disqualify them, since at least
12248         on Irix-6.5, that would disqualify all bourne shells.
12249         Instead, use a two-pass approach.
12250         On the first pass, try to find a shell that meets the stricter
12251         condition that set -x does not corrupt stderr.
12252         If no shell meets the stricter condition, retest each candidate
12253         shell, but without that extra condition.  Finally, when
12254         VERBOSE=yes is requested and set -x might cause trouble, simply
12255         issue a warning and refrain from enabling debug output.
12256
12257 2010-09-08  Eric Blake  <eblake@redhat.com>
12258
12259         unsetenv: fix OpenBSD bug
12260         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12261         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12262         documentation.
12263         Reported by Jim Meyering.
12264
12265         strtod: work around IRIX 6.5 bug
12266         * lib/strtod.c (strtod): Reparse number on shorter string if
12267         exponent parse was invalid.
12268         * tests/test-strtod.c (main): Add check for "0x1p 2".
12269         Reported by Tom G. Christensen.
12270
12271         getopt: optimize previous patch
12272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12273         empty variable.  Speed up awk script.
12274         Reported by Paolo Bonzini.
12275
12276 2010-09-08  Jim Meyering  <meyering@redhat.com>
12277
12278         test.sh: disqualify shells for which set -x corrupts stderr
12279         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12280         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12281         appear in stderr output.  For example, this command:
12282             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12283         prints "P=1" on those two systems:
12284
12285 2010-09-08  Bruno Haible  <bruno@clisp.org>
12286
12287         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12288         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12289         commands, because some shells ignore redirections when there is an
12290         error in the command lookup.
12291         Reported by Eric Blake.
12292
12293 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12294
12295         * lib/regex.h: Fix a mention of `regex_compile' (should be
12296         `re_compile_pattern').
12297         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12298         (re_set_registers): Correct name of parameter in comment.
12299
12300         * doc/regex.texi: Add documentation for missing syntax flags.
12301         Remove commented-out documentation of defunct syntax option
12302         RE_NO_EMPTY_ALTS.
12303         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12304         Add documentation of re_set_registers.
12305         Document trick to re-use a pattern buffer by setting fastmap manually.
12306         Update documentation of struct re_pattern_buffer per public members.
12307         Uncomment documentation of equivalence class operators and
12308         collating symbol operators, since they are now implemented,
12309         Explain leftmost-longest matching in relation to alternatives.
12310         Tidy documentation of substring matching.
12311         Remove POSIX documentation, which is done better in
12312         glibc, and refer the reader there. Keep BSD API documentation, as
12313         that is not readily available elsewhere.
12314
12315 2010-09-07  Eric Blake  <eblake@redhat.com>
12316
12317         getopt: handle POSIXLY_CORRECT set but not exported
12318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12319         export state of POSIXLY_CORRECT, due to bash set -o posix.
12320         Reported by Dustin J. Mitchell.
12321
12322 2010-09-05  Bruno Haible  <bruno@clisp.org>
12323
12324         gnulib-tool: Highlight the changed options.
12325         * gnulib-tool (func_usage): Display the --import, --add-import,
12326         --remove-import explanations in bold font.
12327
12328 2010-09-06  Karl Berry  <karl@gnu.org>
12329
12330         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12331
12332 2010-09-05  Bruno Haible  <bruno@clisp.org>
12333
12334         uniwidth/width: Update comment.
12335         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12336         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12337
12338 2010-09-05  Bruno Haible  <bruno@clisp.org>
12339
12340         isinf, isnan: Relax license.
12341         * modules/isinf (License): Change from GPL to LGPL, with consent from
12342         Ben Pfaff.
12343         * modules/isnan (License): Likewise.
12344         Requested by Ludovic Courtès.
12345
12346 2010-09-04  Bruno Haible  <bruno@clisp.org>
12347
12348         gnulib-tool: Help migration from --import to --add-import or --update.
12349         * gnulib-tool: Emit a verbose error message when --import is used
12350         without any module name.
12351
12352 2010-09-04  Bruno Haible  <bruno@clisp.org>
12353
12354         Update doc about gnulib-tool.
12355         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12356         'gnulib-tool --update' in more detail.
12357         Reported by Eric Blake.
12358
12359 2010-09-04  Bruno Haible  <bruno@clisp.org>
12360
12361         gnulib-tool: Change --import. New options --add/remove-import.
12362         * gnulib-tool: New options --add-import, --remove-import.
12363         (func_usage): Document them.
12364         (have_associative): Define always.
12365         (func_import): In import mode, don't merge the specified settings with
12366         the cached settings. Implement remove-import mode.
12367         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12368         Explain when to use them versus --import.
12369         (Simple update): Use --add-import instead of --import.
12370         * NEWS: Mention the change.
12371
12372 2010-09-04  Bruno Haible  <bruno@clisp.org>
12373
12374         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12375         separate gnulib.mk.
12376
12377 2010-09-04  Bruno Haible  <bruno@clisp.org>
12378
12379         gnulib-tool: Don't talk about CVS any more.
12380         * gnulib-tool (func_usage, func_import): Write "version control"
12381         instead of CVS.
12382
12383 2010-09-04  Jim Meyering  <meyering@redhat.com>
12384
12385         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12386         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12387         false positives (whose names may be ill-chosen) when searching
12388         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12389         would cause a false-positive.
12390
12391         avoid coreutils "make distcheck" failure
12392         Coreutils tests with an absolute build directory name that contains
12393         a space.  Not quoting this directory name caused a failure.
12394         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12395         * tests/test-vc-list-files-cvs.sh: Likewise.
12396
12397 2010-09-04  Bruno Haible  <bruno@clisp.org>
12398
12399         gnulib-tool: Avoid error when run in a package without Makefile.am.
12400         * gnulib-tool: When collecting the m4dirs in a package that does not
12401         have a Makefile.am, eliminate those directories that contain no
12402         gnulib-cache.m4. Fix expression that counts these directories.
12403
12404 2010-09-04  Bruno Haible  <bruno@clisp.org>
12405
12406         update-copyright test: Improve output when perl is missing or too old.
12407         * tests/test-update-copyright.sh: Move test of Perl version down after
12408         the test whether Perl exists. Provide an explanation relating Perl's
12409         error message to Automake's SKIP: message.
12410
12411 2010-09-04  Bruno Haible  <bruno@clisp.org>
12412
12413         Don't augment PATH in TESTS_ENVIRONMENT.
12414         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12415         set abs_aux_dir instead of augmenting PATH.
12416         * modules/vc-list-files-tests (Makefile.am): Likewise.
12417         * tests/test-update-copyright.sh: Augment PATH here.
12418         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12419         path_prepend_.
12420         * tests/test-vc-list-files-git.sh: Likewise.
12421
12422 2010-09-04  Jim Meyering  <meyering@redhat.com>
12423
12424         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12425         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12426
12427 2010-09-04  Bruno Haible  <bruno@clisp.org>
12428
12429         strdup: Fix compilation error in C++ mode.
12430         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12431         the macro.
12432
12433 2010-09-04  Bruno Haible  <bruno@clisp.org>
12434
12435         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12436         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12437         macro into a function.
12438         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12439
12440 2010-09-04  Bruno Haible  <bruno@clisp.org>
12441
12442         Set PATH_SEPARATOR the same way autoconf does.
12443         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12444         the value of PATH_SEPARATOR the same way autoconf-generated configure
12445         scripts do.
12446         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12447         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12448
12449 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12450
12451         Set PATH_SEPARATOR the same way autoconf does.
12452         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12453         the same way autoconf-generated configure scripts do.
12454         * posix-modules: Likewise.
12455
12456 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12457
12458         hash: fix safe_hasher const typo
12459         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12460         const; otherwise, there is a type error later.
12461
12462 2010-09-02  Jim Meyering  <meyering@redhat.com>
12463
12464         test-update-copyright.sh: require perl 5.8.0
12465         * tests/test-update-copyright.sh: Require 5.8.0,
12466         which Tom G. Christensen has confirmed is adequate,
12467         while 5.6.1 is not.
12468
12469 2010-09-02  Eric Blake  <eblake@redhat.com>
12470
12471         tests: init.sh improvements for re-exec'ing with zsh
12472         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12473         -vx through shell re-exec.
12474         Reported by Tom G. Christensen.
12475
12476         wctype: fix typo in previous commit
12477         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12478         Reported by Ludovic Courtès.
12479
12480 2010-09-02  Jim Meyering  <meyering@redhat.com>
12481
12482         test-update-copyright.sh: skip test if Perl is too old
12483         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12484         Reported by Tom G. Christensen.
12485
12486 2010-09-02  Bruno Haible  <bruno@clisp.org>
12487
12488         wctype: Avoid compilation error on IRIX 6.5.30.
12489         * lib/wctype.in.h (iswblank): Declare with a replacement if
12490         REPLACE_ISWBLANK is set.
12491         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12492         declared. Set REPLACE_ISWBLANK.
12493         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12494         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12495         * doc/posix-headers/wctype.texi: Likewise.
12496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12497
12498 2010-09-01  Bruno Haible  <bruno@clisp.org>
12499
12500         New module 'socketlib'.
12501         * modules/socketlib: New file.
12502         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12503         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12504         * modules/sockets (Depends-on): Add socketlib.
12505         Suggested by Sam Steingold <sds@gnu.org>.
12506
12507 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12508
12509         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12510
12511         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12512         when one needs search access to a directory but not read access.
12513         On systems where it is available, it works in some cases where
12514         O_RDONLY does not, namely on directories that are searchable but
12515         not readable, and which need only to be searchable.  If O_SEARCH
12516         is not available, fall back to the traditional method of using
12517         O_RDONLY.
12518
12519         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12520         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12521         when opening a directory that needs only to be searchable.
12522         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12523         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12524         * lib/openat-proc.c (openat_proc_name): Likewise.
12525         * lib/openat.c (openat_needs_fchdir): Likewise.
12526         * lib/save-cwd.c (save_cwd): Likewise.
12527         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12528
12529 2010-08-28  Bruno Haible  <bruno@clisp.org>
12530
12531         New module 'host-cpu-c-abi'.
12532         * modules/host-cpu-c-abi: New file.
12533         * m4/host-cpu-c-abi.m4: New file, based on part of
12534         clisp/src/m4/general.m4.
12535         Requested by Sam Steingold <sds@gnu.org>.
12536
12537 2010-08-31  Eric Blake  <eblake@redhat.com>
12538         and Jim Meyering  <meyering@redhat.com>
12539
12540         hash: factor, and guard against misbehaving hasher function
12541         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12542         of table->hasher's return value.  Also protect against a hash value
12543         so large that adding it to table->bucket results in a NULL pointer.
12544         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12545         Use it in place of open-coded check-and-abort.
12546
12547 2010-08-30  Bruno Haible  <bruno@clisp.org>
12548
12549         hash: silence spurious clang warning
12550         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12551         Reported by Eric Blake.
12552
12553 2010-08-30  Eric Blake  <eblake@redhat.com>
12554
12555         strstr, memmem, strcasestr: avoid leaked shell message
12556         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12557         FreeBSD.
12558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12559         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12560
12561         tests: silence clang warning
12562         * tests/test-malloca.c (do_allocation): Avoid dead store.
12563
12564 2010-08-29  Bruno Haible  <bruno@clisp.org>
12565
12566         gettext: Fix recent mistake.
12567         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12568
12569 2010-08-29  Bruno Haible  <bruno@clisp.org>
12570
12571         selinux-h: Offer a --without-selinux option.
12572         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12573         --without-selinux was specified, skip all tests and define
12574         HAVE_SELINUX_SELINUX_H to 0.
12575         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12576         set LIB_SELINUX to empty.
12577         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12578         gl_LIBSELINUX. If --without-selinux was specified, replace
12579         selinux/context.h.
12580         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12581
12582 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12583             Bruno Haible  <bruno@clisp.org>
12584
12585         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12586         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12587         of HAVE_REALLOC.
12588         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12589         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12590         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12591         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12592
12593 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12594             Bruno Haible  <bruno@clisp.org>
12595
12596         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12597         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12598         HAVE_CALLOC.
12599         * lib/xmalloc.c: Update accordingly.
12600         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12601         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12602         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12603
12604 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12605             Bruno Haible  <bruno@clisp.org>
12606
12607         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12608         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12609         HAVE_MALLOC.
12610         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12611         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12612         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12613
12614 2010-08-29  Bruno Haible  <bruno@clisp.org>
12615
12616         Update modules list.
12617         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12618         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12619         (String handling <string.h>): Add astrxfrm.
12620         (File system functions): Add readlinkat.
12621
12622 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12623
12624         Tests for module 'realloc-gnu'.
12625         * modules/realloc-gnu-tests: New file.
12626         * tests/test-realloc-gnu.c: New file.
12627
12628         Tests for module 'calloc-gnu'.
12629         * modules/calloc-gnu-tests: New file.
12630         * tests/test-calloc-gnu.c: New file.
12631
12632         Tests for module 'malloc-gnu'.
12633         * modules/malloc-gnu-tests: New file.
12634         * tests/test-malloc-gnu.c: New file.
12635
12636 2010-08-28  Bruno Haible  <bruno@clisp.org>
12637
12638         Rename module 'realloc' -> 'realloc-gnu'.
12639         * modules/realloc-gnu: New file, copied from modules/realloc.
12640         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12641         obsolete.
12642         * modules/mgetgroups (Depends-on): Update.
12643         * doc/posix-functions/realloc.texi: Update.
12644         * NEWS: Mention the change.
12645
12646         Rename module 'calloc' -> 'calloc-gnu'.
12647         * modules/calloc-gnu: New file, copied from modules/calloc.
12648         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12649         obsolete.
12650         * doc/posix-functions/calloc.texi: Update.
12651         * NEWS: Mention the change.
12652
12653         Rename module 'malloc' -> 'malloc-gnu'.
12654         * modules/malloc-gnu: New file, copied from modules/malloc.
12655         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12656         obsolete.
12657         * modules/argp (Depends-on): Update.
12658         * modules/regex (Depends-on): Update.
12659         * doc/posix-functions/malloc.texi: Update.
12660         * NEWS: Mention the change.
12661
12662 2010-08-28  Eric Blake  <eblake@redhat.com>
12663
12664         pread, pwrite: add missing dependency
12665         * modules/pread (Depends-on): Add extensions.
12666         * modules/pwrite (Depends-on): Likewise.
12667
12668 2010-08-28  Bruno Haible  <bruno@clisp.org>
12669
12670         unistr/u*-strchr: Fix tests dependencies.
12671         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12672         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12673         Reported by Ian Beckwith <ianb@erislabs.net>.
12674
12675 2010-08-28  Bruno Haible  <bruno@clisp.org>
12676
12677         read-file: Don't occupy too much unused memory.
12678         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12679
12680 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12681             Eric Blake  <eblake@redhat.com>
12682             Bruno Haible  <bruno@clisp.org>
12683
12684         read-file: Avoid memory reallocations with regular files.
12685         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12686         (fread_file): With regular files, use the remaining length as the
12687         initial buffer size.  Check against overflow.
12688         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12689         sys_stat.
12690
12691 2010-08-28  Bruno Haible  <bruno@clisp.org>
12692
12693         ftello: Relax license.
12694         * modules/ftello (License): Relax to LGPLv2+.
12695         Reported by Eric Blake.
12696
12697 2010-08-28  Bruno Haible  <bruno@clisp.org>
12698
12699         Avoid relocwrapper link errors due to gnulib replacement functions.
12700         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12701         function.
12702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12703
12704 2010-08-28  Bruno Haible  <bruno@clisp.org>
12705
12706         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12707         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12708         defined.
12709         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12710         Suggested by Eric Blake.
12711
12712 2010-08-28  Bruno Haible  <bruno@clisp.org>
12713
12714         sys_socket, netdb: Ensure socklen_t gets defined.
12715         * modules/sys_socket (Depends-on): Add socklen.
12716         * modules/netdb (Depends-on): Likewise.
12717         * modules/getaddrinfo (Depends-on): Remove socklen.
12718         * modules/getsockopt (Depends-on): Likewise.
12719         * modules/setsockopt (Depends-on): Likewise.
12720         * tests/test-sys_socket.c: Check that socklen_t is defined.
12721         * tests/test-netdb.c: Likewise.
12722         * m4/socklen.m4: Update comments.
12723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12724
12725 2010-08-27  Eric Blake  <eblake@redhat.com>
12726
12727         login_tty: add missing dependency
12728         * modules/login_tty (Depends-on): Add pty.
12729
12730 2010-08-26  Eric Blake  <eblake@redhat.com>
12731
12732         lib-symbol-versions: fix m4 quoting
12733         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12734         format for AC_LINK_IFELSE.
12735
12736         glob: fix compile test
12737         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12738
12739         btowc: fix missing file
12740         * modules/btowc (Files): Also ship locale-fr.m4.
12741
12742         lseek: fix link test
12743         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12744         AC_LINK_IFELSE.
12745
12746         include_next: silence autoconf 2.68 warning
12747         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12748         AC_COMPILE_IFELSE as special.
12749         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12750         autoconf < 2.68.
12751
12752         acl: fix compilation test
12753         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12754         AC_COMPILE_IFELSE.
12755
12756 2010-08-26  Bruno Haible  <bruno@clisp.org>
12757
12758         Modernize AC_TRY_RUN invocations.
12759         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12760         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12761         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12762         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12763         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12764         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12767         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12768         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12770         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12771         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12774         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12775         gl_MBRLEN_NUL_RETVAL): Likewise.
12776         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12777         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12778         Likewise.
12779         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12780         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12781         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12782         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12783         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12784         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12785         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12786         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12787         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12788         Likewise.
12789         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12790         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12792         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12793         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12794         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12795         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12796         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12797         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12799
12800 2010-08-26  Bruno Haible  <bruno@clisp.org>
12801
12802         Modernize AC_TRY_LINK invocations.
12803         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12804         AC_TRY_LINK.
12805         * m4/argp.m4 (gl_ARGP): Likewise.
12806         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12807         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12808         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12810         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12811         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12812         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12813         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12814         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12815         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12816         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12817         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12818         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12819         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12820         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12821         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12822         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12823         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12824         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12825         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12826         Likewise.
12827         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12828         Likewise.
12829         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12830         Likewise.
12831         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12832         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12833         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12834         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12835         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12836         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12837         * m4/servent.m4 (gl_SERVENT): Likewise.
12838         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12839         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12840         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12841         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12842         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12843         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12845         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12846         * modules/tsearch-tests (configure.ac): Likewise.
12847
12848 2010-08-26  Bruno Haible  <bruno@clisp.org>
12849
12850         Modernize AC_TRY_COMPILE invocations.
12851         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12852         AC_TRY_COMPILE.
12853         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12854         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12855         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12856         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12857         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12858         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12859         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12860         * m4/lock.m4 (gl_LOCK): Likewise.
12861         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12862         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12863         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12864         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12865         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12866         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12867         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12869         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12870         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12871         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12872         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12873         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12874         extraneous semicolon.
12875
12876 2010-08-26  Jim Meyering  <meyering@redhat.com>
12877
12878         stat-time: relax license LGPL
12879         * modules/stat-time (License): Change from GPL to LGPL,
12880         with consent from all contributors, for use in libguile.
12881         Requested by Ludovic Courtès.
12882
12883 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12884
12885         poll: return immediately on POLLHUP.
12886         * lib/poll.c (poll): Always set timeout before wait_timeout is
12887         computed.
12888
12889 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12890
12891         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12892         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12893         rmdir ("dir/.//"), unlinkat.
12894
12895 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12896
12897         stdbool: avoid spurious failure with modern xlc
12898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12899
12900 2010-08-24  Bruno Haible  <bruno@clisp.org>
12901
12902         getloadavg: simplify code
12903         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12904         gl_have_func. Update comments.
12905
12906 2010-08-24  Eric Blake  <eblake@redhat.com>
12907
12908         getloadavg: don't define SVR4 on cygwin
12909         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12910         only define SVR4 when -lkvm is required.
12911         Reported by Yaakov Selkowitz.
12912
12913 2010-08-24  Bruno Haible  <bruno@clisp.org>
12914
12915         priv-set: fix comment
12916         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12917
12918 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12919
12920         priv-set: fix comments
12921         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12922         to match code, as suggested by David Bartley in:
12923         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12924
12925 2010-08-23  Eric Blake  <eblake@redhat.com>
12926
12927         stdbool: avoid rejecting clang
12928         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12929         * tests/test-stdbool.c: Enable more tests if using the system
12930         <stdbool.h> instead of the gnulib replacement.
12931         (main): Move xlc bug test to a runtime test for all compilers.
12932         Reported by Anders Kaseorg.
12933
12934         argz: fix shell quoting issue
12935         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12936         Reported by Charles Wilson.
12937
12938 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12939             Erik Faye-Lund <kusmabite@gmail.com>
12940
12941         poll, select: handle ERROR_BROKEN_PIPE.
12942         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12943         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12944         * lib/select.c (win32_compute_revents): Do not mark a pipe
12945         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12946
12947 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12948
12949         fts: allow compilation with C++
12950         * lib/fts_.h: Specify extern "C" linkage with C++.
12951
12952 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12953
12954         Fix gnulib-tool sed script de-commentation for AIX sed.
12955         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12956         sed.
12957
12958 2010-08-17  Eric Blake  <eblake@redhat.com>
12959
12960         test-stddef: test for (some) offsetof bugs
12961         * tests/test-stddef.c: Enhance test to ensure correct type of
12962         offsetof.
12963         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12964         that we are not fixing at this time.
12965
12966 2010-08-15  Bruno Haible  <bruno@clisp.org>
12967
12968         stpncpy: Allow stpncpy to be defined as a macro.
12969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12970         if it's already correctly declared.
12971         * lib/string.in.h (stpncpy): Undefine before redefining.
12972         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12973
12974 2010-08-14  Bruno Haible  <bruno@clisp.org>
12975
12976         Rename module 'memxfrm' to 'amemxfrm'.
12977         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12978         (amemxfrm): Renamed from memxfrm.
12979         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12980         (amemxfrm): Renamed from memxfrm.
12981         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12982         * NEWS: Mention the change.
12983         * MODULES.html.sh (String handling <string.h>): Update.
12984         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12985         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12986         * lib/unicase/u16-casexfrm.c: Likewise.
12987         * lib/unicase/u32-casexfrm.c: Likewise.
12988         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12989         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12990         * lib/uninorm/u16-normxfrm.c: Likewise.
12991         * lib/uninorm/u32-normxfrm.c: Likewise.
12992         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12993         memxfrm.
12994         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12995         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12996         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12997         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12998         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12999         Suggested by Paul Eggert.
13000
13001 2010-08-14  Bruno Haible  <bruno@clisp.org>
13002
13003         Tests for module 'astrxfrm'.
13004         * modules/astrxfrm-tests: New file.
13005         * tests/test-astrxfrm.c: New file.
13006
13007         New module 'astrxfrm'.
13008         * lib/astrxfrm.h: New file.
13009         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13010         * modules/astrxfrm: New file.
13011
13012 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13013
13014         regex: Tweak doc.
13015         * doc/regex.texi (Overview): Don't mention regex.c.
13016         (GNU Regular Expression Compiling): Likewise.
13017         (Match-end-of-line Operator): Mention 'not_eol'.
13018
13019 2010-08-14  Brian Gough  <bjg@gnu.org>
13020             Bruno Haible  <bruno@clisp.org>
13021
13022         git-merge-changelog: add doc relating to use with bzr and hg.
13023         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13024
13025 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13026
13027         pthread: fix pthread.h creation for srcdir != builddir
13028         * modules/pthread (Makefile.am): Fix the rule to work also in a
13029         non-srcdir build.
13030
13031 2010-08-13  Karl Berry  <karl@gnu.org>
13032
13033         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13034         * doc/posix-*/*: force line break before @url of POSIX
13035         specifications.
13036         Suggested by Werner Lemberg.
13037
13038 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13039
13040         strtod: fix const diagnostic
13041         * lib/strtod.c (strtod): Don't assign const char * to char *,
13042         as this elicits a warning from GCC when warnings are enabled.
13043
13044 2010-08-10  Pádraig Brady <P@draigbrady.com>
13045         and Eric Blake  <eblake@redhat.com>
13046
13047         copy-acl: ignore ENOTSUP on HP-UX
13048         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13049         so that it is available for HP-UX.
13050         * lib/copy-acl.c (qcopy_acl): Use it.
13051         Reported by Patrick M. Callahan.
13052
13053 2010-08-10  Eric Blake  <eblake@redhat.com>
13054
13055         open, chown: relax license
13056         * modules/open (License): Change to LGPLv2+, with consent by all
13057         authors, for use in augeas.
13058         * modules/chown (License): Likewise.
13059         * modules/lchown (Likewise): Likewise.
13060         Requested by Adam Stokes.
13061
13062 2010-08-09  Karl Berry  <karl@gnu.org>
13063
13064         * build-aux/ar-lib: new file, import from Automake.
13065         * config/srclist.txt: autocheck for updates.
13066
13067 2010-08-09  Eric Blake  <eblake@redhat.com>
13068
13069         readlinkat: adjust client modules
13070         * modules/areadlinkat (Depends-on): Use readlinkat, not
13071         symlinkat.
13072         * modules/areadlinkat-with-size (Depends-on): Likewise.
13073
13074         mknod: be more vocal about danger of running tests as root
13075         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13076         root, since that is just asking for problems.
13077         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13078
13079         readlinkat: split into its own module
13080         * modules/symlinkat: Split readlinkat...
13081         * modules/readlinkat: ...into separate module.
13082         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13083         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13084         * lib/symlinkat.c (readlinkat): Move...
13085         * lib/readlinkat.c: ...into new file.
13086         * modules/symlinkat-tests: Split readlinkat test...
13087         * modules/readlinkat-tests: ...into separate module.
13088         * tests/test-symlinkat.c: Split...
13089         * tests/test-readlinkat.c: ...into new file.
13090         * NEWS: Document the split.
13091         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13092         * lib/unistd.in.h (readlinkat): Likewise.
13093         Suggested by Bruno Haible.
13094
13095 2010-08-08  Bruno Haible  <bruno@clisp.org>
13096
13097         memxfrm: Speed up.
13098         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13099         that usually only one call to strxfrm is necessary for each string
13100         part.
13101         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13102
13103 2010-08-07  Karl Berry  <karl@gnu.org>
13104
13105         * doc/posix-headers/limits.texi,
13106         * doc/posix-functions/malloc.texi,
13107         * doc/posix-functions/strsignal.texi: missing @item.
13108         * doc/ld-version-script.texi: spurious leading i.
13109         * doc/regex.texi (Interval Operators): no commas inside @var.
13110
13111 2010-08-01  Bruno Haible  <bruno@clisp.org>
13112
13113         Integrate the regex documentation.
13114         * doc/gnulib.texi: Define 'cn' index.
13115         (Regular expressions): New a chapter that includes regex.texi and
13116         regexprops-generic.texi.
13117         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13118         syntax.
13119
13120         Whitespace cleanup.
13121         * doc/regex.texi: Remove trailing spaces.
13122
13123         Add regex documentation.
13124         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13125         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13126         Written by Kathy A. Hargreaves and Karl Berry.
13127
13128 2010-08-01  Bruno Haible  <bruno@clisp.org>
13129
13130         link: Update documentation.
13131         * doc/posix-functions/link.texi: Update regarding Solaris.
13132
13133 2010-07-31  Bruno Haible  <bruno@clisp.org>
13134
13135         Update modules list.
13136         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13137         (String handling <string.h>): Add memcmp2, memxfrm.
13138         (Container data structures): Add xlist, xsublist, xoset.
13139         (Core language properties): Add alignof, unused-parameter.
13140         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13141         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13142         (Unibyte characters <ctype.h>): New section.
13143         (String handling <string.h>): New section.
13144         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13145         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13146         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13147         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13148         tan, tanh, tanl, y0, y1, yn.
13149         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13150         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13151         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13152         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13153         unlockpt, vdprintf, vdprintf-posix.
13154         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13155         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13156         xconcat-filename.
13157         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13158         getdtablesize, pipe2, pipe2-safer.
13159         (Security): New section.
13160         (Networking functions): Add accept4.
13161         (Signal handling): Add sigpipe.
13162         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13163         mbmemcasecoll.
13164         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13165         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13166         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13167         pipe-filter-ii.
13168         (Misc): Add argp-version-etc, login_tty, parse-duration.
13169
13170 2010-07-31  Bruno Haible  <bruno@clisp.org>
13171
13172         Improve doc in MODULES.html.
13173         * modules/linkat (Description): Add the word "function".
13174         * modules/mkfifo (Description): Likewise.
13175         * modules/mknod (Description): Likewise.
13176         * modules/remove (Description): Likewise.
13177         * modules/renameat (Description): Likewise.
13178         * modules/stat (Description): Likewise.
13179         * modules/symlink (Description): Likewise.
13180         * modules/unlink (Description): Likewise.
13181
13182 2010-07-31  Bruno Haible  <bruno@clisp.org>
13183
13184         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13185         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13186         option --enable/disable-c++ instead of --enable/disable-cxx.
13187         * NEWS: Mention the change.
13188
13189 2010-07-31  Bruno Haible  <bruno@clisp.org>
13190
13191         readlink, areadlink: Relax test a bit.
13192         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13193         alternative to ENOTDIR.
13194         * tests/test-areadlink.h (test_areadlink): Likewise.
13195         Reported by Rainer Tammer.
13196
13197 2010-07-31  Bruno Haible  <bruno@clisp.org>
13198
13199         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13200         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13201         character, perform the search using U_STRCHR.
13202         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13203         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13204         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13205         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13206         Suggested by Paolo Bonzini.
13207
13208 2010-07-31  Bruno Haible  <bruno@clisp.org>
13209
13210         unistr/u*-strstr: Fix dependencies.
13211         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13212         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13213         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13214
13215 2010-07-31  Bruno Haible  <bruno@clisp.org>
13216
13217         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13218         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13219         the beginning of the loop.
13220         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13221         cases in 'switch' statement.
13222
13223         unistr/u8-strchr: Fix several bugs.
13224         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13225         the string. When not found, return NULL, not a pointer near the end.
13226
13227         More tests for unistr/u8-strchr.
13228         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13229         that the function does not read past the first occurrence of the byte
13230         being searched.
13231         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13232         * tests/unistr/test-u16-strchr.c (main): New function.
13233         * tests/unistr/test-u32-strchr.c (main): New function.
13234
13235 2010-07-31  Bruno Haible  <bruno@clisp.org>
13236
13237         posix-modules: Ignore backup files of documentation files.
13238         * posix-modules: grep only through files named *.texi.
13239
13240 2010-07-31  Bruno Haible  <bruno@clisp.org>
13241
13242         symlinkat: Fix documentation.
13243         * doc/posix-functions/readlinkat.texi: Fix module name.
13244
13245 2010-07-31  Bruno Haible  <bruno@clisp.org>
13246
13247         fchownat: Replace also when chown has the trailing slash bug.
13248         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13249         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13250         introduced on 2010-04-10.
13251         Reported by Rainer Tammer.
13252
13253 2010-07-31  Bruno Haible  <bruno@clisp.org>
13254
13255         linkat: Work around AIX 7.1 bug.
13256         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13257         whether linkat handles trailing slash correctly. If not, replace linkat
13258         and define LINKAT_TRAILING_SLASH_BUG.
13259         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13260         check whether (fd1,file1) points to a directory if file1 or file2 ends
13261         in a slash. Code taken from lib/link.c.
13262         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13263         Reported by Rainer Tammer.
13264
13265 2010-07-31  Bruno Haible  <bruno@clisp.org>
13266
13267         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13268         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13269         This disables an xlc optimization that was causing wrong test results.
13270         Reported by Rainer Tammer.
13271
13272 2010-07-31  Bruno Haible  <bruno@clisp.org>
13273
13274         iconv: Work around AIX 6.1..7.1 bug.
13275         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13276         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13277         cross-compiling, guess no on all versions of AIX.
13278         Reported by Rainer Tammer.
13279
13280 2010-07-31  Bruno Haible  <bruno@clisp.org>
13281
13282         readlink: Relax test a bit.
13283         * tests/test-readlink.h (test_readlink): Allow different errno value
13284         when readlink is called with a file name that ends in / and refers to
13285         a file.
13286         Suggested by Eric Blake.
13287         Reported by Rainer Tammer.
13288
13289 2010-07-31  Bruno Haible  <bruno@clisp.org>
13290
13291         copysign: Does not require -lm on glibc systems.
13292         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13293         gl_COMMON_DOUBLE_MATHFUNC.
13294         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13295
13296 2010-07-31  Bruno Haible  <bruno@clisp.org>
13297
13298         duplocale: Work around AIX 7.1 bug.
13299         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13300         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13301         * lib/duplocale.c (rpl_duplocale): Update comment.
13302         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13303         Reported by Rainer Tammer.
13304
13305 2010-07-30  Bruno Haible  <bruno@clisp.org>
13306
13307         dirfd: Avoid link error on AIX 7.1.
13308         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13309         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13310         exist, set REPLACE_DIRFD.
13311         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13312         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13313         * doc/posix-functions/dirfd.texi: Update.
13314         Reported by Rainer Tammer.
13315
13316 2010-07-30  Eric Blake  <eblake@redhat.com>
13317
13318         strtod: next round of AIX fixes
13319         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13320         exponent.
13321         * tests/test-strtod.c (main): Enhance tests.
13322         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13323         Reported by Rainer Tammer.
13324
13325         futimens: fix configure check
13326         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13327         Reported by Bruno Haible.
13328
13329 2010-07-30  Bruno Haible  <bruno@clisp.org>
13330
13331         getline: Update regarding AIX.
13332         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13333         Reported by Rainer Tammer.
13334
13335 2010-07-30  Bruno Haible  <bruno@clisp.org>
13336
13337         wcwidth: Drop replacement on AIX 7.
13338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13339         AIX 7.
13340         Reported by Rainer Tammer.
13341
13342 2010-07-30  Bruno Haible  <bruno@clisp.org>
13343
13344         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13345         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13346         a 'char *'.
13347         Reported by Rainer Tammer.
13348
13349 2010-07-30  Bruno Haible  <bruno@clisp.org>
13350
13351         unlink: Update regarding AIX.
13352         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13353         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13354         Reported by Rainer Tammer.
13355
13356 2010-07-30  Bruno Haible  <bruno@clisp.org>
13357
13358         symlink: Update regarding AIX.
13359         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13360         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13361         Reported by Rainer Tammer.
13362
13363 2010-07-30  Bruno Haible  <bruno@clisp.org>
13364
13365         strndup: Update regarding AIX.
13366         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13367         AIX 7.
13368         Reported by Rainer Tammer.
13369
13370 2010-07-30  Bruno Haible  <bruno@clisp.org>
13371
13372         stat: Update regarding AIX.
13373         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13374         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13375         Reported by Rainer Tammer.
13376
13377 2010-07-30  Bruno Haible  <bruno@clisp.org>
13378
13379         truncl: Fix autoconf test.
13380         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13381         whether truncl works.
13382         Reported by Rainer Tammer.
13383
13384 2010-07-30  Bruno Haible  <bruno@clisp.org>
13385
13386         round: Update regarding AIX.
13387         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13388         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13389         Reported by Rainer Tammer.
13390
13391 2010-07-30  Bruno Haible  <bruno@clisp.org>
13392
13393         rename: Update regarding AIX.
13394         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13395         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13396         Reported by Rainer Tammer.
13397
13398 2010-07-30  Bruno Haible  <bruno@clisp.org>
13399
13400         printf.m4: Update regarding AIX.
13401         * m4/printf.m4: Update comments regarding AIX.
13402         Reported by Rainer Tammer.
13403
13404 2010-07-30  Bruno Haible  <bruno@clisp.org>
13405
13406         iconv: Update regarding AIX.
13407         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13408         AIX 7.
13409         Reported by Rainer Tammer.
13410
13411 2010-07-30  Bruno Haible  <bruno@clisp.org>
13412
13413         getopt: Update regarding AIX.
13414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13415         no on AIX.
13416         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13417         Reported by Rainer Tammer.
13418
13419 2010-07-30  Bruno Haible  <bruno@clisp.org>
13420
13421         ldexpl; Update regarding AIX.
13422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13423         on AIX 7.
13424         Reported by Rainer Tammer.
13425
13426 2010-07-30  Bruno Haible  <bruno@clisp.org>
13427
13428         frexpl: Update regarding AIX.
13429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13430         on AIX 7.
13431         Reported by Rainer Tammer.
13432
13433 2010-07-30  Bruno Haible  <bruno@clisp.org>
13434
13435         open, fopen: Update regarding AIX.
13436         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13437         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13438         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13439         * doc/posix-functions/fopen.texi: Likewise.
13440         Reported by Rainer Tammer.
13441
13442 2010-07-30  Bruno Haible  <bruno@clisp.org>
13443
13444         chown: Update doc regarding AIX.
13445         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13446         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13447         Reported by Rainer Tammer.
13448
13449 2010-07-30  Eric Blake  <eblake@redhat.com>
13450
13451         strtod: fix bug in replacement function on AIX
13452         * lib/strtod.c (strtod): Special case broken "0x" parse in
13453         underlying strtod.
13454         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13455         * doc/posix-functions/strtod.texi (strtod): Likewise.
13456         Reported by Rainer Tammer.
13457
13458 2010-07-30  Bruno Haible  <bruno@clisp.org>
13459
13460         mbrlen: Fix cross-compilation guess for AIX.
13461         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13462         guess. Leftover from 2008-12-22.
13463
13464 2010-07-30  Bruno Haible  <bruno@clisp.org>
13465
13466         mbrtowc: Fix cross-compilation guess for AIX.
13467         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13468         guess. Leftover from 2008-12-21.
13469
13470 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13471
13472         init.sh: work around trap limitation of some shells
13473         * tests/init.sh (setup_): Move exit trap outside of shell function.
13474
13475 2010-07-29  Eric Blake  <eblake@redhat.com>
13476
13477         strtod: aid debugging
13478         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13479         understanding why strtod is rejected.
13480
13481 2010-07-28  Bruno Haible  <bruno@clisp.org>
13482
13483         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13484         * lib/unistr/u8-chr.c: Include <string.h>.
13485         * tests/unistr/test-u8-chr.c: Likewise.
13486         * tests/unistr/test-u16-chr.c: Likewise.
13487         * tests/unistr/test-u32-chr.c: Likewise.
13488         * tests/unistr/test-u8-strchr.c: Likewise.
13489         * tests/unistr/test-u16-strchr.c: Likewise.
13490         * tests/unistr/test-u32-strchr.c: Likewise.
13491         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13492         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13493         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13494         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13495
13496 2010-07-28  Bruno Haible  <bruno@clisp.org>
13497
13498         Use spaces for indentation, not tabs.
13499         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13500
13501 2010-07-27  Bruno Haible  <bruno@clisp.org>
13502
13503         mbspcasecmp: Fix function specification.
13504         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13505         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13506         Reported by Eric Blake <eblake@redhat.com>.
13507
13508 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13509
13510         timespec: use cast and not conditional, as truncation isn't possible
13511         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13512         instead of a conditional.  Comment about the situation in more detail.
13513         This undoes most of the 2009-10-29 patch.
13514
13515 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13516
13517         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13518         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13519         * lib/unistr/u8-strchr.c: Likewise.
13520         * modules/unistr/u8-chr: Depend on memchr.
13521
13522         unistr/u*-strchr: add tests
13523         * modules/unistr/u8-strchr-tests: New file.
13524         * modules/unistr/u16-strchr-tests: New file.
13525         * modules/unistr/u32-strchr-tests: New file.
13526         * tests/unistr/test-strchr.h: New file.
13527         * tests/unistr/test-u8-strchr.c: New file.
13528         * tests/unistr/test-u16-strchr.c: New file.
13529         * tests/unistr/test-u32-strchr.c: New file.
13530
13531         unistr/u*-chr: test multibyte sequences more
13532         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13533         test vector.
13534         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13535         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13536         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13537
13538         unistr/u*-chr: test multibyte sequences
13539         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13540
13541         unistr/u*-chr: prepare for multibyte tests
13542         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13543         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13544         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13545         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13546         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13547         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13548
13549 2010-07-18  Bruno Haible  <bruno@clisp.org>
13550
13551         unistr/u8-strchr: Optimize non-ASCII argument case.
13552         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13553         because the first byte often matches anyway.
13554         Reported by Pádraig Brady <P@draigbrady.com>.
13555
13556 2010-07-15  Karl Berry  <karl@gnu.org>
13557
13558         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13559
13560 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13561
13562         getcwd: on Solaris, work better if ancestors are inaccessible
13563         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13564         buffer and size, try again with a large buffer.  This works better
13565         on Solaris, since its getcwd succeeds even if the path to the root
13566         is inaccessible, and this is helpful in common cases such as .zfs
13567         hidden directories.  Problem reported by J Chapman Flack in
13568         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13569         Use system getcwd if it's declared, not merely if it's partly
13570         working; use the partly-working test only to avoid needless effort
13571         if the system getcwd fails.
13572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13573         comment that was already obsolete and is now even more obsolete.
13574         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13575         now might call strdup.
13576
13577 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13578
13579         pthread: Add enough so that coreutils/src/sort.c compiles.
13580         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13581         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13582         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13583         Include <sys/types.h>, in case it defines pthread_t.
13584         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13585         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13586         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13587         (pthread_rwlockattr_t, pthread_spinlock_t):
13588         New typedefs, if HAVE_PTHREAD_T is not defined.
13589         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13590         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13591         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13592         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13593         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13594         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13595         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13596         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13597         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13598         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13599         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13600         New macros.
13601         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13602         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13603         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13604         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13605         (pthread_spin_unlock): New dummy functions.
13606         (pthread_create): Return EAGAIN; don't set errno.
13607         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13608         require AC_C_INLINE.
13609         * modules/pthread (Depends-on): Add sched, time.
13610         (pthread.h): Use AM_V_GEN.
13611
13612 2010-07-13  Bruno Haible  <bruno@clisp.org>
13613
13614         striconveh: Don't malloc memory if the result buffer is sufficient.
13615         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13616         buffer if its size is sufficient.
13617         Reported by Ludovic Courtès <ludo@gnu.org>.
13618
13619 2010-07-13  Bruno Haible  <bruno@clisp.org>
13620
13621         strtod: Add safety check.
13622         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13623
13624 2010-07-12  Bruno Haible  <bruno@clisp.org>
13625
13626         Unify tests that set gl_cv_func_ldexpl_no_libm.
13627         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13628         gl_FUNC_LDEXPL.
13629         (gl_FUNC_LDEXPL): Invoke it.
13630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13631
13632 2010-07-12  Bruno Haible  <bruno@clisp.org>
13633
13634         Unify tests that set gl_cv_func_ldexp_no_libm.
13635         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13636         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13637         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13638         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13639         * modules/strtod (Files): Add m4/ldexp.m4.
13640
13641 2010-07-12  Bruno Haible  <bruno@clisp.org>
13642
13643         Unify tests that set gl_cv_func_frexpl_no_libm.
13644         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13645         gl_FUNC_FREXPL_NO_LIBM.
13646         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13647         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13648
13649 2010-07-12  Bruno Haible  <bruno@clisp.org>
13650
13651         Unify tests that set gl_cv_func_frexp_no_libm.
13652         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13653         gl_FUNC_FREXP_NO_LIBM.
13654         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13655         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13656
13657 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13658
13659         memcoll: clarify sizes versus lengths, document better, and tweak perf
13660         * lib/memcoll.c (strcoll_loop, memcoll0):
13661         Improve quality of descriptive comments.  Name variables
13662         consistently as to whether they are lengths (which do not include
13663         terminating null) versus sizes (which do).
13664         * lib/xmemcoll.c (xmemcoll0): Likewise.
13665         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13666         returned when s1size == 0; this is easier to compile and saves
13667         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13668
13669 2010-07-12  Bruno Haible  <bruno@clisp.org>
13670
13671         Tests for module '_Exit'.
13672         * modules/_Exit-tests: New file.
13673         * tests/test-_Exit.sh: New file.
13674         * tests/test-_Exit.c: New file.
13675
13676         New module '_Exit'.
13677         * lib/stdlib.in.h (__attribute__): New macro.
13678         (_Exit): New declaration.
13679         * lib/_Exit.c: New file.
13680         * m4/_Exit.m4: New file.
13681         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13682         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13683         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13684         * modules/_Exit: New file.
13685         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13686         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13687
13688 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13689
13690         strtod: make it more-accurate typically, and don't require libm
13691         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13692         Include limits.h.  Don't include string.h.
13693         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13694         (locale_isspace): New function, so that no casts are needed to
13695         check whether *s is a space.
13696         (ldexp): Provide an unused dummy if not available.
13697         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13698         (strtod): Use them.  This implementation prefers to use the
13699         underlying strtod if available, falling back on our own code
13700         only to fix known bugs.  This is more likely to produce an
13701         accurate result.  Also, it avoids the use of libm functions.
13702         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13703         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13704         was absent, but it caused a test failure with coreutils.
13705         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13706         with libm.
13707         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13708         * modules/strtod-tests (Makefile.am): Likewise.
13709
13710 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13711             Bruno Haible  <bruno@clisp.org>
13712
13713         unistr/u8-strchr: Optimize ASCII argument case.
13714         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13715
13716 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13717
13718         (x)memcoll: minor tweaks
13719         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13720         is after the type that it qualifies.
13721         (memcoll0): Likewise.
13722         * lib/memcoll.h (memcoll0): Likewise.
13723         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13724         * lib/xmemcoll.h (xmemcoll0): Likewise.
13725         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13726         differs from memcoll in that the NUL byte is part of the argument.
13727         Omit the abort-checks, as performance is a real issue here.  Plus,
13728         the checks were wrong anyway (an off-by-one error).  Omit local
13729         variable 'diff', as it's a bit clearer that way.
13730         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13731         no longer needed.
13732
13733 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13734
13735         (x)memcoll: speedup when input is known to be NUL delimited
13736         * lib/memcoll.c: Include stdlib.
13737         (memcoll0): New function.
13738         (strcoll_loop): New function, refactored for use in both memcoll
13739         and memcoll0.
13740         * lib/memcoll.h (memcoll0): Add prototype.
13741         * lib/xmemcoll.c (xmemcoll0): New function.
13742         (collate_error): New function, refactored for use in both xmemcoll
13743         and xmemcoll0.
13744         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13745         * m4/memcoll.m4: add inline invocation.
13746
13747 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13748
13749         * build-aux/bootstrap: Remove any local translations
13750         from the translation project synchronization directory,
13751         so that local only translations are not distributed.
13752
13753 2010-07-04  Bruno Haible  <bruno@clisp.org>
13754
13755         fsusage: Clarify which code applies to which platforms.
13756         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13757         platform.
13758         * lib/fsusage.c (get_fs_usage): Likewise.
13759
13760 2010-07-04  Bruno Haible  <bruno@clisp.org>
13761
13762         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13763         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13764         Reported by Martin Lambers <marlam@marlam.de>.
13765
13766 2010-07-04  Jim Meyering  <meyering@redhat.com>
13767
13768         hash: once again explicitly disallow insertion of NULL
13769         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13770         inserting a NULL pointer cannot work with these functions.
13771         Add a comment with details.
13772         This reverts part of the 2010-07-01 commit, 5bef1a35
13773         "hash: extend module to deal with non-pointer keys".
13774
13775 2010-07-01  Bruno Haible  <bruno@clisp.org>
13776
13777         stdbool: Update doc.
13778         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13779         Info from Christian Weisgerber <naddy@mips.inka.de>.
13780
13781 2010-07-01  Jim Meyering  <meyering@redhat.com>
13782
13783         hash: extend module to deal with non-pointer keys
13784         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13785         but that allows insertion of non-pointer entries.
13786         Do not disallow an ENTRY value of NULL.
13787         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13788         * lib/hash.h (hash_insert0): Declare.
13789
13790 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13791
13792         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13793         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13794         not present (i.e. with autoconf 2.59 and when using gettextize, not
13795         gnulib), require AC_GNU_SOURCE instead.
13796
13797 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13798
13799         idpriv-drop: Fix tests.
13800         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13801         not to the test-idpriv-droptemp program.
13802
13803 2010-06-29  Bruno Haible  <bruno@clisp.org>
13804
13805         string: Fix syntax error with g++ 2.96.
13806         * lib/string.in.h (__pure__): Remove definition.
13807         (_GL_ATTRIBUTE_PURE): New macro.
13808         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13809         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13810         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13811
13812 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13813
13814         unitypes: Fix bug introduced on 2010-05-18.
13815         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13816
13817 2010-06-22  Eric Blake  <eblake@redhat.com>
13818
13819         memmem: slight optimization
13820         * lib/str-two-way.h (critical_factorization): Update comments.
13821         Reduce work during factorization phase.
13822         Reported by Carlos Bueno <carlos@bueno.org>.
13823
13824 2010-06-21  Bruno Haible  <bruno@clisp.org>
13825
13826         Fix HAVE_CALLOC_POSIX misnomer.
13827         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13828         !HAVE_CALLOC_POSIX.
13829         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13830         HAVE_CALLOC_POSIX.
13831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13832         instead of HAVE_CALLOC_POSIX.
13833         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13834         HAVE_CALLOC_POSIX.
13835
13836         Use modern idiom for calloc() replacement.
13837         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13838         AC_FUNC_CALLOC.
13839         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13840         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13841         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13842         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13843         (gl_REPLACE_CALLOC): New macro.
13844
13845 2010-06-21  Bruno Haible  <bruno@clisp.org>
13846
13847         Fix HAVE_REALLOC_POSIX misnomer.
13848         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13849         !HAVE_REALLOC_POSIX.
13850         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13851         HAVE_REALLOC_POSIX.
13852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13853         instead of HAVE_REALLOC_POSIX.
13854         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13855         HAVE_REALLOC_POSIX.
13856
13857         Use modern idiom for realloc() replacement.
13858         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13859         AC_FUNC_REALLOC.
13860         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13861         Autoconf's AC_FUNC_REALLOC.
13862         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13863         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13864         (gl_REPLACE_REALLOC): New macro.
13865         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13866
13867 2010-06-21  Bruno Haible  <bruno@clisp.org>
13868
13869         Fix HAVE_MALLOC_POSIX misnomer.
13870         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13871         !HAVE_MALLOC_POSIX.
13872         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13873         HAVE_MALLOC_POSIX.
13874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13875         instead of HAVE_MALLOC_POSIX.
13876         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13877         HAVE_MALLOC_POSIX.
13878
13879         Use modern idiom for malloc() replacement.
13880         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13881         AC_FUNC_MALLOC.
13882         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13883         Autoconf's AC_FUNC_MALLOC.
13884         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13885         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13886         (gl_REPLACE_MALLOC): New macro.
13887         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13888
13889 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13890
13891         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13892         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13893         This macro takes 3 arguments, not 4.
13894
13895 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13896
13897         ipv6: fix detection under mingw
13898         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13899         in6_addr.
13900
13901 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13902
13903         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13904         that strtod() works when cross-compiling to a glibc version known
13905         to work.
13906
13907 2010-06-15  Bruno Haible  <bruno@clisp.org>
13908
13909         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13910
13911 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13912
13913         select: Correct timeout.
13914         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13915
13916 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13917
13918         git-version-gen: init shell var to avoid env var influence
13919         * build-aux/git-version-gen (v): Init shell var to empty.
13920
13921 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13922
13923         priv-set: Don't assume that priv.h exists merely because getppriv does.
13924         See Jan Andersen's bug report about AIX 5L in
13925         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13926         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13927         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13928         * lib/priv-set.h: Likewise.
13929         * tests/test-priv-set.c: Likewise.
13930
13931 2010-06-13  Bruno Haible  <bruno@clisp.org>
13932
13933         relocatable: Make it easier to test whether to install wrappers.
13934         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13935         RELOCATABLE_VIA_WRAPPER.
13936
13937 2010-06-13  Bruno Haible  <bruno@clisp.org>
13938
13939         gnulib-tool: Display specified modules and dependencies differently.
13940         * gnulib-tool (func_show_module_list): New function.
13941         (func_import, func_create_testdir): Invoke it.
13942         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13943
13944 2010-06-13  Bruno Haible  <bruno@clisp.org>
13945
13946         gnulib-tool: Align code of func_import and func_create_testdir.
13947         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13948         specified_modules.
13949
13950 2010-06-12  Jim Meyering  <meyering@redhat.com>
13951
13952         test-inttostr: avoid spurious failure on Solaris 9
13953         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13954         to accept "%ju".  Reported by Bruno Haible.
13955
13956 2010-06-11  Jim Meyering  <meyering@redhat.com>
13957
13958         test-sys_socket: mark variables as used more readably
13959         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13960         as "used" explicitly via (void) statement casts.  This is more
13961         readable than using them in an artificial return expression.
13962         Suggestion from Bruno Haible.
13963
13964 2010-06-11  Bruno Haible  <bruno@clisp.org>
13965
13966         Avoid some more warnings from "gcc -Wwrite-strings".
13967         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13968         to 'const char *'.
13969         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13970         * tests/test-c-strcasestr.c (main): Likewise.
13971         * tests/test-mbscasestr1.c (main): Likewise.
13972         * tests/test-mbscasestr2.c (main): Likewise.
13973         * tests/test-memmem.c (main): Likewise.
13974         * tests/test-strstr.c (main): Likewise.
13975         * tests/test-strcasestr.c (main): Likewise.
13976
13977 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13978
13979         init.sh: change framework_failure_ to fail with status 99, not 1
13980         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13981         automake's parallel-tests rule that this is an unexpected failure,
13982         even if the test is listed in XFAIL_TESTS.
13983
13984 2010-06-11  Jim Meyering  <meyering@redhat.com>
13985
13986         test-inttostr: avoid warnings about 4-6KB literal strings
13987         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13988         Include "macros.h", for its definition of ASSERT.
13989         (CK): s/assert/ASSERT/
13990         * modules/inttostr-tests (Files): Add macros.h.
13991
13992         init.sh: don't use $ME_ or skip_ before they are defined
13993         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13994         their first uses.  Also hoist their companions: warn_, fail_,
13995         framework_failure_, $stderr_fileno.  Prompted by a patch from
13996         Stefano Lattarini.
13997
13998         test-sys_socket: avoid set-but-not-used warnings from gcc
13999         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14000         avoid warning about set-but-not-used variables.
14001
14002         test-xvasprintf: avoid 'const' discard warnings
14003         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14004         "const" when assigning from literal strings.
14005         (test_xasprintf): Add "void" in function argument list to placate
14006         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14007
14008         tests: avoid compilation warnings in argmatch and exclude tests...
14009         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14010         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14011         Since it always exits, declare with the "noreturn" attribute.
14012         * tests/test-argmatch.c: Likewise.
14013
14014         tests: avoid 'const' discard warnings in mbsstr tests
14015         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14016         * tests/test-mbsstr2.c (main): Likewise.
14017
14018         test-verify: avoid warning from gcc's -Wmissing-declarations
14019         * tests/test-verify.c (function): Declare to be static.
14020
14021         test-inttostr.c: include <string.h> for use of strcmp
14022         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14023
14024         test-linkat: avoid failed assertion on "other" architectures
14025         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14026         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14027         sparc: https://bugs.launchpad.net/bugs/591968
14028
14029 2010-06-11  Jim Meyering  <meyering@redhat.com>
14030
14031         printf.m4: avoid autoconf's "Expanded Before Required" warning
14032         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14033         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14034         autoconf warning.
14035
14036 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14037
14038         Replacement header templates are now named with ".in", not "_".
14039         * doc/gnulib-intro.texi: Correct.
14040
14041 2010-06-10  Jim Meyering  <meyering@redhat.com>
14042
14043         inttostr-tests: depend on snprintf, not snprintf-posix
14044         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14045         snprintf-posix, to avoid this aclocal failure:
14046           missing file gnulib-tests/vasnprintf.c
14047           configure.ac:45: error: expected source file, required through \
14048           AC_LIBSOURCES, not found
14049
14050 2010-06-10  Jim Meyering  <meyering@redhat.com>
14051
14052         inttostr: add a new function, inttostr, and tests
14053         The namesake function was not available.  The existence of the
14054         template file, inttostr.c makes its addition nontrivial.
14055         * lib/anytostr.c: Rename from inttostr.c.
14056         (anytostr): Rename from inttostr.
14057         * lib/inttostr.c: New file.
14058         * modules/inttostr (Files): Add anytostr.c.
14059         (Makefile.am): Set lib_SOURCES instead of ...
14060         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14061         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14062         * lib/offtostr.c: Likewise.
14063         * lib/uinttostr.c: Likewise.
14064         * lib/umaxtostr.c: Likewise.
14065         * modules/inttostr-tests: New file.
14066         * tests/test-inttostr.c: New file.  Test these functions.
14067
14068 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14069             Bruno Haible  <bruno@clisp.org>
14070
14071         Add "Extending Gnulib" chapter to manual.
14072         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14073         chapter.
14074         (Extending Gnulib): New chapter.
14075         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14076         chapter.
14077
14078 2010-06-09  Bruno Haible  <bruno@clisp.org>
14079
14080         Avoid relocwrapper link errors due to gnulib replacement functions.
14081         * lib/areadlink.c: Use the system's malloc, realloc functions.
14082         (areadlink): Set errno to ENOMEM explicitly.
14083         * modules/areadlink (Depends-on): Remove malloc-posix.
14084         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14085
14086 2010-06-09  Bruno Haible  <bruno@clisp.org>
14087
14088         Avoid relocwrapper link errors due to gnulib replacement functions.
14089         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14090         * lib/malloca.c: Likewise.
14091         * lib/relocatable.c: Likewise.
14092         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14093         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14094         * lib/setenv.c: Use the system's malloc, realloc functions.
14095         * lib/strerror.c: Use the system's sprintf function.
14096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14097
14098 2010-06-04  Bruno Haible  <bruno@clisp.org>
14099
14100         Prefer documented low-level autoconf macro names.
14101         * m4/lib-link.m4: Use m4_translit instead of translit.
14102         * m4/environ.m4: Likewise.
14103         * m4/mathfunc.m4: Likewise.
14104         * m4/onceonly.m4: Likewise.
14105         * m4/stdint.m4: Likewise.
14106         Suggested by Eric Blake.
14107
14108 2010-06-04  Martin Lambers  <marlam@marlam.de>
14109             Bruno Haible  <bruno@clisp.org>
14110
14111         havelib: Allow library names with '+' characters.
14112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14113         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14114
14115 2010-06-09  Bruno Haible  <bruno@clisp.org>
14116
14117         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14118         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14119         realloc failed.
14120
14121 2010-06-08  Peter Simons  <simons@cryp.to>
14122
14123         maint.mk: make the news-check rule more configurable
14124         * top/maint.mk (news-check-lines-spec): New variable.
14125         (news-check): Use "sed -n 1,10p" in place of "head".
14126
14127 2010-06-07  Jim Meyering  <meyering@redhat.com>
14128
14129         do-release-commit-and-tag: fix typo in --help
14130         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14131
14132         regex: avoid new dead-code warning with gcc-4.6.0
14133         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14134         if-block containing a while-loop.  It's been unused for at least
14135         5 years.
14136
14137 2010-06-05  Bruno Haible  <bruno@clisp.org>
14138
14139         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14140         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14141
14142 2010-06-04  Bruno Haible  <bruno@clisp.org>
14143
14144         Update to GNU gettext 0.18.1.
14145         * modules/gettext (configure.ac): Require gettext infrastructure from
14146         version 0.18.1.
14147
14148 2010-06-03  Bruno Haible  <bruno@clisp.org>
14149
14150         Don't use AC_LIBOBJ with file names in subdirectories.
14151         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14152         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14153         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14154         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14155         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14156         gl_LIBUNISTRING_LIBSOURCE.
14157         (Makefile.am): Augment lib_SOURCES here, conditionally.
14158         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14159
14160 2010-06-03  Bruno Haible  <bruno@clisp.org>
14161
14162         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14163         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14164         expansion does not end with a newline.
14165         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14166         unnecessary newline.
14167
14168 2010-06-03  Bruno Haible  <bruno@clisp.org>
14169
14170         Reduce dependencies.
14171         * tests/test-quotearg.h: New file, extracted from
14172         tests/test-quotearg.c.
14173         * tests/test-quotearg-simple.c: New file, extracted from
14174         tests/test-quotearg.c.
14175         * tests/test-quotearg.c: Don't include <ctype.h>.
14176         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14177         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14178         use_quote_double_quotes, use_quotearg_colon): Moved to
14179         tests/test-quotearg.h.
14180         (results_g, flag_results, custom_quotes, custom_results): Moved
14181         to tests/test-quotearg-simple.c.
14182         (main): Moved the part that does not depend on gettext to
14183         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14184         performed.
14185         * modules/quotearg-simple: New file.
14186         * modules/quotearg-simple-tests: New file.
14187         * modules/quotearg (Depends-on): Add quotearg-simple.
14188         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14189         (Files): Add tests/test-quotearg.h.
14190         Reported by Paolo Bonzini.
14191
14192 2010-06-03  Bruno Haible  <bruno@clisp.org>
14193
14194         Reduce dependencies.
14195         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14196
14197 2010-06-03  Bruno Haible  <bruno@clisp.org>
14198
14199         time: Undefine more broken macros.
14200         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14201         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14202         Reported by Eric Blake.
14203
14204 2010-06-03  Bruno Haible  <bruno@clisp.org>
14205
14206         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14207         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14208         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14209         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14210         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14211         Reported by Ludovic Courtès <ludo@gnu.org>.
14212
14213 2010-06-02  Eric Blake  <eblake@redhat.com>
14214
14215         time: work with mingw + pthreads-win32 library
14216         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14217         if timespec is defined only in pthread.h.
14218         * modules/time (Makefile.am): Substitute it.
14219         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14220         <pthread.h>, when needed.
14221         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14222         from the library.
14223
14224 2010-05-31  Bruno Haible  <bruno@clisp.org>
14225
14226         Avoid expanding two macros in the wrong order.
14227         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14228         gl_LIBUNISTRING if it is defined.
14229         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14230         autoconf >= 2.64.
14231         Reported by Ludovic Courtès <ludo@gnu.org>.
14232
14233 2010-05-27  Jim Meyering  <meyering@redhat.com>
14234
14235         maint.mk: also prohibit "#undef" of always-defined symbols
14236         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14237         Allow more than one space before the symbol name.
14238         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14239         the regexp uses alternation.
14240
14241 2010-05-26  Eric Blake  <eblake@redhat.com>
14242
14243         maint.mk: avoid echo -e
14244         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14245         Convert all uses of echo -* to printf.
14246         Reported by Matthias Bolte.
14247
14248 2010-05-25  Bruno Haible  <bruno@clisp.org>
14249
14250         Update to GNU gettext 0.18, part 2.
14251         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14252         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14253
14254 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14255
14256         Add missing include in test-pwrite.c.
14257         * tests/test-pwrite.c: Include string.h, for strcmp.
14258
14259 2010-05-24  Bruno Haible  <bruno@clisp.org>
14260
14261         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14262
14263 2010-05-24  Bruno Haible  <bruno@clisp.org>
14264
14265         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14266         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14267         iconveh_error argument.
14268         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14269         U_STRCONV_TO_LOCALE.
14270         * lib/unistr/u16-strcoll.c: Likewise.
14271         * lib/unistr/u32-strcoll.c: Likewise.
14272         * modules/unistr/u8-strcoll (Depends-on): Add
14273         uniconv/u8-strconv-to-enc, localcharset. Remove
14274         uniconv/u8-strconv-to-locale.
14275         (configure.ac): Bump version number.
14276         * modules/unistr/u16-strcoll (Depends-on): Add
14277         uniconv/u16-strconv-to-enc, localcharset. Remove
14278         uniconv/u16-strconv-to-locale.
14279         (configure.ac): Bump version number.
14280         * modules/unistr/u32-strcoll (Depends-on): Add
14281         uniconv/u32-strconv-to-enc, localcharset. Remove
14282         uniconv/u32-strconv-to-locale.
14283         (configure.ac): Bump version number.
14284
14285 2010-05-24  Bruno Haible  <bruno@clisp.org>
14286
14287         Avoid a test failure on NetBSD 5.0.
14288         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14289         an iconv() bug.
14290
14291 2010-05-24  Bruno Haible  <bruno@clisp.org>
14292
14293         Adjust #include directive style.
14294         * modules/regex (Includes): Recommend to write <regex.h>.
14295
14296 2010-05-24  Bruno Haible  <bruno@clisp.org>
14297
14298         regex: Don't require alloca.
14299         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14300         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14301         only inside if (0).
14302
14303 2010-05-23  Jim Meyering  <meyering@redhat.com>
14304
14305         test-renameat.c: include <sys/stat.h>
14306         * tests/test-renameat.c: Include <sys/stat.h>; required for
14307         definition of S_IS* macros.
14308
14309 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14310
14311         Update maintainer documentation for 'relocatable-prog' module.
14312         * doc/relocatable-maint.texi: Update.
14313         Comments by Bruno Haible.
14314
14315 2010-05-23  Bruno Haible  <bruno@clisp.org>
14316
14317         git-merge-changelog: Enable --split-merged-entry by default.
14318         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14319         (usage): Don't mention this option any more.
14320         Reported by Ralf Wildenhues.
14321
14322 2010-05-23  Jim Meyering  <meyering@redhat.com>
14323
14324         test-pwrite: do not leave behind a test file named "out"
14325         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14326         The trivial-looking use of init.sh is really necessary.
14327         It ensures that the temporary file, "out", is created in
14328         a temporary directory, and removed upon termination.
14329         * tests/test-pwrite.sh: Re-add file.
14330         * modules/pwrite-tests: Reference it.
14331
14332 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14333
14334         Fix output redirection buglet in init.sh.
14335         * tests/init.sh: Fix redirection of stderr.
14336
14337 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14338
14339         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14340
14341 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14342
14343         * modules/valgrind-tests: New file.
14344         * m4/valgrind-tests.m4: New file.
14345         * doc/valgrind-tests.texi: New file.
14346         * doc/gnulib.texi (Running self-tests under valgrind): New
14347         section.
14348
14349 2010-05-19  Bruno Haible  <bruno@clisp.org>
14350
14351         Clean up dead code in recent commit.
14352         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14353         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14354         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14355         Suggested by Paolo Bonzini.
14356
14357 2010-05-19  Bruno Haible  <bruno@clisp.org>
14358
14359         Avoid valgrind error reports from libunistring.
14360         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14361         * modules/libunistring (Files): Add it.
14362         * modules/libunistring-optional (Files): Likewise.
14363
14364 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14365             Bruno Haible  <bruno@clisp.org>
14366
14367         New module 'libunistring-optional'.
14368         * modules/libunistring-optional: New file.
14369         * m4/libunistring-base.m4: New file.
14370         * m4/libunistring-optional.m4: New file.
14371         * lib/unicase.in.h: Renamed from lib/unicase.h.
14372         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14373         * lib/unictype.in.h: Renamed from lib/unictype.h.
14374         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14375         * lib/uniname.in.h: Renamed from lib/uniname.h.
14376         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14377         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14378         * lib/unistr.in.h: Renamed from lib/unistr.h.
14379         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14380         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14381         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14382         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14383         gl_LIBUNISTRING. If the library was found, determine the installed
14384         version and set LIBUNISTRING_VERSION.
14385         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14386         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14387         handle a configuration option --with-included-libunistring.
14388         * modules/libunistring (Files): Add m4/absolute-header.m4.
14389         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14390         Add m4/libunistring-base.m4.
14391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14392         (Makefile.am): Build unicase.h from unicase.in.h.
14393         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14394         Add m4/libunistring-base.m4.
14395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14396         (Makefile.am): Build uniconv.h from uniconv.in.h.
14397         * modules/unictype/base (Files): Use unictype.in.h instead of
14398         unictype.h. Add m4/libunistring-base.m4.
14399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14400         (Makefile.am): Build unictype.h from unictype.in.h.
14401         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14402         Add m4/libunistring-base.m4.
14403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14404         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14405         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14406         Add m4/libunistring-base.m4.
14407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14408         (Makefile.am): Build uniname.h from uniname.in.h.
14409         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14410         Add m4/libunistring-base.m4.
14411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14412         (Makefile.am): Build uninorm.h from uninorm.in.h.
14413         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14414         unistdio.h. Add m4/libunistring-base.m4.
14415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14416         (Makefile.am): Build unistdio.h from unistdio.in.h.
14417         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14418         Add m4/libunistring-base.m4.
14419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14420         (Makefile.am): Build unistr.h from unistr.in.h.
14421         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14422         Add m4/libunistring-base.m4.
14423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14424         (Makefile.am): Build unitypes.h from unitypes.in.h.
14425         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14426         Add m4/libunistring-base.m4.
14427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14428         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14429         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14430         uniwidth.h. Add m4/libunistring-base.m4.
14431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14432         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14433         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14434         instead of augmenting lib_SOURCES.
14435         * modules/unicase/empty-suffix-context: Likewise.
14436         * modules/unicase/locale-language: Likewise.
14437         * modules/unicase/tolower: Likewise.
14438         * modules/unicase/totitle: Likewise.
14439         * modules/unicase/toupper: Likewise.
14440         * modules/unicase/u8-casecmp: Likewise.
14441         * modules/unicase/u8-casecoll: Likewise.
14442         * modules/unicase/u8-casefold: Likewise.
14443         * modules/unicase/u8-casexfrm: Likewise.
14444         * modules/unicase/u8-ct-casefold: Likewise.
14445         * modules/unicase/u8-ct-tolower: Likewise.
14446         * modules/unicase/u8-ct-totitle: Likewise.
14447         * modules/unicase/u8-ct-toupper: Likewise.
14448         * modules/unicase/u8-is-cased: Likewise.
14449         * modules/unicase/u8-is-casefolded: Likewise.
14450         * modules/unicase/u8-is-lowercase: Likewise.
14451         * modules/unicase/u8-is-titlecase: Likewise.
14452         * modules/unicase/u8-is-uppercase: Likewise.
14453         * modules/unicase/u8-prefix-context: Likewise.
14454         * modules/unicase/u8-suffix-context: Likewise.
14455         * modules/unicase/u8-tolower: Likewise.
14456         * modules/unicase/u8-totitle: Likewise.
14457         * modules/unicase/u8-toupper: Likewise.
14458         * modules/unicase/u16-casecmp: Likewise.
14459         * modules/unicase/u16-casecoll: Likewise.
14460         * modules/unicase/u16-casefold: Likewise.
14461         * modules/unicase/u16-casexfrm: Likewise.
14462         * modules/unicase/u16-ct-casefold: Likewise.
14463         * modules/unicase/u16-ct-tolower: Likewise.
14464         * modules/unicase/u16-ct-totitle: Likewise.
14465         * modules/unicase/u16-ct-toupper: Likewise.
14466         * modules/unicase/u16-is-cased: Likewise.
14467         * modules/unicase/u16-is-casefolded: Likewise.
14468         * modules/unicase/u16-is-lowercase: Likewise.
14469         * modules/unicase/u16-is-titlecase: Likewise.
14470         * modules/unicase/u16-is-uppercase: Likewise.
14471         * modules/unicase/u16-prefix-context: Likewise.
14472         * modules/unicase/u16-suffix-context: Likewise.
14473         * modules/unicase/u16-tolower: Likewise.
14474         * modules/unicase/u16-totitle: Likewise.
14475         * modules/unicase/u16-toupper: Likewise.
14476         * modules/unicase/u32-casecmp: Likewise.
14477         * modules/unicase/u32-casecoll: Likewise.
14478         * modules/unicase/u32-casefold: Likewise.
14479         * modules/unicase/u32-casexfrm: Likewise.
14480         * modules/unicase/u32-ct-casefold: Likewise.
14481         * modules/unicase/u32-ct-tolower: Likewise.
14482         * modules/unicase/u32-ct-totitle: Likewise.
14483         * modules/unicase/u32-ct-toupper: Likewise.
14484         * modules/unicase/u32-is-cased: Likewise.
14485         * modules/unicase/u32-is-casefolded: Likewise.
14486         * modules/unicase/u32-is-lowercase: Likewise.
14487         * modules/unicase/u32-is-titlecase: Likewise.
14488         * modules/unicase/u32-is-uppercase: Likewise.
14489         * modules/unicase/u32-prefix-context: Likewise.
14490         * modules/unicase/u32-suffix-context: Likewise.
14491         * modules/unicase/u32-tolower: Likewise.
14492         * modules/unicase/u32-totitle: Likewise.
14493         * modules/unicase/u32-toupper: Likewise.
14494         * modules/unicase/ulc-casecmp: Likewise.
14495         * modules/unicase/ulc-casecoll: Likewise.
14496         * modules/unicase/ulc-casexfrm: Likewise.
14497         * modules/uniconv/u8-conv-from-enc: Likewise.
14498         * modules/uniconv/u8-conv-to-enc: Likewise.
14499         * modules/uniconv/u8-strconv-from-enc: Likewise.
14500         * modules/uniconv/u8-strconv-from-locale: Likewise.
14501         * modules/uniconv/u8-strconv-to-enc: Likewise.
14502         * modules/uniconv/u8-strconv-to-locale: Likewise.
14503         * modules/uniconv/u16-conv-from-enc: Likewise.
14504         * modules/uniconv/u16-conv-to-enc: Likewise.
14505         * modules/uniconv/u16-strconv-from-enc: Likewise.
14506         * modules/uniconv/u16-strconv-from-locale: Likewise.
14507         * modules/uniconv/u16-strconv-to-enc: Likewise.
14508         * modules/uniconv/u16-strconv-to-locale: Likewise.
14509         * modules/uniconv/u32-conv-from-enc: Likewise.
14510         * modules/uniconv/u32-conv-to-enc: Likewise.
14511         * modules/uniconv/u32-strconv-from-enc: Likewise.
14512         * modules/uniconv/u32-strconv-from-locale: Likewise.
14513         * modules/uniconv/u32-strconv-to-enc: Likewise.
14514         * modules/uniconv/u32-strconv-to-locale: Likewise.
14515         * modules/unictype/bidicategory-byname: Likewise.
14516         * modules/unictype/bidicategory-name: Likewise.
14517         * modules/unictype/bidicategory-of: Likewise.
14518         * modules/unictype/bidicategory-test: Likewise.
14519         * modules/unictype/block-list: Likewise.
14520         * modules/unictype/block-test: Likewise.
14521         * modules/unictype/category-C: Likewise.
14522         * modules/unictype/category-Cc: Likewise.
14523         * modules/unictype/category-Cf: Likewise.
14524         * modules/unictype/category-Cn: Likewise.
14525         * modules/unictype/category-Co: Likewise.
14526         * modules/unictype/category-Cs: Likewise.
14527         * modules/unictype/category-L: Likewise.
14528         * modules/unictype/category-Ll: Likewise.
14529         * modules/unictype/category-Lm: Likewise.
14530         * modules/unictype/category-Lo: Likewise.
14531         * modules/unictype/category-Lt: Likewise.
14532         * modules/unictype/category-Lu: Likewise.
14533         * modules/unictype/category-M: Likewise.
14534         * modules/unictype/category-Mc: Likewise.
14535         * modules/unictype/category-Me: Likewise.
14536         * modules/unictype/category-Mn: Likewise.
14537         * modules/unictype/category-N: Likewise.
14538         * modules/unictype/category-Nd: Likewise.
14539         * modules/unictype/category-Nl: Likewise.
14540         * modules/unictype/category-No: Likewise.
14541         * modules/unictype/category-P: Likewise.
14542         * modules/unictype/category-Pc: Likewise.
14543         * modules/unictype/category-Pd: Likewise.
14544         * modules/unictype/category-Pe: Likewise.
14545         * modules/unictype/category-Pf: Likewise.
14546         * modules/unictype/category-Pi: Likewise.
14547         * modules/unictype/category-Po: Likewise.
14548         * modules/unictype/category-Ps: Likewise.
14549         * modules/unictype/category-S: Likewise.
14550         * modules/unictype/category-Sc: Likewise.
14551         * modules/unictype/category-Sk: Likewise.
14552         * modules/unictype/category-Sm: Likewise.
14553         * modules/unictype/category-So: Likewise.
14554         * modules/unictype/category-Z: Likewise.
14555         * modules/unictype/category-Zl: Likewise.
14556         * modules/unictype/category-Zp: Likewise.
14557         * modules/unictype/category-Zs: Likewise.
14558         * modules/unictype/category-and: Likewise.
14559         * modules/unictype/category-and-not: Likewise.
14560         * modules/unictype/category-byname: Likewise.
14561         * modules/unictype/category-name: Likewise.
14562         * modules/unictype/category-none: Likewise.
14563         * modules/unictype/category-of: Likewise.
14564         * modules/unictype/category-or: Likewise.
14565         * modules/unictype/category-test: Likewise.
14566         * modules/unictype/combining-class: Likewise.
14567         * modules/unictype/ctype-alnum: Likewise.
14568         * modules/unictype/ctype-alpha: Likewise.
14569         * modules/unictype/ctype-blank: Likewise.
14570         * modules/unictype/ctype-cntrl: Likewise.
14571         * modules/unictype/ctype-digit: Likewise.
14572         * modules/unictype/ctype-graph: Likewise.
14573         * modules/unictype/ctype-lower: Likewise.
14574         * modules/unictype/ctype-print: Likewise.
14575         * modules/unictype/ctype-punct: Likewise.
14576         * modules/unictype/ctype-space: Likewise.
14577         * modules/unictype/ctype-upper: Likewise.
14578         * modules/unictype/ctype-xdigit: Likewise.
14579         * modules/unictype/decimal-digit: Likewise.
14580         * modules/unictype/digit: Likewise.
14581         * modules/unictype/mirror: Likewise.
14582         * modules/unictype/numeric: Likewise.
14583         * modules/unictype/property-alphabetic: Likewise.
14584         * modules/unictype/property-ascii-hex-digit: Likewise.
14585         * modules/unictype/property-bidi-arabic-digit: Likewise.
14586         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14587         * modules/unictype/property-bidi-block-separator: Likewise.
14588         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14589         * modules/unictype/property-bidi-common-separator: Likewise.
14590         * modules/unictype/property-bidi-control: Likewise.
14591         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14592         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14593         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14594         * modules/unictype/property-bidi-european-digit: Likewise.
14595         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14596         * modules/unictype/property-bidi-left-to-right: Likewise.
14597         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14598         * modules/unictype/property-bidi-other-neutral: Likewise.
14599         * modules/unictype/property-bidi-pdf: Likewise.
14600         * modules/unictype/property-bidi-segment-separator: Likewise.
14601         * modules/unictype/property-bidi-whitespace: Likewise.
14602         * modules/unictype/property-byname: Likewise.
14603         * modules/unictype/property-combining: Likewise.
14604         * modules/unictype/property-composite: Likewise.
14605         * modules/unictype/property-currency-symbol: Likewise.
14606         * modules/unictype/property-dash: Likewise.
14607         * modules/unictype/property-decimal-digit: Likewise.
14608         * modules/unictype/property-default-ignorable-code-point: Likewise.
14609         * modules/unictype/property-deprecated: Likewise.
14610         * modules/unictype/property-diacritic: Likewise.
14611         * modules/unictype/property-extender: Likewise.
14612         * modules/unictype/property-format-control: Likewise.
14613         * modules/unictype/property-grapheme-base: Likewise.
14614         * modules/unictype/property-grapheme-extend: Likewise.
14615         * modules/unictype/property-grapheme-link: Likewise.
14616         * modules/unictype/property-hex-digit: Likewise.
14617         * modules/unictype/property-hyphen: Likewise.
14618         * modules/unictype/property-id-continue: Likewise.
14619         * modules/unictype/property-id-start: Likewise.
14620         * modules/unictype/property-ideographic: Likewise.
14621         * modules/unictype/property-ids-binary-operator: Likewise.
14622         * modules/unictype/property-ids-trinary-operator: Likewise.
14623         * modules/unictype/property-ignorable-control: Likewise.
14624         * modules/unictype/property-iso-control: Likewise.
14625         * modules/unictype/property-join-control: Likewise.
14626         * modules/unictype/property-left-of-pair: Likewise.
14627         * modules/unictype/property-line-separator: Likewise.
14628         * modules/unictype/property-logical-order-exception: Likewise.
14629         * modules/unictype/property-lowercase: Likewise.
14630         * modules/unictype/property-math: Likewise.
14631         * modules/unictype/property-non-break: Likewise.
14632         * modules/unictype/property-not-a-character: Likewise.
14633         * modules/unictype/property-numeric: Likewise.
14634         * modules/unictype/property-other-alphabetic: Likewise.
14635         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14636         * modules/unictype/property-other-grapheme-extend: Likewise.
14637         * modules/unictype/property-other-id-continue: Likewise.
14638         * modules/unictype/property-other-id-start: Likewise.
14639         * modules/unictype/property-other-lowercase: Likewise.
14640         * modules/unictype/property-other-math: Likewise.
14641         * modules/unictype/property-other-uppercase: Likewise.
14642         * modules/unictype/property-paired-punctuation: Likewise.
14643         * modules/unictype/property-paragraph-separator: Likewise.
14644         * modules/unictype/property-pattern-syntax: Likewise.
14645         * modules/unictype/property-pattern-white-space: Likewise.
14646         * modules/unictype/property-private-use: Likewise.
14647         * modules/unictype/property-punctuation: Likewise.
14648         * modules/unictype/property-quotation-mark: Likewise.
14649         * modules/unictype/property-radical: Likewise.
14650         * modules/unictype/property-sentence-terminal: Likewise.
14651         * modules/unictype/property-soft-dotted: Likewise.
14652         * modules/unictype/property-space: Likewise.
14653         * modules/unictype/property-terminal-punctuation: Likewise.
14654         * modules/unictype/property-test: Likewise.
14655         * modules/unictype/property-titlecase: Likewise.
14656         * modules/unictype/property-unassigned-code-value: Likewise.
14657         * modules/unictype/property-unified-ideograph: Likewise.
14658         * modules/unictype/property-uppercase: Likewise.
14659         * modules/unictype/property-variation-selector: Likewise.
14660         * modules/unictype/property-white-space: Likewise.
14661         * modules/unictype/property-xid-continue: Likewise.
14662         * modules/unictype/property-xid-start: Likewise.
14663         * modules/unictype/property-zero-width: Likewise.
14664         * modules/unictype/scripts: Likewise.
14665         * modules/unictype/syntax-c-ident: Likewise.
14666         * modules/unictype/syntax-c-whitespace: Likewise.
14667         * modules/unictype/syntax-java-ident: Likewise.
14668         * modules/unictype/syntax-java-whitespace: Likewise.
14669         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14670         * modules/unilbrk/u8-width-linebreaks: Likewise.
14671         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14672         * modules/unilbrk/u16-width-linebreaks: Likewise.
14673         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14674         * modules/unilbrk/u32-width-linebreaks: Likewise.
14675         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14676         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14677         * modules/uniname/uniname: Likewise.
14678         * modules/uninorm/canonical-decomposition: Likewise.
14679         * modules/uninorm/composition: Likewise.
14680         * modules/uninorm/decomposing-form: Likewise.
14681         * modules/uninorm/decomposition: Likewise.
14682         * modules/uninorm/filter: Likewise.
14683         * modules/uninorm/nfc: Likewise.
14684         * modules/uninorm/nfd: Likewise.
14685         * modules/uninorm/nfkc: Likewise.
14686         * modules/uninorm/nfkd: Likewise.
14687         * modules/uninorm/u8-normalize: Likewise.
14688         * modules/uninorm/u8-normcmp: Likewise.
14689         * modules/uninorm/u8-normcoll: Likewise.
14690         * modules/uninorm/u8-normxfrm: Likewise.
14691         * modules/uninorm/u16-normalize: Likewise.
14692         * modules/uninorm/u16-normcmp: Likewise.
14693         * modules/uninorm/u16-normcoll: Likewise.
14694         * modules/uninorm/u16-normxfrm: Likewise.
14695         * modules/uninorm/u32-normalize: Likewise.
14696         * modules/uninorm/u32-normcmp: Likewise.
14697         * modules/uninorm/u32-normcoll: Likewise.
14698         * modules/uninorm/u32-normxfrm: Likewise.
14699         * modules/unistdio/u8-asnprintf: Likewise.
14700         * modules/unistdio/u8-asprintf: Likewise.
14701         * modules/unistdio/u8-snprintf: Likewise.
14702         * modules/unistdio/u8-sprintf: Likewise.
14703         * modules/unistdio/u8-u8-asnprintf: Likewise.
14704         * modules/unistdio/u8-u8-asprintf: Likewise.
14705         * modules/unistdio/u8-u8-snprintf: Likewise.
14706         * modules/unistdio/u8-u8-sprintf: Likewise.
14707         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14708         * modules/unistdio/u8-u8-vasprintf: Likewise.
14709         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14710         * modules/unistdio/u8-u8-vsprintf: Likewise.
14711         * modules/unistdio/u8-vasnprintf: Likewise.
14712         * modules/unistdio/u8-vasprintf: Likewise.
14713         * modules/unistdio/u8-vsnprintf: Likewise.
14714         * modules/unistdio/u8-vsprintf: Likewise.
14715         * modules/unistdio/u16-asnprintf: Likewise.
14716         * modules/unistdio/u16-asprintf: Likewise.
14717         * modules/unistdio/u16-snprintf: Likewise.
14718         * modules/unistdio/u16-sprintf: Likewise.
14719         * modules/unistdio/u16-u16-asnprintf: Likewise.
14720         * modules/unistdio/u16-u16-asprintf: Likewise.
14721         * modules/unistdio/u16-u16-snprintf: Likewise.
14722         * modules/unistdio/u16-u16-sprintf: Likewise.
14723         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14724         * modules/unistdio/u16-u16-vasprintf: Likewise.
14725         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14726         * modules/unistdio/u16-u16-vsprintf: Likewise.
14727         * modules/unistdio/u16-vasnprintf: Likewise.
14728         * modules/unistdio/u16-vasprintf: Likewise.
14729         * modules/unistdio/u16-vsnprintf: Likewise.
14730         * modules/unistdio/u16-vsprintf: Likewise.
14731         * modules/unistdio/u32-asnprintf: Likewise.
14732         * modules/unistdio/u32-asprintf: Likewise.
14733         * modules/unistdio/u32-snprintf: Likewise.
14734         * modules/unistdio/u32-sprintf: Likewise.
14735         * modules/unistdio/u32-u32-asnprintf: Likewise.
14736         * modules/unistdio/u32-u32-asprintf: Likewise.
14737         * modules/unistdio/u32-u32-snprintf: Likewise.
14738         * modules/unistdio/u32-u32-sprintf: Likewise.
14739         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14740         * modules/unistdio/u32-u32-vasprintf: Likewise.
14741         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14742         * modules/unistdio/u32-u32-vsprintf: Likewise.
14743         * modules/unistdio/u32-vasnprintf: Likewise.
14744         * modules/unistdio/u32-vasprintf: Likewise.
14745         * modules/unistdio/u32-vsnprintf: Likewise.
14746         * modules/unistdio/u32-vsprintf: Likewise.
14747         * modules/unistdio/ulc-asnprintf: Likewise.
14748         * modules/unistdio/ulc-asprintf: Likewise.
14749         * modules/unistdio/ulc-fprintf: Likewise.
14750         * modules/unistdio/ulc-snprintf: Likewise.
14751         * modules/unistdio/ulc-sprintf: Likewise.
14752         * modules/unistdio/ulc-vasnprintf: Likewise.
14753         * modules/unistdio/ulc-vasprintf: Likewise.
14754         * modules/unistdio/ulc-vfprintf: Likewise.
14755         * modules/unistdio/ulc-vsnprintf: Likewise.
14756         * modules/unistdio/ulc-vsprintf: Likewise.
14757         * modules/unistr/u8-check: Likewise.
14758         * modules/unistr/u8-chr: Likewise.
14759         * modules/unistr/u8-cmp: Likewise.
14760         * modules/unistr/u8-cmp2: Likewise.
14761         * modules/unistr/u8-cpy: Likewise.
14762         * modules/unistr/u8-cpy-alloc: Likewise.
14763         * modules/unistr/u8-endswith: Likewise.
14764         * modules/unistr/u8-mblen: Likewise.
14765         * modules/unistr/u8-mbsnlen: Likewise.
14766         * modules/unistr/u8-mbtouc: Likewise.
14767         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14768         * modules/unistr/u8-mbtoucr: Likewise.
14769         * modules/unistr/u8-move: Likewise.
14770         * modules/unistr/u8-next: Likewise.
14771         * modules/unistr/u8-prev: Likewise.
14772         * modules/unistr/u8-set: Likewise.
14773         * modules/unistr/u8-startswith: Likewise.
14774         * modules/unistr/u8-stpcpy: Likewise.
14775         * modules/unistr/u8-stpncpy: Likewise.
14776         * modules/unistr/u8-strcat: Likewise.
14777         * modules/unistr/u8-strchr: Likewise.
14778         * modules/unistr/u8-strcmp: Likewise.
14779         * modules/unistr/u8-strcoll: Likewise.
14780         * modules/unistr/u8-strcpy: Likewise.
14781         * modules/unistr/u8-strcspn: Likewise.
14782         * modules/unistr/u8-strdup: Likewise.
14783         * modules/unistr/u8-strlen: Likewise.
14784         * modules/unistr/u8-strmblen: Likewise.
14785         * modules/unistr/u8-strmbtouc: Likewise.
14786         * modules/unistr/u8-strncat: Likewise.
14787         * modules/unistr/u8-strncmp: Likewise.
14788         * modules/unistr/u8-strncpy: Likewise.
14789         * modules/unistr/u8-strnlen: Likewise.
14790         * modules/unistr/u8-strpbrk: Likewise.
14791         * modules/unistr/u8-strrchr: Likewise.
14792         * modules/unistr/u8-strspn: Likewise.
14793         * modules/unistr/u8-strstr: Likewise.
14794         * modules/unistr/u8-strtok: Likewise.
14795         * modules/unistr/u8-to-u16: Likewise.
14796         * modules/unistr/u8-to-u32: Likewise.
14797         * modules/unistr/u8-uctomb: Likewise.
14798         * modules/unistr/u16-check: Likewise.
14799         * modules/unistr/u16-chr: Likewise.
14800         * modules/unistr/u16-cmp: Likewise.
14801         * modules/unistr/u16-cmp2: Likewise.
14802         * modules/unistr/u16-cpy: Likewise.
14803         * modules/unistr/u16-cpy-alloc: Likewise.
14804         * modules/unistr/u16-endswith: Likewise.
14805         * modules/unistr/u16-mblen: Likewise.
14806         * modules/unistr/u16-mbsnlen: Likewise.
14807         * modules/unistr/u16-mbtouc: Likewise.
14808         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14809         * modules/unistr/u16-mbtoucr: Likewise.
14810         * modules/unistr/u16-move: Likewise.
14811         * modules/unistr/u16-next: Likewise.
14812         * modules/unistr/u16-prev: Likewise.
14813         * modules/unistr/u16-set: Likewise.
14814         * modules/unistr/u16-startswith: Likewise.
14815         * modules/unistr/u16-stpcpy: Likewise.
14816         * modules/unistr/u16-stpncpy: Likewise.
14817         * modules/unistr/u16-strcat: Likewise.
14818         * modules/unistr/u16-strchr: Likewise.
14819         * modules/unistr/u16-strcmp: Likewise.
14820         * modules/unistr/u16-strcoll: Likewise.
14821         * modules/unistr/u16-strcpy: Likewise.
14822         * modules/unistr/u16-strcspn: Likewise.
14823         * modules/unistr/u16-strdup: Likewise.
14824         * modules/unistr/u16-strlen: Likewise.
14825         * modules/unistr/u16-strmblen: Likewise.
14826         * modules/unistr/u16-strmbtouc: Likewise.
14827         * modules/unistr/u16-strncat: Likewise.
14828         * modules/unistr/u16-strncmp: Likewise.
14829         * modules/unistr/u16-strncpy: Likewise.
14830         * modules/unistr/u16-strnlen: Likewise.
14831         * modules/unistr/u16-strpbrk: Likewise.
14832         * modules/unistr/u16-strrchr: Likewise.
14833         * modules/unistr/u16-strspn: Likewise.
14834         * modules/unistr/u16-strstr: Likewise.
14835         * modules/unistr/u16-strtok: Likewise.
14836         * modules/unistr/u16-to-u32: Likewise.
14837         * modules/unistr/u16-to-u8: Likewise.
14838         * modules/unistr/u16-uctomb: Likewise.
14839         * modules/unistr/u32-check: Likewise.
14840         * modules/unistr/u32-chr: Likewise.
14841         * modules/unistr/u32-cmp: Likewise.
14842         * modules/unistr/u32-cmp2: Likewise.
14843         * modules/unistr/u32-cpy: Likewise.
14844         * modules/unistr/u32-cpy-alloc: Likewise.
14845         * modules/unistr/u32-endswith: Likewise.
14846         * modules/unistr/u32-mblen: Likewise.
14847         * modules/unistr/u32-mbsnlen: Likewise.
14848         * modules/unistr/u32-mbtouc: Likewise.
14849         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14850         * modules/unistr/u32-mbtoucr: Likewise.
14851         * modules/unistr/u32-move: Likewise.
14852         * modules/unistr/u32-next: Likewise.
14853         * modules/unistr/u32-prev: Likewise.
14854         * modules/unistr/u32-set: Likewise.
14855         * modules/unistr/u32-startswith: Likewise.
14856         * modules/unistr/u32-stpcpy: Likewise.
14857         * modules/unistr/u32-stpncpy: Likewise.
14858         * modules/unistr/u32-strcat: Likewise.
14859         * modules/unistr/u32-strchr: Likewise.
14860         * modules/unistr/u32-strcmp: Likewise.
14861         * modules/unistr/u32-strcoll: Likewise.
14862         * modules/unistr/u32-strcpy: Likewise.
14863         * modules/unistr/u32-strcspn: Likewise.
14864         * modules/unistr/u32-strdup: Likewise.
14865         * modules/unistr/u32-strlen: Likewise.
14866         * modules/unistr/u32-strmblen: Likewise.
14867         * modules/unistr/u32-strmbtouc: Likewise.
14868         * modules/unistr/u32-strncat: Likewise.
14869         * modules/unistr/u32-strncmp: Likewise.
14870         * modules/unistr/u32-strncpy: Likewise.
14871         * modules/unistr/u32-strnlen: Likewise.
14872         * modules/unistr/u32-strpbrk: Likewise.
14873         * modules/unistr/u32-strrchr: Likewise.
14874         * modules/unistr/u32-strspn: Likewise.
14875         * modules/unistr/u32-strstr: Likewise.
14876         * modules/unistr/u32-strtok: Likewise.
14877         * modules/unistr/u32-to-u16: Likewise.
14878         * modules/unistr/u32-to-u8: Likewise.
14879         * modules/unistr/u32-uctomb: Likewise.
14880         * modules/uniwbrk/u8-wordbreaks: Likewise.
14881         * modules/uniwbrk/u16-wordbreaks: Likewise.
14882         * modules/uniwbrk/u32-wordbreaks: Likewise.
14883         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14884         * modules/uniwbrk/wordbreak-property: Likewise.
14885         * modules/uniwidth/u8-strwidth: Likewise.
14886         * modules/uniwidth/u8-width: Likewise.
14887         * modules/uniwidth/u16-strwidth: Likewise.
14888         * modules/uniwidth/u16-width: Likewise.
14889         * modules/uniwidth/u32-strwidth: Likewise.
14890         * modules/uniwidth/u32-width: Likewise.
14891         * modules/uniwidth/width: Likewise.
14892         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14893         with $(LIBUNISTRING).
14894         * modules/unicase/ignorable-tests: Likewise.
14895         * modules/unicase/locale-language-tests: Likewise.
14896         * modules/unicase/tolower-tests: Likewise.
14897         * modules/unicase/totitle-tests: Likewise.
14898         * modules/unicase/toupper-tests: Likewise.
14899         * modules/unicase/u8-casecmp-tests: Likewise.
14900         * modules/unicase/u8-casecoll-tests: Likewise.
14901         * modules/unicase/u8-casefold-tests: Likewise.
14902         * modules/unicase/u8-is-cased-tests: Likewise.
14903         * modules/unicase/u8-is-casefolded-tests: Likewise.
14904         * modules/unicase/u8-is-lowercase-tests: Likewise.
14905         * modules/unicase/u8-is-titlecase-tests: Likewise.
14906         * modules/unicase/u8-is-uppercase-tests: Likewise.
14907         * modules/unicase/u8-tolower-tests: Likewise.
14908         * modules/unicase/u8-totitle-tests: Likewise.
14909         * modules/unicase/u8-toupper-tests: Likewise.
14910         * modules/unicase/u16-casecmp-tests: Likewise.
14911         * modules/unicase/u16-casecoll-tests: Likewise.
14912         * modules/unicase/u16-casefold-tests: Likewise.
14913         * modules/unicase/u16-is-cased-tests: Likewise.
14914         * modules/unicase/u16-is-casefolded-tests: Likewise.
14915         * modules/unicase/u16-is-lowercase-tests: Likewise.
14916         * modules/unicase/u16-is-titlecase-tests: Likewise.
14917         * modules/unicase/u16-is-uppercase-tests: Likewise.
14918         * modules/unicase/u16-tolower-tests: Likewise.
14919         * modules/unicase/u16-totitle-tests: Likewise.
14920         * modules/unicase/u16-toupper-tests: Likewise.
14921         * modules/unicase/u32-casecmp-tests: Likewise.
14922         * modules/unicase/u32-casecoll-tests: Likewise.
14923         * modules/unicase/u32-casefold-tests: Likewise.
14924         * modules/unicase/u32-is-cased-tests: Likewise.
14925         * modules/unicase/u32-is-casefolded-tests: Likewise.
14926         * modules/unicase/u32-is-lowercase-tests: Likewise.
14927         * modules/unicase/u32-is-titlecase-tests: Likewise.
14928         * modules/unicase/u32-is-uppercase-tests: Likewise.
14929         * modules/unicase/u32-tolower-tests: Likewise.
14930         * modules/unicase/u32-totitle-tests: Likewise.
14931         * modules/unicase/u32-toupper-tests: Likewise.
14932         * modules/unicase/ulc-casecmp-tests: Likewise.
14933         * modules/unicase/ulc-casecoll-tests: Likewise.
14934         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14935         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14936         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14937         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14938         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14939         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14940         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14941         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14942         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14943         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14944         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14945         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14946         * modules/unictype/bidicategory-byname-tests: Likewise.
14947         * modules/unictype/bidicategory-name-tests: Likewise.
14948         * modules/unictype/bidicategory-of-tests: Likewise.
14949         * modules/unictype/bidicategory-test-tests: Likewise.
14950         * modules/unictype/block-list-tests: Likewise.
14951         * modules/unictype/block-of-tests: Likewise.
14952         * modules/unictype/block-test-tests: Likewise.
14953         * modules/unictype/category-C-tests: Likewise.
14954         * modules/unictype/category-Cc-tests: Likewise.
14955         * modules/unictype/category-Cf-tests: Likewise.
14956         * modules/unictype/category-Cn-tests: Likewise.
14957         * modules/unictype/category-Co-tests: Likewise.
14958         * modules/unictype/category-Cs-tests: Likewise.
14959         * modules/unictype/category-L-tests: Likewise.
14960         * modules/unictype/category-Ll-tests: Likewise.
14961         * modules/unictype/category-Lm-tests: Likewise.
14962         * modules/unictype/category-Lo-tests: Likewise.
14963         * modules/unictype/category-Lt-tests: Likewise.
14964         * modules/unictype/category-Lu-tests: Likewise.
14965         * modules/unictype/category-M-tests: Likewise.
14966         * modules/unictype/category-Mc-tests: Likewise.
14967         * modules/unictype/category-Me-tests: Likewise.
14968         * modules/unictype/category-Mn-tests: Likewise.
14969         * modules/unictype/category-N-tests: Likewise.
14970         * modules/unictype/category-Nd-tests: Likewise.
14971         * modules/unictype/category-Nl-tests: Likewise.
14972         * modules/unictype/category-No-tests: Likewise.
14973         * modules/unictype/category-P-tests: Likewise.
14974         * modules/unictype/category-Pc-tests: Likewise.
14975         * modules/unictype/category-Pd-tests: Likewise.
14976         * modules/unictype/category-Pe-tests: Likewise.
14977         * modules/unictype/category-Pf-tests: Likewise.
14978         * modules/unictype/category-Pi-tests: Likewise.
14979         * modules/unictype/category-Po-tests: Likewise.
14980         * modules/unictype/category-Ps-tests: Likewise.
14981         * modules/unictype/category-S-tests: Likewise.
14982         * modules/unictype/category-Sc-tests: Likewise.
14983         * modules/unictype/category-Sk-tests: Likewise.
14984         * modules/unictype/category-Sm-tests: Likewise.
14985         * modules/unictype/category-So-tests: Likewise.
14986         * modules/unictype/category-Z-tests: Likewise.
14987         * modules/unictype/category-Zl-tests: Likewise.
14988         * modules/unictype/category-Zp-tests: Likewise.
14989         * modules/unictype/category-Zs-tests: Likewise.
14990         * modules/unictype/category-and-not-tests: Likewise.
14991         * modules/unictype/category-and-tests: Likewise.
14992         * modules/unictype/category-byname-tests: Likewise.
14993         * modules/unictype/category-name-tests: Likewise.
14994         * modules/unictype/category-none-tests: Likewise.
14995         * modules/unictype/category-of-tests: Likewise.
14996         * modules/unictype/category-or-tests: Likewise.
14997         * modules/unictype/category-test-withtable-tests: Likewise.
14998         * modules/unictype/combining-class-tests: Likewise.
14999         * modules/unictype/ctype-alnum-tests: Likewise.
15000         * modules/unictype/ctype-alpha-tests: Likewise.
15001         * modules/unictype/ctype-blank-tests: Likewise.
15002         * modules/unictype/ctype-cntrl-tests: Likewise.
15003         * modules/unictype/ctype-digit-tests: Likewise.
15004         * modules/unictype/ctype-graph-tests: Likewise.
15005         * modules/unictype/ctype-lower-tests: Likewise.
15006         * modules/unictype/ctype-print-tests: Likewise.
15007         * modules/unictype/ctype-punct-tests: Likewise.
15008         * modules/unictype/ctype-space-tests: Likewise.
15009         * modules/unictype/ctype-upper-tests: Likewise.
15010         * modules/unictype/ctype-xdigit-tests: Likewise.
15011         * modules/unictype/decimal-digit-tests: Likewise.
15012         * modules/unictype/digit-tests: Likewise.
15013         * modules/unictype/mirror-tests: Likewise.
15014         * modules/unictype/numeric-tests: Likewise.
15015         * modules/unictype/property-alphabetic-tests: Likewise.
15016         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15017         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15018         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15019         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15020         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15021         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15022         * modules/unictype/property-bidi-control-tests: Likewise.
15023         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15024         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15025         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15026         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15027         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15028         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15029         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15030         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15031         * modules/unictype/property-bidi-pdf-tests: Likewise.
15032         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15033         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15034         * modules/unictype/property-byname-tests: Likewise.
15035         * modules/unictype/property-combining-tests: Likewise.
15036         * modules/unictype/property-composite-tests: Likewise.
15037         * modules/unictype/property-currency-symbol-tests: Likewise.
15038         * modules/unictype/property-dash-tests: Likewise.
15039         * modules/unictype/property-decimal-digit-tests: Likewise.
15040         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15041         * modules/unictype/property-deprecated-tests: Likewise.
15042         * modules/unictype/property-diacritic-tests: Likewise.
15043         * modules/unictype/property-extender-tests: Likewise.
15044         * modules/unictype/property-format-control-tests: Likewise.
15045         * modules/unictype/property-grapheme-base-tests: Likewise.
15046         * modules/unictype/property-grapheme-extend-tests: Likewise.
15047         * modules/unictype/property-grapheme-link-tests: Likewise.
15048         * modules/unictype/property-hex-digit-tests: Likewise.
15049         * modules/unictype/property-hyphen-tests: Likewise.
15050         * modules/unictype/property-id-continue-tests: Likewise.
15051         * modules/unictype/property-id-start-tests: Likewise.
15052         * modules/unictype/property-ideographic-tests: Likewise.
15053         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15054         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15055         * modules/unictype/property-ignorable-control-tests: Likewise.
15056         * modules/unictype/property-iso-control-tests: Likewise.
15057         * modules/unictype/property-join-control-tests: Likewise.
15058         * modules/unictype/property-left-of-pair-tests: Likewise.
15059         * modules/unictype/property-line-separator-tests: Likewise.
15060         * modules/unictype/property-logical-order-exception-tests: Likewise.
15061         * modules/unictype/property-lowercase-tests: Likewise.
15062         * modules/unictype/property-math-tests: Likewise.
15063         * modules/unictype/property-non-break-tests: Likewise.
15064         * modules/unictype/property-not-a-character-tests: Likewise.
15065         * modules/unictype/property-numeric-tests: Likewise.
15066         * modules/unictype/property-other-alphabetic-tests: Likewise.
15067         * modules/unictype/property-other-default-ignorable-code-point-tests:
15068         Likewise.
15069         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15070         * modules/unictype/property-other-id-continue-tests: Likewise.
15071         * modules/unictype/property-other-id-start-tests: Likewise.
15072         * modules/unictype/property-other-lowercase-tests: Likewise.
15073         * modules/unictype/property-other-math-tests: Likewise.
15074         * modules/unictype/property-other-uppercase-tests: Likewise.
15075         * modules/unictype/property-paired-punctuation-tests: Likewise.
15076         * modules/unictype/property-paragraph-separator-tests: Likewise.
15077         * modules/unictype/property-pattern-syntax-tests: Likewise.
15078         * modules/unictype/property-pattern-white-space-tests: Likewise.
15079         * modules/unictype/property-private-use-tests: Likewise.
15080         * modules/unictype/property-punctuation-tests: Likewise.
15081         * modules/unictype/property-quotation-mark-tests: Likewise.
15082         * modules/unictype/property-radical-tests: Likewise.
15083         * modules/unictype/property-sentence-terminal-tests: Likewise.
15084         * modules/unictype/property-soft-dotted-tests: Likewise.
15085         * modules/unictype/property-space-tests: Likewise.
15086         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15087         * modules/unictype/property-test-tests: Likewise.
15088         * modules/unictype/property-titlecase-tests: Likewise.
15089         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15090         * modules/unictype/property-unified-ideograph-tests: Likewise.
15091         * modules/unictype/property-uppercase-tests: Likewise.
15092         * modules/unictype/property-variation-selector-tests: Likewise.
15093         * modules/unictype/property-white-space-tests: Likewise.
15094         * modules/unictype/property-xid-continue-tests: Likewise.
15095         * modules/unictype/property-xid-start-tests: Likewise.
15096         * modules/unictype/property-zero-width-tests: Likewise.
15097         * modules/unictype/scripts-tests: Likewise.
15098         * modules/unictype/syntax-c-ident-tests: Likewise.
15099         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15100         * modules/unictype/syntax-java-ident-tests: Likewise.
15101         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15102         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15103         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15104         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15105         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15106         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15107         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15108         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15109         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15110         * modules/uniname/uniname-tests: Likewise.
15111         * modules/uninorm/canonical-decomposition-tests: Likewise.
15112         * modules/uninorm/compat-decomposition-tests: Likewise.
15113         * modules/uninorm/composition-tests: Likewise.
15114         * modules/uninorm/decomposing-form-tests: Likewise.
15115         * modules/uninorm/decomposition-tests: Likewise.
15116         * modules/uninorm/filter-tests: Likewise.
15117         * modules/uninorm/nfc-tests: Likewise.
15118         * modules/uninorm/nfd-tests: Likewise.
15119         * modules/uninorm/nfkc-tests: Likewise.
15120         * modules/uninorm/nfkd-tests: Likewise.
15121         * modules/uninorm/u8-normcmp-tests: Likewise.
15122         * modules/uninorm/u8-normcoll-tests: Likewise.
15123         * modules/uninorm/u16-normcmp-tests: Likewise.
15124         * modules/uninorm/u16-normcoll-tests: Likewise.
15125         * modules/uninorm/u32-normcmp-tests: Likewise.
15126         * modules/uninorm/u32-normcoll-tests: Likewise.
15127         * modules/unistdio/u8-asnprintf-tests: Likewise.
15128         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15129         * modules/unistdio/u8-vasprintf-tests: Likewise.
15130         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15131         * modules/unistdio/u8-vsprintf-tests: Likewise.
15132         * modules/unistdio/u16-asnprintf-tests: Likewise.
15133         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15134         * modules/unistdio/u16-vasprintf-tests: Likewise.
15135         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15136         * modules/unistdio/u16-vsprintf-tests: Likewise.
15137         * modules/unistdio/u32-asnprintf-tests: Likewise.
15138         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15139         * modules/unistdio/u32-vasprintf-tests: Likewise.
15140         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15141         * modules/unistdio/u32-vsprintf-tests: Likewise.
15142         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15143         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15144         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15145         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15146         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15147         * modules/unistr/u8-check-tests: Likewise.
15148         * modules/unistr/u8-chr-tests: Likewise.
15149         * modules/unistr/u8-cmp-tests: Likewise.
15150         * modules/unistr/u8-cmp2-tests: Likewise.
15151         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15152         * modules/unistr/u8-cpy-tests: Likewise.
15153         * modules/unistr/u8-mblen-tests: Likewise.
15154         * modules/unistr/u8-mbsnlen-tests: Likewise.
15155         * modules/unistr/u8-mbtouc-tests: Likewise.
15156         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15157         * modules/unistr/u8-mbtoucr-tests: Likewise.
15158         * modules/unistr/u8-move-tests: Likewise.
15159         * modules/unistr/u8-next-tests: Likewise.
15160         * modules/unistr/u8-prev-tests: Likewise.
15161         * modules/unistr/u8-set-tests: Likewise.
15162         * modules/unistr/u8-stpcpy-tests: Likewise.
15163         * modules/unistr/u8-stpncpy-tests: Likewise.
15164         * modules/unistr/u8-strcat-tests: Likewise.
15165         * modules/unistr/u8-strcmp-tests: Likewise.
15166         * modules/unistr/u8-strcoll-tests: Likewise.
15167         * modules/unistr/u8-strcpy-tests: Likewise.
15168         * modules/unistr/u8-strdup-tests: Likewise.
15169         * modules/unistr/u8-strlen-tests: Likewise.
15170         * modules/unistr/u8-strmblen-tests: Likewise.
15171         * modules/unistr/u8-strmbtouc-tests: Likewise.
15172         * modules/unistr/u8-strncat-tests: Likewise.
15173         * modules/unistr/u8-strncmp-tests: Likewise.
15174         * modules/unistr/u8-strncpy-tests: Likewise.
15175         * modules/unistr/u8-strnlen-tests: Likewise.
15176         * modules/unistr/u8-to-u16-tests: Likewise.
15177         * modules/unistr/u8-to-u32-tests: Likewise.
15178         * modules/unistr/u8-uctomb-tests: Likewise.
15179         * modules/unistr/u16-check-tests: Likewise.
15180         * modules/unistr/u16-chr-tests: Likewise.
15181         * modules/unistr/u16-cmp-tests: Likewise.
15182         * modules/unistr/u16-cmp2-tests: Likewise.
15183         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15184         * modules/unistr/u16-cpy-tests: Likewise.
15185         * modules/unistr/u16-mblen-tests: Likewise.
15186         * modules/unistr/u16-mbsnlen-tests: Likewise.
15187         * modules/unistr/u16-mbtouc-tests: Likewise.
15188         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15189         * modules/unistr/u16-mbtoucr-tests: Likewise.
15190         * modules/unistr/u16-move-tests: Likewise.
15191         * modules/unistr/u16-next-tests: Likewise.
15192         * modules/unistr/u16-prev-tests: Likewise.
15193         * modules/unistr/u16-set-tests: Likewise.
15194         * modules/unistr/u16-stpcpy-tests: Likewise.
15195         * modules/unistr/u16-stpncpy-tests: Likewise.
15196         * modules/unistr/u16-strcat-tests: Likewise.
15197         * modules/unistr/u16-strcmp-tests: Likewise.
15198         * modules/unistr/u16-strcoll-tests: Likewise.
15199         * modules/unistr/u16-strcpy-tests: Likewise.
15200         * modules/unistr/u16-strdup-tests: Likewise.
15201         * modules/unistr/u16-strlen-tests: Likewise.
15202         * modules/unistr/u16-strmblen-tests: Likewise.
15203         * modules/unistr/u16-strmbtouc-tests: Likewise.
15204         * modules/unistr/u16-strncat-tests: Likewise.
15205         * modules/unistr/u16-strncmp-tests: Likewise.
15206         * modules/unistr/u16-strncpy-tests: Likewise.
15207         * modules/unistr/u16-strnlen-tests: Likewise.
15208         * modules/unistr/u16-to-u32-tests: Likewise.
15209         * modules/unistr/u16-to-u8-tests: Likewise.
15210         * modules/unistr/u16-uctomb-tests: Likewise.
15211         * modules/unistr/u32-check-tests: Likewise.
15212         * modules/unistr/u32-chr-tests: Likewise.
15213         * modules/unistr/u32-cmp-tests: Likewise.
15214         * modules/unistr/u32-cmp2-tests: Likewise.
15215         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15216         * modules/unistr/u32-cpy-tests: Likewise.
15217         * modules/unistr/u32-mblen-tests: Likewise.
15218         * modules/unistr/u32-mbsnlen-tests: Likewise.
15219         * modules/unistr/u32-mbtouc-tests: Likewise.
15220         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15221         * modules/unistr/u32-mbtoucr-tests: Likewise.
15222         * modules/unistr/u32-move-tests: Likewise.
15223         * modules/unistr/u32-next-tests: Likewise.
15224         * modules/unistr/u32-prev-tests: Likewise.
15225         * modules/unistr/u32-set-tests: Likewise.
15226         * modules/unistr/u32-stpcpy-tests: Likewise.
15227         * modules/unistr/u32-stpncpy-tests: Likewise.
15228         * modules/unistr/u32-strcat-tests: Likewise.
15229         * modules/unistr/u32-strcmp-tests: Likewise.
15230         * modules/unistr/u32-strcoll-tests: Likewise.
15231         * modules/unistr/u32-strcpy-tests: Likewise.
15232         * modules/unistr/u32-strdup-tests: Likewise.
15233         * modules/unistr/u32-strlen-tests: Likewise.
15234         * modules/unistr/u32-strmblen-tests: Likewise.
15235         * modules/unistr/u32-strmbtouc-tests: Likewise.
15236         * modules/unistr/u32-strncat-tests: Likewise.
15237         * modules/unistr/u32-strncmp-tests: Likewise.
15238         * modules/unistr/u32-strncpy-tests: Likewise.
15239         * modules/unistr/u32-strnlen-tests: Likewise.
15240         * modules/unistr/u32-to-u16-tests: Likewise.
15241         * modules/unistr/u32-to-u8-tests: Likewise.
15242         * modules/unistr/u32-uctomb-tests: Likewise.
15243         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15244         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15245         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15246         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15247         * modules/uniwidth/u8-strwidth-tests: Likewise.
15248         * modules/uniwidth/u8-width-tests: Likewise.
15249         * modules/uniwidth/u16-strwidth-tests: Likewise.
15250         * modules/uniwidth/u16-width-tests: Likewise.
15251         * modules/uniwidth/u32-strwidth-tests: Likewise.
15252         * modules/uniwidth/u32-width-tests: Likewise.
15253         * modules/uniwidth/width-tests: Likewise.
15254
15255 2010-05-18  Richard Jones  <rjones@redhat.com>
15256
15257         doc: users.txt: list hivex
15258         * users.txt: Add hivex.
15259
15260 2010-05-18  Richard Jones  <rjones@redhat.com>
15261
15262         doc: users.txt: list febootstrap
15263         * users.txt: Add febootstrap.
15264
15265 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15266
15267         bootstrap: fix an error when gnulib is not used as a git submodule
15268         * build-aux/bootstrap (gnulib_path): If its length is zero then
15269         assign "gnulib" to it.
15270         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15271
15272 2010-05-16  Bruno Haible  <bruno@clisp.org>
15273
15274         Avoid autoconf warnings about AM_ICONV.
15275         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15276         2.64.
15277
15278 2010-05-16  Bruno Haible  <bruno@clisp.org>
15279
15280         absolute-header: Make the macro usable in more situations.
15281         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15282         from gl_ABSOLUTE_HEADER.
15283         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15284
15285 2010-05-16  James Youngman  <jay@gnu.org>
15286
15287         doc: update users.txt
15288         * users.txt: Add CSSC.
15289
15290 2010-05-16  Jim Meyering  <meyering@redhat.com>
15291
15292         init.sh: fix an error in the previous change; add more comments
15293         * tests/init.sh: Compare exit code in loop against 9, not 2.
15294         Patch by Bruno Haible.
15295         Make the two tests more similar by adding an empty "then" clause.
15296         Add comments.
15297
15298         init.sh: avoid unnecessary shell re-exec
15299         * tests/init.sh: Improve the re-exec-required check to first test the
15300         current shell.  If it passes the test, do not search for a shell that
15301         does pass, and do not re-exec.  This test is particularly contorted to
15302         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15303         of $(...) evokes a syntax error and causes immediate shell exit with
15304         status 2.  Bruno Haible reported that the re-exec made it impossible
15305         to single-step through any init.sh-using script.
15306
15307 2010-05-16  Bruno Haible  <bruno@clisp.org>
15308
15309         Fix collision between gnulib's and libintl's printf replacements.
15310         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15311         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15312         (printf): When using GNU C, map the __printf__ function to rpl_printf
15313         via __asm__. When not using GNU C, define rpl_printf instead of
15314         __printf__.
15315         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15316         commit.
15317         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15318         commit.
15319         * m4/asm-underscore.m4: New file.
15320         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15321         * modules/stdio (Files): Add m4/asm-underscore.m4.
15322         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15323         Reported by Ben Pfaff.
15324
15325 2010-05-16  Bruno Haible  <bruno@clisp.org>
15326
15327         verify: Avoid skipping the test on openSUSE 11.0.
15328         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15329
15330 2010-05-13  Bruno Haible  <bruno@clisp.org>
15331
15332         Avoid useless warnings from G++.
15333         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15334         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15335         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15336
15337 2010-05-11  Jim Meyering  <meyering@redhat.com>
15338
15339         maint.mk: tweak preceding change
15340         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15341         regexps tighter by anchoring at EOL, and make the new group "shy"
15342         for slightly decreased overhead.
15343
15344 2010-05-11  Eric Blake  <eblake@redhat.com>
15345
15346         maint.mk: gnulib doesn't guarantee NSIG
15347         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15348
15349 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15350
15351         test-pwrite.c: Remove unused variable declaration.
15352         * tests/test-pwrite.c (main): Remove read_buf declaration.
15353
15354         Remove useless test-pwrite.sh file.
15355         * tests/test-pwrite.sh: Delete file.
15356         * modules/pwrite-tests: Remove references.
15357         Reported by Bruno Haible.
15358
15359 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15360
15361         init.sh: fix a typo
15362         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15363
15364 2010-05-10  Jim Meyering  <meyering@redhat.com>
15365
15366         maint.mk: avoid using a temporary file in the always-defined-macros check
15367         * top/maint.mk (.re-defmac): Remove rule.
15368         (gl_trap_): Remove definition.
15369         (sc_prohibit_always-defined_macros): Rewrite not to create and
15370         depend on a temporary file.  Instead, depend on GNU grep's ability
15371         to read a list of regular expressions from stdin when given "-f -".
15372
15373 2010-05-09  Bruno Haible  <bruno@clisp.org>
15374
15375         Update to GNU gettext 0.18, part 1.
15376         * m4/gettext.m4: Update to GNU gettext 0.18.
15377         * m4/intl.m4: Likewise.
15378         * m4/po.m4: Likewise.
15379         * modules/gettext (Files): Add m4/fcntl-o.m4.
15380         (configure.ac): Require gettext infrastructure from version 0.18.
15381
15382 2010-05-09  Jim Meyering  <meyering@redhat.com>
15383
15384         init.sh: enable MALLOC_PERTURB_
15385         * tests/init.sh: Enable glibc's malloc-perturbing option.
15386
15387         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15388         With my recent change in init.sh from the two-line form:
15389             -#   : ${srcdir=.}
15390             -#   . "$srcdir/init.sh"; path_prepend_ .
15391             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15392         I noticed that using the one-line form would cause this test
15393         to fail with a false-positive, or to stop working altogether,
15394         depending on whether help-version changed or all the tests did.
15395         * top/maint.mk (_hv_regex): Remove this definition.
15396         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15397         (_hv_regex_strong): Use a stronger regex to check for conformance.
15398         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15399         Give a separate diagnostic for lack of conforming use.
15400
15401         maint.mk: prohibit definition of symbols defined by gnulib
15402         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15403         definition of symbols defined by gnulib.
15404
15405 2010-05-09  Bruno Haible  <bruno@clisp.org>
15406
15407         acl: Avoid test failure on Cygwin-hosted mingw.
15408         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15409
15410 2010-05-09  Bruno Haible  <bruno@clisp.org>
15411
15412         error: Use system's fcntl function.
15413         * lib/error.c (fcntl): Undefine.
15414
15415 2010-05-09  Jim Meyering  <meyering@redhat.com>
15416
15417         verify: adjust formatting to be more consistent
15418         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15419         argument-list '('s, and after one comma.
15420
15421 2010-05-09  Bruno Haible  <bruno@clisp.org>
15422
15423         error: More reliable output on mingw.
15424         * lib/error.c: Include <windows.h>.
15425         (is_open): New function.
15426         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15427         defined.
15428
15429 2010-05-09  Bruno Haible  <bruno@clisp.org>
15430
15431         vasnprintf: Fix syntax errors in libintl build on mingw.
15432         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15433         pad_ourselves and prec_ourselves after use.
15434
15435 2010-05-08  Bruno Haible  <bruno@clisp.org>
15436
15437         * lib/config.charset: Update comments for Cygwin 1.7.
15438         * lib/localcharset.c: Likewise.
15439
15440 2010-05-07  Jim Meyering  <meyering@redhat.com>
15441
15442         init.sh: improve comments
15443         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15444         . "${srcdir=.}/init.sh"; path_prepend_ .
15445         Add a note about path_prepend_ and the alternative of using
15446         TESTS_ENVIRONMENT.
15447
15448 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15449
15450         exclude: Unescape hashed patterns in wildcard mode.
15451         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15452         to the hash list.
15453         * tests/test-exclude8.sh: New test case.
15454         * modules/exclude-tests: Add new test.
15455
15456 2010-05-05  Eric Blake  <eblake@redhat.com>
15457
15458         verify: automate tests
15459         * modules/verify-tests: New module.
15460         * tests/test-verify.sh: New file.
15461         * tests/test-verify.c: Guard each negative test with a unique id.
15462         Also avoid warning about unused left hand of comma expressions.
15463
15464 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15465
15466         Further improvements to verify.h, suggested by Eric Blake.
15467         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15468         the GL_* versions, to avoid collision with OpenGL.
15469         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15470         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15471         than testing merely whether it's defined.
15472
15473         Modify verify.h to pacify gcc -Wredundant_decls.
15474         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15475         These use the prefix "GL_" since they're likely to be useful elsewhere.
15476         We may need to break them out into a different .h file.
15477         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15478         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15479         of verify_function__.
15480
15481 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15482
15483         Tests for module pwrite.
15484         * modules/pwrite-tests: New file.
15485         * tests/test-pwrite.sh: New file.
15486         * tests/test-pwrite.c: New file.
15487
15488         New module pwrite.
15489         * lib/unistd.in.h (pwrite): New declaration.
15490         * lib/pwrite.c: New file, from glibc with modifications.
15491         * m4/pwrite.m4: New file.
15492         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15493         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15494         REPLACE_PWRITE.
15495         * modules/pwrite: New file.
15496         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15497         REPLACE_PWRITE.
15498         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15499         * doc/posix-functions/pwrite.texi: Mention the new module.
15500
15501 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15502
15503         pread: Update documentation.
15504         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15505
15506 2010-05-04  Eric Blake  <eblake@redhat.com>
15507
15508         docs: update cygwin progress
15509         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15510         this bug.
15511         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15512         Added in cygwin 1.7.2.
15513         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15514         Likewise.
15515         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15516         Likewise.
15517         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15518         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15519         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15520         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15521         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15522         Mention nproc module.
15523         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15524         bug in cygwin 1.7.5 addition.
15525         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15526         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15527         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15528         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15529         1.7.5.
15530         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15531         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15532         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15533         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15534         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15535         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15536         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15537         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15538         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15539         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15540         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15541         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15542         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15543         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15544         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15545         Likewise.
15546         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15547         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15548         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15549         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15550         Likewise.
15551         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15552         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15553         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15554         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15555         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15556         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15557         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15558         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15559         Likewise.
15560         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15561         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15562         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15563         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15564         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15565         Likewise.
15566         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15567         Likewise.
15568         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15569         Likewise.
15570         * doc/glibc-functions/xdrrec_endofrecord.texi
15571         (xdrrec_endofrecord): Likewise.
15572         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15573         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15574         Likewise.
15575         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15576         Likewise.
15577
15578 2010-05-04  Jim Meyering  <meyering@redhat.com>
15579
15580         gendocs.sh: make its "-s FILE" option more useful
15581         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15582         $PACKAGE to reflect the probably-different basename of "FILE".
15583
15584 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15585
15586         bootstrap: don't ignore download_po_files failure
15587         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15588         failure.
15589
15590 2010-05-03  Jim Meyering  <meyering@redhat.com>
15591
15592         maint.mk: allow to pass options to gendocs.sh
15593         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15594         (gendocs_options_): New overridable variable.
15595
15596         gnu-web-doc-update: don't ignore configure or build failure
15597         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15598
15599         announce-gen: backslash-escape '@'s in --help output
15600         * build-aux/announce-gen: Fix syntax errors.
15601
15602         maint.mk, announce-gen: allow project-specific announcement mail headers
15603         * top/maint.mk (translation_project_): Define default.
15604         (announcement_Cc_, announcement_mail_headers_): Likewise.
15605         (announcement): Invoke announce-gen with new --mail-headers option.
15606         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15607
15608         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15609         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15610         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15611         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15612         line in the "err2" output file when running "make check" in verbose
15613         mode (i.e., with set -x enabled).
15614
15615 2010-05-03  Bruno Haible  <bruno@clisp.org>
15616
15617         wctob: Fix for weird platforms.
15618         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15619         argument value.
15620
15621 2010-05-03  Jim Meyering  <meyering@redhat.com>
15622
15623         maint.mk: prohibit unwarranted use of <strings.h>
15624         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15625         strings.h in a file that does not also use strcasecmp, strncasecmp,
15626         ffs or ffsll.
15627
15628         maint.mk: remove obsolete comments
15629         * top/maint.mk: Remove stale, commented-out rules.
15630
15631 2010-05-02  Bruno Haible  <bruno@clisp.org>
15632
15633         wcwidth: Declare also when it's aliased.
15634         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15635         macro.
15636
15637 2010-05-02  Bruno Haible  <bruno@clisp.org>
15638
15639         Fix regression from 2010-04-25.
15640         * gnulib-tool (func_modules_transitive_closure): Check the status of
15641         all modules, not only of the tests that are of the form foo-tests where
15642         foo is a module.
15643
15644 2010-05-02  Bruno Haible  <bruno@clisp.org>
15645
15646         wctob: Work around nasty Cygwin 1.7.2 bug.
15647         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15648         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15649
15650 2010-05-01  Bruno Haible  <bruno@clisp.org>
15651
15652         fpurge: Sharper test.
15653         * tests/test-fpurge.c (main): Add one more ftell check.
15654         * modules/fpurge-tests (Depends-on): Add ftell.
15655         Suggested by Eric Blake.
15656
15657 2010-05-01  Bruno Haible  <bruno@clisp.org>
15658
15659         ftello: Another test.
15660         * tests/test-ftello3.c: New file.
15661         * modules/ftello-tests (Files): Add it.
15662         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15663         MOSTLYCLEANFILES.
15664
15665         ftell: Another test.
15666         * tests/test-ftell3.c: New file.
15667         * modules/ftell-tests (Files): Add it.
15668         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15669         MOSTLYCLEANFILES.
15670
15671 2010-05-01  Bruno Haible  <bruno@clisp.org>
15672
15673         ftell, ftello: Work around Solaris bug.
15674         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15675         * lib/ftello.c: Include stdio-impl.h.
15676         (ftello): On Solaris, when _IOWRT is set, compute the result without
15677         looking at _IOREAD.
15678         * modules/ftello (Files): Add lib/stdio-impl.h.
15679         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15680         * doc/posix-functions/ftello.texi: Likewise.
15681         Reported by Eric Blake.
15682
15683 2010-05-01  Bruno Haible  <bruno@clisp.org>
15684
15685         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15686         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15687         the _IOWRT flag is also set.
15688
15689 2010-05-01  Bruno Haible  <bruno@clisp.org>
15690
15691         Fix doc about a HP-UX stdio bug.
15692         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15693         * doc/posix-functions/ftello.texi: Likewise.
15694
15695 2010-05-01  Bruno Haible  <bruno@clisp.org>
15696
15697         lseek test: Fix failure on Solaris.
15698         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15699         output.
15700
15701 2010-04-30  Jim Meyering  <meyering@redhat.com>
15702
15703         bootstrap: don't ignore failure to generate po*/Makevars
15704         * build-aux/bootstrap (with_gettext): Don't ignore failure
15705         to create po/Makevars or runtime-po/Makevars.
15706
15707 2010-04-29  Eric Blake  <eblake@redhat.com>
15708
15709         headers: relax license to LGPLv2+
15710         * modules/fcntl-h (License): Relax license.
15711         * modules/getopt-posix (License): Likewise.
15712         * modules/locale (License): Likewise.
15713         * modules/math (License): Likewise.
15714         * modules/pty (License): Likewise.
15715         * modules/sched (License): Likewise.
15716         * modules/search (License): Likewise.
15717         * modules/spawn (License): Likewise.
15718         * modules/stdarg (License): Likewise.
15719         * modules/sysexits (License): Likewise.
15720
15721 2010-04-29  Jim Meyering  <meyering@redhat.com>
15722
15723         inttypes: relax license to LGPLv2+
15724         * modules/inttypes (License): Relax license.
15725
15726 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15727
15728         * top/maint.mk (indent): Run twice to produce idempotent results.
15729
15730 2010-04-28  Bruno Haible  <bruno@clisp.org>
15731
15732         getdate: Generate getdate.c in the source directory.
15733         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15734         MOSTLYCLEANFILES.
15735         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15736
15737 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15738
15739         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15740         is not declared as a const *; avoid warnings in that case.
15741
15742 2010-04-28  Eric Blake  <eblake@redhat.com>
15743
15744         canonicalize-lgpl: avoid compiler warning
15745         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15746         declaration' / 'extraneous semicolon' warning with some compilers.
15747         Reported by Andreas Gruenbacher.
15748
15749 2010-04-28  Jim Meyering  <meyering@redhat.com>
15750
15751         init.sh: ensure a more reliable exit status when exiting via trap
15752         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15753         Inspired by patches from Dmitry V. Levin.
15754         Also trap on signal 3 (SIGQUIT).
15755
15756 2010-04-27  Bruno Haible  <bruno@clisp.org>
15757
15758         Update doc about utimes().
15759         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15760         'utimens' module.
15761         Reported by Andreas Gruenbacher <agruen@suse.de>.
15762
15763 2010-04-27  Eric Blake  <eblake@redhat.com>
15764
15765         full-read, full-write: relax license
15766         * modules/full-read (License): Drop to LGPLv2+.
15767         * modules/full-write (License): Likewise.
15768         * modules/safe-read (License): Likewise.
15769         * modules/safe-write (License): Likewise.
15770
15771         pthread: mention library for linking
15772         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15773
15774 2010-04-27  Jim Meyering  <meyering@redhat.com>
15775
15776         maint.mk: fix a bug introduced in last change
15777         * top/maint.mk (gl_assured_headers_): Now that all names are on
15778         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15779         is not anchored to end of word, it should be adequate.
15780
15781         maint.mk: avoid side-effect in latest syntax-check
15782         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15783         to run commands via $(shell...), and hence to incur cost only when
15784         the new rule is actually run.
15785
15786         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15787         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15788         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15789         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15790         (gl_assured_headers_, az_, AZ_): Define.
15791         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15792
15793 2010-04-26  Jim Meyering  <jim@meyering.net>
15794             Bruno Haible  <bruno@clisp.org>
15795
15796         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15797         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15798         Prompted by an exchange with Gilles Espinasse.
15799
15800 2010-04-26  Jim Meyering  <meyering@redhat.com>
15801
15802         git-version-gen: aesthetic tweak
15803         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15804         so that the command remains on a single line.
15805
15806 2010-04-26  Eric Blake  <eblake@redhat.com>
15807
15808         git-version-gen: allow use on EBCDIC hosts
15809         * build-aux/git-version-gen (dirty): Use literal rather than tying
15810         ourselves to ascii.
15811         Reported by Steve Goetze.
15812
15813 2010-04-25  Bruno Haible  <bruno@clisp.org>
15814
15815         netdb: Add support for GNULIB_POSIXCHECK.
15816         * lib/netdb.in.h: Include warn-on-use.h.
15817         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15818         functions are used when GNULIB_POSIXCHECK is defined and the
15819         getaddrinfo module is not in use.
15820         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15821         freeaddrinfo, gai_strerror, getnameinfo are declared.
15822         * modules/netdb (Depends-on): Add warn-on-use.
15823         (Makefile.am): Include warn-on-use.h in netdb.h.
15824
15825 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15826
15827         build: avoid "make check" failure without .git/ directory
15828         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15829         there is no .git/ directory.
15830
15831 2010-04-25  Bruno Haible  <bruno@clisp.org>
15832
15833         ptsname: Fix misuse of ttyname_r.
15834         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15835         of errno.
15836
15837 2010-04-25  Bruno Haible  <bruno@clisp.org>
15838
15839         ttyname_r: Make it work on Solaris 10.
15840         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15841         if the system function has the POSIX declaration. Test whether the
15842         function fails if the buffer is less than 128 bytes large.
15843         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15844         system's ttyname_r function. Provide a reasonably large buffer.
15845         * modules/ttyname_r (Depends-on): Add extensions.
15846         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15847
15848 2010-04-25  Bruno Haible  <bruno@clisp.org>
15849
15850         Use the 'extensions' module for some more functions on Solaris.
15851         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15852         module.
15853         * doc/posix-functions/ctime_r.texi: Likewise.
15854         * doc/posix-functions/getgrgid_r.texi: Likewise.
15855         * doc/posix-functions/getgrnam_r.texi: Likewise.
15856         * doc/posix-functions/getpwnam_r.texi: Likewise.
15857         * doc/posix-functions/getpwuid_r.texi: Likewise.
15858         * doc/posix-functions/readdir_r.texi: Likewise.
15859         * doc/posix-functions/sigwait.texi: Likewise.
15860         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15861         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15862
15863 2010-04-25  Bruno Haible  <bruno@clisp.org>
15864
15865         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15867         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15868         * lib/ttyname_r.c: Include <limits.h>.
15869         (ttyname_r): Define using the system's ttyname_r function, if it exists
15870         and not on Solaris.
15871         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15872         set.
15873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15874         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15875         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15876         Reported by Simon Josefsson.
15877
15878 2010-04-25  Bruno Haible  <bruno@clisp.org>
15879
15880         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15881         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15882         * doc/posix-functions/ctime_r.texi: Likewise.
15883         * doc/posix-functions/getgrgid_r.texi: Likewise.
15884         * doc/posix-functions/getgrnam_r.texi: Likewise.
15885         * doc/posix-functions/getlogin_r.texi: Likewise.
15886         * doc/posix-functions/getpwnam_r.texi: Likewise.
15887         * doc/posix-functions/getpwuid_r.texi: Likewise.
15888         * doc/posix-functions/readdir_r.texi: Likewise.
15889         * doc/posix-functions/sigwait.texi: Likewise.
15890         * doc/posix-functions/ttyname_r.texi: Likewise.
15891         Reported by Simon Josefsson.
15892
15893 2010-04-25  Bruno Haible  <bruno@clisp.org>
15894
15895         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15896         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15897         also to --create-testdir.
15898         (func_acceptable): Don't consider the status of *-tests modules here.
15899         (func_modules_transitive_closure): Consider it here, before including a
15900         test module.
15901         (func_import, func_create_testdir): Set inc_all_direct_tests,
15902         inc_all_indirect_tests.
15903         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15904         --create-testdir and --create-megatestdir.
15905
15906 2010-04-25  Bruno Haible  <bruno@clisp.org>
15907
15908         gnulib-tool: Add --without-*-tests options.
15909         * gnulib-tool (func_usage): Document the --without-*-tests options.
15910         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15911         excl_unportable_tests): New variables.
15912         Fail if they are specified with --import or --update.
15913         (func_acceptable): Respect the excl_*_tests variables.
15914         (func_import): Set the excl_*_tests variables to empty.
15915
15916 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15917             Bruno Haible  <bruno@clisp.org>
15918
15919         Work around a MacOS X 10.4 bug with openpty.
15920         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15921         * tests/test-openpty.c (main): Close the master side explicitly.
15922
15923 2010-04-25  Bruno Haible  <bruno@clisp.org>
15924
15925         strnlen: Fix a C++ test error on MacOS X and Solaris.
15926         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15927         the function is not declared.
15928         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15929         Simon Josefsson.
15930
15931 2010-04-24  Bruno Haible  <bruno@clisp.org>
15932
15933         Avoid a gcc warning.
15934         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15935         of correct type for %08lx directive.
15936         Reported by Eric Blake.
15937
15938 2010-04-24  Bruno Haible  <bruno@clisp.org>
15939
15940         vasnprintf: Correct errno value in case of out-of-memory.
15941         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15942         or sprintf. Use the errno value from SNPRINTF or sprintf.
15943         Reported by Ian Beckwith <ianb@erislabs.net>.
15944
15945 2010-04-24  Bruno Haible  <bruno@clisp.org>
15946
15947         ansi-c++-opt: Find correct compiler when cross-compiling.
15948         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15949         AC_CHECK_PROGS.
15950         Reported by Simon Josefsson.
15951
15952 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15953
15954         vc-list-files: Add support for subversion
15955         * build-aux/vc-list-files: Use "svn list" to generate the list of
15956         files controlled by subversion.
15957
15958 2010-04-23  Jim Meyering  <meyering@redhat.com>
15959
15960         vc-list-files tests: convert to use init.sh
15961         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15962         path_prepend_.
15963         Use Exit, not exit.
15964         Use skip_ rather than open coding it.
15965         Remove trap set-up and compare definitions.
15966         * tests/test-vc-list-files-git.sh: Likewise.
15967         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15968
15969 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15970
15971         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15972         backup files.
15973
15974 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15975
15976         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15977
15978 2010-04-20  Eric Blake  <eblake@redhat.com>
15979
15980         tests: be robust to ignored SIGPIPE
15981         * tests/test-select-in.sh: Consume all output.
15982         * tests/test-lseek.sh: Check correct exit status, while avoiding
15983         EPIPE.
15984
15985 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15986             Bruno Haible  <bruno@clisp.org>
15987
15988         visibility: Don't use -fvisibility if it leads to a warning.
15989         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15990         yes, don't pretend that visibility works if it leads to a warning.
15991         Reported by Mike Gran <spk121@yahoo.com>.
15992
15993 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15994
15995         * build-aux/bootstrap: Use "git -h" for testing for supported options
15996         instead of "git --help".  The short-form option only shows a summary,
15997         and doesn't layout the full man page.  Grep for the full option name
15998         in the summary, too.
15999
16000 2010-04-19  Bruno Haible  <bruno@clisp.org>
16001
16002         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16003         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16004         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16005         mention of RELOCATABLE_STRIP.
16006         Reported by Sylvain Beucler <beuc@beuc.net>.
16007
16008 2010-04-19  Bruno Haible  <bruno@clisp.org>
16009
16010         * lib/diffseq.h: Fix typo in comment.
16011         Reported by Eric Blake.
16012
16013 2010-04-19  Bruno Haible  <bruno@clisp.org>
16014
16015         ioctl: Move autoconf macro to a .m4 file.
16016         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16017         * modules/ioctl (Files): Add it.
16018         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16019         Reported by Ian Beckwith <ianb@erislabs.net>.
16020
16021 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16022             Bruno Haible  <bruno@clisp.org>
16023
16024         diffseq: Accommodate use-case with abstract arrays.
16025         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16026         is not defined.
16027         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16028         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16029
16030 2010-04-18  Bruno Haible  <bruno@clisp.org>
16031
16032         * doc/posix-headers/stdbool.texi: More precise wording.
16033
16034 2010-04-17  Jim Meyering  <meyering@redhat.com>
16035
16036         maint.mk: use gnu-style indentation in an embedded perl script
16037         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16038         Rename variable: s/two/last_two_bytes/
16039
16040 2010-04-16  Eric Blake  <eblake@redhat.com>
16041
16042         test-stdbool: skip test that fails with Solaris CC
16043         * tests/test-stdbool.c (f): Skip test that causes compilation
16044         error under buggy C++ compiler.
16045         * lib/stdbool.in.h: Document the limitation.
16046         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16047
16048         setenv: allow compilation with C++
16049         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16050         register keyword.
16051
16052         stdint: allow test to pass with C++
16053         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16054
16055         getopt: allow compilation with C++
16056         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16057         struct.
16058         * lib/getopt.c (_getopt_internal_r): Use correct type.
16059         Reported by Dagobert Michelson, via Joel E. Denny.
16060
16061 2010-04-16  Bruno Haible  <bruno@clisp.org>
16062
16063         Override netdb.h always.
16064         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16065         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16066         Reported by Ludovic Courtès <ludo@gnu.org>.
16067
16068 2010-04-15  Bruno Haible  <bruno@clisp.org>
16069
16070         openpty: Fix mistake from 2010-03-21.
16071         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16072         Reported by Simon Josefsson.
16073
16074 2010-04-15  Eric Blake  <eblake@redhat.com>
16075
16076         test-forkpty: fix expected signature
16077         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16078         Reported by Simon Josefsson.
16079
16080 2010-04-15  Jim Meyering  <meyering@redhat.com>
16081
16082         maint.mk: texinfo_suffix_re_: correct the default regexp
16083         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16084
16085         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16086         make it configurable via texinfo_suffix_re_.
16087
16088 2010-04-14  Eric Blake  <eblake@redhat.com>
16089
16090         strtok_r: relax license to LGPLv2+
16091         * modules/strtok_r (License): Relax license.
16092         Reported by Matthias Bolte.
16093
16094 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16095
16096         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16097         version 1.4.4 by default instead of requiring the libgcrypt
16098         version used during build.  This makes it possible to use the
16099         application with older but still binary compatible libgcrypt
16100         versions.
16101
16102 2010-04-13  Eric Blake  <eblake@redhat.com>
16103
16104         getopt-gnu: match recent glibc fixes and posix ruling
16105         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16106         '+' handling, when requesting extensions.
16107         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16108         'W;' handling.
16109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16110         * doc/posix-functions/getopt.texi (getopt): Document this.
16111         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16112         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16113         Likewise.
16114
16115         getopt: merge bug fixes from glibc
16116         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16117         diagnostics.  Honor '+:' correctly.  Reject ';'.
16118
16119         getopt-posix: detect MacOS bug
16120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16121         optind when missing a required argument.
16122         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16123         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16125         Likewise.
16126
16127         getopt-posix: avoid spurious failure on Solaris
16128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16129         an indicator that setting optind=1 is sufficient for reset.
16130
16131         getopt-posix: avoid spurious failure on FreeBSD
16132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16133         in POSIX mode, since the m4 test uses it.
16134
16135         gnulib-tool: silence warning on BSD sh
16136         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16137
16138 2010-04-13  Jim Meyering  <meyering@redhat.com>
16139
16140         doc: users.txt: GNU patch now uses gnulib
16141         * users.txt: Add patch.
16142
16143 2010-04-12  Jim Meyering  <meyering@redhat.com>
16144
16145         maint.mk: generate more concise timing data for syntax-check rules
16146         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16147         " done" from each line that reports a syntax-check test duration.
16148
16149 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16150
16151         git-version-gen: use "git update-index..." rather than "git status"
16152         * build-aux/git-version-gen: Use git update-index --refresh, not
16153         "git status".  With some versions of git, "git status" would fail
16154         to update the index and result in an unwarranted "-dirty" suffix.
16155
16156 2010-04-11  Jim Meyering  <meyering@redhat.com>
16157
16158         openat: correct formatting (no semantic change)
16159         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16160         Suggested by Bruno Haible.
16161
16162 2010-04-11  Bruno Haible  <bruno@clisp.org>
16163
16164         Stricter declaration checking in testdirs.
16165         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16166         If for_tests is true, augment AM_CPPFLAGS to define
16167         GNULIB_STRICT_CHECKING.
16168         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16169         GNULIB_STRICT_CHECKING is defined, verify that the function is
16170         declared.
16171
16172 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16173             Bruno Haible  <bruno@clisp.org>
16174
16175         libunistring: Improve configure output.
16176         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16177         Don't say "consider installing GNU libunistring" when checking again
16178         with libiconv.
16179
16180 2010-04-11  Bruno Haible  <bruno@clisp.org>
16181
16182         libunistring: Correct value of $LTLIBUNISTRING.
16183         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16184         correct the value of $LTLIBUNISTRING.
16185
16186 2010-04-11  Bruno Haible  <bruno@clisp.org>
16187
16188         havelib: Add static libraries to LIBS in the right order.
16189         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16190         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16191
16192 2010-04-11  Bruno Haible  <bruno@clisp.org>
16193
16194         libunistring: Detect libunistring also when it depends on libiconv.
16195         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16196         the second AC_LIB_HAVE_LINKFLAGS invocation.
16197
16198 2010-04-11  James Youngman  <jay@gnu.org>
16199
16200         close-stream: declare local scalars to be "const"
16201         * lib/close-stream.c (close_stream): Make boolean variables const
16202         to document the fact that we set but do not change them.
16203
16204 2010-04-11  Bruno Haible  <bruno@clisp.org>
16205
16206         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16207
16208 2010-04-11  Jim Meyering  <meyering@redhat.com>
16209
16210         maint.mk: don't include dist-check.mk
16211         * top/maint.mk: Remove bogus include directive.
16212
16213         maint.mk: improve empty-line-at-EOF check
16214         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16215         solution, rather than tail+Perl-based one.  The latter would read
16216         a few kilobytes from the end of each file, and did not handle empty
16217         files properly.
16218
16219         maint.mk: print the elapsed time for each syntax-check rule
16220         * top/maint.mk (sc_m_rules_): Save start time in a file.
16221         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16222         (local-check): Interpose the .z rules
16223
16224 2010-04-11  Jim Meyering  <meyering@redhat.com>
16225
16226         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16227         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16228         empty file with one that ends in an empty line.
16229
16230 2010-04-10  Bruno Haible  <bruno@clisp.org>
16231
16232         mkdir: Make it work on mingw64.
16233         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16234         * lib/mkdir.c: Update comment.
16235         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16236
16237 2010-04-10  Bruno Haible  <bruno@clisp.org>
16238
16239         Don't override improved macro from newer autoconf.
16240         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16241         autoconf >= 2.62.
16242         Reported by Joel E. Denny <jdenny@clemson.edu>.
16243
16244 2010-04-10  Jim Meyering  <meyering@redhat.com>
16245
16246         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16247         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16248
16249         maint.mk: correct a diagnostic
16250         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16251         in diagnostic; now use $prohibit.
16252
16253 2010-04-10  Bruno Haible  <address@hidden>
16254
16255         fchownat: Fix a C++ test error on Solaris 8.
16256         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16257         the function does not exist.
16258
16259 2010-04-10  Bruno Haible  <bruno@clisp.org>
16260
16261         vasnprintf: Add more tests.
16262         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16263         (test_function): Test converting an invalid wide string.
16264
16265         vasnprintf: Correct handling of unconvertible wide string arguments.
16266         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16267         VASNPRINTF.
16268         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16269         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16270         smaller than the expected maximum need for the directive. Set errno to
16271         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16272         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16274         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16275         * modules/vasnprintf (Files): Add m4/printf.m4.
16276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16277
16278 2010-04-10  Bruno Haible  <bruno@clisp.org>
16279
16280         vasnprintf: Fix crash in %ls directive.
16281         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16282         string is passed as argument to %ls, with no precision and no width.
16283         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16284
16285 2010-04-10  Bruno Haible  <bruno@clisp.org>
16286
16287         vasnprintf: Fix multiple test failures on mingw.
16288         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16289         _snprintf, or snwprintf, not _snwprintf.
16290
16291 2010-04-10  Bruno Haible  <bruno@clisp.org>
16292
16293         write: Fix a C++ test error on mingw.
16294         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16295
16296 2010-04-10  Bruno Haible  <bruno@clisp.org>
16297
16298         vasnprintf test: Reduce code duplication.
16299         * tests/test-vasnprintf.c (test_function): New function, extracted from
16300         test_vasnprintf.
16301         (test_vasnprintf, test_asnprintf): Invoke it.
16302
16303 2010-04-10  Bruno Haible  <bruno@clisp.org>
16304
16305         strnlen: Fix warning in C++ mode on MacOS X.
16306         * lib/string.in.h (strnlen): Use the modern idiom.
16307         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16308         defining strnlen as a macro already in <config.h>.
16309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16310         REPLACE_STRNLEN.
16311         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16312         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16313
16314 2010-04-08  James Youngman  <jay@gnu.org>
16315
16316         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16317         the example.
16318
16319 2010-04-09  Jim Meyering  <meyering@redhat.com>
16320
16321         maint.mk: print better diagnostic when there is no $(_hv_file)
16322         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16323         announce that when $(_hv_file) (aka help-version) does not exist.
16324
16325         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16326         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16327         not try to interpret its random input bytes.  Jarno Rajahalme reported
16328         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16329         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16330         (mktempd_): Likewise, just in case.
16331
16332         ftruncate: add two years to projected module removal date: 2012
16333         * m4/ftruncate.m4: Adjust comments.
16334
16335         ftruncate: mark module as obsolete; even MinGW provides it, now
16336         * modules/ftruncate (Status): Obsolete.
16337         (Notice): Say that.
16338         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16340
16341 2010-04-08  Bruno Haible  <bruno@clisp.org>
16342
16343         Fix side effects from tests-related modules.
16344         * modules/dprintf-posix (Comment): New section.
16345         * modules/fprintf-posix (Comment): Likewise.
16346         * modules/obstack-printf-posix (Comment): Likewise.
16347         * modules/printf-posix (Comment): Likewise.
16348         * modules/snprintf-posix (Comment): Likewise.
16349         * modules/sprintf-posix (Comment): Likewise.
16350         * modules/vasnprintf-posix (Comment): Likewise.
16351         * modules/vasprintf-posix (Comment): Likewise.
16352         * modules/vdprintf-posix (Comment): Likewise.
16353         * modules/vfprintf-posix (Comment): Likewise.
16354         * modules/vprintf-posix (Comment): Likewise.
16355         * modules/vsnprintf-posix (Comment): Likewise.
16356         * modules/vsprintf-posix (Comment): Likewise.
16357         * modules/xprintf-posix (Comment): Likewise.
16358         * modules/xvasprintf-posix (Comment): Likewise.
16359         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16360         * modules/floorf-tests (Depends-on): Likewise.
16361         * modules/round-tests (Depends-on): Likewise.
16362         * modules/roundf-tests (Depends-on): Likewise.
16363         * modules/trunc-tests (Depends-on): Likewise.
16364         * modules/truncf-tests (Depends-on): Likewise.
16365         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16366         'fprintf-posix' module is not present.
16367         * tests/test-floorf2.c (check): Likewise.
16368         * tests/test-trunc2.c (check): Likewise.
16369         * tests/test-truncf2.c (check): Likewise.
16370         * tests/test-round2.c (equal): Likewise.
16371         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16372
16373 2010-04-07  Karl Berry  <karl@gnu.org>
16374
16375         * config/srclist.txt,
16376         * config/srclistvars.sh,
16377         * config/srclist-update: doc fixes.
16378
16379 2010-04-07  Jim Meyering  <meyering@redhat.com>
16380
16381         maint.mk: add a PATH crosschecking syntax-check rule
16382         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16383         Useful if you use a test like the one in help-version (coreutils,
16384         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16385         printed by prog --version.
16386
16387 2010-04-06  Bruno Haible  <bruno@clisp.org>
16388
16389         Fix link error on mingw.
16390         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16391         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16392
16393 2010-04-06  Bruno Haible  <bruno@clisp.org>
16394
16395         Assume rmdir exists.
16396         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16397
16398 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16399
16400         doc: update users.txt
16401         * users.txt: Add gcal.
16402
16403 2010-04-06  Jim Meyering  <meyering@redhat.com>
16404
16405         init.sh: simply unset TMPDIR rather than risking env -i
16406         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16407         although it probably works fine on all Unix-based systems, some
16408         systems (Cygwin?) cannot tolerate a totally cleared environment.
16409         Suggestion from Eric Blake.
16410
16411 2010-04-06  Jim Meyering  <meyering@redhat.com>
16412
16413         init.sh: portability fix: use env's POSIX-specified -i option not -u
16414         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16415         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16416
16417 2010-04-05  Bruno Haible  <bruno@clisp.org>
16418
16419         btowc: Work around Cygwin 1.7.2 bug.
16420         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16421         does not map NUL to 0.
16422         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16423
16424 2010-04-05  Bruno Haible  <bruno@clisp.org>
16425
16426         Make the multithread modules work on Cygwin 1.7.2.
16427         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16428         imported symbols can be declared weak, so that it returns "no" on
16429         Cygwin 1.7.2.
16430
16431 2010-04-05  Bruno Haible  <bruno@clisp.org>
16432
16433         Use the module 'strncat'.
16434         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16435
16436         Tests for module 'strncat'.
16437         * modules/strncat-tests: New file.
16438         * tests/test-strncat.c: New file.
16439
16440         New module 'strncat'.
16441         * lib/string.in.h (strncat): New declaration.
16442         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16443         * m4/strncat.m4: New file, based on m4/memchr.m4.
16444         * modules/strncat: New file.
16445         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16446         is declared.
16447         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16448         REPLACE_STRNCAT.
16449         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16450         REPLACE_STRNCAT.
16451         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16452         module.
16453         * tests/test-string-c++.cc: Check signature of strncat.
16454
16455 2010-04-05  Jim Meyering  <meyering@redhat.com>
16456
16457         xstrtoumax-tests: convert to use init.sh
16458         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16459         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16460         Use Exit, not exit.
16461         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16462
16463         xstrtoimax-tests: convert to use init.sh
16464         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16465         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16466         Use Exit, not exit.
16467         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16468
16469 2010-04-05  Bruno Haible  <bruno@clisp.org>
16470
16471         sys_socket: Avoid #define replacements in C++ mode.
16472         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16473         warning to the function if possible, rather than #defining the symbol
16474         to a dysfunctional alias.
16475
16476 2010-04-05  Bruno Haible  <bruno@clisp.org>
16477
16478         fseeko: Fix C++ test error on mingw.
16479         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16480         gl_FUNC_FSEEKO.
16481         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16482         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16483         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16484         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16485
16486 2010-04-05  Bruno Haible  <bruno@clisp.org>
16487
16488         duplocale: Improve test output.
16489         * tests/test-duplocale.c (main): Print reason for skipped test.
16490
16491 2010-04-05  Bruno Haible  <bruno@clisp.org>
16492
16493         Assume rmdir exists.
16494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16495         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16496
16497 2010-04-05  Bruno Haible  <bruno@clisp.org>
16498
16499         Fix link error on Solaris 8 with cc.
16500         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16501
16502 2010-04-05  Bruno Haible  <bruno@clisp.org>
16503
16504         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16505         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16506
16507 2010-04-05  Bruno Haible  <bruno@clisp.org>
16508
16509         vasprintf: Update documentation.
16510         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16511
16512 2010-04-05  Bruno Haible  <bruno@clisp.org>
16513
16514         ptsname: Improve test.
16515         * tests/test-ptsname.c (main): Also try the various master names of BSD
16516         systems.
16517
16518 2010-04-05  Bruno Haible  <bruno@clisp.org>
16519
16520         memchr: Avoid a possible C++ test error.
16521         * lib/string.in.h (memchr): Provide declaration if function is missing.
16522         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16523         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16525         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16526
16527 2010-04-05  Bruno Haible  <bruno@clisp.org>
16528
16529         strtok_r: Improve idiom.
16530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16531         AC_LIBOBJ is used.
16532
16533 2010-04-05  Bruno Haible  <bruno@clisp.org>
16534
16535         strdup: Improve idiom.
16536         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16537         AC_LIBOBJ is used.
16538         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16539         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16540         when AC_LIBOBJ is used.
16541
16542 2010-04-05  Bruno Haible  <bruno@clisp.org>
16543
16544         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16545         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16546         don't set REPLACE_MBSINIT to 1.
16547         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16548         don't set REPLACE_MBRTOWC to 1.
16549         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16550         exist, don't set REPLACE_MBSRTOWCS to 1.
16551         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16552         exist, don't set REPLACE_MBSNRTOWCS to 1.
16553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16554         don't set REPLACE_WCRTOMB to 1.
16555         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16556         exist, don't set REPLACE_WCSRTOMBS to 1.
16557         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16558         exist, don't set REPLACE_WCSNRTOMBS to 1.
16559
16560 2010-04-05  Bruno Haible  <bruno@clisp.org>
16561
16562         ldexpl: Improve idiom.
16563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16564         make sure to set HAVE_DECL_LDEXPL to 0.
16565
16566 2010-04-05  Jim Meyering  <meyering@redhat.com>
16567
16568         xstrtol-tests: convert to use init.sh
16569         * modules/xstrtol-tests (Files): Add tests/init.sh.
16570         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16571         Use Exit, not exit.
16572         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16573
16574         atexit-tests: convert to use init.sh
16575         * modules/atexit-tests (Files): Add tests/init.sh.
16576         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16577         Use Exit, not exit.
16578         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16579
16580         init.sh: fix typo
16581         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16582
16583         init.sh: make it easier for a test script to write to the tty, ...
16584         when using automake's parallel-tests mode.
16585         * tests/init.sh (stderr_fileno_): Define overridable variable.
16586         (warn_): New function, to use it.
16587         (fail_, skip_, framework_failure_): Use warn_.
16588
16589 2010-04-04  Bruno Haible  <bruno@clisp.org>
16590
16591         btowc: Avoid warning.
16592         * lib/btowc.c: Include <stdlib.h>.
16593         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16594
16595 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16596             Bruno Haible  <bruno@clisp.org>
16597
16598         wchar: Port to NetBSD 1.5.
16599         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16600         * lib/wctype.in.h (WEOF): Likewise.
16601
16602 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16603             Bruno Haible  <bruno@clisp.org>
16604
16605         Port extended stdio to NetBSD 1.5.
16606         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16607         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16608         older.
16609
16610 2010-04-04  Bruno Haible  <bruno@clisp.org>
16611
16612         string: Remove unused substitution.
16613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16614         HAVE_DECL_STRERROR.
16615         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16616
16617 2010-04-04  Bruno Haible  <bruno@clisp.org>
16618
16619         strtod: Avoid a possible C++ test error.
16620         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16621         set REPLACE_STRTOD.
16622
16623 2010-04-04  Bruno Haible  <bruno@clisp.org>
16624
16625         strerror: Update documentation.
16626         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16627
16628 2010-04-04  Bruno Haible  <bruno@clisp.org>
16629
16630         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16631         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16632         _GL_CXXALIAS_SYS_CAST.
16633
16634 2010-04-04  Bruno Haible  <bruno@clisp.org>
16635
16636         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16637         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16638         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16639         REPLACE_FREXPL to 1.
16640         * doc/posix-functions/frexpl.texi: Update documentation.
16641
16642 2010-04-04  Bruno Haible  <bruno@clisp.org>
16643
16644         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16645         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16646
16647 2010-04-04  Bruno Haible  <bruno@clisp.org>
16648
16649         Implement nanosleep for native Windows.
16650         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16651
16652 2010-04-04  Bruno Haible  <bruno@clisp.org>
16653
16654         math: Fix some C++ test errors on Solaris 8.
16655         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16656
16657 2010-04-04  Bruno Haible  <bruno@clisp.org>
16658
16659         math: Fix some C++ test errors on Cygwin.
16660         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16661         truncl): Provide declaration if the system does not have it.
16662         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16663         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16664         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16665         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16666         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16667         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16668         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16669         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16670         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16671         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16672         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16673         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16674         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16675         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16676         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16677         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16679         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16680         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16681         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16682         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16683         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16684
16685 2010-04-04  Bruno Haible  <bruno@clisp.org>
16686
16687         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16688         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16689         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16690         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16691         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16692         * m4/isinf.m4 (gl_ISINF): Likewise.
16693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16694
16695 2010-04-04  Bruno Haible  <bruno@clisp.org>
16696
16697         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16698         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16699
16700 2010-04-04  Bruno Haible  <bruno@clisp.org>
16701
16702         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16703         * modules/tmpfile (configure.ac): Update.
16704
16705         tmpfile: Fix C++ test error on mingw.
16706         * lib/stdio.in.h (tmpfile): New declaration.
16707         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16708         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16709         * modules/tmpfile (Depends-on): Add stdio.
16710         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16711         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16712         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16713         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16714         REPLACE_TMPFILE.
16715         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16716
16717 2010-04-04  Bruno Haible  <bruno@clisp.org>
16718
16719         ioctl: Fix C++ test error on mingw.
16720         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16721         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16722         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16723
16724 2010-04-03  Bruno Haible  <bruno@clisp.org>
16725
16726         wcwidth: Fix C++ test error on mingw.
16727         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16729         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16730
16731 2010-04-03  Bruno Haible  <bruno@clisp.org>
16732
16733         nanosleep: Fix C++ test error on mingw.
16734         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16735         * lib/time.in.h (nanosleep): Use modern idiom.
16736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16737         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16738         REPLACE_NANOSLEEP to 1.
16739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16740         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16741
16742 2010-04-03  Bruno Haible  <bruno@clisp.org>
16743
16744         strptime: Fix C++ test error on mingw.
16745         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16746         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16747         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16748         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16749         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16750         not REPLACE_STRPTIME.
16751         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16752         REPLACE_STRPTIME.
16753
16754 2010-04-03  Bruno Haible  <bruno@clisp.org>
16755
16756         timegm: Fix C++ test error on mingw.
16757         * lib/time.in.h (timegm): Use modern idiom.
16758         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16759         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16760         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16761         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16762
16763 2010-04-03  Bruno Haible  <bruno@clisp.org>
16764
16765         timegm: Assume declaration if function exists.
16766         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16767         if it exists. Don't clobber ac_cv_func_timegm.
16768
16769 2010-04-03  Bruno Haible  <bruno@clisp.org>
16770
16771         time_r: Fix C++ test error on mingw.
16772         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16773         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16774         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16775         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16776         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16777
16778 2010-04-03  Bruno Haible  <bruno@clisp.org>
16779
16780         time_r: Minor updates.
16781         * modules/time_r (Description): Mention the provided functions.
16782         * lib/time_r.c: Don't include <string.h>.
16783         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16784         * doc/posix-functions/localtime_r.texi: Likewise.
16785
16786 2010-04-03  Bruno Haible  <bruno@clisp.org>
16787
16788         time: Fix regression introduced on 2010-03-08.
16789         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16790         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16791
16792 2010-04-03  Jim Meyering  <meyering@redhat.com>
16793
16794         maint.mk: don't silently disable project-specific syntax-check rules
16795         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16796         that they need to convert their project-specific syntax-check rules
16797         to use the new _sc_search_regexp.
16798
16799 2010-04-03  Bruno Haible  <bruno@clisp.org>
16800
16801         fchdir: Fix regression introduced on 2010-03-08.
16802         * lib/unistd.in.h (fchdir): Fix declaration.
16803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16805         REPLACE_FCHDIR.
16806         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16807         REPLACE_FCHDIR.
16808
16809 2010-04-03  Bruno Haible  <bruno@clisp.org>
16810
16811         getpagesize: Fix C++ test error on mingw.
16812         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16813         system does not declare the function.
16814         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16815         declared.
16816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16817         HAVE_DECL_GETPAGESIZE.
16818         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16819
16820 2010-04-03  Bruno Haible  <bruno@clisp.org>
16821
16822         stdio: Make C++ tests work on mingw.
16823         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16824         does not declare the function.
16825
16826 2010-04-03  Bruno Haible  <bruno@clisp.org>
16827
16828         ftello: Fix C++ test error on mingw.
16829         * lib/stdio.in.h (ftello): Use modern idiom.
16830         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16831         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16832         is missing and that it needs to be replaced.
16833         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16835         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16836
16837 2010-04-03  Bruno Haible  <bruno@clisp.org>
16838
16839         fseeko: Fix C++ test error on mingw.
16840         * lib/stdio.in.h (fseeko): Use modern idiom.
16841         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16842         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16843         is missing and that it needs to be replaced.
16844         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16846         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16847
16848 2010-04-03  Bruno Haible  <bruno@clisp.org>
16849
16850         mkstemp: Fix C++ test error on mingw.
16851         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16853         function is missing and that it needs to be replaced.
16854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16855         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16856
16857 2010-04-03  Bruno Haible  <bruno@clisp.org>
16858
16859         stpncpy: Fix C++ test error on mingw.
16860         * lib/string.in.h (stpncpy): Use modern idiom.
16861         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16862         function is missing and that it needs to be replaced.
16863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16864         REPLACE_STPNCPY.
16865         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16866
16867 2010-04-03  Bruno Haible  <bruno@clisp.org>
16868
16869         sys_stat: Fix C++ test error on mingw.
16870         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16871         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16872
16873 2010-04-03  Bruno Haible  <bruno@clisp.org>
16874
16875         pty: Update doc.
16876         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16877
16878 2010-04-03  Bruno Haible  <bruno@clisp.org>
16879
16880         unistd: Fix C++ test error on mingw.
16881         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16882
16883 2010-04-03  Bruno Haible  <bruno@clisp.org>
16884
16885         Update doc regarding mingw.
16886         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16887         * doc/glibc-functions/login_tty.texi: Likewise.
16888         * doc/glibc-functions/forkpty.texi: Likewise.
16889
16890 2010-04-03  Bruno Haible  <bruno@clisp.org>
16891
16892         stdlib: Avoid compilation failure of c-strtold on mingw.
16893         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16894
16895 2010-04-03  Bruno Haible  <bruno@clisp.org>
16896
16897         locale: Make C++ tests work on Cygwin and mingw.
16898         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16899         cannot provide the function.
16900         Reported by Simon Josefsson.
16901
16902 2010-04-03  Bruno Haible  <bruno@clisp.org>
16903
16904         localename: Port to MacOS X 10.6.
16905         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16906         memory layout of the locales in MacOS X 10.6 as well.
16907         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16908
16909 2010-04-02  Bruno Haible  <bruno@clisp.org>
16910
16911         gnulib-tool: Ensure that long-running tests are executed last.
16912         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16913         running tests after the one for the other tests.
16914
16915 2010-04-02  Bruno Haible  <bruno@clisp.org>
16916
16917         gnulib-tool: Ensure the tests in the main directory are executed first.
16918         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16919         start with the current directory.
16920
16921 2010-04-02  Bruno Haible  <bruno@clisp.org>
16922
16923         Tests for module 'havelib', moved here from GNU gettext.
16924         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16925         modifications.
16926         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16927         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16928         with modifications.
16929         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16930         modifications.
16931         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16932         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16933         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16934         with modifications.
16935         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16936         with modifications.
16937         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16938         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16939         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16940         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16941         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16942         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16943         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16944         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16945         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16946         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16947         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16948         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16949         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16950         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16951         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16952         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16953         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16954         with modifications.
16955         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16956         with modifications.
16957         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16958         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16959         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16960         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16961         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16962         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16963         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16964         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16965         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16966         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16967         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16968         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16969         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16970         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16971         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16972         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16973         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16974         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16975         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16976         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16977         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16978         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16979         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16980         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16981         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16982         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16983         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16984         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16985         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16986         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16987         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16988         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16989         * tests/havelib/rpathx/rpathx.c: New file, from
16990         gettext/autoconf-lib-link.
16991         * tests/havelib/rpathx/Makefile.am: New file, from
16992         gettext/autoconf-lib-link.
16993         * tests/havelib/rpathx/configure.ac: New file, from
16994         gettext/autoconf-lib-link with modifications.
16995         * tests/havelib/rpathy/rpathy.c: New file, from
16996         gettext/autoconf-lib-link.
16997         * tests/havelib/rpathy/Makefile.am: New file, from
16998         gettext/autoconf-lib-link.
16999         * tests/havelib/rpathy/configure.ac: New file, from
17000         gettext/autoconf-lib-link with modifications.
17001         * tests/havelib/rpathz/rpathz.c: New file, from
17002         gettext/autoconf-lib-link.
17003         * tests/havelib/rpathz/Makefile.am: New file, from
17004         gettext/autoconf-lib-link.
17005         * tests/havelib/rpathz/configure.ac: New file, from
17006         gettext/autoconf-lib-link with modifications.
17007         * tests/havelib/rpathlx/usex.c: New file, from
17008         gettext/autoconf-lib-link.
17009         * tests/havelib/rpathlx/Makefile.am: New file, from
17010         gettext/autoconf-lib-link.
17011         * tests/havelib/rpathlx/configure.ac: New file, from
17012         gettext/autoconf-lib-link with modifications.
17013         * tests/havelib/rpathly/usey.c: New file, from
17014         gettext/autoconf-lib-link.
17015         * tests/havelib/rpathly/Makefile.am: New file, from
17016         gettext/autoconf-lib-link.
17017         * tests/havelib/rpathly/configure.ac: New file, from
17018         gettext/autoconf-lib-link with modifications.
17019         * tests/havelib/rpathlz/usez.c: New file, from
17020         gettext/autoconf-lib-link.
17021         * tests/havelib/rpathlz/Makefile.am: New file, from
17022         gettext/autoconf-lib-link.
17023         * tests/havelib/rpathlz/configure.ac: New file, from
17024         gettext/autoconf-lib-link with modifications.
17025         * tests/havelib/rpathlyx/usey.c: New file, from
17026         gettext/autoconf-lib-link.
17027         * tests/havelib/rpathlyx/Makefile.am: New file, from
17028         gettext/autoconf-lib-link.
17029         * tests/havelib/rpathlyx/configure.ac: New file, from
17030         gettext/autoconf-lib-link with modifications.
17031         * tests/havelib/rpathlzyx/usez.c: New file, from
17032         gettext/autoconf-lib-link.
17033         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17034         gettext/autoconf-lib-link.
17035         * tests/havelib/rpathlzyx/configure.ac: New file, from
17036         gettext/autoconf-lib-link with modifications.
17037         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17038         with modifications.
17039
17040 2010-04-02  Bruno Haible  <bruno@clisp.org>
17041
17042         gnulib-tool: Create distributed built sources also for the tests.
17043         * gnulib-tool (func_create_testdir): Also generate distributed built
17044         sources in the tests directory.
17045
17046 2010-04-02  Bruno Haible  <bruno@clisp.org>
17047
17048         gnulib-tool: Obey user's environment variables.
17049         * gnulib-tool (func_create_testdir): When creating built sources,
17050         respect the environment variables for autoconf, automake, etc. given by
17051         the user.
17052
17053 2010-04-02  Bruno Haible  <bruno@clisp.org>
17054
17055         gnulib-tool: Provide the value of --m4-base to modules.
17056         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17057         of gl_m4_base.
17058
17059 2010-04-02  Eric Blake  <eblake@redhat.com>
17060
17061         maint.mk: fix some fallout
17062         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17063         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17064
17065 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17066
17067         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17068         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17069         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17070         (sc_cast_of_x_alloc_return_value): Likewise.
17071         (sc_cast_of_alloca_return_value): Likewise.
17072         (sc_space_tab): Likewise.
17073         (sc_prohibit_atoi_atof): Likewise.
17074         (sc_prohibit_magic_number_exit): Likewise.
17075         (sc_error_exit_success): Likewise.
17076         (sc_file_system): Likewise.
17077         (sc_prohibit_have_config_h): Likewise.
17078         (sc_require_config_h): Likewise.
17079         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17080         (sc_obsolete_symbols): Likewise.
17081         (sc_changelog): Likewise.
17082         (sc_program_name): Likewise.
17083         (sc_the_the): Likewise.
17084         (sc_trailing_blank): Likewise.
17085         (sc_two_space_separator_in_usage): Likewise.
17086         (sc_useless_cpp_parens): Likewise.
17087         (sc_GPL_version): Likewise.
17088         (sc_GFDL_version): Likewise.
17089         (sc_texinfo_acronym): Likewise.
17090         (sc_prohibit_cvs_keyword): Likewise.
17091         (sc_prohibit_stat_st_blocks): Likewise.
17092         (sc_prohibit_S_IS_definition): Likewise.
17093         (sc_redundant_const): Likewise.
17094         (sc_makefile_TAB_only_indentation): Likewise.
17095         (sc_m4_quote_check): Likewise.
17096         (sc_makefile_path_separator_check): Likewise.
17097         (sc_copyright_check): Likewise.
17098         (sc_Wundef_boolean): Likewise.
17099         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17100
17101         maint.mk: match 0 or more whitespace-before-function-call '('
17102         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17103         that have zero or two-and-more spaces between the function name
17104         and the open parenthesis.
17105         (sc_error_message_warn_fatal): Likewise.
17106         (sc_error_message_uppercase): Likewise.
17107         (sc_error_message_period): Likewise.
17108
17109 2010-03-31  Eric Blake  <eblake@redhat.com>
17110
17111         maint.mk: check for [ as well as test
17112         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17113         Based on a libvirt report by Matthias Bolte.
17114
17115         gnumakefile: don't squelch _version output
17116         * top/GNUmakefile (_version): Create one-shot dependency rather
17117         than using $(shell) when version must be regenerated.
17118         (_autoreconf): Run verbosely, by default.
17119
17120         sys_time: avoid compiler warnings
17121         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17122         unconditional, fixing regression from 2010-03-29.
17123         Reported by Simon Josefsson.
17124
17125 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17126
17127         maint.mk: s/_header_without_use/_sc_header_without_use/
17128         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17129         (sc_prohibit_assert_without_use): Use the new name.
17130         (sc_prohibit_close_stream_without_use): Likewise.
17131         (sc_prohibit_getopt_without_use): Likewise.
17132         (sc_prohibit_quotearg_without_use): Likewise.
17133         (sc_prohibit_quote_without_use): Likewise.
17134         (sc_prohibit_long_options_without_use): Likewise.
17135         (sc_prohibit_inttostr_without_use): Likewise.
17136         (sc_prohibit_ignore_value_without_use): Likewise.
17137         (sc_prohibit_error_without_use): Likewise.
17138         (sc_prohibit_xalloc_without_use): Likewise.
17139         (sc_prohibit_hash_without_use): Likewise.
17140         (sc_prohibit_hash_pjw_without_use): Likewise.
17141         (sc_prohibit_safe_read_without_use): Likewise.
17142         (sc_prohibit_argmatch_without_use): Likewise.
17143         (sc_prohibit_canonicalize_without_use): Likewise.
17144         (sc_prohibit_root_dev_ino_without_use): Likewise.
17145         (sc_prohibit_openat_without_use): Likewise.
17146         (sc_prohibit_c_ctype_without_use): Likewise.
17147         (sc_prohibit_signal_without_use): Likewise.
17148         (sc_prohibit_intprops_without_use): Likewise.
17149
17150 2010-03-30  Eric Blake  <eblake@redhat.com>
17151
17152         maint: improve module indicators
17153         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17154         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17155         columns, and avoid extra macro expansion.
17156
17157         fdopendir: work around FreeBSD bug
17158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17160         * modules/dirent (Makefile.am): Substitute it.
17161         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17162         declaration.
17163         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17164         fix.
17165         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17166
17167 2010-03-29  Bruno Haible  <bruno@clisp.org>
17168
17169         Emit #pragma system_header after the inclusion guard, not before.
17170         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17171         guard that spans the entire file, not before. This enables an
17172         optimization in GCC's preprocessor.
17173         * lib/ctype.in.h: Likewise.
17174         * lib/dirent.in.h: Likewise.
17175         * lib/errno.in.h: Likewise.
17176         * lib/float.in.h: Likewise.
17177         * lib/getopt.in.h: Likewise.
17178         * lib/iconv.in.h: Likewise.
17179         * lib/langinfo.in.h: Likewise.
17180         * lib/locale.in.h: Likewise.
17181         * lib/math.in.h: Likewise.
17182         * lib/netdb.in.h: Likewise.
17183         * lib/netinet_in.in.h: Likewise.
17184         * lib/pty.in.h: Likewise.
17185         * lib/sched.in.h: Likewise.
17186         * lib/se-selinux.in.h: Likewise.
17187         * lib/search.in.h: Likewise.
17188         * lib/spawn.in.h: Likewise.
17189         * lib/stdarg.in.h: Likewise.
17190         * lib/stdint.in.h: Likewise.
17191         * lib/string.in.h: Likewise.
17192         * lib/strings.in.h: Likewise.
17193         * lib/sys_file.in.h: Likewise.
17194         * lib/sys_ioctl.in.h: Likewise.
17195         * lib/sys_time.in.h: Likewise.
17196         * lib/sys_times.in.h: Likewise.
17197         * lib/sys_utsname.in.h: Likewise.
17198         * lib/sys_wait.in.h: Likewise.
17199         * lib/sysexits.in.h: Likewise.
17200         * lib/wctype.in.h: Likewise.
17201
17202 2010-03-28  James Youngman  <jay@gnu.org>
17203
17204         save-cwd: don't leak a file descriptor when the caller execs.
17205         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17206         saved file descriptor.
17207         * modules/save-cwd (Depends-on): Depend on cloexec.
17208
17209 2010-03-29  Bruno Haible  <bruno@clisp.org>
17210
17211         Remove vestiges of fts-lgpl module.
17212         * lib/fts_.h: Assume GNULIB_FTS is 1.
17213         * lib/fts.c: Likewise.
17214         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17215
17216 2010-03-28  Bruno Haible  <bruno@clisp.org>
17217
17218         Fix definition of tests witness macro.
17219         * gnulib-tool (func_import): Fix definition of witness macro.
17220
17221 2010-03-28  Bruno Haible  <bruno@clisp.org>
17222
17223         Fix ioctl's protoype on glibc systems.
17224         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17225         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17226         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17227         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17228         signature. If not, arrange to replace the ioctl function.
17229         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17230         REPLACE_IOCTL.
17231         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17232         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17233         Reported by Ludovic Courtès <ludo@gnu.org>.
17234
17235 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17236
17237         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17238         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17239         made it so grep -r --include=GLOB* ... did not work.
17240
17241 2010-03-26  Jim Meyering  <meyering@redhat.com>
17242             Eric Blake  <eblake@redhat.com>
17243
17244         maint.mk: prohibit use of test's -o and -a operators
17245         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17246
17247 2010-03-28  Bruno Haible  <bruno@clisp.org>
17248
17249         Remove unused GNULIB_XYZ macro definitions.
17250         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17251         invocation.
17252
17253 2010-03-28  Bruno Haible  <bruno@clisp.org>
17254
17255         Mark privileged tests modules.
17256         * modules/idpriv-drop-tests (Status): New section.
17257         * modules/idpriv-droptemp-tests (Status): New section.
17258
17259 2010-03-28  Bruno Haible  <bruno@clisp.org>
17260
17261         Split C++ tests into separate tests modules.
17262         * modules/dirent-c++-tests: New file, extracted from
17263         modules/dirent-tests.
17264         * modules/dirent-tests: Depend on it.
17265         * modules/fcntl-h-c++-tests: New file, extracted from
17266         modules/fcntl-h-tests.
17267         * modules/fcntl-h-tests: Depend on it.
17268         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17269         * modules/glob-tests: Depend on it.
17270         * modules/iconv-h-c++-tests: New file, extracted from
17271         modules/iconv-h-tests.
17272         * modules/iconv-h-tests: Depend on it.
17273         * modules/langinfo-c++-tests: New file, extracted from
17274         modules/langinfo-tests.
17275         * modules/langinfo-tests: Depend on it.
17276         * modules/locale-c++-tests: New file, extracted from
17277         modules/locale-tests.
17278         * modules/locale-tests: Depend on it.
17279         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17280         * modules/math-tests: Depend on it.
17281         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17282         * modules/pty-tests: Depend on it.
17283         * modules/search-c++-tests: New file, extracted from
17284         modules/search-tests.
17285         * modules/search-tests: Depend on it.
17286         * modules/signal-c++-tests: New file, extracted from
17287         modules/signal-tests.
17288         * modules/signal-tests: Depend on it.
17289         * modules/spawn-c++-tests: New file, extracted from
17290         modules/spawn-tests.
17291         * modules/spawn-tests: Depend on it.
17292         * modules/stdio-c++-tests: New file, extracted from
17293         modules/stdio-tests.
17294         * modules/stdio-tests: Depend on it.
17295         * modules/stdlib-c++-tests: New file, extracted from
17296         modules/stdlib-tests.
17297         * modules/stdlib-tests: Depend on it.
17298         * modules/string-c++-tests: New file, extracted from
17299         modules/string-tests.
17300         * modules/string-tests: Depend on it.
17301         * modules/sys_ioctl-c++-tests: New file, extracted from
17302         modules/sys_ioctl-tests.
17303         * modules/sys_ioctl-tests: Depend on it.
17304         * modules/sys_select-c++-tests: New file, extracted from
17305         modules/sys_select-tests.
17306         * modules/sys_select-tests: Depend on it.
17307         * modules/sys_socket-c++-tests: New file, extracted from
17308         modules/sys_socket-tests.
17309         * modules/sys_socket-tests: Depend on it.
17310         * modules/sys_stat-c++-tests: New file, extracted from
17311         modules/sys_stat-tests.
17312         * modules/sys_stat-tests: Depend on it.
17313         * modules/sys_time-c++-tests: New file, extracted from
17314         modules/sys_time-tests.
17315         * modules/sys_time-tests: Depend on it.
17316         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17317         * modules/time-tests: Depend on it.
17318         * modules/unistd-c++-tests: New file, extracted from
17319         modules/unistd-tests.
17320         * modules/unistd-tests: Depend on it.
17321         * modules/wchar-c++-tests: New file, extracted from
17322         modules/wchar-tests.
17323         * modules/wchar-tests: Depend on it.
17324         * modules/wctype-c++-tests: New file, extracted from
17325         modules/wctype-tests.
17326         * modules/wctype-tests: Depend on it.
17327         Reported by Simon Josefsson.
17328
17329 2010-03-28  Bruno Haible  <bruno@clisp.org>
17330
17331         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17332         * gnulib-tool (func_exists_module): New function, extracted from
17333         func_verify_module.
17334         (func_verify_module): Use it.
17335         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17336         'foo' only if 'foo' exists.
17337         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17338         module.
17339
17340 2010-03-28  Bruno Haible  <bruno@clisp.org>
17341
17342         gnulib-tool: Add support for special categories of tests.
17343         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17344         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17345         (func_usage): Document them.
17346         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17347         inc_unportable_tests, inc_all_tests): New variables.
17348         (func_acceptable): Consider these variables.
17349         (func_modules_transitive_closure): Make it work when the 'Status' field
17350         consists of multiple words.
17351         (func_import): Store and restore the values of inc_cxx_tests,
17352         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17353         inc_all_tests in gnulib-comp.m4.
17354         (func_create_testdir): Set inc_all_tests to true.
17355         * doc/gnulib.texi (Extra tests modules): New section.
17356         Suggested by Jim Meyering.
17357
17358 2010-03-28  Bruno Haible  <bruno@clisp.org>
17359
17360         ansi-c++-opt: Allow turning off the C++ build by default.
17361         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17362         gl_CXX_CHOICE_DEFAULT_NO is defined.
17363         Requested by Eric Blake.
17364
17365 2010-03-28  Bruno Haible  <bruno@clisp.org>
17366
17367         unistd: Avoid #define replacements in C++ mode.
17368         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17369         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17370         setsockopt, shutdown, select): In C++, attach a warning to the function
17371         if possible, rather than #defining the symbol to a dysfunctional alias.
17372         Reported by John W. Eaton <jwe@gnu.org>.
17373
17374 2010-03-28  Bruno Haible  <bruno@clisp.org>
17375
17376         Fix link errors on mingw.
17377         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17378         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17379         $(LIBSOCKET).
17380         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17381         $(LIBSOCKET).
17382
17383 2010-03-28  Bruno Haible  <bruno@clisp.org>
17384             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17385
17386         lib-ignore: Determine different options for different compilers.
17387         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17388         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17389         Add comments.
17390         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17391         * NEWS: Mention the change.
17392
17393 2010-03-27  Bruno Haible  <bruno@clisp.org>
17394
17395         Remove unused GNULIB_XYZ macro definitions.
17396         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17397         * modules/fseek (configure.ac): Likewise.
17398         * modules/ioctl (configure.ac): Likewise.
17399         * modules/open (configure.ac): Likewise.
17400         * modules/stdlib-safer (configure.ac): Likewise.
17401
17402 2010-03-27  Bruno Haible  <bruno@clisp.org>
17403
17404         Add a remark about certain modules.
17405         * modules/malloc (Comment): New section.
17406         * modules/realloc (Comment): Likewise.
17407         * modules/sigpipe (Comment): Likewise.
17408
17409 2010-03-27  Bruno Haible  <bruno@clisp.org>
17410
17411         Resolve conflict between the two kinds of module indicators.
17412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17413         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17414         * modules/canonicalize (configure.ac): Invoke
17415         gl_MODULE_INDICATOR_FOR_TESTS.
17416         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17417         GNULIB_XYZ.
17418         * tests/test-dirent-c++.cc: Likewise.
17419         * tests/test-dirent-safer.c: Likewise.
17420         * tests/test-dup2.c: Likewise.
17421         * tests/test-fchdir.c: Likewise.
17422         * tests/test-fcntl-h-c++.cc: Likewise.
17423         * tests/test-getopt.c: Likewise.
17424         * tests/test-getopt.h: Likewise.
17425         * tests/test-langinfo-c++.cc: Likewise.
17426         * tests/test-locale-c++.cc: Likewise.
17427         * tests/test-math-c++.cc: Likewise.
17428         * tests/test-pty-c++.cc: Likewise.
17429         * tests/test-search-c++.cc: Likewise.
17430         * tests/test-signal-c++.cc: Likewise.
17431         * tests/test-spawn-c++.cc: Likewise.
17432         * tests/test-stdio-c++.cc: Likewise.
17433         * tests/test-stdlib-c++.cc: Likewise.
17434         * tests/test-string-c++.cc: Likewise.
17435         * tests/test-sys_ioctl-c++.cc: Likewise.
17436         * tests/test-sys_select-c++.cc: Likewise.
17437         * tests/test-sys_socket-c++.cc: Likewise.
17438         * tests/test-sys_stat-c++.cc: Likewise.
17439         * tests/test-sys_time-c++.cc: Likewise.
17440         * tests/test-time-c++.cc: Likewise.
17441         * tests/test-unistd-c++.cc: Likewise.
17442         * tests/test-wchar-c++.cc: Likewise.
17443         * tests/uninorm/test-u8-nfc.c: Likewise.
17444         * tests/uninorm/test-u8-nfd.c: Likewise.
17445         * tests/uninorm/test-u8-nfkc.c: Likewise.
17446         * tests/uninorm/test-u8-nfkd.c: Likewise.
17447         * tests/uninorm/test-u16-nfc.c: Likewise.
17448         * tests/uninorm/test-u16-nfd.c: Likewise.
17449         * tests/uninorm/test-u16-nfkc.c: Likewise.
17450         * tests/uninorm/test-u16-nfkd.c: Likewise.
17451         * tests/uninorm/test-u32-nfc.c: Likewise.
17452         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17453         * tests/uninorm/test-u32-nfd.c: Likewise.
17454         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17455         * tests/uninorm/test-u32-nfkc.c: Likewise.
17456         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17457         * tests/uninorm/test-u32-nfkd.c: Likewise.
17458         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17459         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17460
17461 2010-03-27  Bruno Haible  <bruno@clisp.org>
17462
17463         Distinguish two kinds of module indicators.
17464         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17465         gl_MODULE_INDICATOR.
17466         (gl_MODULE_INDICATOR): New macro.
17467         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17468         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17469         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17470         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17471         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17472         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17473         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17474         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17475         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17476         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17477         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17478         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17480         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17481         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17482         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17483         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17484         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17485         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17486         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17487         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17488         * modules/cloexec (configure.ac): Likewise.
17489         * modules/getopt-gnu (configure.ac): Likewise.
17490         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17491         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17492         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17493         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17494
17495 2010-03-27  Bruno Haible  <bruno@clisp.org>
17496
17497         New module description field 'Comment'.
17498         * gnulib-tool: New option --extract-comment.
17499         (func_usage): Document it.
17500         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17501         (func_get_comment): New function.
17502         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17503
17504 2010-03-27  Bruno Haible  <bruno@clisp.org>
17505
17506         Addendum to 2010-02-07 commit.
17507         * gnulib-tool (func_usage): Document --extract-applicability option.
17508
17509 2010-03-27  Bruno Haible  <bruno@clisp.org>
17510
17511         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17512         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17513         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17514         rather than link errors.
17515
17516 2010-03-27  Bruno Haible  <bruno@clisp.org>
17517
17518         Avoid side effects from tests-related modules on the compilation of lib.
17519         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17520         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17521         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17522         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17523         macro.
17524         (func_import): Define a witness macro. Assign it a value that depends
17525         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17526         tests-related modules.
17527         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17528         Reported by Jim Meyering.
17529
17530 2010-03-27  Bruno Haible  <bruno@clisp.org>
17531
17532         Factorize common .m4 code.
17533         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17534         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17535         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17536         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17537         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17538         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17539         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17540         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17541         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17542         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17543         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17544         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17545         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17546         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17547         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17548         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17549         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17550         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17552         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17553         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17555         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17556         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17557         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17558         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17559         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17561         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17562         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17563         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17564         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17565
17566 2010-03-27  Bruno Haible  <bruno@clisp.org>
17567
17568         Fix a compilation error on Cygwin with g++ >= 4.3.
17569         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17570         if it is undefined or if we alias it to chmod.
17571         (lstat): Don't warn about the use of this function if it is undefined
17572         or if we alias it to stat.
17573         Reported by Simon Josefsson.
17574
17575 2010-03-27  Bruno Haible  <bruno@clisp.org>
17576
17577         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17578         * modules/getlogin (configure.ac): Update.
17579
17580         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17581         * modules/getlogin_r (configure.ac): Update.
17582
17583         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17585         * modules/inet_ntop (configure.ac): Update.
17586
17587         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17588         * modules/inet_pton (configure.ac): Update.
17589
17590         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17591         * modules/mbslen (configure.ac): Update.
17592
17593         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17594         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17595         * modules/forkpty (configure.ac): Update.
17596         * modules/openpty (configure.ac): Update.
17597
17598 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17599
17600         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17601         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17602
17603 2010-03-25  Eric Blake  <eblake@redhat.com>
17604
17605         maint: use pragma consistently across replacement headers
17606         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17607         * lib/dirent.in.h (system_header): Likewise.
17608         * lib/errno.in.h (system_header): Likewise.
17609         * lib/float.in.h (system_header): Likewise.
17610         * lib/getopt.in.h (system_header): Likewise.
17611         * lib/iconv.in.h (system_header): Likewise.
17612         * lib/inttypes.in.h (system_header): Likewise.
17613         * lib/langinfo.in.h (system_header): Likewise.
17614         * lib/locale.in.h (system_header): Likewise.
17615         * lib/math.in.h (system_header): Likewise.
17616         * lib/netdb.in.h (system_header): Likewise.
17617         * lib/netinet_in.in.h (system_header): Likewise.
17618         * lib/pty.in.h (system_header): Likewise.
17619         * lib/sched.in.h (system_header): Likewise.
17620         * lib/se-selinux.in.h (system_header): Likewise.
17621         * lib/search.in.h (system_header): Likewise.
17622         * lib/spawn.in.h (system_header): Likewise.
17623         * lib/stdarg.in.h (system_header): Likewise.
17624         * lib/stdint.in.h (system_header): Likewise.
17625         * lib/string.in.h (system_header): Likewise.
17626         * lib/strings.in.h (system_header): Likewise.
17627         * lib/sys_file.in.h (system_header): Likewise.
17628         * lib/sys_ioctl.in.h (system_header): Likewise.
17629         * lib/sys_socket.in.h (system_header): Likewise.
17630         * lib/sys_times.in.h (system_header): Likewise.
17631         * lib/sys_utsname.in.h (system_header): Likewise.
17632         * lib/sys_wait.in.h (system_header): Likewise.
17633         * lib/sysexits.in.h (system_header): Likewise.
17634         * lib/unistd.in.h (system_header): Likewise.
17635         * lib/wctype.in.h (system_header): Likewise.
17636
17637         arpa/inet: fix mingw compilation warning
17638         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17639         Reported by Matthew Bolte.
17640
17641 2010-03-25  Bruno Haible  <bruno@clisp.org>
17642
17643         Avoid collision between gnulib wrapper and libintl wrapper.
17644         * lib/printf.c (printf): Don't define if a printf wrapper is already
17645         defined in intl/printf.c.
17646         Reported by Michel Boaventura <michel@michelboaventura.com>.
17647
17648 2010-03-25  Bruno Haible  <bruno@clisp.org>
17649
17650         Use ANSI C.
17651         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17652
17653 2010-03-25  Bruno Haible  <bruno@clisp.org>
17654
17655         Minor formatting changes.
17656         * lib/acosl.c: Insert space before function argument list.
17657         * lib/argz.c: Likewise.
17658         * lib/asinl.c: Likewise.
17659         * lib/expl.c: Likewise.
17660         * lib/gen-uni-tables.c: Likewise.
17661         * lib/gettext.h: Likewise.
17662         * lib/glthread/lock.h: Likewise.
17663         * lib/tanl.c: Likewise.
17664         * lib/uniname/uniname.c: Likewise.
17665         * tests/test-idpriv-drop.c: Likewise.
17666         * tests/test-idpriv-droptemp.c: Likewise.
17667         * tests/test-lock.c: Likewise.
17668         * tests/test-tls.c: Likewise.
17669         * lib/argp-help.c: Insert space before function-like macro argument
17670         list.
17671         * lib/memcmp.c: Likewise.
17672         * tests/test-base64.c: Likewise.
17673         * lib/localename.c: Insert space before sizeof's argument list.
17674         * lib/safe-alloc.h: Likewise.
17675         * lib/file-set.h: Insert space before macro argument list.
17676         * tests/test-argp.c: Likewise.
17677         * lib/argp-namefrob.h: Insert space before function parameter list.
17678         * lib/getaddrinfo.c: Likewise.
17679         * lib/netdb.in.h: Likewise.
17680         * lib/parse-duration.h: Likewise.
17681         * lib/parse-duration.c: Likewise.
17682         * lib/poll.c: Likewise.
17683         * lib/select.c: Likewise.
17684         * lib/trim.h: Likewise.
17685         * tests/test-usleep.c: Likewise.
17686         * lib/ldexpl.c: Insert space before function parameter list and before
17687         function argument list.
17688         * lib/logl.c: Likewise.
17689         * lib/sqrtl.c: Likewise.
17690         * lib/trim.c: Likewise.
17691         * lib/cosl.c: Use GNU style indentation. Insert space before function
17692         argument list.
17693         * lib/sinl.c: Likewise.
17694         * lib/tsearch.c: Insert space after 'for'.
17695         Reported by Jim Meyering.
17696
17697 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17698
17699         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17700         config header before grepping, as it's not present before
17701         autoreconf/configure are run.  Reported by Simon Josefsson.
17702
17703 2010-03-23  Bruno Haible  <bruno@clisp.org>
17704
17705         pt_chown: Make it work with automake < 1.11.
17706         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17707         Reported by Simon Josefsson.
17708
17709 2010-03-23  Bruno Haible  <bruno@clisp.org>
17710
17711         pt_chown: Don't depend on GPLed modules.
17712         * lib/pt_chown.c: Don't include idpriv.h.
17713         (main): Don't drop privileges.
17714         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17715         Reported by Simon Josefsson.
17716
17717 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17718
17719         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17720         suggestions from karl@freefriends.org (Karl Berry).
17721
17722 2010-03-22  Eric Blake  <eblake@redhat.com>
17723
17724         gethostname: further tweaks
17725         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17726         are overriding gethostname.
17727         Suggested by Bruno Haible.
17728
17729 2010-03-21  Bruno Haible  <bruno@clisp.org>
17730
17731         Fix comments.
17732         * lib/forkpty.c (rpl_forkpty): Fix comment.
17733         * lib/openpty.c (rpl_openpty): Likewise.
17734         Reported by Eric Blake.
17735
17736 2010-03-22  Eric Blake  <eblake@redhat.com>
17737
17738         gethostname: fix build on mingw
17739         * lib/unistd.in.h (includes): Work around fact that mingw
17740         <winsock2.h> re-includes <unistd.h>, by avoiding any
17741         redeclarations if we are being included by <winsock2.h>.
17742         Reported by Matthias Bolte.
17743
17744 2010-03-21  Bruno Haible  <bruno@clisp.org>
17745
17746         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17747         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17748         modifications.
17749         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17750         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17751         provide the replacement.
17752         * modules/forkpty (Depends-on): Add openpty, login_tty.
17753         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17754         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17755         * doc/glibc-functions/forkpty.texi: More supported platforms.
17756         * config/srclist.txt: Add forkpty.c (commented).
17757
17758 2010-03-21  Bruno Haible  <bruno@clisp.org>
17759
17760         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17761         (Makefile.am): Verify that PTY_LIB is defined.
17762
17763         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17764
17765 2010-03-21  Bruno Haible  <bruno@clisp.org>
17766
17767         Tests for module 'login_tty'.
17768         * modules/login_tty-tests: New file.
17769         * tests/test-login_tty.c: New file.
17770
17771         New module 'login_tty'.
17772         * lib/login_tty.c: New file.
17773         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17774         * modules/login_tty: New file.
17775         * doc/glibc-functions/login_tty.texi: Mention the new module.
17776
17777 2010-03-21  Bruno Haible  <bruno@clisp.org>
17778
17779         login_tty: Documentation.
17780         * doc/glibc-functions/login_tty.texi: New file.
17781         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17782
17783 2010-03-21  Bruno Haible  <bruno@clisp.org>
17784
17785         pty: Consistent macro naming.
17786         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17787         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17788         * modules/pty (configure.ac): Update.
17789
17790 2010-03-21  Bruno Haible  <bruno@clisp.org>
17791
17792         Tests for openpty: Make stricter.
17793         * tests/test-openpty.c (main): Add test of canonical processing and
17794         erase.
17795         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17796
17797         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17798         * lib/openpty.c (openpty): New replacement function.
17799         * lib/pty.in.h: Include <termios.h>.
17800         (openpty): Update declaration. Add comments.
17801         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17802         is not declared, arrange to provide the replacement. Check for _getpty
17803         and posix_openpt.
17804         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17805         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17806         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17807         * modules/pty-tests (test_pty_c___LDADD): New variable.
17808         * doc/glibc-functions/openpty.texi: More supported platforms.
17809
17810 2010-03-21  Bruno Haible  <bruno@clisp.org>
17811
17812         setenv: Tweaks.
17813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17814         the test program.
17815         * doc/posix-functions/setenv.texi: Update platforms list.
17816
17817 2010-03-21  Bruno Haible  <bruno@clisp.org>
17818
17819         New module 'unlockpt'.
17820         * lib/unlockpt.c: New file, from glibc with modifications.
17821         * m4/unlockpt.m4: New file.
17822         * modules/unlockpt: New file.
17823         * lib/stdlib.in.h (unlockpt): New declaration.
17824         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17825         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17826         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17827         HAVE_UNLOCKPT.
17828         * doc/posix-functions/unlockpt.texi: Mention the new module.
17829         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17830         * config/srclist.txt: Add unlockpt.c (commented).
17831
17832 2010-03-21  Jim Meyering  <meyering@redhat.com>
17833
17834         maint.mk: prohibit inclusion of "intprops.h" without use
17835         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17836
17837 2010-03-21  Bruno Haible  <bruno@clisp.org>
17838
17839         New module 'grantpt'.
17840         * lib/grantpt.c: New file, from glibc with modifications.
17841         * m4/grantpt.m4: New file.
17842         * modules/grantpt: New file.
17843         * lib/stdlib.in.h (grantpt): New declaration.
17844         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17845         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17846         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17847         HAVE_GRANTPT.
17848         * doc/posix-functions/grantpt.texi: Mention the new module.
17849         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17850         * config/srclist.txt: Add grantpt.c (commented).
17851
17852 2010-03-21  Bruno Haible  <bruno@clisp.org>
17853
17854         New module 'pt_chown'.
17855         * lib/pt_chown.c: New file, from glibc with modifications.
17856         * lib/pty-private.h: New file, from glibc with modifications.
17857         * modules/pt_chown: New file.
17858         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17859
17860 2010-03-21  Bruno Haible  <bruno@clisp.org>
17861
17862         Tests for module 'ptsname'.
17863         * modules/ptsname-tests: New file.
17864         * tests/test-ptsname.c: New file.
17865
17866         New module 'ptsname'.
17867         * lib/ptsname.c: New file, from glibc with modifications.
17868         * m4/ptsname.m4: New file.
17869         * modules/ptsname: New file.
17870         * lib/stdlib.in.h (ptsname): New declaration.
17871         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17872         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17873         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17874         HAVE_PTSNAME.
17875         * doc/posix-functions/ptsname.texi: Mention the new module.
17876         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17877         * config/srclist.txt: Add ptsname.c (commented).
17878
17879 2010-03-21  Bruno Haible  <bruno@clisp.org>
17880
17881         Tests for module 'ttyname_r'.
17882         * modules/ttyname_r-tests: New file.
17883         * tests/test-ttyname_r.c: New file.
17884
17885         New module 'ttyname_r'.
17886         * lib/ttyname_r.c: New file.
17887         * m4/ttyname_r.m4: New file.
17888         * modules/ttyname_r: New file.
17889         * lib/unistd.in.h (ttyname_r): New declaration.
17890         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17891         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17892         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17893         HAVE_TTYNAME_R.
17894         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17895         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17896
17897 2010-03-20  Bruno Haible  <bruno@clisp.org>
17898
17899         signal: Undefine macro definitions in C++ mode.
17900         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17901         sigfillset): Undefine macro definitions from the system header in C++
17902         mode.
17903         Reported by John W. Eaton <jwe@gnu.org>.
17904
17905 2010-03-20  Bruno Haible  <bruno@clisp.org>
17906
17907         Ensure no #include statements inside extern "C" { ... }.
17908         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17909         contain #include statements.
17910         * lib/time.in.h: Likewise.
17911
17912 2010-03-20  Bruno Haible  <bruno@clisp.org>
17913
17914         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17915         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17916         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17917         Reported by John W. Eaton <jwe@gnu.org>.
17918
17919 2010-03-20  Bruno Haible  <bruno@clisp.org>
17920
17921         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17922         Reported by Jim Meyering.
17923
17924 2010-03-20  Bruno Haible  <bruno@clisp.org>
17925
17926         pipe: Set errno upon failure.
17927         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17928         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17929         errno value in error message.
17930
17931 2010-03-20  Bruno Haible  <bruno@clisp.org>
17932             Jim Meyering  <meyering@redhat.com>
17933
17934         lchown: Avoid "unused variable" warning.
17935         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17936
17937 2010-03-20  Bruno Haible  <bruno@clisp.org>
17938
17939         Work around unlink() bug on MacOS X 10.5.6.
17940         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17941         attempting to unlink a parent directory.
17942         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17943         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17944         activate for the replacement function.
17945         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17946
17947 2010-03-20  Bruno Haible  <bruno@clisp.org>
17948
17949         Fix link errors on Solaris 8.
17950         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17951         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17952
17953 2010-03-19  Jim Meyering  <meyering@redhat.com>
17954
17955         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17956         The _LIBC implementation of build_range_exp correctly honors the
17957         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17958         However, the non-_LIBC implementation would ignore that syntax-bit
17959         flag and return REG_ERANGE unconditionally.
17960         This change makes it honor that flag.
17961         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17962         Make two pointer parameters "const".
17963         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17964         (parse_bracket_exp): Update caller.
17965
17966         regex.m4: correct the reversed range endpoint ([b-a]) test
17967         * m4/regex.m4: When requiring that [b-a] evoke failure,
17968         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17969         test pass once again for x86-based systems.
17970
17971 2010-03-19  Bruno Haible  <bruno@clisp.org>
17972
17973         scandir: Fix link error on Solaris 8.
17974         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17975         macros.
17976
17977 2010-03-19  Bruno Haible  <bruno@clisp.org>
17978
17979         getusershell: Fix documentation.
17980         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17981         module.
17982         * doc/glibc-functions/setusershell.texi: Likewise.
17983
17984         getusershell: Provide declaration, missing on Solaris 9.
17985         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17986         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17987         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17988         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17990         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17991         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17992         HAVE_GETUSERSHELL.
17993         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17994
17995 2010-03-19  Bruno Haible  <bruno@clisp.org>
17996
17997         wctype: Provide iswblank function.
17998         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17999         exists and is fine.
18000         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18001         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18002         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18003         * doc/posix-functions/iswblank.texi: Update.
18004
18005 2010-03-19  Bruno Haible  <bruno@clisp.org>
18006
18007         Tests of module 'pty' in C++ mode.
18008         * modules/pty-tests: New file.
18009         * tests/test-pty-c++.cc: New file.
18010         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18011
18012 2010-03-19  Eric Blake  <eblake@redhat.com>
18013
18014         logb: fix documentation
18015         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18016         1.5 declaration bug.
18017
18018         forkpty, openpty: prefer glibc's const-safe prototype
18019         * lib/forkpty.c (rpl_forkpty): New file.
18020         * lib/openpty.c (rpl_openpty): Likewise.
18021         * modules/forkpty (Files): Distribute it.
18022         * modules/openpty (Files): Likewise.
18023         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18024         check...
18025         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18026         replacement for for non-const BSD signature.
18027         * modules/pty (Makefile.am): Substitute witnesses.
18028         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18029         * tests/test-forkpty.c: Update signature check.
18030         * tests/test-openpty.c: Likewise.
18031         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18032         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18033
18034         forkpty, openpty: split functions into new modules
18035         * modules/pty (Makefile.am): Substitute new witnesses.
18036         (Libraries): Move library detection...
18037         * modules/forkpty: ...into new module.
18038         * modules/openpty: Another new module.
18039         * modules/pty-tests: Rename and split...
18040         * modules/forkpty-tests: ...to this...
18041         * modules/openpty-tests: ...and this.
18042         * tests/test-pty.c: Rename and split...
18043         * tests/test-forkpty.c: ...to this...
18044         * tests/test-openpty.c: ...and this.
18045         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18046         (gl_PTY): Split library searching...
18047         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18048         (gl_FORKPTY, gl_OPENPTY): New macros.
18049         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18050         * NEWS: Mention the split.
18051         * MODULES.html.sh (Misc): Document the modules.
18052         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18053         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18054
18055         pty: improve replacement header
18056         * lib/pty.in.h: New file.
18057         * modules/pty (Files): Ship it.
18058         (Makefile.am): Always build replacement.
18059         * m4/pty.m4: Rename...
18060         * m4/pty_h.m4: ...to this.
18061         (gl_PTY): Modernize setting of witness macros; update check of
18062         forkpty to take proper advantage of cache.
18063         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18064
18065         getopt: avoid compiler warning
18066         * lib/getopt.c (attribute_hidden): Remove unused macro.
18067
18068 2010-03-18  Bruno Haible  <bruno@clisp.org>
18069
18070         Fix link errors on Solaris 8.
18071         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18072         * modules/search-tests (test_search_c___LDADD): Likewise.
18073         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18074         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18075         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18076         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18077         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18078         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18079         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18080
18081 2010-03-18  Bruno Haible  <bruno@clisp.org>
18082
18083         Fix bug introduced on 2010-03-14.
18084         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18085         (gl_SPAWN_H): Require it.
18086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18087         Reported by Simon Josefsson.
18088
18089 2010-03-18  Bruno Haible  <bruno@clisp.org>
18090
18091         Fix typo introduced on 2009-12-31.
18092         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18093         posix_spawn_file_actions_adddup2.
18094
18095 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18096         and Eric Blake  <eblake@redhat.com>
18097
18098         test-vc-list-files-git: make more robust
18099         * tests/test-vc-list-files-git.sh: Unset problematic environment
18100         variables.  Chain commands together.
18101
18102 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18103
18104         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18105         `AC_CHECK_DECL' invocation.
18106
18107 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18108
18109         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18110         appears before executable statements. Suggested by Petr Sumbera
18111         <Petr.Sumbera@Sun.COM>.
18112
18113 2010-03-14  Bruno Haible  <bruno@clisp.org>
18114
18115         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18116         portability problems. Instead use a simpler test.
18117         (main): Check that invalid arguments are rejected only on Linux.
18118
18119 2010-03-14  Bruno Haible  <bruno@clisp.org>
18120
18121         Fix bug introduced on 2009-12-31.
18122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18123         gl_PREREQ_SYS_H_WINSOCK2 always.
18124         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18125         SYS_SOCKET_H variable.
18126         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18127         Update comments.
18128         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18129         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18130         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18131         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18132         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18133
18134 2010-03-14  Bruno Haible  <bruno@clisp.org>
18135
18136         Fix values returned by sinl, cosl.
18137         * lib/trigl.h: Add specification comments.
18138         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18139         that combines the values from the precomputed table with the values of
18140         the Chebyshev polynomials.
18141
18142 2010-03-14  Bruno Haible  <bruno@clisp.org>
18143
18144         Fix compilation error when modules 'posix_spawn[p]' are not used.
18145         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18147
18148 2010-03-14  Bruno Haible  <bruno@clisp.org>
18149
18150         Fix compilation error on mingw when module 'time_r' is not used.
18151         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18152         is 1.
18153         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18154         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18155         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18156         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18157
18158 2010-03-14  Bruno Haible  <bruno@clisp.org>
18159
18160         Fix compilation error with Sun C.
18161         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18162         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18163         instead of GCC specific ULONG_LONG_MAX.
18164         * lib/xstrtoll.c: Likewise.
18165         * lib/xstrtoull.c: Likewise.
18166
18167 2010-03-13  Bruno Haible  <bruno@clisp.org>
18168
18169         Allow the user to disable C++ code and tests.
18170         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18171         (gl_PROG_ANSI_CXX): Require it.
18172
18173 2010-03-13  Bruno Haible  <bruno@clisp.org>
18174
18175         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18176         cases.
18177
18178 2010-03-13  Bruno Haible  <bruno@clisp.org>
18179
18180         Test that gnulib does not break the standard C++ headers.
18181         * tests/test-locale-c++2.cc: New file.
18182         * modules/locale-tests (Files): Add it.
18183         (Makefile.am): Compile it for test-locale-c++.
18184         * tests/test-math-c++2.cc: New file.
18185         * modules/math-tests (Files): Add it.
18186         (Makefile.am): Compile it for test-math-c++.
18187         * tests/test-signal-c++2.cc: New file.
18188         * modules/signal-tests (Files): Add it.
18189         (Makefile.am): Compile it for test-signal-c++.
18190         * tests/test-stdio-c++2.cc: New file.
18191         * modules/stdio-tests (Files): Add it.
18192         (Makefile.am): Compile it for test-stdio-c++.
18193         * tests/test-stdlib-c++2.cc: New file.
18194         * modules/stdlib-tests (Files): Add it.
18195         (Makefile.am): Compile it for test-stdlib-c++.
18196         * tests/test-string-c++2.cc: New file.
18197         * modules/string-tests (Files): Add it.
18198         (Makefile.am): Compile it for test-string-c++.
18199         * tests/test-time-c++2.cc: New file.
18200         * modules/time-tests (Files): Add it.
18201         (Makefile.am): Compile it for test-time-c++.
18202         Reported by John W. Eaton <jwe@gnu.org>.
18203
18204 2010-03-13  Bruno Haible  <bruno@clisp.org>
18205
18206         * gnulib-tool (func_usage): Clarify which options are available for
18207         --create-testdir and --create-megatestdir.
18208
18209 2010-03-13  Bruno Haible  <bruno@clisp.org>
18210
18211         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18212         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18213         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18214         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18215         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18216         when appropriate.
18217         Reported by Jim Meyering.
18218
18219 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18220
18221         * gnulib-tool (func_import): Explain origin of code.
18222
18223 2010-03-12  Bruno Haible  <bruno@clisp.org>
18224
18225         Fix problem with automake's definition of CXXLINK.
18226         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18227         Reported by Simon Josefsson and Ludovic Courtès.
18228
18229 2010-03-12  Bruno Haible  <bruno@clisp.org>
18230
18231         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18232         stable releases.
18233
18234 2010-03-11  Bruno Haible  <bruno@clisp.org>
18235
18236         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18237         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18238         whether the system provides one variant or multiple variants of the
18239         function.
18240         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18241         C++ compilers.
18242         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18243         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18244         Reported by Jim Meyering.
18245
18246 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18247
18248         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18249
18250 2010-03-08  Bruno Haible  <bruno@clisp.org>
18251
18252         gnulib-tool: Add support for --libtool in --create-testdir.
18253         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18254         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18255
18256 2010-03-08  Eric Blake  <eblake@redhat.com>
18257
18258         gnulib-tool.texi: mention possibility of git submodule
18259         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18260         submodules.
18261         * doc/.gitignore: Ignore another generated file.
18262
18263 2010-03-08  Karl Berry  <karl@gnu.org>
18264
18265         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18266         of committing gnulib files while skipping others.
18267
18268 2010-03-07  Bruno Haible  <bruno@clisp.org>
18269
18270         Tests of module 'wctype' in C++ mode.
18271         * tests/test-wctype-c++.cc: New file.
18272         * modules/wctype-tests (Files): Add it and tests/signature.h.
18273         (Depends-on): Add ansi-c++-opt.
18274         (Makefile.am): Arrange to compile and run test-wctype-c++.
18275
18276         Tests of module 'wchar' in C++ mode.
18277         * tests/test-wchar-c++.cc: New file.
18278         * modules/wchar-tests (Files): Add it and tests/signature.h.
18279         (Depends-on): Add ansi-c++-opt.
18280         (Makefile.am): Arrange to compile and run test-wchar-c++.
18281         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18282         gl_MODULE_INDICATOR.
18283
18284         Tests of module 'unistd' in C++ mode.
18285         * tests/test-unistd-c++.cc: New file.
18286         * modules/unistd-tests (Files): Add it and tests/signature.h.
18287         (Depends-on): Add ansi-c++-opt.
18288         (Makefile.am): Arrange to compile and run test-unistd-c++.
18289         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18290         gl_MODULE_INDICATOR.
18291
18292         Tests of module 'time' in C++ mode.
18293         * tests/test-time-c++.cc: New file.
18294         * modules/time-tests (Files): Add it and tests/signature.h.
18295         (Depends-on): Add ansi-c++-opt.
18296         (Makefile.am): Arrange to compile and run test-time-c++.
18297         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18298
18299         Tests of module 'sys_time' in C++ mode.
18300         * tests/test-sys_time-c++.cc: New file.
18301         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18302         (Depends-on): Add ansi-c++-opt.
18303         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18304         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18305         gl_MODULE_INDICATOR.
18306
18307         Tests of module 'sys_stat' in C++ mode.
18308         * tests/test-sys_stat-c++.cc: New file.
18309         * modules/sys_stat-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_stat-c++.
18312         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18313         gl_MODULE_INDICATOR.
18314
18315         Tests of module 'sys_socket' in C++ mode.
18316         * tests/test-sys_socket-c++.cc: New file.
18317         * modules/sys_socket-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_socket-c++.
18320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18321         gl_MODULE_INDICATOR.
18322
18323         Tests of module 'sys_select' in C++ mode.
18324         * tests/test-sys_select-c++.cc: New file.
18325         * modules/sys_select-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_select-c++.
18328         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18329         gl_MODULE_INDICATOR.
18330
18331         Tests of module 'sys_ioctl' in C++ mode.
18332         * tests/test-sys_ioctl-c++.cc: New file.
18333         * modules/sys_ioctl-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_ioctl-c++.
18336         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18337         gl_MODULE_INDICATOR.
18338
18339         Tests of module 'string' in C++ mode.
18340         * tests/test-string-c++.cc: New file.
18341         * modules/string-tests (Files): Add it and tests/signature.h.
18342         (Depends-on): Add ansi-c++-opt.
18343         (Makefile.am): Arrange to compile and run test-string-c++.
18344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18345         gl_MODULE_INDICATOR.
18346
18347         Tests of module 'stdlib' in C++ mode.
18348         * tests/test-stdlib-c++.cc: New file.
18349         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18350         (Depends-on): Add ansi-c++-opt.
18351         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18352         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18353         gl_MODULE_INDICATOR.
18354
18355         Tests of module 'stdio' in C++ mode.
18356         * tests/test-stdio-c++.cc: New file.
18357         * modules/stdio-tests (Files): Add it and tests/signature.h.
18358         (Depends-on): Add ansi-c++-opt.
18359         (Makefile.am): Arrange to compile and run test-stdio-c++.
18360         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18361         gl_MODULE_INDICATOR.
18362
18363         Tests of module 'spawn' in C++ mode.
18364         * tests/test-spawn-c++.cc: New file.
18365         * modules/spawn-tests (Files): Add it and tests/signature.h.
18366         (Depends-on): Add ansi-c++-opt.
18367         (Makefile.am): Arrange to compile and run test-spawn-c++.
18368         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18369         gl_MODULE_INDICATOR.
18370
18371         Tests of module 'signal' in C++ mode.
18372         * tests/test-signal-c++.cc: New file.
18373         * modules/signal-tests (Files): Add it and tests/signature.h.
18374         (Depends-on): Add ansi-c++-opt.
18375         (Makefile.am): Arrange to compile and run test-signal-c++.
18376         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18377         gl_MODULE_INDICATOR.
18378
18379         Tests of module 'search' in C++ mode.
18380         * tests/test-search-c++.cc: New file.
18381         * modules/search-tests (Files): Add it and tests/signature.h.
18382         (Depends-on): Add ansi-c++-opt.
18383         (Makefile.am): Arrange to compile and run test-search-c++.
18384         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18385         gl_MODULE_INDICATOR.
18386
18387         Tests of module 'math' in C++ mode.
18388         * tests/test-math-c++.cc: New file.
18389         * modules/math-tests (Files): Add it and tests/signature.h.
18390         (Depends-on): Add ansi-c++-opt.
18391         (Makefile.am): Arrange to compile and run test-math-c++.
18392         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18393
18394         Tests of module 'locale' in C++ mode.
18395         * tests/test-locale-c++.cc: New file.
18396         * modules/locale-tests (Files): Add it and tests/signature.h.
18397         (Depends-on): Add ansi-c++-opt.
18398         (Makefile.am): Arrange to compile and run test-locale-c++.
18399         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18400         gl_MODULE_INDICATOR.
18401
18402         Tests of module 'langinfo' in C++ mode.
18403         * tests/test-langinfo-c++.cc: New file.
18404         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18405         (Depends-on): Add ansi-c++-opt.
18406         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18407         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18408         gl_MODULE_INDICATOR.
18409
18410         Tests of module 'iconv-h' in C++ mode.
18411         * tests/test-iconv-h-c++.cc: New file.
18412         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18413         (Depends-on): Add ansi-c++-opt.
18414         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18415
18416         Tests of module 'glob' in C++ mode.
18417         * tests/test-glob-c++.cc: New file.
18418         * modules/glob-tests (Files): Add it.
18419         (Depends-on): Add ansi-c++-opt.
18420         (Makefile.am): Arrange to compile and run test-glob-c++.
18421
18422         Tests of module 'fcntl-h' in C++ mode.
18423         * tests/test-fcntl-h-c++.cc: New file.
18424         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18425         (Depends-on): Add ansi-c++-opt.
18426         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18427         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18428         gl_MODULE_INDICATOR.
18429
18430         Tests of module 'dirent' in C++ mode.
18431         * tests/test-dirent-c++.cc: New file.
18432         * modules/dirent-tests (Files): Add it and tests/signature.h.
18433         (Depends-on): Add ansi-c++-opt.
18434         (Makefile.am): Arrange to compile and run test-dirent-c++.
18435         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18436         gl_MODULE_INDICATOR.
18437
18438         New module 'ansi-c++-opt'.
18439         * modules/ansi-c++-opt: New file.
18440         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18441
18442         Document C++ namespace mode.
18443         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18444
18445         wctype: Avoid #define replacements in C++ mode.
18446         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18447         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18448         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18449         In C++, define a namespaced alias symbol.
18450         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18451         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18452         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18453         rule.
18454
18455         wchar: Avoid #define replacements in C++ mode.
18456         * lib/wchar.in.h: Include c++defs.h.
18457         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18458         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18459         symbol.
18460         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18461         * modules/wchar (Depends-on): Add c++defs.
18462         (Makefile.am): Update wchar.h rule.
18463
18464         unistd: Avoid #define replacements in C++ mode.
18465         * lib/unistd.in.h: Include c++defs.h.
18466         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18467         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18468         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18469         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18470         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18471         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18472         symbol.
18473         (environ): Update.
18474         * modules/unistd (Depends-on): Add c++defs.
18475         (Makefile.am): Update unistd.h rule.
18476
18477         time: Avoid #define replacements in C++ mode.
18478         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18479         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18480         define a namespaced alias symbol.
18481         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18482         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18483         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18484         * modules/time (Depends-on): Add c++defs, warn-on-use.
18485         (Makefile.am): Update time.h rule.
18486         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18487         * modules/nanosleep (configure.ac): Likewise.
18488         * modules/strptime (configure.ac): Likewise.
18489         * modules/timegm (configure.ac): Likewise.
18490
18491         sys_time: Avoid #define replacements in C++ mode.
18492         * lib/sys_time.in.h: Include c++defs.h.
18493         (gettimeofday): In C++, define a namespaced alias symbol.
18494         * modules/sys_time (Depends-on): Add c++defs.
18495         (Makefile.am): Update sys/time.h rule.
18496
18497         sys_stat: Avoid #define replacements in C++ mode.
18498         * lib/sys_stat.in.h: Include c++defs.h.
18499         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18500         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18501         namespaced alias symbol.
18502         In C++, define a namespaced alias symbol.
18503         * modules/sys_stat (Depends-on): Add c++defs.
18504         (Makefile.am): Update sys/stat.h rule.
18505
18506         sys_socket: Avoid #define replacements in C++ mode.
18507         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18508         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18509         definitions also when the system has a <sys/socket.h>.
18510         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18511         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18512         In C++, define a namespaced alias symbol.
18513         * modules/sys_socket (Depends-on): Add c++defs.
18514         (Makefile.am): Update sys/socket.h rule.
18515
18516         sys_select: Avoid #define replacements in C++ mode.
18517         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18518         definitions also when the system has a <sys/select.h>.
18519         (select): In C++, define a namespaced alias symbol.
18520         * modules/sys_select (Depends-on): Add c++defs.
18521         (Makefile.am): Update sys/select.h rule.
18522
18523         sys_ioctl: Avoid #define replacements in C++ mode.
18524         * lib/sys_ioctl.in.h: Include c++defs.h.
18525         (ioctl): In C++, define a namespaced alias symbol.
18526         * modules/sys_ioctl (Depends-on): Add c++defs.
18527         (Makefile.am): Update sys/ioctl.h rule.
18528
18529         string: Avoid #define replacements in C++ mode.
18530         * lib/string.in.h: Include c++defs.h.
18531         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18532         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18533         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18534         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18535         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18536         * modules/string (Depends-on): Add c++defs.
18537         (Makefile.am): Update string.h rule.
18538
18539         stdlib: Avoid #define replacements in C++ mode.
18540         * lib/stdlib.in.h: Include c++defs.h.
18541         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18542         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18543         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18544         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18545         symbol.
18546         * modules/stdlib (Depends-on): Add c++defs.
18547         (Makefile.am): Update stdlib.h rule.
18548
18549         stdio: Avoid #define replacements in C++ mode.
18550         * lib/stdio.in.h: Include c++defs.h.
18551         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18552         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18553         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18554         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18555         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18556         namespaced alias symbol.
18557         * modules/stdio (Depends-on): Add c++defs.
18558         (Makefile.am): Update stdio.h rule.
18559
18560         spawn: Avoid #define replacements in C++ mode.
18561         * lib/spawn.in.h: Include c++defs.h.
18562         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18563         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18564         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18565         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18566         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18567         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18568         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18569         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18570         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18571         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18572         In C++, define a namespaced alias symbol.
18573         * modules/spawn (Depends-on): Add c++defs.
18574         (Makefile.am): Update spawn.h rule.
18575
18576         signal: Avoid #define replacements in C++ mode.
18577         * lib/signal.in.h: Include c++defs.h.
18578         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18579         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18580         namespaced alias symbol.
18581         * modules/signal (Depends-on): Add c++defs.
18582         (Makefile.am): Update signal.h rule.
18583
18584         search: Avoid #define replacements in C++ mode.
18585         * lib/search.in.h: Include c++defs.h.
18586         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18587         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18588         symbol.
18589         * modules/search (Depends-on): Add c++defs.
18590         (Makefile.am): Update search.h rule.
18591
18592         math: Avoid #define replacements in C++ mode.
18593         * lib/math.in.h: Include c++defs.h.
18594         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18595         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18596         trunc, truncl): In C++, define a namespaced alias symbol.
18597         * modules/math (Depends-on): Add c++defs.
18598         (Makefile.am): Update math.h rule.
18599
18600         locale: Avoid #define replacements in C++ mode.
18601         * lib/locale.in.h: Include c++defs.h.
18602         (duplocale): In C++, define a namespaced alias symbol.
18603         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18605         * modules/locale (Depends-on): Add c++defs.
18606         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18607
18608         langinfo: Avoid #define replacements in C++ mode.
18609         * lib/langinfo.in.h: Include c++defs.h.
18610         (nl_langinfo): In C++, define a namespaced alias symbol.
18611         * modules/langinfo (Depends-on): Add c++defs.
18612         (Makefile.am): Update langinfo.h rule.
18613
18614         iconv-h: Avoid #define replacements in C++ mode.
18615         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18616         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18617         symbol.
18618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18619         whenever iconv is present.
18620         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18621         (Makefile.am): Update iconv.h rule.
18622
18623         glob: Avoid #define replacements in C++ mode.
18624         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18625         (_gl_glob_errfunc_fn): New type.
18626         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18627         symbol.
18628         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18629         (Makefile.am): Update glob.h rule.
18630
18631         fcntl-h: Avoid #define replacements in C++ mode.
18632         * lib/fcntl.in.h: Include c++defs.h.
18633         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18634         * modules/fcntl-h (Depends-on): Add c++defs.
18635         (Makefile.am): Update fcntl.h rule.
18636
18637         dirent: Avoid #define replacements in C++ mode.
18638         * lib/dirent.in.h: Include c++defs.h.
18639         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18640         namespaced alias symbol.
18641         (dirfd): Update declaration.
18642         * modules/dirent (Depends-on): Add c++defs.
18643         (Makefile.am): Update dirent.h rule.
18644
18645         ctype: Make it usable in C++ code.
18646         * lib/ctype.in.h: Include c++defs.h.
18647         (isblank): Declare as extern "C".
18648         * modules/ctype (Depends-on): Add c++defs.
18649         (Makefile.am): Update ctype.h rule.
18650
18651         New module 'c++defs'.
18652         * modules/c++defs: New file.
18653         * build-aux/c++defs.h: New file.
18654         Reported by John W. Eaton <jwe@gnu.org>.
18655
18656 2010-03-07  Bruno Haible  <bruno@clisp.org>
18657
18658         logb: Provide missing declaration for Cygwin.
18659         * lib/math.in.h (logb): New declaration.
18660         * m4/logb.m4: New file.
18661         * modules/logb (Files): Add m4/logb.m4.
18662         (Depends-on): Add math.
18663         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18664         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18666         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18667         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18668
18669 2010-03-07  Bruno Haible  <bruno@clisp.org>
18670
18671         Fix test-cond link error.
18672         * tests/test-cond.c: Include <stdio.h>.
18673
18674 2010-03-07  Bruno Haible  <bruno@clisp.org>
18675
18676         Fix test-dirent-safer link error.
18677         * modules/dirent-safer-tests (Makefile.am): Define
18678         test_dirent_safer_LDADD.
18679
18680 2010-03-07  Bruno Haible  <bruno@clisp.org>
18681
18682         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18683         among default module list.
18684
18685 2010-03-07  Bruno Haible  <bruno@clisp.org>
18686
18687         Fix link error on platforms with GNU libiconv.
18688         * modules/unistr/u8-strcoll-tests (Makefile): Define
18689         test_u8_strcoll_LDADD.
18690         * modules/unistr/u16-strcoll-tests (Makefile): Define
18691         test_u16_strcoll_LDADD.
18692         * modules/unistr/u32-strcoll-tests (Makefile): Define
18693         test_u32_strcoll_LDADD.
18694
18695 2010-03-07  Bruno Haible  <bruno@clisp.org>
18696
18697         Use POSIX declarations for socket functions.
18698         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18699         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18700         rpl_sendto): Change declaration to match POSIX.
18701         * lib/connect.c (rpl_connect): Likewise.
18702         * lib/accept.c (rpl_accept): Likewise.
18703         * lib/bind.c (rpl_bind): Likewise.
18704         * lib/getpeername.c (rpl_getpeername): Likewise.
18705         * lib/getsockname.c (rpl_getsockname): Likewise.
18706         * lib/recv.c (rpl_recv): Likewise.
18707         * lib/send.c (rpl_send): Likewise.
18708         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18709         * lib/sendto.c (rpl_sendto): Likewise.
18710
18711 2010-03-06  Bruno Haible  <bruno@clisp.org>
18712
18713         Clarify access, euidaccess, faccessat.
18714         * doc/posix-functions/faccessat.texi: Mention security problem under
18715         "Other problems", not "Portability problems".
18716         * doc/posix-functions/access.texi: Likewise. Mention a related security
18717         problem.
18718         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18719         * lib/euidaccess.c: Add comments about platforms.
18720         * lib/unistd.in.h (access, euidaccess): Add warnings.
18721
18722 2010-03-07  Bruno Haible  <bruno@clisp.org>
18723
18724         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18725         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18726         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18727         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18728         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18729         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18730         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18731         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18732         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18734         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18735         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18736         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18737         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18738         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18739         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18740         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18741         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18742         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18743         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18744         Likewise.
18745         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18746         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18747         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18748         Likewise.
18749         * tests/test-spawn.c (main): Make it work when
18750         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18751
18752 2010-03-07  Bruno Haible  <bruno@clisp.org>
18753
18754         Fix incorrect Makefile.am generation in German locale.
18755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18756         Execute sed command with character range in C locale.
18757
18758 2010-03-06  Bruno Haible  <bruno@clisp.org>
18759
18760         Tests for module 'iconv-h'.
18761         * modules/iconv-h-tests: New file.
18762         * tests/test-iconv-h.c: New file.
18763
18764         New module 'iconv-h'.
18765         * modules/iconv-h: New file.
18766         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18767         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18768         (configure.ac): Remove gl_ICONV_H.
18769         (Makefile.am): Remove rule for iconv.h.
18770
18771 2010-03-06  Bruno Haible  <bruno@clisp.org>
18772
18773         More consistent naming of *.m4 files.
18774         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18775         * modules/wctype (Files): Update.
18776
18777         More consistent naming of *.m4 files.
18778         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18779         * modules/wchar (Files): Update.
18780
18781 2010-03-06  Jim Meyering  <meyering@redhat.com>
18782
18783         euidaccess: relax license to LGPLv2+
18784         * modules/euidaccess (License): Relax to LGPLv2+.
18785
18786 2010-03-06  Bruno Haible  <bruno@clisp.org>
18787
18788         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18789         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18790         (Makefile.am): Augment lib_SOURCES instead.
18791
18792 2010-03-04  Jim Meyering  <meyering@redhat.com>
18793
18794         utime: remove obsolete module
18795         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18796         unnecessary for years, and has been marked as obsolete for 10 months.
18797         * modules/utime: Remove file.
18798         * lib/utime.c: Remove file.
18799         * m4/utime.m4: Remove file.
18800         * m4/utimes-null.m4: Remove file.
18801         * doc/posix-functions/utime.texi (utime): Remove reference to
18802         the module.  Move the sole "fixed by gnulib" item into the
18803         "problems not fixed by Gnulib" list.
18804         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18805
18806 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18807
18808         * modules/exit (License): Relax license to LGPLv2+.
18809         (Status): Mark as obsolete.
18810         * NEWS: Mention deprecated 'exit' module.
18811         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18812         of now obsolete 'exit'.
18813
18814 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815
18816         fts-lgpl: remove unused module
18817         * modules/fts-lgpl: Remove.
18818         * MODULES.html.sh (func_all_modules): Adjust.
18819         * check-module (find_included_lib_files): Adjust.
18820         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18821
18822 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18823
18824         copy-acl: enhance Solaris ACL error handling
18825         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18826         * lib/set-mode-acl.c (qset_acl): Likewise.
18827
18828 2010-03-02  Bruno Haible  <bruno@clisp.org>
18829
18830         spawn: Don't override the system defined values on FreeBSD 8.
18831         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18832         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18833         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18834         if HAVE_POSIX_SPAWN is 1.
18835         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18836
18837 2010-03-01  Bruno Haible  <bruno@clisp.org>
18838
18839         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18840         regarding Automake.
18841
18842 2010-02-25  Bruno Haible  <bruno@clisp.org>
18843
18844         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18845         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18846         setting, not afterwards.
18847         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18848
18849 2010-02-24  Eric Blake  <eblake@redhat.com>
18850
18851         bootstrap, git-version-gen: use timestamp
18852         * build-aux/git-version-gen (scriptversion): Force UTC.
18853         * build-aux/bootstrap (scriptversion): New variable.
18854
18855         bootstrap: allow older git
18856         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18857         older than 1.6.4.  Requested by the libvirt project.
18858
18859 2010-02-23  Eric Blake  <eblake@redhat.com>
18860
18861         warn-on-use: work with old autoconf
18862         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18863         AS_VAR semantics of autoconf 2.60.
18864         Reported by Bruno Haible.
18865
18866         bootstrap: improve some comments
18867         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18868         clarification comments.
18869
18870         gettimeofday: provide correct function
18871         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18872         when replacement is declared, otherwise provide gettimeofday.
18873         Reported by Michael Goffioul.
18874
18875 2010-02-23  Jim Meyering  <meyering@redhat.com>
18876
18877         lib-ignore: relax license to "unlimited", not LGPLv2+
18878         * modules/lib-ignore (License): Relax to "unlimited".
18879
18880 2010-02-23  Jim Meyering  <meyering@redhat.com>
18881
18882         lib-ignore: relax license to LGPLv2+
18883         * modules/lib-ignore (License): Relax to LGPLv2+.
18884
18885 2010-02-22  Eric Blake  <eblake@redhat.com>
18886
18887         lseek: avoid bash 3.2 broken pipe bug
18888         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18889         warning from bash 3.2.
18890         Reported by Ben Pfaff, with analysis from Bruno Haible.
18891
18892         bootstrap: support non-FSF copyright holder
18893         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18894         bootstrap.conf override of COPYRIGHT_HOLDER.
18895         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18896
18897         bootstrap: interoperate with gettext 0.14.1
18898         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18899
18900         bootstrap: allow for alternate submodule location
18901         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18902         hardcoding submodule location.
18903         (gnulib_mk): Allow direct use of Makefile.am.
18904
18905         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18906         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18907         rather than reconfiguring where the submodule points.
18908
18909         gettimeofday: restore support for platforms that lack function
18910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18911         replacement if function is missing.
18912         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18913         * modules/sys_time (Makefile.am): Substitute it.
18914         * lib/sys_time.in.h (gettimeofday): Check it.
18915         Reported by Michael Goffioul.
18916
18917 2010-02-21  Bruno Haible  <bruno@clisp.org>
18918
18919         * lib/stdio.in.h (obstack_printf): Fix typo.
18920
18921 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18922
18923         vc-list-files: use bzr ls's -R option
18924         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18925         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18926
18927 2010-02-21  Jim Meyering  <meyering@redhat.com>
18928
18929         init.sh: fix EXEEXT shims to work also for names like test-prog
18930         * tests/init.sh: Re-exec a better shell, when needed.
18931         If the current shell lacks support for posix $(...), an init.sh-using
18932         test will now try to find a shell that supports that.  If EXEEXT is
18933         nonempty, we also require support for hyphen-in-alias-name and shell
18934         substitutions like ${var#glob}.  Failure to find such a shell results
18935         in a skipped test.
18936
18937 2010-02-21  Bruno Haible  <bruno@clisp.org>
18938
18939         Really work around around "broken pipe" error message from bash 3.2.
18940         * gnulib-tool (func_reset_sigpipe): Remove function.
18941         (echo): In bash 3.2, define to a function that uses printf.
18942         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18943
18944 2010-02-20  Bruno Haible  <bruno@clisp.org>
18945
18946         Restore support for automake 1.9.6 with autoconf 2.61.
18947         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18948         Reported by James Youngman <jay@gnu.org>.
18949
18950 2010-02-20  Bruno Haible  <bruno@clisp.org>
18951
18952         Improve *printf warning condition.
18953         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18954         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18955         and the function is overridden due to SIGPIPE emulation.
18956
18957 2010-02-20  Bruno Haible  <bruno@clisp.org>
18958
18959         * lib/stdio.in.h: Tweak comments.
18960
18961 2010-02-19  Bruno Haible  <bruno@clisp.org>
18962
18963         Make it easier to find modules. New gnulib-tool option '--find'.
18964         * gnulib-tool: New option --find.
18965         (func_usage): Document it.
18966         (func_sanitize_modulelist): New function, extracted from
18967         func_all_modules.
18968         (func_all_modules): Invoke it.
18969         * doc/gnulib-tool.texi (Which modules?): New node.
18970
18971 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18972
18973         * lib/sys_select.in.h: Provide select replacement even if
18974         sys/select.h exists on a system, for Interix.
18975
18976 2010-02-18  Jim Meyering  <meyering@redhat.com>
18977
18978         init.sh: don't use $(...) just yet
18979         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18980         to accommodate e.g., Solaris' /bin/sh.
18981
18982 2010-02-17  Bruno Haible  <bruno@clisp.org>
18983
18984         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18985         Reported by Ludovic Courtès <ludo@gnu.org>.
18986
18987 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18988
18989         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18990         linking with -lintl.
18991
18992 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18993
18994         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18995         if not provided by the system's netdb.h.  Reported by
18996         ludo@gnu.org (Ludovic Courtès).
18997
18998 2010-02-15  Jim Meyering  <meyering@redhat.com>
18999
19000         init.sh: improve portability and efficiency
19001         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19002         "dummy" in a for loop.
19003         Use '!', not '^' to select the complement of a character set used
19004         in a "case" statement.
19005         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19006         Suggestions from Eric Blake.
19007
19008         init.sh: automatically accommodate programs with the .exe suffix
19009         Automatically arrange for an invocation of "prog" to execute the
19010         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19011         may use the simpler "prog", yet still work when built on a system
19012         that requires specifying the added suffix.
19013         Do this by constructing a function named "prog" that invokes
19014         "prog.exe" for each .exe file in selected directories.
19015         * tests/init.sh (find_exe_basenames_): New function.
19016         (create_exe_shim_functions_): New function.
19017         (path_prepend_): Use it.
19018
19019         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19020         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19021         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19022
19023 2010-02-14  Jim Meyering  <meyering@redhat.com>
19024
19025         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19026         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19027         (sc_prohibit_hash_pjw_without_use): New rule.
19028
19029         maint.mk: allow the default upload destination dir to be overridden
19030         * top/maint.mk (upload_dest_dir_): Define with a default that
19031         preserves the status quo.
19032         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19033         Reported by Peter Simons.
19034
19035         maint.mk: prohibit inclusion of "hash.h" without_use
19036         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19037
19038 2010-02-10  Jim Meyering  <meyering@redhat.com>
19039
19040         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19041         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19042
19043 2010-02-09  Eric Blake  <ebb9@byu.net>
19044         and Bruno Haible  <bruno@clisp.org>
19045
19046         obstack-printf-posix: ensure declaration
19047         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19048         extracted from gl_FUNC_OBSTACK_PRINTF.
19049         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19050         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19051         Likewise.
19052         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19053         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19054         0.
19055
19056 2010-02-08  Bruno Haible  <bruno@clisp.org>
19057
19058         gnulib-tool: Fix typo in 2010-02-07 commit.
19059         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19060         Reported by Eric Blake.
19061
19062 2010-02-07  Bruno Haible  <bruno@clisp.org>
19063
19064         gnulib-tool: Fix up caching patches.
19065         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19066         option --no-cache. Use associative arrays when supported by the shell.
19067         (sed_comments): New variable.
19068         (modcache): Renamed from do_cache.
19069         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19070         abbreviate unnecessarily.
19071         (have_associative): New variable.
19072         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19073         way also for ksh and zsh.
19074         (func_init_sed_convert_to_cache_statements): New function, extracted
19075         from func_cache_lookup_module. Add support for associative arrays.
19076         Don't set the c_MODULE_cached variable here. Ignore all lines before
19077         the first field header. Remove only the final newline, not all trailing
19078         newlines. Support empty fields correctly. Limit the use of 'eval' to
19079         assignments.
19080         (func_get_description, func_get_status, func_get_notice,
19081         func_get_applicability, func_get_filelist, func_get_dependencies,
19082         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19083         func_get_automake_snippet, func_get_include_directive,
19084         func_get_link_directive, func_get_license, func_get_maintainer):
19085         Update documentation. List the unoptimized code first. Add support for
19086         associative arrays. Limit the use of 'eval' to assignments.
19087         (func_get_applicability): Undo stylistic pessimisations.
19088         (func_get_automake_snippet, func_get_include_directive): Reduce code
19089         duplication.
19090         (func_modules_transitive_closure, func_modules_add_dummy,
19091         func_modules_notice, func_modules_to_filelist, func_add_file,
19092         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19093         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19094         func_create_testdir, func_create_megatestdir): Update documentation.
19095
19096 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19097
19098         * gnulib-tool (func_cache_lookup_module): Store the module name
19099         belonging to the cache variable; error out if two different
19100         module names map to the same cache variable name.
19101
19102 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19103
19104         gnulib-tool: Make caching optional.
19105         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19106         Update matching short versions of --no-changelog.
19107         (func_usage): Update.
19108         (sed_extract_cache_prog): Renamed from ...
19109         (sed_extract_prog): ... this; revert to old extraction script.
19110         (func_get_description, func_get_status)
19111         (func_get_notice, func_get_applicability, func_get_filelist)
19112         (func_get_dependencies, func_get_autoconf_early_snippet)
19113         (func_get_autoconf_snippet, func_get_automake_snippet)
19114         (func_get_include_directive, func_get_link_directive)
19115         (func_get_license, func_get_maintainer): If $do_cache is false,
19116         use old, non-caching extraction scripts.
19117         Suggestion by Bruno Haible.
19118
19119 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19120
19121         gnulib-tool: cache module metainformation.
19122         * gnulib-tool (sed_extract_prog): Match newline before each
19123         header, and rewrite header to a shell variable suffix.
19124         (func_cache_var, func_cache_lookup_module): New functions,
19125         to turn a module name into a cache variable prefix, and to
19126         look up and cache module metainformation.
19127         (func_get_description, func_get_status)
19128         (func_get_notice, func_get_applicability, func_get_filelist)
19129         (func_get_dependencies, func_get_autoconf_early_snippet)
19130         (func_get_autoconf_snippet, func_get_automake_snippet)
19131         (func_get_include_directive, func_get_link_directive)
19132         (func_get_license, func_get_maintainer): Use
19133         func_cache_lookup_module.
19134
19135 2010-02-07  Bruno Haible  <bruno@clisp.org>
19136
19137         fnctl: Fix missing dependency.
19138         * modules/fcntl (Depends-on): Add getdtablesize.
19139         Reported by John W. Eaton <jwe@gnu.org>.
19140
19141 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19142
19143         Argp: fix recognition of short alias options.
19144
19145         * lib/argp-parse.c (convert_options): Fix improper use of
19146         `|' between character values.
19147         * tests/test-argp.c (group1_option): New alias option
19148         --read (-r).
19149         (group1_parser): Special handling for 'r'.
19150         (test15): New test case.
19151         (test_fun): Add test15.
19152         * tests/test-argp-2.sh: Update expected --help and --usage
19153         outputs.
19154
19155 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19156
19157         * tests/test-argp.c: Fix indentation.
19158
19159 2010-02-04  Eric Blake  <ebb9@byu.net>
19160
19161         gettimeofday: expose type of second argument
19162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19163         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19164         * tests/test-gettimeofday.c: Use it to silence warning.
19165         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19166         the issue.
19167
19168 2010-02-03  Jim Meyering  <meyering@redhat.com>
19169
19170         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19171         * lib/regcomp.c (TYPE_SIGNED): Define.
19172         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19173
19174         regcomp.c: avoid a new -Wshadow warning
19175         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19176
19177 2010-02-01  Jim Meyering  <meyering@redhat.com>
19178
19179         removing useless parentheses in cpp #define directives
19180         For motivation, see commit c0221df4, "define STREQ(a,b)
19181         consistently, removing useless parentheses"
19182         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19183         * lib/mountlist.c (MNT_IGNORE): Likewise.
19184         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19185
19186 2010-02-01  Eric Blake  <ebb9@byu.net>
19187
19188         sys_time: use link-warning
19189         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19190         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19191         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19192         * modules/sys_time (Depends-on): Add warn-on-use.
19193         (Makefile.am): Always build replacement.
19194         (configure.ac): Update substitutions.
19195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19196         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19197         bother with SYS_TIME_H.
19198         * modules/gettimeofday (configure.ac): Declare indicator.
19199         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19200         in use.
19201
19202         closein-tests: silence compiler warning
19203         * tests/test-closein.c (main): Ignore fread result.
19204         * modules/closein-tests (Depends-on): Add ignore-value.
19205
19206         tests: silence warning about system return
19207         * tests/test-areadlink-with-size.c (main): Ignore system result.
19208         * tests/test-areadlink.c (main): Likewise.
19209         * tests/test-areadlinkat-with-size.c (main): Likewise.
19210         * tests/test-areadlinkat.c (main): Likewise.
19211         * tests/test-canonicalize-lgpl.c (main): Likewise.
19212         * tests/test-canonicalize.c (main): Likewise.
19213         * tests/test-chown.c (main): Likewise.
19214         * tests/test-fchownat.c (main): Likewise.
19215         * tests/test-fdutimensat.c (main): Likewise.
19216         * tests/test-fstatat.c (main): Likewise.
19217         * tests/test-futimens.c (main): Likewise.
19218         * tests/test-lchown.c (main): Likewise.
19219         * tests/test-link.c (main): Likewise.
19220         * tests/test-linkat.c (main): Likewise.
19221         * tests/test-lstat.c (main): Likewise.
19222         * tests/test-mkdir.c (main): Likewise.
19223         * tests/test-mkdirat.c (main): Likewise.
19224         * tests/test-mkfifo.c (main): Likewise.
19225         * tests/test-mkfifoat.c (main): Likewise.
19226         * tests/test-mknod.c (main): Likewise.
19227         * tests/test-readlink.c (main): Likewise.
19228         * tests/test-remove.c (main): Likewise.
19229         * tests/test-rename.c (main): Likewise.
19230         * tests/test-renameat.c (main): Likewise.
19231         * tests/test-rmdir.c (main): Likewise.
19232         * tests/test-symlink.c (main): Likewise.
19233         * tests/test-symlinkat.c (main): Likewise.
19234         * tests/test-unlink.c (main): Likewise.
19235         * tests/test-unlinkat.c (main): Likewise.
19236         * tests/test-utimens.c (main): Likewise.
19237         * tests/test-utimensat.c (main): Likewise.
19238         * modules/areadlink-tests (Depends-on): Add ignore-value.
19239         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19240         * modules/areadlinkat-tests (Depends-on): Likewise.
19241         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19242         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19243         * modules/canonicalize-tests (Depends-on): Likewise.
19244         * modules/chown-tests (Depends-on): Likewise.
19245         * modules/fdutimensat-tests (Depends-on): Likewise.
19246         * modules/futimens-tests (Depends-on): Likewise.
19247         * modules/lchown-tests (Depends-on): Likewise.
19248         * modules/link-tests (Depends-on): Likewise.
19249         * modules/linkat-tests (Depends-on): Likewise.
19250         * modules/lstat-tests (Depends-on): Likewise.
19251         * modules/mkdir-tests (Depends-on): Likewise.
19252         * modules/mkfifo-tests (Depends-on): Likewise.
19253         * modules/mkfifoat-tests (Depends-on): Likewise.
19254         * modules/mknod-tests (Depends-on): Likewise.
19255         * modules/openat-tests (Depends-on): Likewise.
19256         * modules/readlink-tests (Depends-on): Likewise.
19257         * modules/remove-tests (Depends-on): Likewise.
19258         * modules/rename-tests (Depends-on): Likewise.
19259         * modules/renameat-tests (Depends-on): Likewise.
19260         * modules/rmdir-tests (Depends-on): Likewise.
19261         * modules/symlink-tests (Depends-on): Likewise.
19262         * modules/symlinkat-tests (Depends-on): Likewise.
19263         * modules/unlink-tests (Depends-on): Likewise.
19264         * modules/utimens-tests (Depends-on): Likewise.
19265         * modules/utimensat-tests (Depends-on): Likewise.
19266
19267 2010-01-31  Bruno Haible  <bruno@clisp.org>
19268
19269         Perform the same test for many <math.h> functions.
19270         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19271         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19272         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19273         of gl_MATHFUNC.
19274         * modules/acos (configure.ac): Likewise.
19275         * modules/asin (configure.ac): Likewise.
19276         * modules/atan (configure.ac): Likewise.
19277         * modules/atan2 (configure.ac): Likewise.
19278         * modules/cbrt (configure.ac): Likewise.
19279         * modules/copysign (configure.ac): Likewise.
19280         * modules/cos (configure.ac): Likewise.
19281         * modules/cosh (configure.ac): Likewise.
19282         * modules/erf (configure.ac): Likewise.
19283         * modules/erfc (configure.ac): Likewise.
19284         * modules/exp (configure.ac): Likewise.
19285         * modules/fmod (configure.ac): Likewise.
19286         * modules/hypot (configure.ac): Likewise.
19287         * modules/j0 (configure.ac): Likewise.
19288         * modules/j1 (configure.ac): Likewise.
19289         * modules/jn (configure.ac): Likewise.
19290         * modules/lgamma (configure.ac): Likewise.
19291         * modules/log (configure.ac): Likewise.
19292         * modules/log10 (configure.ac): Likewise.
19293         * modules/log1p (configure.ac): Likewise.
19294         * modules/pow (configure.ac): Likewise.
19295         * modules/remainder (configure.ac): Likewise.
19296         * modules/sin (configure.ac): Likewise.
19297         * modules/sinh (configure.ac): Likewise.
19298         * modules/tan (configure.ac): Likewise.
19299         * modules/tanh (configure.ac): Likewise.
19300         * modules/y0 (configure.ac): Likewise.
19301         * modules/y1 (configure.ac): Likewise.
19302         * modules/yn (configure.ac): Likewise.
19303         Suggested by Paolo Bonzini.
19304
19305 2010-01-31  Bruno Haible  <bruno@clisp.org>
19306
19307         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19308
19309 2010-01-31  Bruno Haible  <bruno@clisp.org>
19310
19311         Work around getdelim() bug on FreeBSD 8.0.
19312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19313         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19314         not work.
19315         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19316         is 1.
19317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19318         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19319         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19320         a non-zero size.
19321         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19322
19323 2010-01-31  Bruno Haible  <bruno@clisp.org>
19324
19325         Work around getline() bug on FreeBSD 8.0.
19326         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19327         and a non-zero size.
19328         * tests/test-getline.c (main): Likewise.
19329         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19330         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19331
19332 2010-01-28  Eric Blake  <ebb9@byu.net>
19333
19334         regex: fix build failure
19335         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19336         platforms.
19337
19338 2010-01-28  Jim Meyering  <meyering@redhat.com>
19339
19340         regex: do not ignore memory allocation failure
19341         * lib/regex_internal.c (create_cd_newstate): Detect
19342         re_node_set_init_copy failure.   Extracted from glibc commit
19343         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19344
19345         regex: sync more white-space changes from libc
19346         * lib/regex_internal.c: White-space only changes.
19347         * lib/regexec.c: Likewise.
19348
19349         regex: add many uses of __attribute_warn_unused_result__
19350         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19351         * lib/regexec.c: Likewise.
19352         Extracted from a messy glibc commit.
19353
19354         regcomp.c: spelling and merge-artifact from glibc
19355         * lib/regcomp.c: Merge remainder of glibc's
19356         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19357
19358         regcomp.c: sync white-space changes from glibc
19359         * lib/regcomp.c: Merge to accommodate white space
19360         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19361
19362         regcomp.c: do not ignore internal return values
19363         * lib/regcomp.c: Do not ignore internal return values.
19364         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19365         but without its white-space changes and spelling fixes.
19366
19367         regex_internal.h: define __attribute_warn_unused_result__
19368         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19369
19370         maint: add a syntax-check rule to check for vulnerable Makefile.in
19371         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19372
19373 2010-01-27  Jim Meyering  <meyering@redhat.com>
19374
19375         ncftpput-ftp: clean up spaces
19376         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19377         Remove trailing blanks.
19378
19379 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19380
19381         * build-aux/git-version-gen: Fix copyright statement.
19382         * build-aux/gnupload: Likewise.
19383         * tests/test-arcfour.c: Likewise.
19384         * tests/test-arctwo.c: Likewise.
19385         * tests/test-count-one-bits.c: Likewise.
19386         * tests/test-crc.c: Likewise.
19387         * tests/test-des.c: Likewise.
19388         * tests/test-gc-arcfour.c: Likewise.
19389         * tests/test-gc-arctwo.c: Likewise.
19390         * tests/test-gc-des.c: Likewise.
19391         * tests/test-gc-hmac-md5.c: Likewise.
19392         * tests/test-gc-hmac-sha1.c: Likewise.
19393         * tests/test-gc-md2.c: Likewise.
19394         * tests/test-gc-md4.c: Likewise.
19395         * tests/test-gc-md5.c: Likewise.
19396         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19397         * tests/test-gc-rijndael.c: Likewise.
19398         * tests/test-gc-sha1.c: Likewise.
19399         * tests/test-gc.c: Likewise.
19400         * tests/test-gethostname.c: Likewise.
19401         * tests/test-gettimeofday.c: Likewise.
19402         * tests/test-hash.c: Likewise.
19403         * tests/test-hmac-md5.c: Likewise.
19404         * tests/test-hmac-sha1.c: Likewise.
19405         * tests/test-md2.c: Likewise.
19406         * tests/test-md4.c: Likewise.
19407         * tests/test-md5.c: Likewise.
19408         * tests/test-memchr.c: Likewise.
19409         * tests/test-memchr2.c: Likewise.
19410         * tests/test-memcmp.c: Likewise.
19411         * tests/test-memmem.c: Likewise.
19412         * tests/test-memrchr.c: Likewise.
19413         * tests/test-rawmemchr.c: Likewise.
19414         * tests/test-read-file.c: Likewise.
19415         * tests/test-rijndael.c: Likewise.
19416         * tests/test-sockets.c: Likewise.
19417         * tests/test-strchrnul.c: Likewise.
19418         * tests/test-strstr.c: Likewise.
19419         * tests/test-strtod.c: Likewise.
19420         * build-aux/ncftpput-ftp: Likewise.
19421
19422 2010-01-26  Eric Blake  <ebb9@byu.net>
19423
19424         ignore-value: update recommended header name
19425         * modules/ignore-value (Include): Only use <> for headers that
19426         exist in glibc.
19427
19428 2010-01-26  Jim Meyering  <meyering@redhat.com>
19429
19430         test-userspec.c: avoid compiler warnings
19431         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19432         and "initialization discards qualifiers..." warnings.
19433         Put the first "uid" in its own scope, and make char* members "const".
19434
19435 2010-01-25  Bruno Haible  <bruno@clisp.org>
19436
19437         gnulib-tool: Make warning diagnostics consistent.
19438         * gnulib-tool (func_warning): New function.
19439         Use it everywhere where gnulib-tool produces output to stderr and it is
19440         not a fatal error.
19441
19442 2010-01-25  Bruno Haible  <bruno@clisp.org>
19443
19444         Fix test dependencies.
19445         * modules/xstrtol-tests (Depends-on): Add inttypes.
19446         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19447
19448 2010-01-25 Pádraig Brady <P@draigBrady.com>
19449
19450         syntax-check: detect incorrect boolean macro values in config.h
19451         * modules/maintainer-makefile (configure.ac): Parameterize the location
19452         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19453         The logic is from Eric Blake and the location indicated by Jim Meyering.
19454         Note the more natural CONFIG_HEADER name is prohibited by automake
19455         for backwards compatibility reasons.
19456         * top/maint.mk (sc_Wundef_boolean): New rule.
19457
19458 2010-01-25  Jim Meyering  <meyering@redhat.com>
19459
19460         bootstrap: detect MacOS 10.6's shasum, too
19461         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19462         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19463
19464 2010-01-23  Jim Meyering  <meyering@redhat.com>
19465
19466         xstrtoll: new module
19467         * modules/xstrtoll: New file.
19468         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19469         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19470         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19471         ./configure fails if you use this module and lack "long long".
19472         * modules/xstrtoll-tests: New module.
19473         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19474         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19475         new init.sh-based test framework.
19476
19477 2010-01-24  Bruno Haible  <bruno@clisp.org>
19478
19479         Tests for module 'yn'.
19480         * modules/yn-tests: New file.
19481         * tests/test-yn.c: New file.
19482
19483         Tests for module 'y1'.
19484         * modules/y1-tests: New file.
19485         * tests/test-y1.c: New file.
19486
19487         Tests for module 'y0'.
19488         * modules/y0-tests: New file.
19489         * tests/test-y0.c: New file.
19490
19491         Tests for module 'tanh'.
19492         * modules/tanh-tests: New file.
19493         * tests/test-tanh.c: New file.
19494
19495         Tests for module 'tan'.
19496         * modules/tan-tests: New file.
19497         * tests/test-tan.c: New file.
19498
19499         Tests for module 'sqrt'.
19500         * modules/sqrt-tests: New file.
19501         * tests/test-sqrt.c: New file.
19502
19503         Tests for module 'sinh'.
19504         * modules/sinh-tests: New file.
19505         * tests/test-sinh.c: New file.
19506
19507         Tests for module 'sin'.
19508         * modules/sin-tests: New file.
19509         * tests/test-sin.c: New file.
19510
19511         Tests for module 'rint'.
19512         * modules/rint-tests: New file.
19513         * tests/test-rint.c: New file.
19514
19515         Tests for module 'remainder'.
19516         * modules/remainder-tests: New file.
19517         * tests/test-remainder.c: New file.
19518
19519         Tests for module 'pow'.
19520         * modules/pow-tests: New file.
19521         * tests/test-pow.c: New file.
19522
19523         Tests for module 'nextafter'.
19524         * modules/nextafter-tests: New file.
19525         * tests/test-nextafter.c: New file.
19526
19527         Tests for module 'modf'.
19528         * modules/modf-tests: New file.
19529         * tests/test-modf.c: New file.
19530
19531         Tests for module 'logb'.
19532         * modules/logb-tests: New file.
19533         * tests/test-logb.c: New file.
19534
19535         Tests for module 'log1p'.
19536         * modules/log1p-tests: New file.
19537         * tests/test-log1p.c: New file.
19538
19539         Tests for module 'log10'.
19540         * modules/log10-tests: New file.
19541         * tests/test-log10.c: New file.
19542
19543         Tests for module 'log'.
19544         * modules/log-tests: New file.
19545         * tests/test-log.c: New file.
19546
19547         Tests for module 'lgamma'.
19548         * modules/lgamma-tests: New file.
19549         * tests/test-lgamma.c: New file.
19550
19551         Tests for module 'ldexp'.
19552         * modules/ldexp-tests: New file.
19553         * tests/test-ldexp.c: New file.
19554
19555         Tests for module 'jn'.
19556         * modules/jn-tests: New file.
19557         * tests/test-jn.c: New file.
19558
19559         Tests for module 'j1'.
19560         * modules/j1-tests: New file.
19561         * tests/test-j1.c: New file.
19562
19563         Tests for module 'j0'.
19564         * modules/j0-tests: New file.
19565         * tests/test-j0.c: New file.
19566
19567         Tests for module 'hypot'.
19568         * modules/hypot-tests: New file.
19569         * tests/test-hypot.c: New file.
19570
19571         Tests for module 'fmod'.
19572         * modules/fmod-tests: New file.
19573         * tests/test-fmod.c: New file.
19574
19575         Tests for module 'fabs'.
19576         * modules/fabs-tests: New file.
19577         * tests/test-fabs.c: New file.
19578
19579         Tests for module 'exp'.
19580         * modules/exp-tests: New file.
19581         * tests/test-exp.c: New file.
19582
19583         Tests for module 'erfc'.
19584         * modules/erfc-tests: New file.
19585         * tests/test-erfc.c: New file.
19586
19587         Tests for module 'erf'.
19588         * modules/erf-tests: New file.
19589         * tests/test-erf.c: New file.
19590
19591         Tests for module 'cosh'.
19592         * modules/cosh-tests: New file.
19593         * tests/test-cosh.c: New file.
19594
19595         Tests for module 'cos'.
19596         * modules/cos-tests: New file.
19597         * tests/test-cos.c: New file.
19598
19599         Tests for module 'copysign'.
19600         * modules/copysign-tests: New file.
19601         * tests/test-copysign.c: New file.
19602
19603         Tests for module 'cbrt'.
19604         * modules/cbrt-tests: New file.
19605         * tests/test-cbrt.c: New file.
19606
19607         Tests for module 'atan2'.
19608         * modules/atan2-tests: New file.
19609         * tests/test-atan2.c: New file.
19610
19611         Tests for module 'atan'.
19612         * modules/atan-tests: New file.
19613         * tests/test-atan.c: New file.
19614
19615         Tests for module 'asin'.
19616         * modules/asin-tests: New file.
19617         * tests/test-asin.c: New file.
19618
19619         Tests for module 'acos'.
19620         * modules/acos-tests: New file.
19621         * tests/test-acos.c: New file.
19622
19623 2010-01-24  Bruno Haible  <bruno@clisp.org>
19624
19625         Fix tests for common <math.h> functions.
19626         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19627         code snippet that references the function pointer, rather than merely
19628         calling the function. Substitute the FUNC_LIBM variable.
19629         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19630         * modules/acos (configure.ac): Likewise.
19631         * modules/asin (configure.ac): Likewise.
19632         * modules/atan (configure.ac): Likewise.
19633         * modules/atan2 (configure.ac): Likewise.
19634         * modules/cbrt (configure.ac): Likewise.
19635         * modules/copysign (configure.ac): Likewise.
19636         * modules/cos (configure.ac): Likewise.
19637         * modules/cosh (configure.ac): Likewise.
19638         * modules/erf (configure.ac): Likewise.
19639         * modules/erfc (configure.ac): Likewise.
19640         * modules/exp (configure.ac): Likewise.
19641         * modules/fabs (configure.ac): Likewise.
19642         * modules/fmod (configure.ac): Likewise.
19643         * modules/hypot (configure.ac): Likewise.
19644         * modules/j0 (configure.ac): Likewise.
19645         * modules/j1 (configure.ac): Likewise.
19646         * modules/jn (configure.ac): Likewise.
19647         * modules/ldexp (configure.ac): Likewise.
19648         * modules/lgamma (configure.ac): Likewise.
19649         * modules/log (configure.ac): Likewise.
19650         * modules/log10 (configure.ac): Likewise.
19651         * modules/log1p (configure.ac): Likewise.
19652         * modules/logb (configure.ac): Likewise.
19653         * modules/modf (configure.ac): Likewise.
19654         * modules/nextafter (configure.ac): Likewise.
19655         * modules/pow (configure.ac): Likewise.
19656         * modules/remainder (configure.ac): Likewise.
19657         * modules/rint (configure.ac): Likewise.
19658         * modules/sin (configure.ac): Likewise.
19659         * modules/sinh (configure.ac): Likewise.
19660         * modules/tan (configure.ac): Likewise.
19661         * modules/tanh (configure.ac): Likewise.
19662         * modules/y0 (configure.ac): Likewise.
19663         * modules/y1 (configure.ac): Likewise.
19664         * modules/yn (configure.ac): Likewise.
19665
19666 2010-01-24  Bruno Haible  <bruno@clisp.org>
19667
19668         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19669         * tests/test-acosl.c (x): New variable.
19670         (main): Store argument in x and fetch it from x.
19671         * tests/test-asinl.c (x): New variable.
19672         (main): Store argument in x and fetch it from x.
19673         * tests/test-atanl.c (x): New variable.
19674         (main): Store argument in x and fetch it from x.
19675         * tests/test-cosl.c (x): New variable.
19676         (main): Store argument in x and fetch it from x.
19677         * tests/test-expl.c (x): New variable.
19678         (main): Store argument in x and fetch it from x.
19679         * tests/test-logl.c (x): New variable.
19680         (main): Store argument in x and fetch it from x.
19681         * tests/test-sinl.c (x): New variable.
19682         (main): Store argument in x and fetch it from x.
19683         * tests/test-sqrtl.c (x): New variable.
19684         (main): Store argument in x and fetch it from x.
19685         * tests/test-tanl.c (x): New variable.
19686         (main): Store argument in x and fetch it from x.
19687
19688 2010-01-24  Bruno Haible  <bruno@clisp.org>
19689
19690         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19691         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19692         assignments to the initial TESTS_ENVIRONMENT.
19693         * doc/gnulib.texi (Unit test modules): Document it.
19694         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19695         TESTS_ENVIRONMENT.
19696         * modules/btowc-tests (Makefile.am): Likewise.
19697         * modules/c-stack-tests (Makefile.am): Likewise.
19698         * modules/c-strcase-tests (Makefile.am): Likewise.
19699         * modules/copy-file-tests (Makefile.am): Likewise.
19700         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19701         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19702         * modules/mbrtowc-tests (Makefile.am): Likewise.
19703         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19704         * modules/mbscasestr-tests (Makefile.am): Likewise.
19705         * modules/mbschr-tests (Makefile.am): Likewise.
19706         * modules/mbscspn-tests (Makefile.am): Likewise.
19707         * modules/mbsinit-tests (Makefile.am): Likewise.
19708         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19709         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19710         * modules/mbspbrk-tests (Makefile.am): Likewise.
19711         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19712         * modules/mbsrchr-tests (Makefile.am): Likewise.
19713         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19714         * modules/mbsspn-tests (Makefile.am): Likewise.
19715         * modules/mbsstr-tests (Makefile.am): Likewise.
19716         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19717         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19718         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19719         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19720         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19721         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19722         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19723         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19724         * modules/wcrtomb-tests (Makefile.am): Likewise.
19725         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19726         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19727         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19728         assignments from TESTS_ENVIRONMENT.
19729         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19730         augmentation.
19731         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19732         * modules/atexit-tests (Makefile.am): Likewise.
19733         * modules/binary-io-tests (Makefile.am): Likewise.
19734         * modules/closein-tests (Makefile.am): Likewise.
19735         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19736         * modules/exclude-tests (Makefile.am): Likewise.
19737         * modules/fflush-tests (Makefile.am): Likewise.
19738         * modules/fpending-tests (Makefile.am): Likewise.
19739         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19740         * modules/freadahead-tests (Makefile.am): Likewise.
19741         * modules/freadptr-tests (Makefile.am): Likewise.
19742         * modules/freadseek-tests (Makefile.am): Likewise.
19743         * modules/fseek-tests (Makefile.am): Likewise.
19744         * modules/fseeko-tests (Makefile.am): Likewise.
19745         * modules/ftell-tests (Makefile.am): Likewise.
19746         * modules/ftello-tests (Makefile.am): Likewise.
19747         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19748         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19749         * modules/lseek-tests (Makefile.am): Likewise.
19750         * modules/parse-duration-tests (Makefile.am): Likewise.
19751         * modules/perror-tests (Makefile.am): Likewise.
19752         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19753         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19754         * modules/pipe-tests (Makefile.am): Likewise.
19755         * modules/pread-tests (Makefile.am): Likewise.
19756         * modules/printf-posix-tests (Makefile.am): Likewise.
19757         * modules/select-tests (Makefile.am): Likewise.
19758         * modules/sigpipe-tests (Makefile.am): Likewise.
19759         * modules/tsearch-tests (Makefile.am): Likewise.
19760         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19761         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19762         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19763         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19764         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19765         * modules/version-etc-tests (Makefile.am): Likewise.
19766         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19767         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19768         * modules/xalloc-die-tests (Makefile.am): Likewise.
19769         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19770         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19771         * modules/xstrtol-tests (Makefile.am): Likewise.
19772         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19773         * modules/yesno-tests (Makefile.am): Likewise.
19774         Suggested by Jim Meyering.
19775
19776 2010-01-24  Bruno Haible  <bruno@clisp.org>
19777
19778         More documentation.
19779         * doc/gnulib.texi (Writing modules): New chapter.
19780         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19781         the new chapter.
19782
19783 2010-01-24  Jim Meyering  <meyering@redhat.com>
19784
19785         maint.mk: do not prepend "./" after filtering
19786         * top/maint.mk (_prepend_srcdir_prefix): New variable
19787         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19788         "./" when $(srcdir) is ".".
19789
19790         define STREQ(a,b) consistently, removing useless parentheses
19791         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19792         since the only risk is that "a" or "b" contains an unparenthesized
19793         comma, but if either did that, STREQ would have 3 or more arguments.
19794         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19795         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19796         * lib/hash-triple.c (STREQ): Likewise.
19797         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19798         * lib/getugroups.c (STREQ): Likewise.
19799
19800 2010-01-23  Jim Meyering  <meyering@redhat.com>
19801
19802         maint.mk: fix syntax-check in a non-srcdir build directory
19803         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19804         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19805
19806 2010-01-22  Jim Meyering  <meyering@redhat.com>
19807
19808         userspec: add unit tests
19809         * tests/test-userspec.c: New file.
19810         * modules/userspec-tests: Likewise.
19811
19812 2010-01-21  Jim Meyering  <meyering@redhat.com>
19813
19814         maint.mk: handle source file names containing "." robustly
19815         * top/maint.mk (_dot_escaped_srcdir): Define.
19816         (VC_LIST): Use it in LHS of sed substitution.
19817
19818 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19819
19820         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19821         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19822         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19823         from a non-srcdir build.
19824
19825 2010-01-20  Eric Blake  <ebb9@byu.net>
19826
19827         warn-on-use: use instead of link-warning
19828         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19829         * modules/unistd (Depends-on, Makefile.am): Likewise.
19830         * modules/arpa_inet (Depends-on): Replace link-warning with
19831         warn-on-use.
19832         (Makefile.am): Update rules accordingly.
19833         * modules/ctype (Depends-on, Makefile.am): Likewise.
19834         * modules/dirent (Depends-on, Makefile.am): Likewise.
19835         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19836         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19837         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19838         * modules/locale (Depends-on, Makefile.am): Likewise.
19839         * modules/math (Depends-on, Makefile.am): Likewise.
19840         * modules/search (Depends-on, Makefile.am): Likewise.
19841         * modules/signal (Depends-on, Makefile.am): Likewise.
19842         * modules/spawn (Depends-on, Makefile.am): Likewise.
19843         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19844         * modules/string (Depends-on, Makefile.am): Likewise.
19845         * modules/strings (Depends-on, Makefile.am): Likewise.
19846         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19847         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19848         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19849         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19850         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19851         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19852         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19853         * modules/wchar (Depends-on, Makefile.am): Likewise.
19854         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19855         should be poisoned.
19856         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19857         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19858         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19859         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19860         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19861         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19862         * m4/math_h.m4 (gl_MATH_H): Likewise.
19863         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19864         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19865         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19866         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19867         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19869         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19870         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19871         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19873         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19876         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19879         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19880         GL_LINK_WARNING.
19881         * lib/ctype.in.h: Likewise.
19882         * lib/dirent.in.h: Likewise.
19883         * lib/fcntl.in.h: Likewise.
19884         * lib/inttypes.in.h: Likewise.
19885         * lib/langinfo.in.h: Likewise.
19886         * lib/locale.in.h: Likewise.
19887         * lib/math.in.h: Likewise.
19888         * lib/search.in.h: Likewise.
19889         * lib/signal.in.h: Likewise.
19890         * lib/spawn.in.h: Likewise.
19891         * lib/stdio.in.h: Likewise.
19892         * lib/stdlib.in.h: Likewise.
19893         * lib/string.in.h: Likewise.
19894         * lib/strings.in.h: Likewise.
19895         * lib/sys_file.in.h: Likewise.
19896         * lib/sys_ioctl.in.h: Likewise.
19897         * lib/sys_select.in.h: Likewise.
19898         * lib/sys_socket.in.h: Likewise.
19899         * lib/sys_stat.in.h: Likewise.
19900         * lib/sys_times.in.h: Likewise.
19901         * lib/sys_utsname.in.h: Likewise.
19902         * lib/unistd.in.h: Likewise.
19903         * lib/wchar.in.h: Likewise.
19904
19905 2010-01-20  Bruno Haible  <bruno@clisp.org>
19906
19907         Avoid duplicate -lm.
19908         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19909         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19911         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19912         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19913         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19914         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19915         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19917         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19918         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19919         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19920         Reported by Paolo Bonzini.
19921
19922 2010-01-19  Bruno Haible  <bruno@clisp.org>
19923
19924         langinfo, nl_langinfo: Relicense under LGPLv2+.
19925         * modules/langinfo (License): Change to LGPLv2+.
19926         * modules/nl_langinfo (License): Likewise.
19927         Patch by David Lutterkort <lutter@redhat.com>.
19928
19929 2010-01-19  Bruno Haible  <bruno@clisp.org>
19930
19931         Avoid compilation error with cc on OSF/1 5.1.
19932         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19933         statement, not before.
19934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19935
19936 2010-01-18  Bruno Haible  <bruno@clisp.org>
19937
19938         Avoid a link error due to the __printf__ symbol.
19939         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19940         and 2.6.x.
19941         (__format__, __printf__): Remove definitions.
19942         * lib/argp-fmtstream.h: Likewise.
19943         * lib/argp.h: Likewise.
19944         * lib/error.h: Likewise.
19945         * lib/vasnprintf.h: Likewise.
19946         * lib/xprintf.h: Likewise.
19947         * lib/xvasprintf.h: Likewise.
19948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19949
19950 2010-01-18  Bruno Haible  <bruno@clisp.org>
19951
19952         Tests for module 'tanl'.
19953         * modules/tanl-tests: New file.
19954         * tests/test-tanl.c: New file.
19955
19956         Tests for module 'sqrtl'.
19957         * modules/sqrtl-tests: New file.
19958         * tests/test-sqrtl.c: New file.
19959
19960         Tests for module 'sinl'.
19961         * modules/sinl-tests: New file.
19962         * tests/test-sinl.c: New file.
19963
19964         Tests for module 'logl'.
19965         * modules/logl-tests: New file.
19966         * tests/test-logl.c: New file.
19967
19968         Tests for module 'expl'.
19969         * modules/expl-tests: New file.
19970         * tests/test-expl.c: New file.
19971
19972         Tests for module 'cosl'.
19973         * modules/cosl-tests: New file.
19974         * tests/test-cosl.c: New file.
19975
19976         Tests for module 'atanl'.
19977         * modules/atanl-tests: New file.
19978         * tests/test-atanl.c: New file.
19979
19980         Tests for module 'asinl'.
19981         * modules/asinl-tests: New file.
19982         * tests/test-asinl.c: New file.
19983
19984         Tests for module 'acosl'.
19985         * modules/acosl-tests: New file.
19986         * tests/test-acosl.c: New file.
19987
19988         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19989         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19990         tanl): Use the standard gnulib idiom.
19991         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19992         * lib/sinl.c: Likewise.
19993         * lib/tanl.c: Don't include trigl.c.
19994         (kernel_tanl): Make static.
19995         * lib/sincosl.c: Include trigl.h first.
19996         * lib/trigl.c: Likewise.
19997         * m4/acosl.m4: New file.
19998         * m4/asinl.m4: New file.
19999         * m4/atanl.m4: New file.
20000         * m4/cosl.m4: New file.
20001         * m4/expl.m4: New file.
20002         * m4/logl.m4: New file.
20003         * m4/sinl.m4: New file.
20004         * m4/sqrtl.m4: New file.
20005         * m4/tanl.m4: New file.
20006         * m4/mathl.m4: Remove file.
20007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20008         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20009         Don't initialize GNULIB_MATHL.
20010         * modules/acosl: New file.
20011         * modules/asinl: New file.
20012         * modules/atanl: New file.
20013         * modules/cosl: New file.
20014         * modules/expl: New file.
20015         * modules/logl: New file.
20016         * modules/sinl: New file.
20017         * modules/sqrtl: New file.
20018         * modules/tanl: New file.
20019         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20020         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20021         substitute GNULIB_MATHL.
20022         * modules/mathl: Rewritten.
20023         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20024         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20025         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20026         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20027         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20028         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20029         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20030         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20031         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20032
20033 2010-01-18  Bruno Haible  <bruno@clisp.org>
20034
20035         sqrt: Make gl_FUNC_SQRT requirable.
20036         * m4/sqrt.m4: New file.
20037         * modules/sqrt (Files): Add it.
20038         (configure.ac): Invoke gl_FUNC_SQRT.
20039
20040 2010-01-18  Bruno Haible  <bruno@clisp.org>
20041
20042         New modules for common <math.h> functions.
20043         * m4/mathfunc.m4: New file.
20044         * modules/acos: New file.
20045         * modules/asin: New file.
20046         * modules/atan: New file.
20047         * modules/atan2: New file.
20048         * modules/cbrt: New file.
20049         * modules/copysign: New file.
20050         * modules/cos: New file.
20051         * modules/cosh: New file.
20052         * modules/erf: New file.
20053         * modules/erfc: New file.
20054         * modules/exp: New file.
20055         * modules/fabs: New file.
20056         * modules/fmod: New file.
20057         * modules/hypot: New file.
20058         * modules/j0: New file.
20059         * modules/j1: New file.
20060         * modules/jn: New file.
20061         * modules/ldexp: New file.
20062         * modules/lgamma: New file.
20063         * modules/log: New file.
20064         * modules/log10: New file.
20065         * modules/log1p: New file.
20066         * modules/logb: New file.
20067         * modules/modf: New file.
20068         * modules/nextafter: New file.
20069         * modules/pow: New file.
20070         * modules/remainder: New file.
20071         * modules/rint: New file.
20072         * modules/sin: New file.
20073         * modules/sinh: New file.
20074         * modules/sqrt: New file.
20075         * modules/tan: New file.
20076         * modules/tanh: New file.
20077         * modules/y0: New file.
20078         * modules/y1: New file.
20079         * modules/yn: New file.
20080         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20081         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20082         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20083         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20084         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20085         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20086         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20087         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20088         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20089         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20090         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20091         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20092         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20093         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20094         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20095         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20096         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20097         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20098         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20099         * doc/posix-functions/log.texi: Mention the 'log' module.
20100         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20101         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20102         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20103         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20104         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20105         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20106         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20107         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20108         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20109         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20110         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20111         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20112         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20113         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20114         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20115         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20116
20117 2010-01-18  Jim Meyering  <meyering@redhat.com>
20118
20119         ignore-value: relax license to LGPLv2+
20120         * modules/ignore-value (License): Relax to LGPLv2+.
20121
20122         getdate: don't leak when TZ contains two or more '"'s
20123         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20124         double quote in TZ after the first one.
20125
20126         readtokens: do not leak internal token_lengths buffer
20127         * lib/readtokens.c (readtokens): Free the local, lengths,
20128         when the supplied "token_lengths" parameter is NULL.
20129
20130 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20131
20132         Fix a couple of missing LIBTHREAD link failures on AIX.
20133         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20134         $(LIBTHREAD).
20135         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20136
20137         Link test-poll against INET_PTON_LIB.
20138         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20139         for inet_pton on Solaris 10.
20140
20141 2010-01-17  Bruno Haible  <bruno@clisp.org>
20142
20143         unistdio/*-sprintf: Fix typo in module description.
20144         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20145         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20146         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20147         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20148         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20149         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20150         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20152
20153 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20154
20155         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20156         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20157         variables in shell case patterns, for AIX and HP-UX ksh.
20158
20159         Split large sed scripts, for HP-UX sed.
20160         * modules/stdio: Split sed scripts around 50 sed commands,
20161         to avoid HP-UX limit of 99 commands, in the near future.
20162         * modules/string: Likewise.
20163         * modules/unistd: Likewise.
20164
20165         gnulib-tool: avoid writing in the current directory.
20166         * gnulib-tool (func_emit_lib_Makefile_am)
20167         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20168         not in the current directory, so concurrent gnulib-tool
20169         instances do not interfere.
20170
20171 2010-01-16  Jim Meyering  <meyering@redhat.com>
20172
20173         doc: update users.txt
20174         * users.txt: Add grep.
20175         (diffutils, gzip): Update URLs.
20176
20177 2010-01-12  Bruno Haible  <bruno@clisp.org>
20178
20179         posix_spawn: Avoid test failure on Cygwin.
20180         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20181         characters.
20182         Reported by Simon Josefsson.
20183
20184 2010-01-12  Bruno Haible  <bruno@clisp.org>
20185
20186         * tests/test-cond.c (main): When skipping the test, show the reason.
20187
20188 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20189
20190         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20191
20192 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20193
20194         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20195         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20196
20197 2010-01-12  Eric Blake  <ebb9@byu.net>
20198
20199         build: guarantee AS_VAR_IF
20200         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20201         (gl_AS_VAR_IF): Move...
20202         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20203         Reported by Simon Josefsson.
20204
20205 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20206
20207         * lib/stdio.in.h: Fix typo.
20208
20209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20210
20211         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20212         libgpg-error.
20213
20214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20215
20216         * tests/test-xalloc-die.sh: Use $EXEEXT.
20217
20218 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20219             Bruno Haible  <bruno@clisp.org>
20220
20221         getlogin, getlogin_r: Avoid test failure.
20222         * tests/test-getlogin.c: Include <stdio.h>.
20223         (main): Skip the test when the function fails because stdin is not a
20224         tty.
20225         * tests/test-getlogin_r.c: Include <stdio.h>.
20226         (main): Skip the test when the function fails because stdin is not a
20227         tty.
20228
20229 2010-01-11  Eric Blake  <ebb9@byu.net>
20230
20231         tests: avoid more large file warnings
20232         * tests/test-fflush.c: Avoid warning about ftell use.
20233         * tests/test-fseek.c: Avoid warning about fseek use.
20234
20235 2010-01-10  Bruno Haible  <bruno@clisp.org>
20236
20237         nproc: Work better on Linux when /proc and /sys are not mounted.
20238         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20239         as lower bound when, on glibc/Linux systems,
20240         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20241         Suggested by Pádraig Brady <P@draigbrady.com>.
20242         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20243
20244         nproc: Refactor.
20245         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20246         extracted from num_processors.
20247         (num_processors): Call it.
20248
20249 2010-01-11  Jim Meyering  <meyering@redhat.com>
20250
20251         utimecmp: avoid new warning from upcoming gcc-4.5.0
20252         * lib/utimecmp.c (BILLION): Define using #define rather than an
20253         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20254
20255 2010-01-11  Eric Blake  <ebb9@byu.net>
20256
20257         math: add portability warnings for classification macros
20258         * modules/math (Depends-on): Add warn-on-use.
20259         (Makefile.am): Provide new substitutions.
20260         * m4/math_h.m4 (gl_MATH_H): Require inline.
20261         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20262         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20263         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20264         implement warnings.
20265
20266         unistd: warn on use of environ without module
20267         * modules/unistd (Depends-on): Add warn-on-use.
20268         (Makefile.am): Provide new substitutions.
20269         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20270         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20271
20272         stdio: warn on suspicious uses
20273         * modules/stdio (Depends-on): Add warn-on-use.
20274         (Makefile.am): Provide new substitutions.
20275         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20276         fseeko.
20277         * lib/stdio.in.h (gets): Always warn on use.
20278         (fseek, ftell): Adjust when warnings are issued, and honor
20279         _GL_NO_LARGE_FILES as a way to silence the warning.
20280         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20281         any warning about large file offsets.
20282         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20283         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20284         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20285         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20286         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20287         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20288         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20289         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20290
20291         warn-on-use: new module
20292         * modules/warn-on-use: New file.
20293         * build-aux/warn-on-use.h: Likewise.
20294         * m4/warn-on-use.m4: Likewise.
20295         * MODULES.html.sh (Support for building): Mention it.
20296
20297 2010-01-10  Bruno Haible  <bruno@clisp.org>
20298
20299         Tests for module 'unistr/u32-strdup'.
20300         * modules/unistr/u32-strdup-tests: New file.
20301         * tests/unistr/test-u32-strdup.c: New file.
20302
20303         Tests for module 'unistr/u16-strdup'.
20304         * modules/unistr/u16-strdup-tests: New file.
20305         * tests/unistr/test-u16-strdup.c: New file.
20306
20307         Tests for module 'unistr/u8-strdup'.
20308         * modules/unistr/u8-strdup-tests: New file.
20309         * tests/unistr/test-u8-strdup.c: New file.
20310         * tests/unistr/test-strdup.h: New file.
20311
20312         Tests for module 'unistr/u32-strncmp'.
20313         * modules/unistr/u32-strncmp-tests: New file.
20314         * tests/unistr/test-u32-strncmp.c: New file.
20315
20316         Tests for module 'unistr/u16-strncmp'.
20317         * modules/unistr/u16-strncmp-tests: New file.
20318         * tests/unistr/test-u16-strncmp.c: New file.
20319
20320         Tests for module 'unistr/u8-strncmp'.
20321         * modules/unistr/u8-strncmp-tests: New file.
20322         * tests/unistr/test-u8-strncmp.c: New file.
20323         * tests/unistr/test-strncmp.h: New file.
20324
20325         Tests for module 'unistr/u32-strcoll'.
20326         * modules/unistr/u32-strcoll-tests: New file.
20327         * tests/unistr/test-u32-strcoll.c: New file.
20328
20329         Tests for module 'unistr/u16-strcoll'.
20330         * modules/unistr/u16-strcoll-tests: New file.
20331         * tests/unistr/test-u16-strcoll.c: New file.
20332
20333         Tests for module 'unistr/u8-strcoll'.
20334         * modules/unistr/u8-strcoll-tests: New file.
20335         * tests/unistr/test-u8-strcoll.c: New file.
20336
20337         Tests for module 'unistr/u32-strcmp'.
20338         * modules/unistr/u32-strcmp-tests: New file.
20339         * tests/unistr/test-u32-strcmp.c: New file.
20340         * tests/unistr/test-u32-strcmp.h: New file.
20341
20342         Tests for module 'unistr/u16-strcmp'.
20343         * modules/unistr/u16-strcmp-tests: New file.
20344         * tests/unistr/test-u16-strcmp.c: New file.
20345         * tests/unistr/test-u16-strcmp.h: New file.
20346
20347         Tests for module 'unistr/u8-strcmp'.
20348         * modules/unistr/u8-strcmp-tests: New file.
20349         * tests/unistr/test-u8-strcmp.c: New file.
20350         * tests/unistr/test-u8-strcmp.h: New file.
20351         * tests/unistr/test-strcmp.h: New file.
20352
20353         Tests for module 'unistr/u32-strncat'.
20354         * modules/unistr/u32-strncat-tests: New file.
20355         * tests/unistr/test-u32-strncat.c: New file.
20356
20357         Tests for module 'unistr/u16-strncat'.
20358         * modules/unistr/u16-strncat-tests: New file.
20359         * tests/unistr/test-u16-strncat.c: New file.
20360
20361         Tests for module 'unistr/u8-strncat'.
20362         * modules/unistr/u8-strncat-tests: New file.
20363         * tests/unistr/test-u8-strncat.c: New file.
20364         * tests/unistr/test-strncat.h: New file.
20365
20366         Tests for module 'unistr/u32-strcat'.
20367         * modules/unistr/u32-strcat-tests: New file.
20368         * tests/unistr/test-u32-strcat.c: New file.
20369
20370         Tests for module 'unistr/u16-strcat'.
20371         * modules/unistr/u16-strcat-tests: New file.
20372         * tests/unistr/test-u16-strcat.c: New file.
20373
20374         Tests for module 'unistr/u8-strcat'.
20375         * modules/unistr/u8-strcat-tests: New file.
20376         * tests/unistr/test-u8-strcat.c: New file.
20377         * tests/unistr/test-strcat.h: New file.
20378
20379         Tests for module 'unistr/u32-stpncpy'.
20380         * modules/unistr/u32-stpncpy-tests: New file.
20381         * tests/unistr/test-u32-stpncpy.c: New file.
20382
20383         Tests for module 'unistr/u16-stpncpy'.
20384         * modules/unistr/u16-stpncpy-tests: New file.
20385         * tests/unistr/test-u16-stpncpy.c: New file.
20386
20387         Tests for module 'unistr/u8-stpncpy'.
20388         * modules/unistr/u8-stpncpy-tests: New file.
20389         * tests/unistr/test-u8-stpncpy.c: New file.
20390         * tests/unistr/test-stpncpy.h: New file.
20391
20392         Tests for module 'unistr/u32-strncpy'.
20393         * modules/unistr/u32-strncpy-tests: New file.
20394         * tests/unistr/test-u32-strncpy.c: New file.
20395
20396         Tests for module 'unistr/u16-strncpy'.
20397         * modules/unistr/u16-strncpy-tests: New file.
20398         * tests/unistr/test-u16-strncpy.c: New file.
20399
20400         Tests for module 'unistr/u8-strncpy'.
20401         * modules/unistr/u8-strncpy-tests: New file.
20402         * tests/unistr/test-u8-strncpy.c: New file.
20403         * tests/unistr/test-strncpy.h: New file.
20404
20405         Tests for module 'unistr/u32-stpcpy'.
20406         * modules/unistr/u32-stpcpy-tests: New file.
20407         * tests/unistr/test-u32-stpcpy.c: New file.
20408
20409         Tests for module 'unistr/u16-stpcpy'.
20410         * modules/unistr/u16-stpcpy-tests: New file.
20411         * tests/unistr/test-u16-stpcpy.c: New file.
20412
20413         Tests for module 'unistr/u8-stpcpy'.
20414         * modules/unistr/u8-stpcpy-tests: New file.
20415         * tests/unistr/test-u8-stpcpy.c: New file.
20416         * tests/unistr/test-stpcpy.h: New file.
20417
20418         Tests for module 'unistr/u32-strcpy'.
20419         * modules/unistr/u32-strcpy-tests: New file.
20420         * tests/unistr/test-u32-strcpy.c: New file.
20421
20422         Tests for module 'unistr/u16-strcpy'.
20423         * modules/unistr/u16-strcpy-tests: New file.
20424         * tests/unistr/test-u16-strcpy.c: New file.
20425
20426         Tests for module 'unistr/u8-strcpy'.
20427         * modules/unistr/u8-strcpy-tests: New file.
20428         * tests/unistr/test-u8-strcpy.c: New file.
20429         * tests/unistr/test-strcpy.h: New file.
20430
20431         Tests for module 'unistr/u32-strnlen'.
20432         * modules/unistr/u32-strnlen-tests: New file.
20433         * tests/unistr/test-u32-strnlen.c: New file.
20434
20435         Tests for module 'unistr/u16-strnlen'.
20436         * modules/unistr/u16-strnlen-tests: New file.
20437         * tests/unistr/test-u16-strnlen.c: New file.
20438
20439         Tests for module 'unistr/u8-strnlen'.
20440         * modules/unistr/u8-strnlen-tests: New file.
20441         * tests/unistr/test-u8-strnlen.c: New file.
20442         * tests/unistr/test-strnlen.h: New file.
20443
20444         Tests for module 'unistr/u32-strlen'.
20445         * modules/unistr/u32-strlen-tests: New file.
20446         * tests/unistr/test-u32-strlen.c: New file.
20447
20448         Tests for module 'unistr/u16-strlen'.
20449         * modules/unistr/u16-strlen-tests: New file.
20450         * tests/unistr/test-u16-strlen.c: New file.
20451
20452         Tests for module 'unistr/u8-strlen'.
20453         * modules/unistr/u8-strlen-tests: New file.
20454         * tests/unistr/test-u8-strlen.c: New file.
20455
20456         Tests for module 'unistr/u32-prev'.
20457         * modules/unistr/u32-prev-tests: New file.
20458         * tests/unistr/test-u32-prev.c: New file.
20459
20460         Tests for module 'unistr/u16-prev'.
20461         * modules/unistr/u16-prev-tests: New file.
20462         * tests/unistr/test-u16-prev.c: New file.
20463
20464         Tests for module 'unistr/u8-prev'.
20465         * modules/unistr/u8-prev-tests: New file.
20466         * tests/unistr/test-u8-prev.c: New file.
20467
20468         Tests for module 'unistr/u32-next'.
20469         * modules/unistr/u32-next-tests: New file.
20470         * tests/unistr/test-u32-next.c: New file.
20471
20472         Tests for module 'unistr/u16-next'.
20473         * modules/unistr/u16-next-tests: New file.
20474         * tests/unistr/test-u16-next.c: New file.
20475
20476         Tests for module 'unistr/u8-next'.
20477         * modules/unistr/u8-next-tests: New file.
20478         * tests/unistr/test-u8-next.c: New file.
20479
20480         Tests for module 'unistr/u32-strmbtouc'.
20481         * modules/unistr/u32-strmbtouc-tests: New file.
20482         * tests/unistr/test-u32-strmbtouc.c: New file.
20483
20484         Tests for module 'unistr/u16-strmbtouc'.
20485         * modules/unistr/u16-strmbtouc-tests: New file.
20486         * tests/unistr/test-u16-strmbtouc.c: New file.
20487
20488         Tests for module 'unistr/u8-strmbtouc'.
20489         * modules/unistr/u8-strmbtouc-tests: New file.
20490         * tests/unistr/test-u8-strmbtouc.c: New file.
20491
20492         Tests for module 'unistr/u32-strmblen'.
20493         * modules/unistr/u32-strmblen-tests: New file.
20494         * tests/unistr/test-u32-strmblen.c: New file.
20495
20496         Tests for module 'unistr/u16-strmblen'.
20497         * modules/unistr/u16-strmblen-tests: New file.
20498         * tests/unistr/test-u16-strmblen.c: New file.
20499
20500         Tests for module 'unistr/u8-strmblen'.
20501         * modules/unistr/u8-strmblen-tests: New file.
20502         * tests/unistr/test-u8-strmblen.c: New file.
20503
20504         Tests for module 'unistr/u32-cpy-alloc'.
20505         * modules/unistr/u32-cpy-alloc-tests: New file.
20506         * tests/unistr/test-u32-cpy-alloc.c: New file.
20507
20508         Tests for module 'unistr/u16-cpy-alloc'.
20509         * modules/unistr/u16-cpy-alloc-tests: New file.
20510         * tests/unistr/test-u16-cpy-alloc.c: New file.
20511
20512         Tests for module 'unistr/u8-cpy-alloc'.
20513         * modules/unistr/u8-cpy-alloc-tests: New file.
20514         * tests/unistr/test-u8-cpy-alloc.c: New file.
20515         * tests/unistr/test-cpy-alloc.h: New file.
20516
20517         Tests for module 'unistr/u32-mbsnlen'.
20518         * modules/unistr/u32-mbsnlen-tests: New file.
20519         * tests/unistr/test-u32-mbsnlen.c: New file.
20520
20521         Tests for module 'unistr/u16-mbsnlen'.
20522         * modules/unistr/u16-mbsnlen-tests: New file.
20523         * tests/unistr/test-u16-mbsnlen.c: New file.
20524
20525         Tests for module 'unistr/u8-mbsnlen'.
20526         * modules/unistr/u8-mbsnlen-tests: New file.
20527         * tests/unistr/test-u8-mbsnlen.c: New file.
20528
20529         Tests for module 'unistr/u32-chr'.
20530         * modules/unistr/u32-chr-tests: New file.
20531         * tests/unistr/test-u32-chr.c: New file.
20532
20533         Tests for module 'unistr/u16-chr'.
20534         * modules/unistr/u16-chr-tests: New file.
20535         * tests/unistr/test-u16-chr.c: New file.
20536
20537         Tests for module 'unistr/u8-chr'.
20538         * modules/unistr/u8-chr-tests: New file.
20539         * tests/unistr/test-u8-chr.c: New file.
20540         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20541
20542         Tests for module 'unistr/u32-cmp2'.
20543         * modules/unistr/u32-cmp2-tests: New file.
20544         * tests/unistr/test-u32-cmp2.c: New file.
20545
20546         Tests for module 'unistr/u16-cmp2'.
20547         * modules/unistr/u16-cmp2-tests: New file.
20548         * tests/unistr/test-u16-cmp2.c: New file.
20549
20550         Tests for module 'unistr/u8-cmp2'.
20551         * modules/unistr/u8-cmp2-tests: New file.
20552         * tests/unistr/test-u8-cmp2.c: New file.
20553         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20554
20555         Tests for module 'unistr/u32-cmp'.
20556         * modules/unistr/u32-cmp-tests: New file.
20557         * tests/unistr/test-u32-cmp.c: New file.
20558
20559         Tests for module 'unistr/u16-cmp'.
20560         * modules/unistr/u16-cmp-tests: New file.
20561         * tests/unistr/test-u16-cmp.c: New file.
20562
20563         Tests for module 'unistr/u8-cmp'.
20564         * modules/unistr/u8-cmp-tests: New file.
20565         * tests/unistr/test-u8-cmp.c: New file.
20566         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20567
20568         Tests for module 'unistr/u32-set'.
20569         * modules/unistr/u32-set-tests: New file.
20570         * tests/unistr/test-u32-set.c: New file.
20571
20572         Tests for module 'unistr/u16-set'.
20573         * modules/unistr/u16-set-tests: New file.
20574         * tests/unistr/test-u16-set.c: New file.
20575
20576         Tests for module 'unistr/u8-set'.
20577         * modules/unistr/u8-set-tests: New file.
20578         * tests/unistr/test-u8-set.c: New file.
20579         * tests/unistr/test-set.h: New file.
20580
20581         Tests for module 'unistr/u32-move'.
20582         * modules/unistr/u32-move-tests: New file.
20583         * tests/unistr/test-u32-move.c: New file.
20584
20585         Tests for module 'unistr/u16-move'.
20586         * modules/unistr/u16-move-tests: New file.
20587         * tests/unistr/test-u16-move.c: New file.
20588
20589         Tests for module 'unistr/u8-move'.
20590         * modules/unistr/u8-move-tests: New file.
20591         * tests/unistr/test-u8-move.c: New file.
20592         * tests/unistr/test-move.h: New file.
20593
20594         Tests for module 'unistr/u32-cpy'.
20595         * modules/unistr/u32-cpy-tests: New file.
20596         * tests/unistr/test-u32-cpy.c: New file.
20597
20598         Tests for module 'unistr/u16-cpy'.
20599         * modules/unistr/u16-cpy-tests: New file.
20600         * tests/unistr/test-u16-cpy.c: New file.
20601
20602         Tests for module 'unistr/u8-cpy'.
20603         * modules/unistr/u8-cpy-tests: New file.
20604         * tests/unistr/test-u8-cpy.c: New file.
20605         * tests/unistr/test-cpy.h: New file.
20606
20607 2010-01-09  Bruno Haible  <bruno@clisp.org>
20608
20609         Tests for module 'unistr/u32-uctomb'.
20610         * modules/unistr/u32-uctomb-tests: New file.
20611         * tests/unistr/test-u32-uctomb.c: New file.
20612
20613         Tests for module 'unistr/u16-uctomb'.
20614         * modules/unistr/u16-uctomb-tests: New file.
20615         * tests/unistr/test-u16-uctomb.c: New file.
20616
20617         Tests for module 'unistr/u8-uctomb'.
20618         * modules/unistr/u8-uctomb-tests: New file.
20619         * tests/unistr/test-u8-uctomb.c: New file.
20620
20621         Tests for module 'unistr/u32-mbtoucr'.
20622         * modules/unistr/u32-mbtoucr-tests: New file.
20623         * tests/unistr/test-u32-mbtoucr.c: New file.
20624
20625         Tests for module 'unistr/u16-mbtoucr'.
20626         * modules/unistr/u16-mbtoucr-tests: New file.
20627         * tests/unistr/test-u16-mbtoucr.c: New file.
20628
20629         Tests for module 'unistr/u8-mbtoucr'.
20630         * modules/unistr/u8-mbtoucr-tests: New file.
20631         * tests/unistr/test-u8-mbtoucr.c: New file.
20632
20633         Tests for module 'unistr/u32-mbtouc'.
20634         * modules/unistr/u32-mbtouc-tests: New file.
20635         * tests/unistr/test-u32-mbtouc.c: New file.
20636
20637         Tests for module 'unistr/u16-mbtouc'.
20638         * modules/unistr/u16-mbtouc-tests: New file.
20639         * tests/unistr/test-u16-mbtouc.c: New file.
20640
20641         Tests for module 'unistr/u8-mbtouc'.
20642         * modules/unistr/u8-mbtouc-tests: New file.
20643         * tests/unistr/test-u8-mbtouc.c: New file.
20644
20645         Tests for module 'unistr/u32-mbtouc-unsafe'.
20646         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20647         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20648         * tests/unistr/test-u32-mbtouc.h: New file.
20649
20650         Tests for module 'unistr/u16-mbtouc-unsafe'.
20651         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20652         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20653         * tests/unistr/test-u16-mbtouc.h: New file.
20654
20655         Tests for module 'unistr/u8-mbtouc-unsafe'.
20656         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20657         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20658         * tests/unistr/test-u8-mbtouc.h: New file.
20659
20660         Tests for module 'unistr/u32-mblen'.
20661         * modules/unistr/u32-mblen-tests: New file.
20662         * tests/unistr/test-u32-mblen.c: New file.
20663
20664         Tests for module 'unistr/u16-mblen'.
20665         * modules/unistr/u16-mblen-tests: New file.
20666         * tests/unistr/test-u16-mblen.c: New file.
20667
20668         Tests for module 'unistr/u8-mblen'.
20669         * modules/unistr/u8-mblen-tests: New file.
20670         * tests/unistr/test-u8-mblen.c: New file.
20671
20672         Tests for module 'unistr/u32-to-u16'.
20673         * modules/unistr/u32-to-u16-tests: New file.
20674         * tests/unistr/test-u32-to-u16.c: New file.
20675
20676         Tests for module 'unistr/u32-to-u8'.
20677         * modules/unistr/u32-to-u8-tests: New file.
20678         * tests/unistr/test-u32-to-u8.c: New file.
20679
20680         Tests for module 'unistr/u16-to-u32'.
20681         * modules/unistr/u16-to-u32-tests: New file.
20682         * tests/unistr/test-u16-to-u32.c: New file.
20683
20684         Tests for module 'unistr/u16-to-u8'.
20685         * modules/unistr/u16-to-u8-tests: New file.
20686         * tests/unistr/test-u16-to-u8.c: New file.
20687
20688         Tests for module 'unistr/u8-to-u32'.
20689         * modules/unistr/u8-to-u32-tests: New file.
20690         * tests/unistr/test-u8-to-u32.c: New file.
20691
20692         Tests for module 'unistr/u8-to-u16'.
20693         * modules/unistr/u8-to-u16-tests: New file.
20694         * tests/unistr/test-u8-to-u16.c: New file.
20695
20696         Tests for module 'unistr/u32-check'.
20697         * modules/unistr/u32-check-tests: New file.
20698         * tests/unistr/test-u32-check.c: New file.
20699
20700         Tests for module 'unistr/u16-check'.
20701         * modules/unistr/u16-check-tests: New file.
20702         * tests/unistr/test-u16-check.c: New file.
20703
20704         Tests for module 'unistr/u8-check'.
20705         * modules/unistr/u8-check-tests: New file.
20706         * tests/unistr/test-u8-check.c: New file.
20707
20708         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20709         (category_equals): New function.
20710         (main): Add more tests.
20711         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20712
20713         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20714
20715 2010-01-10  Bruno Haible  <bruno@clisp.org>
20716
20717         unistr/u*-strcoll: Try harder to distinguish different strings.
20718         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20719         compare s1 and s2 to see if they are different.
20720
20721 2010-01-10  Bruno Haible  <bruno@clisp.org>
20722
20723         unistr/u*-stpncpy: Fix the return value.
20724         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20725         description of the return value consistent with stpncpy in glibc.
20726         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20727         written non-NUL unit.
20728
20729 2010-01-10  Bruno Haible  <bruno@clisp.org>
20730
20731         unistr/u*-next: Add missing dependencies.
20732         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20733         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20734         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20735
20736 2010-01-10  Bruno Haible  <bruno@clisp.org>
20737
20738         unistr/u8-mbsnlen: Fix return value for incomplete character.
20739         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20740         u8_mblen.
20741         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20742         Remove unistr/u8-mblen.
20743         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20744         u16_mblen.
20745         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20746         Remove unistr/u16-mblen.
20747
20748 2010-01-10  Bruno Haible  <bruno@clisp.org>
20749
20750         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20751         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20752         Reported by Brian Gough <bjg@gnu.org> and
20753         Chris Clayton <chris2553@googlemail.com> via
20754         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20755
20756 2010-01-09  Bruno Haible  <bruno@clisp.org>
20757
20758         unistr/u16-to-u32: Reject invalid input.
20759         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20760         u16_mbtouc.
20761         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20762         Remove unistr/u16-mbtouc.
20763
20764         unistr/u16-to-u8: Reject invalid input.
20765         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20766         u16_mbtouc.
20767         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20768         Remove unistr/u16-mbtouc.
20769
20770         unistr/u8-to-u32: Reject invalid input.
20771         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20772         u8_mbtouc.
20773         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20774         Remove unistr/u8-mbtouc.
20775
20776         unistr/u8-to-u16: Reject invalid input.
20777         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20778         u8_mbtouc.
20779         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20780         Remove unistr/u8-mbtouc.
20781
20782 2010-01-09  Bruno Haible  <bruno@clisp.org>
20783
20784         Tests for module 'getlogin'.
20785         * modules/getlogin-tests: New file.
20786         * tests/test-getlogin.c: New file.
20787
20788         New module 'getlogin'.
20789         * lib/unistd.in.h (getlogin): New declaration.
20790         * lib/getlogin.c: New file.
20791         * m4/getlogin.m4: New file.
20792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20793         HAVE_GETLOGIN.
20794         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20795         HAVE_GETLOGIN.
20796         * modules/getlogin: New file.
20797         * doc/posix-functions/getlogin.texi: Mention the new module.
20798         Reported by John W. Eaton <jwe@gnu.org>.
20799
20800 2010-01-09  Bruno Haible  <bruno@clisp.org>
20801
20802         getlogin_r: Support for native Windows.
20803         * lib/getlogin_r.c: Include <windows.h>
20804         (getlogin_r): Implement for native Windows.
20805         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20806         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20807         via John W. Eaton <jwe@gnu.org>.
20808
20809 2010-01-09  Bruno Haible  <bruno@clisp.org>
20810
20811         getlogin_r: Small fixes.
20812         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20813         succeeds.
20814         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20815         before testing whether getlogin_r is declared. No need to set
20816         HAVE_DECL_GETLOGIN_R to 1.
20817         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20818
20819 2010-01-09  Bruno Haible  <bruno@clisp.org>
20820
20821         * lib/unistd.in.h (getlogin_r): Add comment.
20822
20823 2010-01-09  Bruno Haible  <bruno@clisp.org>
20824
20825         Tests for module 'getlogin_r'.
20826         * modules/getlogin_r-tests: New file.
20827         * tests/test-getlogin_r.c: New file.
20828
20829 2010-01-09  Jim Meyering  <meyering@redhat.com>
20830
20831         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20832         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20833         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20834
20835 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20836
20837         * lib/dup2.c (rpl_dup2): Improve comment.
20838
20839 2010-01-08  Eric Blake  <ebb9@byu.net>
20840
20841         maint.mk: allow packages to add makefile @@ exceptions
20842         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20843         (sc_makefile_check): Rename...
20844         (sc_makefile_at_at_check): ...to this, and use hook.
20845
20846         dup2: work around mingw bug
20847         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20848         Reported by Simon Josefsson.
20849
20850 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20851
20852         glob: Fix C++ compilation.
20853         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20854         C++.
20855
20856 2010-01-07  Bruno Haible  <bruno@clisp.org>
20857
20858         Fix indentation of wctype.in.h, broken since 2007-01-06.
20859         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20860
20861 2010-01-07  Bruno Haible  <bruno@clisp.org>
20862
20863         mbslen: Avoid collision with system function.
20864         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20865         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20866         * m4/mbslen.m4: New file.
20867         * modules/mbslen (Files): Add it.
20868         (configure.ac): Invoke gl_MBSLEN.
20869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20870         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20871         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20872         via Ian Beckwith <ianb@erislabs.net>.
20873
20874 2010-01-07  Bruno Haible  <bruno@clisp.org>
20875
20876         dirent: Document the last fix.
20877         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20878
20879 2010-01-07  Bruno Haible  <bruno@clisp.org>
20880
20881         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20882         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20883         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20884         va_list are defined.
20885         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20886         Reported by Eric Blake.
20887
20888 2010-01-07  Bruno Haible  <bruno@clisp.org>
20889
20890         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20891         * modules/xlist (Depends-on): Add 'list',
20892         * modules/xoset (Depends-on): Add 'oset'.
20893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20894
20895 2010-01-07  Bruno Haible  <bruno@clisp.org>
20896
20897         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20898         * doc/posix-functions/strncasecmp.texi: Likewise.
20899
20900 2010-01-07  Bruno Haible  <bruno@clisp.org>
20901
20902         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20903
20904 2010-01-07  John W. Eaton  <jwe@octave.org>
20905
20906         wctype: allow C++ use
20907         * lib/wctype.in.h: Add extern "C" block for C++.
20908
20909 2010-01-06  Eric Blake  <ebb9@byu.net>
20910
20911         maint.mk: detect incorrect GFDL usage
20912         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20913
20914 2010-01-06  Jim Meyering  <meyering@redhat.com>
20915         and Eric Blake  <ebb9@byu.net>
20916
20917         maint.mk: ignore multi-line copyright in NEWS
20918         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20919
20920 2010-01-06  Eric Blake  <ebb9@byu.net>
20921
20922         select: add missing dependency
20923         * modules/select-tests (Depends-on): Move sockets dependency...
20924         * modules/select (Depends-on): ...here.
20925         Reported by Ian Beckwith.
20926
20927         doc: regenerate INSTALL
20928         * doc/INSTALL: Reflect recent autoconf update.
20929         * doc/INSTALL.ISO: Likewise.
20930         * doc/INSTALL.UTF-8: Likewise.
20931
20932         pread: fix compilation on glibc
20933         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20934         Reported by Ralf Wildenhues.
20935
20936         dirent: fix test failure
20937         * lib/dirent.in.h (includes): Guarantee ino_t.
20938         Reported by Ralf Wildenhues.
20939
20940 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20941
20942         linkat, renameat: avoid bad free
20943         * lib/at-func2.c (at_func2): Fix typo.
20944         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20945
20946 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20947
20948         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20949         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20950         to avoid failure of symlink test later.
20951
20952 2010-01-06  Eric Blake  <ebb9@byu.net>
20953
20954         stdio, unistd: guarantee ssize_t
20955         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20956         2008 are exposed when needed.
20957         * lib/stdio.in.h (includes): Likewise.
20958         Reported by Ralf Wildenhues.
20959
20960 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20961
20962         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20963         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20964         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20965
20966 2010-01-06  Jim Meyering  <meyering@redhat.com>
20967
20968         readtokens: this module *does* require xalloc.h
20969         It uses only functions that were omitted by the old syntax-check rule.
20970         * lib/readtokens.c: Include "xalloc.h" once again.
20971         * modules/readtokens (Depends-on): Add xalloc.
20972         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20973
20974 2010-01-05  Eric Blake  <ebb9@byu.net>
20975
20976         maint: support 'make announcement' from a VPATH build
20977         * top/maint.mk (announcement): Look for correct NEWS file.
20978
20979 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20980
20981         utimens (fdutimens): ignore a negative FD, per contract
20982         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20983         when we have a valid file descriptor.  Otherwise, using a brand
20984         new glibc (with just-patched futimens that now fails with EBADF)
20985         would cause this function to fail with ENOSYS.
20986         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20987         See also http://bugzilla.redhat.com/552320.
20988
20989 2010-01-05  Eric Blake  <ebb9@byu.net>
20990
20991         strcase: document what it provides
20992         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20993         gnulib module.
20994         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20995         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20996
20997 2010-01-05  Jim Meyering  <meyering@redhat.com>
20998
20999         maint: remove useless inclusions of "xalloc.h"
21000         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21001         * lib/readtokens.c: Likewise.
21002         * lib/same.c: Likewise.
21003         * modules/getloadavg (Depends-on): Remove xalloc.
21004         * modules/readtokens: Likewise.
21005         * modules/same: Likewise.
21006
21007         maint.mk: include 4 more function names in alloca.h-checking regexp
21008         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21009         regexp.  Before, we would give a false-positive (saying alloca.h
21010         is included unnecessarily) when the only uses involved omitted symbols.
21011
21012         xalloc.h: use consistent formatting
21013         * lib/xalloc.h: Move declarations to start in the first column.
21014
21015 2010-01-05  Eric Blake  <ebb9@byu.net>
21016
21017         mkdir: avoid xalloc
21018         * lib/mkdir.c (includes): Drop unused header.
21019         Reported by John W. Eaton.
21020
21021 2010-01-04  Jim Meyering  <meyering@redhat.com>
21022
21023         nl_langinfo: avoid configure-time syntax error
21024         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21025         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21026         the empty string.  Don't let that provoke a shell syntax error.
21027
21028         regcomp, regexec, fnmatch: avoid array bounds read error
21029         * lib/regcomp.c (build_equiv_class): From glibc:
21030         Use only the low 24 bits of a findidx return value as an index
21031         into the weights array.  Patch by Ulrich Drepper:
21032         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21033         * lib/regexec.c (check_node_accept_bytes): Likewise.
21034         * lib/fnmatch_loop.c (FCT): Likewise.
21035
21036         regcomp: skip collseq lookup when there are no rules
21037         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21038         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21039
21040         regcomp: recognize ill-formed { } expressions
21041         * lib/regcomp.c (parse_dup_op): From glibc:
21042         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21043
21044         regcomp: fix typo in comment
21045         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21046         s/satisfy/satisfies/.
21047
21048         regcomp: sync from glibc: remove dead store
21049         * lib/regcomp.c (duplicate_node_closure): Remove useless
21050         search_duplicated_node call and dead store.
21051
21052         regcomp: sync from glibc; always use nl_langinfo
21053         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21054         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21055         * modules/regex (Depends-on): Add nl_langinfo.
21056
21057 2010-01-04  Eric Blake  <ebb9@byu.net>
21058
21059         fdopendir: fix configure test
21060         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21061
21062 2010-01-01  Bruno Haible  <bruno@clisp.org>
21063
21064         wchar: Remove unused configure check.
21065         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21066
21067 2010-01-01  Eric Blake  <ebb9@byu.net>
21068
21069         headers: make check of system header explicit
21070         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21071         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21072         ourselves.
21073         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21076         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21077         internals.
21078         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21079         missing.
21080         Suggested by Bruno Haible.
21081
21082 2010-01-01  Jim Meyering  <meyering@redhat.com>
21083
21084         ChangeLog: tweak to eliminate unnecessary copyright line
21085         * ChangeLog: Remove a copyright line that was mistakenly updated
21086         by today's update-copyright run.  Reported by Eric Blake.
21087
21088         test-update-copyright: don't let envvar setting cause test failure
21089         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21090
21091 2010-01-01  Bruno Haible  <bruno@clisp.org>
21092
21093         localename: Avoid gcc warning.
21094         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21095         function if it is not used.
21096
21097 2010-01-01  Jim Meyering  <meyering@redhat.com>
21098
21099         update nearly all FSF copyright year lists to include 2010
21100         Use the same procedure as for 2009, outlined in
21101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21102
21103         version-etc: set COPYRIGHT_YEAR to 2010
21104         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21105
21106 2009-12-31  Eric Blake  <ebb9@byu.net>
21107
21108         doc: correct availability of cygwin 1.5.x getopt
21109         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21110         variables.
21111         * doc/posix-functions/opterr.texi (opterr): Likewise.
21112         * doc/posix-functions/optind.texi (optind): Likewise.
21113         * doc/posix-functions/optopt.texi (optopt): Likewise.
21114         * doc/posix-functions/tzname.texi (tzname): Likewise.
21115
21116         openat: update maintainer
21117         * modules/openat (Maintainer): Add myself.
21118
21119         utimens: avoid shadowing warning
21120         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21121         buffers into one, to avoid shadowing, as well as avoiding a
21122         redundant stat.
21123         Reported by Jim Meyering.
21124
21125         test-dup2: avoid compiler warning
21126         * tests/test-dup2.c (is_inheritable): Only define if used.
21127
21128 2010-01-01  Bruno Haible  <bruno@clisp.org>
21129
21130         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21131         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21132         defined, use wctomb instead of wcrtomb.
21133
21134 2010-01-01  Bruno Haible  <bruno@clisp.org>
21135
21136         iconv: Reject native Solaris iconv.
21137         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21138         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21139
21140 2009-12-31  Bruno Haible  <bruno@clisp.org>
21141
21142         * tests/test-signal.c (main): Remove test of 'SIG'.
21143
21144 2009-12-31  Bruno Haible  <bruno@clisp.org>
21145
21146         spawn: Fix incomplete fix.
21147         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21148         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21149         warnings for GNULIB_POSIXCHECK again.
21150         Reported by Eric Blake.
21151
21152 2009-12-31  Bruno Haible  <bruno@clisp.org>
21153
21154         Avoid namespace pollution on glibc systems.
21155         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21156         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21157         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21158         glibc systems.
21159
21160 2009-12-31  Bruno Haible  <bruno@clisp.org>
21161
21162         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21163         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21164         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21165         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21166         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21167         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21168         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21169
21170 2009-12-31  Bruno Haible  <bruno@clisp.org>
21171
21172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21173         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21174         afterwards.
21175
21176 2009-12-31  Bruno Haible  <bruno@clisp.org>
21177
21178         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21179         SYS_UTSNAME_H.
21180
21181 2009-12-31  Bruno Haible  <bruno@clisp.org>
21182
21183         spawn: Fix misapplied patch.
21184         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21185         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21186         warnings for GNULIB_POSIXCHECK.
21187
21188 2009-12-31  Bruno Haible  <bruno@clisp.org>
21189
21190         times: Update after sys_times changed.
21191         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21192         * modules/times (Files): Add it.
21193         (configure.ac): Invoke gl_FUNC_TIMES.
21194
21195 2009-12-31  Bruno Haible  <bruno@clisp.org>
21196
21197         Use AC_C_INLINE where necessary.
21198         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21201         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21202         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21203         * m4/mbiter.m4 (gl_MBITER): Likewise.
21204         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21205         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21206         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21207         * modules/u64 (configure.ac): Likewise.
21208
21209 2009-12-31  Bruno Haible  <bruno@clisp.org>
21210
21211         Use AC_C_INLINE instead of module 'inline' where possible.
21212         * modules/inline (Description): Clarify purpose.
21213         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21214         * modules/count-one-bits (Depends-on): Remove inline.
21215         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21216         * modules/openat (Depends-on): Remove inline.
21217         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21218         instead of depending on module 'inline'.
21219         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21220         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21221         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21222         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21223         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21224         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21225         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21226         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21227         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21228         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21229         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21230         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21231         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21232         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21233         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21234         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21235         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21236         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21237         Likewise.
21238         * modules/unictype/property-ascii-hex-digit (Depends-on,
21239         configure.ac): Likewise.
21240         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21241         configure.ac): Likewise.
21242         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21243         configure.ac): Likewise.
21244         * modules/unictype/property-bidi-block-separator (Depends-on,
21245         configure.ac): Likewise.
21246         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21247         configure.ac): Likewise.
21248         * modules/unictype/property-bidi-common-separator (Depends-on,
21249         configure.ac): Likewise.
21250         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21251         Likewise.
21252         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21253         configure.ac): Likewise.
21254         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21255         configure.ac): Likewise.
21256         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21257         configure.ac): Likewise.
21258         * modules/unictype/property-bidi-european-digit (Depends-on,
21259         configure.ac): Likewise.
21260         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21261         configure.ac): Likewise.
21262         * modules/unictype/property-bidi-left-to-right (Depends-on,
21263         configure.ac): Likewise.
21264         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21265         configure.ac): Likewise.
21266         * modules/unictype/property-bidi-other-neutral (Depends-on,
21267         configure.ac): Likewise.
21268         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21269         Likewise.
21270         * modules/unictype/property-bidi-segment-separator (Depends-on,
21271         configure.ac): Likewise.
21272         * modules/unictype/property-bidi-whitespace (Depends-on,
21273         configure.ac): Likewise.
21274         * modules/unictype/property-combining (Depends-on, configure.ac):
21275         Likewise.
21276         * modules/unictype/property-composite (Depends-on, configure.ac):
21277         Likewise.
21278         * modules/unictype/property-currency-symbol (Depends-on,
21279         configure.ac): Likewise.
21280         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21281         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21282         Likewise.
21283         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21284         configure.ac): Likewise.
21285         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21286         Likewise.
21287         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21288         Likewise.
21289         * modules/unictype/property-extender (Depends-on, configure.ac):
21290         Likewise.
21291         * modules/unictype/property-format-control (Depends-on, configure.ac):
21292         Likewise.
21293         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21294         Likewise.
21295         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21296         Likewise.
21297         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21298         Likewise.
21299         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21300         Likewise.
21301         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21302         Likewise.
21303         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21304         Likewise.
21305         * modules/unictype/property-id-start (Depends-on, configure.ac):
21306         Likewise.
21307         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21308         Likewise.
21309         * modules/unictype/property-ids-binary-operator (Depends-on,
21310         configure.ac): Likewise.
21311         * modules/unictype/property-ids-trinary-operator (Depends-on,
21312         configure.ac): Likewise.
21313         * modules/unictype/property-ignorable-control (Depends-on,
21314         configure.ac): Likewise.
21315         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21316         Likewise.
21317         * modules/unictype/property-join-control (Depends-on, configure.ac):
21318         Likewise.
21319         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21320         Likewise.
21321         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21322         Likewise.
21323         * modules/unictype/property-logical-order-exception (Depends-on,
21324         configure.ac): Likewise.
21325         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21326         Likewise.
21327         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21328         * modules/unictype/property-non-break (Depends-on, configure.ac):
21329         Likewise.
21330         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21331         Likewise.
21332         * modules/unictype/property-numeric (Depends-on, configure.ac):
21333         Likewise.
21334         * modules/unictype/property-other-alphabetic (Depends-on,
21335         configure.ac): Likewise.
21336         * modules/unictype/property-other-default-ignorable-code-point
21337         (Depends-on, configure.ac): Likewise.
21338         * modules/unictype/property-other-grapheme-extend (Depends-on,
21339         configure.ac): Likewise.
21340         * modules/unictype/property-other-id-continue (Depends-on,
21341         configure.ac): Likewise.
21342         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21343         Likewise.
21344         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21345         Likewise.
21346         * modules/unictype/property-other-math (Depends-on, configure.ac):
21347         Likewise.
21348         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21349         Likewise.
21350         * modules/unictype/property-paired-punctuation (Depends-on,
21351         configure.ac): Likewise.
21352         * modules/unictype/property-paragraph-separator (Depends-on,
21353         configure.ac): Likewise.
21354         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21355         Likewise.
21356         * modules/unictype/property-pattern-white-space (Depends-on,
21357         configure.ac): Likewise.
21358         * modules/unictype/property-private-use (Depends-on, configure.ac):
21359         Likewise.
21360         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21361         Likewise.
21362         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21363         Likewise.
21364         * modules/unictype/property-radical (Depends-on, configure.ac):
21365         Likewise.
21366         * modules/unictype/property-sentence-terminal (Depends-on,
21367         configure.ac): Likewise.
21368         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21369         Likewise.
21370         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21371         * modules/unictype/property-terminal-punctuation (Depends-on,
21372         configure.ac): Likewise.
21373         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21374         Likewise.
21375         * modules/unictype/property-unassigned-code-value (Depends-on,
21376         configure.ac): Likewise.
21377         * modules/unictype/property-unified-ideograph (Depends-on,
21378         configure.ac): Likewise.
21379         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21380         Likewise.
21381         * modules/unictype/property-variation-selector (Depends-on,
21382         configure.ac): Likewise.
21383         * modules/unictype/property-white-space (Depends-on, configure.ac):
21384         Likewise.
21385         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21386         Likewise.
21387         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21388         Likewise.
21389         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21390         Likewise.
21391         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21392         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21393         Likewise.
21394
21395 2009-12-31  Bruno Haible  <bruno@clisp.org>
21396
21397         Remove unnecessary AC_C_INLINE invocation.
21398         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21399         since 2009-08-21.
21400
21401 2009-12-31  Jim Meyering  <meyering@redhat.com>
21402
21403         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21404         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21405         With this change, we can all remove the gpg_key_ID = ... definition
21406         from our respective cfg.mk files.
21407
21408         maint.mk: create announcement template in ~/, not in /tmp
21409         * top/maint.mk (emit_upload_commands): Adjust.
21410         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21411         Remove temporary file, .ci-msg.
21412
21413 2009-12-31  Eric Blake  <ebb9@byu.net>
21414
21415         link-warning: always build headers with link warnings
21416         * modules/arpa_inet (Makefile.am): Always build replacement
21417         header.
21418         * modules/ctype (Makefile.am): Likewise.
21419         * modules/dirent (Makefile.am): Likewise.
21420         * modules/inttypes (Makefile.am): Likewise.
21421         * modules/langinfo (Makefile.am): Likewise.
21422         * modules/locale (Makefile.am): Likewise.
21423         * modules/spawn (Makefile.am): Likewise.
21424         * modules/sys_file (Makefile.am): Likewise.
21425         * modules/sys_ioctl (Makefile.am): Likewise.
21426         * modules/sys_select (Makefile.am): Likewise.
21427         * modules/sys_socket (Makefile.am): Likewise.
21428         * modules/sys_times (Makefile.am): Likewise.
21429         * modules/sys_utsname (Makefile.am): Likewise.
21430         * modules/sys_wait (Makefile.am): Likewise.
21431         * modules/wchar (Makefile.am): Likewise.
21432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21433         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21434         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21435         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21436         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21437         Likewise.
21438         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21439         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21440         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21441         Likewise.
21442         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21443         Likewise.
21444         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21446         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21450         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21451         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21452         (gl_WCHAR_H_DEFAULTS): Likewise.
21453
21454 2009-12-31  Eric Blake  <ebb9@byu.net>
21455
21456         signal, spawn: use link warnings
21457         * lib/signal.in.h (sigset_t): Make unconditional.
21458         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21459         (sigpending, sigprocmask, sigaction): Add link warnings.
21460         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21461         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21462         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21463         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21464         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21465         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21466         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21467         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21468         (posix_spawn_file_actions_destroy)
21469         (posix_spawn_file_actions_addopen)
21470         (posix_spawn_file_actions_addclose)
21471         (posix_spawn_file_actions_adddup2): Likewise.
21472         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21473         * tests/test-signal.c (main): Enhance test.
21474
21475         spawn: improve wrapper support
21476         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21477         (gl_SPAWN_H_DEFAULTS): New defaults.
21478         * modules/spawn (Makefile.am): Substitute them.
21479         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21480         Only declare if missing or broken.
21481
21482         sys_times, sys_utsname: use include_next
21483         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21484         header.
21485         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21486         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21487         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21488         * modules/sys_times (Depends-on): Add include_next.
21489         (Makefile.am): Substitute additional values.
21490         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21491         * lib/sys_times.in.h (includes): Include native header, if
21492         available.
21493         * lib/sys_utsname.in.h (includes): Likewise.
21494         * tests/test-sys_times.c (main): Enhance test.
21495
21496         fdutimensat: revert prior patch
21497         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21498         utimens.h.
21499         Reported by Bruno Haible.
21500
21501 2009-12-30  Eric Blake  <ebb9@byu.net>
21502
21503         sys_wait: drop link-warning dependency
21504         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21505         link-warning efforts.
21506         * lib/sys_wait.in.h: Likewise.
21507
21508         fdutimensat: remove bogus dependency
21509         * modules/fdutimensat (Depends-on): Drop inline.
21510
21511         unistd: fix typo
21512         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21513
21514 2009-12-30  Bruno Haible  <bruno@clisp.org>
21515
21516         Fix compilation error with Solaris cc.
21517         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21518         * lib/unicase/u16-is-invariant.c: Likewise.
21519         * lib/unicase/u32-is-invariant.c: Likewise.
21520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21521
21522 2009-12-30  Bruno Haible  <bruno@clisp.org>
21523
21524         Fix test crash.
21525         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21526         locales.
21527         Reported by Simon Josefsson <simon@josefsson.org>.
21528
21529 2009-12-30  Bruno Haible  <bruno@clisp.org>
21530
21531         Fix compilation error on most platforms.
21532         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21533         Reported by Simon Josefsson <simon@josefsson.org>
21534         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21535
21536 2009-12-30  Eric Blake  <ebb9@byu.net>
21537
21538         futimens, utimensat: work around ntfs-3g bug
21539         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21540         a ctime bug is present, and expand workaround to cover ntfs-3g.
21541         * lib/utimens.c (fdutimens, lutimens): Likewise.
21542         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21543         (validate_timespec): Adjust return value.
21544         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21545         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21546         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21547
21548 2009-12-29  Eric Blake  <ebb9@byu.net>
21549
21550         link-warning: make usage consistent
21551         * modules/ctype (Depends-on): Add link-warning.
21552         (Makefile.am): Update rules accordingly.
21553         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21554         * modules/locale (Depends-on, Makefile.am): Likewise.
21555         * modules/sys_file (Makefile.am): Likewise.
21556         * modules/getopt-posix (Makefile.am): Delete unused link warning
21557         efforts.
21558         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21559         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21560         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21561         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21562
21563         stdio: remove unused variables
21564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21565         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21566         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21567
21568         tests: test more substitute headers
21569         * modules/ctype-tests: New file.
21570         * modules/dirent-tests: Likewise.
21571         * modules/spawn-tests: Likewise.
21572         * modules/sys_file-tests: Likewise.
21573         * modules/sys_ioctl-tests: Likewise.
21574         * modules/sys_wait-tests: Likewise.
21575         * tests/test-ctype.c: Likewise.
21576         * tests/test-dirent.c: Likewise.
21577         * tests/test-spawn.c: Likewise.
21578         * tests/test-sys_file.c: Likewise.
21579         * tests/test-sys_ioctl.c: Likewise.
21580         * tests/test-sys_wait.c: Likewise.
21581         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21582         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21583         whether or not flock is in use.
21584
21585         tests: remove License section from module
21586         * modules/arpa_inet-tests: Remove unneeded section.
21587         * modules/byteswap-tests: Likewise.
21588         * modules/ceilf-tests: Likewise.
21589         * modules/ceill-tests: Likewise.
21590         * modules/crypto/des-tests: Likewise.
21591         * modules/crypto/gc-arcfour-tests: Likewise.
21592         * modules/crypto/gc-arctwo-tests: Likewise.
21593         * modules/crypto/gc-des-tests: Likewise.
21594         * modules/crypto/gc-hmac-md5-tests: Likewise.
21595         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21596         * modules/crypto/gc-md2-tests: Likewise.
21597         * modules/crypto/gc-md4-tests: Likewise.
21598         * modules/crypto/gc-md5-tests: Likewise.
21599         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21600         * modules/crypto/gc-rijndael-tests: Likewise.
21601         * modules/crypto/gc-sha1-tests: Likewise.
21602         * modules/crypto/gc-tests: Likewise.
21603         * modules/crypto/md2-tests: Likewise.
21604         * modules/crypto/md4-tests: Likewise.
21605         * modules/fcntl-h-tests: Likewise.
21606         * modules/floorf-tests: Likewise.
21607         * modules/floorl-tests: Likewise.
21608         * modules/frexp-nolibm-tests: Likewise.
21609         * modules/frexp-tests: Likewise.
21610         * modules/frexpl-nolibm-tests: Likewise.
21611         * modules/frexpl-tests: Likewise.
21612         * modules/getaddrinfo-tests: Likewise.
21613         * modules/inttypes-tests: Likewise.
21614         * modules/isfinite-tests: Likewise.
21615         * modules/isinf-tests: Likewise.
21616         * modules/ldexpl-tests: Likewise.
21617         * modules/locale-tests: Likewise.
21618         * modules/math-tests: Likewise.
21619         * modules/netdb-tests: Likewise.
21620         * modules/netinet_in-tests: Likewise.
21621         * modules/printf-frexp-tests: Likewise.
21622         * modules/printf-frexpl-tests: Likewise.
21623         * modules/priv-set-tests: Likewise.
21624         * modules/random_r-tests: Likewise.
21625         * modules/round-tests: Likewise.
21626         * modules/roundf-tests: Likewise.
21627         * modules/roundl-tests: Likewise.
21628         * modules/search-tests: Likewise.
21629         * modules/select-tests: Likewise.
21630         * modules/signal-tests: Likewise.
21631         * modules/stdbool-tests: Likewise.
21632         * modules/stddef-tests: Likewise.
21633         * modules/stdint-tests: Likewise.
21634         * modules/stdio-tests: Likewise.
21635         * modules/stdlib-tests: Likewise.
21636         * modules/string-tests: Likewise.
21637         * modules/strings-tests: Likewise.
21638         * modules/sys_select-tests: Likewise.
21639         * modules/sys_socket-tests: Likewise.
21640         * modules/sys_stat-tests: Likewise.
21641         * modules/sys_time-tests: Likewise.
21642         * modules/sys_utsname-tests: Likewise.
21643         * modules/sysexits-tests: Likewise.
21644         * modules/time-tests: Likewise.
21645         * modules/trunc-tests: Likewise.
21646         * modules/truncf-tests: Likewise.
21647         * modules/truncl-tests: Likewise.
21648         * modules/tsearch-tests: Likewise.
21649         * modules/unistd-tests: Likewise.
21650         * modules/wchar-tests: Likewise.
21651         * modules/wctype-tests: Likewise.
21652
21653         tests: fix license on several tests
21654         * tests/test-des.c: Update to GPLv3+.
21655         * tests/test-flock.c: Likewise.
21656         * tests/test-fsync.c: Likewise.
21657         * tests/test-futimens.h: Likewise.
21658         * tests/test-gc-arcfour.c: Likewise.
21659         * tests/test-gc-arctwo.c: Likewise.
21660         * tests/test-gc-des.c: Likewise.
21661         * tests/test-gc-hmac-md5.c: Likewise.
21662         * tests/test-gc-hmac-sha1.c: Likewise.
21663         * tests/test-gc-md2.c: Likewise.
21664         * tests/test-gc-md4.c: Likewise.
21665         * tests/test-gc-md5.c: Likewise.
21666         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21667         * tests/test-gc-rijndael.c: Likewise.
21668         * tests/test-gc-sha1.c: Likewise.
21669         * tests/test-gc.c: Likewise.
21670         * tests/test-getcwd.c: Likewise.
21671         * tests/test-link.c: Likewise.
21672         * tests/test-link.h: Likewise.
21673         * tests/test-lutimens.h: Likewise.
21674         * tests/test-md2.c: Likewise.
21675         * tests/test-md4.c: Likewise.
21676         * tests/test-mkdir.h: Likewise.
21677         * tests/test-rename.c: Likewise.
21678         * tests/test-rename.h: Likewise.
21679         * tests/test-safe-alloc.c: Likewise.
21680         * tests/test-utimens-common.h: Likewise.
21681         * tests/test-utimens.h: Likewise.
21682
21683         maint: sync license texts
21684         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21685         * doc/gpl-3.0.texi: Revert copyright year update.
21686         * doc/lgpl-3.0.texi: Likewise.
21687
21688 2009-12-29  Jim Meyering  <meyering@redhat.com>
21689
21690         update nearly all FSF copyright year lists to include 2009
21691         The files named by the following are exempted:
21692             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21693               test -f "$dst" && { echo "$dst"; continue; }
21694               test -d "$dst" || continue
21695               echo "$dst"/$(basename "$src")
21696             done > exempt
21697             git ls-files tests/unictype >> exempt
21698         In the remaining files, convert to all-interval notation if
21699         - there is already at least one year interval like 2000-2003
21700         - the file is maintained by me
21701         - the file is in lib/uni*/, where that style already prevails
21702         Otherwise, use update-copyright's default.
21703
21704 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21705         and Eric Blake  <ebb9@byu.net>
21706
21707         tests: don't require debug system() to pass
21708         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21710         * tests/test-unlink.h (test_unlink_func): Likewise.
21711         * tests/test-fstatat.c (main): ...into callers.
21712         * tests/test-lstat.c (main): Likewise.
21713         * tests/test-rmdir.c (main): Likewise.
21714         * tests/test-unlink.c (main): Likewise.
21715         * tests/test-unlinkat.c (main): Likewise.
21716         * tests/test-areadlink-with-size.c (main): Don't require a
21717         debug-only system call to pass, aiding cross-testing to mingw.
21718         * tests/test-areadlink.c (main): Likewise.
21719         * tests/test-areadlinkat-with-size.c (main): Likewise.
21720         * tests/test-areadlinkat.c (main): Likewise.
21721         * tests/test-canonicalize-lgpl.c (main): Likewise.
21722         * tests/test-canonicalize.c (main): Likewise.
21723         * tests/test-chown.c (main): Likewise.
21724         * tests/test-fchownat.c (main): Likewise.
21725         * tests/test-lchown.c (main): Likewise.
21726         * tests/test-fdutimensat.c (main): Likewise.
21727         * tests/test-futimens.c (main): Likewise.
21728         * tests/test-link.c (main): Likewise.
21729         * tests/test-linkat.c (main): Likewise.
21730         * tests/test-mkdir.c (main): Likewise.
21731         * tests/test-mkdirat.c (main): Likewise.
21732         * tests/test-mkfifo.c (main): Likewise.
21733         * tests/test-mkfifoat.c (main): Likewise.
21734         * tests/test-mknod.c (main): Likewise.
21735         * tests/test-readlink.c (main): Likewise.
21736         * tests/test-remove.c (main): Likewise.
21737         * tests/test-rename.c (main): Likewise.
21738         * tests/test-renameat.c (main): Likewise.
21739         * tests/test-symlink.c (main): Likewise.
21740         * tests/test-symlinkat.c (main): Likewise.
21741         * tests/test-utimens.c (main): Likewise.
21742         * tests/test-utimensat.c (main): Likewise.
21743
21744 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21745
21746         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21747         on $(UNUSED_PARAMETER_H) to avoid build failure.
21748
21749 2009-12-28  Jim Meyering  <meyering@redhat.com>
21750
21751         update-copyright: you may specify a max. line length other than 72
21752         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21753
21754         maint: use consistent FSF copyright line syntax
21755         * lib/posixtm.c: Add missing comma in FSF copyright line.
21756         * lib/posixtm.h: Likewise.
21757         * lib/getugroups.c: Add missing ", Inc.".
21758
21759         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21760         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21761         FSF copyright line.  Remove trailing blanks.
21762
21763 2009-12-28  Eric Blake  <ebb9@byu.net>
21764
21765         test-dup2: reduce dependencies
21766         * modules/cloexec (Configure.ac): Set witness.
21767         * modules/dup2-tests (Depends-on): Drop cloexec.
21768         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21769         not present.
21770         Suggested by Bruno Haible.
21771
21772 2009-12-26  Bruno Haible  <bruno@clisp.org>
21773
21774         Remove an unneeded dependency.
21775         * modules/fseterr (Depends-on): Remove dup2.
21776
21777 2009-12-26  Eric Blake  <ebb9@byu.net>
21778
21779         tests: use macros.h in more places
21780         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21781         (ASSERT_STREAM): Provide default of stderr.
21782         * tests/test-dirent-safer.c: Include macros.h, using alternate
21783         stream for assertions.
21784         * tests/test-dup-safer.c: Likewise.
21785         * tests/test-freopen-safer.c: Likewise.
21786         * tests/test-getopt.c: Likewise.
21787         * tests/test-openat-safer.c: Likewise.
21788         * tests/test-pipe.c: Likewise.
21789         * tests/test-popen-safer.c: Likewise.
21790         * modules/dirent-safer-tests (Files): Include macros.h.
21791         * modules/unistd-safer-tests (Files): Likewise.
21792         * modules/freopen-safer-tests (Files): Likewise.
21793         * modules/getopt-posix-tests (Files): Likewise.
21794         * modules/openat-safer-tests (Files): Likewise.
21795         * modules/pipe-tests (Files): Likewise.
21796
21797 2009-12-26  Bruno Haible  <bruno@clisp.org>
21798
21799         javacomp: Portability fix.
21800         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21801         that it also works on Solaris.
21802
21803 2009-12-26  Bruno Haible  <bruno@clisp.org>
21804
21805         localename: Fix storage allocation of gl_locale_name_thread's result.
21806         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21807         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21808         all platforms that have 'uselocale'.
21809         (gl_locale_name_thread_unsafe): New function, extracted from
21810         gl_locale_name_thread.
21811         (gl_locale_name_thread): Call struniq on all platforms that have
21812         'uselocale'.
21813         * tests/test-localename.c (test_locale_name_thread): Check that the
21814         resulting strings are permanently allocated.
21815         * modules/localename-tests (Depends-on): Add strdup.
21816
21817 2009-12-26  Bruno Haible  <bruno@clisp.org>
21818
21819         * tests/test-localename.c (categories): Fill in the strings.
21820
21821 2009-12-26  Jim Meyering  <meyering@redhat.com>
21822
21823         isdir: complete the removal of m4/isdir.m4
21824         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21825
21826         isdir: clean up, since at least grep still uses it
21827         * lib/isdir.c: Include "isdir.h".
21828         (S_ISDIR): Remove now-unneeded definition.
21829         * modules/isdir (Files): Add lib/isdir.h.
21830         * lib/isdir.h: New file, with declaration.
21831         * m4/isdir.m4: Remove file -- unneeded.
21832
21833 2009-12-25  Bruno Haible  <bruno@clisp.org>
21834
21835         selinux-h: Make generated .h files standalone.
21836         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21837         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21838         * lib/se-selinux.in.h: Likewise.
21839         * modules/selinux-h (Depends-on): Add unused-parameter.
21840         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21841         selinux/selinux.h and selinux/context.h.
21842         Suggested by Eric Blake.
21843
21844 2009-12-25  Bruno Haible  <bruno@clisp.org>
21845
21846         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21847         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21848         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21849         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21850         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21851
21852 2009-12-24  Bruno Haible  <bruno@clisp.org>
21853
21854         openat: Fix warning.
21855         * lib/openat-proc.c: Include <unistd.h>.
21856
21857 2009-12-24  Bruno Haible  <bruno@clisp.org>
21858
21859         New module 'unused-parameter'.
21860         * build-aux/unused-parameter.h: New file, extracted from earlier
21861         gnulib-common.m4.
21862         * modules/unused-parameter: New file.
21863         * lib/unistr.h: Include unused-parameter.h.
21864         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21865         _GL_UNUSED.
21866         * modules/unistr/base (Depends-on): Add unused-parameter.
21867
21868 2009-12-24  Bruno Haible  <bruno@clisp.org>
21869
21870         Add missing dependencies to 'extensions' module.
21871         * m4/extensions.m4: Add comment.
21872         * modules/accept4 (Depends-on): Add extensions.
21873         * modules/dup3 (Depends-on): Likewise.
21874         * modules/fcntl (Depends-on): Likewise.
21875         * modules/futimens (Depends-on): Likewise.
21876         * modules/mknod (Depends-on): Likewise.
21877         * modules/pipe2 (Depends-on): Likewise.
21878         * modules/stat-time (Depends-on): Likewise.
21879         * modules/strcasestr-simple (Depends-on): Likewise.
21880         * modules/strsignal (Depends-on): Likewise.
21881         * modules/utimensat (Depends-on): Likewise.
21882         * modules/localcharset (Depends-on): Likewise. Needed because of
21883         gl_FCNTL_O_FLAGS.
21884         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21885         AC_TYPE_MBSTATE_T.
21886         * modules/wcsnrtombs (Depends-on): Likewise.
21887         * modules/wcsrtombs (Depends-on): Likewise.
21888
21889 2009-12-24  Bruno Haible  <bruno@clisp.org>
21890
21891         binary-io: Avoid gcc warning due to SET_BINARY.
21892         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21893         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21894
21895 2009-12-24  Bruno Haible  <bruno@clisp.org>
21896
21897         Avoid future namespace pollution on glibc systems.
21898         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21899         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21900         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21901         glibc systems.
21902
21903 2009-12-24  Bruno Haible  <bruno@clisp.org>
21904
21905         Refactor common macros used in tests.
21906         * tests/macros.h: New file.
21907         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21908         and/or <stdlib.h>, if appropriate.
21909         (ASSERT, SIZEOF): Remove macros.
21910         * tests/test-areadlink-with-size.c: Likewise.
21911         * tests/test-areadlinkat.c: Likewise.
21912         * tests/test-areadlinkat-with-size.c: Likewise.
21913         * tests/test-argmatch.c: Likewise.
21914         * tests/test-argv-iter.c: Likewise.
21915         * tests/test-array-mergesort.c: Likewise.
21916         * tests/test-array_list.c: Likewise.
21917         * tests/test-array_oset.c: Likewise.
21918         * tests/test-avltree_list.c: Likewise.
21919         * tests/test-avltree_oset.c: Likewise.
21920         * tests/test-avltreehash_list.c: Likewise.
21921         * tests/test-base64.c: Likewise.
21922         * tests/test-binary-io.c: Likewise.
21923         * tests/test-bitrotate.c: Likewise.
21924         * tests/test-btowc.c: Likewise.
21925         * tests/test-byteswap.c: Likewise.
21926         * tests/test-c-ctype.c: Likewise.
21927         * tests/test-c-stack.c: Likewise.
21928         * tests/test-c-strcasecmp.c: Likewise.
21929         * tests/test-c-strcasestr.c: Likewise.
21930         * tests/test-c-strncasecmp.c: Likewise.
21931         * tests/test-c-strstr.c: Likewise.
21932         * tests/test-canonicalize-lgpl.c: Likewise.
21933         * tests/test-canonicalize.c: Likewise.
21934         * tests/test-carray_list.c: Likewise.
21935         * tests/test-ceilf1.c: Likewise.
21936         * tests/test-ceilf2.c: Likewise.
21937         * tests/test-ceill.c: Likewise.
21938         * tests/test-chown.c: Likewise.
21939         * tests/test-cloexec.c: Likewise.
21940         * tests/test-copy-acl.c: Likewise.
21941         * tests/test-copy-file.c: Likewise.
21942         * tests/test-count-one-bits.c: Likewise.
21943         * tests/test-dprintf-posix.c: Likewise.
21944         * tests/test-dup2.c: Likewise.
21945         * tests/test-dup3.c: Likewise.
21946         * tests/test-duplocale.c: Likewise.
21947         * tests/test-fbufmode.c: Likewise.
21948         * tests/test-fchdir.c: Likewise.
21949         * tests/test-fchownat.c: Likewise.
21950         * tests/test-fcntl-safer.c: Likewise.
21951         * tests/test-fcntl.c: Likewise.
21952         * tests/test-fdopendir.c: Likewise.
21953         * tests/test-fdutimensat.c: Likewise.
21954         * tests/test-fflush2.c: Likewise.
21955         * tests/test-file-has-acl.c: Likewise.
21956         * tests/test-filevercmp.c: Likewise.
21957         * tests/test-flock.c: Likewise.
21958         * tests/test-floorf1.c: Likewise.
21959         * tests/test-floorf2.c: Likewise.
21960         * tests/test-floorl.c: Likewise.
21961         * tests/test-fnmatch.c: Likewise.
21962         * tests/test-fopen.h: Likewise.
21963         * tests/test-fpending.c: Likewise.
21964         * tests/test-fprintf-posix.c: Likewise.
21965         * tests/test-fpurge.c: Likewise.
21966         * tests/test-freadable.c: Likewise.
21967         * tests/test-freadahead.c: Likewise.
21968         * tests/test-freading.c: Likewise.
21969         * tests/test-freadptr.c: Likewise.
21970         * tests/test-freadptr2.c: Likewise.
21971         * tests/test-freadseek.c: Likewise.
21972         * tests/test-freopen.c: Likewise.
21973         * tests/test-frexp.c: Likewise.
21974         * tests/test-frexpl.c: Likewise.
21975         * tests/test-fseek.c: Likewise.
21976         * tests/test-fseeko.c: Likewise.
21977         * tests/test-fstatat.c: Likewise.
21978         * tests/test-fstrcmp.c: Likewise.
21979         * tests/test-fsync.c: Likewise.
21980         * tests/test-ftell.c: Likewise.
21981         * tests/test-ftello.c: Likewise.
21982         * tests/test-func.c: Likewise.
21983         * tests/test-futimens.c: Likewise.
21984         * tests/test-fwritable.c: Likewise.
21985         * tests/test-fwriting.c: Likewise.
21986         * tests/test-getcwd.c: Likewise.
21987         * tests/test-getdate.c: Likewise.
21988         * tests/test-getdelim.c: Likewise.
21989         * tests/test-getdtablesize.c: Likewise.
21990         * tests/test-getgroups.c: Likewise.
21991         * tests/test-getline.c: Likewise.
21992         * tests/test-getndelim2.c: Likewise.
21993         * tests/test-glob.c: Likewise.
21994         * tests/test-hash.c: Likewise.
21995         * tests/test-i-ring.c: Likewise.
21996         * tests/test-iconv-utf.c: Likewise.
21997         * tests/test-iconv.c: Likewise.
21998         * tests/test-idpriv-drop.c: Likewise.
21999         * tests/test-idpriv-droptemp.c: Likewise.
22000         * tests/test-inet_ntop.c: Likewise.
22001         * tests/test-inet_pton.c: Likewise.
22002         * tests/test-isblank.c: Likewise.
22003         * tests/test-isfinite.c: Likewise.
22004         * tests/test-isinf.c: Likewise.
22005         * tests/test-isnan.c: Likewise.
22006         * tests/test-isnand.h: Likewise.
22007         * tests/test-isnanf.h: Likewise.
22008         * tests/test-isnanl.h: Likewise.
22009         * tests/test-lchown.c: Likewise.
22010         * tests/test-ldexpl.c: Likewise.
22011         * tests/test-link.c: Likewise.
22012         * tests/test-linkat.c: Likewise.
22013         * tests/test-linked_list.c: Likewise.
22014         * tests/test-linkedhash_list.c: Likewise.
22015         * tests/test-localename.c: Likewise.
22016         * tests/test-lseek.c: Likewise.
22017         * tests/test-lstat.c: Likewise.
22018         * tests/test-mbmemcasecmp.c: Likewise.
22019         * tests/test-mbmemcasecoll.c: Likewise.
22020         * tests/test-mbrtowc.c: Likewise.
22021         * tests/test-mbscasecmp.c: Likewise.
22022         * tests/test-mbscasestr1.c: Likewise.
22023         * tests/test-mbscasestr2.c: Likewise.
22024         * tests/test-mbscasestr3.c: Likewise.
22025         * tests/test-mbscasestr4.c: Likewise.
22026         * tests/test-mbschr.c: Likewise.
22027         * tests/test-mbscspn.c: Likewise.
22028         * tests/test-mbsinit.c: Likewise.
22029         * tests/test-mbsncasecmp.c: Likewise.
22030         * tests/test-mbsnrtowcs.c: Likewise.
22031         * tests/test-mbspbrk.c: Likewise.
22032         * tests/test-mbspcasecmp.c: Likewise.
22033         * tests/test-mbsrchr.c: Likewise.
22034         * tests/test-mbsrtowcs.c: Likewise.
22035         * tests/test-mbsspn.c: Likewise.
22036         * tests/test-mbsstr1.c: Likewise.
22037         * tests/test-mbsstr2.c: Likewise.
22038         * tests/test-mbsstr3.c: Likewise.
22039         * tests/test-memchr.c: Likewise.
22040         * tests/test-memchr2.c: Likewise.
22041         * tests/test-memcmp.c: Likewise.
22042         * tests/test-memmem.c: Likewise.
22043         * tests/test-memrchr.c: Likewise.
22044         * tests/test-mkdir.c: Likewise.
22045         * tests/test-mkdirat.c: Likewise.
22046         * tests/test-mkfifo.c: Likewise.
22047         * tests/test-mkfifoat.c: Likewise.
22048         * tests/test-mknod.c: Likewise.
22049         * tests/test-nanosleep.c: Likewise.
22050         * tests/test-nl_langinfo.c: Likewise.
22051         * tests/test-obstack-printf.c: Likewise.
22052         * tests/test-open.c: Likewise.
22053         * tests/test-openat.c: Likewise.
22054         * tests/test-pipe-filter-gi1.c: Likewise.
22055         * tests/test-pipe-filter-gi2-main.c: Likewise.
22056         * tests/test-pipe-filter-ii1.c: Likewise.
22057         * tests/test-pipe-filter-ii2-main.c: Likewise.
22058         * tests/test-pipe2.c: Likewise.
22059         * tests/test-popen.h: Likewise.
22060         * tests/test-posixtm.c: Likewise.
22061         * tests/test-pread.c: Likewise.
22062         * tests/test-printf-frexp.c: Likewise.
22063         * tests/test-printf-frexpl.c: Likewise.
22064         * tests/test-printf-posix.c: Likewise.
22065         * tests/test-priv-set.c: Likewise.
22066         * tests/test-quotearg.c: Likewise.
22067         * tests/test-random_r.c: Likewise.
22068         * tests/test-rawmemchr.c: Likewise.
22069         * tests/test-rbtree_list.c: Likewise.
22070         * tests/test-rbtree_oset.c: Likewise.
22071         * tests/test-rbtreehash_list.c: Likewise.
22072         * tests/test-readlink.c: Likewise.
22073         * tests/test-remove.c: Likewise.
22074         * tests/test-rename.c: Likewise.
22075         * tests/test-renameat.c: Likewise.
22076         * tests/test-rmdir.c: Likewise.
22077         * tests/test-round1.c: Likewise.
22078         * tests/test-roundf1.c: Likewise.
22079         * tests/test-roundl.c: Likewise.
22080         * tests/test-safe-alloc.c: Likewise.
22081         * tests/test-sameacls.c: Likewise.
22082         * tests/test-set-mode-acl.c: Likewise.
22083         * tests/test-setenv.c: Likewise.
22084         * tests/test-sigaction.c: Likewise.
22085         * tests/test-signbit.c: Likewise.
22086         * tests/test-sleep.c: Likewise.
22087         * tests/test-snprintf-posix.c: Likewise.
22088         * tests/test-snprintf.c: Likewise.
22089         * tests/test-sprintf-posix.c: Likewise.
22090         * tests/test-stat-time.c: Likewise.
22091         * tests/test-stat.c: Likewise.
22092         * tests/test-strcasestr.c: Likewise.
22093         * tests/test-strchrnul.c: Likewise.
22094         * tests/test-strerror.c: Likewise.
22095         * tests/test-striconv.c: Likewise.
22096         * tests/test-striconveh.c: Likewise.
22097         * tests/test-striconveha.c: Likewise.
22098         * tests/test-strsignal.c: Likewise.
22099         * tests/test-strstr.c: Likewise.
22100         * tests/test-strtod.c: Likewise.
22101         * tests/test-strverscmp.c: Likewise.
22102         * tests/test-symlink.c: Likewise.
22103         * tests/test-symlinkat.c: Likewise.
22104         * tests/test-trunc1.c: Likewise.
22105         * tests/test-trunc2.c: Likewise.
22106         * tests/test-truncf1.c: Likewise.
22107         * tests/test-truncf2.c: Likewise.
22108         * tests/test-truncl.c: Likewise.
22109         * tests/test-uname.c: Likewise.
22110         * tests/test-unlink.c: Likewise.
22111         * tests/test-unlinkat.c: Likewise.
22112         * tests/test-unsetenv.c: Likewise.
22113         * tests/test-usleep.c: Likewise.
22114         * tests/test-utimens.c: Likewise.
22115         * tests/test-utimensat.c: Likewise.
22116         * tests/test-vasnprintf-posix.c: Likewise.
22117         * tests/test-vasnprintf-posix2.c: Likewise.
22118         * tests/test-vasnprintf.c: Likewise.
22119         * tests/test-vasprintf-posix.c: Likewise.
22120         * tests/test-vasprintf.c: Likewise.
22121         * tests/test-vdprintf-posix.c: Likewise.
22122         * tests/test-vfprintf-posix.c: Likewise.
22123         * tests/test-vprintf-posix.c: Likewise.
22124         * tests/test-vsnprintf-posix.c: Likewise.
22125         * tests/test-vsnprintf.c: Likewise.
22126         * tests/test-vsprintf-posix.c: Likewise.
22127         * tests/test-wcrtomb.c: Likewise.
22128         * tests/test-wcsnrtombs.c: Likewise.
22129         * tests/test-wcsrtombs.c: Likewise.
22130         * tests/test-wctype.c: Likewise.
22131         * tests/test-wcwidth.c: Likewise.
22132         * tests/test-xfprintf-posix.c: Likewise.
22133         * tests/test-xmemdup0.c: Likewise.
22134         * tests/test-xprintf-posix.c: Likewise.
22135         * tests/test-xvasprintf.c: Likewise.
22136         * tests/unicase/test-locale-language.c: Likewise.
22137         * tests/unicase/test-mapping-part1.h: Likewise.
22138         * tests/unicase/test-predicate-part1.h: Likewise.
22139         * tests/unicase/test-u8-casecmp.c: Likewise.
22140         * tests/unicase/test-u8-casecoll.c: Likewise.
22141         * tests/unicase/test-u8-casefold.c: Likewise.
22142         * tests/unicase/test-u8-is-cased.c: Likewise.
22143         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22144         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22145         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22146         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22147         * tests/unicase/test-u8-tolower.c: Likewise.
22148         * tests/unicase/test-u8-totitle.c: Likewise.
22149         * tests/unicase/test-u8-toupper.c: Likewise.
22150         * tests/unicase/test-u16-casecmp.c: Likewise.
22151         * tests/unicase/test-u16-casecoll.c: Likewise.
22152         * tests/unicase/test-u16-casefold.c: Likewise.
22153         * tests/unicase/test-u16-is-cased.c: Likewise.
22154         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22155         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22156         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22157         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22158         * tests/unicase/test-u16-tolower.c: Likewise.
22159         * tests/unicase/test-u16-totitle.c: Likewise.
22160         * tests/unicase/test-u16-toupper.c: Likewise.
22161         * tests/unicase/test-u32-casecmp.c: Likewise.
22162         * tests/unicase/test-u32-casecoll.c: Likewise.
22163         * tests/unicase/test-u32-casefold.c: Likewise.
22164         * tests/unicase/test-u32-is-cased.c: Likewise.
22165         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22166         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22167         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22168         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22169         * tests/unicase/test-u32-tolower.c: Likewise.
22170         * tests/unicase/test-u32-totitle.c: Likewise.
22171         * tests/unicase/test-u32-toupper.c: Likewise.
22172         * tests/unicase/test-ulc-casecmp.c: Likewise.
22173         * tests/unicase/test-ulc-casecoll.c: Likewise.
22174         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22175         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22176         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22177         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22178         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22179         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22180         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22181         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22182         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22183         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22184         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22185         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22186         * tests/unictype/test-bidi_byname.c: Likewise.
22187         * tests/unictype/test-bidi_name.c: Likewise.
22188         * tests/unictype/test-bidi_of.c: Likewise.
22189         * tests/unictype/test-bidi_test.c: Likewise.
22190         * tests/unictype/test-block_list.c: Likewise.
22191         * tests/unictype/test-block_of.c: Likewise.
22192         * tests/unictype/test-block_test.c: Likewise.
22193         * tests/unictype/test-categ_and.c: Likewise.
22194         * tests/unictype/test-categ_and_not.c: Likewise.
22195         * tests/unictype/test-categ_byname.c: Likewise.
22196         * tests/unictype/test-categ_name.c: Likewise.
22197         * tests/unictype/test-categ_none.c: Likewise.
22198         * tests/unictype/test-categ_of.c: Likewise.
22199         * tests/unictype/test-categ_or.c: Likewise.
22200         * tests/unictype/test-categ_test_withtable.c: Likewise.
22201         * tests/unictype/test-combining.c: Likewise.
22202         * tests/unictype/test-decdigit.c: Likewise.
22203         * tests/unictype/test-digit.c: Likewise.
22204         * tests/unictype/test-mirror.c: Likewise.
22205         * tests/unictype/test-numeric.c: Likewise.
22206         * tests/unictype/test-pr_byname.c: Likewise.
22207         * tests/unictype/test-pr_test.c: Likewise.
22208         * tests/unictype/test-predicate-part1.h: Likewise.
22209         * tests/unictype/test-scripts.c: Likewise.
22210         * tests/unictype/test-sy_c_ident.c: Likewise.
22211         * tests/unictype/test-sy_java_ident.c: Likewise.
22212         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22213         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22214         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22215         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22216         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22217         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22218         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22219         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22220         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22221         * tests/uninorm/test-compat-decomposition.c: Likewise.
22222         * tests/uninorm/test-composition.c: Likewise.
22223         * tests/uninorm/test-decomposing-form.c: Likewise.
22224         * tests/uninorm/test-decomposition.c: Likewise.
22225         * tests/uninorm/test-u8-nfc.c: Likewise.
22226         * tests/uninorm/test-u8-nfd.c: Likewise.
22227         * tests/uninorm/test-u8-nfkc.c: Likewise.
22228         * tests/uninorm/test-u8-nfkd.c: Likewise.
22229         * tests/uninorm/test-u8-normcmp.c: Likewise.
22230         * tests/uninorm/test-u8-normcoll.c: Likewise.
22231         * tests/uninorm/test-u16-nfc.c: Likewise.
22232         * tests/uninorm/test-u16-nfd.c: Likewise.
22233         * tests/uninorm/test-u16-nfkc.c: Likewise.
22234         * tests/uninorm/test-u16-nfkd.c: Likewise.
22235         * tests/uninorm/test-u16-normcmp.c: Likewise.
22236         * tests/uninorm/test-u16-normcoll.c: Likewise.
22237         * tests/uninorm/test-u32-nfc.c: Likewise.
22238         * tests/uninorm/test-u32-nfd.c: Likewise.
22239         * tests/uninorm/test-u32-nfkc.c: Likewise.
22240         * tests/uninorm/test-u32-nfkd.c: Likewise.
22241         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22242         * tests/uninorm/test-u32-normcmp.c: Likewise.
22243         * tests/uninorm/test-u32-normcoll.c: Likewise.
22244         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22245         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22246         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22247         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22248         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22249         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22250         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22251         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22252         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22253         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22254         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22255         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22256         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22257         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22258         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22259         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22260         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22261         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22262         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22263         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22264         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22265         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22266         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22267         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22268         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22269         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22270         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22271         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22272         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22273         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22274         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22275         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22276         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22277         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22278         * tests/uniwidth/test-u8-width.c: Likewise.
22279         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22280         * tests/uniwidth/test-u16-width.c: Likewise.
22281         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22282         * tests/uniwidth/test-u32-width.c: Likewise.
22283         * tests/uniwidth/test-uc_width.c: Likewise.
22284         * tests/uniwidth/test-uc_width2.c: Likewise.
22285         * modules/acl-tests (Files): Add tests/macros.h.
22286         * modules/areadlink-tests (Files): Likewise.
22287         * modules/areadlink-with-size-tests (Files): Likewise.
22288         * modules/areadlinkat-tests (Files): Likewise.
22289         * modules/areadlinkat-with-size-tests (Files): Likewise.
22290         * modules/argmatch-tests (Files): Likewise.
22291         * modules/argv-iter-tests (Files): Likewise.
22292         * modules/array-list-tests (Files): Likewise.
22293         * modules/array-mergesort-tests (Files): Likewise.
22294         * modules/array-oset-tests (Files): Likewise.
22295         * modules/avltree-list-tests (Files): Likewise.
22296         * modules/avltree-oset-tests (Files): Likewise.
22297         * modules/avltreehash-list-tests (Files): Likewise.
22298         * modules/base64-tests (Files): Likewise.
22299         * modules/binary-io-tests (Files): Likewise.
22300         * modules/bitrotate-tests (Files): Likewise.
22301         * modules/btowc-tests (Files): Likewise.
22302         * modules/byteswap-tests (Files): Likewise.
22303         * modules/c-ctype-tests (Files): Likewise.
22304         * modules/c-stack-tests (Files): Likewise.
22305         * modules/c-strcase-tests (Files): Likewise.
22306         * modules/c-strcasestr-tests (Files): Likewise.
22307         * modules/c-strstr-tests (Files): Likewise.
22308         * modules/canonicalize-lgpl-tests (Files): Likewise.
22309         * modules/canonicalize-tests (Files): Likewise.
22310         * modules/carray-list-tests (Files): Likewise.
22311         * modules/ceilf-tests (Files): Likewise.
22312         * modules/ceill-tests (Files): Likewise.
22313         * modules/chown-tests (Files): Likewise.
22314         * modules/cloexec-tests (Files): Likewise.
22315         * modules/copy-file-tests (Files): Likewise.
22316         * modules/count-one-bits-tests (Files): Likewise.
22317         * modules/dprintf-posix-tests (Files): Likewise.
22318         * modules/dup2-tests (Files): Likewise.
22319         * modules/dup3-tests (Files): Likewise.
22320         * modules/duplocale-tests (Files): Likewise.
22321         * modules/fbufmode-tests (Files): Likewise.
22322         * modules/fchdir-tests (Files): Likewise.
22323         * modules/fcntl-safer-tests (Files): Likewise.
22324         * modules/fcntl-tests (Files): Likewise.
22325         * modules/fdopendir-tests (Files): Likewise.
22326         * modules/fdutimensat-tests (Files): Likewise.
22327         * modules/fflush-tests (Files): Likewise.
22328         * modules/filevercmp-tests (Files): Likewise.
22329         * modules/flock-tests (Files): Likewise.
22330         * modules/floorf-tests (Files): Likewise.
22331         * modules/floorl-tests (Files): Likewise.
22332         * modules/fnmatch-tests (Files): Likewise.
22333         * modules/fopen-safer-tests (Files): Likewise.
22334         * modules/fopen-tests (Files): Likewise.
22335         * modules/fpending-tests (Files): Likewise.
22336         * modules/fprintf-posix-tests (Files): Likewise.
22337         * modules/fpurge-tests (Files): Likewise.
22338         * modules/freadable-tests (Files): Likewise.
22339         * modules/freadahead-tests (Files): Likewise.
22340         * modules/freading-tests (Files): Likewise.
22341         * modules/freadptr-tests (Files): Likewise.
22342         * modules/freadseek-tests (Files): Likewise.
22343         * modules/freopen-tests (Files): Likewise.
22344         * modules/frexp-nolibm-tests (Files): Likewise.
22345         * modules/frexp-tests (Files): Likewise.
22346         * modules/frexpl-nolibm-tests (Files): Likewise.
22347         * modules/frexpl-tests (Files): Likewise.
22348         * modules/fseek-tests (Files): Likewise.
22349         * modules/fseeko-tests (Files): Likewise.
22350         * modules/fstrcmp-tests (Files): Likewise.
22351         * modules/fsync-tests (Files): Likewise.
22352         * modules/ftell-tests (Files): Likewise.
22353         * modules/ftello-tests (Files): Likewise.
22354         * modules/func-tests (Files): Likewise.
22355         * modules/futimens-tests (Files): Likewise.
22356         * modules/fwritable-tests (Files): Likewise.
22357         * modules/fwriting-tests (Files): Likewise.
22358         * modules/getcwd-tests (Files): Likewise.
22359         * modules/getdate-tests (Files): Likewise.
22360         * modules/getdelim-tests (Files): Likewise.
22361         * modules/getdtablesize-tests (Files): Likewise.
22362         * modules/getgroups-tests (Files): Likewise.
22363         * modules/getline-tests (Files): Likewise.
22364         * modules/getndelim2-tests (Files): Likewise.
22365         * modules/glob-tests (Files): Likewise.
22366         * modules/hash-tests (Files): Likewise.
22367         * modules/i-ring-tests (Files): Likewise.
22368         * modules/iconv-tests (Files): Likewise.
22369         * modules/iconv_open-utf-tests (Files): Likewise.
22370         * modules/idpriv-drop-tests (Files): Likewise.
22371         * modules/idpriv-droptemp-tests (Files): Likewise.
22372         * modules/inet_ntop-tests (Files): Likewise.
22373         * modules/inet_pton-tests (Files): Likewise.
22374         * modules/isblank-tests (Files): Likewise.
22375         * modules/isfinite-tests (Files): Likewise.
22376         * modules/isinf-tests (Files): Likewise.
22377         * modules/isnan-tests (Files): Likewise.
22378         * modules/isnand-nolibm-tests (Files): Likewise.
22379         * modules/isnand-tests (Files): Likewise.
22380         * modules/isnanf-nolibm-tests (Files): Likewise.
22381         * modules/isnanf-tests (Files): Likewise.
22382         * modules/isnanl-nolibm-tests (Files): Likewise.
22383         * modules/isnanl-tests (Files): Likewise.
22384         * modules/lchown-tests (Files): Likewise.
22385         * modules/ldexpl-tests (Files): Likewise.
22386         * modules/link-tests (Files): Likewise.
22387         * modules/linkat-tests (Files): Likewise.
22388         * modules/linked-list-tests (Files): Likewise.
22389         * modules/linkedhash-list-tests (Files): Likewise.
22390         * modules/localename-tests (Files): Likewise.
22391         * modules/lseek-tests (Files): Likewise.
22392         * modules/lstat-tests (Files): Likewise.
22393         * modules/mbmemcasecmp-tests (Files): Likewise.
22394         * modules/mbmemcasecoll-tests (Files): Likewise.
22395         * modules/mbrtowc-tests (Files): Likewise.
22396         * modules/mbscasecmp-tests (Files): Likewise.
22397         * modules/mbscasestr-tests (Files): Likewise.
22398         * modules/mbschr-tests (Files): Likewise.
22399         * modules/mbscspn-tests (Files): Likewise.
22400         * modules/mbsinit-tests (Files): Likewise.
22401         * modules/mbsncasecmp-tests (Files): Likewise.
22402         * modules/mbsnrtowcs-tests (Files): Likewise.
22403         * modules/mbspbrk-tests (Files): Likewise.
22404         * modules/mbspcasecmp-tests (Files): Likewise.
22405         * modules/mbsrchr-tests (Files): Likewise.
22406         * modules/mbsrtowcs-tests (Files): Likewise.
22407         * modules/mbsspn-tests (Files): Likewise.
22408         * modules/mbsstr-tests (Files): Likewise.
22409         * modules/memchr-tests (Files): Likewise.
22410         * modules/memchr2-tests (Files): Likewise.
22411         * modules/memcmp-tests (Files): Likewise.
22412         * modules/memmem-tests (Files): Likewise.
22413         * modules/memrchr-tests (Files): Likewise.
22414         * modules/mkdir-tests (Files): Likewise.
22415         * modules/mkfifo-tests (Files): Likewise.
22416         * modules/mkfifoat-tests (Files): Likewise.
22417         * modules/mknod-tests (Files): Likewise.
22418         * modules/nanosleep-tests (Files): Likewise.
22419         * modules/nl_langinfo-tests (Files): Likewise.
22420         * modules/obstack-printf-tests (Files): Likewise.
22421         * modules/open-tests (Files): Likewise.
22422         * modules/openat-tests (Files): Likewise.
22423         * modules/pipe-filter-gi-tests (Files): Likewise.
22424         * modules/pipe-filter-ii-tests (Files): Likewise.
22425         * modules/pipe2-tests (Files): Likewise.
22426         * modules/popen-safer-tests (Files): Likewise.
22427         * modules/popen-tests (Files): Likewise.
22428         * modules/posixtm-tests (Files): Likewise.
22429         * modules/pread-tests (Files): Likewise.
22430         * modules/printf-frexp-tests (Files): Likewise.
22431         * modules/printf-frexpl-tests (Files): Likewise.
22432         * modules/printf-posix-tests (Files): Likewise.
22433         * modules/priv-set-tests (Files): Likewise.
22434         * modules/quotearg-tests (Files): Likewise.
22435         * modules/random_r-tests (Files): Likewise.
22436         * modules/rawmemchr-tests (Files): Likewise.
22437         * modules/rbtree-list-tests (Files): Likewise.
22438         * modules/rbtree-oset-tests (Files): Likewise.
22439         * modules/rbtreehash-list-tests (Files): Likewise.
22440         * modules/readlink-tests (Files): Likewise.
22441         * modules/remove-tests (Files): Likewise.
22442         * modules/rename-tests (Files): Likewise.
22443         * modules/renameat-tests (Files): Likewise.
22444         * modules/rmdir-tests (Files): Likewise.
22445         * modules/round-tests (Files): Likewise.
22446         * modules/roundf-tests (Files): Likewise.
22447         * modules/roundl-tests (Files): Likewise.
22448         * modules/safe-alloc-tests (Files): Likewise.
22449         * modules/setenv-tests (Files): Likewise.
22450         * modules/sigaction-tests (Files): Likewise.
22451         * modules/signbit-tests (Files): Likewise.
22452         * modules/sleep-tests (Files): Likewise.
22453         * modules/snprintf-posix-tests (Files): Likewise.
22454         * modules/snprintf-tests (Files): Likewise.
22455         * modules/sprintf-posix-tests (Files): Likewise.
22456         * modules/stat-tests (Files): Likewise.
22457         * modules/stat-time-tests (Files): Likewise.
22458         * modules/strcasestr-tests (Files): Likewise.
22459         * modules/strchrnul-tests (Files): Likewise.
22460         * modules/strerror-tests (Files): Likewise.
22461         * modules/striconv-tests (Files): Likewise.
22462         * modules/striconveh-tests (Files): Likewise.
22463         * modules/striconveha-tests (Files): Likewise.
22464         * modules/strsignal-tests (Files): Likewise.
22465         * modules/strstr-tests (Files): Likewise.
22466         * modules/strtod-tests (Files): Likewise.
22467         * modules/strverscmp-tests (Files): Likewise.
22468         * modules/symlink-tests (Files): Likewise.
22469         * modules/symlinkat-tests (Files): Likewise.
22470         * modules/trunc-tests (Files): Likewise.
22471         * modules/truncf-tests (Files): Likewise.
22472         * modules/truncl-tests (Files): Likewise.
22473         * modules/uname-tests (Files): Likewise.
22474         * modules/unicase/cased-tests (Files): Likewise.
22475         * modules/unicase/ignorable-tests (Files): Likewise.
22476         * modules/unicase/locale-language-tests (Files): Likewise.
22477         * modules/unicase/tolower-tests (Files): Likewise.
22478         * modules/unicase/totitle-tests (Files): Likewise.
22479         * modules/unicase/toupper-tests (Files): Likewise.
22480         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22481         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22482         * modules/unicase/u8-casefold-tests (Files): Likewise.
22483         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22484         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22485         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22486         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22487         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22488         * modules/unicase/u8-tolower-tests (Files): Likewise.
22489         * modules/unicase/u8-totitle-tests (Files): Likewise.
22490         * modules/unicase/u8-toupper-tests (Files): Likewise.
22491         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22492         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22493         * modules/unicase/u16-casefold-tests (Files): Likewise.
22494         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22495         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22496         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22497         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22498         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22499         * modules/unicase/u16-tolower-tests (Files): Likewise.
22500         * modules/unicase/u16-totitle-tests (Files): Likewise.
22501         * modules/unicase/u16-toupper-tests (Files): Likewise.
22502         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22503         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22504         * modules/unicase/u32-casefold-tests (Files): Likewise.
22505         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22506         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22507         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22508         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22509         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22510         * modules/unicase/u32-tolower-tests (Files): Likewise.
22511         * modules/unicase/u32-totitle-tests (Files): Likewise.
22512         * modules/unicase/u32-toupper-tests (Files): Likewise.
22513         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22514         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22515         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22516         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22517         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22518         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22519         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22520         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22521         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22522         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22523         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22524         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22525         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22526         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22527         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22528         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22529         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22530         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22531         * modules/unictype/block-list-tests (Files): Likewise.
22532         * modules/unictype/block-of-tests (Files): Likewise.
22533         * modules/unictype/block-test-tests (Files): Likewise.
22534         * modules/unictype/category-C-tests (Files): Likewise.
22535         * modules/unictype/category-Cc-tests (Files): Likewise.
22536         * modules/unictype/category-Cf-tests (Files): Likewise.
22537         * modules/unictype/category-Cn-tests (Files): Likewise.
22538         * modules/unictype/category-Co-tests (Files): Likewise.
22539         * modules/unictype/category-Cs-tests (Files): Likewise.
22540         * modules/unictype/category-L-tests (Files): Likewise.
22541         * modules/unictype/category-Ll-tests (Files): Likewise.
22542         * modules/unictype/category-Lm-tests (Files): Likewise.
22543         * modules/unictype/category-Lo-tests (Files): Likewise.
22544         * modules/unictype/category-Lt-tests (Files): Likewise.
22545         * modules/unictype/category-Lu-tests (Files): Likewise.
22546         * modules/unictype/category-M-tests (Files): Likewise.
22547         * modules/unictype/category-Mc-tests (Files): Likewise.
22548         * modules/unictype/category-Me-tests (Files): Likewise.
22549         * modules/unictype/category-Mn-tests (Files): Likewise.
22550         * modules/unictype/category-N-tests (Files): Likewise.
22551         * modules/unictype/category-Nd-tests (Files): Likewise.
22552         * modules/unictype/category-Nl-tests (Files): Likewise.
22553         * modules/unictype/category-No-tests (Files): Likewise.
22554         * modules/unictype/category-P-tests (Files): Likewise.
22555         * modules/unictype/category-Pc-tests (Files): Likewise.
22556         * modules/unictype/category-Pd-tests (Files): Likewise.
22557         * modules/unictype/category-Pe-tests (Files): Likewise.
22558         * modules/unictype/category-Pf-tests (Files): Likewise.
22559         * modules/unictype/category-Pi-tests (Files): Likewise.
22560         * modules/unictype/category-Po-tests (Files): Likewise.
22561         * modules/unictype/category-Ps-tests (Files): Likewise.
22562         * modules/unictype/category-S-tests (Files): Likewise.
22563         * modules/unictype/category-Sc-tests (Files): Likewise.
22564         * modules/unictype/category-Sk-tests (Files): Likewise.
22565         * modules/unictype/category-Sm-tests (Files): Likewise.
22566         * modules/unictype/category-So-tests (Files): Likewise.
22567         * modules/unictype/category-Z-tests (Files): Likewise.
22568         * modules/unictype/category-Zl-tests (Files): Likewise.
22569         * modules/unictype/category-Zp-tests (Files): Likewise.
22570         * modules/unictype/category-Zs-tests (Files): Likewise.
22571         * modules/unictype/category-and-not-tests (Files): Likewise.
22572         * modules/unictype/category-and-tests (Files): Likewise.
22573         * modules/unictype/category-byname-tests (Files): Likewise.
22574         * modules/unictype/category-name-tests (Files): Likewise.
22575         * modules/unictype/category-none-tests (Files): Likewise.
22576         * modules/unictype/category-of-tests (Files): Likewise.
22577         * modules/unictype/category-or-tests (Files): Likewise.
22578         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22579         * modules/unictype/combining-class-tests (Files): Likewise.
22580         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22581         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22582         * modules/unictype/ctype-blank-tests (Files): Likewise.
22583         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22584         * modules/unictype/ctype-digit-tests (Files): Likewise.
22585         * modules/unictype/ctype-graph-tests (Files): Likewise.
22586         * modules/unictype/ctype-lower-tests (Files): Likewise.
22587         * modules/unictype/ctype-print-tests (Files): Likewise.
22588         * modules/unictype/ctype-punct-tests (Files): Likewise.
22589         * modules/unictype/ctype-space-tests (Files): Likewise.
22590         * modules/unictype/ctype-upper-tests (Files): Likewise.
22591         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22592         * modules/unictype/decimal-digit-tests (Files): Likewise.
22593         * modules/unictype/digit-tests (Files): Likewise.
22594         * modules/unictype/mirror-tests (Files): Likewise.
22595         * modules/unictype/numeric-tests (Files): Likewise.
22596         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22597         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22598         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22599         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22600         Likewise.
22601         * modules/unictype/property-bidi-block-separator-tests (Files):
22602         Likewise.
22603         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22604         Likewise.
22605         * modules/unictype/property-bidi-common-separator-tests (Files):
22606         Likewise.
22607         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22608         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22609         Likewise.
22610         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22611         Likewise.
22612         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22613         Likewise.
22614         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22615         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22616         Likewise.
22617         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22618         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22619         Likewise.
22620         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22621         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22622         * modules/unictype/property-bidi-segment-separator-tests (Files):
22623         Likewise.
22624         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22625         * modules/unictype/property-byname-tests (Files): Likewise.
22626         * modules/unictype/property-combining-tests (Files): Likewise.
22627         * modules/unictype/property-composite-tests (Files): Likewise.
22628         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22629         * modules/unictype/property-dash-tests (Files): Likewise.
22630         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22631         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22632         Likewise.
22633         * modules/unictype/property-deprecated-tests (Files): Likewise.
22634         * modules/unictype/property-diacritic-tests (Files): Likewise.
22635         * modules/unictype/property-extender-tests (Files): Likewise.
22636         * modules/unictype/property-format-control-tests (Files): Likewise.
22637         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22638         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22639         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22640         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22641         * modules/unictype/property-hyphen-tests (Files): Likewise.
22642         * modules/unictype/property-id-continue-tests (Files): Likewise.
22643         * modules/unictype/property-id-start-tests (Files): Likewise.
22644         * modules/unictype/property-ideographic-tests (Files): Likewise.
22645         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22646         * modules/unictype/property-ids-trinary-operator-tests (Files):
22647         Likewise.
22648         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22649         * modules/unictype/property-iso-control-tests (Files): Likewise.
22650         * modules/unictype/property-join-control-tests (Files): Likewise.
22651         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22652         * modules/unictype/property-line-separator-tests (Files): Likewise.
22653         * modules/unictype/property-logical-order-exception-tests (Files):
22654         Likewise.
22655         * modules/unictype/property-lowercase-tests (Files): Likewise.
22656         * modules/unictype/property-math-tests (Files): Likewise.
22657         * modules/unictype/property-non-break-tests (Files): Likewise.
22658         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22659         * modules/unictype/property-numeric-tests (Files): Likewise.
22660         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22661         * modules/unictype/property-other-default-ignorable-code-point-tests
22662         (Files): Likewise.
22663         * modules/unictype/property-other-grapheme-extend-tests (Files):
22664         Likewise.
22665         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22666         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22667         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22668         * modules/unictype/property-other-math-tests (Files): Likewise.
22669         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22670         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22671         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22672         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22673         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22674         * modules/unictype/property-private-use-tests (Files): Likewise.
22675         * modules/unictype/property-punctuation-tests (Files): Likewise.
22676         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22677         * modules/unictype/property-radical-tests (Files): Likewise.
22678         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22679         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22680         * modules/unictype/property-space-tests (Files): Likewise.
22681         * modules/unictype/property-terminal-punctuation-tests (Files):
22682         Likewise.
22683         * modules/unictype/property-test-tests (Files): Likewise.
22684         * modules/unictype/property-titlecase-tests (Files): Likewise.
22685         * modules/unictype/property-unassigned-code-value-tests (Files):
22686         Likewise.
22687         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22688         * modules/unictype/property-uppercase-tests (Files): Likewise.
22689         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22690         * modules/unictype/property-white-space-tests (Files): Likewise.
22691         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22692         * modules/unictype/property-xid-start-tests (Files): Likewise.
22693         * modules/unictype/property-zero-width-tests (Files): Likewise.
22694         * modules/unictype/scripts-tests (Files): Likewise.
22695         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22696         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22697         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22698         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22699         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22700         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22701         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22702         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22703         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22704         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22705         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22706         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22707         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22708         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22709         * modules/uninorm/composition-tests (Files): Likewise.
22710         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22711         * modules/uninorm/decomposition-tests (Files): Likewise.
22712         * modules/uninorm/filter-tests (Files): Likewise.
22713         * modules/uninorm/nfc-tests (Files): Likewise.
22714         * modules/uninorm/nfd-tests (Files): Likewise.
22715         * modules/uninorm/nfkc-tests (Files): Likewise.
22716         * modules/uninorm/nfkd-tests (Files): Likewise.
22717         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22718         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22719         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22720         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22721         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22722         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22723         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22724         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22725         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22726         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22727         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22728         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22729         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22730         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22731         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22732         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22733         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22734         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22735         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22736         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22737         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22738         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22739         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22740         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22741         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22742         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22743         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22744         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22745         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22746         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22747         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22748         * modules/uniwidth/u8-width-tests (Files): Likewise.
22749         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22750         * modules/uniwidth/u16-width-tests (Files): Likewise.
22751         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22752         * modules/uniwidth/u32-width-tests (Files): Likewise.
22753         * modules/uniwidth/width-tests (Files): Likewise.
22754         * modules/unlink-tests (Files): Likewise.
22755         * modules/unsetenv-tests (Files): Likewise.
22756         * modules/usleep-tests (Files): Likewise.
22757         * modules/utimens-tests (Files): Likewise.
22758         * modules/utimensat-tests (Files): Likewise.
22759         * modules/vasnprintf-posix-tests (Files): Likewise.
22760         * modules/vasnprintf-tests (Files): Likewise.
22761         * modules/vasprintf-posix-tests (Files): Likewise.
22762         * modules/vasprintf-tests (Files): Likewise.
22763         * modules/vdprintf-posix-tests (Files): Likewise.
22764         * modules/vfprintf-posix-tests (Files): Likewise.
22765         * modules/vprintf-posix-tests (Files): Likewise.
22766         * modules/vsnprintf-posix-tests (Files): Likewise.
22767         * modules/vsnprintf-tests (Files): Likewise.
22768         * modules/vsprintf-posix-tests (Files): Likewise.
22769         * modules/wcrtomb-tests (Files): Likewise.
22770         * modules/wcsnrtombs-tests (Files): Likewise.
22771         * modules/wcsrtombs-tests (Files): Likewise.
22772         * modules/wctype-tests (Files): Likewise.
22773         * modules/wcwidth-tests (Files): Likewise.
22774         * modules/xmemdup0-tests (Files): Likewise.
22775         * modules/xprintf-posix-tests (Files): Likewise.
22776         * modules/xvasprintf-tests (Files): Likewise.
22777
22778 2009-12-24  Eric Blake  <ebb9@byu.net>
22779
22780         test-nanosleep: fix typo
22781         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22782         patch.
22783         Reported by Bruno Haible.
22784
22785 2009-12-24  Bruno Haible  <bruno@clisp.org>
22786
22787         Reduce namespace pollution on glibc systems.
22788         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22789         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22790         systems.
22791         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22792         <getopt.h> on glibc systems.
22793         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22794         systems.
22795         * lib/fcntl.c: Include <unistd.h> here instead.
22796
22797 2009-12-24  Bruno Haible  <bruno@clisp.org>
22798
22799         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22800
22801 2009-12-24  Eric Blake  <ebb9@byu.net>
22802
22803         tests: add signature checks
22804         * tests/signature.h (SIGNATURE_CHECK): New file.
22805         * modules/atexit-tests (Files): Use it.
22806         * modules/btowc-tests (Files): Likewise.
22807         * modules/canonicalize-lgpl-tests (Files): Likewise.
22808         * modules/ceilf-tests (Files): Likewise.
22809         * modules/ceill-tests (Files): Likewise.
22810         * modules/chown-tests (Files): Likewise.
22811         * modules/dprintf-posix-tests (Files): Likewise.
22812         * modules/dup2-tests (Files): Likewise.
22813         * modules/dup3-tests (Files): Likewise.
22814         * modules/duplocale-tests (Files): Likewise.
22815         * modules/fchdir-tests (Files): Likewise.
22816         * modules/fcntl-tests (Files): Likewise.
22817         * modules/fdopendir-tests (Files): Likewise.
22818         * modules/fflush-tests (Files): Likewise.
22819         * modules/flock-tests (Files): Likewise.
22820         * modules/floorf-tests (Files): Likewise.
22821         * modules/floorl-tests (Files): Likewise.
22822         * modules/fnmatch-tests (Files): Likewise.
22823         * modules/fopen-tests (Files): Likewise.
22824         * modules/fprintf-posix-tests (Files): Likewise.
22825         * modules/freopen-tests (Files): Likewise.
22826         * modules/frexp-nolibm-tests (Files): Likewise.
22827         * modules/frexp-tests (Files): Likewise.
22828         * modules/frexpl-nolibm-tests (Files): Likewise.
22829         * modules/frexpl-tests (Files): Likewise.
22830         * modules/fseek-tests (Files): Likewise.
22831         * modules/fseeko-tests (Files): Likewise.
22832         * modules/fsync-tests (Files): Likewise.
22833         * modules/ftell-tests (Files): Likewise.
22834         * modules/ftello-tests (Files): Likewise.
22835         * modules/futimens-tests (Files): Likewise.
22836         * modules/getaddrinfo-tests (Files): Likewise.
22837         * modules/getcwd-tests (Files): Likewise.
22838         * modules/getdelim-tests (Files): Likewise.
22839         * modules/getdtablesize-tests (Files): Likewise.
22840         * modules/getgroups-tests (Files): Likewise.
22841         * modules/gethostname-tests (Files): Likewise.
22842         * modules/getline-tests (Files): Likewise.
22843         * modules/getopt-posix-tests (Files): Likewise.
22844         * modules/gettimeofday-tests (Files): Likewise.
22845         * modules/glob-tests (Files): Likewise.
22846         * modules/iconv-tests (Files): Likewise.
22847         * modules/inet_ntop-tests (Files): Likewise.
22848         * modules/inet_pton-tests (Files): Likewise.
22849         * modules/isblank-tests (Files): Likewise.
22850         * modules/lchown-tests (Files): Likewise.
22851         * modules/ldexpl-tests (Files): Likewise.
22852         * modules/link-tests (Files): Likewise.
22853         * modules/linkat-tests (Files): Likewise.
22854         * modules/lseek-tests (Files): Likewise.
22855         * modules/lstat-tests (Files): Likewise.
22856         * modules/mbrtowc-tests (Files): Likewise.
22857         * modules/mbsinit-tests (Files): Likewise.
22858         * modules/mbsnrtowcs-tests (Files): Likewise.
22859         * modules/mbsrtowcs-tests (Files): Likewise.
22860         * modules/memchr-tests (Files): Likewise.
22861         * modules/memcmp-tests (Files): Likewise.
22862         * modules/memmem-tests (Files): Likewise.
22863         * modules/memrchr-tests (Files): Likewise.
22864         * modules/mkdir-tests (Files): Likewise.
22865         * modules/mkfifo-tests (Files): Likewise.
22866         * modules/mkfifoat-tests (Files): Likewise.
22867         * modules/mknod-tests (Files): Likewise.
22868         * modules/nanosleep-tests (Files): Likewise.
22869         * modules/nl_langinfo-tests (Files): Likewise.
22870         * modules/obstack-printf-tests (Files): Likewise.
22871         * modules/open-tests (Files): Likewise.
22872         * modules/openat-tests (Files): Likewise.
22873         * modules/perror-tests (Files): Likewise.
22874         * modules/pipe2-tests (Files): Likewise.
22875         * modules/poll-tests (Files): Likewise.
22876         * modules/popen-tests (Files): Likewise.
22877         * modules/posix_spawn-tests (Files): Likewise.
22878         * modules/posix_spawnp-tests (Files): Likewise.
22879         * modules/pread-tests (Files): Likewise.
22880         * modules/printf-posix-tests (Files): Likewise.
22881         * modules/pty-tests (Files): Likewise.
22882         * modules/random_r-tests (Files): Likewise.
22883         * modules/rawmemchr-tests (Files): Likewise.
22884         * modules/readlink-tests (Files): Likewise.
22885         * modules/remove-tests (Files): Likewise.
22886         * modules/rename-tests (Files): Likewise.
22887         * modules/renameat-tests (Files): Likewise.
22888         * modules/rmdir-tests (Files): Likewise.
22889         * modules/round-tests (Files): Likewise.
22890         * modules/roundf-tests (Files): Likewise.
22891         * modules/roundl-tests (Files): Likewise.
22892         * modules/select-tests (Files): Likewise.
22893         * modules/setenv-tests (Files): Likewise.
22894         * modules/sigaction-tests (Files): Likewise.
22895         * modules/sleep-tests (Files): Likewise.
22896         * modules/snprintf-posix-tests (Files): Likewise.
22897         * modules/snprintf-tests (Files): Likewise.
22898         * modules/sprintf-posix-tests (Files): Likewise.
22899         * modules/stat-tests (Files): Likewise.
22900         * modules/strcasestr-tests (Files): Likewise.
22901         * modules/strchrnul-tests (Files): Likewise.
22902         * modules/strerror-tests (Files): Likewise.
22903         * modules/strsignal-tests (Files): Likewise.
22904         * modules/strstr-tests (Files): Likewise.
22905         * modules/strtod-tests (Files): Likewise.
22906         * modules/strverscmp-tests (Files): Likewise.
22907         * modules/symlink-tests (Files): Likewise.
22908         * modules/symlinkat-tests (Files): Likewise.
22909         * modules/times-tests (Files): Likewise.
22910         * modules/trunc-tests (Files): Likewise.
22911         * modules/truncf-tests (Files): Likewise.
22912         * modules/truncl-tests (Files): Likewise.
22913         * modules/tsearch-tests (Files): Likewise.
22914         * modules/uname-tests (Files): Likewise.
22915         * modules/unlink-tests (Files): Likewise.
22916         * modules/unsetenv-tests (Files): Likewise.
22917         * modules/usleep-tests (Files): Likewise.
22918         * modules/utimensat-tests (Files): Likewise.
22919         * modules/vasprintf-tests (Files): Likewise.
22920         * modules/vdprintf-posix-tests (Files): Likewise.
22921         * modules/vfprintf-posix-tests (Files): Likewise.
22922         * modules/vprintf-posix-tests (Files): Likewise.
22923         * modules/vsnprintf-posix-tests (Files): Likewise.
22924         * modules/vsnprintf-tests (Files): Likewise.
22925         * modules/vsprintf-posix-tests (Files): Likewise.
22926         * modules/wcrtomb-tests (Files): Likewise.
22927         * modules/wcsnrtombs-tests (Files): Likewise.
22928         * modules/wcsrtombs-tests (Files): Likewise.
22929         * modules/wcwidth-tests (Files): Likewise.
22930         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22931         * tests/test-isinf.c (isinf): Likewise.
22932         * tests/test-isnan.c (isnan): Likewise.
22933         * tests/test-signbit.c (signbit): Likewise.
22934         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22935         declaration, either as macro or with correct signature.
22936         (select): Ensure function under test is declared with correct
22937         signature in correct header.
22938         * tests/test-atexit.c (atexit): Likewise.
22939         * tests/test-btowc.c (btowc): Likewise.
22940         * tests/test-canonicalize-lgpl.c (realpath)
22941         (canonicalize_file_name): Likewise.
22942         * tests/test-ceilf1.c (ceilf): Likewise.
22943         * tests/test-ceill.c (ceill): Likewise.
22944         * tests/test-chown.c (chown): Likewise.
22945         * tests/test-dprintf-posix.c (dprintf): Likewise.
22946         * tests/test-dup2.c (dup2): Likewise.
22947         * tests/test-dup3.c (dup3): Likewise.
22948         * tests/test-duplocale.c (duplocale): Likewise.
22949         * tests/test-fchdir.c (fchdir): Likewise.
22950         * tests/test-fchownat.c (fchownat): Likewise.
22951         * tests/test-fcntl.c (fcntl): Likewise.
22952         * tests/test-fdopendir.c (fdopendir): Likewise.
22953         * tests/test-fflush.c (fflush): Likewise.
22954         * tests/test-flock.c (flock): Likewise.
22955         * tests/test-floorf1.c (floorf): Likewise.
22956         * tests/test-floorl.c (floorl): Likewise.
22957         * tests/test-fnmatch.c (fnmatch): Likewise.
22958         * tests/test-fopen.c (fopen): Likewise.
22959         * tests/test-fprintf-posix.c (fprintf): Likewise.
22960         * tests/test-freopen.c (freopen): Likewise.
22961         * tests/test-frexp.c (frexp): Likewise.
22962         * tests/test-frexpl.c (frexpl): Likewise.
22963         * tests/test-fseek.c (fseek): Likewise.
22964         * tests/test-fseeko.c (fseeko): Likewise.
22965         * tests/test-fstatat.c (fstatat): Likewise.
22966         * tests/test-fsync.c (fsync): Likewise.
22967         * tests/test-ftell.c (ftell): Likewise.
22968         * tests/test-ftello.c (ftello): Likewise.
22969         * tests/test-futimens.c (futimens): Likewise.
22970         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22971         (gai_strerror): Likewise.
22972         * tests/test-getcwd.c (getcwd): Likewise.
22973         * tests/test-getdelim.c (getdelim): Likewise.
22974         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22975         * tests/test-getgroups.c (getgroups): Likewise.
22976         * tests/test-gethostname.c (gethostname): Likewise.
22977         * tests/test-getline.c (getline): Likewise.
22978         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22979         Likewise.
22980         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22981         * tests/test-glob.c (glob, globfree): Likewise.
22982         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22983         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22984         * tests/test-inet_pton.c (inet_pton): Likewise.
22985         * tests/test-isblank.c (isblank): Likewise.
22986         * tests/test-lchown.c (lchown): Likewise.
22987         * tests/test-ldexpl.c (ldexpl): Likewise.
22988         * tests/test-link.c (link): Likewise.
22989         * tests/test-linkat.c (linkat): Likewise.
22990         * tests/test-lseek.c (lseek): Likewise.
22991         * tests/test-lstat.c (lstat): Likewise.
22992         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22993         * tests/test-mbsinit.c (mbsinit): Likewise.
22994         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22995         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22996         * tests/test-memchr.c (memchr): Likewise.
22997         * tests/test-memcmp.c (memcmp): Likewise.
22998         * tests/test-memmem.c (memmem): Likewise.
22999         * tests/test-memrchr.c (memrchr): Likewise.
23000         * tests/test-mkdir.c (mkdir): Likewise.
23001         * tests/test-mkdirat.c (mkdirat): Likewise.
23002         * tests/test-mkfifo.c (mkfifo): Likewise.
23003         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23004         * tests/test-mknod.c (mknod): Likewise.
23005         * tests/test-nanosleep.c (nanosleep): Likewise.
23006         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23007         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23008         Likewise.
23009         * tests/test-open.c (open): Likewise.
23010         * tests/test-openat.c (openat): Likewise.
23011         * tests/test-perror.c (perror): Likewise.
23012         * tests/test-pipe2.c (pipe2): Likewise.
23013         * tests/test-poll.c (poll): Likewise.
23014         * tests/test-popen.c (popen, pclose): Likewise.
23015         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23016         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23017         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23018         (posix_spawn_file_actions_destroy)
23019         (posix_spawn_file_actions_addclose)
23020         (posix_spawn_file_actions_addopen)
23021         (posix_spawn_file_actions_adddup2): Likewise.
23022         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23023         * tests/test-pread.c (pread): Likewise.
23024         * tests/test-printf-posix.c (printf): Likewise.
23025         * tests/test-pty.c (openpty, forkpty): Likewise.
23026         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23027         (random_r): Likewise.
23028         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23029         * tests/test-readlink.c (readlink): Likewise.
23030         * tests/test-remove.c (remove): Likewise.
23031         * tests/test-rename.c (rename): Likewise.
23032         * tests/test-renameat.c (renameat): Likewise.
23033         * tests/test-rmdir.c (rmdir): Likewise.
23034         * tests/test-round1.c (round): Likewise.
23035         * tests/test-roundf1.c (roundf): Likewise.
23036         * tests/test-roundl.c (roundl): Likewise.
23037         * tests/test-setenv.c (setenv): Likewise.
23038         * tests/test-sigaction.c (sigaction): Likewise.
23039         * tests/test-sleep.c (sleep): Likewise.
23040         * tests/test-snprintf.c (snprintf): Likewise.
23041         * tests/test-sprintf-posix.c (sprintf): Likewise.
23042         * tests/test-stat.c (stat): Likewise.
23043         * tests/test-stpncpy.c (stpncpy): Likewise.
23044         * tests/test-strcasestr.c (strcasestr): Likewise.
23045         * tests/test-strchrnul.c (strchrnul): Likewise.
23046         * tests/test-strerror.c (strerror): Likewise.
23047         * tests/test-strsignal.c (strsignal): Likewise.
23048         * tests/test-strstr.c (strstr): Likewise.
23049         * tests/test-strtod.c (strtod): Likewise.
23050         * tests/test-strverscmp.c (strverscmp): Likewise.
23051         * tests/test-symlink.c (symlink): Likewise.
23052         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23053         * tests/test-times.c (times): Likewise.
23054         * tests/test-trunc1.c (trunc): Likewise.
23055         * tests/test-truncf1.c (truncf): Likewise.
23056         * tests/test-truncl.c (truncl): Likewise.
23057         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23058         Likewise.
23059         * tests/test-uname.c (uname): Likewise.
23060         * tests/test-unlink.c (unlink): Likewise.
23061         * tests/test-unlinkat.c (unlinkat): Likewise.
23062         * tests/test-unsetenv.c (unsetenv): Likewise.
23063         * tests/test-usleep.c (usleep): Likewise.
23064         * tests/test-utimensat.c (utimensat): Likewise.
23065         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23066         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23067         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23068         * tests/test-vprintf-posix.c (vprintf): Likewise.
23069         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23070         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23071         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23072         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23073         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23074         * tests/test-wcwidth.c (wcwidth): Likewise.
23075
23076         build: pull in conditional headers during GNULIB_POSIXCHECK
23077         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23078         definitions from any conditionally-included headers.
23079         * lib/stdlib.in.h (includes): Likewise.
23080         * lib/unistd.in.h (includes): Likewise.
23081
23082 2009-12-24  Bruno Haible  <bruno@clisp.org>
23083
23084         * tests/test-argv-iter.c: Include header file being tested immediately
23085         after config.h.
23086         * tests/test-base64.c: Likewise.
23087         * tests/test-flock.c: Likewise.
23088         * tests/test-fsync.c: Likewise.
23089         * tests/test-getdate.c: Likewise.
23090         * tests/test-getndelim2.c: Likewise.
23091         * tests/test-isfinite.c: Likewise.
23092         * tests/test-isinf.c: Likewise.
23093         * tests/test-strerror.c: Likewise.
23094         * tests/test-strsignal.c: Likewise.
23095
23096 2009-12-23  Eric Blake  <ebb9@byu.net>
23097
23098         unistd: work around cygwin bug
23099         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23100         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23101         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23102
23103 2009-12-23  Bruno Haible  <bruno@clisp.org>
23104
23105         localename: More tests.
23106         * tests/test-localename.c (SIZEOF): New macro.
23107         (categories): New variable.
23108         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23109         test_locale_name_default): Add test w.r.t. thread locale.
23110         (test_locale_name_thread): New function.
23111         (main): Invoke it.
23112
23113         localename: Make aware of thread locale.
23114         * lib/localename.h (gl_locale_name_thread): New declaration.
23115         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23116         behaviour with respect to thread locale.
23117         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23118         <langinfo.h>, glthread/lock.h.
23119         (SIZE_BITS): New macro.
23120         (string_hash): New function.
23121         (struct hash_node): New type.
23122         (HASH_TABLE_SIZE): New macro.
23123         (struniq_hash_table, struniq_lock): New variables.
23124         (struniq): New function.
23125         (gl_locale_name_thread): New function.
23126         (gl_locale_name): Invoke it.
23127         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23128         * modules/localename (Depends-on): Add lock.
23129         Reported by Mike Gran <spk121@yahoo.com>.
23130
23131 2009-12-23  Eric Blake  <ebb9@byu.net>
23132
23133         va-args: new module
23134         * modules/va-args: New file.
23135         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23136         * MODULES.html.sh (Core language properties): Mention it.
23137
23138         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23139         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23140         named alias for __attribute__((__unused__)).
23141         * lib/chown.c: Update client.
23142         * lib/fchmodat.c: Likewise.
23143         * lib/fts.c: Likewise.
23144         * lib/getdate.y: Likewise.
23145         * lib/getgroups.c: Likewise.
23146         * lib/getopt.c: Likewise.
23147         * lib/getugroups.c: Likewise.
23148         * lib/mkdir.c: Likewise.
23149         * lib/mkfifo.c: Likewise.
23150         * lib/mkfifoat.c: Likewise.
23151         * lib/mknod.c: Likewise.
23152         * lib/mknodat.c: Likewise.
23153         * lib/readlink.c: Likewise.
23154         * lib/se-context.in.h: Likewise.
23155         * lib/se-selinux.in.h: Likewise.
23156         * lib/sockets.c: Likewise.
23157         * lib/symlink.c: Likewise.
23158         * lib/symlinkat.c: Likewise.
23159         * lib/unicodeio.c: Likewise.
23160         * lib/unistr.h: Likewise.
23161         * tests/test-areadlink.c: Likewise.
23162         * tests/test-areadlinkat.c: Likewise.
23163         * tests/test-filenamecat.c: Likewise.
23164         * tests/test-fseeko.c: Likewise.
23165         * tests/test-ftello.c: Likewise.
23166         * tests/test-getdate.c: Likewise.
23167         * tests/test-getgroups.c: Likewise.
23168         * tests/test-gethostname.c: Likewise.
23169         * tests/test-quotearg.c: Likewise.
23170         * tests/test-version-etc.c: Likewise.
23171         * tests/test-xalloc-die.c: Likewise.
23172         * tests/test-xfprintf-posix.c: Likewise.
23173         * tests/test-xprintf-posix.c: Likewise.
23174         * tests/test-xvasprintf.c: Likewise.
23175
23176         tests: avoid compiler warnings
23177         * tests/test-fcntl.c (main): Delete unused parameters.
23178         * tests/test-freopen-safer.c (main): Likewise.
23179         * tests/test-xalloc-die.c (main): Mark unused parameters.
23180         * tests/test-fseeko.c (main): Likewise.
23181         * tests/test-ftello.c (main): Likewise.
23182         * tests/test-nanosleep.c (main): Avoid declaration warning.
23183         * tests/test-sleep.c (main): Likewise.
23184         * tests/test-unsetenv.c (main): Silence warning about string
23185         literal.
23186         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23187
23188 2009-12-23  Bruno Haible  <bruno@clisp.org>
23189
23190         * tests/test-localename.c (test_locale_name): New function, extracted
23191         from main. Also test mixed situations.
23192         (test_locale_name_posix, test_locale_name_environ,
23193         test_locale_name_default): New functions.
23194         (main): Invoke them all.
23195         * modules/localename-tests (configure.ac): Test for newlocale.
23196
23197 2009-12-23  Bruno Haible  <bruno@clisp.org>
23198
23199         unistd: Ensure getcwd gets declared before being overridden.
23200         * lib/unistd.in.h: Conditionally include <io.h>.
23201
23202 2009-12-22  Bruno Haible  <bruno@clisp.org>
23203
23204         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23205         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23206         (gl_WCHAR_H): Invoke it.
23207         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23208         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23209         Reported by Karl Berry <karl@freefriends.org>.
23210
23211 2009-12-22  Eric Blake  <ebb9@byu.net>
23212
23213         math, unistd: avoid redundant includes
23214         * lib/math.in.h (isnan): No need to re-include <math.h>.
23215         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23216
23217         getsubopt: work around cygwin bug
23218         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23219         avoid conflicting with system getsubopt.
23220         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23221         bug.
23222
23223         getopt: synchronize from glibc
23224         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23225         parameter order.  Adjust all callers.
23226         (_getopt_internal_r, main): Adjust quoting in error messages.
23227         Drop considerations for outdated POSIX 1003.2 error message.
23228         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23229         callers.
23230         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23231
23232         test-getopt: test stderr behavior
23233         * modules/getopt-posix-tests (Depends-on): Add dup2.
23234         * tests/test-getopt.c (ASSERT): Avoid stderr.
23235         (main): Move stderr to a temporary file.
23236         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23237         Instead, add parameter to inform caller if output occurred.
23238         (test_getopt): Adjust all existing tests to expect silence, and
23239         add new tests of leading ":".
23240         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23241         glibc shortcomings with leading "-:" or "+:" in optstring.
23242         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23243         Likewise.
23244         * doc/posix-functions/getopt.texi (getopt): Likewise.
23245
23246         test-getopt: enhance test
23247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23248         supports optind=0.
23249         * tests/test-getopt.c (OPTIND_MIN): Move...
23250         * tests/test-getopt.h (OPTIND_MIN): ...here.
23251         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23252         Require that optind=0 works, since modern BSD supports it in
23253         addition to optreset, and since coreutils expects it.
23254         (test_getopt_long_only): New test.
23255         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23256         glibc shortcomings with 'W;', and enforcement of optind=0.
23257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23258         Likewise.
23259
23260 2009-12-21  Bruno Haible  <bruno@clisp.org>
23261
23262         localename: Improvements for MacOS X and Cygwin.
23263         * lib/localename.h (gl_locale_name_environ): New declaration.
23264         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23265         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23266         (gl_locale_name_posix): Invoke it.
23267         (gl_locale_name_default): Add comments. Use Windows native API also on
23268         Cygwin.
23269
23270 2009-12-21  Bruno Haible  <bruno@clisp.org>
23271
23272         Update list of Win32 locale ids.
23273         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23274         (LANG_SAMI): Renamed from LANG_SAAMI.
23275         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23276         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23277         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23278         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23279         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23280         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23281         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23282         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23283         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23284         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23285         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23286         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23287         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23288         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23289         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23290         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23291         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23292         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23293         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23294         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23295         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23296         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23297         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23298         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23299         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23300         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23301         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23302         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23303         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23304         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23305         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23306         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23307         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23308         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23309         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23310         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23311         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23312         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23313         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23314         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23315         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23316         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23317         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23318         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23319         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23320         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23321         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23322         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23323         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23324         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23325         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23326         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23327         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23328         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23329         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23330         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23331         Add more languages and countries for Sami, Sorbian. Add more countries
23332         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23333         for Pashto. Change country for Syriac, Tswana.
23334
23335 2009-12-21  Eric Blake  <ebb9@byu.net>
23336
23337         test-utimens: avoid spurious failure
23338         * tests/test-chown.h (nap): Factor...
23339         * tests/nap.h: ...into new file.
23340         * tests/test-lchown.h (nap): Avoid duplication.
23341         * tests/test-utimens-common.h (nap): Use shared implementation,
23342         necessary on file systems with 1-second resolution.
23343         * modules/chown-tests (Files): Include new file.
23344         * modules/fdutimensat-tests (Files): Likewise.
23345         * modules/futimens-tests (Files): Likewise.
23346         * modules/lchown-tests (Files): Likewise.
23347         * modules/openat-tests (Files): Likewise.
23348         * modules/utimens-tests (Files): Likewise.
23349         * modules/utimensat-tests (Files): Likewise.
23350
23351 2009-12-19  Eric Blake  <ebb9@byu.net>
23352
23353         futimens, utimensat: work around Linux bug
23354         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23355         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23356         * lib/utimensat.c (rpl_utimensat): Work around it.
23357         * lib/futimens.c (rpl_futimens): Adjust comment.
23358
23359         utimens: work around Linux ctime bug
23360         * lib/utimens.c (detect_ctime_bug): New helper function.
23361         (update_timespec): Differentiate between workaround needed for
23362         this bug vs. what is needed for systems that lack utimensat.
23363         (fdutimens, lutimens): Work around bug.
23364
23365         utimens: check for ctime update
23366         * tests/test-utimens-common.h (check_ctime): Define.
23367         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23368         * tests/test-futimens.h (test_futimens): Likewise.
23369         * tests/test-lutimens.h (test_lutimens): Likewise.
23370         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23371         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23372
23373 2009-12-19  Bruno Haible  <bruno@clisp.org>
23374
23375         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23376         * tests/test-dprintf-posix2.sh: New file.
23377         * tests/test-dprintf-posix2.c: New file.
23378         * modules/dprintf-posix-tests (Files): Add them.
23379         (configure.ac): Check for getrlimit and setrlimit.
23380         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23381
23382 2009-12-19  Bruno Haible  <bruno@clisp.org>
23383
23384         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23385         * tests/test-fprintf-posix3.sh: New file.
23386         * tests/test-fprintf-posix3.c: New file.
23387         * modules/fprintf-posix-tests (Files): Add them.
23388         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23389
23390 2009-12-19  Eric Blake  <ebb9@byu.net>
23391
23392         dirfd: fix prototype
23393         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23394         * lib/dirfd.c (dirfd): Likewise.
23395
23396         canonicalize: reduce memory usage
23397         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23398         allocation to size.
23399         Reported by Solar Designer <solar@openwall.com>.
23400
23401 2009-12-19  Bruno Haible  <bruno@clisp.org>
23402
23403         New module attribute 'Applicability'.
23404         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23405         * gnulib-tool: New option --extract-applicability.
23406         (func_usage): Document it.
23407         (sed_extract_prog): Recognize it.
23408         (func_get_applicability): New function.
23409         (func_import): Generalize handling of 'link-warning' module.
23410         * modules/link-warning (Applicability): New section.
23411         * modules/arg-nonnull (Applicability): New section.
23412         Repoted by Simon Josefsson <simon@josefsson.org>.
23413
23414 2009-12-19  Bruno Haible  <bruno@clisp.org>
23415
23416         fflush: tweak
23417         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23418         * lib/fseeko.c (rpl_fseeko): Likewise.
23419
23420 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23421
23422         * lib/gl_list.h: Fix typo in comment.
23423
23424 2009-12-16  Eric Blake  <ebb9@byu.net>
23425
23426         fcntl: use to simplify other modules
23427         * modules/cloexec (Depends-on): Add fcntl.
23428         * modules/fchdir (Depends-on): Likewise.
23429         * modules/fd-safer-flag (Depends-on): Likewise.
23430         * modules/unistd-safer (Depends-on): Likewise.
23431         * modules/dup3 (configure.ac): Set module indicator.
23432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23433         missing.
23434         * lib/fchdir.c (_gl_register_dup): Fix comment.
23435         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23436         * lib/dup-safer.c (dup_safer): Likewise.
23437         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23438         * lib/dup3.c (dup3): Likewise.
23439         * tests/test-fchdir.c (main): Enhance test.
23440         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23441
23442         fcntl: port portions of fcntl to mingw
23443         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23444         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23445         replacement for mingw.
23446         * modules/fcntl (Description): Update.
23447         (Depends-on): Add dup2.
23448         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23449         * modules/fcntl-h (Makefile.am): Substitute it.
23450         * lib/fcntl.in.h (fcntl): Update declaration.
23451         (F_DUPFD, F_GETFD): New macros, when needed.
23452         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23453         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23454         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23455         we now guarantee.
23456
23457         fcntl: work around cygwin bug in F_DUPFD
23458         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23459         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23460         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23461         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23462         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23463
23464         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23465         * modules/fcntl (Files): List new files.
23466         (configure.ac): Run a test.
23467         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23468         * lib/fcntl.c (rpl_fcntl): Likewise.
23469         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23470         (gl_FCNTL_H): Always replace fcntl.h.
23471         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23472         * lib/fcntl.in.h (fcntl): Declare replacement.
23473         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23474         needed, plus a witness.
23475         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23476         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23477         * tests/test-fcntl.c: New file.
23478         * modules/fcntl-tests: Likewise.
23479
23480         binary-io: avoid potential compilation warning
23481         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23482         directives.
23483
23484         fflush: avoid compilation error on NetBSD
23485         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23486         between off_t and fpos_t, since the latter is sometimes a struct.
23487         * lib/fseeko.c (rpl_fseeko): Likewise.
23488         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23489
23490 2009-12-15  Eric Blake  <ebb9@byu.net>
23491
23492         fcntl-h, stdio, sys_ioctl: fix declarations
23493         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23494         function must not take arguments.
23495         * lib/sys_ioctl.in.h (ioctl): Likewise.
23496         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23497         (open): Add a link warning.
23498
23499 2009-12-15  Jim Meyering  <meyering@redhat.com>
23500
23501         areadlink, areadlink-with-size: relax license to LGPLv2+
23502         * modules/areadlink (License): Relax to LGPLv2+.
23503         * modules/areadlink-with-size (License): Likewise.
23504
23505 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23506             Bruno Haible  <bruno@clisp.org>
23507
23508         *printf: Fix memory leak.
23509         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23510         * lib/vfprintf.c (vfprintf): Likewise.
23511         * lib/dprintf.c (dprintf): Likewise.
23512         * lib/vdprintf.c (vdprintf): Likewise.
23513
23514 2009-12-14  Eric Blake  <ebb9@byu.net>
23515
23516         accept4: adjust module dependencies
23517         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23518
23519         utimens: one more try at avoiding compiler warning
23520         * lib/utimens.c (lutimens): Lower scope of result.
23521
23522 2009-12-13  Bruno Haible  <bruno@clisp.org>
23523
23524         Move the malloc checking from module 'list' to new module 'xlist'.
23525         * modules/xlist: New file.
23526         * lib/gl_xlist.h: New file.
23527         * lib/gl_xlist.c: New file.
23528         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23529         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23530         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23531         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23532         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23533         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23534         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23535         gl_sortedlist_nx_add): New declarations.
23536         (struct gl_list_implementation): Rename and change methods accordingly.
23537         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23538         (gl_list_nx_create): Renamed from gl_list_create.
23539         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23540         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23541         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23542         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23543         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23544         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23545         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23546         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23547         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23548         gl_list_create_empty.
23549         (gl_list_nx_create): Renamed from gl_list_create.
23550         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23551         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23552         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23553         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23554         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23555         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23556         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23557         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23558         * lib/gl_array_list.c: Don't include xalloc.h.
23559         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23560         NULL upon out-of-memory.
23561         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23562         out-of-memory.
23563         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23564         Change return type to 'int'.
23565         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23566         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23567         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23568         upon out-of-memory.
23569         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23570         upon out-of-memory.
23571         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23572         upon out-of-memory.
23573         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23574         upon out-of-memory.
23575         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23576         out-of-memory.
23577         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23578         Update.
23579         (gl_array_list_implementation): Update.
23580         * lib/gl_carray_list.c: Don't include xalloc.h.
23581         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23582         Return NULL upon out-of-memory.
23583         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23584         out-of-memory.
23585         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23586         Change return type to 'int'.
23587         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23588         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23589         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23590         upon out-of-memory.
23591         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23592         upon out-of-memory.
23593         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23594         out-of-memory.
23595         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23596         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23597         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23598         Update.
23599         (gl_carray_list_implementation): Update.
23600         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23601         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23602         gl_linked_create_empty. Return NULL upon out-of-memory.
23603         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23604         out-of-memory.
23605         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23606         Change return type to 'int'. Return -1 upon out-of-memory.
23607         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23608         out-of-memory.
23609         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23610         upon out-of-memory.
23611         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23612         upon out-of-memory.
23613         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23614         NULL upon out-of-memory.
23615         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23616         upon out-of-memory.
23617         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23618         out-of-memory.
23619         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23620         Update.
23621         * lib/gl_linked_list.c: Don't include xalloc.h.
23622         (gl_linked_list_implementation): Update.
23623         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23624         (add_to_bucket): Change return type to 'int'.
23625         (gl_linkedhash_list_implementation): Update.
23626         * lib/gl_anytree_list1.h (free_subtree): New function.
23627         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23628         gl_tree_create_empty. Return NULL upon out-of-memory.
23629         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23630         Change return type to 'int'. Return -1 upon out-of-memory.
23631         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23632         out-of-memory.
23633         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23634         (gl_tree_remove_node): New function, moved here from
23635         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23636         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23637         Update.
23638         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23639         malloc, not xmalloc. Return NULL upon out-of-memory.
23640         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23641         out-of-memory.
23642         (gl_tree_remove_node_from_tree): New function, extracted from
23643         gl_tree_remove_node.
23644         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23645         upon out-of-memory.
23646         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23647         out-of-memory.
23648         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23649         upon out-of-memory.
23650         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23651         upon out-of-memory.
23652         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23653         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23654         not xmalloc. Return NULL upon out-of-memory.
23655         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23656         out-of-memory.
23657         (gl_tree_remove_node_from_tree): New function, extracted from
23658         gl_tree_remove_node.
23659         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23660         upon out-of-memory.
23661         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23662         out-of-memory.
23663         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23664         upon out-of-memory.
23665         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23666         upon out-of-memory.
23667         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23668         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23669         gl_anytree_list1.h before gl_anyavltree_list2.h.
23670         (gl_avltree_list_implementation): Update.
23671         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23672         gl_anytree_list1.h before gl_anyavltree_list2.h.
23673         (gl_rbtree_list_implementation): Update.
23674         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23675         Change return type to 'int'. Return -1 upon out-of-memory. Use
23676         __builtin_expect.
23677         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23678         (gl_avltreehash_list_implementation): Update.
23679         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23680         (gl_rbtreehash_list_implementation): Update.
23681         * modules/array-list (Depends-on): Remove xalloc.
23682         * modules/carray-list (Depends-on): Likewise.
23683         * modules/linked-list (Depends-on): Likewise.
23684         * modules/linkedhash-list (Depends-on): Likewise.
23685         * modules/avltree-list (Depends-on): Likewise.
23686         * modules/rbtree-list (Depends-on): Likewise.
23687         * modules/avltreehash-list (Depends-on): Likewise.
23688         * modules/rbtreehash-list (Depends-on): Likewise.
23689
23690         * modules/xsublist: New file.
23691         * lib/gl_xsublist.h: New file.
23692         * lib/gl_xsublist.c: New file.
23693         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23694         (gl_sublist_nx_create): New declaration.
23695         * lib/gl_sublist.c: Don't include xalloc.h.
23696         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23697         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23698         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23699         Change return type to 'int'. Return -1 upon out-of-memory.
23700         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23701         upon out-of-memory.
23702         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23703         NULL upon out-of-memory.
23704         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23705         upon out-of-memory.
23706         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23707         NULL upon out-of-memory.
23708         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23709         NULL upon out-of-memory.
23710         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23711         upon out-of-memory.
23712         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23713         (gl_sublist_list_implementation): Update.
23714         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23715         upon out-of-memory.
23716         * modules/sublist (Depends-on): Remove xalloc.
23717
23718         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23719         * tests/test-carray_list.c: Likewise.
23720         * tests/test-linked_list.c: Likewise.
23721         * tests/test-linkedhash_list.c: Likewise.
23722         * tests/test-avltree_list.c: Likewise.
23723         * tests/test-rbtree_list.c: Likewise.
23724         * tests/test-avltreehash_list.c: Likewise.
23725         * tests/test-rbtreehash_list.c: Likewise.
23726         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23727         * modules/carray-list-tests (Makefile.am): Likewise.
23728         * modules/linked-list-tests (Makefile.am): Likewise.
23729         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23730         * modules/avltree-list-tests (Makefile.am): Likewise.
23731         * modules/rbtree-list-tests (Makefile.am): Likewise.
23732         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23733         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23734
23735         * NEWS: Mention the changes.
23736
23737         * lib/clean-temp.c: Include gl_xlist.h.
23738         * modules/clean-temp (Depends-on): Add xlist.
23739
23740         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23741         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23742
23743         * tests/test-array_oset.c: Include gl_xlist.h.
23744         * modules/array-oset-tests (Depends-on): Add xlist.
23745
23746         Reported by José E. Marchesi <jemarch@gnu.org>.
23747
23748 2009-12-13  Bruno Haible  <bruno@clisp.org>
23749
23750         Move the malloc checking from module 'oset' to new module 'xoset'.
23751         * modules/xoset: New file.
23752         * lib/gl_xoset.h: New file.
23753         * lib/gl_xoset.c: New file.
23754         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23755         declarations.
23756         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23757         (struct gl_oset_implementation): Rename and change methods accordingly.
23758         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23759         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23760         'int'. Mark as __warn_unused_result__.
23761         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23762         gl_oset_create_empty.
23763         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23764         'int'.
23765         * lib/gl_array_oset.c: Don't include xalloc.h.
23766         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23767         malloc, not xmalloc.
23768         (grow): Change return type to 'int'. Don't call xalloc_die.
23769         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23770         to 'int'.
23771         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23772         'int'.
23773         (gl_array_oset_implementation): Update.
23774         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23775         gl_tree_create_empty.
23776         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23777         'int'.
23778         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23779         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23780         xmalloc.
23781         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23782         not xmalloc.
23783         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23784         xmalloc.
23785         (gl_avltree_oset_implementation): Update.
23786         * lib/gl_rbtree_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_rbtree_oset_implementation): Update.
23794         * modules/array-oset (Depends-on): Remove xalloc.
23795         * modules/avltree-oset (Depends-on): Likewise.
23796         * modules/rbtree-oset (Depends-on): Likewise.
23797         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23798         * tests/test-avltree_oset.c: Likewise.
23799         * tests/test-rbtree_oset.c: Likewise.
23800         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23801         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23802         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23803         * NEWS: Mention the change.
23804
23805 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23806
23807         maint.mk: allow a project to override release-prep commands
23808         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23809         commands into a new rule.
23810         (release-prep): New rule.
23811         (release-prep-hook): New overridable variable.
23812
23813 2009-12-13  Bruno Haible  <bruno@clisp.org>
23814
23815         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23816
23817 2009-12-13  Jim Meyering  <meyering@redhat.com>
23818
23819         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23820         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23821
23822 2009-12-12  Bruno Haible  <bruno@clisp.org>
23823
23824         duplocale: Tweak.
23825         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23826
23827 2009-12-12  Karl Berry  <karl@gnu.org>
23828
23829         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23830
23831 2009-12-12  Bruno Haible  <bruno@clisp.org>
23832
23833         * m4/po.m4: Undo incorrect untabification.
23834
23835 2009-12-12  Bruno Haible  <bruno@clisp.org>
23836
23837         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23838         * modules/c-strtod (Depends-on): Add locale.
23839         * modules/c-strtold (Depends-on): Likewise.
23840
23841 2009-12-12  Bruno Haible  <bruno@clisp.org>
23842
23843         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23844
23845 2009-12-11  Eric Blake  <ebb9@byu.net>
23846
23847         setenv: relax requirement in light of POSIX ruling
23848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23849         not NULL.
23850         * tests/test-setenv.c (main): Relax test.
23851         * tests/test-unsetenv.c (main): Likewise.
23852         * doc/posix-functions/setenv.texi (setenv): Document this.
23853         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23854
23855 2009-12-11  Bruno Haible  <bruno@clisp.org>
23856
23857         New module 'fd-safer-flag'.
23858         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23859         * lib/dup-safer.c (dup_safer_flag): Remove function.
23860         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23861         * lib/fd-safer.c (fd_safer_flag): Remove function.
23862         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23863         * modules/cloexec (configure.ac): Drop indicator macro.
23864         * modules/fd-safer-flag: New file.
23865         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23866         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23867         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23868
23869 2009-12-11  Bruno Haible  <bruno@clisp.org>
23870
23871         Tests for module 'nl_langinfo'.
23872         * modules/nl_langinfo-tests: New file.
23873         * tests/test-nl_langinfo.sh: New file.
23874         * tests/test-nl_langinfo.c: New file.
23875
23876         New module 'nl_langinfo'.
23877         * lib/nl_langinfo.c: New file.
23878         * m4/nl_langinfo.m4: New file.
23879         * modules/nl_langinfo: New file.
23880         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23881
23882 2009-12-11  Bruno Haible  <bruno@clisp.org>
23883
23884         Tests for module 'langinfo'.
23885         * modules/langinfo-tests: New file.
23886         * tests/test-langinfo.c: New file.
23887
23888         New module 'langinfo'.
23889         * lib/langinfo.in.h: New file.
23890         * m4/langinfo_h.m4: New file.
23891         * modules/langinfo: New file.
23892         * doc/posix-headers/langinfo.texi: Mention the new module.
23893
23894 2009-12-11  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/config.charset: Untabify.
23897
23898 2009-12-11  Bruno Haible  <bruno@clisp.org>
23899
23900         * modules/unistd-safer (configure.ac): Drop indicator macro.
23901
23902 2009-12-11  Bruno Haible  <bruno@clisp.org>
23903
23904         Move pipe2-safer code to its own file.
23905         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23906         * lib/pipe-safer.c (pipe2_safer): Remove function.
23907         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23908         (Makefile.am): Add it to lib_SOURCES.
23909
23910 2009-12-10  Bruno Haible  <bruno@clisp.org>
23911
23912         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23913
23914 2009-12-10  Bruno Haible  <bruno@clisp.org>
23915
23916         Declare which arguments expect non-NULL values, for GCC and clang.
23917         * build-aux/arg-nonnull.h: New file.
23918         * modules/arg-nonnull: New file.
23919         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23920         (inet_ntop, inet_pton): Use it.
23921         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23922         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23923         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23924         (open, openat): Use it.
23925         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23926         (fnmatch): Use it.
23927         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23928         (getopt, getopt_long, getopt_long_only): Use it.
23929         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23930         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23931         Use it.
23932         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23933         (iconv_open): Use it.
23934         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23935         (strtoimax, strtoumax): Use it.
23936         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23937         (duplocale): Use it.
23938         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23939         (frexp, frexpl): Use it.
23940         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23941         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23942         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23943         (tsearch, tfind, tdelete, twalk): Use it.
23944         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23945         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23946         sigpending): Use it.
23947         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23948         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23949         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23950         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23951         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23952         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23953         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23954         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23955         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23956         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23957         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23958         Use it.
23959         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23960         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23961         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23962         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23963         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23964         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23965         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23966         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23967         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23968         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23969         strtoull, unsetenv): Use it.
23970         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23971         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23972         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23973         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23974         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23975         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23976         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23977         (strcasecmp, strncasecmp): Use it.
23978         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23979         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23980         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23981         rpl_setsockopt): Use it.
23982         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23983         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23984         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23985         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23986         (gettimeofday): Use it.
23987         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23988         (times): Use it.
23989         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23990         (uname): Use it.
23991         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23992         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23993         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23994         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23995         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23996         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23997         unlinkat, write): Use it.
23998         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23999         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24000         * lib/argv-iter.h: Include arg-nonnull.h.
24001         (_ATTRIBUTE_NONNULL_): Remove macro.
24002         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24003         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24004         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24005         optimization.
24006         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24007         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24008         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24009         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24010         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24011         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24012         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24013         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24014         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24015         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24016         * modules/dirent (Depends-on): Add arg-nonnull.
24017         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24018         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24019         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24020         * modules/fnmatch (Depends-on): Add arg-nonnull.
24021         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24022         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24023         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24024         * modules/glob (Depends-on): Add arg-nonnull.
24025         (Makefile.am): Insert arg-nonnull.h into glob.h.
24026         * modules/iconv_open (Depends-on): Add arg-nonnull.
24027         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24028         * modules/inttypes (Depends-on): Add arg-nonnull.
24029         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24030         * modules/locale (Depends-on): Add arg-nonnull.
24031         (Makefile.am): Insert arg-nonnull.h into locale.h.
24032         * modules/math (Depends-on): Add arg-nonnull.
24033         (Makefile.am): Insert arg-nonnull.h into math.h.
24034         * modules/netdb (Depends-on): Add arg-nonnull.
24035         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24036         * modules/search (Depends-on): Add arg-nonnull.
24037         (Makefile.am): Insert arg-nonnull.h into search.h.
24038         * modules/signal (Depends-on): Add arg-nonnull.
24039         (Makefile.am): Insert arg-nonnull.h into signal.h.
24040         * modules/spawn (Depends-on): Add arg-nonnull.
24041         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24042         * modules/stdio (Depends-on): Add arg-nonnull.
24043         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24044         * modules/stdlib (Depends-on): Add arg-nonnull.
24045         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24046         * modules/string (Depends-on): Add arg-nonnull.
24047         (Makefile.am): Insert arg-nonnull.h into string.h.
24048         * modules/strings (Depends-on): Add arg-nonnull.
24049         (Makefile.am): Insert arg-nonnull.h into strings.h.
24050         * modules/sys_socket (Depends-on): Add arg-nonnull.
24051         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24052         * modules/sys_stat (Depends-on): Add arg-nonnull.
24053         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24054         * modules/sys_time (Depends-on): Add arg-nonnull.
24055         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24056         * modules/sys_times (Depends-on): Add arg-nonnull.
24057         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24058         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24059         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24060         * modules/time (Depends-on): Add arg-nonnull.
24061         (Makefile.am): Insert arg-nonnull.h into time.h.
24062         * modules/unistd (Depends-on): Add arg-nonnull.
24063         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24064         * modules/wchar (Depends-on): Add arg-nonnull.
24065         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24066         * modules/argv-iter (Depends-on): Add arg-nonnull.
24067         * tests/test-canonicalize.c (null_ptr): New function.
24068         (main): Use it.
24069         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24070         (main): Use it.
24071         * tests/test-memmem.c (null_ptr): New function.
24072         (main): Use it.
24073         Reported by Jim Meyering.
24074
24075 2009-12-10  Bruno Haible  <bruno@clisp.org>
24076
24077         Use spaces for indentation, not tabs.
24078         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24079         * m4/*.m4: Untabify.
24080         * build-aux/*.h: Untabify.
24081         * tests/**/*.[hc]: Untabify.
24082         * README: New section "Indent with spaces, not TABs", based on
24083         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24084         * NEWS: Mention the change.
24085
24086 2009-12-10  Bruno Haible  <bruno@clisp.org>
24087
24088         pty test: Fix link error.
24089         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24090         test_pty_LDADD.
24091
24092 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24093
24094         * modules/pty: New file.
24095         * modules/pty-tests: New file.
24096         * m4/pty.m4: New file.
24097         * tests/test-pty.c: New file.
24098         * doc/glibc-headers/pty.texi: Modified.
24099         * doc/glibc-functions/forkpty.texi: Modified.
24100         * doc/glibc-functions/openpty.texi: Modified.
24101
24102 2009-12-10  Bruno Haible  <bruno@clisp.org>
24103
24104         Avoid syntax error in C++ mode.
24105         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24106
24107 2009-12-10  Bruno Haible  <bruno@clisp.org>
24108
24109         Use sed with option -e.
24110         * gnulib-tool (func_version, func_emit_copyright_notice,
24111         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24112         option -e to sed.
24113         * modules/link-warning (Makefile.am): Likewise.
24114
24115 2009-12-10  Jim Meyering  <meyering@redhat.com>
24116
24117         mgetgroups: do not write bytes beyond end of malloc'd buffer
24118         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24119         username, we call getgroups with a one-element-shorter buffer,
24120         but still told it the length was original, max_n_groups.
24121
24122 2009-12-09  Eric Blake  <ebb9@byu.net>
24123
24124         cloexec: relax license
24125         * modules/cloexec (Maintainer): Add myself.
24126         (License): Use LGPL, not GPL.
24127
24128         link-warning: optimize generation
24129         * modules/link-warning (Makefile.am): Reduce process usage.
24130
24131 2009-12-09  Bruno Haible  <bruno@clisp.org>
24132
24133         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24134         workaround was added on 2009-11-17.
24135
24136 2009-12-09  Jim Meyering  <meyering@redhat.com>
24137             Bruno Haible  <bruno@clisp.org>
24138
24139         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24140         * modules/link-warning (Makefile.am): Make the comment-removing sed
24141         command more robust in the face of bootstrap-prepended comment lines.
24142
24143 2009-12-09  Bruno Haible  <bruno@clisp.org>
24144
24145         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24146         most one group.
24147
24148 2009-12-09  Simon Josefsson <simon@josefsson.org>
24149             Bruno Haible  <bruno@clisp.org>
24150
24151         * build-aux/link-warning.h: Add copyright notice.
24152         * modules/link-warning (Makefile.am): Generate link-warning.h from
24153         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24154         * NEWS: Mention change in link-warning module.
24155         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24156         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24157         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24158         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24159         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24160         * modules/math (Makefile.am): Add dependency to math.h.
24161         * modules/search (Makefile.am): Add dependency to search.h.
24162         * modules/signal (Makefile.am): Add dependency to signal.h.
24163         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24164         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24165         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24166         * modules/string (Makefile.am): Add dependency to string.h.
24167         * modules/strings (Makefile.am): Add dependency to strings.h.
24168         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24169         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24170         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24171         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24172         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24173         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24174         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24175         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24176         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24177
24178 2009-12-09  Bruno Haible  <bruno@clisp.org>
24179
24180         fchdir: Optimize away rpl_fstat when possible.
24181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24182         REPLACE_OPEN_DIRECTORY.
24183         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24184
24185 2009-12-09  Bruno Haible  <bruno@clisp.org>
24186
24187         * lib/fchdir.c: Update comment.
24188
24189 2009-12-09  Bruno Haible  <bruno@clisp.org>
24190
24191         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24192
24193 2009-12-08  Eric Blake  <ebb9@byu.net>
24194
24195         fchdir: avoid memory leak on re-registration.
24196         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24197
24198 2009-12-08  Jim Meyering  <meyering@redhat.com>
24199
24200         init.sh: avoid Solaris 10 /bin/sh portability problem
24201         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24202         sourced script:
24203           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24204           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24205           bar
24206         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24207         and two tests used that idiom.
24208         * tests/init.sh: Update suggested usage comments.
24209         (path_prepend_): New function, to be used in place
24210         of the --src-path=DIR option.
24211         (setup_): Move PATH-prepending code into path_prepend_.
24212         * tests/test-pread.sh: Adapt to new usage.
24213         * tests/test-xalloc-die.sh: Likewise.
24214
24215 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24216
24217         * doc/gnulib.texi (Glibc pty.h): Add.
24218         * doc/glibc-functions/forkpty.texi: Add.
24219         * doc/glibc-functions/openpty.texi: Add.
24220         Suggested by Bruno Haible.
24221
24222 2009-12-08  Eric Blake  <ebb9@byu.net>
24223
24224         fchdir: fix logic bugs
24225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24226         * tests/test-fchdir.c (main): Enhance test.
24227         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24228         is in use.
24229
24230         dup2: fix logic bugs
24231         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24232         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24233         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24234         exists.
24235         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24236
24237 2009-12-07  Eric Blake  <ebb9@byu.net>
24238
24239         unlink: fix m4 detection
24240         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24241
24242         unistd-safer: add unit test
24243         * modules/unistd-safer-tests: New file.
24244         * tests/test-dup-safer.c: Likewise.
24245         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24246         * tests/test-dup2.c (setmode): Likewise.
24247         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24248
24249         cloexec: preserve text vs. binary across dup_cloexec
24250         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24251         mode.
24252         * modules/dup2-tests (Depends-on): Add binary-io.
24253         * modules/cloexec-tests (Depends-on): Likewise.
24254         * tests/test-dup2.c (setmode, is_mode): New helpers.
24255         (main): Add tests that translation mode is preserved.
24256         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24257         Reported by Bruno Haible.
24258
24259         mgetgroups: reduce duplicate listings
24260         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24261         resulting array.
24262         * tests/test-chown.h (test_chown): Simplify client.
24263         * tests/test-lchown.h (test_lchown): Likewise.
24264
24265 2009-12-06  Bruno Haible  <bruno@clisp.org>
24266
24267         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24268         value.
24269
24270 2009-12-06  Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/progname.c: Include stdio.h, stdlib.h.
24273         (set_program_name): Reject a NULL argument.
24274
24275 2009-12-05  Eric Blake  <ebb9@byu.net>
24276
24277         pipe2-safer: new module
24278         * modules/pipe2-safer: New file.
24279         * lib/unistd-safer.h (pipe2_safer): New prototype.
24280         * lib/unistd--.h (pipe2): New wrapper.
24281         * lib/pipe-safer.c (pipe2_safer): New function.
24282         * modules/pipe (Depends-on): Add pipe2-safer.
24283         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24284
24285         stdlib-safer: preserve cloexec flag for mkostemp[s]
24286         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24287         fd_safer_flag.
24288
24289         unistd-safer: allow preservation of cloexec status via flag
24290         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24291         prototypes.
24292         * lib/dup-safer.c (dup_safer_flag): New function.
24293         * lib/fd-safer.c (fd_safer_flag): Likewise.
24294         * modules/cloexec (configure.ac): Set witness.
24295
24296         test-dup2: enhance test
24297         * modules/dup2-tests (Depends-on): Add cloexec.
24298         * tests/test-dup2.c (main): Enhance test.
24299
24300         cloexec: add dup_cloexec
24301         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24302         header and comments.
24303         * lib/cloexec.c (set_cloexec_flag): Add comments.
24304         (dup_cloexec): New function, with mingw implementation borrowed
24305         from...
24306         * lib/w32spawn.h (dup_noinherit): ...here.
24307         * modules/execute (Depends-on): Add cloexec.
24308         * modules/pipe (Depends-on): Likewise.
24309         * modules/cloexec (Depends-on): Add dup2.
24310         * modules/cloexec-tests (Files): New file.
24311         * tests/test-cloexec.c: Likewise.
24312
24313         test-xalloc-die: fix test for mingw
24314         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24315         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24316         directory and .exe suffix off argv[0] output.
24317
24318         test-fseeko: fix test for mingw
24319         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24320         than undefining fseek, so test will pass on mingw.
24321
24322 2009-12-05  Bruno Haible  <bruno@clisp.org>
24323
24324         * lib/progname.h (set_program_name): Clarify specification.
24325         * lib/progname.c (set_program_name): Likewise.
24326         Reported by Jim Meyering.
24327
24328 2009-12-05  Jim Meyering  <meyering@redhat.com>
24329
24330         maint.mk: backslash-escape parens in default regexp
24331         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24332         backslash-escape the literal parentheses.
24333
24334         maint.mk: news-date-check: use grep -E
24335         * top/maint.mk (today): Define a Make variable, not a...
24336         (news-date-check): ...shell variable.
24337         (news-date-regexp): Use the Make variable.
24338         Use grep's -E option.  Change the failing diagnostic to mention
24339         the variable, $(news-date-regexp).
24340
24341 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24342
24343         maintainer-makefile: allow customization of NEWS entry format
24344         * top/maint.mk (news-date-regexp): New overridable variable.
24345         (news-date-check): Use it.
24346
24347 2009-12-04  Eric Blake  <ebb9@byu.net>
24348
24349         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24350         * lib/mgetgroups.h (xgetgroups): New prototype.
24351         * lib/mgetgroups.c (xgetgroups): New wrapper.
24352         (mgetgroups): Handle ENOSYS.
24353         * modules/mgetgroups (Depends-on): Add realloc.
24354         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24355
24356         mgetgroups: avoid argument promotion issues with -1
24357         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24358         for invalid gid_t.
24359         * tests/test-chown.h (getegid, test_chown): Likewise.
24360         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24361
24362 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24363
24364         exclude: Fix header file problems.
24365         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24366
24367 2009-12-01  Jim Meyering  <meyering@redhat.com>
24368
24369         fts: fts_open: do not let an empty string cause immediate failure
24370         This is required in support of GNU rm, for which the command
24371         "rm A '' B" must process and remove both A and B, in spite of
24372         the empty string argument.
24373         * lib/fts.c (fts_open): Do not let the presence of an empty string
24374         cause fts_open to fail immediately.  Most fts-using tools must be
24375         able to process all arguments, in order, and can be expected to
24376         diagnose such arguments themselves.
24377
24378 2009-11-30  Eric Blake  <ebb9@byu.net>
24379
24380         utimens: fix compilation error
24381         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24382         Declare variable at right scope.
24383
24384 2009-11-29  Jim Meyering  <meyering@redhat.com>
24385
24386         bootstrap: handle perl-5.11's changed --version output
24387         * build-aux/bootstrap (get_version): Handle perl separately,
24388         since perl-5.11's --version output is different.
24389
24390 2009-11-28  Jim Meyering  <meyering@redhat.com>
24391
24392         userspec: depend on the inttostr module, too
24393         * modules/userspec (Depends-on): Add inttostr.
24394
24395         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24396         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24397         number of MAXUID when it evaluates to (uid_t) -1.
24398         Likewise for group ID.  Reported by Matt McCutchen in
24399         <http://savannah.gnu.org/bugs/?28113>
24400
24401         userspec: reformat to use spaces, not TABs
24402         * lib/userspec.c: Expand TABs to spaces.
24403         Add Emacs' "indent-tabs-mode: nil" hint.
24404
24405 2009-11-27  Eric Blake  <ebb9@byu.net>
24406
24407         getopt-gnu: flush out another BSD bug
24408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24409         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24410         flush out BSD bug.
24411         * tests/test-getopt.h (test_getopt): End lists with NULL.
24412         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24413         (test_getopt_long_posix): Enhance test.
24414         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24415         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24416         getopt-gnu.
24417         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24418         Likewise.
24419
24420 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24421
24422         * modules/idpriv-droptemp-tests (Notice): Fix text.
24423
24424 2009-11-27  Jim Meyering  <meyering@redhat.com>
24425
24426         test-xalloc-die: avoid spurious failure due to libtool argv difference
24427         In a libtool-enabled project, this test would fail due to a difference
24428         in the emitted program name, e.g.,
24429         -test-xalloc-die: memory exhausted
24430         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24431         Use program to avoid that.
24432         * modules/xalloc-die-tests (Depends-on): Add progname.
24433         * tests/test-xalloc-die.c: Include progname.h".
24434         (program_name): Remove decl.
24435         (main): Call set_program_name.
24436         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24437
24438 2009-11-26  Richard Jones  <rjones@redhat.com>
24439
24440         w32sock: leave win32 error in place.
24441         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24442
24443 2009-11-26  Eric Blake  <ebb9@byu.net>
24444
24445         init.sh: suggest to use skip_ and fail_ functions in comments
24446         * tests/init.sh: Add a sentence.
24447
24448 2009-11-25  Bruno Haible  <bruno@clisp.org>
24449
24450         init.sh: add documentation in comments
24451         * tests/init.sh: Add some developer and user documentation.
24452
24453 2009-11-26  Jim Meyering  <meyering@redhat.com>
24454
24455         init.sh: accommodate even those who specify bogus srcdir manually
24456         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24457         configure-time tests to be sanitized, so that there is no need to
24458         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24459         (with no double quotes) suffices.  However, since tests may be
24460         invoked manually, and since you may explicitly set srcdir to the
24461         name of a directory containing spaces, do quote its uses here.
24462         * tests/test-pread.sh: Likewise.
24463         Suggested by Bruno Haible.
24464
24465         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24466         * tests/test-pread.sh: Write no data into the pipe, because
24467         test-pread actually reads none.  This avoids a diagnostic,
24468         "bash: echo: write error: Broken pipe", that arises in the unusual
24469         event something is ignoring SIGPIPE, and might be interpreted
24470         as some sort of failure.  Reported by Bruno Haible.
24471
24472 2009-11-25  Jim Meyering  <meyering@redhat.com>
24473
24474         test-pread: cover failure with ESPIPE and EINVAL
24475         * tests/test-pread.c (main): Test for failure, too.
24476         * tests/test-pread.sh: Invoke with stdin on a pipe.
24477         Suggested by Eric Blake.
24478
24479         pread: improvement and fix
24480         * modules/pread (Depends-on): Depend on lseek, for portability to
24481         e.g., mingw.  Suggested by Eric Blake.
24482         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24483
24484         unistd.in.h: correct declaration of pread
24485         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24486         Reported by Richard W.M. Jones.
24487
24488         test-pread.sh: distribute the test script
24489         * modules/pread-tests (Files): Include test-pread.sh.
24490
24491         test-pread.sh: clean up
24492         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24493         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24494         That is unnecessary, since it's always ".".
24495         Suggestion from Eric Blake.
24496
24497         test-pread.sh: make executable
24498         * tests/test-pread.sh: Set executable bit.
24499         Reported by Eric Blake.
24500
24501         correct typo in test-pread.sh
24502         * tests/test-pread.sh: Add #! line.
24503
24504         test pread
24505         * tests/test-pread.c: New file.
24506         * tests/test-pread.sh: Likewise.
24507         * modules/pread-tests: Likewise.
24508
24509         pread: new module
24510         * modules/pread: New file.
24511         * lib/unistd.in.h (pread): Define/declare.
24512         * lib/pread.c (pread): New file.
24513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24514         * modules/unistd (Makefile.am): Substitute witnesses.
24515         * doc/posix-functions/pread.texi (pread): Update.
24516         * MODULES.html.sh: Add pread.
24517
24518 2009-11-25  Jim Meyering  <meyering@redhat.com>
24519
24520         tests/init.sh: new file to be used via most *.sh tests
24521         * tests/init.sh: New file.
24522
24523 2009-11-25  Eric Blake  <ebb9@byu.net>
24524
24525         utimens: work around older Linux failure with symlinks
24526         * lib/utimens.c (lutimensat_works_really): New variable.
24527         (fdutimens, lutimens): Use it to manage kernels that support
24528         nanosecond times on files, but not on symlinks.
24529         Reported by OndÅ™ej Vašík.
24530
24531         utimes: fix configure grammar
24532         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24533
24534 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24535
24536         regex: Fix fastmap for multibyte character ranges.
24537         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24538         characters when a multibyte character range is included.
24539
24540 2009-11-22  Andy Wingo  <wingo@pobox.com>
24541
24542         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24543         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24544
24545 2009-11-24  Bruno Haible  <bruno@clisp.org>
24546
24547         doc: Most *_l functions exist in MacOS X 10.5.
24548         * doc/posix-functions/duplocale.texi: Update platforms list.
24549         * doc/posix-functions/freelocale.texi: Likewise.
24550         * doc/posix-functions/newlocale.texi: Likewise.
24551         * doc/posix-functions/uselocale.texi: Likewise.
24552         * doc/posix-functions/isalnum_l.texi: Likewise.
24553         * doc/posix-functions/isalpha_l.texi: Likewise.
24554         * doc/posix-functions/isblank_l.texi: Likewise.
24555         * doc/posix-functions/iscntrl_l.texi: Likewise.
24556         * doc/posix-functions/isdigit_l.texi: Likewise.
24557         * doc/posix-functions/isgraph_l.texi: Likewise.
24558         * doc/posix-functions/islower_l.texi: Likewise.
24559         * doc/posix-functions/isprint_l.texi: Likewise.
24560         * doc/posix-functions/ispunct_l.texi: Likewise.
24561         * doc/posix-functions/isspace_l.texi: Likewise.
24562         * doc/posix-functions/isupper_l.texi: Likewise.
24563         * doc/posix-functions/iswalnum_l.texi: Likewise.
24564         * doc/posix-functions/iswalpha_l.texi: Likewise.
24565         * doc/posix-functions/iswblank_l.texi: Likewise.
24566         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24567         * doc/posix-functions/iswctype_l.texi: Likewise.
24568         * doc/posix-functions/iswdigit_l.texi: Likewise.
24569         * doc/posix-functions/iswgraph_l.texi: Likewise.
24570         * doc/posix-functions/iswlower_l.texi: Likewise.
24571         * doc/posix-functions/iswprint_l.texi: Likewise.
24572         * doc/posix-functions/iswpunct_l.texi: Likewise.
24573         * doc/posix-functions/iswspace_l.texi: Likewise.
24574         * doc/posix-functions/iswupper_l.texi: Likewise.
24575         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24576         * doc/posix-functions/isxdigit_l.texi: Likewise.
24577         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24578         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24579         * doc/posix-functions/strcoll_l.texi: Likewise.
24580         * doc/posix-functions/strfmon_l.texi: Likewise.
24581         * doc/posix-functions/strftime_l.texi: Likewise.
24582         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24583         * doc/posix-functions/strxfrm_l.texi: Likewise.
24584         * doc/posix-functions/tolower_l.texi: Likewise.
24585         * doc/posix-functions/toupper_l.texi: Likewise.
24586         * doc/posix-functions/towctrans_l.texi: Likewise.
24587         * doc/posix-functions/towlower_l.texi: Likewise.
24588         * doc/posix-functions/towupper_l.texi: Likewise.
24589         * doc/posix-functions/wcscoll_l.texi: Likewise.
24590         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24591         * doc/posix-functions/wctrans_l.texi: Likewise.
24592         * doc/posix-functions/wctype_l.texi: Likewise.
24593         * doc/glibc-functions/strptime_l.texi: Likewise.
24594         * doc/glibc-functions/strtod_l.texi: Likewise.
24595         * doc/glibc-functions/strtof_l.texi: Likewise.
24596         * doc/glibc-functions/strtol_l.texi: Likewise.
24597         * doc/glibc-functions/strtold_l.texi: Likewise.
24598         * doc/glibc-functions/strtoll_l.texi: Likewise.
24599         * doc/glibc-functions/strtoul_l.texi: Likewise.
24600         * doc/glibc-functions/strtoull_l.texi: Likewise.
24601         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24602         * doc/glibc-functions/wcstod_l.texi: Likewise.
24603         * doc/glibc-functions/wcstof_l.texi: Likewise.
24604         * doc/glibc-functions/wcstol_l.texi: Likewise.
24605         * doc/glibc-functions/wcstold_l.texi: Likewise.
24606         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24607         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24608         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24609
24610 2009-11-24  Bruno Haible  <bruno@clisp.org>
24611
24612         duplocale: Fix logic bug.
24613         * lib/duplocale.c: Don't include <langinfo.h>.
24614         (_NL_LOCALE_NAME): Remove macro.
24615         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24616         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24617
24618 2009-11-23  Jim Meyering  <meyering@redhat.com>
24619
24620         test-update-copyright: don't hard-code /usr/bin/perl
24621         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24622         perl to print the current year.  Gilles Espinasse reported that
24623         the replaced use of perl was hard-coded as /usr/bin/perl.
24624
24625 2009-11-23  Bruno Haible  <bruno@clisp.org>
24626
24627         duplocale: Add support for glibc 2.3.x.
24628         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24629
24630 2009-11-22  Bruno Haible  <bruno@clisp.org>
24631
24632         vasnprintf: Tiny optimization.
24633         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24634         MacOS X.
24635
24636 2009-11-22  Bruno Haible  <bruno@clisp.org>
24637
24638         Tests for module 'duplocale'.
24639         * modules/duplocale-tests: New file.
24640         * tests/test-duplocale.c: New file.
24641
24642         New module 'duplocale'.
24643         * m4/duplocale.m4: New file.
24644         * lib/locale.in.h (duplocale): New declaration.
24645         * lib/duplocale.c: New file.
24646         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24647         gl_LOCALE_H_DEFAULTS): New macros.
24648         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24649         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24650         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24651         REPLACE_DUPLOCALE.
24652         * modules/duplocale: New file.
24653         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24654
24655 2009-11-22  Bruno Haible  <bruno@clisp.org>
24656
24657         * modules/locale-tests (configure.ac): Test for newlocale function.
24658         * tests/test-locale.c: When the system has extended locale functions,
24659         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24660
24661         locale: Make locale_t available when possible.
24662         * lib/locale.in.h: Include <xlocale.h> when it exists.
24663         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24664         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24665         * modules/locale (Depends-on): Add extensions.
24666         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24667         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24668
24669 2009-11-22  Bruno Haible  <bruno@clisp.org>
24670
24671         Add comments.
24672         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24673         invocation.
24674         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24675         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24676         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24677
24678 2009-11-22  Bruno Haible  <bruno@clisp.org>
24679
24680         error: account for the possibility of freopen (stdout).
24681         * lib/error.c: Include <unistd.h>.
24682         (flush_stdout): New function, extracted from error and error_at_line.
24683         Determine stdout's fd dynamically.
24684         (error, error_at_line): Invoke flush_stdout.
24685         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24686         * modules/error (Depends-on): Add unistd.
24687
24688 2009-11-22  Bruno Haible  <bruno@clisp.org>
24689
24690         diffseq: Add comment.
24691         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24692
24693 2009-11-22  Jim Meyering  <meyering@redhat.com>
24694
24695         c-stack: avoid defining an unused static function
24696         * lib/c-stack.c (find_stack_direction): Do not define this function
24697         when it will not be used.
24698
24699         diffseq: avoid spurious gcc warnings
24700         * lib/diffseq.h (IF_LINT2): Define.
24701         (compareseq): Use it to initialize two members of "part".
24702         This avoids two used-uninitialized warnings.
24703
24704 2009-11-21  Jim Meyering  <meyering@redhat.com>
24705
24706         c-stack: avoid "ignoring return value of `write'" warning
24707         * lib/c-stack.c: Include "ignore-value.h".
24708         (die): Explicitly ignore each write return value.
24709         * modules/c-stack (Depends-on): Add ignore-value.
24710
24711 2009-11-21  Bruno Haible  <bruno@clisp.org>
24712
24713         diffseq: reduce scope of variable 'best'.
24714         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24715         variable, earlier used for two different purposes.
24716
24717 2009-11-21  Jim Meyering  <meyering@redhat.com>
24718
24719         diffseq: remove useless assignment to "best"
24720         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24721         assignment.  At that point "best" is already guaranteed to be zero.
24722
24723 2009-11-20  Eric Blake  <ebb9@byu.net>
24724
24725         build: mention ftp redirector in release announcements
24726         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24727         values that used to come from cfg.mk; mention FTP redirect URL.
24728         * build-aux/announce-gen: Mention the mirror list.
24729         Suggested by Karl Berry.
24730
24731         nanosleep: improve port to mingw
24732         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24734         LIB_NANOSLEEP, but only when needed.
24735         * modules/select (Link): Document LIBSOCKET.
24736         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24737         enough.
24738
24739         nanosleep: work around cygwin bug
24740         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24741         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24742         bug.
24743         (getnow): Delete, not needed.
24744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24745         LIB_CLOCK_GETTIME.
24746         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24747         clock-time, gettime.
24748         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24749         bug.
24750         * modules/nanosleep-tests: New test.
24751         * tests/test-nanosleep.c: New file.
24752
24753         sleep: work around cygwin bug
24754         * lib/sleep.c (rpl_sleep): Work around the bug.
24755         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24756         (gl_PREREQ_SLEEP): Delete unused macro.
24757         * modules/sleep (Depends-on): Add verify.
24758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24759         * modules/unistd (Makefile.am): Substitute witness.
24760         * lib/unistd.in.h (sleep): Update prototype.
24761         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24762         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24763         * modules/sleep-tests (Depends-on): Check for alarm.
24764
24765 2009-11-20  Jim Meyering  <meyering@redhat.com>
24766
24767         maint.mk: improve sc_prohibit_magic_number_exit
24768         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24769         so it does not match uses like System.exit(1).
24770         Add comments showing how to correct all offenders.
24771
24772 2009-11-19  Eric Blake  <ebb9@byu.net>
24773
24774         xalloc-die-tests: add missing library
24775         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24776
24777         test-xvasprintf: silence compiler warnings
24778         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24779         empty string from gcc.
24780
24781 2009-11-19  Jim Meyering  <meyering@redhat.com>
24782
24783         xfreopen: new module, from coreutils
24784         * modules/xfreopen: New module.
24785         * lib/xfreopen.c: New file.
24786         * lib/xfreopen.h: New file.
24787         * MODULES.html.sh (File stream based Input/Output"): Add it.
24788
24789 2009-11-19  Eric Blake  <ebb9@byu.net>
24790
24791         manywarnings: depend on warnings
24792         * modules/manywarnings (Depends-on): Add warnings.
24793
24794         build: avoid compiler warnings
24795         * lib/select.c (rpl_select): Delete unused variable.
24796         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24797
24798 2009-11-18  Eric Blake  <ebb9@byu.net>
24799
24800         tests: avoid false negative with --with-packager
24801         * tests/test-version-etc.sh: Discard packager information.
24802         * tests/test-argp-version-etc-1.sh: Likewise.
24803         Reported by Mike Frysinger.
24804
24805         utimens: fix regression on Solaris
24806         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24807         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24808         can only change fd timestamps via futimesat.  Instead, use an
24809         additional witness macro to avoid BSD bug.
24810         Reported by Jim Meyering.
24811
24812 2009-11-17  Eric Blake  <ebb9@byu.net>
24813
24814         usleep: use it to simplify tests
24815         * modules/stat-time-tests (Depends-on): Add usleep.
24816         (configure.ac): Drop usleep check.
24817         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24818         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24819         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24820         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24821         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24822         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24823         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24824         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24825         Likewise.
24826         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24827         * tests/test-lchown.h (nap): Likewise.
24828         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24829         * tests/test-stat-time.c (nap): Likewise.
24830         * tests/test-utimens-common.h (nap): Update comments.
24831
24832         usleep: new module
24833         * modules/usleep: New file.
24834         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24835         * lib/usleep.c (usleep): Likewise.
24836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24837         * modules/unistd (Makefile.am): Substitute witnesses.
24838         * lib/unistd.in.h (usleep): Add declaration.
24839         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24840         * MODULES.html.sh (Date and time): Likewise.
24841         * modules/usleep-tests (Depends-on): New test.
24842         * tests/test-usleep.c: New file.
24843
24844         chown: work around OpenBSD bug
24845         * lib/chown.c (rpl_chown): Work around the bug.
24846         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24847         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24848         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24849         * modules/chown (Depends-on): Add stdbool.
24850         * modules/lchown (Depends-on): Likewise.
24851         * doc/posix-functions/chown.texi (chown): Document the bug.
24852         * doc/posix-functions/lchown.texi (lchown): Likewise.
24853         * tests/test-lchown.h (test_chown): Relax test.
24854
24855         mkstemp: avoid conflict with C++ keyword template
24856         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24857         * lib/mkostemp.c (mkostemp): Likewise.
24858         * lib/mkostemps.c (mkostemps): Likewise.
24859         * lib/mkstemp.c (mkstemp): Likewise.
24860         * lib/mkstemps.c (mkstemps): Likewise.
24861
24862         xalloc-die-tests: optimize
24863         * tests/test-xalloc-die.sh: Reduce number of processes.
24864
24865 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24866
24867         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24868         patch from ludo@gnu.org (Ludovic Courtès).
24869
24870 2009-11-17  Jim Meyering  <meyering@redhat.com>
24871
24872         version-etc: use proper license string
24873         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24874         * modules/version-etc-fsf: Likewise.
24875
24876 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24877
24878         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24879         printed to stdout.  Deal with EOL differences.
24880
24881 2009-11-17  Eric Blake  <ebb9@byu.net>
24882
24883         unsetenv: work around Solaris bug
24884         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24885         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24886         Reported by Jim Meyering.
24887
24888         vasnprintf: avoid compiler warnings
24889         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24890         variables.
24891         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24892
24893 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24894
24895         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24896         settings since xalloc-die is no longer the self test,
24897         xalloc-die.sh is.
24898
24899 2009-11-17  Jim Meyering  <meyering@redhat.com>
24900
24901         test-xalloc-die.sh: make the code agree with the commit log
24902         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24903         at the end, just in case you happen to have a test-xalloc-die
24904         program in some other PATH directory.
24905
24906         test-xalloc-die.sh: fix a portability bug
24907         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24908         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24909         Otherwise, argv[0] (as often seen in diagnostics) would be too
24910         system-dependent, sometimes with, and sometimes without the leading "./".
24911
24912         version-etc-fsf: relax license to LGPLv3+
24913         * modules/version-etc-fsf (License): Relax license.
24914
24915 2009-11-16  Eric Blake  <ebb9@byu.net>
24916
24917         xalloc-die-tests: avoid printing null pointer
24918         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24919         shell script.
24920         * tests/test-xalloc-die.c (program_name): Declare.
24921         * tests/test-xalloc-die.sh (tmpfiles): New file.
24922
24923         setenv, unsetenv: work around various bugs
24924         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24925         (setenv) [HAVE_SETENV]: Work around bugs.
24926         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24927         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24928         for bugs.
24929         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24930         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24932         * modules/stdlib (Makefile.am): Update substitutions.
24933         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24934         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24935         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24936         * modules/setenv-tests: New test.
24937         * modules/unsetenv-tests: Likewise.
24938         * tests/test-setenv.c: New file.
24939         * tests/test-unsetenv.c: Likewise.
24940
24941 2009-11-16  Jim Meyering  <meyering@redhat.com>
24942
24943         version-etc: relax license to LGPLv3+
24944         * modules/version-etc (License): Relax license.
24945
24946         better AC_REQUIRE expanded-before-required-warning avoidance
24947         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24948         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24949         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24950         which is no longer needed.
24951
24952 2009-11-16  Eric Blake  <ebb9@byu.net>
24953
24954         test-freading: clean up temporary file
24955         * tests/test-freading.c (main): Remove file on success, and use
24956         ASSERT more liberally.
24957         Reported by Jim Meyering.
24958
24959 2009-11-16  Jim Meyering  <meyering@redhat.com>
24960
24961         avoid new AC_REQUIRE expanded-before-required warnings
24962         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24963         merely using it.
24964         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24965         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24966
24967 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24968
24969         * tests/test-xalloc-die.c: New file.
24970         * modules/xalloc-die-tests: New file.
24971         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24972         XFAIL_TESTS so it can be appended by modules.
24973
24974 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24975
24976         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24977         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24978
24979 2009-11-14  Eric Blake  <ebb9@byu.net>
24980
24981         fnmatch: avoid compiler warning
24982         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24983         to silence compiler warning about mismatch signedness in ?:.
24984         Reported by Robert Millan.
24985
24986         intprops: add double-inclusion guard
24987         * lib/intprops.h: Allow idempotent includes.
24988         Suggested by Bruce Korb.
24989
24990         openat: detect Solaris fchownat bug
24991         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24992         penalizing glibc chownat when only lchownat is broken.
24993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24994         trailing slash bugs.
24995         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24996         * modules/openat-tests (Files): Include more files.
24997         (Depends-on): Add mgetgroups, sleep, stat-time.
24998         (configure.ac): Add additional checks.
24999         (Makefile.am): Build new test.
25000         * tests/test-fchownat.c: New file.
25001
25002         lchown: detect Solaris and FreeBSD bug
25003         * lib/lchown.c (rpl_lchown): Work around bug.
25004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25006         * modules/unistd (Makefile.am): Populate it.
25007         * lib/unistd.in.h (lchown): Update declaration.
25008         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25009         * modules/lchown-tests: New file.
25010         * tests/test-lchown.h (test_lchown): Likewise.
25011         * tests/test-lchown.c (main): Likewise.
25012
25013         chown: detect Solaris and FreeBSD bug
25014         * lib/chown.c (rpl_chown): Work around bug.
25015         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25016         (gl_PREREQ_CHOWN): Delete.
25017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25018         * modules/unistd (Makefile.am): Populate it.
25019         * lib/unistd.in.h (chown): Update declaration.
25020         * lib/lchown.c (chown): Update client.
25021         * modules/lchown (Depends-on): Add lstat.
25022         * doc/posix-functions/chown.texi (chown): Document the bug.
25023         * doc/posix-functions/getgroups.texi (getgroups): Document
25024         getgroups pitfall.
25025         * modules/chown-tests: New file.
25026         * tests/test-chown.h (test_chown): Likewise.
25027         * tests/test-chown.c (main): Likewise.
25028
25029 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25030
25031         gnulib-tool: correctly detect absence of m4 directories
25032         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25033
25034 2009-11-14  Jim Meyering  <meyering@redhat.com>
25035
25036         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25037         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25038
25039 2009-11-14  John W. Eaton  <jwe@gnu.org>
25040
25041         strftime.h: wrap funtion declaration in extern "C" block
25042         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25043
25044 2009-11-13  Eric Blake  <ebb9@byu.net>
25045
25046         getgroups: avoid compiler warning
25047         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25048
25049         getgroups: work around FreeBSD bug
25050         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25051         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25052         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25053         * tests/test-getgroups.c (main): Fix buffer overrun.
25054
25055         getgroups: avoid compilation failure
25056         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25057         * modules/getgroups (Depends-on): Add stdint.
25058
25059 2009-11-13  Jim Meyering  <meyering@redhat.com>
25060
25061         test-getgroups: avoid compilation failure
25062         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25063
25064 2009-11-13  Eric Blake  <ebb9@byu.net>
25065
25066         mgetgroups: new module, taken from coreutils
25067         * modules/mgetgroups: New file.
25068         * lib/mgetgroups.h: Likewise.
25069         * lib/mgetgroups.c (mgetgroups): Likewise.
25070         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25071         * MODULES.html.sh (Users and groups): Mention it.
25072
25073         getgroups: don't expose GETGROUPS_T to user
25074         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25075         an element at a time if GETGROUPS_T is wrong size.
25076         * lib/getugroups.h (getugroups): Change signature.
25077         * lib/unistd.in.h (getgroups): Likewise.
25078         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25079         signature needs fixing.
25080         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25081         AC_TYPE_GETGROUPS.
25082         * modules/group-member (Depends-on): Add getgroups.
25083         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25084         (group_member): Rely on getgroups replacement.
25085         * lib/getugroups.c (getugroups): Use gid_t.
25086         * tests/test-getgroups.c (main): Likewise.
25087         * NEWS: Mention the signature change.
25088         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25089         problem with signature.
25090         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25091         GETGROUPS_T is still useful for setgroups.
25092
25093         getgroups, getugroups: provide stubs for mingw
25094         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25095         * lib/getugroups.c (getugroups): Likewise.
25096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25097         function.  Modernize replacement scheme.
25098         (gl_PREREQ_GETGROUPS): Delete.
25099         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25100         * modules/getgroups (configure.ac): Declare witness.
25101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25102         * modules/unistd (Depends-on): Substitute witness.
25103         * lib/unistd.in.h (getgroups): Declare replacement.
25104
25105         getgroups: avoid calling exit
25106         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25107         drop xalloc.
25108         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25109         dependencies.
25110         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25111         exiting, in the rare case of malloc failure.
25112
25113         getgroups: fix logic error
25114         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25115         has more than 20 groups.
25116         * modules/getgroups-tests: New test.
25117         * tests/test-getgroups.c: New file.
25118
25119 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25120
25121         * tests/test-base64.c: Improve.
25122
25123 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25124
25125         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25126         Blake <ebb9@byu.net>.
25127
25128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25129
25130         * tests/test-xvasprintf.c: Add %s%s related checks.
25131
25132 2009-11-12  Eric Blake  <ebb9@byu.net>
25133
25134         version-etc: match standards.texi style
25135         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25136         and use <> only for URLs.
25137
25138 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25139
25140         fts: do not fail on a submount during traversal
25141         * lib/fts.c (fts_build): Read the stat info again after opening
25142         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25143         Original report at http://bugzilla.redhat.com/501848.
25144
25145 2009-11-12  Jim Meyering  <meyering@redhat.com>
25146
25147         bootstrap: sync from coreutils
25148         * build-aux/bootstrap (bootstrap_epilogue): New function.
25149         Use git_modules_config in one more place.  This make bootstrap's
25150         --gnulib-srcdir option more useful for testing.
25151
25152         bootstrap: generalize autoheader check
25153         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25154         AC_CONFIG_HEADERS.
25155
25156 2009-11-11  Eric Blake  <ebb9@byu.net>
25157
25158         mkfifoat: use new modules for Solaris and BSD bugs
25159         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25160         * lib/mkfifoat.c (mknodat): Split...
25161         * lib/mknodat.c (mknodat): ...into new file.
25162         * modules/mkfifoat (Files): Ship new file.
25163         (Depends-on): Add mkfifo, mknod.
25164         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25165         (Depends-on): Add symlink.
25166         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25167         redundant with test_mkfifo.h.
25168         (do_mkfifoat, do_mknodat): New helpers.
25169
25170         mknod: new module
25171         * modules/mknod: New file.
25172         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25173         * lib/mknod.c (mknod): Likewise.
25174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25175         defaults.
25176         * modules/sys_stat (Makefile.am): Substitute them.
25177         * lib/sys_stat.in.h (mknod): Declare replacement.
25178         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25179         Document it.
25180         * doc/posix-functions/mknod.texi (mknod): Likewise.
25181         * modules/mknod-tests: New test.
25182         * tests/test-mknod.c: Likewise.
25183
25184         mkfifo: new module
25185         * modules/mkfifo: New file.
25186         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25187         * lib/mkfifo.c (mkfifo): Likewise.
25188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25189         defaults.
25190         * modules/sys_stat (Makefile.am): Substitute them.
25191         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25192         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25193         Document it.
25194         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25195         * modules/mkfifo-tests: New test.
25196         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25197         from test-mkfifoat.c.
25198         * tests/test-mkfifo.c: New file.
25199
25200         readlink: detect FreeBSD bug
25201         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25202         slash on symlink.
25203         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25204         * tests/test-readlink.h (test_readlink): Enhance test.
25205
25206         symlink: detect FreeBSD bug
25207         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25208         slash on symlink.
25209         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25210         * tests/test-symlink.h (test_symlink): Enhance test.
25211
25212 2009-11-10  Eric Blake  <ebb9@byu.net>
25213
25214         link: detect FreeBSD bug
25215         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25216         symlink.
25217         * doc/posix-functions/link.texi (link): Document the bug.
25218         * tests/test-link.h (test_link): Enhance test.
25219         * tests/test-linkat.c (main): Update caller.
25220
25221         unlink, remove: detect FreeBSD bug
25222         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25223         slash on symlink.
25224         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25225         * doc/posix-functions/remove.texi (remove): Likewise.
25226         * tests/test-unlink.h (test_unlink): Enhance test.
25227         * tests/test-remove.c (main): Likewise.
25228
25229 2009-11-09  Eric Blake  <ebb9@byu.net>
25230
25231         rename: detect FreeBSD bug
25232         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25233         slash on symlink.
25234         * modules/renameat-tests (Depends-on): Add filenamecat.
25235         * tests/test-rename.h (test_rename): Allow one more errno.
25236         * tests/test-renameat.c (main): Likewise.
25237         * doc/posix-functions/rename.texi (rename): Document the bug.
25238
25239         open: detect FreeBSD bug
25240         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25241         symlink.
25242         * doc/posix-functions/open.texi (open): Document the bug.
25243         * doc/posix-functions/utimes.texi (utimes): Likewise.
25244         * tests/test-open.h (test_open): Add parameters, and test symlink
25245         handling.
25246         * tests/test-open.c (main): Adjust caller.
25247         * tests/test-fcntl-safer.c (main): Likewise.
25248         * modules/open-tests (Depends-on): Add stdbool, symlink.
25249         * modules/fcntl-safer-tests (Depends-on): Likewise.
25250         * tests/test-openat.c (main): Add test-open tests.
25251
25252         stat: detect FreeBSD bug
25253         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25254         symlink.
25255         * doc/posix-functions/stat.texi (stat): Document the bug.
25256         * tests/test-stat.h (test_stat_func): Add argument.
25257         * tests/test-stat.c (main): Adjust caller.
25258         * tests/test-fstatat.c (main): Likewise.
25259         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25260         Reported by Jim Meyering.
25261
25262 2009-11-09  James Youngman  <jay@gnu.org>
25263
25264         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25265         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25266
25267 2009-11-08  Jim Meyering  <meyering@redhat.com>
25268
25269         utimens: remove invalid futimesat call
25270         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25271         It used the file descriptor of the target file as the DIR_FD
25272         parameter and NULL as the file name.  That caused failure with
25273         errno == EFAULT on FreeBSD-8.0-rc2
25274
25275 2009-11-07  Eric Blake  <ebb9@byu.net>
25276
25277         fflush, freadseek: use fseeko, not fseek
25278         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25279         (clear_ungetc_buffer): Avoid potential problems on large files.
25280         * lib/freadseek.c (freadseek): Likewise.
25281         * modules/freadseek (Depends-on): Add fseeko.
25282         * modules/fseek (configure.ac): Set a witness.
25283         * tests/test-fflush.c (main): Use fseeko.
25284         * tests/test-fpurge.c (fseek): Disable link warning.
25285         * tests/test-freadable.c (fseek): Likewise.
25286         * tests/test-freading.c (fseek): Likewise.
25287         * tests/test-fseeko.c (fseek): Likewise.
25288         * tests/test-ftell.c (fseek): Likewise.
25289         * tests/test-ftello.c (fseek): Likewise.
25290         * tests/test-fwritable.c (fseek): Likewise.
25291         * tests/test-fwriting.c (fseek): Likewise.
25292
25293 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25294
25295         * modules/memchr (Depends-on): Drop getpagesize dependency.
25296
25297 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25298
25299         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25300         Reported by Ludovic Courtès.
25301         * build-aux/pmccabe2html: Improve example usage.
25302         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25303
25304 2009-11-06  Jim Meyering  <meyering@redhat.com>
25305
25306         do-release-commit-and-tag: New module.
25307         Automate the release-commit and tag process.
25308         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25309         * modules/do-release-commit-and-tag: New file.
25310         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25311
25312 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25313
25314         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25315         because test-select.c uses inet_pton.
25316
25317 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25318
25319         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25320         GETADDRINFO_LIB.  Bump serial number.
25321         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25322         Suggested by Eric Blake <ebb9@byu.net>.
25323
25324 2009-11-05  Eric Blake  <ebb9@byu.net>
25325
25326         strtod: detect darwin bug
25327         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25328         Reported by Leo Davis.
25329
25330         freopen-safer: new module
25331         * modules/freopen-safer: New module.
25332         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25333         * lib/freopen-safer.c (freopen_safer): New file.
25334         * lib/stdio-safer.h (freopen_safer): New declaration.
25335         * lib/stdio--.h (freopen): New override.
25336         * MODULES.html.sh (File stream based Input/Output): Mention it.
25337         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25338         freopen-safer module.
25339         * doc/posix-functions/stderr.texi (stderr): Likewise.
25340         * doc/posix-functions/stdin.texi (stdin): Likewise.
25341         * doc/posix-functions/stdout.texi (stdout): Likewise.
25342         * modules/freopen-safer-tests: New test.
25343         * tests/test-reopen-safer.c: New file.
25344
25345 2009-11-05  Jim Meyering  <meyering@redhat.com>
25346
25347         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25348         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25349
25350 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25351
25352         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25353
25354 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25355
25356         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25357
25358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25359
25360         Fix link error.
25361         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25362         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25363
25364 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25365
25366         * tests/test-func.c: Also test value of __func__.
25367
25368 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25369
25370         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25371         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25372
25373 2009-11-05  Bruno Haible  <bruno@clisp.org>
25374
25375         Fix link error.
25376         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25377         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25378         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25379
25380 2009-11-05  Bruno Haible  <bruno@clisp.org>
25381
25382         Tests for module 'inet_pton'.
25383         * modules/inet_pton-tests: New file.
25384         * tests/test-inet_pton.c: New file.
25385
25386 2009-11-05  Bruno Haible  <bruno@clisp.org>
25387
25388         Tests for module 'inet_ntop'.
25389         * modules/inet_ntop-tests: New file.
25390         * tests/test-inet_ntop.c: New file.
25391
25392 2009-11-04  Eric Blake  <ebb9@byu.net>
25393
25394         stdlib-safer: wrap all mkstemp variants
25395         * modules/mkostemp (configure.ac): Set witness.
25396         * modules/mkostemps (configure.ac): Likewise.
25397         * modules/mkstemps (configure.ac): Likewise.
25398         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25399         (mkstemps_safer): Wrap more functions.
25400         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25401         wrapping.
25402         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25403         (mkstemps_safer): Implement the wrappers.
25404
25405         mkstemps, mkostemps: new modules
25406         * modules/mkostemps: New module.
25407         * modules/mkstemps: Likewise.
25408         * lib/mkostemps.c (mkostemps): New file.
25409         * lib/mkstemps.c (mkstemps): Likewise.
25410         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25411         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25413         * modules/stdlib (Makefile.am): Substitute them.
25414         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25415         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25416         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25417         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25418         * MODULES.html.sh (File system functions): Mention them.
25419
25420         tempname: resync from glibc
25421         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25422         same values for __GT_FILE as glibc.  Abort even when assertions
25423         are disabled.
25424         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25425         match its value otherwise.  Allow idempotent inclusion.
25426         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25427         * lib/mkostemp.c (mkostemp): Likewise.
25428         * lib/mkstemp.c (mkstemp): Likewise.
25429         * lib/tmpfile.c (tmpfile): Likewise.
25430         * NEWS: Document this.
25431
25432         utimens: fix use of futimens on older Linux
25433         * lib/utimens.c (fdutimens): Use updated, rather than original,
25434         timespec to avoid bug in older Linux kernel.
25435         Reported by Simon Josefsson.
25436
25437 2009-11-04  Bruno Haible  <bruno@clisp.org>
25438
25439         Make num_processors more flexible and consistent.
25440         * lib/nproc.h (enum nproc_query): New type.
25441         (num_processors): Add a 'query' argument.
25442         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25443         (num_processors): Add a 'query' argument. Test the value of the
25444         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25445         mingw, count the number of CPUs available for the current process.
25446         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25447         Check for sched_getaffinity and sched_getaffinity_np.
25448         * modules/nproc (Depends-on): Add c-ctype, extensions.
25449         * NEWS: Mention the change.
25450
25451 2009-11-03  Bruno Haible  <bruno@clisp.org>
25452
25453         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25454
25455 2009-11-03  Jim Meyering  <meyering@redhat.com>
25456
25457         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25458         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25459         if it is defined.
25460
25461 2009-11-02  Eric Blake  <ebb9@byu.net>
25462
25463         mktime, timegm: share common declaration
25464         * lib/mktime-internal.h: New file.
25465         * lib/mktime.c: Use it rather than open-coding a declaration.
25466         * lib/timegm.c: Likewise.
25467         * modules/mktime (Files): Ship it.
25468         * modules/timegm (Files): Likewise.
25469         Suggested by Bruno Haible.
25470
25471         test-update-copyright: update test to match script changes
25472         * tests/test-update-copyright.sh: Avoid hard-coding perl
25473         location.  Don't update *.bak created by earlier runs.
25474
25475 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25476             Simon Josefsson  <simon@josefsson.org>
25477             Bruno Haible  <bruno@clisp.org>
25478
25479         Fix link error on Solaris 8.
25480         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25481         also in libnsl. Define also INET_PTON_LIB.
25482         * modules/inet_pton (Link): New section.
25483
25484 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25485             Bruno Haible  <bruno@clisp.org>
25486
25487         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25488         * modules/inet_ntop (Link): New section.
25489         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25490
25491 2009-11-02  Eric Blake  <ebb9@byu.net>
25492
25493         maint: avoid compiler warnings in m4 macros
25494         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25496
25497 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25498
25499         * m4/pmccabe2html.m4: Remove file.
25500         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25501         function.  Change maintainer.
25502         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25503         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25504         Courtès).
25505
25506 2009-10-31  Eric Blake  <ebb9@byu.net>
25507
25508         fseeko: fix m4 regression
25509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25510         regression from 2009-10-27.
25511         Reported by Ralf Wildenhues.
25512
25513 2009-10-31  Jim Meyering  <meyering@redhat.com>
25514
25515         inttostr: aesthetics and improved (compile-time) safety
25516         Define inttype_is_signed rather than inttype_is_unsigned,
25517         since the sole use is via "#if inttype_is_signed".
25518         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25519         inttype_is_unsigned.
25520         * lib/offtostr.c (inttype_is_signed): Likewise.
25521         * lib/uinttostr.c (inttype_is_signed): Likewise.
25522         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25523         * lib/inttostr.c (inttostr): Use verify to cross-check the
25524         inttype_is_signed value and the signedness of the actual type.
25525         * modules/inttostr (Depends-on): Add verify.
25526
25527 2009-10-30  Eric Blake  <ebb9@byu.net>
25528
25529         build: avoid compiler warnings
25530         * lib/fchmodat.c (lchmod): Mark unused variables.
25531         * lib/getopt.c (_getopt_initialize): Likewise.
25532         * lib/mktime.c (__mktime_internal): Provide prototype.
25533         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25534         older gcc that do not understand #pragma GCC diagnostic.
25535         * lib/uinttostr.c (inttype_is_unsigned): Define.
25536         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25537
25538 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25539
25540         stat: fix compilation on AIX
25541         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25542         only see struct stat64.
25543
25544 2009-10-30  Eric Blake  <ebb9@byu.net>
25545
25546         exclude: make more robust
25547         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25548         rather than masking a coding bug.
25549         Suggested by Bruno Haible.
25550
25551 2009-10-30  Jim Meyering  <meyering@redhat.com>
25552
25553         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25554         Rather than putting #!/usr/bin/perl on the first line,
25555         start with a variant of what's recommended by "man perlrun" that
25556         invokes the first "perl" program from your shell's search path.
25557         * build-aux/gitlog-to-changelog: Replace #!... as above.
25558         Add a "Local Variables" perl mode setting.
25559         Prompted by a patch from Ludovic Courtès.
25560         Improved by Eric Blake.
25561         * build-aux/useless-if-before-free: Likewise.
25562         * build-aux/announce-gen: Likewise.
25563         * build-aux/update-copyright: Likewise.
25564
25565 2009-10-29  Eric Blake  <ebb9@byu.net>
25566
25567         filenamecat-lgpl: adjust clients
25568         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25569         filenamecat.
25570         * modules/renameat (Depends-on): Likewise.
25571
25572         filenamecat: split into filenamecat-lgpl
25573         * modules/filenamecat-lgpl: New module.
25574         * modules/filenamecat (Files): Move library-safe files into
25575         filenamecat-lgpl.
25576         (Depends-on): Add filenamecat-lgpl.
25577         (configure.ac): Declare witness.
25578         * lib/filenamecat.h (file_name_concat): Only declare when using
25579         GPL module.
25580         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25581         Move...
25582         * lib/filenamecat-lgpl.c: ...into new file.
25583         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25584         (gl_FILE_NAME_CONCAT): Use it.
25585         * MODULES.html.sh (File system functions): Mention new module.
25586
25587         argp: avoid memory leak
25588         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25589         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25590         base_name, since the latter malloc()s and can call exit().
25591         Leak introduced 2006-07-03.
25592
25593         dirname-lgpl: adjust clients that don't need full dirname
25594         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25595         * modules/filenamecat (Depends-on): Likewise.
25596         * modules/linkat (Depends-on): Likewise.
25597         * modules/mkancesdirs (Depends-on): Likewise.
25598         * modules/mkdir (Depends-on): Likewise.
25599         * modules/openat (Depends-on): Likewise.
25600         * modules/savewd (Depends-on): Likewise.
25601         * modules/rename (Depends-on): Likewise.
25602         (License): Relax license.
25603         * modules/mkdir-tests (Depends-on): Drop progname.
25604         (Makefile.am): Delete unneeded LDADD.
25605         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25606
25607         dirname: split into dirname-lgpl
25608         * modules/dirname-lgpl: New module.
25609         * modules/dirname (Files): Move library-safe files into
25610         dirname-lgpl.
25611         (Depends-on): Add dirname-lgpl.
25612         (configure.ac): Declare witness.
25613         * modules/double-slash-root (License): Relax license.
25614         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25615         module.
25616         * lib/dirname.c (dir_len, mdir_name): Move...
25617         * lib/dirname-lgpl.c: ...into new file.
25618         * lib/basename.c (last_component, base_len): Move...
25619         * lib/basename-lgpl.c: ...into new file.
25620         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25621         (gl_DIRNAME): Use it.
25622         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25623         Mention new module.
25624         * modules/dirname-tests (Depends-on): Add progname.
25625         * tests/test-dirname.c (program_name): Delete.
25626
25627         mkdir: make safe for libraries
25628         * modules/mkdir (Depends-on): Drop xalloc.
25629         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25630         exit.
25631
25632         tests: avoid some compiler warnings
25633         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25634         literals.
25635         * tests/test-memchr.c (main): Avoid type mismatch.
25636         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25637         * tests/test-base64.c (main): Likewise.
25638         * tests/test-getdelim.c (main): Likewise.
25639         * tests/test-gethostname.c (main): Likewise.
25640         * tests/test-getline.c (main): Likewise.
25641         * tests/test-netinet_in.c (main): Likewise.
25642         * tests/test-select.c (open_server_socket, main): Likewise.
25643         * tests/test-select-stdin.c (main): Likewise.
25644         * tests/test-sockets.c (main): Likewise.
25645         * tests/test-strsignal.c (main): Likewise.
25646         * tests/test-sys_select.c (main): Likewise.
25647         * tests/test-sys_socket.c (main): Likewise.
25648         * tests/test-u64.c (main): Likewise.
25649         * tests/test-xfprintf-posix.c (main): Likewise.
25650         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25651
25652         sockets: avoid compiler warning
25653         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25654
25655         maint: detect usage(1) and other suspicious exits
25656         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25657
25658 2009-10-29  Jim Meyering  <meyering@redhat.com>
25659
25660         timespec: long-to-int truncation could make timespec_cmp malfunction
25661         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25662         a multiple of 2^32 nanoseconds as no difference.
25663
25664 2009-10-28  Jim Meyering  <meyering@redhat.com>
25665
25666         fprintftime: wrap macro code argument in "do {...} while(0)"
25667         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25668         cpy macro must be a statement that can be followed by a semicolon.
25669         Now that the else clause contains a comment and is hence longer
25670         than one line, I require curly braces.  That in turn requires
25671         that we wrap this code block in the standard do...while(0).
25672
25673         fprintftime: remove stray semicolon from previous change
25674         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25675
25676         fprintftime: avoid a warning about ignored fwrite return value
25677         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25678         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25679         that is unsafe.
25680         * modules/fprintftime (Depends-on): Add ignore-value.
25681
25682         exclude: avoid an unwarranted warning
25683         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25684
25685 2009-10-27  Eric Blake  <ebb9@byu.net>
25686
25687         fseek: avoid compilation failure when fflush is replaced
25688         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25689         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25690         module is in use.
25691         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25692         module is not in use; since REPLACE_FSEEK worked otherwise.
25693         (GNULIB_FTELLO): Likewise for ftell.
25694         Reported by Ian Beckwith and others.
25695
25696 2009-10-27  Bruno Haible  <bruno@clisp.org>
25697
25698         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25699         Reported by Jim Meyering.
25700
25701 2009-10-27  Jim Meyering  <jim@meyering.net>
25702             Bruno Haible  <bruno@clisp.org>
25703
25704         Avoid warning despite dropping the return value of fwrite.
25705         * lib/unicodeio.c: Include ignore-value.h.
25706         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25707         * modules/unicodeio (Depends-on): Add ignore-value.
25708
25709 2009-10-26  Eric Blake  <ebb9@byu.net>
25710
25711         areadlinkat: fix fallback path
25712         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25713         pointer and zero.
25714
25715 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25716
25717         Use a better IO block size for modern systems
25718         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25719         * lib/md2.c: Likewise.
25720         * lib/md4.c: Likewise.
25721         * lib/md5.c: Likewise.
25722         * lib/sha1.c: Likewise.
25723         * lib/sha256.c: Likewise.
25724         * lib/sha512.c: Likewise.
25725
25726 2009-10-22  Eric Blake  <ebb9@byu.net>
25727
25728         tests: avoid several compiler warnings
25729         * tests/test-getcwd.c (main): Avoid buffer underflow.
25730         * tests/test-getdate.c (main): String literals are not safe with
25731         putenv, so use setenv.  Declare unused argument.
25732         * modules/getdate-tests (Depends-on): Add setenv.
25733         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25734         problems with string literals in char *.
25735         * tests/test-hash.c (main): Avoid shadowing declaration.
25736         (insert_new): Treat string literals as char const *.
25737         * tests/test-getopt.h (test_getopt): Likewise.
25738         (getopt_loop): Alter types to minimize casting elsewhere.
25739         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25740         (test_getopt_long_posix): Likewise.
25741         (do_getopt_long): Add wrapper to minimize casting.
25742         * tests/test-atexit.c (clear_temp_file): Use void.
25743         * tests/test-areadlink-with-size.c (main): Declare unused
25744         arguments.
25745         * tests/test-areadlink.c (main): Likewise.
25746         * tests/test-areadlinkat-with-size.c (main): Likewise.
25747         * tests/test-areadlinkat.c (main): Likewise.
25748         * tests/test-canonicalize-lgpl.c (main): Likewise.
25749         * tests/test-canonicalize.c (main): Likewise.
25750         * tests/test-dirent-safer.c (main): Likewise.
25751         * tests/test-dirname.c (main): Likewise.
25752         * tests/test-dup2.c (main): Likewise.
25753         * tests/test-fchdir.c (main): Likewise.
25754         * tests/test-fcntl-h.c (main): Likewise.
25755         * tests/test-fcntl-safer.c (main): Likewise.
25756         * tests/test-fdopendir.c (main): Likewise.
25757         * tests/test-fdutimensat.c (main): Likewise.
25758         * tests/test-fflush.c (main): Likewise.
25759         * tests/test-filenamecat.c (main): Likewise.
25760         * tests/test-filevercmp.c (main): Likewise.
25761         * tests/test-fopen-safer.c (main): Likewise.
25762         * tests/test-fopen.c (main): Likewise.
25763         * tests/test-fpending.c (main): Likewise.
25764         * tests/test-fpurge.c (main): Likewise.
25765         * tests/test-freading.c (main): Likewise.
25766         * tests/test-fstatat.c (main): Likewise.
25767         * tests/test-fsync.c (main): Likewise.
25768         * tests/test-futimens.c (main): Likewise.
25769         * tests/test-getndelim2.c (main): Likewise.
25770         * tests/test-gettimeofday.c (main): Likewise.
25771         * tests/test-getopt.c (main): Likewise.
25772         * tests/test-i-ring.c (main): Likewise.
25773         * tests/test-inttypes.c (main): Likewise.
25774         * tests/test-link.c (main): Likewise.
25775         * tests/test-lstat.c (main): Likewise.
25776         * tests/test-math.c (main): Likewise.
25777         * tests/test-md5.c (main): Likewise.
25778         * tests/test-memchr2.c (main): Likewise.
25779         * tests/test-memrchr.c (main): Likewise.
25780         * tests/test-mkdir.c (main): Likewise.
25781         * tests/test-mkdirat.c (main): Likewise.
25782         * tests/test-mkfifoat.c (main): Likewise.
25783         * tests/test-open.c (main): Likewise.
25784         * tests/test-openat-safer.c (main): Likewise.
25785         * tests/test-openat.c (main): Likewise.
25786         * tests/test-quotearg.c (main): Likewise.
25787         * tests/test-rawmemchr.c (main): Likewise.
25788         * tests/test-readlink.c (main): Likewise.
25789         * tests/test-remove.c (main): Likewise.
25790         * tests/test-rename.c (main): Likewise.
25791         * tests/test-renameat.c (main): Likewise.
25792         * tests/test-rmdir.c (main): Likewise.
25793         * tests/test-sha1.c (main): Likewise.
25794         * tests/test-signal.c (main): Likewise.
25795         * tests/test-sigaction.c (main): Likewise.
25796         * tests/test-stat.c (main): Likewise.
25797         * tests/test-stat-time.c (main): Likewise.
25798         * tests/test-stddef.c (main): Likewise.
25799         * tests/test-stdint.c (main): Likewise.
25800         * tests/test-stdio.c (main): Likewise.
25801         * tests/test-stdlib.c (main): Likewise.
25802         * tests/test-strchrnul.c (main): Likewise.
25803         * tests/test-strerror.c (main): Likewise.
25804         * tests/test-string.c (main): Likewise.
25805         * tests/test-strtod.c (main): Likewise.
25806         * tests/test-strverscmp.c (main): Likewise.
25807         * tests/test-symlink.c (main): Likewise.
25808         * tests/test-symlinkat.c (main): Likewise.
25809         * tests/test-sys_stat.c (main): Likewise.
25810         * tests/test-sys_time.c (main): Likewise.
25811         * tests/test-time.c (main): Likewise.
25812         * tests/test-unistd.c (main): Likewise.
25813         * tests/test-unlink.c (main): Likewise.
25814         * tests/test-unlinkat.c (main): Likewise.
25815         * tests/test-utimens.c (main): Likewise.
25816         * tests/test-utimensat.c (main): Likewise.
25817         * tests/test-version-etc.c (main): Likewise.
25818         * tests/test-wchar.c (main): Likewise.
25819         * tests/test-wctype.c (main): Likewise.
25820         * tests/test-xprintf-posix.c (main): Likewise.
25821         * tests/test-posixtm.c (main): Likewise.
25822         (STREQ): Delete unused macro.
25823         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25824         shadowed variables.
25825         * tests/test-memchr.c (main): Likewise.
25826
25827 2009-10-21  Eric Blake  <ebb9@byu.net>
25828
25829         areadlinkat: avoid failure on older glibc
25830         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25831         rather than mis-comparing 0 against FUNC_RESULT of char*.
25832
25833 2009-10-21  Bruno Haible  <bruno@clisp.org>
25834
25835         * modules/stpncpy (License): Relicense under LGPLv2+.
25836         Reported by David Lutterkort <lutter@redhat.com>.
25837
25838 2009-10-20  Eric Blake  <ebb9@byu.net>
25839
25840         utimensat: work around Solaris 9 bug
25841         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25842         has trailing slash bugs.
25843         * tests/test-lutimens.h (test_lutimens): Enhance test.
25844         * tests/test-utimens.h (test_utimens): Likewise.
25845         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25846         * doc/posix-functions/utimes.texi (utimes): Likewise.
25847         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25848         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25849         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25850         * doc/posix-functions/futimens.texi (futimens): Likewise.
25851
25852         fdutimensat: new module
25853         * modules/fdutimensat: New file.
25854         * lib/fdutimensat.c (fdutimensat): Likewise.
25855         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25856         * MODULES.html.sh (File system functions): Mention module.
25857         * modules/fdutimensat-tests: New test.
25858         * tests/test-fdutimensat.c: Likewise.
25859
25860         doc: regenerate INSTALL
25861         * doc/INSTALL: Reflect recent autoconf update.
25862         * doc/INSTALL.ISO: Likewise.
25863         * doc/INSTALL.UTF-8: Likewise.
25864
25865 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25866
25867         acl: warn if ACL support is not detected
25868         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25869
25870 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25871
25872         * lib/nproc.h: Add extern "C" block for C++.
25873
25874 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25875             Bruno Haible  <bruno@clisp.org>
25876
25877         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25878         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25879         * doc/posix-functions/isalpha.texi: Likewise.
25880         * doc/posix-functions/isblank.texi: Likewise.
25881         * doc/posix-functions/iscntrl.texi: Likewise.
25882         * doc/posix-functions/isdigit.texi: Likewise.
25883         * doc/posix-functions/isgraph.texi: Likewise.
25884         * doc/posix-functions/islower.texi: Likewise.
25885         * doc/posix-functions/isprint.texi: Likewise.
25886         * doc/posix-functions/ispunct.texi: Likewise.
25887         * doc/posix-functions/isspace.texi: Likewise.
25888         * doc/posix-functions/isupper.texi: Likewise.
25889         * doc/posix-functions/isxdigit.texi: Likewise.
25890
25891 2009-10-18  Bruno Haible  <bruno@clisp.org>
25892
25893         Tests for module 'isblank'.
25894         * modules/isblank-tests: New file.
25895         * tests/test-isblank.c: New file.
25896
25897         New module 'isblank'.
25898         * lib/isblank.c: New file.
25899         * m4/isblank.m4: New file.
25900         * modules/isblank: New file.
25901         * doc/posix-functions/isblank.texi: Mention the new module.
25902
25903 2009-10-18  Bruno Haible  <bruno@clisp.org>
25904
25905         New module 'ctype'.
25906         * lib/ctype.in.h: New file.
25907         * m4/ctype.m4: New file.
25908         * modules/ctype: New file.
25909         * doc/posix-headers/ctype.texi: Mention the new module.
25910
25911 2009-10-18  Jim Meyering  <meyering@redhat.com>
25912
25913         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25914         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25915         right after its initialization, rather than farther down.
25916         Keeping these in close proximity makes it easier to ensure
25917         that each such variable is initialized.  E.g.,
25918
25919             LIB_CLOCK_GETTIME=
25920             AC_SUBST([LIB_CLOCK_GETTIME])
25921
25922         This change also increments these serial numbers.
25923         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25924         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25926
25927 2009-10-18  Bruno Haible  <bruno@clisp.org>
25928
25929         Don't let environment variables perturb build.
25930         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25931         (gl_PREREQ_GETHRXTIME): ... not here.
25932
25933 2009-10-18  Bruno Haible  <bruno@clisp.org>
25934
25935         Avoid symlink attack in localcharset module.
25936         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25937         (O_NOFOLLOW): Define fallback.
25938         (get_charset_aliases): Don't open the file if it is a symbolic link.
25939         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25940         gl_FCNTL_H.
25941         (gl_FCNTL_H): Require it.
25942         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25943         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25944         Reported by Fergal Glynn <fglynn@veracode.com>.
25945
25946 2009-10-18  Bruno Haible  <bruno@clisp.org>
25947
25948         Implement nproc for mingw.
25949         * lib/nproc.c: Include <windows.h>
25950         (num_processors): On native Windows platforms, try GetSystemInfo.
25951
25952 2009-10-18  Bruno Haible  <bruno@clisp.org>
25953
25954         Implement nproc for IRIX.
25955         * lib/nproc.c: Include <sys/sysmp.h>.
25956         (num_processors): On IRIX systems, try sysmp.
25957         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25958
25959 2009-10-18  Bruno Haible  <bruno@clisp.org>
25960
25961         Implement nproc for HP-UX.
25962         * lib/nproc.c: Include <sys/pstat.h>
25963         (num_processors): On HP-UX systems, try pstat_getdynamic.
25964         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25965         pstat_getdynamic.
25966
25967 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25968             Bruno Haible  <bruno@clisp.org>
25969
25970         Implement nproc for NetBSD, OpenBSD.
25971         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25972         (ARRAY_SIZE): New macro.
25973         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25974         * m4/nproc.m4: New file.
25975         * modules/nproc (Files): Add m4/nproc.m4.
25976         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25977         (Makefile.am): Instead, augment lib_SOURCES.
25978
25979 2009-10-18  Bruno Haible  <bruno@clisp.org>
25980
25981         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25982         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25983         sys/param.h.
25984
25985 2009-10-16  Eric Blake  <ebb9@byu.net>
25986
25987         utimensat: new module
25988         * modules/utimensat: New file.
25989         * lib/utimensat.c (utimensat): Likewise.
25990         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25991         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25992         so we can work around Linux bugs.
25993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25994         * modules/sys_stat (Makefile.am): Substitute them.
25995         * lib/sys_stat.in.h (utimensat): Declare it.
25996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25997         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25998         * modules/utimensat-tests: New test.
25999         * tests/test-utimensat.c: Likewise.
26000
26001         utimens: let lutimens work on non-symlinks
26002         * lib/utimens.c (lutimens): Fall back to utimens rather than
26003         failing with ENOSYS, when file is not a symlink.
26004         (utimens): Reduce redirection.
26005         * tests/test-lutimens.h (test_lutimens): Update test to cover
26006         non-symlinks.
26007         * tests/test-utimens.h (test_utimens): Update test to cover
26008         symlinks.
26009         * tests/test-utimens.c (main): Update caller.
26010
26011         utimens: cache whether utimensat syscall works
26012         * lib/utimens.c (utimensat_works_really): New cache variable.
26013         (fdutimens, lutimens): Use it to avoid failing syscall.
26014
26015         test-stat-time, test-utimens: improve portability
26016         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26017         ext4 on alpha, and for cygwin.
26018         * tests/test-utimens-common.h: New file.
26019         (nap): Factor delays into single function.
26020         * tests/test-lutimens.h (test_lutimens): Use new header.
26021         * tests/test-futimens.h (test_futimens): Likewise.
26022         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26023         timestamps to occur from same machine, as was done previously for
26024         test_utimens.
26025         * modules/utimens-tests (Files): Ship new file.
26026         * modules/futimens-tests (Files): Likewise.
26027         Reported in part by Jim Meyering.
26028
26029         sys_stat: sort replacement declarations
26030         * lib/sys_stat.in.h: Sort declarations.
26031         * lib/futimens.c (futimens): Fix typo.
26032
26033 2009-10-15  Jim Meyering  <meyering@redhat.com>
26034
26035         don't let environment settings perturb build
26036         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26037         could cause a configure-time and/or build-time malfunction.
26038         Typically, a configure-time function-in-library test is performed
26039         via code like this:
26040
26041           LIB_VAR=
26042           AC_SUBST([LIB_VAR])
26043           prefix_saved_LIBS=$LIBS
26044             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26045                        [test "$ac_cv_search_FUNC" = "none required" ||
26046                         LIB_VAR=$ac_cv_search_FUNC])
26047           LIBS=$prefix_saved_LIBS
26048
26049         However, in each of the files affected by this change, the LIB_VAR=
26050         initialization was omitted.  Thus, when set in the environment, its
26051         value would propagate into generated Makefiles when FUNC is not found
26052         in LIB_NAME.
26053         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26054         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26056
26057 2009-10-14  Eric Blake  <ebb9@byu.net>
26058
26059         fchdir: avoid infinite recursion in mingw
26060         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26061         recursing.
26062
26063         test-stat-time: port to mingw
26064         * tests/test-stat-time.c (force_unlink): Return a value.
26065         (test_ctime) [W32]: Fix compilation error.
26066         (nap): Don't call usleep with too large an argument.  Use
26067         force_unlink.
26068         * doc/pastposix-functions/usleep.texi (usleep): Document the
26069         portability issue.
26070
26071 2009-10-13  Jim Meyering  <meyering@redhat.com>
26072
26073         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26074         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26075         * modules/pipe-filter-ii: Likewise.
26076         * modules/sys_socket-tests: Likewise.
26077         * modules/tsearch-tests: Likewise.
26078         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26079         (check): Depend on it.
26080
26081 2009-10-12  Eric Blake  <ebb9@byu.net>
26082
26083         utimens-tests: port to NFS file systems
26084         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26085         comparisons to avoid spurious failures from timestamp drift
26086         between NFS machines.
26087
26088 2009-10-12  Eric Blake  <ebb9@byu.net>
26089
26090         stat-time-tests: minor cleanups
26091         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26092         * tests/test-stat-time.c (nap): Separate assignment from call.
26093         Suggested by Paolo Bonzini and Bruno Haible.
26094
26095         sys_stat: guarantee struct timespec
26096         * lib/sys_stat.in.h (includes): Always include <time.h>
26097         * modules/sys_stat (Depends-on): Add time.
26098         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26099         mode_t permission values.
26100         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26101         get at subsecond timestamps.
26102
26103 2009-10-10  Eric Blake  <ebb9@byu.net>
26104
26105         futimens: new module
26106         * modules/futimens: New file.
26107         * lib/futimens.c (futimens): Likewise.
26108         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26109         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26110         we can work around Linux bugs.
26111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26112         * modules/sys_stat (Makefile.am): Substitute them.
26113         * lib/sys_stat.in.h (futimens): Declare it.
26114         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26115         * doc/posix-functions/futimens.texi (futimens): Likewise.
26116         * modules/futimens-tests: New test.
26117         * tests/test-futimens.c: Likewise.
26118
26119         utimens: introduce fdutimens
26120         * lib/utimens.h (fdutimens): New prototype.
26121         * lib/utimens.c (gl_futimens): Move guts...
26122         (fdutimens): ...to new interface.
26123         * tests/test-utimens.c (do_fdutimens): Use it.
26124
26125         utimens: add UTIME_NOW and UTIME_OMIT support
26126         * lib/utimens.c (validate_timespec, update_timespec): New helper
26127         functions.
26128         (gl_futimens, lutimens): Use them.
26129         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26130         stdbool, sys_stat.
26131         (Link): Mention resulting library dependency.
26132         * modules/utimecmp (Link): Likewise.
26133         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26134         (Makefile.am): Pick up library dependency.
26135         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26136         definition.
26137         * tests/test-sys_stat.c: Test the definitions.
26138         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26139         * NEWS: Document library dependency.
26140
26141         utimecmp: support symlink timestamps
26142         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26143         hashing when possible.  Use pathconf when available.
26144         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26145         * modules/utimecmp (Depends-on): Add lstat.
26146
26147         utimens: add lutimens interface
26148         * lib/utimens.c (lutimens): New function.
26149         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26150         * lib/utimens.h (lutimens): Declare new interface.
26151         * tests/test-utimens.c (main): Enhance test.
26152         * tests/test-lutimens.h (test_lutimens): New file.
26153         * modules/utimens-tests (Files): Distribute it.
26154         (Depends-on): Add symlink.
26155         (configure.ac): Check for usleep.
26156
26157         utimens: validate futimens usage
26158         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26159         fewer syscalls on failure later on.  Avoid compiler warning on
26160         mingw.
26161         * modules/utimens (Depends-on): Add dup2.
26162
26163         utimens: add test
26164         * modules/utimens-tests: New test.
26165         * tests/test-utimens.h: New file.
26166         * tests/test-futimens.h: Likewise.
26167         * tests/test-utimens.c: Likewise.
26168
26169         doc: mention timestamp portability issues
26170         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26171         instead.
26172         * doc/posix-functions/utime.texi (utime): Likewise.
26173         * doc/posix-functions/utimes.texi (utimes): Likewise.
26174         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26175         instead.
26176         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26177         module.
26178         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26179         Mention weakness with symlink timestamps.
26180         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26181         to utimensat/futimens instead.
26182         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26183
26184         test-dup2: enhance test
26185         * tests/test-dup2.c (main): Also check AT_FDCWD.
26186
26187         test-stat-time: avoid more spurious failures
26188         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26189         xfs; and avoid race if the two timestamps cross quantization edge.
26190
26191         relocatable: prefer 'file system' over 'filesystem'
26192         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26193         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26194         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26195         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26196         * lib/relocatable.c (compute_curr_prefix): Likewise.
26197
26198 2009-10-10  Jim Meyering  <meyering@redhat.com>
26199
26200         stat-time-tests: check for the usleep function
26201         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26202
26203 2009-10-10  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/xnanosleep: Put the Link section after the Include section.
26206
26207 2009-10-09  Eric Blake  <ebb9@byu.net>
26208
26209         dup2: work around FreeBSD 6.1 bug
26210         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26211         * doc/posix-functions/dup2.texi (dup2): Document it.
26212         Reported by Nelson H. F. Beebe and Jim Meyering.
26213
26214         test-stat-time: port to buggy NFS clients
26215         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26216         (test_ctime): Also skip test if mtime and ctime are skewed.
26217
26218         maint: prefer 'file system' over 'filesystem'
26219         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26220         * doc/posix-functions/lstat.texi (lstat): Likewise.
26221         * lib/file-has-acl.c (file_has_acl): Likewise.
26222         * lib/fwriteerror.c [TEST]: Likewise.
26223         * tests/test-areadlink.h (test_areadlink): Likewise.
26224         * tests/test-areadlinkat-with-size.c (main): Likewise.
26225         * tests/test-areadlinkat.c (main): Likewise.
26226         * tests/test-canonicalize-lgpl.c (main): Likewise.
26227         * tests/test-canonicalize.c (main): Likewise.
26228         * tests/test-fstatat.c (main): Likewise.
26229         * tests/test-linkat.c (main): Likewise.
26230         * tests/test-lstat.h (test_lstat_func): Likewise.
26231         * tests/test-mkdir.h (test_mkdir): Likewise.
26232         * tests/test-readlink.h (test_readlink): Likewise.
26233         * tests/test-remove.c (main): Likewise.
26234         * tests/test-rename.h (test_rename): Likewise.
26235         * tests/test-renameat.c (main): Likewise.
26236         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26237         * tests/test-symlink.h (test_symlink): Likewise.
26238         * tests/test-symlinkat.c (main): Likewise.
26239         * tests/test-unlink.h (test_unlink_func): Likewise.
26240         * tests/test-unlinkat.c (main): Likewise.
26241
26242         maint: make realtime library usage explicit
26243         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26244         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26245         * modules/settime (Link): Likewise.
26246         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26247
26248         test-stat-time: speed up execution
26249         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26250         warning on mingw.
26251         (nap): New helper function.
26252         (prepare_test): Use it to reduce sleep time.
26253         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26254         execution.
26255         * modules/stat-time-tests (configure.ac): Check for usleep.
26256
26257 2009-10-09  Jim Meyering  <meyering@redhat.com>
26258
26259         selinux-h: always use getfilecon wrappers
26260         * lib/getfilecon.c: New file.
26261         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26262         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26263         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26264         (fgetfilecon): Provide a stub.
26265         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26266         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26267         file unconditionally.
26268         When <selinux/selinux.h> is found, arrange to use wrappers.
26269         * modules/selinux-h (Files): Add getfilecon.c.
26270         (Makefile.am): Substitute include-next-related bits
26271         into the now-always-generated selinux/selinux.h file.
26272         * doc/glibc-functions/lgetfilecon.texi: New file.
26273         * doc/glibc-functions/fgetfilecon.texi: New file.
26274         * doc/glibc-functions/getfilecon.texi: New file.
26275         * doc/glibc-functions/getfilecon-desc.texi: New file.
26276         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26277         which to pull in the new files.
26278         * MODULES.html.sh (Misc): Add selinux-h.
26279
26280 2009-10-08  Jim Meyering  <meyering@redhat.com>
26281
26282         unistd: fix comment typo
26283         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26284
26285 2009-10-08  Eric Blake  <ebb9@byu.net>
26286
26287         areadlink: use SIZE_MAX consistently
26288         * modules/areadlink (Depends-on): Add stdint.
26289         * modules/areadlink-with-size (Depends-on): Likewise.
26290         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26291         gives NULL; drop sys/types, since unistd gives size_t; and add
26292         stdint for SIZE_MAX.
26293         (SIZE_MAX): Rely on headers.
26294         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26295         and add stdint.
26296         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26297         (SIZE_MAX): Likewise.
26298         (INITIAL_BUF_SIZE): Turn into enum.
26299         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26300
26301 2009-10-08  Jim Meyering  <meyering@redhat.com>
26302
26303         areadlinkat: avoid compilation failure
26304         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26305         Fix typo in comment.
26306
26307 2009-10-07  Eric Blake  <ebb9@byu.net>
26308
26309         areadlinkat-with-size: new module
26310         * modules/areadlinkat-with-size: New module.
26311         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26312         * lib/areadlink.h (areadlinkat): Declare it.
26313         * MODULES.html.sh (File system functions): Mention it.
26314         * modules/areadlinkat-with-size-tests: New test.
26315         * tests/test-areadlinkat-with-size.c: New file.
26316
26317         xreadlinkat: new module
26318         * modules/xreadlinkat: New module.
26319         * lib/xreadlinkat.c (xreadlinkat): New file.
26320         * lib/xreadlink.h (xreadlinkat): Declare it.
26321         * MODULES.html.sh (File system functions): Mention it.
26322
26323         areadlinkat: new module
26324         * lib/at-func.c (FUNC_FAIL): New define.
26325         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26326         * modules/areadlinkat: New module.
26327         * lib/linkat.c (areadlinkat): Move...
26328         * lib/areadlinkat.c (areadlinkat): ...to new file.
26329         * lib/areadlink.h (areadlinkat): Declare it.
26330         * modules/linkat (Depends-on): Add areadlinkat.
26331         * MODULES.html.sh (File system functions): Mention it.
26332         * modules/areadlinkat-tests: New test.
26333         * tests/test-areadlinkat.c: New file.
26334
26335         areadlink, areadlink-with-size: add tests
26336         * modules/areadlink-tests: New test.
26337         * modules/areadlink-with-size-tests: Likewise.
26338         * tests/test-areadlink.h: New file.
26339         * tests/test-areadlink.c: Likewise.
26340         * tests/test-areadlink-with-size.c: Likewise.
26341
26342         maint: minor cleanups
26343         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26344         _UNUSED_PARAMETER_ instead.
26345         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26346         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26347         * modules/linkat-tests (Files): Distribute test-link.h.
26348
26349         openat, utimens: whitespace cleanup
26350         * lib/openat.c: Prefer space throughout, rather than mix of 8
26351         spaces vs. tabs.
26352         * lib/at-func.c: Likewise.
26353         * lib/utimens.c: Likewise.
26354
26355         openat: avoid using wrong fd
26356         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26357         working directory chooses same fd.
26358         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26359
26360         mkdir, mkdirat: fix cygwin 1.5.x bug
26361         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26362         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26363         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26364         bug.
26365         (gl_PREREQ_MKDIR): Delete unused macro.
26366         * modules/mkdir (Files): Track file rename.
26367         (configure.ac): Update macro name.
26368         * modules/openat (Depends-on): Add mkdir.
26369         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26370
26371         mkdir, mkdirat: add tests
26372         * modules/mkdir-tests: New test.
26373         * tests/test-mkdir.h: New file.
26374         * tests/test-mkdir.c: Likewise.
26375         * tests/test-mkdirat.c: Likewise.
26376         * modules/openat-tests (Files): Add new files.
26377         (Makefile.am): Run new test.
26378
26379 2009-10-06  Eric Blake  <ebb9@byu.net>
26380
26381         doc: tweak *at function documentation
26382         * doc/posix-functions/faccessat.texi (faccessat): Mention
26383         known issue with replacement.
26384         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26385         * doc/posix-functions/linkat.texi (linkat): Likewise.
26386         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26387         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26388         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26389         * doc/posix-functions/renameat.texi (renameat): Likewise.
26390         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26391
26392         openat: fix GNU/Hurd bug in unlinkat
26393         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26394         broken.
26395         * doc/posix-functions/unlink.texi (unlink): Document this.
26396         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26397
26398         fdopendir: fix GNU/Hurd bug
26399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26400         allowing non-directory fds.
26401         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26403         * modules/dirent (Makefile.am): Substitute it.
26404         * lib/dirent.in.h (fdopendir): Declare replacement.
26405         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26406         * tests/test-fdopendir.c (main): Test something other than
26407         /dev/null, since on Hurd that behaves like a directory.
26408
26409         test-symlink: port to GNU/Hurd
26410         * tests/test-symlink.h (test_symlink): Relax expected errno.
26411
26412         doc: tweak more cygwin information
26413         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26414         now compatible with glibc.
26415         * doc/posix-functions/getopt.texi (getopt): Likewise.
26416
26417         getopt-gnu: add another test
26418         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26419         guarantee behavior relied on by m4.
26420         * tests/test-getopt.c (main): Use it.
26421         * modules/getopt-posix-tests (Depends-on): Add setenv.
26422         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26423
26424         getopt: fix compilation on darwin
26425         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26426         include.
26427         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26428         Reported by Ludovic Courtès.
26429
26430 2009-10-06  Bruno Haible  <bruno@clisp.org>
26431
26432         * modules/size_max (Description): Discourage its use.
26433         Reported by Simon Josefsson.
26434
26435 2009-10-06  Jim Meyering  <meyering@redhat.com>
26436
26437         linkat: avoid compilation failure
26438         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26439
26440 2009-10-05  Eric Blake  <ebb9@byu.net>
26441
26442         linkat: support Linux 2.6.17
26443         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26444         linkat on Linux, but allow cache variable override.
26445         * lib/linkat.c (rpl_linkat): Define override.
26446         * modules/linkat (Depends-on): Add symlinkat.
26447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26448         * modules/unistd (Makefile.am): Substitute it.
26449         * lib/unistd.in.h (linkat): Declare replacement.
26450         Reported by Pádraig Brady.
26451
26452         quotearg: port test to systems with C.UTF-8 locale
26453         * tests/test-quotearg.c (struct result_strings): Add another
26454         member, differentiating between C.ASCII and C.UTF-8 handling.
26455         (compare_strings): Add parameter.
26456         (main): Adjust all callers.
26457
26458         getopt: avoid clash with FreeBSD _getopt_internal
26459         * lib/getopt.in.h (_getopt_internal): Override the name.
26460         * lib/getopt_int.h (includes): Pick up any overrides.
26461         Reported by Reuben Thomas.
26462
26463         hash: allow C89 compilation
26464         * lib/hash.c (check_tuning): Move declaration before statement.
26465         Reported by Reuben Thomas.
26466
26467 2009-10-05  Karl Berry  <karl@gnu.org>
26468
26469         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26470
26471 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26472             Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/uname.c (uname): Use a table-driven algorithm to compute
26475         Windows NT versions.
26476
26477 2009-10-04  Bruno Haible  <bruno@clisp.org>
26478
26479         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26480         program_invocation_short_name.
26481         * modules/progname (configure.ac): Test for presence of
26482         program_invocation_short_name.
26483         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26484
26485 2009-10-04  Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/progname.c (set_program_name): Fix comment.
26488         Reported by Jim Meyering.
26489
26490 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26491             Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/uname.c: Include <string.h>.
26494         (uname): Do only one call to GetVersionEx in the common case.
26495
26496 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26497             Bruno Haible  <bruno@clisp.org>
26498
26499         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26500         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26501         (uname): Add support for Windows CE and various non-x86 CPU types.
26502
26503 2009-10-03  Bruno Haible  <bruno@clisp.org>
26504
26505         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26506         invocation to tests/configure.ac.
26507         Reported by Ian Beckwith <ianb@erislabs.net>.
26508
26509 2009-10-02  Eric Blake  <ebb9@byu.net>
26510
26511         fchdir: avoid compiler warning
26512         * lib/fchdir.c (canonicalize_file_name)
26513         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26514
26515         test-open: support mingw errno values
26516         * tests/test-open.h (test_open): Relax test.
26517         * tests/test-fopen.h (test_fopen): Likewise.
26518         * tests/test-openat-safer.c (main): Likewise.
26519
26520         open: fix opening directory on mingw
26521         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26522
26523         test-open: on GNU/Hurd, /dev/null is a directory
26524         * tests/test-fopen.h (main): Rename...
26525         (test_fopen): ...to this.  Use a guaranteed non-directory when
26526         confirming open behavior on trailing slash.
26527         * tests/test-openat-safer.c (main): Likewise.
26528         * tests/test-open.h (main): Likewise....
26529         (test_open): ...to this.
26530         * tests/test-fopen.c (main): Adjust caller.
26531         * tests/test-fopen-safer.c (main): Likewise.
26532         * tests/test-open.c (main): Likewise.
26533         * tests/test-fcntl-safer.c (main): Likewise.
26534         Reported by Samuel Thibault.
26535
26536         rename, fchdir: don't ignore chdir failure
26537         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26538         * lib/rename.c (rpl_rename) [W32]: Likewise.
26539         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26540         an empty destination directory if source cannot be renamed,
26541         although there is still possibility for failure.
26542         * doc/posix-functions/rename.texi (rename): Document the race.
26543         Reported by Jim Meyering.
26544
26545         maint: cleanup whitespace in recent commits
26546         * lib/rename.c (rpl_rename): Remove tabs.
26547         * tests/test-link.h (test_link): Likewise.
26548         * lib/fchdir.c (get_name): Likewise.
26549         Reported by Jim Meyering.
26550
26551 2009-10-02  Ben Pfaff  <blp@gnu.org>
26552
26553         relocatable-prog-wrapper: Add missing dependency on
26554         double-slash-root.
26555         * modules/relocatable-prog-wrapper: Add dependency.
26556         Reported by Ian Beckwith <ianb@erislabs.net>.
26557
26558 2009-10-02  Eric Blake  <ebb9@byu.net>
26559
26560         renameat: fix Solaris bugs
26561         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26562         needed fixing.
26563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26564         * modules/stdio (Makefile.am): Substitute it.
26565         * lib/stdio.in.h (renameat): Declare replacement.
26566         * lib/renameat.c (rpl_renameat): Implement fix.
26567
26568         renameat: new module
26569         * modules/renameat: New file.
26570         * lib/renameat.c (renameat): Likewise.
26571         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26573         * modules/stdio (Makefile.am): Substitute them.
26574         * lib/stdio.in.h (renameat): Declare it.
26575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26576         * doc/posix-functions/renameat.texi (renameat): Likewise.
26577         * modules/renameat-tests: New test.
26578         * tests/test-renameat.c: Likewise.
26579
26580         rename: fix mingw bugs
26581         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26582         directory overwrite bugs.
26583
26584         rename: fix another cygwin 1.5 bug
26585         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26586         checks.
26587         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26588         unnecessary cygwin workarounds.  Also work around bug with moving
26589         full directory onto an empty one.
26590         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26591
26592         rename-dest-slash: merge into rename module
26593         * modules/rename-dest-slash (Status): Mark obsolete.
26594         (Depends-on): Add rename.
26595         (Files): Let rename do it all.
26596         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26597         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26598         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26599         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26600         * lib/rename.c (rpl_rename): Update comments.
26601
26602         rename: fix cygwin 1.5.x bugs
26603         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26604         * lib/rename.c (rpl_rename): Work around them.
26605         * modules/rename (Depends-on): Add same-inode.
26606
26607         rename: fix Solaris 10 bug
26608         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26609         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26610         was the only bug.
26611
26612         rename: fix Solaris 9 bug
26613         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26614         on non-directory.  Avoid calling exit.
26615         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26616         strdup.
26617         * modules/rename-tests (Depends-on): Drop lstat.
26618         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26619         (gl_PREREQ_RENAME): Delete unused macro.
26620
26621         rename-dest-slash: fix NetBSD bug
26622         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26623         links.
26624         * modules/rename-dest-slash (Depends-on): Add same-inode.
26625
26626         rename-tests: new test, exposes several platform bugs
26627         * modules/rename-tests: New file.
26628         * tests/test-rename.h: Likewise.
26629         * tests/test-rename.c: Likewise.
26630         * doc/posix-functions/rename.texi (rename): Improve documentation,
26631         including bugs that will eventually be fixed in gnulib.
26632
26633 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26634
26635         * lib/uname.c: Include <stdlib.h>
26636         (uname): Assume version info is available.
26637
26638 2009-10-02  Jim Meyering  <meyering@redhat.com>
26639
26640         gnu-web-doc-update: correct --help output
26641         * build-aux/gnu-web-doc-update: Make --help output relevant.
26642
26643         gnu-web-doc-update: add standard options
26644         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26645
26646         gnu-web-doc-update: New module.
26647         Use this script to automatically update the on-line web documentation
26648         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26649         * modules/gnu-web-doc-update: New file, from coreutils.
26650         * build-aux/gnu-web-doc-update: New script.
26651
26652 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26653
26654         link: LoadLibrary is not needed.
26655         * lib/link.c: Use GetModuleHandle.
26656
26657 2009-10-01  Eric Blake  <ebb9@byu.net>
26658
26659         getopt: bump serial number
26660         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26661         change.
26662
26663         tests: tighten link, rmdir, and remove tests
26664         * tests/test-link.h (includes): No need to use <config.h> here.
26665         Clean up if directory hard link was created, otherwise test for
26666         trailing '.'.
26667         * tests/test-linkat.c (main): Simplify.
26668         * tests/test-remove.c (main): Enhance test for trailing '.'.
26669         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26670
26671 2009-10-01  Jim Meyering  <meyering@redhat.com>
26672
26673         maint.mk: requiring "make major" was annoying, for a "minor" release.
26674         What is intended is "stable", to contrast with alpha and beta,
26675         so require "make stable", not "make major".
26676         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26677         (get_tool_versions): Likewise.
26678         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26679
26680 2009-09-30  Ben Pfaff  <blp@gnu.org>
26681
26682         Fix broken build of replacement for Windows tmpfile().
26683         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26684         flags argument added along with the 'mkostemp' module.
26685
26686 2009-09-28  Bruno Haible  <bruno@clisp.org>
26687
26688         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26689         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26690         to 'remove_elt'.
26691         (gl_list_remove): Update.
26692         * lib/gl_list.c (gl_list_remove): Update.
26693         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26694         to 'remove_elt'.
26695         (gl_oset_remove): Update.
26696         * lib/gl_list.c (gl_oset_remove): Update.
26697         Reported by Eric Blake.
26698
26699 2009-09-28  Eric Blake  <ebb9@byu.net>
26700
26701         doc: mention yet more cygwin 1.7 status
26702         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26703         cygwin.
26704         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26705         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26706
26707         argp: fix test failure
26708         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26709         that are not upper-case.  Pass correct range to tolower.
26710
26711 2009-09-27  Jim Meyering  <meyering@redhat.com>
26712
26713         test-yesno: work around sparc-dash here-document infelicity
26714         Without this change, the literal \177 byte in a here document
26715         would make dash 0.5.5.1-3 access uninitialized memory.
26716         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26717         Instead, use a marker, "@", and filter through tr to create the desired
26718         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26719
26720 2009-09-27  Bruno Haible  <bruno@clisp.org>
26721
26722         Disable untested support for new flavours of ACLs on AIX.
26723         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26724         progress.
26725         * lib/set-mode-acl.c (qset_acl): Likewise.
26726
26727 2008-12-07  Bruno Haible  <bruno@clisp.org>
26728
26729         Add support for new flavours of ACLs on AIX. (Untested.)
26730         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26731         (file_has_acl): Add support for newer AIX.
26732         * lib/set-mode-acl.c (qset_acl): Likewise.
26733         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26734         Rainer Tammer <tammer@tammer.net>.
26735
26736 2009-09-26  Eric Blake  <ebb9@byu.net>
26737
26738         argp: fix compilation of getopt
26739         * lib/getopt.in.h (includes): Use different guard than glibc.
26740         Reported by Sergey Poznyakoff.
26741
26742         doc: mention more cygwin 1.7 status
26743         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26744         bug.
26745         * doc/posix-functions/execl.texi (execl): Likewise.
26746         * doc/posix-functions/execle.texi (execle): Likewise.
26747         * doc/posix-functions/execlp.texi (execlp): Likewise.
26748         * doc/posix-functions/execv.texi (execv): Likewise.
26749         * doc/posix-functions/execve.texi (execve): Likewise.
26750         * doc/posix-functions/execvp.texi (execvp): Likewise.
26751         * doc/glibc-functions/canonicalize_file_name.texi
26752         (canonicalize_file_name): Cygwin 1.7 now provides this.
26753         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26754         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26755         on AT_SYMLINK_NOFOLLOW.
26756
26757 2009-09-24  Eric Blake  <ebb9@byu.net>
26758
26759         test-linkat: make test more robust
26760         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26761
26762         getopt: fix inclusion guards for cygwin
26763         * modules/getopt-posix (Depends-on): Add include-next.
26764         (Makefile.am): Substitute more items in replacement header.
26765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26766         <getopt.h>.
26767         * lib/getopt.in.h (includes): Use split inclusion guard, and
26768         prefer <getopt.h> over include <unistd.h> when one is present.
26769         (option): Also override name of 'struct option'.
26770
26771         same-inode: revert prior change; it is not yet ready
26772         * NEWS: Undo mention of this change.
26773         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26774         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26775         * lib/cycle-check.c (cycle_check): Likewise.
26776         * lib/same.c (same_name): Likewise.
26777         * lib/at-func2.c (at_func2): Likewise.
26778
26779 2009-09-23  Eric Blake  <ebb9@byu.net>
26780
26781         linkat: new module
26782         * modules/linkat: New file.
26783         * lib/at-func2.c (at_func2): Likewise.
26784         * lib/linkat.c (linkat): Likewise.
26785         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26786         * lib/openat-priv.h (at_func2): Add declaration.
26787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26788         * modules/unistd (Makefile.am): Substitute them.
26789         * lib/unistd.in.h (linkat): Declare it.
26790         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26791         * doc/posix-functions/linkat.texi (linkat): Likewise.
26792         * doc/posix-functions/link.texi (link): Tweak wording.
26793         * tests/test-link.c (main): Move guts...
26794         * tests/test-link.h (test_link): ...into new file.
26795         * modules/linkat-tests: New test.
26796         * tests/test-linkat.c: Likewise.
26797         * modules/link-tests (Files): Ship new file.
26798         (Depends-on): Add stdbool.
26799
26800         dirname: add library-safe mdir_name
26801         * lib/dirname.h (mdir_name): New prototype.
26802         * lib/dirname.c (dir_name): Move guts...
26803         (mdir_name): ...to new function that avoids xalloc_die.
26804
26805         fchdir: another mingw fix
26806         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26807         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26808         on mingw (where it has not yet been ported), and make it optional
26809         elsewhere.
26810         (_gl_register_fd): Use it.
26811
26812         same-inode: make SAME_INODE tri-state, to port to mingw
26813         * NEWS: Mention this change.
26814         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26815         st_ino always being 0.
26816         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26817         * lib/cycle-check.c (cycle_check): Likewise.
26818         * lib/same.c (same_name): Likewise.
26819
26820         lstat: avoid mingw compilation error
26821         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26823         lstat ourselves.
26824         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26825         was adequate.
26826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26827         the checks for lstat.
26828         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26829
26830         link: fix test failure on Solaris 9
26831         * lib/link.c (rpl_link): Don't assume link will catch bogus
26832         trailing slash on source.
26833
26834         test-symlinkat: enhance test
26835         * tests/test-readlink.c (main): Move guts...
26836         * tests/test-readlink.h (test_readlink): ...into new file.
26837         * tests/test-symlink.c (main): Move guts...
26838         * tests/test-symlink.h (test_symlink): ...into new file.
26839         * tests/test-symlinkat.c (main): Use new files for further
26840         coverage.
26841         (do_symlink, do_readlink): New helper functions.
26842         * modules/symlink-tests (Files): Ship new file.
26843         (Depends-on): Add stdbool.
26844         * modules/readlink-tests (Files): Ship new file.
26845         (Depends-on): Add stdbool.
26846         * modules/symlinkat-tests (Files): Use new files.
26847
26848 2009-09-23  Eric Blake  <ebb9@byu.net>
26849
26850         readlink: document portability issue with symlink length
26851         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26852         systems have bogus st_size on symlinks, and mention the
26853         areadlink-with-size module.
26854         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26855         * doc/posix-functions/readlink.texi (readlink): Mention the
26856         areadlink module, and ERANGE failure.
26857         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26858         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26859
26860         readlink: fix Solaris 9 bug with trailing slash
26861         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26862         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26863         * doc/posix-functions/readlink.texi (readlink): Document this.
26864         * modules/readlink-tests: New test.
26865         * tests/test-readlink.c: Likewise.
26866
26867         readlink: fix cygwin 1.5.x bug with return type
26868         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26869         * lib/unistd.in.h (readlink): Use ssize_t.
26870         * lib/readlink.c (readlink): Likewise.
26871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26872         * modules/unistd (Makefile.am): Substitute it.
26873         * lib/unistd.in.h (readlink): Declare replacement.
26874         * doc/posix-functions/readlink.texi (readlink): Document this.
26875
26876         symlink: use throughout gnulib
26877         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26878         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26879         symlink is not used.
26880         * modules/symlinkat (Depends-on): Add symlink.
26881         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26882         * modules/canonicalize-tests (Depends-on): Likewise.
26883         * modules/lstat-tests (Depends-on): Likewise.
26884         * modules/openat-tests (Depends-on): Likewise.
26885         * modules/remove-tests (Depends-on): Likewise.
26886         * modules/rmdir-tests (Depends-on): Likewise.
26887         * modules/unlink-tests (Depends-on): Likewise.
26888         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26889         * tests/test-canonicalize.c (symlink): Likewise.
26890         * tests/test-fstatat.c (symlink): Likewise.
26891         * tests/test-lstat.c (symlink): Likewise.
26892         * tests/test-remove.c (symlink): Likewise.
26893         * tests/test-rmdir.c (symlink): Likewise.
26894         * tests/test-unlink.c (symlink): Likewise.
26895         * tests/test-unlinkat.c (symlink): Likewise.
26896
26897         symlink: new module, for Solaris 9 bug
26898         * modules/symlink: New file.
26899         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26900         * lib/symlink.c: Likewise.
26901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26902         * modules/unistd (Makefile.am): Substitute them.
26903         * lib/unistd.in.h (symlink): Declare replacement.
26904         * MODULES.html.sh (File system functions): Mention it.
26905         * doc/posix-functions/symlink.texi (symlink): Likewise.
26906         * modules/symlink-tests: New test.
26907         * tests/test-symlink.c: Likewise.
26908
26909 2009-09-23  Bruno Haible  <bruno@clisp.org>
26910
26911         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26912         when needed.
26913         Test case: gnulib-tool --import --with-tests atexit inttypes.
26914         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26915
26916 2009-09-23  Bruno Haible  <bruno@clisp.org>
26917
26918         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26919         subcommand, not in a subshell.
26920
26921 2009-09-22  Eric Blake  <ebb9@byu.net>
26922
26923         unistd: sort replacement declarations
26924         * lib/unistd.in.h: Sort declarations.
26925
26926         open, openat: minor optimization
26927         * lib/open.c (open): If open succeeded, len is non-zero.
26928         * lib/openat.c (rpl_openat): Likewise.
26929
26930         link-follow: ensure correct result
26931         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26932         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26933         distinguish between possible failures.
26934
26935 2009-09-21  Eric Blake  <ebb9@byu.net>
26936
26937         fts: avoid compiler warning
26938         * lib/fts.c (dirent_inode_sort_may_be_useful)
26939         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26940
26941 2009-09-19  Bruno Haible  <bruno@clisp.org>
26942
26943         * lib/progreloc.c (canonicalize_file_name): New declaration.
26944
26945 2009-09-19  Eric Blake  <ebb9@byu.net>
26946
26947         link: fix quoting
26948         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26949
26950         openat: fix openat bugs on Solaris 9
26951         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26952         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26953         * modules/openat (Depends-on): Add open.
26954         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26955         * modules/fcntl-h (Makefile.am): Substitute it.
26956         * lib/fcntl.in.h (openat): Declare replacement.
26957         * doc/posix-functions/openat.texi (openat): Document this.
26958
26959         openat: move fstatat and unlinkat into correct files
26960         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26961         compiled.
26962         * lib/openat.c (fstatat, unlinkat): Move...
26963         * lib/fstatat.c (fstatat): ...into correct files.
26964         * lib/unlinkat.c (unlinkat): Likewise.
26965
26966         openat: fix unlinkat bugs on Solaris 9
26967         * lib/unlinkat.c (unlinkat): New file.
26968         * modules/openat (Depends-on): Add unlink.
26969         (Files): Distribute it.
26970         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26971         trailing slash behavior is broken.
26972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26973         * modules/unistd (Makefile.am): Substitute it.
26974         * lib/unistd.in.h (unlinkat): Declare replacement.
26975         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26976
26977         openat: fix fstatat bugs on Solaris 9
26978         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26979         stat.
26980         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26981
26982         test-unlinkat: enhance test, to expose Solaris 9 bug
26983         * tests/test-unlink.c (main): Factor guts...
26984         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26985         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26986         * tests/test-rmdir.c (main): Adjust caller.
26987         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26988         (unlinker): New helper function.
26989         (rmdirat): Enhance check.
26990         * modules/rmdir-tests (Depends-on): Add stdbool.
26991         * modules/unlink-tests (Depends-on): Likewise.
26992         (Files): Add test-unlink.h.
26993         * modules/openat-tests (Files): Likewise.
26994         (Depends-on): Add unlinkdir.
26995
26996         test-fstatat: new test, to expose Solaris 9 bugs
26997         * tests/test-stat.c (main): Factor guts...
26998         * tests/test-stat.h (test_stat_func): ...into new file.
26999         * tests/test-lstat.c (main): Factor guts...
27000         * tests/test-lstat.h (test_lstat_func): ...into new file.
27001         * tests/test-fstatat.c: New file.
27002         * modules/stat-tests (Files): Add test-stat.h.
27003         * modules/lstat-tests (Files): Add test-lstat.h.
27004         (Depends-on): Add stdbool.
27005         * modules/openat-tests (Depends-on): Add pathmax.
27006         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27007         (Makefile.am): Run new test.
27008
27009         remove: new module, for mingw and Solaris 9 bugs
27010         * modules/remove: New file.
27011         * lib/remove.c: Likewise.
27012         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27014         * modules/stdio (Makefile.am): Use them.
27015         * lib/stdio.in.h (remove): Declare replacement.
27016         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27017         * doc/posix-functions/remove.texi (remove): Likewise.
27018         * modules/remove-tests: New test.
27019         * tests/test-remove.c: Likewise.
27020
27021         unlink: new module, for Solaris 9 bug
27022         * modules/unlink: New file.
27023         * lib/unlink.c: Likewise.
27024         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27026         * modules/unistd (Makefile.am): Use them.
27027         * lib/unistd.in.h (stat): Declare replacement.
27028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27029         * doc/posix-functions/unlink.texi (unlink): Likewise.
27030         * modules/unlink-tests: New test.
27031         * tests/test-unlink.c: Likewise.
27032
27033         lstat: fix Solaris 9 bug
27034         * lib/lstat.c (lstat): Also check for trailing slash on
27035         non-symlink, non-directories.  Use stat module to simplify logic.
27036         * doc/posix-functions/lstat.texi (lstat): Document it.
27037         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27038         (configure.ac): Check for symlink.
27039         * tests/test-lstat.c (main): Add more tests.
27040
27041         stat: add as dependency to other modules
27042         * modules/chown (Depends-on): Add stat.
27043         * modules/euidaccess (Depends-on): Likewise.
27044         * modules/fchdir (Depends-on): Likewise.
27045         * modules/isdir (Depends-on): Likewise.
27046         * modules/link (Depends-on): Likewise.
27047         * modules/lstat (Depends-on): Likewise.
27048         * modules/mkdir-p (Depends-on): Likewise.
27049         * modules/modechange (Depends-on): Likewise.
27050         * modules/open (Depends-on): Likewise.
27051         * modules/readlink (Depends-on): Likewise.
27052         * modules/same (Depends-on): Likewise.
27053
27054         stat: fix Solaris 9 bug
27055         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27056         slash.
27057         * lib/stat.c (rpl_stat): Work around it.
27058         * doc/posix-functions/stat.texi (stat): Update documentation.
27059
27060         stat: new module, for mingw bug
27061         * modules/stat: New file.
27062         * lib/stat.c: Likewise.
27063         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27065         * modules/sys_stat (Makefile.am): Use them.
27066         * lib/sys_stat.in.h (stat): Declare replacement.
27067         * lib/openat.c (fstatat): Deal with lstat and stat being function
27068         macros.
27069         * modules/openat (Depends-on): Add inline.
27070         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27071         * doc/posix-functions/stat.texi (stat): Likewise.
27072         * modules/stat-tests: New test.
27073         * tests/test-stat.c: Likewise.
27074
27075 2009-09-19  Jim Meyering  <meyering@redhat.com>
27076
27077         syntax-check: detect unnecessary inclusion of canonicalize.h
27078         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27079
27080 2009-09-19  Eric Blake  <ebb9@byu.net>
27081
27082         canonicalize-lgpl: adjust clients to use correct header
27083         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27084         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27085         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27086         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27087         * lib/progreloc.c (includes): Likewise.
27088
27089 2009-09-19  Jim Meyering  <meyering@redhat.com>
27090
27091         test-posixtm.c: correct a comment
27092         * tests/test-posixtm.c: Correct first-line comment.
27093         Spotted by Eric Blake.
27094
27095 2009-09-16  Jim Meyering  <meyering@redhat.com>
27096
27097         posixtm-tests: make T const-correct; add a test case
27098         * tests/test-posixtm.c (T): Declare const.
27099         Add a test for -(2^31+1).
27100         Remove useless can-succeed-only-in-2002 test.
27101
27102         posixtm-tests: adjust the sole failing test
27103         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27104         expected output matches what mktime now produces.  Cross-checked via
27105         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27106
27107         posixtm: move #ifdef'd tests into a new module
27108         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27109         * tests/test-posixtm.c: ... this new file.
27110         * modules/posixtm-tests: New module.
27111
27112 2009-09-19  Eric Blake  <ebb9@byu.net>
27113
27114         openat: simplify use of at-func.c
27115         * lib/at-func.c (includes): Include prerequisites here, to
27116         simplify requirements on client files.
27117         * lib/openat-priv.h: Add double-inclusion guard.
27118         * lib/faccessat.c (includes): Simplify.
27119         * lib/fchmodat.c (includes): Likewise.
27120         * lib/fchownat.c (includes): Likewise.
27121         * lib/mkdirat.c (includes): Likewise.
27122         * lib/mkfifoat.c (includes): Likewise.
27123         * lib/symlinkat.c (includes): Likewise.
27124
27125         openat: allow return of fd 0
27126         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27127         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27128         unistd-safer.
27129         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27130         <fcntl.h>; this module does not leak fds.
27131         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27132         must be allowed to return 0, leaving openat_safer to add the
27133         safety.
27134         (openat_permissive): Avoid writing to just-opened fd 2 if
27135         restoring the current directory fails.
27136         * lib/openat-die.c (openat_restore_fail): Add comment.
27137         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27138         (save_cwd): Guarantee safe fd, but without use of open_safer.
27139         * tests/test-openat.c: New test.
27140         * modules/openat-tests (Files, Makefile.am): Distribute and build
27141         new file.
27142
27143         relocatable-prog-wrapper: fix build
27144         * modules/relocatable-prog-wrapper (Files): Update name of
27145         canonicalize m4 file, broken on 2009-09-17.
27146         Reported by emad hajjar <aleppos@hotmail.com>.
27147
27148 2009-09-19  Bruno Haible  <bruno@clisp.org>
27149
27150         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27151         * lib/safe-alloc.c: Likewise.
27152         Reported by Ian Beckwith <ianb@erislabs.net>.
27153
27154 2009-09-18  Bruno Haible  <bruno@clisp.org>
27155
27156         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27157         Reported by <erobles@sensacd.com.mx>.
27158
27159 2009-09-17  Eric Blake  <ebb9@byu.net>
27160
27161         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27162         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27163         slashes when checking if last component is missing.
27164         * tests/test-canonicalize.c (main): Test this.
27165
27166         canonicalize, canonicalize-lgpl: honor // if distinct from /
27167         * modules/canonicalize (Files): Add double-slash-root.m4.
27168         * modules/canonicalize-lgpl (Files): Likewise.
27169         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27170         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27171         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27172         fallback definition.
27173         (canonicalize_filename_mode): Use it to protect //.
27174         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27175         (__realpath): Likewise.
27176         * tests/test-canonicalize.c (main): Test this.
27177         * tests/test-canonicalize-lgpl.c (main): Likewise.
27178         * modules/canonicalize-tests (Depends-on): Add same-inode.
27179         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27180
27181         canonicalize-lgpl: fix glibc bug with trailing slash
27182         * m4/canonicalize-lgpl.m4: Move contents...
27183         * m4/canonicalize.m4: ...here.
27184         (gl_CANONICALIZE_LGPL): Factor realpath check...
27185         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27186         glibc 2.3.5 bug, fixed 2005-04-27.
27187         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27188         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27189         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27190         * modules/canonicalize-lgpl (Files): Manage file rename.
27191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27192         * modules/stdlib (Makefile.am): Substitute witness.
27193         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27194         is needed.
27195         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27196         replacement is required.
27197         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27198         * doc/glibc-functions/canonicalize_file_name.texi
27199         (canonicalize_file_name): Document this.
27200         * doc/posix-functions/realpath.texi (realpath): Likewise.
27201
27202         canonicalize-lgpl: reject non-directory with trailing slash
27203         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27204         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27205         catches failures in glibc 2.3.5.
27206         * tests/test-canonicalize.c (main): Likewise.
27207
27208         canonicalize-lgpl: use native realpath if it works
27209         * lib/canonicalize-lgpl.c (realpath): Guard with
27210         FUNC_REALPATH_WORKS.
27211         * lib/stdlib.in.h (realpath): Make declaration optional based on
27212         HAVE_REALPATH.
27213         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27214         native realpath works.
27215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27216         * modules/stdlib (Makefile.am): Substitute witness.
27217
27218         canonicalize, canonicalize-lgpl: use <stdlib.h>
27219         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27220         (Include): Mention <stdlib.h>.
27221         (configure.ac): Mention functions we provide.
27222         * modules/canonicalize (configure.ac): Likewise.
27223         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27224         realpath if canonicalize_file_name is missing.
27225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27226         * modules/stdlib (Makefile.am): Substitute witnesses.
27227         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27228         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27229         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27230         * NEWS: Document this.
27231         * doc/glibc-functions/canonicalize_file_name.texi
27232         (canonicalize_file_name): Likewise.
27233         * doc/posix-functions/realpath.texi (realpath): Likewise.
27234         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27235
27236         test-canonicalize: consolidate into single C program
27237         * tests/test-canonicalize.sh: Delete; move setup into...
27238         * tests/test-canonicalize.c (main): ...the program, making it
27239         easier to run in debugger.  Add some tests.
27240         * modules/canonicalize-tests (Files): Remove unused file.
27241         (Depends-on): Add progname.
27242         (configure.ac, Makefile.am): Simplify.
27243
27244         test-canonicalize-lgpl: consolidate into single C program
27245         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27246         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27247         easier to run in debugger.  Add some tests.
27248         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27249         (configure.ac, Makefile.am): Simplify.
27250
27251         canonicalize: avoid resolvepath
27252         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27253         unnecessary checks.
27254         * lib/canonicalize.c (includes): Simplify.
27255         (canonicalize_file_name): Drop resolvepath implementation.
27256         * modules/canonicalize (Depends-on): Drop filenamecat.
27257
27258         canonicalize: don't lose errno
27259         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27260         over calls to free.
27261
27262         canonicalize: simplify errno handling
27263         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27264         assignment.
27265
27266         canonicalize, canonicalize-lgpl: update module dependencies
27267         * modules/canonicalize (Depends-on): Add extensions, lstat,
27268         pathmax, stdlib.
27269         (Files): Drop pathmax.h.
27270         (configure.ac): Adjust macro name.
27271         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27272         lstat, stdlib, sys_stat.
27273         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27274         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27275         extensions.
27276         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27277         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27278         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27279         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27280         declaration, if available.
27281         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27282         we can rely on the readlink module.
27283         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27284         (includes): Use <unistd.h> unconditionally.
27285
27286 2009-09-17  Eric Blake  <ebb9@byu.net>
27287
27288         maint: make Include sections of modules consistent
27289         * modules/alloca: Use only header name; no need to list #include.
27290         * modules/alloca-opt: Likewise.
27291         * modules/arpa_inet: Likewise.
27292         * modules/canon-host: Likewise.
27293         * modules/configmake: Likewise.
27294         * modules/dirent: Likewise.
27295         * modules/eealloc: Likewise.
27296         * modules/environ: Likewise.
27297         * modules/fchdir: Likewise.
27298         * modules/fcntl: Likewise.
27299         * modules/fcntl-h: Likewise.
27300         * modules/gethrxtime: Likewise.
27301         * modules/gettime: Likewise.
27302         * modules/ignore-value: Likewise.
27303         * modules/inet_ntop: Likewise.
27304         * modules/inet_pton: Likewise.
27305         * modules/inttypes: Likewise.
27306         * modules/isnand-nolibm: Likewise.
27307         * modules/isnanf-nolibm: Likewise.
27308         * modules/mbchar: Likewise.
27309         * modules/mbfile: Likewise.
27310         * modules/mbiter: Likewise.
27311         * modules/mbuiter: Likewise.
27312         * modules/netdb: Likewise.
27313         * modules/netinet_in: Likewise.
27314         * modules/nproc: Likewise.
27315         * modules/pagealign_alloc: Likewise.
27316         * modules/poll: Likewise.
27317         * modules/printf-frexp: Likewise.
27318         * modules/pthread: Likewise.
27319         * modules/putenv: Likewise.
27320         * modules/random_r: Likewise.
27321         * modules/relocatable-prog: Likewise.
27322         * modules/search: Likewise.
27323         * modules/select: Likewise.
27324         * modules/selinux-h: Likewise.
27325         * modules/settime: Likewise.
27326         * modules/signal: Likewise.
27327         * modules/size_max: Likewise.
27328         * modules/socklen: Likewise.
27329         * modules/ssize_t: Likewise.
27330         * modules/stdarg: Likewise.
27331         * modules/stdbool: Likewise.
27332         * modules/stddef: Likewise.
27333         * modules/stdint: Likewise.
27334         * modules/stdio: Likewise.
27335         * modules/stdlib: Likewise.
27336         * modules/string: Likewise.
27337         * modules/strings: Likewise.
27338         * modules/sys_file: Likewise.
27339         * modules/sys_ioctl: Likewise.
27340         * modules/sys_select: Likewise.
27341         * modules/sys_socket: Likewise.
27342         * modules/sys_stat: Likewise.
27343         * modules/sys_time: Likewise.
27344         * modules/sys_times: Likewise.
27345         * modules/sys_utsname: Likewise.
27346         * modules/sys_wait: Likewise.
27347         * modules/sysexits: Likewise.
27348         * modules/time: Likewise.
27349         * modules/times: Likewise.
27350         * modules/tmpfile: Likewise.
27351         * modules/trim: Likewise.
27352         * modules/unistd: Likewise.
27353         * modules/wchar: Likewise.
27354         * modules/wctype: Likewise.
27355
27356 2009-09-17  Bruno Haible  <bruno@clisp.org>
27357
27358         Make getdate.y compile on QNX and NetBSD 5 / i386.
27359         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27360         TIME_T_FITS_IN_LONG_INT.
27361         * lib/getdate.y (long_time_t): New type.
27362         (relative_time): Change type of 'seconds' field to long_time_t.
27363         (get_date): Update types of local variables. Check against overflow
27364         during conversion from long_time_t to time_t.
27365         Reported by Matt Kraai <kraai@ftbfs.org>
27366         and Hasso Tepper <hasso@netbsd.org>.
27367
27368 2009-09-17  Bruno Haible  <bruno@clisp.org>
27369
27370         * modules/COPYING: Update copyright years.
27371         * modules/README: Likeiwse.
27372         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27373         Reported by Ian Beckwith <ianb@erislabs.net>.
27374
27375 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27376
27377         * users.txt: Update references for gnuit package.
27378
27379 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27380
27381         * m4/getdelim.m4: Fix typo in copyright line.
27382
27383 2009-09-17  Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/atoll.c: Use the standard header with GPL copyright.
27386         * lib/argz.in.h: Likewise.
27387         * lib/glob.c: Likewise.
27388         * lib/glob-libc.h: Likewise.
27389         * lib/random_r.c: Likewise.
27390         * lib/siglist.h: Likewise.
27391         * lib/strsignal.c: Likewise.
27392         Reported by Ian Beckwith <ianb@erislabs.net>.
27393
27394 2009-09-17  Eric Blake  <ebb9@byu.net>
27395
27396         rmdir: ensure correct dependency order
27397         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27398
27399 2009-09-17  Bruno Haible  <bruno@clisp.org>
27400
27401         Disable assertion that fails on NetBSD 5 / i386.
27402         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27403         Reported by Sam Steingold <sds@gnu.org>
27404         and Hasso Tepper <hasso@netbsd.org>.
27405
27406 2009-09-16  Eric Blake  <ebb9@byu.net>
27407
27408         unlinkdir: port to mingw
27409         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27410         on which no one can unlink a directory.
27411
27412         stdlib: sort witness names
27413         * modules/stdlib (Makefile.am): Sort replacements.
27414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27415         * lib/stdlib.in.h: Likewise.
27416
27417         parse-duration-tests: avoid link failure
27418         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27419         LIBINTL.
27420         Reported by Tom G. Christensen.
27421
27422         openat-tests: ensure unlinkat behaves like rmdir
27423         * tests/test-rmdir.c (main): Factor guts...
27424         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27425         * modules/rmdir-tests (Files): Ship new file.
27426         * modules/openat-tests: New test.
27427         * tests/test-unlinkat.c: Likewise.
27428
27429         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27430         * modules/rmdir-errno (Status, Notice): Now obsolete.
27431
27432         rmdir: work around cygwin 1.5.x and mingw bugs
27433         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27434         * lib/rmdir.c (rmdir): Work around it.
27435         * modules/rmdir (Status, Notice): No longer obsolete.
27436         (Files): Add dos.m4.
27437         (Depends-on): Add unistd.
27438         (configure.ac): Set witnesses.
27439         (License): Relax to LGPLv2+.
27440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27441         * modules/unistd (Makefile.am): Substitute witnesses.
27442         * lib/unistd.in.h (rmdir): Declare replacement.
27443         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27444         * modules/rmdir-tests: New tests.
27445         * tests/test-rmdir.c: Likewise.
27446
27447 2009-09-15  Eric Blake  <ebb9@byu.net>
27448
27449         fchdir: improve use of replacement functions
27450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27453         REPLACE_CLOSEDIR.
27454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27455         * modules/sys_stat (Makefile.am): Substitute correct witness.
27456         * modules/dirent (Makefile.am): Likewise.
27457         * modules/unistd (Makefile.am): Likewise.
27458         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27459         * lib/unistd.in.h (dup): Likewise.
27460         * lib/sys_stat.in.h (fstat): Likewise.
27461
27462         maint: ignore gnulib-tool temp files
27463         * .gitignore: Ignore files created during gnulib-tool --test.
27464
27465 2009-09-13  Jim Meyering  <meyering@redhat.com>
27466
27467         posixtm: don't reject a time that specify "60" as the number of seconds
27468         * lib/posixtm.c (posixtime): The code to reject invalid dates
27469         would also reject a time specified with the .60 suffix.
27470         But POSIX allows that, in order to accommodate leap seconds.
27471         So don't reject it.
27472         (main): Adjust tests accordingly.
27473         * modules/posixtm (Depends-on): Add stpcpy.
27474
27475 2009-09-11  Jim Meyering  <meyering@redhat.com>
27476
27477         announce-gen: include [$release_type] in emitted Subject:
27478         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27479         e.g., [stable] in the emitted Subject: line.
27480
27481 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27482
27483         Remove obsolete macros from several modules.
27484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27485         obsolete Autoconf macros with their modern counterparts.
27486         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27487         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27489         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27490         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27494         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27495         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27496         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27497         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27498         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27499         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27500         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27501         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27502         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27503         * m4/time_r.m4 (gl_TIME_R): Likewise.
27504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27505         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27506         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27507
27508         Fix copyright header in build-aux scripts.
27509         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27510         recommendation.
27511         * build-aux/ncftpput-ftp: Likewise.
27512         * build-aux/update-copyright: Likewise.
27513
27514 2009-09-09  Eric Blake  <ebb9@byu.net>
27515
27516         test-link: allow Linux choice of errno
27517         * tests/test-link.c (main): Relax test for alternate error.
27518
27519         strndup: fix improper m4 caching
27520         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27521         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27522         (gl_PREREQ_STRNDUP): Delete.
27523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27524         * modules/string (Makefile.am): Substitute it.
27525         * lib/string.in.h (strndup): Modernize prototype.
27526
27527         getcwd: port to mingw
27528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27529         different from the POSIX assumptions made throughout the getcwd
27530         module; fortunately, the mingw getcwd does not need replacement.
27531         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27532         * modules/getcwd-tests: New test.
27533         * tests/test-getcwd.c: Likewise.
27534
27535         link: fix platform bugs
27536         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27537         * lib/link.c (link): Work around them.  Fix related mingw bug.
27538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27539         * modules/unistd (Makefile.am): Substitute it.
27540         * lib/unistd.in.h (link): Declare replacement.
27541         * doc/posix-functions/link.texi (link): Document this.
27542         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27543
27544         test-link: consolidate into single C program, test more cases
27545         * tests/test-link.sh: Delete.
27546         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27547         at least Cygwin and Solaris.
27548         * modules/link-tests (Files): Remove unused file.
27549         (Depends-on): Add errno, sys_stat.
27550         (Makefile.am): Simplify.
27551
27552 2009-09-08  Bruno Haible  <bruno@clisp.org>
27553
27554         Work around towlower, towupper bug on mingw.
27555         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27556         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27557         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27558         * doc/posix-functions/towupper.texi: Likewise.
27559         Reported by Eric Blake.
27560
27561 2009-09-08  Jim Meyering  <meyering@redhat.com>
27562
27563         build: don't try to run autoheader if we don't use it
27564         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27565         is not used in configure.ac.
27566
27567 2009-09-08  Eric Blake  <ebb9@byu.net>
27568
27569         euidaccess: fix compilation error
27570         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27571
27572         rawmemchr: relax license
27573         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27574         okay.
27575         Reported by Jim Meyering.
27576
27577         mkfifoat: new module
27578         * modules/mkfifoat: New file.
27579         * lib/mkfifoat.c: Likewise.
27580         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27582         * modules/sys_stat (Makefile.am): Use them.
27583         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27584         * MODULES.html.sh (File system functions): Mention module.
27585         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27586         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27587         * modules/mkfifoat-tests: New test.
27588         * tests/test-mkfifoat.c: Likewise.
27589
27590         strchrnul: relax license
27591         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27592         okay.
27593         Reported by Jim Meyering.
27594
27595 2009-09-08  Eric Blake  <ebb9@byu.net>
27596
27597         fstatat: fix compilation on Solaris
27598         * lib/fstatat.c (includes): Add fcntl.h.
27599         Reported by Pádraig Brady.
27600
27601 2009-09-07  Eric Blake  <ebb9@byu.net>
27602
27603         rename: modernize replacement
27604         * modules/rename (Depends-on): Add stdio.
27605         (configure.ac): Declare witness.
27606         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27607         stdio take care of replacement.
27608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27609         * modules/stdio (Makefile.am): Substitute them.
27610         * lib/stdio.in.h (rename): Declare replacement.
27611         * lib/rename.c (includes): Allow cross-compilation to non-windows
27612         machines.
27613         * doc/posix-functions/rename.texi (rename): Improve
27614         documentation.
27615
27616         stdio: sort witness names
27617         * modules/stdio (Makefile.am): Sort replacements.
27618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27619         * lib/stdio.in.h: Likewise.
27620
27621         getcwd: minor cleanups
27622         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27623         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27624
27625         openat: provide more convenience names
27626         * modules/faccessat (configure.ac): Add C witness.
27627         * lib/unistd.in.h (readlinkat): Fix typo.
27628         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27629         convenience wrappers.
27630         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27631         wrappers in syntax checks.
27632
27633 2009-09-06  Eric Blake  <ebb9@byu.net>
27634
27635         doc: fix comments in recent patches
27636         * lib/faccessat.c: Mention correct function.
27637         * lib/fchmodat.c: Likewise.
27638         * lib/fchownat.c: Likewise.
27639         * lib/symlinkat.c: Likewise.
27640         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27641         constants.
27642
27643         faccessat, symlinkat: continue cleanup of previous patch
27644         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27646         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27648         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27649         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27650         set.
27651
27652 2009-09-06  Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27655         (fstatat): Declare if GNULIB_FSTATAT is set.
27656         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27657         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27658         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27659         * modules/fcntl-h (Files): Remove m4/openat.m4.
27660         * modules/sys_stat (Files): Remove m4/openat.m4.
27661         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27662         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27663         * modules/unistd (Files): Remove m4/openat.m4.
27664         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27665         GNULIB_OPENAT.
27666         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27667         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27668         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27669         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27670         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27671         gl_OPENAT_DEFAULTS.
27672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27673         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27674         Don't require gl_OPENAT_DEFAULTS.
27675         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27676         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27677         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27678         (gl_OPENAT_DEFAULTS): Remove macro.
27679
27680 2009-09-06  Bruno Haible  <bruno@clisp.org>
27681
27682         * modules/openat (configure.ac): Remove unneeded witness.
27683
27684 2009-09-06  Bruno Haible  <bruno@clisp.org>
27685
27686         Set errno to ENOSYS when a function is entirely unsupported.
27687         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27688         EOPNOTSUPP.
27689         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27690         * modules/chown (Depends-on): Remove errno.
27691
27692 2009-09-06  Bruno Haible  <bruno@clisp.org>
27693
27694         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27695
27696 2009-09-06  Bruno Haible  <bruno@clisp.org>
27697
27698         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27699
27700 2009-09-06  Ben Pfaff  <blp@gnu.org>
27701             Bruno Haible  <bruno@clisp.org>
27702
27703         Work around a glibc bug in strtok_r.
27704         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27705         Undefine if UNDEFINE_STRTOK_R is set.
27706         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27708         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27710         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27711         UNDEFINE_STRTOK_R.
27712         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27713
27714 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27715
27716         exclude: minor fix
27717         * lib/exclude.c: Include wctype.h
27718
27719 2009-09-06  Akim Demaille  <demaille@gostai.com>
27720
27721         bootstrap: improve error message
27722         * build-aux/bootstrap (find_tool): Upon failure, report the list
27723         of candidates.
27724         Honor the initial value of the envvar.
27725
27726 2009-09-05  Eric Blake  <ebb9@byu.net>
27727
27728         symlinkat: new module
27729         * modules/symlinkat: New file.
27730         * lib/symlinkat.c: Likewise.
27731         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27733         * modules/unistd (Makefile.am): Use them.
27734         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27735         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27736         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27737         * MODULES.html.sh (File system functions): Mention module.
27738         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27739         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27740         * modules/symlinkat-tests: New test.
27741         * tests/test-symlinkat.c: Likewise.
27742
27743         test-openat-safer: add more checks
27744         * tests/test-openat-safer.c (main): Check more code paths.
27745
27746 2009-09-05  Jim Meyering  <meyering@redhat.com>
27747
27748         syntax-check: detect unnecessary inclusion of openat.h
27749         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27750
27751 2009-09-05  Bruno Haible  <bruno@clisp.org>
27752
27753         Support towlower, towupper.
27754         * doc/posix-functions/towlower.texi: Mention module wctype.
27755         * doc/posix-functions/towupper.texi: Likewise.
27756         * lib/wctype.in.h (towlower, towupper): New functions.
27757         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27758         (ASSERT): New macro.
27759         (e): New variable.
27760         (main): Test also towlower, towupper. Test WEOF argument.
27761         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27762
27763 2009-09-05  Bruno Haible  <bruno@clisp.org>
27764
27765         Fix conversion behaviour when the input is invalid.
27766         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27767         mark occurring in first pass of indirect conversion.
27768         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27769         input.
27770         Found by clang's static analyzer.
27771
27772 2009-09-05  Bruno Haible  <bruno@clisp.org>
27773
27774         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27775         where direct conversion is possible.
27776
27777 2009-09-04  Eric Blake  <ebb9@byu.net>
27778
27779         openat: fail with ENOENT on empty name
27780         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27781         buffer.
27782
27783         link-follow: fix logic bug in prior patch
27784         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27785         reversed sense of yes and no in prior patch.  Avoid confusing
27786         compilation failure with desired semantics.
27787
27788         link-follow: accomodate mingw and cross-compilation
27789         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27790         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27791         cross-compilation results to -1, to make linkat easier to
27792         implement when cross-compiling.  Trivially support mingw.
27793         * modules/link-follow (configure.ac): Call new name.
27794         * NEWS: Mention this.
27795
27796 2009-09-03  Eric Blake  <ebb9@byu.net>
27797
27798         faccessat: compile replacement
27799         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27800         needed.
27801
27802         fts: fix compilation error
27803         * lib/fts.c (includes): Re-add "openat.h", for
27804         openat_needs_fchdir.
27805
27806         faccessat: new module
27807         * modules/faccessat: New file.
27808         * lib/faccessat.c: Likewise.
27809         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27811         * modules/unistd (Makefile.am): Use it.
27812         * lib/unistd.in.h (faccessat): Declare it.
27813         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27814         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27815         * MODULES.html.sh (File system functions): Mention it.
27816         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27817         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27818
27819         euidaccess: prefer POSIX over non-standard implementation
27820         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27821         * lib/euidaccess.c (euidaccess): Use it if available.
27822
27823         openat: make template easier to use
27824         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27825         AT_FUNC_F2 to be undefined.
27826         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27827         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27828         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27829         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27830         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27831         Likewise.
27832         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27833         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27834         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27835         Likewise.
27836
27837         openat: declare in POSIX headers
27838         * NEWS: Mention this.
27839         * modules/openat (configure.ac): Declare witnesses.
27840         (Depends-on): Add fcntl-h, sys_stat, unistd.
27841         (Include): Mention correct headers.
27842         * modules/fcntl-h (Depends-on): Add link-warning.
27843         (Files): Add openat.m4.
27844         (Makefile.am): Substitute witnesses.
27845         * modules/sys_stat (Files, Makefile.am): Likewise.
27846         * modules/unistd (Files, Makefile.am): Likewise.
27847         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27848         (gl_OPENAT_DEFAULTS): New macro.
27849         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27852         (SYS_STAT_H): Remove unused variable.
27853         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27854         * lib/fcntl--.h (includes): Remove unneeded header.
27855         * lib/openat-safer.c (includes): Likewise.
27856         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27857         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27858         appropriate headers.
27859         (__OPENAT_PREFIX): Delete.
27860         * lib/fcntl.in.h (openat): Provide declaration.
27861         (AT_FDCWD): Fix Solaris bug.
27862         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27863         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27864         * lib/fchmodat.c (includes):  Adjust to find declaration.
27865         * lib/fchownat.c (includes): Likewise.
27866         * lib/mkdirat.c (includes): Likewise.
27867         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27868         still visible.
27869
27870 2009-09-02  Eric Blake  <ebb9@byu.net>
27871
27872         errno: use consistently
27873         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27874         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27875         * lib/canonicalize.c (ELOOP): Likewise.
27876         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27877         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27878         * lib/lchown.c (EOPNOTSUPP): Likewise.
27879         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27880         * lib/savewd.c (ESTALE): Likewise.
27881         * lib/settime.c (ENOSYS): Likewise.
27882         * lib/utimens.c (ENOSYS): Likewise.
27883         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27884         * lib/chdir-safer.c (ELOOP): Likewise.
27885         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27886         * modules/c-stack (Depends-on): Add errno.
27887         * modules/canonicalize (Depends-on): Likewise.
27888         * modules/chdir-safer (Depends-on): Likewise.
27889         * modules/fdopendir (Depends-on): Likewise.
27890         * modules/inet_ntop (Depends-on): Likewise.
27891         * modules/inet_pton (Depends-on): Likewise.
27892         * modules/lchown (Depends-on): Likewise.
27893         * modules/openat (Depends-on): Likewise.
27894         * modules/savewd (Depends-on): Likewise.
27895         * modules/settime (Depends-on): Likewise.
27896         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27897
27898         fts: avoid leaking fds
27899         * modules/fts (Depends-on): Add cloexec.
27900         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27901         flag.
27902
27903         fts: make directory fds more robust
27904         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27905         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27906
27907         backupfile, chdir-long, fts, savedir: make safer
27908         * lib/backupfile.c (includes): Use "dirent--.h", since
27909         numbered_backup can write to stderr during readdir.
27910         * lib/savedir.c (includes): Likewise.
27911         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27912         emulation can write to stderr on failure.
27913         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27914         * lib/getcwd.c: Document why opendir_safer is unused.
27915         * lib/glob.c: Likewise.
27916         * lib/scandir.c: Likewise.
27917         * lib/openat-proc.c: Likewise, for open_safer.
27918         * modules/backupfile (Depends-on): Add dirent-safer.
27919         * modules/savedir (Depends-on): Likewise.
27920         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27921         * modules/chdir-long (Depends-on): Add openat-safer.
27922
27923         openat-safer: new module
27924         * modules/openat-safer: New file.
27925         * lib/openat-safer.c: Likewise.
27926         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27927         * lib/fcntl-safer.h (openat_safer): Declare.
27928         * lib/fcntl--.h (openat): Override.
27929         * MODULES.html.sh (File descriptor based I/O): Mention it.
27930         * lib/openat.h: Add double-inclusion guards.
27931         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27932         "fcntl--.h", so we can implement openat.
27933         * modules/openat-safer-tests: New test.
27934         * tests/test-openat-safer.c: New file.
27935
27936         dirent-safer: new module
27937         * modules/dirent-safer: New file.
27938         * lib/dirent--.h: Likewise.
27939         * lib/dirent-safer.h: Likewise.
27940         * lib/opendir-safer.c: Likewise.
27941         * m4/dirent-safer.m4: Likewise.
27942         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27943         * modules/dirent-safer-tests: New test.
27944         * tests/test-dirent-safer.c: New file.
27945         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27946
27947         fdopendir: optimize on mingw
27948         * lib/unistd.in.h (_gl_directory_name): New prototype.
27949         * lib/fchdir.c (_gl_directory_name): Implement it.
27950         (fchdir): Use it to simplify implementation.
27951         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27952         fchdir, when available, to avoid calling [f]chdir().
27953
27954         fdopendir: split into its own module
27955         * lib/openat.c (fdopendir): Move...
27956         * lib/fdopendir.c: ...into new file.
27957         * modules/fdopendir: New module.
27958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27959         * modules/openat (Depends-on): Add fdopendir.
27960         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27961         fdopendir here.
27962         * modules/savedir (Depends-on): Only need fdopendir, not full
27963         openat.
27964         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27965         * lib/openat.h (fdopendir): Drop prototype.
27966         * lib/dirent.in.h (fdopendir): Provide prototype.
27967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27968         * modules/dirent (Makefile.am): Substitute them.
27969         * MODULES.html.sh (File system functions): Mention it.
27970         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27971         * modules/fdopendir-tests: New file.
27972         * tests/test-fdopendir.c: Likewise.
27973
27974         fchdir: use more consistent macro convention
27975         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27976         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27977         REPLACE_FCHDIR, rather than relying on config.h macros.
27978         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27979         inside a single make-time REPLACE_FCHDIR block, rather than using
27980         the config.h FCHDIR_REPLACEMENT.
27981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27982         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27983         Manage fstat replacement.
27984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27985         REPLACE_FCHDIR.
27986         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27987         (Makefile.am): Substitute REPLACE_FCHDIR.
27988         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27989         FCHDIR_REPLACEMENT.
27990         * lib/dup-safer.c (dup_safer): Likewise.
27991         * lib/dup2.c (rpl_dup2): Likewise.
27992         * lib/dup3.c (rpl_dup3): Likewise.
27993         * lib/open.c (rpl_open): Likewise.
27994
27995         fchdir: simplify error handling, and support dup3
27996         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27997         stdbool, malloc-posix, realloc-posix.
27998         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27999         (ensure_dirs_slot): Return false on allocation failure.
28000         (rpl_dup2): Delete.
28001         (_gl_register_dup): New function.
28002         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28003         (_gl_register_fd): Close fd on allocation failure.
28004         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28005         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28006         prototype.
28007         (rpl_dup2_fchdir): Delete prototype.
28008         * lib/open.c (open): Update caller.
28009         * lib/dup2.c (dup2): Track fchdir metadata.
28010         * lib/dup3.c (dup3): Likewise.
28011         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28013
28014 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28015
28016         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28017         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28018         don't pass arguments to AC_OUTPUT.
28019
28020 2009-09-02  Bruno Haible  <bruno@clisp.org>
28021
28022         * modules/mkdtemp (License): Relicense under LGPLv2+.
28023         Reported by Paolo Bonzini.
28024
28025 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28026
28027         Replace uses of obsolete autoconf macros in Jim's modules.
28028         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28029         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28030         can evoke a warning from autoconf when run with -Wobsolete
28031         enabled.  They were declared obsolete for good reasons (see
28032         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28033         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28034         should not continue using the deprecated macros.
28035         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28036         obsolete Autoconf macros with modern counterparts.
28037         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28038         * m4/dos.m4 (gl_AC_DOS): Likewise.
28039         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28041         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28042         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28043         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28045         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28046         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28047         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28048         Likewise.
28049         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28050         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28051         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28052         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28053         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28054         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28055
28056 2009-09-01  Eric Blake  <ebb9@byu.net>
28057
28058         fchdir: fix off-by-one bug in previous patch
28059         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28060         (_gl_unregister_fd): Delete useless if.
28061
28062 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28063
28064         maint.mk: sort the list of syntax-check rules
28065         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28066         easier to get a sense of progress when the rules are run sequentially
28067         and take a long time.
28068
28069 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28070
28071         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28072         * modules/netinet_in: Likewise.
28073         * modules/sys_file: Likewise.
28074         * modules/sys_ioctl: Likewise.
28075         * modules/sys_select: Likewise.
28076         * modules/sys_socket: Likewise.
28077         * modules/sys_stat: Likewise.
28078         * modules/sys_time: Likewise.
28079         * modules/sys_times: Likewise.
28080         * modules/sys_utsname: Likewise.
28081         * modules/sys_wait: Likewise.
28082
28083 2009-09-01  Jim Meyering  <meyering@redhat.com>
28084
28085         fts: help ensure that return values are not ignored
28086         * lib/fts_.h (__GNUC_PREREQ): Define.
28087         (__attribute_warn_unused_result__): Define.
28088         (fts_children, fts_close, fts_open, fts_read): Declare with
28089         __attribute_warn_unused_result__.
28090
28091         fts: fts_close now fails also when closing a dir file descriptor fails
28092         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28093         and propagate to caller, along with errno.
28094
28095         announce-gen: correct formatting in --help output
28096         * build-aux/announce-gen (usage): Move the one-line description in
28097         --help output "up", to where it belongs, just after Usage:.
28098
28099 2009-08-31  Eric Blake  <ebb9@byu.net>
28100
28101         fchdir: port to mingw
28102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28103         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28104         opened, then use a substitute.
28105         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28106         replacement.
28107         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28108         (_gl_register_fd): No need to check stat if open already filters
28109         all directories.
28110         (fchdir): Fix error condition to match POSIX.
28111         * modules/fchdir (Depends-on): Add sys_stat.
28112         * doc/posix-functions/open.texi (open): Document the limitation.
28113         * modules/fchdir-tests: New file.
28114         * tests/test-fchdir.c: Likewise.
28115
28116         canonicalize: allow cross-testing from cygwin to mingw
28117         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28118         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28119         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28120         Likewise.
28121         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28122         target does not support symlinks.
28123         * tests/test-canonicalize-lgpl.sh: Likewise.
28124
28125         chown: avoid compilation warning on mingw
28126         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28127         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28128         mingw.
28129         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28130         * modules/chown (Depends-on): Add errno.
28131
28132 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28133
28134         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28135         command.
28136
28137 2009-08-31  Jim Meyering  <meyering@redhat.com>
28138
28139         canonicalize: remove useless initialization
28140         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28141         initialization of local, "end".
28142
28143 2009-08-30  Bruno Haible  <bruno@clisp.org>
28144
28145         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28146         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28147         ENOSYS.
28148
28149 2009-08-30  Bruno Haible  <bruno@clisp.org>
28150
28151         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28152         /usr/xpg4/bin/tr when it exists.
28153         * tests/test-pipe-filter-gi1.sh: Likewise.
28154
28155 2009-08-30  Bruno Haible  <bruno@clisp.org>
28156
28157         Work around deficient /usr/bin/id program on Solaris.
28158         * tests/test-file-has-acl.sh (ID): New variable.
28159         * tests/test-set-mode-acl.sh (ID): Likewise.
28160         * tests/test-copy-acl.sh (ID): Likewise.
28161         * tests/test-copy-file.sh (ID): Likewise.
28162
28163 2009-08-30  Bruno Haible  <bruno@clisp.org>
28164
28165         New module 'xstriconveh'.
28166         * lib/xstriconveh.h: New file.
28167         * lib/xstriconveh.c: New file.
28168         * modules/xstriconveh: New file.
28169
28170 2009-08-30  Bruno Haible  <bruno@clisp.org>
28171
28172         Make it easier to use mem_cd_iconveh.
28173         * lib/striconveh.h (iconveh_t): New type.
28174         (iconveh_open, iconveh_close): New declarations.
28175         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28176         with a single 'const iconveh_t *' argument.
28177         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28178         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28179         with a single 'const iconveh_t *' argument.
28180         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28181         * tests/test-striconveh.c (main): Update.
28182         * NEWS: Mention the change.
28183
28184 2009-08-30  Bruno Haible  <bruno@clisp.org>
28185
28186         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28187         problem.
28188
28189 2009-08-30  Bruno Haible  <bruno@clisp.org>
28190
28191         Work around iconv_open problem on Solaris.
28192         * lib/iconv_open-solaris.gperf: New file.
28193         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28195         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28196         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28197         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28198         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28199
28200 2009-08-29  Jim Meyering  <meyering@redhat.com>
28201
28202         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28203         * top/maint.mk (cvs-check): Remove target; it was just an alias
28204         to the better-named vc-diff-check.
28205         (maintainer-distcheck): Remove rule.  It was used only from
28206         the (alpha/beta/major) target, and all of its commands but one
28207         were coreutils-specific.
28208         (vc-dist): Remove rule.
28209         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28210         Run vc-diff-check, not vc-dist.
28211         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28212
28213 2009-08-27  Bruno Haible  <bruno@clisp.org>
28214
28215         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28216         of 0.
28217
28218 2009-08-27  Bruno Haible  <bruno@clisp.org>
28219
28220         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28221         compilers.
28222         * doc/func.texi: Document the SunPRO C bug.
28223
28224 2009-08-27  Bruno Haible  <bruno@clisp.org>
28225
28226         Fix link error on Solaris.
28227         * tests/test-parse-duration.c (xstrdup): Remove function.
28228
28229 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28230
28231         ignore-value: handle pointer types, too
28232         * lib/ignore-value.h (__attribute__): Remove definition.
28233         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28234         of a more concise and more-often effective "(void) i" statement.
28235         (ignore_ptr): New function to suppress warnings from functions that
28236         return pointers, and to make it explicit that one function doesn't
28237         handle all cases.
28238
28239 2009-08-25  Bruno Haible  <bruno@clisp.org>
28240
28241         dup2: work around a Linux bug.
28242         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28243         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28244         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28245         Reported by Simon Josefsson.
28246
28247 2009-08-25  Jim Meyering  <meyering@redhat.com>
28248
28249         libguestfs uses gnulib
28250         * users.txt: Add libguestfs.
28251
28252 2009-08-24  Eric Blake  <ebb9@byu.net>
28253
28254         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28255         * lib/pipe2.c (includes): Add binary-io.h.
28256         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28257
28258 2009-08-24  Bruno Haible  <bruno@clisp.org>
28259
28260         Tolerate declared but missing accept4 syscall.
28261         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28262         available.
28263         * lib/sys_socket.in.h (accept4): If the function is already present,
28264         override it.
28265         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28266         * modules/accept4 (Makefile.am): Compile accept4.c always.
28267         Reported by Paolo Bonzini and Eric Blake.
28268
28269 2009-08-23  Bruno Haible  <bruno@clisp.org>
28270
28271         New module 'accept4'.
28272         * lib/sys_socket.in.h (accept4): New declaration.
28273         * lib/accept4.c: New file.
28274         * m4/accept4.m4: New file.
28275         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28276         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28277         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28278         HAVE_ACCEPT4.
28279         * modules/accept4: New file.
28280         * doc/glibc-functions/accept4.texi: Mention the new module.
28281
28282 2009-08-24  Jim Meyering  <meyering@redhat.com>
28283
28284         progname: also set global program_invocation_name, when possible
28285         Before this change, a libtool-enabled program that calls glibc's
28286         error function would report the program name as
28287         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28288         * modules/progname (configure.ac): Check for a declaration of
28289         program_invocation_name.
28290         * lib/progname.c:  Include <errno.h>.
28291         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28292         Set program_invocation_name.
28293
28294 2009-08-23  Bruno Haible  <bruno@clisp.org>
28295
28296         * lib/dup3.c: Include <string.h>.
28297
28298 2009-08-23  Bruno Haible  <bruno@clisp.org>
28299
28300         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28301         * lib/pipe2.c (pipe2): Likewise.
28302         Suggested by Eric Blake.
28303
28304 2009-08-23  Bruno Haible  <bruno@clisp.org>
28305
28306         Tolerate declared but missing dup3 syscall.
28307         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28308         * lib/unistd.in.h (dup3): If the function is already present,
28309         override it.
28310         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28311         * modules/dup3 (Makefile.am): Compile dup3.c always.
28312         Reported by Paolo Bonzini.
28313
28314 2009-08-23  Bruno Haible  <bruno@clisp.org>
28315
28316         Tolerate declared but missing pipe2 syscall.
28317         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28318         available.
28319         * lib/unistd.in.h (pipe2): If the function is already present,
28320         override it.
28321         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28322         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28323         Reported by Paolo Bonzini.
28324
28325 2009-08-23  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/pipe2.c (pipe2): Move #ifs inside function.
28328
28329 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28330
28331         quotearg: document limitations of quote_these_too
28332         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28333         those limitations are created.
28334         * lib/quotearg.h (set_char_quoting): Document that digits and
28335         letters that are special after backslash are not permitted.
28336         (quotearg_char): Cross-reference set_char_quoting documentation.
28337
28338 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28339
28340         quotearg: implement custom_quoting_style
28341         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28342         right_quote fields.
28343         (set_custom_quoting): New public function.
28344         (quotearg_buffer_restyled): Add left_quote and right_quote
28345         arguments, handle them very much like locale quoting, and update
28346         all uses.
28347         (quotearg_n_custom): New public function.
28348         (quotearg_n_custom_mem): New public function.
28349         (quotearg_custom): New public function.
28350         (quotearg_custom_mem): New public function.
28351         * lib/quotearg.h: Prototype and document new public functions.
28352         (enum quoting_style): For escape_quoting_style and
28353         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28354         ignored even though they're otherwise like c_quoting_style.
28355         Add custom_quoting_style member and document with comparison to
28356         clocale_quoting_style.
28357         * tests/test-quotearg.c (custom_quotes): New array.
28358         (custom_results): New array.
28359         (main): Extend to test custom quoting.
28360
28361 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28362
28363         quotearg: fix right quote escaping when it's in quote_these_too
28364         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28365         quote, be sure to prepend only one backslash.
28366         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28367         (main): Test it.
28368
28369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28370
28371         quotearg-tests: test escaping of embedded locale quotes
28372         * tests/test-quotearg.c (struct result_strings): Add member for
28373         new input.
28374         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28375         (inputs): Add new input.
28376         (results_g): Add expected results.
28377         (flag_results): Likewise.
28378         (locale_results): Likewise.
28379         (compare_strings): Check those.
28380
28381 2009-08-23  Bruno Haible  <bruno@clisp.org>
28382
28383         Tests for module 'dup3'.
28384         * modules/dup3-tests: New file.
28385         * tests/test-dup3.c: New file.
28386
28387         New module 'dup3'.
28388         * lib/unistd.in.h (dup3): New declaration.
28389         * lib/dup3.c: New file.
28390         * m4/dup3.m4: New file.
28391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28392         HAVE_DUP3.
28393         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28394         * modules/dup3: New file.
28395         * doc/glibc-functions/dup3.texi: Mention the new module.
28396
28397 2009-08-23  Bruno Haible  <bruno@clisp.org>
28398
28399         Tweak the dup2 test.
28400         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28401         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28402         the test file is still empty. Fix argument order of lseek.
28403
28404 2009-08-23  Bruno Haible  <bruno@clisp.org>
28405
28406         Avoid test link errors when the modules getopt-gnu, gettext are used.
28407         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28409
28410 2009-08-23  Bruno Haible  <bruno@clisp.org>
28411
28412         Fix getdtablesize() on mingw.
28413         * lib/getdtablesize.c (getdtablesize): Implement differently.
28414         * lib/unistd.in.h (getdtablesize): Improve comment.
28415
28416 2009-08-23  Bruno Haible  <bruno@clisp.org>
28417
28418         New module 'mkostemp'.
28419         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28420         * lib/stdlib.in.h (mksotemp): New declaration.
28421         * lib/mkostemp.c: New file, from glibc with modifications.
28422         * lib/tempname.h (GT_FILE): Remove outdated comment.
28423         (gen_tempname): Add flags argument.
28424         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28425         (__GT_FILE): Map to 1.
28426         (small_open, large_open): Remove macros.
28427         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28428         * lib/mkstemp.c (mkstemp): Update.
28429         * lib/mkdtemp.c (mkdtemp): Likewise.
28430         * m4/mkostemp.m4: New file.
28431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28432         HAVE_MKOSTEMP.
28433         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28434         HAVE_MKOSTEMP.
28435         * modules/mkostemp: New file, based on modules/mkstemp.
28436         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28437         * NEWS: Mention the change.
28438
28439 2009-08-23  Bruno Haible  <bruno@clisp.org>
28440
28441         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28442         Reported by Eric Blake.
28443
28444 2009-08-23  Bruno Haible  <bruno@clisp.org>
28445
28446         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28447         Reported by Eric Blake.
28448
28449 2009-08-23  Bruno Haible  <bruno@clisp.org>
28450
28451         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28452         * modules/pipe2 (Depends-on): Likewise.
28453
28454 2009-08-23  Eric Blake  <ebb9@byu.net>
28455
28456         fcntl-h: add O_TTY_INIT support
28457         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28458         * tests/test-fcntl-h.c (o): Test it.
28459         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28460
28461         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28462         * modules/fcntl: Move <fcntl.h> header replacement...
28463         * modules/fcntl-h: ...to new name, so as not to collide with
28464         like-named function.
28465         * tests/test-fcntl.c: Rename...
28466         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28467         * modules/fcntl-tests: Rename...
28468         * modules/fcntl-h-tests: ...to this.  Update test file name.
28469         * modules/chdir-long (Depends-on): Update clients.
28470         * modules/chdir-safer (Depends-on): Likewise.
28471         * modules/fcntl-safer (Depends-on): Likewise.
28472         * modules/fts (Depends-on): Likewise.
28473         * modules/mkancesdirs (Depends-on): Likewise.
28474         * modules/mkdir-p (Depends-on): Likewise.
28475         * modules/open (Depends-on): Likewise.
28476         * modules/savewd (Depends-on): Likewise.
28477         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28478         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28479
28480 2009-08-22  Bruno Haible  <bruno@clisp.org>
28481
28482         * modules/binary-io (License): Relicense under LGPL.
28483         * modules/pipe2 (License): Likewise.
28484
28485 2009-08-22  Bruno Haible  <bruno@clisp.org>
28486
28487         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28488         return value.
28489         * lib/pipe-filter-gi.c (filter_init): Likewise.
28490         Reported by Eric Blake.
28491
28492 2009-08-22  Bruno Haible  <bruno@clisp.org>
28493
28494         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28495         * modules/pipe (Depends-on): Add pipe2.
28496
28497 2009-08-22  Bruno Haible  <bruno@clisp.org>
28498
28499         Tests for module 'pipe2'.
28500         * modules/pipe2-tests: New file.
28501         * tests/test-pipe2.c: New file.
28502
28503         New module 'pipe2'.
28504         * lib/unistd.in.h (pipe2): New declaration.
28505         * lib/pipe2.c: New file.
28506         * m4/pipe2.m4: New file.
28507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28508         HAVE_PIPE2.
28509         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28510         * modules/pipe2: New file.
28511         * doc/glibc-functions/pipe2.texi: Mention the new module.
28512
28513 2009-08-22  Bruno Haible  <bruno@clisp.org>
28514
28515         Reference some new glibc functions.
28516         * doc/glibc-functions/accept4.texi: New file.
28517         * doc/glibc-functions/dup3.texi: New file.
28518         * doc/glibc-functions/mkostemp.texi: New file.
28519         * doc/glibc-functions/pipe2.texi: New file.
28520         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28521         (Glibc sys/socket.h): Refer to accept4.
28522         (Glibc unistd.h): Refer to dup3, pipe2.
28523         Reported by Eric Blake.
28524
28525 2009-08-22  Jim Meyering  <meyering@redhat.com>
28526             Bruno Haible  <bruno@clisp.org>
28527
28528         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28529         This makes it so packages using automake-1.11's silent-rules option
28530         can print e.g., a single "GEN    configmake.h" line, rather than
28531         the 30+ statements that perform the job.  If you want to see the
28532         actual commands, you can still run "make V=1".
28533         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28534         so that make output is abbreviated when those variables are defined
28535         appropriately.
28536         * modules/argz: Likewise.
28537         * modules/arpa_inet: Likewise.
28538         * modules/byteswap: Likewise.
28539         * modules/configmake: Likewise.
28540         * modules/dirent: Likewise.
28541         * modules/errno: Likewise.
28542         * modules/fcntl: Likewise.
28543         * modules/float: Likewise.
28544         * modules/fnmatch: Likewise.
28545         * modules/getopt-posix: Likewise.
28546         * modules/glob: Likewise.
28547         * modules/iconv_open: Likewise.
28548         * modules/inttypes: Likewise.
28549         * modules/localcharset: Likewise.
28550         * modules/locale: Likewise.
28551         * modules/math: Likewise.
28552         * modules/netdb: Likewise.
28553         * modules/netinet_in: Likewise.
28554         * modules/poll: Likewise.
28555         * modules/posix_spawnp-tests: Likewise.
28556         * modules/sched: Likewise.
28557         * modules/search: Likewise.
28558         * modules/selinux-h: Likewise.
28559         * modules/signal: Likewise.
28560         * modules/spawn: Likewise.
28561         * modules/stdarg: Likewise.
28562         * modules/stdbool: Likewise.
28563         * modules/stddef: Likewise.
28564         * modules/stdint: Likewise.
28565         * modules/stdio: Likewise.
28566         * modules/stdlib: Likewise.
28567         * modules/string: Likewise.
28568         * modules/strings: Likewise.
28569         * modules/sys_file: Likewise.
28570         * modules/sys_ioctl: Likewise.
28571         * modules/sys_select: Likewise.
28572         * modules/sys_socket: Likewise.
28573         * modules/sys_stat: Likewise.
28574         * modules/sys_time: Likewise.
28575         * modules/sys_times: Likewise.
28576         * modules/sys_utsname: Likewise.
28577         * modules/sys_wait: Likewise.
28578         * modules/sysexits: Likewise.
28579         * modules/time: Likewise.
28580         * modules/unistd: Likewise.
28581         * modules/wchar: Likewise.
28582         * modules/wctype: Likewise.
28583
28584 2009-08-22  Jim Meyering  <meyering@redhat.com>
28585
28586         announce-gen: detect write failure
28587         * build-aux/announce-gen: Add Coda at end.
28588         Remove equivalent-but-more-verbose block at top.
28589
28590 2009-08-19  Akim Demaille  <demaille@gostai.com>
28591
28592         bootstrap: --help to stdout.
28593         * bootstrap (usage): Don't send --help to stderr.
28594         Use a here doc instead of a long string.
28595
28596 2009-08-21  Eric Blake  <ebb9@byu.net>
28597
28598         test-popen-safer: split from test-popen
28599         * tests/test-popen.c (main): Move...
28600         * tests/test-popen.h: ...into new file.
28601         * tests/test-popen-safer2.c: New file.
28602         * modules/popen-tests (Files): Add test-popen.h.
28603         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28604         Suggested by Bruno Haible.
28605
28606         test-fcntl-safer: split from test-open
28607         * tests/test-open.c (main): Move...
28608         * tests/test-open.h: ...into new file.
28609         * tests/test-fcntl-safer.c: New file.
28610         * modules/open-tests (Files): Add test-open.h.
28611         * modules/fcntl-safer-tests: New file.
28612         Suggested by Bruno Haible.
28613
28614         test-fopen-safer: split from test-fopen
28615         * tests/test-fopen.c (main): Move...
28616         * tests/test-fopen.h: ...into new file.
28617         * tests/test-fopen-safer.c: New file.
28618         * modules/fopen-tests (Files): Add test-fopen.h.
28619         * modules/fopen-safer-tests: New file.
28620         Suggested by Bruno Haible.
28621
28622 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28623
28624         popen-safer: test O_CLOEXEC at run-time.
28625         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28626
28627 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28628
28629         fcntl: move more flags to the header
28630         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28631         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28632         * lib/fcntl.in.h: Do both things here.
28633
28634 2009-08-21  Jim Meyering  <meyering@redhat.com>
28635
28636         consistently remove $@-t before redirecting to it
28637         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28638         * modules/alloca-opt: Likewise.
28639         * modules/byteswap: Likewise.
28640         * modules/fnmatch: Likewise.
28641         * modules/getopt-posix: Likewise.
28642         * modules/glob: Likewise.
28643         * modules/poll: Likewise.
28644         * modules/posix_spawnp-tests: Likewise.
28645         * modules/sys_socket: Likewise.
28646         * modules/sysexits: Likewise.
28647
28648 2009-08-21  Eric Blake  <ebb9@byu.net>
28649
28650         popen: simplify access to original popen
28651         * lib/popen.c (rpl_popen): No need to worry about popen being a
28652         macro.
28653         Reported by Bruno Haible.
28654
28655 2009-08-20  Eric Blake  <ebb9@byu.net>
28656
28657         build: avoid some compiler warnings
28658         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28659         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28660         type.
28661         (new_exclude_segment, excluded_file_pattern_p)
28662         (excluded_file_name_p): Reduce scope.
28663         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28664         old-style declaration.
28665
28666 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28667
28668         * tests/test-exclude1.sh: Handle Windows EOL.
28669         * tests/test-exclude2.sh: Likewise.
28670         * tests/test-exclude3.sh: Likewise.
28671         * tests/test-exclude4.sh: Likewise.
28672         * tests/test-exclude5.sh: Likewise.
28673         * tests/test-exclude6.sh: Likewise.
28674         * tests/test-exclude7.sh: Likewise.
28675
28676 2009-08-19  Akim Demaille  <demaille@gostai.com>
28677
28678         bootstrap: find sha1sum when named gsha1sum.
28679         * bootstrap (find_tool): New.
28680         ($SHA1SUM): New.
28681         Use it.
28682
28683 2009-08-20  Jim Meyering  <meyering@redhat.com>
28684
28685         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28686         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28687         expression that converts "." in a file name to "\." in the resulting
28688         regexp.  Start with a dummy statement, so that prior shell variable
28689         definitions are expanded portably.  Reported by Simon Josefsson.
28690
28691 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28692
28693         Fix polling for writeability of a screen buffer.
28694         * lib/poll.c: Distinguish input and screen buffers for the
28695         Win32 implementation.
28696         * lib/select.c: Likewise.
28697
28698 2009-08-19  Eric Blake  <ebb9@byu.net>
28699
28700         popen-safer: prevent popen from clobbering std descriptors
28701         * modules/popen-safer: New file.
28702         * lib/popen-safer.c: Likewise.
28703         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28704         * lib/stdio--.h (popen): Provide override.
28705         * lib/stdio-safer.h (popen_safer): Provide declaration.
28706         * tests/test-popen.c (includes): Partially test this.
28707         * modules/popen-safer-tests: New file, for more tests.
28708         * tests/test-popen-safer.c: Likewise.
28709         * MODULES.html.sh (file stream based Input/Output): Mention it.
28710
28711         tests: test some of the *-safer modules
28712         * modules/fopen-safer (Depends-on): Add fopen.
28713         * modules/fcntl-safer (Depends-on): Add fcntl.
28714         * modules/stdlib-safer (Depends-on): Add stdlib.
28715         (configure.ac): Set indicator.
28716         * modules/unistd-safer (configure.ac): Likewise.
28717         * modules/tmpfile-safer (configure.ac): Likewise.
28718         (Depends-on): Add tmpfile.
28719         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28720         active.
28721         * tests/test-fopen.c (includes): Test safer versions when they are
28722         in use.
28723         * tests/test-open.c (includes): Likewise.
28724
28725         popen: fix cygwin 1.5 bug when stdin closed
28726         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28727         * modules/popen: New file.
28728         * modules/popen-tests: Likewise.
28729         * tests/test-popen.c: Likewise.
28730         * m4/popen.m4: Likewise.
28731         * lib/popen.c: Likewise.
28732         * lib/stdio.in.h (popen): New declaration.
28733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28734         * modules/stdio (Makefile.am): Likewise.
28735         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28736
28737 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28738
28739         maint.mk: give full control over update-copyright exclusions
28740         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28741         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28742         (update-copyright): Don't force inclusion of top-level
28743         ChangeLog.  Don't force exclusion of all COPYING files, but make
28744         them the default exclusion instead.
28745
28746 2009-08-16  Bruno Haible  <bruno@clisp.org>
28747
28748         Fix test failures on Solaris 10.
28749         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28750         tests when Solaris iconv() is used.
28751         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28752         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28753         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28754         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28755         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28756
28757 2009-08-16  Bruno Haible  <bruno@clisp.org>
28758
28759         Fix test failures on Solaris 10.
28760         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28761         'tr' program and pass it as first argument.
28762         * tests/test-pipe-filter-gi1.sh: Likewise.
28763         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28764         program as first argument.
28765         * tests/test-pipe-filter-gi1.c (main): Likewise.
28766
28767 2009-08-16  Eric Blake  <ebb9@byu.net>
28768
28769         fpurge: fix previous commits
28770         * modules/fpurge (Makefile.am): Make replacement conditional,
28771         partially reverting 2007-04-29 change; missed in previous
28772         attempt.
28773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28774         is missing.
28775
28776 2009-08-16  Bruno Haible  <bruno@clisp.org>
28777
28778         Clarify fpurge's effect on the file position.
28779         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28780         * tests/test-fpurge.c (main): Make a second pass for checking the file
28781         position.
28782
28783 2009-08-16  Bruno Haible  <bruno@clisp.org>
28784
28785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28786         declaration of fpurge is missing.
28787         * tests/test-fpurge.c (main): Check that the file has not more contents
28788         than expected. Close the file before removing it.
28789
28790 2009-08-15  Eric Blake  <ebb9@byu.net>
28791
28792         fpurge: don't wrap working cygwin implementation
28793         * lib/fpurge.c (fpurge): Fix comment typo.
28794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28795         1.7 to avoid replacement.
28796         * tests/test-fpurge.c (main): Enhance test.
28797
28798 2009-08-15  Eric Blake  <ebb9@byu.net>
28799         and Jim Meyering  <meyering@redhat.com>
28800
28801         test-update-copyright: skip if perl is insufficient
28802         * tests/test-update-copyright.sh: Failure to run maintainer tool
28803         should not cause testsuite failure on cygwin 1.5.
28804
28805 2009-08-14  Eric Blake  <ebb9@byu.net>
28806
28807         doc: mention more functions added in cygwin 1.7.0
28808         * doc/posix-headers/limits.texi (limits.h): Update for recent
28809         cygwin additions.
28810         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28811         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28812         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28813         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28814         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28815
28816 2009-08-14  Eric Blake  <ebb9@byu.net>
28817
28818         maint.mk: simplify update-copyright rule
28819         * top/maint.mk (update-copyright-local): Delete, and document how
28820         to do it in cfg.mk instead.
28821         (update-copyright-exclude-regexp): Delete, and document how to do
28822         it in .x-update-copyright instead.
28823         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28824         exclude ChangeLog.
28825
28826 2009-08-14  Bruno Haible  <bruno@clisp.org>
28827
28828         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28829
28830 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28831
28832         maint.mk: support update-copyright-env
28833         * top/maint.mk (update-copyright-env): Define place-holder.
28834         (update-copyright): Expand $(update-copyright-env) before
28835         invoking update-copyright.
28836
28837 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28838
28839         update-copyright: implement forced reformatting
28840         * build-aux/update-copyright: Implement and document
28841         UPDATE_COPYRIGHT_FORCE.
28842         * tests/test-update-copyright.sh: Test it.
28843
28844 2009-08-14  Eric Blake  <ebb9@byu.net>
28845         and Bruno Haible  <bruno@clisp.org>
28846
28847         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28848         * tests/test-locale.c: Revert previous patch related to NULL.
28849         * tests/test-stdio.c: Likewise.
28850         * tests/test-stdlib.c: Likewise.
28851         * tests/test-string.c: Likewise.
28852         * tests/test-unistd.c: Likewise.
28853         * modules/time-tests (Depends-on): Add verify.
28854         * modules/wchar-tests (Depends-on): Likewise.
28855         * tests/test-time.c: Test for NULL compliance.
28856         * tests/test-wchar.c: Likewise.
28857         * modules/locale (Depends-on): Add stddef.
28858         * modules/stdio (Depends-on): Likewise.
28859         * modules/stdlib (Depends-on): Likewise.
28860         * modules/string (Depends-on): Likewise.
28861         * modules/time (Depends-on): Likewise.
28862         * modules/unistd (Depends-on): Likewise.
28863         * modules/wchar (Depends-on): Likewise.
28864         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28865         * lib/stdlib.in.h (includes): Likewise.
28866         * lib/string.in.h (includes): Likewise.
28867         * lib/time.in.h (includes): Likewise.
28868         * lib/unistd.in.h (includes): Likewise.
28869         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28870         replaced.
28871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28872         * m4/stddef_h.m4: New file.
28873         * modules/stddef: Likewise.
28874         * lib/stddef.in.h: Likewise.
28875         * modules/stddef-tests: Likewise.
28876         * tests/test-stddef.c: Likewise.
28877         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28878         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28879         * doc/posix-headers/locale.texi (locale.h): Likewise.
28880         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28881         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28882         * doc/posix-headers/string.texi (string.h): Likewise.
28883         * doc/posix-headers/time.texi (time.h): Likewise.
28884         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28885         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28886
28887 2009-08-14  Eric Blake  <ebb9@byu.net>
28888
28889         doc: improve git diff of texinfo files
28890         * .gitattributes: Add rule for *.texi files, with hint on how to
28891         use it.
28892         Copied from m4, and based on a report by Bruno Haible.
28893
28894 2009-08-14  Bruno Haible  <bruno@clisp.org>
28895
28896         Disable multithread support by default on Cygwin 1.5.x for real.
28897         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28898
28899 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28900
28901         update-copyright: much ado about intervals
28902         * build-aux/update-copyright: Implement and document
28903         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28904         of copyright year intervals.
28905         Also, document UPDATE_COPYRIGHT_YEAR.
28906         * tests/test-update-copyright.sh: Test it.
28907
28908         update-copyright: convert 2-digit to 4-digit years
28909         * build-aux/update-copyright: Implement and document.
28910         * tests/test-update-copyright.sh: Update.
28911
28912 2009-08-14  Jim Meyering  <meyering@redhat.com>
28913
28914         test-exclude: avoid coreutils "make check" failure
28915         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28916         just as in test-argmatch.c.
28917
28918 2009-08-13  Eric Blake  <ebb9@byu.net>
28919
28920         test-dup2: fix bad assumption
28921         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28922         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28923
28924         test-version-etc: fix CRLF portability issue
28925         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28926         recognize \r.
28927         * tests/test-argp-version-etc-1.sh: Likewise.
28928
28929         getopt: update client modules
28930         * modules/argp (Depends-on): Use getopt-gnu.
28931         * modules/git-merge-changelog (Depends-on): Likewise.
28932         * modules/long-options (Depends-on): Likewise.
28933         * modules/xstrtol (Depends-on): Likewise.
28934
28935 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28936
28937         * tests/test-version-etc.sh: Don't fail on different
28938         project/version.  Don't fail on CRLF differences.  Rewrite to use
28939         multiple -e instead of multiple sed forks, suggested by Eric Blake
28940         <ebb9@byu.net>.
28941         * tests/test-argp-version-etc-1.sh: 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.
28947
28948 2009-08-12  Bruno Haible  <bruno@clisp.org>
28949
28950         Tests for modules 'getopt-posix', 'getopt-gnu'.
28951         * modules/getopt-posix-tests: New file.
28952         * tests/test-getopt.c: New file.
28953         * tests/test-getopt.h: New file.
28954         * tests/test-getopt_long.h: New file.
28955
28956         New modules 'getopt-posix', 'getopt-gnu'.
28957         * modules/getopt-gnu: New file, renamed from modules/getopt.
28958         * modules/getopt-posix: New file.
28959         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28961         (gl_GETOPT): Remove macro.
28962         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28963         Disable the test against BSD systems that declare optreset. Test
28964         against mingw bug. Test against lack of support of optional arguments
28965         on many platforms.
28966         * doc/glibc-headers/getopt.texi: Update module name and list of
28967         relevant platforms.
28968         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28969         'getopt-gnu' and more portability problems.
28970         * NEWS: Mention the changes.
28971
28972 2009-08-12  Bruno Haible  <bruno@clisp.org>
28973
28974         Ensure that optarg etc. get declared by <unistd.h>.
28975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28976         AC_USE_SYSTEM_EXTENSIONS.
28977         * modules/getopt (Depends-on): Add 'extensions'.
28978
28979 2009-08-12  Bruno Haible  <bruno@clisp.org>
28980
28981         Avoid test link errors.
28982         * modules/pipe-filter-ii-tests (Makefile.am): Define
28983         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28984         * modules/pipe-filter-gi-tests (Makefile.am): Define
28985         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28987
28988 2009-08-12  Bruno Haible  <bruno@clisp.org>
28989
28990         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28991         gl_GETOPT_SUBSTITUTE before.
28992         (gl_GETOPT): Use it.
28993         * m4/argp.m4 (gl_ARGP): Update.
28994         Reported by Sergey Poznyakoff.
28995
28996         * m4/getopt.m4: Reorder macros.
28997         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28998         (gl_GETOPT_SUBSTITUTE): Remove macro.
28999
29000 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29001
29002         Minor improvement in gitlog-to-changelog
29003
29004         * build-aux/gitlog-to-changelog: New option `--format' makes
29005         output format string configurable.
29006
29007 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29008
29009         Optimize exclude: use hash tables for non-wildcard patterns.
29010
29011         * lib/exclude.c: Include hash.h and mbuiter.h
29012         (struct exclude_pattern, exclude_segment): New data types.
29013         (struct exclude): Rewrite.
29014         (fnmatch_pattern_has_wildcards): New function.
29015         (new_exclude_segment, free_exclude_segment): New functions.
29016         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29017         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29018         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29019         * modules/exclude: Depend on hash and mbuiter.
29020
29021         * modules/exclude-tests: New file.
29022         * tests/test-exclude.c: New file.
29023         * tests/test-exclude1.sh: New file.
29024         * tests/test-exclude2.sh: New file.
29025         * tests/test-exclude3.sh: New file.
29026         * tests/test-exclude4.sh: New file.
29027         * tests/test-exclude5.sh: New file.
29028         * tests/test-exclude6.sh: New file.
29029         * tests/test-exclude7.sh: New file.
29030
29031 2009-08-12  Bruno Haible  <bruno@clisp.org>
29032
29033         Ensure that getopt() gets declared by <unistd.h>.
29034         * lib/unistd.in.h: Conditionally include getopt.h.
29035         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29036         Set GNULIB_UNISTD_H_GETOPT.
29037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29038         GNULIB_UNISTD_H_GETOPT.
29039         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29040
29041 2009-08-12  Bruno Haible  <bruno@clisp.org>
29042
29043         Clarify logic.
29044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29045         gl_replace_getopt instead of GETOPT_H.
29046
29047 2009-08-12  Bruno Haible  <bruno@clisp.org>
29048
29049         * m4/getopt.m4: Add comments.
29050
29051 2009-08-12  Bruno Haible  <bruno@clisp.org>
29052
29053         Disable multithread support by default on Cygwin 1.5.x.
29054         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29055         set gl_use_threads=no if not specified otherwise.
29056
29057 2009-08-11  Bruno Haible  <bruno@clisp.org>
29058
29059         Avoid compilation error on NetBSD 5.0.
29060         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29061         * tests/test-stdio.c: Likewise.
29062         * tests/test-stdlib.c: Likewise.
29063         * tests/test-string.c: Likewise.
29064         * tests/test-unistd.c: Likewise.
29065         Reported by Greg Troxel <gdt@ir.bbn.com>
29066         at <https://savannah.gnu.org/support/?106973>.
29067
29068 2009-08-11  Bruno Haible  <bruno@clisp.org>
29069
29070         * modules/dup2-tests (Depends-on): Remove close.
29071
29072         Undo 2009-07-19 commit.
29073         * modules/acl-tests (Depends-on): Remove close.
29074         * modules/binary-io-tests (Depends-on): Likewise.
29075         * modules/closein-tests (Depends-on): Likewise.
29076         * modules/flock-tests (Depends-on): Likewise.
29077         * modules/fsync-tests (Depends-on): Likewise.
29078         * modules/lseek-tests (Depends-on): Likewise.
29079         * modules/pipe-tests (Depends-on): Likewise.
29080         * modules/posix_spawn-tests (Depends-on): Likewise.
29081         * modules/posix_spawnp-tests (Depends-on): Likewise.
29082         * modules/stat-time-tests (Depends-on): Likewise.
29083         * modules/yesno-tests (Depends-on): Likewise.
29084
29085 2009-08-10  Bruno Haible  <bruno@clisp.org>
29086
29087         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29088
29089 2009-08-10  Bruno Haible  <bruno@clisp.org>
29090
29091         Fix a gcc warning.
29092         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29093
29094 2009-08-10  Bruno Haible  <bruno@clisp.org>
29095
29096         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29097         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29098         not only the first time.
29099         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29100         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29101         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29102         is 1, not only the the first time.
29103
29104 2009-08-10  Bruno Haible  <bruno@clisp.org>
29105
29106         Make it possible to use module 'gethostname' without module 'close'.
29107         * lib/unistd.in.h (close): Evoke a link error only if
29108         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29110         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29111         * modules/unistd (Makefile.am): Substitute
29112         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29113         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29114         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29115         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29116         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29117         * modules/sys_ioctl (Makefile.am): Substitute
29118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29119         * modules/socket (configure.ac): On native Windows, set
29120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29122         Reported by Sam Steingold <sds@gnu.org>.
29123
29124 2009-08-10  Bruno Haible  <bruno@clisp.org>
29125
29126         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29127         * modules/ioctl (configure.ac): Likewise.
29128
29129 2009-08-10  Bruno Haible  <bruno@clisp.org>
29130
29131         Avoid collision between gnulib wrapper and libintl wrapper.
29132         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29133         already defined in intl/printf.c.
29134         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29135         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29136
29137 2009-08-09  Bruno Haible  <bruno@clisp.org>
29138
29139         Make <sys/select.h> really self-contained, also on Solaris 10.
29140         * lib/sys_select.in.h: Include <string.h>.
29141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29142         Solaris 10 problem.
29143         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29144         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29145         Reported by Jim Meyering.
29146
29147 2009-08-09  Bruno Haible  <bruno@clisp.org>
29148
29149         Avoid warnings from 'aclocal' that are due to a use of macro name
29150         AM_XGETTEXT_OPTION that is not defined in automake.
29151         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29152         automake.
29153         * modules/error (configure.ac): Likewise.
29154         * modules/propername (configure.ac): Likewise.
29155         * modules/vasprintf (configure.ac): Likewise.
29156         * modules/verror (configure.ac): Likewise.
29157         * modules/xprintf (configure.ac): Likewise.
29158         * modules/xvasprintf (configure.ac): Likewise.
29159
29160 2009-08-08  Bruno Haible  <bruno@clisp.org>
29161
29162         Avoid compilation error in C++ mode.
29163         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29164         Reported by Sam Steingold <sds@gnu.org>.
29165
29166 2009-08-08  Bruno Haible  <bruno@clisp.org>
29167
29168         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29169         for the various Unix platforms.
29170         * doc/posix-headers/limits.texi: Update platforms list regarding
29171         HOST_NAME_MAX.
29172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29173
29174 2009-08-07  Jim Meyering  <meyering@redhat.com>
29175
29176         selinux-at: fix typo in a comment
29177         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29178         Spotted by Paolo Bonzini.
29179
29180         selinux-at: remove redundant m4 code, add documentation
29181         * modules/selinux-at (configure.ac): Remove redundant code.
29182         LIB_SELINUX is already set via the dependent module, selinux-h.
29183         (Include): Add quotes around selinux-at.h.
29184         * lib/selinux-at.h: Add documentation.
29185         Reported by Bruno Haible in
29186         http://marc.info/?l=gnulib-bug&m=124958988300749
29187
29188 2009-08-07  Bruno Haible  <bruno@clisp.org>
29189
29190         Avoid link error on MacOS X 10.3 and 10.4.
29191         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29192         on non-ELF systems.
29193         * lib/argp-pv.c (argp_program_version): Likewise.
29194         Reported by Simon Josefsson.
29195
29196 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29197
29198         * tests/test-version-etc.sh: Use $EXEEXT.
29199
29200 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29201
29202         update-copyright: update documentation to point to maint.mk
29203         * build-aux/update-copyright: Here.
29204
29205 2009-08-06  Jim Meyering  <meyering@redhat.com>
29206
29207         maint.mk: support update-copyright-local
29208         * top/maint.mk (update-copyright-local): Define place-holder.
29209         (update-copyright): Depend on $(update-copyright-local).
29210
29211 2009-08-06  Jim Meyering  <meyering@redhat.com>
29212
29213         selinux-at: new module
29214         Initially written for coreutils, this module will soon be
29215         used by findutils, too.
29216         * MODULES.html.sh [Misc]: Add selinux-at.
29217         * lib/selinux-at.h: New file, from coreutils.
29218         * lib/selinux-at.c: Likewise.
29219         * modules/selinux-at: Likewise.
29220         (License): Change from LGPL to GPL, since it depends
29221         on the GPL'd openat module.
29222
29223         doc: update README
29224         * README: Remove references to cogito.
29225         Remove cvs-repo-updating instructions from 2007.
29226         Don't imply that CVS is better if you have limited disk space.
29227
29228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29229
29230         update-copyright: support C-style comments
29231         * build-aux/update-copyright: Implement and document.
29232         * tests/test-update-copyright.sh: Test.
29233
29234 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29235
29236         update-copyright: support omitted "(C)"
29237         * build-aux/update-copyright: Implement and document.  Also,
29238         allow variable whitespace before "(C)".
29239         * tests/test-update-copyright.sh: Test.
29240
29241 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29242
29243         update-copyright: don't trip on non-FSF copyright statements
29244         * build-aux/update-copyright: Fix so that the first correctly
29245         formatted FSF copyright statement is recognized no matter what
29246         appears before it.  Update documentation.
29247         * tests/test-update-copyright.sh: Test that.
29248
29249 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29250
29251         update-copyright: clean up code a little
29252         * build-aux/update-copyright: Append "_re" to the name of any
29253         variable holding a regular expression.
29254         Replace "old" and "new" with "stmt" in variable names.
29255         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29256         handled correctly.
29257         Format code more consistently.
29258
29259 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29260
29261         update-copyright-tests: improve portability
29262         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29263         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29264
29265 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29266
29267         update-copyright: support @copyright{} and &copy;
29268         * build-aux/update-copyright: Implement and document.
29269         * tests/test-update-copyright.sh: Test.
29270
29271 2009-08-04  Jim Meyering  <meyering@redhat.com>
29272
29273         update-copyright-tests: correctly test EOL=\r\n handling
29274         * tests/test-update-copyright.sh: Put \r at the end of some lines
29275         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29276
29277         maint.mk: make update-copyright exclusion list more configurable
29278         * top/maint.mk (update-copyright): Default to excluding COPYING,
29279         but allow an override, in case someone does want to update that file.
29280
29281         maint.mk: don't update copyright date in COPYING
29282         * top/maint.mk (update-copyright): Exclude COPYING.
29283
29284         maint.mk: add a copyright-updating rule
29285         * top/maint.mk (update-copyright): New rule.
29286         Derived from coreutils/Makefile.am.
29287
29288         update-copyright: rename some variables
29289         * build-aux/update-copyright: Rename a few variables for clarity.
29290         Tweak syntax.  List Joel E. Denny as coauthor.
29291
29292 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29293
29294         update-copyright: fix bug for 2-digit last year and add tests
29295         * build-aux/update-copyright: Fix bug.
29296         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29297         specified.
29298         * modules/update-copyright-tests: New
29299         * tests/test-update-copyright.sh: New.
29300
29301 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29302
29303         update-copyright: handle leading tabs in line prefix
29304         * build-aux/update-copyright: Count leading tabs as 8 spaces
29305         when computing margin.  This helps with the formatting of
29306         ChangeLogs, for example.
29307         Fix documentation a little.
29308
29309 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29310
29311         update-copyright: support EOL=\r\n
29312         * build-aux/update-copyright: Implement that.
29313
29314 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29315
29316         update-copyright: automatically format copyright statements
29317         * build-aux/update-copyright: Implement that.
29318         Also, be a little more predictable and safer by always failing
29319         when the full copyright format is not perfectly recognized as an
29320         unbroken whole.  Discussed at
29321         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29322         Rewrite documentation.
29323
29324 2009-08-03  Bruno Haible  <bruno@clisp.org>
29325
29326         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29327
29328 2009-08-02  Bruno Haible  <bruno@clisp.org>
29329
29330         Tests for module 'uname'.
29331         * modules/uname-tests: New file.
29332         * tests/test-uname.c: New file.
29333
29334         New module 'uname'.
29335         * lib/uname.c: New file.
29336         * m4/uname.m4: New file.
29337         * modules/uname: New file.
29338         * doc/posix-functions/uname.texi: Mention the new module.
29339
29340 2009-08-02  Bruno Haible  <bruno@clisp.org>
29341
29342         Tests for module 'sys_utsname'.
29343         * modules/sys_utsname-tests: New file.
29344         * tests/test-sys_utsname.c: New file.
29345
29346         New module 'sys_utsname'.
29347         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29348         * m4/sys_utsname_h.m4: New file.
29349         * modules/sys_utsname: New file.
29350         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29351
29352 2009-08-02  Bruno Haible  <bruno@clisp.org>
29353
29354         Implicitly initialize the sockets library.
29355         * lib/gethostname.c: Include sockets.h.
29356         (rpl_gethostname): Invoke gl_sockets_startup.
29357         * lib/socket.c: Include sockets.h.
29358         (rpl_socket): Invoke gl_sockets_startup.
29359         * modules/gethostname (Depends-on): Add sockets.
29360         * modules/socket (Depends-on): Likewise.
29361         * tests/test-poll.c: Don't include sockets.h.
29362         (main): Don't invoke gl_sockets_startup.
29363         * tests/test-select.c: Don't include sockets.h.
29364         (main): Don't invoke gl_sockets_startup.
29365
29366 2009-08-02  Bruno Haible  <bruno@clisp.org>
29367
29368         Allow multiple calls to gl_sockets_startup.
29369         * lib/sockets.c (initialized_sockets_version): New variable.
29370         (gl_sockets_startup): Do nothing if already called for this or a higher
29371         version.
29372         (gl_sockets_cleanup): Reset initialized_sockets_version.
29373
29374 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29375
29376         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29377         different project/version.
29378
29379 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29380             Bruno Haible  <bruno@clisp.org>
29381
29382         Tests for module 'pipe-filter-gi'.
29383         * modules/pipe-filter-gi-tests: New file.
29384         * tests/test-pipe-filter-gi1.sh: New file.
29385         * tests/test-pipe-filter-gi1.c: New file.
29386         * tests/test-pipe-filter-gi2.sh: New file.
29387         * tests/test-pipe-filter-gi2-main.c: New file.
29388         * tests/test-pipe-filter-gi2-child.c: New file.
29389
29390         New module 'pipe-filter-gi'.
29391         * lib/pipe-filter-gi.c: New file.
29392         * modules/pipe-filter-gi: New file.
29393
29394 2009-08-02  Bruno Haible  <bruno@clisp.org>
29395             Paolo Bonzini  <bonzini@gnu.org>
29396
29397         Tests for module 'pipe-filter-ii'.
29398         * modules/pipe-filter-ii-tests: New file.
29399         * tests/test-pipe-filter-ii1.sh: New file.
29400         * tests/test-pipe-filter-ii1.c: New file.
29401         * tests/test-pipe-filter-ii2.sh: New file.
29402         * tests/test-pipe-filter-ii2-main.c: New file.
29403         * tests/test-pipe-filter-ii2-child.c: New file.
29404
29405         New module 'pipe-filter-ii'.
29406         * lib/pipe-filter.h: New file.
29407         * lib/pipe-filter-ii.c: New file.
29408         * lib/pipe-filter-aux.h: New file.
29409         * modules/pipe-filter-ii: New file.
29410
29411 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29412
29413         * lib/gc-libgcrypt.c: Change copyright to FSF.
29414         * lib/gc-gnulib.c: Likewise.
29415
29416 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29417
29418         * lib/gethostname.c: Include limits.h.
29419
29420 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29421             Bruno Haible  <bruno@clisp.org>
29422
29423         Ensure HOST_NAME_MAX as part of the gethostname module.
29424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29425         define also HOST_NAME_MAX.
29426         * tests/test-gethostname.c: Include <limits.h>.
29427         (main): Check also HOST_NAME_MAX.
29428         * doc/posix-headers/limits.texi: Document the mingw problem.
29429
29430 2009-08-02  Bruno Haible  <bruno@clisp.org>
29431
29432         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29433         Add comments.
29434
29435 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29436
29437         * lib/gethostname.c: Add Windows wrapper.
29438         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29439         * modules/gethostname: Depend on sys_socket & errno, for also
29440         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29441         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29442
29443 2009-07-31  Jim Meyering  <meyering@redhat.com>
29444
29445         getloadavg: fix symbol name in comment
29446         * lib/getloadavg.c: Correct a typo I introduced when adding
29447         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29448         Matt Kraai spotted the problem.
29449
29450 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29451
29452         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29453         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29454         code also if ! defined N_NAME_POINTER.
29455         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29456         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29457         but the n_name member is a 12-byte array.
29458
29459 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29460
29461         update-copyright: generalize comment handling
29462         * build-aux/update-copyright: Handle copyright statements
29463         within more comment styles.
29464         Document usage.
29465         Report any file with an external copyright holder or parse failure.
29466
29467 2009-07-29  Jim Meyering  <meyering@redhat.com>
29468
29469         mktime: correct setting of REPLACE_MKTIME
29470         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29471
29472         update-copyright: new module
29473         * modules/update-copyright: New file.
29474         * build-aux/update-copyright: New file.
29475         * MODULES.html.sh (maint+release support): Add update-copyright.
29476
29477 2009-07-27  Bruno Haible  <bruno@clisp.org>
29478
29479         Fix compilation error when <ctime> is used and mktime is replaced.
29480         * lib/time.in.h (mktime): New declaration.
29481         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29482         REPLACE_MKTIME instead of defining mktime in config.h.
29483         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29484         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29485         Reported by Ross McFarland <rwmcfa1@neces.com>.
29486
29487 2009-07-27  Bruno Haible  <bruno@clisp.org>
29488
29489         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29490         Reported by Matt Kraai <mkraai@beckman.com>.
29491
29492 2009-07-25  Jim Meyering  <meyering@redhat.com>
29493
29494         maint.mk: avoid warnings about missing files
29495         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29496         diagnostic when .prev-version does not exist.
29497         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29498         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29499         nonexistent cfg.mk.
29500         Suggestions from Simon Josefsson.
29501
29502 2009-07-25  Bruno Haible  <bruno@clisp.org>
29503
29504         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29505         defined as macros. Needed on QNX 6.4.1.
29506         Reported by Matt Kraai <mkraai@beckman.com>.
29507
29508 2009-07-23  Jim Meyering  <meyering@redhat.com>
29509
29510         maint.mk: invoke "make dist" with a working value of XZ_OPT
29511         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29512
29513 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29514
29515         Make fseeko.c compile on QNX.
29516         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29517
29518 2009-07-22  Peter Simons  <simons@cryp.to>
29519
29520         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29521         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29522         * lib/md4.h: Likewise.
29523         * lib/md5.h: Likewise.
29524         * lib/sha1.h: Likewise.
29525         * lib/sha256.h: Likewise.
29526         * lib/sha512.h: Likewise.
29527
29528         tests-sha1: don't assign literal string to 'char *' variable
29529         * tests/test-sha1.c (main): Declare locals with "const" to match
29530         attributes of the right hand side.
29531
29532 2009-07-21  Eric Blake  <ebb9@byu.net>
29533
29534         dup2: fix more mingw problems
29535         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29536         fd to itself.
29537         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29538         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29539         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29540         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29541         care of mingw bugs.
29542
29543 2009-07-21  Jim Meyering  <meyering@redhat.com>
29544
29545         vc-list-files: avoid failure when /bin/sh is dash
29546         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29547         On some Debian based systems, /bin/sh is a symlink to dash, and running
29548         this command would omit the "/" following each 'tests' prefix:
29549           dash -x build-aux/vc-list-files -C . tests
29550         That is because bash and dash work differently:
29551           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29552           bash ok
29553           dash odd
29554
29555 2009-07-21  Eric Blake  <ebb9@byu.net>
29556
29557         dup2-tests: test previous patch
29558         * modules/dup2-tests: New file.
29559         * tests/test-dup2.c: Likewise.
29560         * tests/test-open.c (main): Avoid unspecified behavior.
29561         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29562         test.
29563
29564         dup2: work around mingw and cygwin 1.5 bug
29565         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29567         * modules/unistd (Makefile.am): Substitute it.
29568         * lib/unistd.in.h (dup2): Declare the replacement.
29569         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29570         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29571         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29572         * modules/execute (Depends-on): Add dup2.
29573         * modules/fseterr (Depends-on): Likewise.
29574         * modules/pipe (Depends-on): Likewise.
29575         * modules/posix_spawn-internal (Depends-on): Likewise.
29576
29577 2009-07-21  Bruno Haible  <bruno@clisp.org>
29578
29579         * modules/.gitattributes: New file.
29580
29581 2009-07-20  Bruno Haible  <bruno@clisp.org>
29582
29583         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29584         (main): Use it.
29585
29586 2009-07-20  Eric Blake  <ebb9@byu.net>
29587
29588         test-pipe: make a bit more robust.
29589         * tests/test-pipe.c (myerr): Allow error messages regardless of
29590         what we do to stderr.
29591         (test_pipe): Rearrange to avoid deadlock.
29592         (child_main): Try a larger read, to ensure we avoided deadlock.
29593         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29594         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29595         if misused.
29596
29597 2009-07-19  Jim Meyering  <meyering@redhat.com>
29598
29599         fts: avoid false-positive cycle-detection
29600         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29601         for each new command line argument.
29602
29603 2009-07-19  Bruno Haible  <bruno@clisp.org>
29604
29605         Fix build error on mingw with the modules sys_select and unistd.
29606         * modules/acl-tests (Depends-on): Add close.
29607         * modules/binary-io-tests (Depends-on): Likewise.
29608         * modules/closein-tests (Depends-on): Likewise.
29609         * modules/flock-tests (Depends-on): Likewise.
29610         * modules/fsync-tests (Depends-on): Likewise.
29611         * modules/lseek-tests (Depends-on): Likewise.
29612         * modules/pipe-tests (Depends-on): Likewise.
29613         * modules/posix_spawn-tests (Depends-on): Likewise.
29614         * modules/posix_spawnp-tests (Depends-on): Likewise.
29615         * modules/stat-time-tests (Depends-on): Likewise.
29616         * modules/yesno-tests (Depends-on): Likewise.
29617
29618 2009-07-19  Bruno Haible  <bruno@clisp.org>
29619
29620         Unify conditionals.
29621         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29622         macros, not at the compiler macros.
29623         * lib/pipe.c: Likewise.
29624         * lib/execute.c: Likewise.
29625         * lib/spawni.c: Likewise.
29626
29627 2009-07-19  Bruno Haible  <bruno@clisp.org>
29628
29629         Fix handling of closed stdin/stdout/stderr on mingw.
29630         * lib/w32spawn.h: Include unistd.h.
29631         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29632         file descriptor with O_NOINHERIT flag.
29633         (fd_safer_noinherit): New function, based on fd-safer.c.
29634         (dup_safer_noinherit): New function, based on dup-safer.c.
29635         (undup_safer_noinherit): New function.
29636         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29637         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29638         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29639         instead of fd_safer.
29640         * tests/test-pipe.c: Include <windows.h>.
29641         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29642         result.
29643
29644         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29645         from main.
29646         (test_pipe): Pass an extra argument for disambiguation.
29647         (main): Invoke parent_main or child_main.
29648
29649         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29650         consistently.
29651
29652 2009-07-18  Eric Blake  <ebb9@byu.net>
29653
29654         test-pipe: fix mingw build
29655         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29656
29657 2009-07-18  Bruno Haible  <bruno@clisp.org>
29658
29659         * modules/pipe-tests (Makefile.am): Fix typo.
29660
29661 2009-07-18  Eric Blake  <ebb9@byu.net>
29662
29663         error: fix mingw build
29664         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29665         Reported by Bruno Haible.
29666
29667         error: avoid undefined use of stdout
29668         * lib/error.c (error, error_at_line): Check that fd 1 is open
29669         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29670         is handling faults and the close_stdout module wants to report the
29671         detection of closed stdout as an error.
29672
29673 2009-07-17  Eric Blake  <ebb9@byu.net>
29674
29675         pipe: be robust in face of closed fds
29676         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29677         should cause child to misbehave.
29678         * modules/pipe-tests: New module.
29679         * tests/test-pipe.c: New file.
29680         * tests/test-pipe.sh: New file.
29681         Reported by Akim Demaille.
29682
29683 2009-07-14  Bruno Haible  <bruno@clisp.org>
29684
29685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29686         Reported by anonymous kc.
29687
29688 2009-07-07  Jim Meyering  <meyering@redhat.com>
29689
29690         maint.mk: don't look for translatable strings in *.m4 or *.mk
29691         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29692         when searching for translatable strings.
29693
29694 2009-07-05  Jim Meyering  <meyering@redhat.com>
29695
29696         remove superfluous parentheses in STREQ definition
29697         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29698         * lib/getugroups.c (STREQ): Likewise.
29699         * lib/fnmatch.c (STREQ): Likewise.
29700         Spotted by Bruno Haible.
29701
29702 2009-07-04  Jim Meyering  <meyering@redhat.com>
29703
29704         argv-iter: new module
29705         * MODULES.html.sh: Add argv-iter.
29706         * lib/argv-iter.c, lib/argv-iter.h: New files.
29707         * modules/argv-iter: New file.
29708         * modules/argv-iter-tests: New file.
29709         * tests/test-argv-iter.c: Test it.
29710
29711 2009-07-04  Bruno Haible  <bruno@clisp.org>
29712
29713         Fix assertion.
29714         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29715         contains more exact copies of a given entry than file2, leave the extra
29716         copies unpaired rather than aborting.
29717         Reported by Eric Blake.
29718
29719 2009-07-02  Bruno Haible  <bruno@clisp.org>
29720
29721         Speedup git-merge-changelog for git cherry-pick.
29722         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29723         (entries_mapping_get): New function, extracted from compute_mapping.
29724         (entries_mapping_reverse_get): New function.
29725         (compute_mapping): Add a 'full' argument. Return the result in a
29726         'struct entries_mapping'.
29727         (main): Update. Access the mappings through entries_mapping_get.
29728         Reported by Eric Blake.
29729
29730 2009-07-02  Bruno Haible  <bruno@clisp.org>
29731
29732         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29733         best_i.
29734
29735 2009-07-02  Bruno Haible  <bruno@clisp.org>
29736
29737         Speed up approximate search for matching ChangeLog entries.
29738         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29739         argument. Call fstrcmp_bounded instead of fstrcmp.
29740         (compute_mapping, try_split_merged_entry, main): Update callers.
29741
29742 2009-07-02  Bruno Haible  <bruno@clisp.org>
29743
29744         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29745
29746 2009-06-30  Bruno Haible  <bruno@clisp.org>
29747
29748         Reduce the number of uc_is_cased calls.
29749         * lib/unicase.h (casing_suffix_context_t): Add
29750         'first_char_except_ignorable' field.
29751         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29752         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29753         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29754         Update initializer.
29755         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29756         case-ignorable characters.
29757         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29758         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29759         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29760         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29761         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29762
29763 2009-06-30  Bruno Haible  <bruno@clisp.org>
29764
29765         Tests for module 'unicase/ignorable'.
29766         * modules/unicase/ignorable-tests: New file.
29767         * tests/unicase/test-ignorable.c: New file, generated by
29768         gen-uni-tables.
29769
29770         Tests for module 'unicase/cased'.
29771         * modules/unicase/cased-tests: New file.
29772         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29773         * tests/unicase/test-predicate-part1.h: New file, derived from
29774         tests/unictype/test-predicate-part1.h.
29775         * tests/unicase/test-predicate-part2.h: New file, same as
29776         tests/unictype/test-predicate-part2.h.
29777
29778         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29779         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29780         (output_casing_properties): New function.
29781         (main): Call it.
29782         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29783         * lib/unicase/cased.c: Include unictype/bitmap.h.
29784         (uc_is_cased): Define through a bitmap lookup.
29785         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29786         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29787         (uc_is_case_ignorable): Define through a bitmap lookup.
29788         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29789         lib/unictype/bitmap.h.
29790         (Depends-on): Add inline. Clean up.
29791         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29792         lib/unictype/bitmap.h.
29793         (Depends-on): Add inline. Clean up.
29794         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29795         recognition.
29796         * tests/unicase/test-u16-tolower.c (main): Likewise.
29797         * tests/unicase/test-u32-tolower.c (main): Likewise.
29798
29799 2009-06-30  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29802         * lib/unicase/u16-casemap.c: Likewise.
29803         * lib/unicase/u32-casemap.c: Likewise.
29804
29805 2009-06-29  Bruno Haible  <bruno@clisp.org>
29806
29807         Define u32_casefold as a wrapper around u32_ct_casefold.
29808         * lib/unicase/u32-casefold.c: Update.
29809         * modules/unicase/u32-casefold (Depends-on): Add
29810         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29811         unicase/empty-suffix-context. Clean up.
29812
29813         Define u16_casefold as a wrapper around u16_ct_casefold.
29814         * lib/unicase/u16-casefold.c: Update.
29815         * modules/unicase/u16-casefold (Depends-on): Add
29816         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29817         unicase/empty-suffix-context. Clean up.
29818
29819         Define u8_casefold as a wrapper around u8_ct_casefold.
29820         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29821         * lib/unicase/u8-casefold.c: Update.
29822         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29823         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29824
29825         Define u32_totitle as a wrapper around u32_ct_totitle.
29826         * lib/unicase/u32-totitle.c: Update.
29827         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29828         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29829
29830         Define u16_totitle as a wrapper around u16_ct_totitle.
29831         * lib/unicase/u16-totitle.c: Update.
29832         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29833         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29834
29835         Define u8_totitle as a wrapper around u8_ct_totitle.
29836         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29837         functions.
29838         (FUNC): Delegate to U_CT_TOTITLE.
29839         * lib/unicase/u8-totitle.c: Update.
29840         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29841         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29842
29843         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29844         invocation.
29845         * modules/unicase/u32-tolower (Depends-on): Add
29846         unicase/empty-prefix-context, unicase/empty-suffix-context.
29847
29848         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29849         invocation.
29850         * modules/unicase/u16-tolower (Depends-on): Add
29851         unicase/empty-prefix-context, unicase/empty-suffix-context.
29852
29853         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29854         * modules/unicase/u8-tolower (Depends-on): Add
29855         unicase/empty-prefix-context, unicase/empty-suffix-context.
29856
29857         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29858         invocation.
29859         * modules/unicase/u32-toupper (Depends-on): Add
29860         unicase/empty-prefix-context, unicase/empty-suffix-context.
29861
29862         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29863         invocation.
29864         * modules/unicase/u16-toupper (Depends-on): Add
29865         unicase/empty-prefix-context, unicase/empty-suffix-context.
29866
29867         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29868         * modules/unicase/u8-toupper (Depends-on): Add
29869         unicase/empty-prefix-context, unicase/empty-suffix-context.
29870
29871         New module 'unicase/u32-ct-casefold'.
29872         * lib/unicase/u32-ct-casefold.c: New file.
29873         * modules/unicase/u32-ct-casefold: New file.
29874
29875         New module 'unicase/u16-ct-casefold'.
29876         * lib/unicase/u16-ct-casefold.c: New file.
29877         * modules/unicase/u16-ct-casefold: New file.
29878
29879         New module 'unicase/u8-ct-casefold'.
29880         * lib/unicase/u8-ct-casefold.c: New file.
29881         * lib/unicase/u-ct-casefold.h: New file, derived from
29882         lib/unicase/u-casefold.h.
29883         * modules/unicase/u8-ct-casefold: New file.
29884
29885         New module 'unicase/u32-ct-totitle'.
29886         * lib/unicase/u32-ct-totitle.c: New file.
29887         * modules/unicase/u32-ct-totitle: New file.
29888
29889         New module 'unicase/u16-ct-totitle'.
29890         * lib/unicase/u16-ct-totitle.c: New file.
29891         * modules/unicase/u16-ct-totitle: New file.
29892
29893         New module 'unicase/u8-ct-totitle'.
29894         * lib/unicase/u8-ct-totitle.c: New file.
29895         * lib/unicase/u-ct-totitle.h: New file, derived from
29896         lib/unicase/u-totitle.h.
29897         * modules/unicase/u8-ct-totitle: New file.
29898
29899         New module 'unicase/u32-ct-tolower'.
29900         * lib/unicase/u32-ct-tolower.c: New file.
29901         * modules/unicase/u32-ct-tolower: New file.
29902
29903         New module 'unicase/u16-ct-tolower'.
29904         * lib/unicase/u16-ct-tolower.c: New file.
29905         * modules/unicase/u16-ct-tolower: New file.
29906
29907         New module 'unicase/u8-ct-tolower'.
29908         * lib/unicase/u8-ct-tolower.c: New file.
29909         * modules/unicase/u8-ct-tolower: New file.
29910
29911         New module 'unicase/u32-ct-toupper'.
29912         * lib/unicase/u32-ct-toupper.c: New file.
29913         * modules/unicase/u32-ct-toupper: New file.
29914
29915         New module 'unicase/u16-ct-toupper'.
29916         * lib/unicase/u16-ct-toupper.c: New file.
29917         * modules/unicase/u16-ct-toupper: New file.
29918
29919         New module 'unicase/u8-ct-toupper'.
29920         * lib/unicase/u8-ct-toupper.c: New file.
29921         * modules/unicase/u8-ct-toupper: New file.
29922
29923         Add context arguments to u*_casemap functions.
29924         * lib/unicase/unicasemap.h: Include unicase.h.
29925         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29926         suffix_context arguments.
29927         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29928         functions.
29929         (FUNC): Add prefix_context and suffix_context arguments. Use
29930         uc_is_cased and uc_is_case_ignorable.
29931         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29932         * lib/unicase/u16-casemap.c: Likewise.
29933         * lib/unicase/u32-casemap.c: Likewise.
29934         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29935         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29936         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29937         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29938         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29939         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29940
29941         New module 'unicase/u32-suffix-context'.
29942         * lib/unicase/u32-suffix-context.c: New file.
29943         * modules/unicase/u32-suffix-context: New file.
29944
29945         New module 'unicase/u16-suffix-context'.
29946         * lib/unicase/u16-suffix-context.c: New file.
29947         * modules/unicase/u16-suffix-context: New file.
29948
29949         New module 'unicase/u8-suffix-context'.
29950         * lib/unicase/u8-suffix-context.c: New file.
29951         * lib/unicase/u-suffix-context.h: New file.
29952         * modules/unicase/u8-suffix-context: New file.
29953
29954         New module 'unicase/empty-suffix-context'.
29955         * lib/unicase/empty-suffix-context.c: New file.
29956         * modules/unicase/empty-suffix-context: New file.
29957
29958         New module 'unicase/u32-prefix-context'.
29959         * lib/unicase/u32-prefix-context.c: New file.
29960         * modules/unicase/u32-prefix-context: New file.
29961
29962         New module 'unicase/u16-prefix-context'.
29963         * lib/unicase/u16-prefix-context.c: New file.
29964         * modules/unicase/u16-prefix-context: New file.
29965
29966         New module 'unicase/u8-prefix-context'.
29967         * lib/unicase/u8-prefix-context.c: New file.
29968         * lib/unicase/u-prefix-context.h: New file.
29969         * lib/unicase/context.h: New file.
29970         * modules/unicase/u8-prefix-context: New file.
29971
29972         New module 'unicase/empty-prefix-context'.
29973         * lib/unicase/empty-prefix-context.c: New file.
29974         * modules/unicase/empty-prefix-context: New file.
29975
29976         New module 'unicase/ignorable'.
29977         * lib/unicase/ignorable.c: New file.
29978         * modules/unicase/ignorable: New file.
29979
29980         New module 'unicase/cased'.
29981         * lib/unicase/caseprop.h: New file.
29982         * lib/unicase/cased.c: New file.
29983         * modules/unicase/cased: New file.
29984
29985         New functions for case mapping of substrings.
29986         * lib/unicase.h (casing_prefix_context_t): New type.
29987         (unicase_empty_prefix_context): New variable.
29988         (u8_casing_prefix_context, u16_casing_prefix_context,
29989         u32_casing_prefix_context, u8_casing_prefixes_context,
29990         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29991         declarations.
29992         (casing_suffix_context_t): New type.
29993         (unicase_empty_suffix_context): New variable.
29994         (u8_casing_suffix_context, u16_casing_suffix_context,
29995         u32_casing_suffix_context, u8_casing_suffixes_context,
29996         u16_casing_suffixes_context, u32_casing_suffixes_context,
29997         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29998         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29999         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30000         declarations.
30001
30002 2009-06-28  Jim Meyering  <meyering@redhat.com>
30003
30004         boostrap: indent only with spaces
30005         * build-aux/bootstrap: Indent only with spaces, never TABs.
30006
30007         bootstrap: split long lines
30008         * build-aux/bootstrap: Keep line length < 80.
30009
30010         bootstrap: sync from coreutils
30011         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30012         just as autoreconf does.  Verify a list of prerequisite
30013         package-name,version-number pairs if defined in bootstrap.conf.
30014         Refer to README-prereq, if prerequisites are not satisfied.
30015
30016 2009-06-27  Eric Blake  <ebb9@byu.net>
30017
30018         tests: add test for bogus NULL definition
30019         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30020         * tests/test-stdlib.c: Likewise.
30021         * tests/test-string.c: Likewise.
30022         * tests/test-locale.c: Likewise.
30023         * tests/test-unistd.c: Likewise.
30024         * modules/stdio-tests (Depends-on): Add verify.
30025         * modules/stdlib-tests (Depends-on): Likewise.
30026         * modules/string-tests (Depends-on): Likewise.
30027         * modules/locale-tests (Depends-on): Likewise.
30028         * modules/unistd-tests (Depends-on): Likewise.
30029
30030 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30031
30032         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30033         self-explaining comment.
30034         * m4/selinux-selinux-h: Update serial.
30035         (gl_LIBSELINUX): New macro, adding a warning for missing development
30036         packages to code extracted from...
30037         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30038         Add warning for missing development packages here, too.
30039
30040 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30041
30042         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30043
30044 2009-06-25  Eric Blake  <ebb9@byu.net>
30045
30046         version-etc: fix regression
30047         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30048         gcc.
30049         (version_etc): Use it, to catch bugs with trailing NULL.
30050         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30051         (version_etc_va): Fix logic bug.
30052         * modules/version-etc-tests: Add test.
30053         * tests/test-version-etc.c: New file.
30054         * tests/test-version-etc.sh: Likewise.
30055
30056 2009-06-25  Sam Steingold  <sds@gnu.org>
30057
30058         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30059         mbtowc declaration.
30060
30061 2009-06-25  Eric Blake  <ebb9@byu.net>
30062
30063         fpurge: migrate into <stdio.h>
30064         * lib/fpurge.h: Delete...
30065         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30066         * lib/fpurge.c (fpurge): Change declaring header.
30067         * modules/fpurge (Files): Drop deleted file.
30068         (Depends-on): Add stdio.
30069         (configure.ac): Set witness.
30070         * modules/stdio (Makefile.am): Support fpurge macros.
30071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30072         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30073         * lib/fflush.c: Update client.
30074         * tests/test-fpurge.c: Likewise.
30075         * NEWS: Mention the change.
30076
30077 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30078
30079         * lib/argp-version-etc.c (program_authors): Add const
30080         qualifier.
30081         * lib/version-etc.c: Fix typos in the comments.
30082         * modules/argp-version-etc: Depends on version-etc.
30083
30084 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30085
30086         argp-version-etc: new module.
30087
30088         * lib/argp-version-etc.c: New file.
30089         * lib/argp-version-etc.h: New file.
30090         * modules/argp-version-etc: New file.
30091         * modules/argp-version-etc-tests: New file.
30092         * tests/test-argp-version-etc.c: New test.
30093         * tests/test-argp-version-etc-1.sh: New test.
30094
30095 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30096
30097         Provide additional interfaces and documentation for version-etc
30098         module.
30099
30100         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30101         interfaces.
30102         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30103         prototypes.
30104
30105 2009-06-24  Bruno Haible  <bruno@clisp.org>
30106
30107         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30108         HAVE_LIB${NAME} macro.
30109         Reported by Sam Steingold <sds@gnu.org>.
30110
30111 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30112
30113         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30114         needed.
30115
30116 2009-06-21  Bruno Haible  <bruno@clisp.org>
30117
30118         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30119         work.
30120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30121         together with LIB${NAME}, LTLIB${NAME}.
30122         Reported by Sam Steingold <sds@gnu.org>.
30123
30124 2009-06-20  Jim Meyering  <meyering@redhat.com>
30125
30126         tests: make sc_require_test_exit_idiom more generic
30127         * top/maint.mk (Exit_witness_file): New overridable variable.
30128         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30129         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30130
30131 2009-06-19  Jim Meyering  <meyering@redhat.com>
30132
30133         hash: reverse order of src/dst parameters in an internal interface
30134         * lib/hash.c (transfer_entries): Reverse order of parameters to
30135         put DST before SRC.  Adjust callers.
30136
30137         tests: test-hash: avoid wholesale duplication
30138         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30139         Instead, use a loop and add a single conditional.
30140
30141         tests: test-hash: allow seed selection via a command line argument
30142         * tests/test-hash.c (get_seed): New function.
30143         (main): Use it.
30144
30145 2009-06-19  Eric Blake  <ebb9@byu.net>
30146
30147         hash: avoid memory leak on allocation failure
30148         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30149         failure.  Factor repeated algorithm...
30150         (transfer_entries): ...into new helper routine.
30151         (hash_delete): React to hash_rehash return value.
30152
30153         hash: reduce memory pressure in hash_rehash no-op case
30154         * lib/hash.c (next_prime): Avoid overflow.
30155         (hash_initialize): Factor bucket size computation...
30156         (compute_bucket_size): ...into new helper function.
30157         (hash_rehash): Use new function and open coding to reduce memory
30158         pressure, and avoid a memory leak in USE_OBSTACK code.
30159         Reported by Jim Meyering.
30160
30161 2009-06-18  Eric Blake  <ebb9@byu.net>
30162
30163         hash: make rotation more obvious
30164         * modules/hash (Depends-on): Add bitrotate and stdint.
30165         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30166         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30167         (SIZE_MAX): Rely on headers for definition.
30168         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30169         (raw_hasher): Use rotr_sz.
30170         Suggested by Jim Meyering.
30171
30172         hash: fix memory leak in last patch
30173         * lib/hash.c (hash_rehash): Avoid memory leak.
30174
30175         hash: avoid no-op rehashing
30176         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30177
30178         hash: provide default callback functions
30179         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30180         (hash_initialize): Use them as defaults.
30181         * tests/test-hash.c (main): Test this.
30182
30183         hash: minor optimization
30184         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30185         when possible.
30186         (hash_initialize): Document this promise.
30187         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30188         * tests/test-hash.c (hash_compare_strings): Test this.
30189
30190 2009-06-18  Bruno Haible  <bruno@clisp.org>
30191
30192         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30193         going to be replaced anyway.
30194
30195 2009-06-18  Bruno Haible  <bruno@clisp.org>
30196
30197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30198         in one place.
30199         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30200         be replaced anyway.
30201
30202 2009-06-18  Eric Blake  <ebb9@byu.net>
30203
30204         hash: check for resize before insertion
30205         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30206         threshold before insertion, so that a pathological hash_rehash
30207         that fills every bucket can still trigger another rehash.
30208
30209 2009-06-18  Jim Meyering  <meyering@redhat.com>
30210
30211         hash-tests: add a loop around the small tests
30212         * tests/test-hash.c (main): Repeat small tests with selected
30213         small initial table sizes.
30214
30215 2009-06-17  Eric Blake  <ebb9@byu.net>
30216
30217         hash: minor cleanups
30218         * lib/hash.h (hash_entry): Make opaque, by moving...
30219         * lib/hash.c (hash_entry): ...here.
30220         (hash_insert): Clarify restrictions on what can be inserted.
30221         (hash_get_next): Clarify when it is safe to remove an element
30222         during traversal.
30223         (check_tuning): Skip verification when tuning is known safe.
30224         (hash_initialize): Clarify restrictions on tuning.
30225
30226 2009-06-17  Jim Meyering  <jim@meyering.net>
30227         and Eric Blake  <ebb9@byu.net>
30228
30229         hash-tests: new module
30230         * modules/hash-tests: New file.
30231         * tests/test-hash.c: New file.
30232
30233 2009-06-17  Eric Blake  <ebb9@byu.net>
30234
30235         strstr-simple: document new module
30236         * MODULES.html.sh: Document new module.
30237
30238         strstr, strcasestr: replace on platforms with broken memchr
30239         * modules/strstr: Split into...
30240         * modules/strstr-simple: ...new module that does not care about
30241         performance, but does care about glibc bug.
30242         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30243         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30244         if platform memchr is broken, per Debian bug 521737.
30245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30246         memchr.
30247         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30248         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30249         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30250         * modules/mountlist (Depends-on): Add strstr-simple.
30251         * modules/gen-uni-tables (Depends-on): Likewise.
30252         * modules/argz (Depends-on): Add strstr.
30253
30254 2009-06-17  Bruno Haible  <bruno@clisp.org>
30255
30256         * modules/posix_spawn-internal (Depends-on): Add errno.
30257
30258 2009-06-17  Bruno Haible  <bruno@clisp.org>
30259
30260         Define missing ESTALE on Interix 3.5.
30261         * lib/errno.in.h (ESTALE): Assign a value if missing.
30262         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30263         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30264         missing.
30265         * doc/posix-headers/errno.texi: Mention the Interix bug.
30266         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30267
30268 2009-06-15  Eric Blake  <ebb9@byu.net>
30269
30270         memchr, memchr2: add valgrind exception
30271         * lib/memchr.valgrind: New file.
30272         * lib/memchr2.valgrind: New file.
30273         * modules/memchr (Files): Distribute valgrind file.
30274         * modules/memchr2 (Files): Likewise.
30275
30276         docs: memchr is no longer obsolete
30277         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30278         * lib/string.in.h (memchr): Simplify logic.
30279
30280 2009-06-14  Jim Meyering  <meyering@redhat.com>
30281
30282         link-follow: fix the "checking..." message to not mention trailing slash
30283         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30284         never considered trailing slashes.
30285
30286 2009-06-14  Bruno Haible  <bruno@clisp.org>
30287
30288         * m4/memchr.m4: Mention also the bug on IA-64.
30289         * doc/posix-functions/memchr.texi: Likewise.
30290
30291 2009-06-12  Eric Blake  <ebb9@byu.net>
30292
30293         memchr: detect broken x86_64 and alpha implementations
30294         * modules/memchr-tests (Depends-on): Move mmap detection...
30295         * modules/memchr (Depends-on): ...here.
30296         (configure.ac): Set indicator.
30297         * lib/string.in.h (memchr): Declare replacement.
30298         * modules/string (Makefile.am): Trigger replacement.
30299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30300         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30301         bugs.
30302         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30303         * modules/getpagesize (License): Relax license.
30304
30305 2009-06-11  Bruno Haible  <bruno@clisp.org>
30306
30307         * lib/idpriv.h: Add more references.
30308
30309 2009-06-08  Bruno Haible  <bruno@clisp.org>
30310
30311         Tests for module 'idpriv-droptemp'.
30312         * modules/idpriv-droptemp-tests: New file.
30313         * tests/test-idpriv-droptemp.sh: New file.
30314         * tests/test-idpriv-droptemp.su.sh: New file.
30315         * tests/test-idpriv-droptemp.c: New file.
30316
30317         New module 'idpriv-droptemp'.
30318         * lib/idpriv-droptemp.c: New file.
30319         * modules/idpriv-droptemp: New file.
30320
30321 2009-06-08  Bruno Haible  <bruno@clisp.org>
30322
30323         Tests for module 'idpriv-drop'.
30324         * modules/idpriv-drop-tests: New file.
30325         * tests/test-idpriv-drop.sh: New file.
30326         * tests/test-idpriv-drop.su.sh: New file.
30327         * tests/test-idpriv-drop.c: New file.
30328
30329         New module 'idpriv-drop'.
30330         * lib/idpriv.h: New file.
30331         * lib-idpriv-drop.c: New file.
30332         * m4/idpriv.m4: New file.
30333         * modules/idpriv-drop: New file.
30334
30335 2009-06-08  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30338         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30339         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30340         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30341         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30343         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30344
30345 2009-06-08  Eric Blake  <ebb9@byu.net>
30346
30347         test-strstr: use memory fence, when possible
30348         * tests/test-strstr.c (main): Use memory fence, in order to be
30349         more likely to trigger Debian bug 521737.
30350         * modules/strstr-tests (Files): Pull in additional files.
30351
30352         memchr: no longer obsolete, for wider field testing
30353         * modules/memchr (Status, Notice): Delete, this module is no
30354         longer obsolete.
30355         * modules/vasnprintf (Depends-on): Add memchr.
30356
30357 2009-06-07  Jim Meyering  <meyering@redhat.com>
30358
30359         hash: declare some functions with the warn_unused_result attribute
30360         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30361
30362 2009-06-07  Bruno Haible  <bruno@clisp.org>
30363
30364         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30365         Reported by Eric Blake.
30366
30367 2009-06-06  Eric Blake  <ebb9@byu.net>
30368
30369         test-alignof: fix typo with long double
30370         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30371         compiler error.
30372
30373 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30374
30375         Escape non-texinfo { and }s.
30376         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30377         markup error.
30378
30379 2009-06-04  Jim Meyering  <meyering@redhat.com>
30380
30381         gitlog-to-changelog: don't infloop on an empty commit log
30382         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30383         Reported by Boris Petersen <transacid@centerim.org>.
30384
30385 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30386
30387         version-etc: extend for packagers
30388         Add three new configure options, intended for packagers:
30389           --with-packager="packager name"
30390           --with-packager-version="packager-specific version"
30391           --with-packager-bug-reports="packager bug reporting"
30392         An example with coreutils:
30393           $ ./configure \
30394             --with-packager=Gentoo \
30395             --with-packager-bug-report=http://bugs.gentoo.org/ \
30396             --with-packager-version="patchset 1.6"
30397           $ ./src/ls --version | head -n2
30398           ls (GNU coreutils) 7.1-dirty
30399           Packaged by Gentoo (patchset 1.6)
30400         Note that the bug reporting info via --help doesn't show up because
30401         coreutils uses its own custom emit_bug_reporting_address() implementation
30402         in src/system.h.  If it didn't, it'd look like:
30403           $ ./src/ls --help | tail -n4
30404           Report bugs to <bug-coreutils@gnu.org>.
30405           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30406           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30407           General help using GNU software: <http://www.gnu.org/gethelp/>.
30408         * lib/version-etc.c: Print new information, if provided.
30409         * m4/version-etc.m4: New file.
30410         * modules/version-etc (Files): Add m4/version-etc.m4.
30411         (configure.ac): Add gl_VERSION_ETC.
30412
30413 2009-05-31  Bruno Haible  <bruno@clisp.org>
30414
30415         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30416         and 'int64_t'.
30417         * modules/alignof-tests (Dependencies): Add stdint.
30418         Reported by Eric Blake.
30419
30420 2009-05-31  Bruno Haible  <bruno@clisp.org>
30421
30422         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30423         restriction due to compiler bugs.
30424         Reported by Eric Blake.
30425
30426 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30427             Bruno Haible  <bruno@clisp.org>
30428
30429         Fix test-alignof failure.
30430         * lib/alignof.h (alignof_slot): New macro.
30431         (alignof_type): New macro, with the same semantics as the previous
30432         'alignof'.
30433         (alignof): Alias to alignof_slot.
30434         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30435         check that the results are usable as constant expressions.
30436
30437 2009-05-31  Bruno Haible  <bruno@clisp.org>
30438
30439         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30440         * tests/test-memchr.c (main): Check that memchr does not read past the
30441         first occurrence of the byte.
30442         * tests/test-strstr.c (main): Update comment.
30443         Suggested by Eric Blake.
30444
30445 2009-05-30  Bruno Haible  <bruno@clisp.org>
30446
30447         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30448         detail how to use dumpbin.
30449         Reported by David Byron <dbyron@dbyron.com>.
30450
30451 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30452
30453         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30454
30455 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30456
30457         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30458
30459 2009-05-28  Bruno Haible  <bruno@clisp.org>
30460
30461         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30462         build-aux/ files.
30463
30464 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30465
30466         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30467
30468 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30469
30470         * gnulib-tool (sed_transform_main_lib_file)
30471         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30472         regexps.
30473
30474 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30475
30476         * tests/test-strstr.c: Add another self-test.
30477         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30478         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30479
30480 2009-05-23  Bruno Haible  <bruno@clisp.org>
30481
30482         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30483         change.
30484
30485 2009-05-21  Bruno Haible  <bruno@clisp.org>
30486
30487         Simplify use of mode_t varargs.
30488         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30489         uses 'mode_t' or 'int'.
30490         * lib/openat.c (openat): Likewise.
30491         * lib/open-safer.c (open_safer): Likewise.
30492         * m4/mode_t.m4: New file.
30493         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30494         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30496         * modules/open (Files): Add m4/mode_t.m4.
30497         * modules/openat (Files): Likewise.
30498         * modules/fcntl-safer (Files): Likewise.
30499         Suggested by Eric Blake.
30500
30501 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30502
30503         * doc/glibc-functions/fallocate.texi: New file.
30504         * doc/gnulib.texi: Include it.
30505
30506 2009-05-21  Eric Blake  <ebb9@byu.net>
30507             Bruno Haible  <bruno@clisp.org>
30508
30509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30510         invocations.
30511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30512
30513 2009-05-21  Eric Blake  <ebb9@byu.net>
30514             Bruno Haible  <bruno@clisp.org>
30515
30516         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30517         include_next. Fix of 2008-11-20 commit.
30518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30519         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30520         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30521         NEXT_MATH_H.
30522         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30523         instead of NEXT_MATH_H.
30524
30525 2009-05-21  Bruno Haible  <bruno@clisp.org>
30526
30527         Avoid redefinition warnings for SIZE_MAX.
30528         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30529         Reported by Simon Josefsson.
30530
30531 2009-05-21  Bruno Haible  <bruno@clisp.org>
30532
30533         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30534         AC_CACHE_VAL.
30535
30536 2009-05-20  Bruno Haible  <bruno@clisp.org>
30537
30538         Make zeroptr.h work on mingw.
30539         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30540         mprotect.
30541         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30542         * modules/memchr2-tests (configure.ac): Likewise.
30543         * modules/memcmp-tests (configure.ac): Likewise.
30544         * modules/memmem-tests (configure.ac): Likewise.
30545         * modules/memrchr-tests (configure.ac): Likewise.
30546         Reported by Simon Josefsson.
30547
30548 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30549
30550         * tests/test-glob.c: Include string.h for strcmp prototype.
30551
30552 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30553
30554         * modules/getdelim (Depends-on): Add explicit stdint, although it
30555         was implicitly already pulled in via realloc-posix.
30556         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30557
30558 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30559
30560         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30561         G. Christensen" <tgc@jupiterrise.com>.
30562         * m4/sys_socket_h.m4: Check for sa_family_t.
30563         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30564         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30565         * tests/test-sys_socket.c: Check that sa_family_t works.
30566
30567 2009-05-18  Eric Blake  <ebb9@byu.net>
30568
30569         maint.mk: allow gnulib_dir in VPATH build
30570         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30571
30572 2009-05-15  Jim Meyering  <meyering@redhat.com>
30573
30574         maint.mk: Give gnulib_dir a default definition.
30575         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30576         Thus, most packages no longer need to specify this variable in cfg.mk
30577
30578 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30579
30580         rename.m4: fix typos that would make non-mingw cross-configure fail
30581         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30582
30583 2009-05-13  Eric Blake  <ebb9@byu.net>
30584
30585         mmap-anon: avoid out-of-order autoconf expansion
30586         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30587         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30588         * modules/memchr-tests (Depends-on): Add extensions.
30589         * modules/memchr2-tests (Depends-on): Add extensions.
30590         * modules/memcmp-tests (Depends-on): Add extensions.
30591         * modules/memmem-tests (Depends-on): Add extensions.
30592         * modules/memrchr-tests (Depends-on): Add extensions.
30593
30594 2009-05-13  Bruno Haible  <bruno@clisp.org>
30595
30596         Make some tests ISO C 99 compliant.
30597         * tests/zerosize-ptr.h: New file.
30598         * tests/test-memchr.c: Include zerosize-ptr.h.
30599         (main): Use a zero-size object pointer instead of NULL.
30600         * tests/test-memchr2.c: Include zerosize-ptr.h.
30601         (main): Use a zero-size object pointer instead of NULL.
30602         * tests/test-memcmp.c: Include zerosize-ptr.h.
30603         (main): Use a zero-size object pointer instead of NULL.
30604         * tests/test-memmem.c: Include zerosize-ptr.h.
30605         (main): Use a zero-size object pointer instead of NULL.
30606         * tests/test-memrchr.c: Include zerosize-ptr.h.
30607         (main): Use a zero-size object pointer instead of NULL.
30608         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30609         m4/mmap-anon.m4.
30610         (Depends-on): Add getpagesize.
30611         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30612         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30613         m4/mmap-anon.m4.
30614         (Depends-on): Add getpagesize.
30615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30616         * modules/memcmp-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/memmem-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/memrchr-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
30629 2009-05-12  Bruno Haible  <bruno@clisp.org>
30630
30631         Tests for module 'alignof'.
30632         * modules/alignof-tests: New file.
30633         * tests/test-alignof.c: New file.
30634
30635 2009-05-12  Bruno Haible  <bruno@clisp.org>
30636
30637         Fix alignof macro.
30638         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30639         vendor compilers that are always correct.
30640
30641 2009-05-12  Bruno Haible  <bruno@clisp.org>
30642
30643         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30644         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30645         not whether its fully works.
30646
30647 2009-05-12  Bruno Haible  <bruno@clisp.org>
30648
30649         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30650
30651 2009-05-12  Jim Meyering  <meyering@redhat.com>
30652
30653         * top/maint.mk: Adjust backslash alignment.
30654
30655 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30656
30657         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30658
30659 2009-05-11  Eric Blake  <ebb9@byu.net>
30660
30661         argp: avoid undefined behavior
30662         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30663         macros.
30664
30665 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30666
30667         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30668         user.name to prevent git commit from complaining.
30669
30670 2009-05-10  Bruno Haible  <bruno@clisp.org>
30671
30672         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30673         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30674         it rewrites every file name only once.
30675         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30676
30677 2009-05-08  Bruno Haible  <bruno@clisp.org>
30678
30679         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30680         instead of 'max'.
30681
30682 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30683
30684         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30685         sockaddr_storage test.
30686
30687 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30688
30689         * modules/sys_socket (Makefile.am): Substitute
30690         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30691         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30692         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30693         * tests/test-sys_socket.c: Check sockaddr_storage.
30694
30695 2009-05-08  Bruno Haible  <bruno@clisp.org>
30696
30697         New module 'alignof'.
30698         * lib/alignof.h: New file.
30699         * modules/alignof: New file.
30700
30701 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30702             Bruno Haible  <bruno@clisp.org>
30703
30704         Fix test-file-has-acl on FreeBSD.
30705         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30706         mask is implicitly added.
30707         * tests/test-file-has-acl.c: Include <signal.h>.
30708         (main): Terminate the test after 5 seconds.
30709         * modules/acl-tests (configure.ac): Check for alarm function.
30710
30711 2009-05-04  Bruno Haible  <bruno@clisp.org>
30712
30713         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30714         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30715         * modules/errno (configure.ac): Drop AC_REQUIRE.
30716         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30717         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30718
30719 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30720
30721         * modules/glob-tests: New module.
30722         * tests/test-glob.c: Add.
30723
30724 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30725
30726         * modules/fnmatch-tests: New module.
30727         * tests/test-fnmatch.c: Add.
30728
30729 2009-05-04  Eric Blake  <ebb9@byu.net>
30730
30731         maint: make the new no-submodule-changes rule VPATH-safe
30732         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30733
30734 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30735             Bruno Haible  <bruno@clisp.org>
30736
30737         acl: Fix infinite loop on FreeBSD.
30738         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30739         of return value from acl_get_entry.
30740         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30741         Likewise.
30742
30743 2009-05-03  Bruno Haible  <bruno@clisp.org>
30744
30745         * lib/acl-internal.h (acl_entries): Clarify return value.
30746         * lib/acl_entries.c (acl_entries): Likewise.
30747
30748 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30749
30750         Bug fix in acl module.
30751         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30752
30753 2009-05-03  Bruno Haible  <bruno@clisp.org>
30754
30755         Create gperf-generated file in the source dir, not in the build dir.
30756         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30757         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30758         * modules/unicase/locale-language (unicase/locale-languages.h):
30759         Likewise.
30760         * modules/unicase/special-casing (unicase/special-casing-table.h):
30761         Likewise.
30762         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30763         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30764         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30765         Reported by Ralf Wildenhues.
30766
30767 2009-05-03  Bruno Haible  <bruno@clisp.org>
30768
30769         * modules/fnmatch (Description, configure.ac): Taken from
30770         fnmatch-posix.
30771         * modules/fnmatch-posix: Turn into a symbolic reference to the
30772         'fnmatch' module, and deprecate.
30773         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30774
30775 2009-05-03  Bruno Haible  <bruno@clisp.org>
30776
30777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30778         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30779         Reported by Ralf Wildenhues.
30780
30781 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30782
30783         * m4/fnmatch.m4: Fix fnmatch re-define.
30784
30785 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30786
30787         priv-set: new module and tests; adapt write-any-file
30788         * lib/priv-set.c: New file.
30789         * lib/priv-set.h: New file.
30790         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30791         * lib/write-any-file.c: Simplify by using priv-set module.
30792         * m4/priv-set.m4: New file.
30793         * modules/priv-set: New file.
30794         * modules/unlinkdir: Add dependency on priv-set module.
30795         * modules/write-any-file: Likewise.
30796
30797         Tests for module 'priv-set'.
30798         * modules/priv-set-tests: New file.
30799         * tests/test-priv-set.c: New file.
30800
30801 2009-05-03  Jim Meyering  <meyering@redhat.com>
30802             Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30805         use the converted UTF-8 variant of the name instead.
30806
30807 2009-05-03  Jim Meyering  <meyering@redhat.com>
30808
30809         tests: tighten some getdate tests
30810         * tests/test-getdate.c (main): Tighten tests: require equality,
30811         not just greater than.  Set TZ envvar to UTC0.
30812
30813 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30814
30815         getdate: correctly interpret "next monday" when run on a Monday
30816         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30817         that e.g., "next tues" (when run on a tuesday) results in a date
30818         that is one week in the future, and not today's date.
30819         I.e., add a week when the wday is the same as the current one.
30820         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30821         and earlier by Martin Bernreuther and Jan Minář.
30822         * tests/test-getdate.c (main): Check that "next DAY" is always in
30823         the future and that "last DAY" is always in the past.
30824
30825 2009-05-02  Jim Meyering  <meyering@redhat.com>
30826
30827         build: ensure that a release build fails when a submodule is unclean
30828         * top/maint.mk (no-submodule-changes): New rule.
30829         (alpha beta major): Depend on it.
30830
30831 2009-05-02  Bruno Haible  <bruno@clisp.org>
30832
30833         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30834         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30835         shell variable gl_fnmatch_required to detect which variant is
30836         requested.
30837         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30838         gl_FUNC_FNMATCH_POSIX.
30839         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30840         exclude fnmatch-posix.
30841
30842 2009-05-02  Bruno Haible  <bruno@clisp.org>
30843
30844         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30845         * modules/mbsrtowcs (License): Change to LGPLv2+.
30846         * modules/strnlen1 (License): Likewise.
30847         Reported by Simon Josefsson.
30848
30849 2009-05-02  Bruno Haible  <bruno@clisp.org>
30850
30851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30852         "cross".
30853         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30854         gnulib-tool was called with option --source-base=lib.
30855
30856 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30857
30858         Use automake *-local hooks without commands, for extensibility.
30859         * modules/localcharset (Makefile.am): Rename install-exec-local
30860         rule to install-exec-localcharset, and make it a prerequisite of
30861         install-exec-local.  Likewise, rename the uninstall-local rule to
30862         uninstall-localcharset, and make it a prerequisite of the former.
30863
30864 2009-05-01  Bruno Haible  <bruno@clisp.org>
30865
30866         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30867         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30868         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30870         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30871         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30872         m4/locale-zh.m4, m4/codeset.m4.
30873
30874         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30875         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30876         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30877         m4/locale-zh.m4.
30878
30879         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30880         REPLACE_WCRTOMB if mbstate_t must be replaced.
30881         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30882         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30883
30884 2009-05-01  Bruno Haible  <bruno@clisp.org>
30885
30886         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30887         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30888         dngettext, dcngettext, textdomain, bindtextdomain,
30889         bind_textdomain_codeset): Undefine before redefining.
30890
30891 2009-04-30  Bruno Haible  <bruno@clisp.org>
30892
30893         Fix bug introduced on 2009-04-25.
30894         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30895         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30896         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30897         is defined.
30898         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30899         is defined.
30900         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30901         is defined.
30902         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30903
30904 2009-04-28  Bruno Haible  <bruno@clisp.org>
30905
30906         Comment tweaks.
30907         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30908         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30909         * lib/unicase.h (u*_casexfrm): Likewise.
30910         Reported by Paolo Bonzini.
30911
30912 2009-04-28  Bruno Haible  <bruno@clisp.org>
30913
30914         Fix a compilation error.
30915         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30916         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30917         Reported by Jim Meyering.
30918
30919 2009-04-27  Bruno Haible  <bruno@clisp.org>
30920
30921         New module 'libunistring'.
30922         * modules/libunistring: New file.
30923         * m4/libunistring.m4: New file.
30924         * MODULES.html.sh (Unicode string functions): Add it.
30925
30926 2009-04-27  Eric Blake  <ebb9@byu.net>
30927
30928         maint.mk: allow package-specific header to provide <config.h>
30929         * top/maint.mk (sc_require_config_h): New variable.
30930         (sc_require_config_h, sc_require_config_h_first): Use it.
30931
30932 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30933
30934         * top/maint.mk (sc_avoid_if_before_free): Except
30935         useless-if-before-free script.
30936
30937 2009-04-27  Eric Blake  <ebb9@byu.net>
30938
30939         maintainer-makefile: depend on all required helper scripts
30940         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30941         useless-if-before-free.
30942         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30943         version, rather than assuming gnulib checkout is available.
30944         Reported by Simen Josefsson.
30945
30946 2009-04-26  Bruno Haible  <bruno@clisp.org>
30947
30948         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30949         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30950         "../" or "..".
30951
30952 2009-04-26  Bruno Haible  <bruno@clisp.org>
30953
30954         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30955         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30956         AC_LIB_HAVE_LINKFLAGS.
30957
30958 2009-04-26  Bruno Haible  <bruno@clisp.org>
30959
30960         Simplify calling convention of u*_conv_from_encoding.
30961         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30962         u32_conv_from_encoding): Expect a resultbuf argument and return the
30963         result directly as a pointer.
30964         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30965         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30966         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30967         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30968         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30969         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30970         Update.
30971         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30972         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30973         * lib/vasnprintf.c (VASNPRINTF): Update.
30974         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30975         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30976         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30977         * NEWS: Mention the change.
30978
30979 2009-04-26  Bruno Haible  <bruno@clisp.org>
30980
30981         Simplify calling convention of u*_conv_to_encoding.
30982         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30983         u32_conv_to_encoding): Expect a resultbuf argument and return the
30984         result directly as a pointer.
30985         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30986         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30987         freeing scaled_offsets if mem_iconveha failed.
30988         * lib/unicase/u-casexfrm.h (FUNC): Update.
30989         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30990         * lib/vasnprintf.c (VASNPRINTF): Update.
30991         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30992         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30993         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30994         * NEWS: Mention the change.
30995
30996 2009-04-26  Bruno Haible  <bruno@clisp.org>
30997
30998         Avoid test failures on AIX and OSF/1.
30999         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31000         malloc(0).
31001         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31002         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31003         Likewise.
31004         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31005         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31006         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31007         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31008         * doc/posix-functions/malloc.texi: Document the portability problem
31009         related to malloc(0).
31010
31011 2009-04-26  Bruno Haible  <bruno@clisp.org>
31012
31013         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31014         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31015         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31016
31017 2009-04-25  Bruno Haible  <bruno@clisp.org>
31018
31019         Avoid link error when creating a namespace clean library.
31020         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31021         as macro with arguments if already defined as an alias.
31022         * lib/signbitf.c (gl_signbitf): Don't undefine.
31023         * lib/signbitd.c (gl_signbitd): Don't undefine.
31024         * lib/signbitl.c (gl_signbitl): Don't undefine.
31025
31026 2009-04-25  Jim Meyering  <meyering@redhat.com>
31027
31028         vc-list-files: fix another quoting bug
31029         * build-aux/vc-list-files: Avoid sed backslash expansion
31030         of pathological directory names.
31031
31032 2009-04-25  Eric Blake  <ebb9@byu.net>
31033
31034         vc-list-files: fix shell quoting error
31035         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31036         timestamp.
31037
31038 2009-04-25  Jim Meyering  <meyering@redhat.com>
31039
31040         vc-list-files: restore lost functionality with subdir argument
31041         * build-aux/vc-list-files: When given a non-"." sub-directory
31042         argument, substitute the $dir/ prefix back onto each resulting name.
31043         Otherwise, coreutils' root_tests check would fail.
31044
31045 2009-04-24  Eric Blake  <ebb9@byu.net>
31046
31047         vc-list-files: ignore git symlinks
31048         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31049         than ls-files, to ignore git symlinks.
31050
31051         maint.mk: import improvements from m4
31052         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31053         (move_if_change): Delete unused macro.
31054         (news-date-check, vc-diff-check): Support VPATH builds.
31055         (announcement): Likewise.  Split --bootstrap-tools list...
31056         (boostrap-tools): ...into separate list, which can be overridden
31057         in cfg.mk.
31058         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31059         requiring dependency on useless-if-before-free module.
31060         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31061         Support VPATH builds.
31062
31063 2009-04-24  Jim Meyering  <meyering@redhat.com>
31064
31065         maint.mk: remove coreutils-specific rules and variables
31066         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31067         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31068         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31069
31070         maint.mk: remove obsolete rule
31071         * top/maint.mk (rel-check): Remove rule.
31072         (WGET, WGETFLAGS): Remove now-unused variables.
31073
31074 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31075
31076         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31077         consistency.
31078
31079         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31080         '$(PATH_SEPARATOR)' instead of ':'.
31081
31082 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31083
31084         * lib/getopt1.c (main): Use 'const' for static array.
31085
31086 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31087
31088         * top/maint.mk: Sync with coreutils.
31089         * NEWS: Explain incompatibilities.
31090
31091 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31092             Bruno Haible  <bruno@clisp.org>
31093
31094         Fix cross-compilation results.
31095         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31096         statement, as third argument of AC_TRY_RUN.
31097         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31098         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31099         Likewise.
31100         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31101         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31102         Likewise.
31103         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31104         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31105         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31106
31107 2009-04-20  Bruno Haible  <bruno@clisp.org>
31108
31109         Avoid test failure on mingw.
31110         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31111
31112 2009-04-20  Bruno Haible  <bruno@clisp.org>
31113
31114         Avoid compilation error on mingw.
31115         * modules/localename-tests (Depends-on): Add locale.
31116
31117 2009-04-19  Bruno Haible  <bruno@clisp.org>
31118
31119         Support for building a shared library on Windows platforms.
31120         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31121         (main): Test the presence of UNINORM_NFC here.
31122         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31123         (main): Test the presence of UNINORM_NFD here.
31124         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31125         (main): Test the presence of UNINORM_NFKC here.
31126         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31127         (main): Test the presence of UNINORM_NFKD here.
31128
31129 2009-04-19  Bruno Haible  <bruno@clisp.org>
31130
31131         Avoid a compiler warning.
31132         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31133         Change type of variable 'sequence'.
31134
31135 2009-04-19  Bruno Haible  <bruno@clisp.org>
31136
31137         * modules/configmake (Makefile.am): When the contents of configmake.h
31138         does not change, arrange to preserve its modification time.
31139
31140 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31141
31142         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31143         gettext domain.
31144
31145 2009-04-16  Jim Meyering  <meyering@redhat.com>
31146
31147         useless-if-before-free: improve conversion code
31148         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31149         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31150
31151 2009-04-14  Bruno Haible  <bruno@clisp.org>
31152
31153         * modules/fcntl (Depends-on): Add extensions.
31154         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31155
31156 2009-04-12  Ben Pfaff  <blp@gnu.org>
31157
31158         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31159         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31160
31161 2009-03-20  Ben Pfaff  <blp@gnu.org>
31162
31163         Make rename replace existing destinations on Windows.
31164         * m4/rename.m4: Add test for Mingw.
31165         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31166         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31167         * doc/posix-functions/rename.texi: Document.
31168
31169 2009-04-10  Bruno Haible  <bruno@clisp.org>
31170
31171         New include file "iconveh.h".
31172         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31173         * lib/striconveh.h: Include it.
31174         (enum iconv_ilseq_handler): Remove definition.
31175         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31176         striconveh.h.
31177         * lib/striconveha.c: Include striconveh.h.
31178         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31179         * modules/striconveh (Files): Add lib/iconveh.h.
31180         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31181         lib/striconveh.h.
31182
31183 2009-04-10  Bruno Haible  <bruno@clisp.org>
31184
31185         * lib/uniconv.h: Update comment.
31186
31187 2009-04-10  Bruno Haible  <bruno@clisp.org>
31188
31189         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31190         always.
31191         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31192         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31193         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31194         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31195         "unistring-notinline.h", so that the function gets defined always.
31196         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31197         * lib/unistr/u8-uctomb.c: Likewise.
31198         * lib/unistr/u16-mbtouc.c: Likewise.
31199         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31200         * lib/unistr/u16-uctomb.c: Likewise.
31201         * lib/unistr/u32-mbtouc.c: Likewise.
31202         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31203         * lib/unistr/u32-uctomb.c: Likewise.
31204
31205 2009-04-10  Bruno Haible  <bruno@clisp.org>
31206
31207         Mark 'utime' obsolete.
31208         * modules/utime (Status, Notice): New sections.
31209         Suggested by Jim Meyering.
31210
31211         Fix cross-compile guess for utime test.
31212         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31213         autoconf.
31214         * doc/posix-functions/utime.texi: Give more precisions.
31215         Reported by Jan <ipif@ymail.com>.
31216
31217 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31218
31219         filevercmp: correct today's change
31220         * lib/filevercmp.c: Also handle coreutils' test inputs.
31221         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31222
31223         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31224         for reporting it.
31225         * lib/filevercmp.c: Special handle for "", "." and "..".
31226         * tests/test-filevercmp.c: Enlarge the set suite.
31227
31228 2009-04-07  Jim Meyering  <meyering@redhat.com>
31229
31230         useless-if-before-free: show how to remove braced useless free, too
31231         * build-aux/useless-if-before-free: still only in a comment, though.
31232
31233 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31234
31235         maint.mk: import changes to syntax-check macros from coreutils
31236         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31237         Use them in the relevant macros.
31238
31239 2009-04-06  Bruno Haible  <bruno@clisp.org>
31240
31241         Fix unportable use of bit-fields.
31242         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31243         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31244         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31245
31246 2009-04-06  Bruno Haible  <bruno@clisp.org>
31247
31248         Avoid test failures on AIX and OSF/1.
31249         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31250         that malloc(0) = NULL.
31251         * tests/unicase/test-u8-tolower.c (check): Likewise.
31252         * tests/unicase/test-u8-totitle.c (check): Likewise.
31253         * tests/unicase/test-u8-toupper.c (check): Likewise.
31254         * tests/unicase/test-u16-casefold.c (check): Likewise.
31255         * tests/unicase/test-u16-tolower.c (check): Likewise.
31256         * tests/unicase/test-u16-totitle.c (check): Likewise.
31257         * tests/unicase/test-u16-toupper.c (check): Likewise.
31258         * tests/unicase/test-u32-casefold.c (check): Likewise.
31259         * tests/unicase/test-u32-tolower.c (check): Likewise.
31260         * tests/unicase/test-u32-totitle.c (check): Likewise.
31261         * tests/unicase/test-u32-toupper.c (check): Likewise.
31262         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31263         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31264         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31265         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31266         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31267         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31268         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31269         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31270         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31271         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31272         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31273         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31274
31275 2009-04-05  Bruno Haible  <bruno@clisp.org>
31276
31277         Work around an autoconf limitation.
31278         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31279         comment line if it would be longer than 3 KB.
31280
31281 2009-04-05  Bruno Haible  <bruno@clisp.org>
31282
31283         Avoid test failure with libiconv-1.13.
31284         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31285         of the expected test results.
31286
31287 2009-04-05  Bruno Haible  <bruno@clisp.org>
31288
31289         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31290         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31291         that it should be installed.
31292
31293 2009-04-05  Bruno Haible  <bruno@clisp.org>
31294
31295         * gnulib-tool: New option --copy-file.
31296         (func_usage): Document it.
31297         (func_dest_tmpfilename): Moved out of func_import.
31298         (func_add_file, func_update_file): New functions, extracted from
31299         func_import.
31300         (func_import): Update.
31301
31302 2009-04-05  Karl Berry  <karl@gnu.org>
31303
31304         * README: prominently mention gnulib-tool.
31305         Rearrange sections so getting the code is near the top.
31306
31307 2009-04-05  Bruno Haible  <bruno@clisp.org>
31308
31309         * lib/unicase.h: Mention u*_cmp2.
31310         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31311         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31312         * lib/unicase/ulc-casecmp.c: Likewise.
31313         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31314         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31315         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31316         unistr/u8-cmp.
31317         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31318         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31319         unistr/u16-cmp.
31320         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31321         unistr/u32-cmp.
31322
31323         * lib/uninorm.h: Mention u*_cmp2.
31324         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31325         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31326         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31327         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31328         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31329         unistr/u8-cmp.
31330         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31331         unistr/u16-cmp.
31332         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31333         unistr/u32-cmp.
31334
31335         New module 'unistr/u32-cmp2'.
31336         * lib/unistr/u32-cmp2.c: New file.
31337         * modules/unistr/u32-cmp2: New file.
31338
31339         New module 'unistr/u16-cmp2'.
31340         * lib/unistr/u16-cmp2.c: New file.
31341         * modules/unistr/u16-cmp2: New file.
31342
31343         New module 'unistr/u8-cmp2'.
31344         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31345         * lib/unistr/u8-cmp2.c: New file.
31346         * lib/unistr/u-cmp2.h: New file.
31347         * modules/unistr/u8-cmp2: New file.
31348
31349 2009-04-05  Bruno Haible  <bruno@clisp.org>
31350
31351         * lib/unictype.h (uc_property_is_valid): New macro.
31352         * tests/unictype/test-pr_byname.c (main): Use it.
31353
31354         * lib/unistr.h: Doc fixes.
31355         * lib/uniconv.h: Doc fixes.
31356         * lib/unictype.h: Doc fixes.
31357
31358 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31359
31360         Port coreutils 7.2 to Solaris 8.
31361
31362         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31363         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31364         for Solaris 8.  This is a bit of a hack, as it means it's the
31365         caller's responsibility to add -lnsl if needed, but most likely it
31366         won't be needed since only getaddrinfo uses this and getaddrinfo
31367         isn't needed on Solaris 8.
31368
31369         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31370         problem to Solaris 8 encountered with coreutils 7.2, which
31371         resulted in a message "fnmatch.c:292: warning: passing argument 4
31372         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31373         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31374
31375 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31376
31377         * m4/ld-version-script.m4: Add FIXME comment.
31378
31379 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31380
31381         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31382         SOVERSION variable.
31383
31384 2009-04-02  Bruno Haible  <bruno@clisp.org>
31385
31386         * Makefile (info, html, dvi, pdf): Combine the rules.
31387         Suggested by Jim Meyering.
31388
31389 2009-04-01  Bruno Haible  <bruno@clisp.org>
31390
31391         * Makefile (info, html, dvi, pdf): New targets.
31392         Reported by Reuben Thomas <rrt@sc3d.org>.
31393
31394 2009-04-01  Bruno Haible  <bruno@clisp.org>
31395
31396         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31397         can be put into PATH.
31398         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31399
31400 2009-04-01  Bruno Haible  <bruno@clisp.org>
31401
31402         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31403
31404 2009-04-01  Bruno Haible  <bruno@clisp.org>
31405
31406         Rename module 'visibility'.
31407         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31408         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31409         * doc/gnulib.texi: Update.
31410         * MODULES.html.sh (Misc): Update.
31411         * NEWS: Mention the change.
31412
31413 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31414
31415         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31416         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31417         Eric Blake <ebb9@byu.net> for review.
31418         * MODULES.html.sh: Add lib-msvc-compat.
31419         * doc/gnulib.texi: Link to new section.
31420         * m4/ld-output-def.m4: New file.
31421         * doc/ld-output-def.texi: New file.
31422
31423 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31424
31425         Rename ld-version-script to lib-symbol-versions.  Suggested by
31426         Bruno Haible <bruno@clisp.org>.
31427         * modules/ld-version-script: Renamed to lib-symbol-versions.
31428         * doc/ld-version-script.texi: Fix module name.
31429         * MODULES.html.sh: Add lib-symbol-versions.
31430
31431 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31432
31433         * modules/u64-tests: New file.
31434         * tests/test-u64.c: New file.
31435
31436 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31437
31438         * MODULES.html.sh: Mention u64.
31439         * modules/u64: New module.
31440         * modules/crypto/sha512: Depend on u64 module instead of providing
31441         u64.h.
31442
31443 2009-03-27  Eric Blake  <ebb9@byu.net>
31444
31445         test-strerror: make debugging EAI_SYSTEM easier
31446         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31447         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31448         failure was EAI_SYSTEM.
31449
31450 2009-03-25  Bruno Haible  <bruno@clisp.org>
31451
31452         Fix a problem with --enable-relocatable on Solaris 7.
31453         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31454         since 2008-02-24.
31455
31456 2009-03-25  Eric Blake  <ebb9@byu.net>
31457
31458         test-sockets: avoid gcc warning
31459         * tests/test-sockets.c (main): Silence compiler warning.
31460
31461 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         New modules nproc, pthread, contributed by Glen Lenker.
31464
31465         * MODULES.html.sh: Add pthread, nproc.
31466         * lib/nproc.c: New file.
31467         * lib/nproc.h: New file.
31468         * lib/pthread.in.h: New file.
31469         * m4/pthread.m4: New file.
31470         * modules/nproc: New file.
31471         * modules/pthread: New file.
31472
31473 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31474
31475         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31476         New variable.
31477
31478 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31479
31480         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31481         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31482         * tests/test-filevercmp.c: Add tests for backup suffixes.
31483
31484 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31485
31486         * modules/stdlib (Depends-on): Add stdint, needed when defining
31487         struct random_data on, for example, HP-UX 10.20.  Reported by
31488         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31489
31490 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31491
31492         * lib/readline.c (readline): Call fflush on stdout after printing
31493         prompt.
31494
31495 2009-03-20  Bruno Haible  <bruno@clisp.org>
31496
31497         Remove dependency from 'close' module to -lws2_32 on native Windows.
31498         * lib/close-hook.h: New file.
31499         * lib/close-hook.c: New file.
31500         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31501         w32sock.h.
31502         (_gl_close_fd_maybe_socket): Remove function.
31503         (rpl_close): Invoke execute_all_close_hooks instead of
31504         _gl_close_fd_maybe_socket.
31505         * lib/sockets.c: Include close-hook.h, w32sock.h.
31506         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31507         (close_sockets_hook): New variable.
31508         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31509         (gl_sockets_cleanup): Unregister it.
31510         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31511         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31512         * modules/close-hook: New file.
31513         * modules/close (Files): Remove lib/w32sock.h.
31514         (Depends-on): Add close-hook.
31515         (Link): Remove section.
31516         * modules/sockets (Files): Add lib/w32sock.h.
31517         (Depends-on): Add close-hook.
31518         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31519         invocation.
31520         * NEWS: Mention that LIB_CLOSE is gone.
31521
31522 2009-03-23  Eric Blake  <ebb9@byu.net>
31523
31524         signal-tests: test previous patch
31525         * tests/test-signal.c: New file.
31526         * modules/signal-tests: Likewise.
31527
31528         signal.h: always support 'volatile sig_atomic_t'
31529         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31530         (gl_SIGNAL_H_DEFAULTS): Add a default.
31531         * modules/signal (Makefile.am): Substitute if needed.
31532         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31533         users can blindly add volatile.
31534         * doc/posix-headers/signal.texi (signal.h): Document it.
31535         Reported by Matthew Woehlke.
31536
31537 2009-03-23  Jim Meyering  <meyering@redhat.com>
31538
31539         pathmax: PATH_MAX: use pathconf only when available
31540         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31541         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31542         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31543         This avoids a link failure in a PSP cross-compilation environment
31544         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31545
31546         * lib/vasnprintf.c (divide): Fix typo in comment.
31547
31548 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31549
31550         * gnulib-tool (func_filter_filelist): Fix comment.
31551
31552 2009-03-20  Bruno Haible  <bruno@clisp.org>
31553
31554         Make sockets.h self-contained.
31555         * lib/sockets.c: Include sockets.h first.
31556         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31557
31558 2009-03-19  Eric Blake  <ebb9@byu.net>
31559
31560         doc: mention more functions added in cygwin 1.7.0
31561         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31562         addition.
31563         * doc/posix-functions/log2f.texi: Likewise.
31564
31565 2009-03-19  Jim Meyering  <meyering@redhat.com>
31566
31567         fsusage: avoid syntax error due to statement-before-declaration
31568         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31569         after all declarations.  Reported by Matthew Woehlke in
31570         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31571
31572 2009-03-18  Eric Blake  <ebb9@byu.net>
31573
31574         build-aux/compile: sync from automake
31575         * build-aux/compile: New file, from automake.
31576         * config/srclist.txt: Mention build-aux/compile.
31577
31578 2009-03-17  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/git-merge-changelog.c: Fix typo in comment.
31581         Reported by Reuben Thomas <rrt@sc3d.org>.
31582
31583 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31584
31585         * m4/regex.m4: update and improve help for
31586         --without-included-regex.
31587
31588 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31589
31590         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31591         failure on missing include files.
31592
31593 2009-03-17  Eric Blake  <ebb9@byu.net>
31594
31595         doc: mention more functions added in cygwin 1.7.0
31596         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31597         addition.
31598         * doc/posix-functions/fwscanf.texi: Likewise.
31599         * doc/posix-functions/swprintf.texi: Likewise.
31600         * doc/posix-functions/swscanf.texi: Likewise.
31601         * doc/posix-functions/vfwprintf.texi: Likewise.
31602         * doc/posix-functions/vfwscanf.texi: Likewise.
31603         * doc/posix-functions/vswprintf.texi: Likewise.
31604         * doc/posix-functions/vswscanf.texi: Likewise.
31605         * doc/posix-functions/vwprintf.texi: Likewise.
31606         * doc/posix-functions/vwscanf.texi: Likewise.
31607         * doc/posix-functions/wcscasecmp.texi: Likewise.
31608         * doc/posix-functions/wcsdup.texi: Likewise.
31609         * doc/posix-functions/wcsftime.texi: Likewise.
31610         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31611         * doc/posix-functions/wprintf.texi: Likewise.
31612         * doc/posix-functions/wscanf.texi: Likewise.
31613         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31614
31615 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31616
31617         maint.mk: really add $(AM_MAKEFLAGS)
31618         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31619         was inadvertently omitted in the last commit.
31620         Spotted by Bruno Haible.
31621
31622         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31623         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31624         $(AM_MAKEFLAGS)' rather than plain `make'.
31625
31626         gnulib-tool: execute $MAKE not make
31627         * gnulib-tool: Default $MAKE to 'make'.
31628         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31629         than make.  Initialize $MAKE in the do-autobuild script.
31630
31631         gnulib-tool: use $MAKE not make in generated files
31632         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31633         make, in generated files.  Initialize $MAKE in the do-autobuild
31634         script.
31635
31636         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31637
31638         GNUmakefile: disable parallelism only for multiple, recursive targets
31639         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31640         additions in the Makefile.
31641         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31642         by Automake.
31643         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31644         are listed on the command line and at least one of them is
31645         listed in $(ALL_RECURSIVE_TARGETS).
31646
31647 2009-03-14  Bruno Haible  <bruno@clisp.org>
31648
31649         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31650         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31651         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31652         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31653         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31654         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31655         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31656         unistr/u8-uctomb.
31657         * modules/unistr/u8-strchr (Depends-on): Likewise.
31658         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31659         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31660         unistr/u16-uctomb.
31661         * modules/unistr/u16-strchr (Depends-on): Likewise.
31662         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31663
31664 2009-03-12  Bruno Haible  <bruno@clisp.org>
31665
31666         Work around select() bug on Interix 3.5.
31667         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31668         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31669         * m4/select.m4: New file.
31670         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31671         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31672         * modules/select (Files): Add m4/select.m4.
31673         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31674         * modules/nanosleep (Depends-on): Add select.
31675         * modules/poll (Depends-on): Likewise.
31676         * doc/posix-functions/select.texi: Mention the Interix bug.
31677         Reported by Markus Duft <mduft@gentoo.org>.
31678
31679         * lib/select.c: Renamed from lib/winsock-select.c.
31680         * modules/select (Files): Add lib/select.c, remove
31681         lib/winsock-select.c.
31682         (configure.ac): Update.
31683
31684 2009-03-12  Jim Meyering  <meyering@redhat.com>
31685
31686         avoid gcc warnings about unused macro definitions
31687         * lib/readtokens.c (STREQ): Remove unused definition.
31688         * lib/xmalloc.c (SIZE_MAX): Likewise.
31689         * lib/openat-die.c (N_): Likewise.
31690         * lib/mountlist.c (SIZE_MAX): Remove definition.
31691         Instead, include <stdint.h>.
31692         * lib/readutmp.c: Likewise.
31693         * modules/readutmp (Depends-on): Add stdint.
31694         * modules/mountlist (Depends-on): Add stdint.
31695         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31696
31697 2009-03-10  Bruno Haible  <bruno@clisp.org>
31698
31699         Tests for module 'mbmemcasecoll'.
31700         * modules/mbmemcasecoll-tests: New file.
31701         * tests/test-mbmemcasecoll1.sh: New file.
31702         * tests/test-mbmemcasecoll2.sh: New file.
31703         * tests/test-mbmemcasecoll3.sh: New file.
31704         * tests/test-mbmemcasecoll.c: New file.
31705
31706         New module 'mbmemcasecoll'.
31707         * lib/mbmemcasecoll.h: New file.
31708         * lib/mbmemcasecoll.c: New file.
31709         * modules/mbmemcasecoll: New file.
31710
31711         * tests/test-mbmemcasecmp.h: New file, extracted from
31712         tests/test-mbmemcasecmp.c.
31713         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31714         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31715         (main): Update.
31716         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31717
31718 2009-03-09  Bruno Haible  <bruno@clisp.org>
31719
31720         Tests for module 'mbmemcasecmp'.
31721         * modules/mbmemcasecmp-tests: New file.
31722         * tests/test-mbmemcasecmp1.sh: New file.
31723         * tests/test-mbmemcasecmp2.sh: New file.
31724         * tests/test-mbmemcasecmp3.sh: New file.
31725         * tests/test-mbmemcasecmp.c: New file.
31726
31727         New module 'mbmemcasecmp'.
31728         * lib/mbmemcasecmp.h: New file.
31729         * lib/mbmemcasecmp.c: New file.
31730         * modules/mbmemcasecmp: New file.
31731
31732 2009-03-09  Bruno Haible  <bruno@clisp.org>
31733
31734         Tests for module 'unicase/ulc-casecoll'.
31735         * modules/unicase/ulc-casecoll-tests: New file.
31736         * tests/unicase/test-ulc-casecoll1.sh: New file.
31737         * tests/unicase/test-ulc-casecoll2.sh: New file.
31738         * tests/unicase/test-ulc-casecoll.c: New file.
31739
31740         New module 'unicase/ulc-casecoll'.
31741         * lib/unicase.h (ulc_casecoll): New declaration.
31742         * lib/unicase/ulc-casecoll.c: New file.
31743         * modules/unicase/ulc-casecoll: New file.
31744
31745         New module 'unicase/ulc-casexfrm'.
31746         * lib/unicase.h (ulc_casexfrm): New declaration.
31747         * lib/unicase/ulc-casexfrm.c: New file.
31748         * modules/unicase/ulc-casexfrm: New file.
31749
31750 2009-03-09  Bruno Haible  <bruno@clisp.org>
31751
31752         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31753         invocations.
31754
31755         * m4/mbscasecmp.m4: Remove file.
31756         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31757         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31758
31759         * m4/mbscasestr.m4: Remove file.
31760         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31761         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31762
31763         * m4/mbschr.m4: Remove file.
31764         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31765         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31766
31767         * m4/mbscspn.m4: Remove file.
31768         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31769         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31770
31771         * m4/mbslen.m4: Remove file.
31772         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31773         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31774
31775         * m4/mbsncasecmp.m4: Remove file.
31776         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31777         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31778
31779         * m4/mbsnlen.m4: Remove file.
31780         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31781         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31782
31783         * m4/mbspbrk.m4: Remove file.
31784         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31785         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31786
31787         * m4/mbspcasecmp.m4: Remove file.
31788         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31789         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31790
31791         * m4/mbsrchr.m4: Remove file.
31792         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31793         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31794
31795         * m4/mbssep.m4: Remove file.
31796         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31797         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31798
31799         * m4/mbsspn.m4: Remove file.
31800         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31801         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31802
31803         * m4/mbsstr.m4: Remove file.
31804         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31805         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31806
31807         * m4/mbstok_r.m4: Remove file.
31808         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31809         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31810
31811         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31812
31813         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31814         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31815
31816         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31817
31818 2009-03-08  Bruno Haible  <bruno@clisp.org>
31819
31820         Tests for module 'unicase/ulc-casecmp'.
31821         * modules/unicase/ulc-casecmp-tests: New file.
31822         * tests/unicase/test-ulc-casecmp1.sh: New file.
31823         * tests/unicase/test-ulc-casecmp2.sh: New file.
31824         * tests/unicase/test-ulc-casecmp.c: New file.
31825
31826         New module 'unicase/ulc-casecmp'.
31827         * lib/unicase.h (ulc_casecmp): New declaration.
31828         * lib/unicase/ulc-casecmp.c: New file.
31829         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31830         'const SRC_UNIT *'.
31831         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31832         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31833         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31834         * modules/unicase/ulc-casecmp: New file.
31835
31836         Tests for module 'unicase/u32-is-cased'.
31837         * modules/unicase/u32-is-cased-tests: New file.
31838         * tests/unicase/test-u32-is-cased.c: New file.
31839
31840         Tests for module 'unicase/u16-is-cased'.
31841         * modules/unicase/u16-is-cased-tests: New file.
31842         * tests/unicase/test-u16-is-cased.c: New file.
31843
31844         Tests for module 'unicase/u8-is-cased'.
31845         * modules/unicase/u8-is-cased-tests: New file.
31846         * tests/unicase/test-u8-is-cased.c: New file.
31847         * tests/unicase/test-is-cased.h: New file.
31848
31849         New module 'unicase/u32-is-cased'.
31850         * lib/unicase/u32-is-cased.c: New file.
31851         * modules/unicase/u32-is-cased: New file.
31852
31853         New module 'unicase/u16-is-cased'.
31854         * lib/unicase/u16-is-cased.c: New file.
31855         * modules/unicase/u16-is-cased: New file.
31856
31857         New module 'unicase/u8-is-cased'.
31858         * lib/unicase/u8-is-cased.c: New file.
31859         * lib/unicase/u-is-cased.h: New file.
31860         * modules/unicase/u8-is-cased: New file.
31861
31862         Tests for module 'unicase/u32-is-casefolded'.
31863         * modules/unicase/u32-is-casefolded-tests: New file.
31864         * tests/unicase/test-u32-is-casefolded.c: New file.
31865
31866         Tests for module 'unicase/u16-is-casefolded'.
31867         * modules/unicase/u16-is-casefolded-tests: New file.
31868         * tests/unicase/test-u16-is-casefolded.c: New file.
31869
31870         Tests for module 'unicase/u8-is-casefolded'.
31871         * modules/unicase/u8-is-casefolded-tests: New file.
31872         * tests/unicase/test-u8-is-casefolded.c: New file.
31873         * tests/unicase/test-is-casefolded.h: New file.
31874
31875         New module 'unicase/u32-is-casefolded'.
31876         * lib/unicase/u32-is-casefolded.c: New file.
31877         * modules/unicase/u32-is-casefolded: New file.
31878
31879         New module 'unicase/u16-is-casefolded'.
31880         * lib/unicase/u16-is-casefolded.c: New file.
31881         * modules/unicase/u16-is-casefolded: New file.
31882
31883         New module 'unicase/u8-is-casefolded'.
31884         * lib/unicase/u8-is-casefolded.c: New file.
31885         * modules/unicase/u8-is-casefolded: New file.
31886
31887         Tests for module 'unicase/u32-is-titlecase'.
31888         * modules/unicase/u32-is-titlecase-tests: New file.
31889         * tests/unicase/test-u32-is-titlecase.c: New file.
31890
31891         Tests for module 'unicase/u16-is-titlecase'.
31892         * modules/unicase/u16-is-titlecase-tests: New file.
31893         * tests/unicase/test-u16-is-titlecase.c: New file.
31894
31895         Tests for module 'unicase/u8-is-titlecase'.
31896         * modules/unicase/u8-is-titlecase-tests: New file.
31897         * tests/unicase/test-u8-is-titlecase.c: New file.
31898         * tests/unicase/test-is-titlecase.h: New file.
31899
31900         New module 'unicase/u32-is-titlecase'.
31901         * lib/unicase/u32-is-titlecase.c: New file.
31902         * modules/unicase/u32-is-titlecase: New file.
31903
31904         New module 'unicase/u16-is-titlecase'.
31905         * lib/unicase/u16-is-titlecase.c: New file.
31906         * modules/unicase/u16-is-titlecase: New file.
31907
31908         New module 'unicase/u8-is-titlecase'.
31909         * lib/unicase/u8-is-titlecase.c: New file.
31910         * modules/unicase/u8-is-titlecase: New file.
31911
31912         Tests for module 'unicase/u32-is-lowercase'.
31913         * modules/unicase/u32-is-lowercase-tests: New file.
31914         * tests/unicase/test-u32-is-lowercase.c: New file.
31915
31916         Tests for module 'unicase/u16-is-lowercase'.
31917         * modules/unicase/u16-is-lowercase-tests: New file.
31918         * tests/unicase/test-u16-is-lowercase.c: New file.
31919
31920         Tests for module 'unicase/u8-is-lowercase'.
31921         * modules/unicase/u8-is-lowercase-tests: New file.
31922         * tests/unicase/test-u8-is-lowercase.c: New file.
31923         * tests/unicase/test-is-lowercase.h: New file.
31924
31925         New module 'unicase/u32-is-lowercase'.
31926         * lib/unicase/u32-is-lowercase.c: New file.
31927         * modules/unicase/u32-is-lowercase: New file.
31928
31929         New module 'unicase/u16-is-lowercase'.
31930         * lib/unicase/u16-is-lowercase.c: New file.
31931         * modules/unicase/u16-is-lowercase: New file.
31932
31933         New module 'unicase/u8-is-lowercase'.
31934         * lib/unicase/u8-is-lowercase.c: New file.
31935         * modules/unicase/u8-is-lowercase: New file.
31936
31937         Tests for module 'unicase/u32-is-uppercase'.
31938         * modules/unicase/u32-is-uppercase-tests: New file.
31939         * tests/unicase/test-u32-is-uppercase.c: New file.
31940
31941         Tests for module 'unicase/u16-is-uppercase'.
31942         * modules/unicase/u16-is-uppercase-tests: New file.
31943         * tests/unicase/test-u16-is-uppercase.c: New file.
31944
31945         Tests for module 'unicase/u8-is-uppercase'.
31946         * modules/unicase/u8-is-uppercase-tests: New file.
31947         * tests/unicase/test-u8-is-uppercase.c: New file.
31948         * tests/unicase/test-is-uppercase.h: New file.
31949
31950         New module 'unicase/u32-is-uppercase'.
31951         * lib/unicase/u32-is-uppercase.c: New file.
31952         * modules/unicase/u32-is-uppercase: New file.
31953
31954         New module 'unicase/u16-is-uppercase'.
31955         * lib/unicase/u16-is-uppercase.c: New file.
31956         * modules/unicase/u16-is-uppercase: New file.
31957
31958         New module 'unicase/u8-is-uppercase'.
31959         * lib/unicase/u8-is-uppercase.c: New file.
31960         * modules/unicase/u8-is-uppercase: New file.
31961
31962         New module 'unicase/u32-is-invariant'.
31963         * lib/unicase/u32-is-invariant.c: New file.
31964         * modules/unicase/u32-is-invariant: New file.
31965
31966         New module 'unicase/u16-is-invariant'.
31967         * lib/unicase/u16-is-invariant.c: New file.
31968         * modules/unicase/u16-is-invariant: New file.
31969
31970         New module 'unicase/u8-is-invariant'.
31971         * lib/unicase/u8-is-invariant.c: New file.
31972         * lib/unicase/invariant.h: New file.
31973         * lib/unicase/u-is-invariant.h: New file.
31974         * modules/unicase/u8-is-invariant: New file.
31975
31976         Tests for module 'unicase/u32-casecoll'.
31977         * modules/unicase/u32-casecoll-tests: New file.
31978         * tests/unicase/test-u32-casecoll.c: New file.
31979
31980         Tests for module 'unicase/u16-casecoll'.
31981         * modules/unicase/u16-casecoll-tests: New file.
31982         * tests/unicase/test-u16-casecoll.c: New file.
31983
31984         Tests for module 'unicase/u8-casecoll'.
31985         * modules/unicase/u8-casecoll-tests: New file.
31986         * tests/unicase/test-u8-casecoll.c: New file.
31987
31988         New module 'unicase/u32-casecoll'.
31989         * lib/unicase/u32-casecoll.c: New file.
31990         * modules/unicase/u32-casecoll: New file.
31991
31992         New module 'unicase/u16-casecoll'.
31993         * lib/unicase/u16-casecoll.c: New file.
31994         * modules/unicase/u16-casecoll: New file.
31995
31996         New module 'unicase/u8-casecoll'.
31997         * lib/unicase/u8-casecoll.c: New file.
31998         * lib/unicase/u-casecoll.h: New file.
31999         * modules/unicase/u8-casecoll: New file.
32000
32001         New module 'unicase/u32-casexfrm'.
32002         * lib/unicase/u32-casexfrm.c: New file.
32003         * modules/unicase/u32-casexfrm: New file.
32004
32005         New module 'unicase/u16-casexfrm'.
32006         * lib/unicase/u16-casexfrm.c: New file.
32007         * modules/unicase/u16-casexfrm: New file.
32008
32009         New module 'unicase/u8-casexfrm'.
32010         * lib/unicase/u8-casexfrm.c: New file.
32011         * lib/unicase/u-casexfrm.h: New file.
32012         * modules/unicase/u8-casexfrm: New file.
32013
32014         Tests for module 'unicase/u32-casecmp'.
32015         * modules/unicase/u32-casecmp-tests: New file.
32016         * tests/unicase/test-u32-casecmp.c: New file.
32017
32018         Tests for module 'unicase/u16-casecmp'.
32019         * modules/unicase/u16-casecmp-tests: New file.
32020         * tests/unicase/test-u16-casecmp.c: New file.
32021
32022         Tests for module 'unicase/u8-casecmp'.
32023         * modules/unicase/u8-casecmp-tests: New file.
32024         * tests/unicase/test-u8-casecmp.c: New file.
32025         * tests/unicase/test-casecmp.h: New file.
32026
32027         New module 'unicase/u32-casecmp'.
32028         * lib/unicase/u32-casecmp.c: New file.
32029         * modules/unicase/u32-casecmp: New file.
32030
32031         New module 'unicase/u16-casecmp'.
32032         * lib/unicase/u16-casecmp.c: New file.
32033         * modules/unicase/u16-casecmp: New file.
32034
32035         New module 'unicase/u8-casecmp'.
32036         * lib/unicase/u8-casecmp.c: New file.
32037         * lib/unicase/u-casecmp.h: New file.
32038         * modules/unicase/u8-casecmp: New file.
32039
32040         Tests for module 'unicase/u32-casefold'.
32041         * modules/unicase/u32-casefold-tests: New file.
32042         * tests/unicase/test-u32-casefold.c: New file.
32043
32044         Tests for module 'unicase/u16-casefold'.
32045         * modules/unicase/u16-casefold-tests: New file.
32046         * tests/unicase/test-u16-casefold.c: New file.
32047
32048         Tests for module 'unicase/u8-casefold'.
32049         * modules/unicase/u8-casefold-tests: New file.
32050         * tests/unicase/test-u8-casefold.c: New file.
32051
32052         New module 'unicase/u32-casefold'.
32053         * lib/unicase/u32-casefold.c: New file.
32054         * modules/unicase/u32-casefold: New file.
32055
32056         New module 'unicase/u16-casefold'.
32057         * lib/unicase/u16-casefold.c: New file.
32058         * modules/unicase/u16-casefold: New file.
32059
32060         New module 'unicase/u8-casefold'.
32061         * lib/unicase/u8-casefold.c: New file.
32062         * lib/unicase/u-casefold.h: New file.
32063         * modules/unicase/u8-casefold: New file.
32064
32065         New module 'unicase/tocasefold'.
32066         * lib/unicase/casefold.h: New file.
32067         * lib/unicase/tocasefold.c: New file.
32068         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32069         * modules/unicase/tocasefold: New file.
32070
32071         Tests for module 'unicase/u32-totitle'.
32072         * modules/unicase/u32-totitle-tests: New file.
32073         * tests/unicase/test-u32-totitle.c: New file.
32074
32075         Tests for module 'unicase/u16-totitle'.
32076         * modules/unicase/u16-totitle-tests: New file.
32077         * tests/unicase/test-u16-totitle.c: New file.
32078
32079         Tests for module 'unicase/u8-totitle'.
32080         * modules/unicase/u8-totitle-tests: New file.
32081         * tests/unicase/test-u8-totitle.c: New file.
32082
32083         New module 'unicase/u32-totitle'.
32084         * lib/unicase/u32-totitle.c: New file.
32085         * modules/unicase/u32-totitle: New file.
32086
32087         New module 'unicase/u16-totitle'.
32088         * lib/unicase/u16-totitle.c: New file.
32089         * modules/unicase/u16-totitle: New file.
32090
32091         New module 'unicase/u8-totitle'.
32092         * lib/unicase/u8-totitle.c: New file.
32093         * lib/unicase/u-totitle.h: New file.
32094         * modules/unicase/u8-totitle: New file.
32095
32096         Tests for module 'unicase/u32-tolower'.
32097         * modules/unicase/u32-tolower-tests: New file.
32098         * tests/unicase/test-u32-tolower.c: New file.
32099
32100         Tests for module 'unicase/u16-tolower'.
32101         * modules/unicase/u16-tolower-tests: New file.
32102         * tests/unicase/test-u16-tolower.c: New file.
32103
32104         Tests for module 'unicase/u8-tolower'.
32105         * modules/unicase/u8-tolower-tests: New file.
32106         * tests/unicase/test-u8-tolower.c: New file.
32107
32108         New module 'unicase/u32-tolower'.
32109         * lib/unicase/u32-tolower.c: New file.
32110         * modules/unicase/u32-tolower: New file.
32111
32112         New module 'unicase/u16-tolower'.
32113         * lib/unicase/u16-tolower.c: New file.
32114         * modules/unicase/u16-tolower: New file.
32115
32116         New module 'unicase/u8-tolower'.
32117         * lib/unicase/u8-tolower.c: New file.
32118         * modules/unicase/u8-tolower: New file.
32119
32120         Tests for module 'unicase/u32-toupper'.
32121         * modules/unicase/u32-toupper-tests: New file.
32122         * tests/unicase/test-u32-toupper.c: New file.
32123
32124         Tests for module 'unicase/u16-toupper'.
32125         * modules/unicase/u16-toupper-tests: New file.
32126         * tests/unicase/test-u16-toupper.c: New file.
32127
32128         Tests for module 'unicase/u8-toupper'.
32129         * modules/unicase/u8-toupper-tests: New file.
32130         * tests/unicase/test-u8-toupper.c: New file.
32131
32132         New module 'unicase/u32-toupper'.
32133         * lib/unicase/u32-toupper.c: New file.
32134         * modules/unicase/u32-toupper: New file.
32135
32136         New module 'unicase/u16-toupper'.
32137         * lib/unicase/u16-toupper.c: New file.
32138         * modules/unicase/u16-toupper: New file.
32139
32140         New module 'unicase/u8-toupper'.
32141         * lib/unicase/u8-toupper.c: New file.
32142         * modules/unicase/u8-toupper: New file.
32143
32144         New module 'unicase/u32-casemap'.
32145         * lib/unicase/u32-casemap.c: New file.
32146         * modules/unicase/u32-casemap: New file.
32147
32148         New module 'unicase/u16-casemap'.
32149         * lib/unicase/u16-casemap.c: New file.
32150         * modules/unicase/u16-casemap: New file.
32151
32152         New module 'unicase/u8-casemap'.
32153         * lib/unicase/unicasemap.h: New file.
32154         * lib/unicase/u8-casemap.c: New file.
32155         * lib/unicase/u-casemap.h: New file.
32156         * modules/unicase/u8-casemap: New file.
32157
32158         New module 'unicase/special-casing'.
32159         * lib/unicase/special-casing.h: New file.
32160         * lib/unicase/special-casing.c: New file.
32161         * lib/unicase/special-casing-table.gperf: New file, generated by
32162         gen-uni-tables.c.
32163         * modules/unicase/special-casing: New file.
32164
32165         Tests for module 'unicase/locale-language'.
32166         * modules/unicase/locale-language-tests: New file.
32167         * tests/unicase/test-locale-language.sh: New file.
32168         * tests/unicase/test-locale-language.c: New file.
32169
32170         New module 'unicase/locale-language'.
32171         * lib/unicase/locale-language.c: New file.
32172         * lib/unicase/locale-languages.gperf: New file.
32173         * modules/unicase/locale-language: New file.
32174
32175         Generate more tables for case conversion and case folding.
32176         * lib/gen-uni-tables.c (SCC_*): New enum items.
32177         (struct special_casing_rule): New type.
32178         (casing_rules, num_casing_rules, allocated_casing_rules): New
32179         variables.
32180         (add_casing_rule, fill_casing_rules): New functions.
32181         (struct casefold_rule): New type.
32182         (casefolding_rules, num_casefolding_rules,
32183         allocated_casefolding_rules): New variables.
32184         (fill_casefolding_rules): New function.
32185         (unicode_casefold): New variable.
32186         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32187         sort_casing_rules, output_casing_rules): New functions.
32188         (main): Accept to more arguments: SpecialCasing.txt and
32189         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32190         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32191         Output mapping for casefolding.
32192
32193         * lib/unicase.h: Include stdbool.h, uninorm.h.
32194         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32195         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32196         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32197         arguments.
32198         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32199         resultp arguments.
32200         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32201         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32202         resultp arguments.
32203         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32204         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32205         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32206         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32207         declarations.
32208         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32209
32210 2009-03-08  Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32213         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32214         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32215         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32216
32217 2009-03-07  Bruno Haible  <bruno@clisp.org>
32218
32219         Adjust u*_normcmp, u*_normcoll API.
32220         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32221         u16_normcoll, u32_normcoll): Change failure conventions.
32222         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32223         errno and return -1.
32224         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32225
32226 2009-03-07  Bruno Haible  <bruno@clisp.org>
32227
32228         Tests for module 'uninorm/u32-normcoll'.
32229         * modules/uninorm/u32-normcoll-tests: New file.
32230         * tests/uninorm/test-u32-normcoll.c: New file.
32231
32232         Tests for module 'uninorm/u16-normcoll'.
32233         * modules/uninorm/u16-normcoll-tests: New file.
32234         * tests/uninorm/test-u16-normcoll.c: New file.
32235
32236         Tests for module 'uninorm/u8-normcoll'.
32237         * modules/uninorm/u8-normcoll-tests: New file.
32238         * tests/uninorm/test-u8-normcoll.c: New file.
32239
32240 2009-03-07  Bruno Haible  <bruno@clisp.org>
32241
32242         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32243         tests/uninorm/test-u32-normcmp.c.
32244         * tests/uninorm/test-u32-normcmp.c: Include it.
32245         (test_nonascii): New function, extracted from main. Add some more
32246         tests.
32247         (main): Invoke test_ascii and test_nonascii.
32248         * modules/uninorm/u32-normcmp-tests (Files): Add
32249         tests/uninorm/test-u32-normcmp.h.
32250         (Depends-on): Remove uninorm/u32-normcmp.
32251
32252         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32253         tests/uninorm/test-u16-normcmp.c.
32254         * tests/uninorm/test-u16-normcmp.c: Include it.
32255         (test_nonascii): New function, extracted from main. Add some more
32256         tests.
32257         (main): Invoke test_ascii and test_nonascii.
32258         * modules/uninorm/u16-normcmp-tests (Files): Add
32259         tests/uninorm/test-u16-normcmp.h.
32260         (Depends-on): Remove uninorm/u16-normcmp.
32261
32262         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32263         tests/uninorm/test-u8-normcmp.c.
32264         * tests/uninorm/test-u8-normcmp.c: Include it.
32265         (test_nonascii): New function, extracted from main. Add some more
32266         tests.
32267         (main): Invoke test_ascii and test_nonascii.
32268         * modules/uninorm/u8-normcmp-tests (Files): Add
32269         tests/uninorm/test-u8-normcmp.h.
32270         (Depends-on): Remove uninorm/u8-normcmp.
32271
32272 2009-03-07  Bruno Haible  <bruno@clisp.org>
32273
32274         New module 'uninorm/u32-normcoll'.
32275         * lib/uninorm/u32-normcoll.c: New file.
32276         * modules/uninorm/u32-normcoll: New file.
32277
32278         New module 'uninorm/u16-normcoll'.
32279         * lib/uninorm/u16-normcoll.c: New file.
32280         * modules/uninorm/u16-normcoll: New file.
32281
32282         New module 'uninorm/u8-normcoll'.
32283         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32284         declarations.
32285         * lib/uninorm/u8-normcoll.c: New file.
32286         * lib/uninorm/u-normcoll.h: New file.
32287         * modules/uninorm/u8-normcoll: New file.
32288
32289         New module 'uninorm/u32-normxfrm'.
32290         * lib/uninorm/u32-normxfrm.c: New file.
32291         * modules/uninorm/u32-normxfrm: New file.
32292
32293         New module 'uninorm/u16-normxfrm'.
32294         * lib/uninorm/u16-normxfrm.c: New file.
32295         * modules/uninorm/u16-normxfrm: New file.
32296
32297         New module 'uninorm/u8-normxfrm'.
32298         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32299         declarations.
32300         * lib/uninorm/u8-normxfrm.c: New file.
32301         * lib/uninorm/u-normxfrm.h: New file.
32302         * modules/uninorm/u8-normxfrm: New file.
32303
32304 2009-03-07  Bruno Haible  <bruno@clisp.org>
32305
32306         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32307         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32308         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32309
32310 2009-03-07  Bruno Haible  <bruno@clisp.org>
32311
32312         New module 'memxfrm'.
32313         * lib/memxfrm.h: New file.
32314         * lib/memxfrm.c: New file.
32315         * modules/memxfrm: New file.
32316
32317 2009-03-07  Bruno Haible  <bruno@clisp.org>
32318
32319         New module 'memcmp2'.
32320         * lib/memcmp2.h: New file.
32321         * lib/memcmp2.c: New file.
32322         * modules/memcmp2: New file.
32323
32324 2009-03-07  Bruno Haible  <bruno@clisp.org>
32325
32326         Tests for module 'uninorm/decomposing-form'.
32327         * modules/uninorm/decomposing-form-tests: New file.
32328         * tests/uninorm/test-decomposing-form.c: New file.
32329
32330         New module 'uninorm/decomposing-form'.
32331         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32332         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32333         Add 'decomposing_variant' field.
32334         * lib/uninorm/decomposing-form.c: New file.
32335         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32336         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32337         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32338         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32339         * modules/uninorm/decomposing-form: New file.
32340         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32341         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32342
32343 2009-03-07  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32346         strings.
32347
32348 2009-03-06  Bruno Haible  <bruno@clisp.org>
32349
32350         Tests for module 'uninorm/u32-normcmp'.
32351         * tests/uninorm/test-u32-normcmp.c: New file.
32352         * modules/uninorm/u32-normcmp-tests: New file.
32353
32354         Tests for module 'uninorm/u16-normcmp'.
32355         * tests/uninorm/test-u16-normcmp.c: New file.
32356         * modules/uninorm/u16-normcmp-tests: New file.
32357
32358         Tests for module 'uninorm/u8-normcmp'.
32359         * tests/uninorm/test-u8-normcmp.c: New file.
32360         * modules/uninorm/u8-normcmp-tests: New file.
32361
32362         New module 'uninorm/u32-normcmp'.
32363         * lib/uninorm/u32-normcmp.c: New file.
32364         * modules/uninorm/u32-normcmp: New file.
32365
32366         New module 'uninorm/u16-normcmp'.
32367         * lib/uninorm/u16-normcmp.c: New file.
32368         * modules/uninorm/u16-normcmp: New file.
32369
32370         New module 'uninorm/u8-normcmp'.
32371         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32372         declarations.
32373         * lib/uninorm/u8-normcmp.c: New file.
32374         * lib/uninorm/u-normcmp.h: New file.
32375         * modules/uninorm/u8-normcmp: New file.
32376
32377 2009-03-06  Bruno Haible  <bruno@clisp.org>
32378
32379         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32380         Reported by Eric Blake.
32381
32382 2009-03-06  Eric Blake  <ebb9@byu.net>
32383             Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32386         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32387         condition.
32388         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32389         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32390         condition.
32391         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32392
32393 2009-03-06  Eric Blake  <ebb9@byu.net>
32394
32395         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32396         to avoid compiler warnings.
32397         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32398
32399 2009-03-05  Bruno Haible  <bruno@clisp.org>
32400
32401         * tests/test-ftell.c (main): Disable test beyond end of file on
32402         FreeMiNT.
32403         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32404
32405 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32406
32407         * lib/filevercmp.c: Move hidden files up in ordering.
32408         * tests/test-filevercmp.c: Add tests for hidden files.
32409
32410 2009-03-04  Bruno Haible  <bruno@clisp.org>
32411
32412         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32413         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32414         AM_CFLAGS.
32415         Reported by Simon Josefsson.
32416
32417 2009-03-03  Bruno Haible  <bruno@clisp.org>
32418
32419         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32420         Reported by Simon Josefsson.
32421
32422         * doc/ld-version-script.texi: Update node reference.
32423
32424 2009-03-03  Bruno Haible  <bruno@clisp.org>
32425
32426         * modules/visibility (License): Change to 'unlimited'.
32427         Suggested by Simon Josefsson.
32428
32429 2009-03-03  Jim Meyering  <meyering@redhat.com>
32430
32431         unlinkdir: cannot_unlink_dir may modify process state
32432         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32433         it's neither thread-safe nor appropriate for use in a library.
32434
32435 2009-03-03  Eric Blake  <ebb9@byu.net>
32436
32437         test-closein: silence test under Darwin
32438         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32439         care if it dies from EPIPE or EBADF.
32440
32441 2009-03-03  Bruno Haible  <bruno@clisp.org>
32442
32443         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32444         earlier.
32445         * doc/visibility.texi: Fix @node and @section.
32446
32447 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32448
32449         * doc/gnulib.texi: Link to sections for ld version script and
32450         visibility.
32451         * doc/visibility.texi: Add @node and @section.
32452         * modules/ld-version-script: New module.
32453         * m4/ld-version-script.m4: New file.
32454         * doc/ld-version-script.texi: New file.
32455
32456 2009-03-02  David Lutterkort  <lutter@redhat.com>
32457
32458         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32460
32461 2009-03-02  Bruno Haible  <bruno@clisp.org>
32462
32463         * doc/visibility.texi: Mention libtool's -export-symbols option.
32464
32465 2009-03-02  Jim Meyering  <meyering@redhat.com>
32466
32467         announce-gen: new option: --no-print-checksums
32468         * build-aux/announce-gen (usage): Describe it.
32469         (print_checksums): Print a newline here, not in the [*] footnote.
32470         (main): Honor it.
32471
32472 2009-03-01  Bruno Haible  <bruno@clisp.org>
32473
32474         Use socklen_t in the native Windows replacements prototypes.
32475         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32476         instead of 'int'.
32477         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32478         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32479         * modules/getsockopt (Depends-on): Add socklen.
32480         * modules/setsockopt (Depends-on): Add socklen.
32481
32482 2009-03-01  Bruno Haible  <bruno@clisp.org>
32483
32484         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32485         least 4.2.
32486
32487 2009-03-01  Eric Blake  <ebb9@byu.net>
32488             Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32491         error messages.
32492         * lib/wait-process.c (wait_subprocess): Omit error message about
32493         deadly signal sent to the child of termsigp != NULL.
32494
32495 2009-03-01  Eric Blake  <ebb9@byu.net>
32496
32497         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32498
32499 2009-03-01  Bruno Haible  <bruno@clisp.org>
32500
32501         Avoid a gcc warning.
32502         * tests/test-sched.c (b): Make global.
32503         Reported by Eric Blake.
32504
32505 2009-01-19  Martin Lambers  <marlam@marlam.de>
32506
32507         Provide POSIX semantics for socket timeout options on W32.
32508         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32509         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32510         * modules/setsockopt: Depend on sys_time module for struct timeval.
32511         * modules/getsockopt: Depend on sys_time module for struct timeval.
32512
32513 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32514
32515         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32516         __USE_GNU, for consistency with netdb.in.h.
32517         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32518
32519 2009-03-01  Bruno Haible  <bruno@clisp.org>
32520
32521         More support for FreeMiNT.
32522         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32523         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32524
32525 2009-03-01  Bruno Haible  <bruno@clisp.org>
32526
32527         More support for FreeMiNT.
32528         * lib/fpurge.c (fpurge): Correct last commit.
32529         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32530
32531 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32532
32533         Fix unportable awk script in vc-list-files.
32534         * build-aux/vc-list-files: In the replacement awk script, use
32535         substr with a second argument of 1, not zero.
32536         Report by Simon Josefsson.
32537
32538 2009-02-28  Bruno Haible  <bruno@clisp.org>
32539
32540         More support for FreeMiNT.
32541         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32542         to FreeMiNT today.
32543         * lib/fwriting.c (fwriting): Likewise.
32544         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32545
32546 2009-02-28  Bruno Haible  <bruno@clisp.org>
32547
32548         * tests/test-freadseek.c (main): Disable test beyond end of file on
32549         FreeMiNT.
32550         * tests/test-ftello.c (main): Likewise.
32551         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32552
32553 2009-02-28  Bruno Haible  <bruno@clisp.org>
32554
32555         Add tentative support for FreeMiNT.
32556         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32557         * lib/fpurge.c (fpurge): Likewise.
32558         * lib/freadable.c (freadable): Likewise.
32559         * lib/freading.c (freading): Likewise.
32560         * lib/freadptr.c (freadptr): Likewise.
32561         * lib/freadseek.c (freadptrinc): Likewise.
32562         * lib/fseeko.c (rpl_fseeko): Likewise.
32563         * lib/fseterr.c (fseterr): Likewise.
32564         * lib/fwritable.c (fwritable): Likewise.
32565         * lib/fwriting.c (fwriting): Likewise.
32566         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32567         Hourihane.
32568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32569
32570 2009-02-28  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32573         SIGCHLD.
32574         Reported by Jim Meyering.
32575
32576 2009-02-28  Bruno Haible  <bruno@clisp.org>
32577
32578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32579         Mention the results of these tests on various platforms.
32580         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32581         order.
32582         * doc/posix-functions/printf.texi: Likewise.
32583         * doc/posix-functions/snprintf.texi: Likewise.
32584         * doc/posix-functions/sprintf.texi: Likewise.
32585         * doc/posix-functions/vfprintf.texi: Likewise.
32586         * doc/posix-functions/vprintf.texi: Likewise.
32587         * doc/posix-functions/vsnprintf.texi: Likewise.
32588         * doc/posix-functions/vsprintf.texi: Likewise.
32589         * doc/glibc-functions/obstack_printf.texi: Likewise.
32590         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32591
32592 2009-02-28  Bruno Haible  <bruno@clisp.org>
32593
32594         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32595         Reported by Loïc Minier <lool@dooz.org>.
32596
32597 2009-02-27  Bruno Haible  <bruno@clisp.org>
32598
32599         * gnulib-tool (func_import): Make the sed expression used to create the
32600         sed script for updating the .gitignore file POSIX compliant.
32601         Reported by Eric Blake.
32602
32603 2009-02-27  Bruno Haible  <bruno@clisp.org>
32604
32605         * gnulib-tool (sed): Don't alias as "sed --posix".
32606         Reported by Eric Blake.
32607
32608 2009-02-27  Bruno Haible  <bruno@clisp.org>
32609
32610         Avoid test link errors.
32611         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32612         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32613         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32614         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32616
32617 2009-02-27  Bruno Haible  <bruno@clisp.org>
32618
32619         Avoid spurious "(cached)" in configure output.
32620         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32621         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32622         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32623         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32624         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32625         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32626         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32627         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32628         Reported by Eric Blake.
32629
32630 2009-02-27  Eric Blake  <ebb9@byu.net>
32631
32632         printf: fix regression in previous patch
32633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32634
32635 2009-02-27  Bruno Haible  <bruno@clisp.org>
32636
32637         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32638         value.
32639         * lib/stdint.in.h: Likewise.
32640         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32641
32642 2009-02-27  Eric Blake  <ebb9@byu.net>
32643
32644         doc: mention more functions added in cygwin 1.7.0
32645         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32646         addition.
32647         * doc/posix-functions/open_wmemstream.texi: Likewise.
32648         * doc/posix-functions/wcsnlen.texi: Likewise.
32649         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32650         * doc/posix-functions/wcstod.texi: Likewise.
32651         * doc/posix-functions/wcstof.texi: Likewise.
32652         * doc/posix-functions/wcstoimax.texi: Likewise.
32653         * doc/posix-functions/wcstok.texi: Likewise.
32654         * doc/posix-functions/wcstoumax.texi: Likewise.
32655
32656         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32658         * doc/posix-functions/fprintf.texi: Update.
32659         * doc/posix-functions/printf.texi: Update.
32660         * doc/posix-functions/snprintf.texi: Update.
32661         * doc/posix-functions/sprintf.texi: Update.
32662         * doc/posix-functions/vfprintf.texi: Update.
32663         * doc/posix-functions/vprintf.texi: Update.
32664         * doc/posix-functions/vsnprintf.texi: Update.
32665         * doc/posix-functions/vsprintf.texi: Update.
32666         * doc/glibc-functions/obstack_printf.texi: Update.
32667         * doc/glibc-functions/obstack_vprintf.texi: Update.
32668
32669 2009-02-26  Eric Blake  <ebb9@byu.net>
32670
32671         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32672         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32673         compilation bug by using runtime conversion.
32674         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32676         * modules/ceill-tests (Files): Use nan.h.
32677         * modules/floorl-tests (Files): Likewise.
32678         * modules/frexpl-tests (Files): Likewise.
32679         * modules/isnanl-tests (Files): Likewise.
32680         * modules/ldexpl-tests (Files): Likewise.
32681         * modules/roundl-tests (Files): Likewise.
32682         * modules/truncl-tests (Files): Likewise.
32683         * tests/test-ceill.c (main): Use a working NaN.
32684         * tests/test-floorl.c (main): Likewise.
32685         * tests/test-frexpl.c (main): Likewise.
32686         * tests/test-isnan.c (test_long_double): Likewise.
32687         * tests/test-isnanl.h (main): Likewise.
32688         * tests/test-ldexpl.h (main): Likewise.
32689         * tests/test-roundl.h (main): Likewise.
32690         * tests/test-truncl.h (main): Likewise.
32691         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32692
32693 2009-02-26  Eric Blake  <ebb9@byu.net>
32694             Bruno Haible  <bruno@clisp.org>
32695
32696         Work around a *printf bug with %ls on Solaris.
32697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32698         precision is specified, sprintf stops converting the wide string
32699         argument when the number of bytes that have been produced by this
32700         conversion equals or exceeds the precision.
32701         * doc/posix-functions/fprintf.texi: Update.
32702         * doc/posix-functions/printf.texi: Update.
32703         * doc/posix-functions/snprintf.texi: Update.
32704         * doc/posix-functions/sprintf.texi: Update.
32705         * doc/posix-functions/vfprintf.texi: Update.
32706         * doc/posix-functions/vprintf.texi: Update.
32707         * doc/posix-functions/vsnprintf.texi: Update.
32708         * doc/posix-functions/vsprintf.texi: Update.
32709         * doc/glibc-functions/obstack_printf.texi: Update.
32710         * doc/glibc-functions/obstack_vprintf.texi: Update.
32711
32712 2009-02-26  Eric Blake  <ebb9@byu.net>
32713
32714         stdlib: favor compiler check of random.h
32715         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32716         to avoid an ObjC random.h installed by Swarm.
32717
32718 2009-02-26  Bruno Haible  <bruno@clisp.org>
32719
32720         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32721         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32722         Reported by Gary V. Vaughan <gary@gnu.org>.
32723
32724 2009-02-26  Bruno Haible  <bruno@clisp.org>
32725
32726         Fix *printf behaviour regarding the %ls directive.
32727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32728         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32729         NEED_PRINTF_DIRECTIVE_LS.
32730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32731         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32733         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32734         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32735         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32736         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32737         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32738         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32739         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32740         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32741         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32745         * doc/posix-functions/fprintf.texi: Update.
32746         * doc/posix-functions/printf.texi: Update.
32747         * doc/posix-functions/snprintf.texi: Update.
32748         * doc/posix-functions/sprintf.texi: Update.
32749         * doc/posix-functions/vfprintf.texi: Update.
32750         * doc/posix-functions/vprintf.texi: Update.
32751         * doc/posix-functions/vsnprintf.texi: Update.
32752         * doc/posix-functions/vsprintf.texi: Update.
32753         * doc/glibc-functions/obstack_printf.texi: Update.
32754         * doc/glibc-functions/obstack_vprintf.texi: Update.
32755         Reported by Eric Blake.
32756
32757 2009-02-25  Bruno Haible  <bruno@clisp.org>
32758
32759         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32760         with known value.
32761         Reported by Gary V. Vaughan <gary@gnu.org>.
32762
32763 2009-02-25  Bruno Haible  <bruno@clisp.org>
32764
32765         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32766         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32767         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32768         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32769         Reported by Gary V. Vaughan <gary@gnu.org>.
32770
32771 2009-02-25  Bruno Haible  <bruno@clisp.org>
32772
32773         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32774         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32775         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32776         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32777         Reported by Gary V. Vaughan <gary@gnu.org>.
32778
32779 2009-02-25  Eric Blake  <ebb9@byu.net>
32780
32781         tests: skip fseek/ftell tests if ungetc is broken
32782         * m4/ungetc.m4: New file.
32783         * modules/fseek-tests: Split test, so ungetc dependency is
32784         separate from rest of test.
32785         * modules/fseeko-tests: Likewise.
32786         * modules/ftell-tests: Likewise.
32787         * modules/ftello-tests: Likewise.
32788         * tests/test-fseek.c (main): Isolate ungetc dependency.
32789         * tests/test-fseeko.c (main): Likewise.
32790         * tests/test-ftell.c (main): Likewise.
32791         * tests/test-ftello.c (main): Likewise.
32792         * tests/test-fseek2.sh: New file.
32793         * tests/test-fseeko2.sh: Likewise.
32794         * tests/test-ftell2.sh: Likewise.
32795         * tests/test-ftello2.sh: Likewise.
32796
32797 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32798
32799         test-getaddrinfo: fix usage of skip return code 77
32800         * tests/test-gettaddrinfo.c: Return skip code 77 only
32801         for first occurance of skip (4x77 is not 77)
32802
32803 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32804
32805         strtod: avoid C99 decl-after-statement
32806         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32807
32808 2009-02-24  Eric Blake  <ebb9@byu.net>
32809
32810         strtod: detect HP-UX 11.31 bug
32811         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32812         Reported by Gary V. Vaughan.
32813
32814 2009-02-23  Bruno Haible  <bruno@clisp.org>
32815
32816         Fix invalid read past end of memory block.
32817         * lib/vasnprintf.c (DCHAR_SET): Define.
32818         (local_wcslen): Define only when needed.
32819         (local_strnlen, local_wcsnlen): New functions.
32820         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32821         directives that involve a conversion ourselves.
32822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32823         wcsnlen, mbrtowc, wcrtomb.
32824         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32825         * tests/test-vasprintf-posix.c (test_function): Likewise.
32826         * tests/test-snprintf-posix.h (test_function): Likewise.
32827         * tests/test-sprintf-posix.h (test_function): Likewise.
32828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32829
32830 2009-02-22  Bruno Haible  <bruno@clisp.org>
32831
32832         Implement new clarified decomposition of Hangul syllables.
32833         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32834         of type LTV, return only a pairwise decomposition.
32835         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32836         Likewise.
32837         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32838         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32839         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32840
32841 2009-02-22  Bruno Haible  <bruno@clisp.org>
32842
32843         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32844         zero-length results and shrink excess allocated memory.
32845         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32846         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32847         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32848         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32849         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32850         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32851         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32852         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32853         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32854         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32855         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32856         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32857
32858 2009-02-21  Bruno Haible  <bruno@clisp.org>
32859
32860         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32861         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32862         spaces after a period. Put a space between a macro name and its
32863         argument list. Trivial rewordings.
32864         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32865         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32866         (main): Return 0 explicitly.
32867
32868 2009-02-21  Bruno Haible  <bruno@clisp.org>
32869
32870         Tests for module 'uninorm/filter'.
32871         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32872         * modules/uninorm/filter-tests: New file.
32873
32874         New module 'uninorm/filter'.
32875         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32876         uninorm_filter_flush, uninorm_filter_free): New declarations.
32877         * lib/uninorm/uninorm-filter.c: New file.
32878         * modules/uninorm/filter: New file.
32879
32880 2009-02-21  Bruno Haible  <bruno@clisp.org>
32881
32882         Tests for module 'uninorm/nfkc'.
32883         * tests/uninorm/test-nfkc.c: New file.
32884         * tests/uninorm/test-u8-nfkc.c: New file.
32885         * tests/uninorm/test-u16-nfkc.c: New file.
32886         * tests/uninorm/test-u32-nfkc.c: New file.
32887         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32888         * tests/uninorm/test-u32-nfkc-big.c: New file.
32889         * modules/uninorm/nfkc-tests: New file.
32890
32891         New module 'uninorm/nfkc'.
32892         * lib/uninorm/nfkc.c: New file.
32893         * modules/uninorm/nfkc: New file.
32894
32895         Tests for module 'uninorm/nfkd'.
32896         * tests/uninorm/test-nfkd.c: New file.
32897         * tests/uninorm/test-u8-nfkd.c: New file.
32898         * tests/uninorm/test-u16-nfkd.c: New file.
32899         * tests/uninorm/test-u32-nfkd.c: New file.
32900         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32901         * tests/uninorm/test-u32-nfkd-big.c: New file.
32902         * modules/uninorm/nfkd-tests: New file.
32903
32904         New module 'uninorm/nfkd'.
32905         * lib/uninorm/nfkd.c: New file.
32906         * modules/uninorm/nfkd: New file.
32907
32908         Tests for module 'uninorm/nfc'.
32909         * tests/uninorm/test-nfc.c: New file.
32910         * tests/uninorm/test-u8-nfc.c: New file.
32911         * tests/uninorm/test-u16-nfc.c: New file.
32912         * tests/uninorm/test-u32-nfc.c: New file.
32913         * tests/uninorm/test-u32-nfc-big.sh: New file.
32914         * tests/uninorm/test-u32-nfc-big.c: New file.
32915         * modules/uninorm/nfc-tests: New file.
32916
32917         New module 'uninorm/nfc'.
32918         * lib/uninorm/nfc.c: New file.
32919         * modules/uninorm/nfc: New file.
32920
32921         Tests for module 'uninorm/nfd'.
32922         * tests/uninorm/test-nfd.c: New file.
32923         * tests/uninorm/test-u8-nfd.c: New file.
32924         * tests/uninorm/test-u16-nfd.c: New file.
32925         * tests/uninorm/test-u32-nfd.c: New file.
32926         * tests/uninorm/test-u32-nfd-big.sh: New file.
32927         * tests/uninorm/test-u32-nfd-big.c: New file.
32928         * tests/uninorm/test-u32-normalize-big.h: New file.
32929         * tests/uninorm/test-u32-normalize-big.c: New file.
32930         * tests/uninorm/NormalizationTest.txt: New file, created from
32931         Unicode 5.1.0 NormalizationTest.txt.
32932         * modules/uninorm/nfd-tests: New file.
32933
32934         New module 'uninorm/nfd'.
32935         * lib/uninorm/nfd.c: New file.
32936         * modules/uninorm/nfd: New file.
32937
32938         New module 'uninorm/u32-normalize'.
32939         * lib/uninorm/u32-normalize.c: New file.
32940         * modules/uninorm/u32-normalize: New file.
32941
32942         New module 'uninorm/u16-normalize'.
32943         * lib/uninorm/u16-normalize.c: New file.
32944         * modules/uninorm/u16-normalize: New file.
32945
32946         New module 'uninorm/u8-normalize'.
32947         * lib/uninorm/u8-normalize.c: New file.
32948         * lib/uninorm/normalize-internal.h: New file.
32949         * lib/uninorm/u-normalize-internal.h: New file.
32950         * modules/uninorm/u8-normalize: New file.
32951
32952         New module 'uninorm/decompose-internal'.
32953         * lib/uninorm/decompose-internal.c: New file.
32954         * modules/uninorm/decompose-internal: New file.
32955
32956         Tests for module 'uninorm/composition'.
32957         * tests/uninorm/test-composition.c: New file.
32958         * modules/uninorm/composition-tests: New file.
32959
32960         New module 'uninorm/composition'.
32961         * lib/uninorm/composition.c: New file.
32962         * lib/uninorm/composition-table.gperf: New file, generated by
32963         gen-uni-tables.
32964         * modules/uninorm/composition: New file.
32965
32966         Tests for module 'uninorm/compat-decomposition'.
32967         * tests/uninorm/test-compat-decomposition.c: New file.
32968         * modules/uninorm/compat-decomposition-tests: New file.
32969
32970         New module 'uninorm/compat-decomposition'.
32971         * lib/uninorm/decompose-internal.h: New file.
32972         * lib/uninorm/compat-decomposition.c: New file.
32973         * modules/uninorm/compat-decomposition: New file.
32974
32975         Tests for module 'uninorm/canonical-decomposition'.
32976         * tests/uninorm/test-canonical-decomposition.c: New file.
32977         * modules/uninorm/canonical-decomposition-tests: New file.
32978
32979         New module 'uninorm/canonical-decomposition'.
32980         * lib/uninorm/canonical-decomposition.c: New file.
32981         * modules/uninorm/canonical-decomposition: New file.
32982
32983         Tests for module 'uninorm/decomposition'.
32984         * tests/uninorm/test-decomposition.c: New file.
32985         * modules/uninorm/decomposition-tests: New file.
32986
32987         New module 'uninorm/decomposition'.
32988         * lib/uninorm/decomposition.c: New file.
32989         * modules/uninorm/decomposition: New file.
32990
32991         New module 'uninorm/decomposition-table'.
32992         * lib/uninorm/decomposition-table.h: New file.
32993         * lib/uninorm/decomposition-table.c: New file.
32994         * lib/uninorm/decomposition-table1.h: New file, generated by
32995         gen-uni-tables.
32996         * lib/uninorm/decomposition-table2.h: New file, generated by
32997         gen-uni-tables.
32998         * modules/uninorm/decomposition-table: New file.
32999
33000         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33001         (UC_DECOMP_*): New enumeration items.
33002         (get_decomposition): New function.
33003         (struct decomp_table): New type.
33004         (output_decomposition, output_decomposition_tables): New functions.
33005         (unicode_composition_exclusions): New variable.
33006         (fill_composition_exclusions, debug_output_composition_tables): New
33007         functions.
33008         (main): Accept one more argument. Invoke fill_composition_exclusions.
33009         Output decomposition and composition tables.
33010
33011         New module 'uninorm/base'.
33012         * lib/uninorm.h: New file.
33013         * lib/unictype.h: Update comment.
33014         * modules/uninorm/base: New file.
33015
33016 2009-02-21  David Lutterkort  <lutter@redhat.com>
33017
33018         Tests for module 'safe-alloc'.
33019         * tests/test-safe-alloc.c: New file.
33020         * modules/safe-alloc-tests: New file.
33021
33022         New module 'safe-alloc'.
33023         * lib/safe-alloc.h: New file.
33024         * lib/safe-alloc.c: New file.
33025         * m4/safe-alloc.m4: New file.
33026         * modules/safe-alloc: New file.
33027         * doc/safe-alloc.texi: New file.
33028         * doc/gnulib.texi: Include it.
33029         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33030         safe-alloc.
33031
33032 2009-02-18  Bruno Haible  <bruno@clisp.org>
33033
33034         Fix link error on non-glibc systems.
33035         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33036         variable.
33037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33038
33039 2009-02-18  Jim Meyering  <meyering@redhat.com>
33040
33041         fts: avoid used-uninitialized error due to recent change
33042         * lib/fts.c (fts_read): Guard uses of the new member,
33043         parent->fts_n_dirs_remaining, since it's not relevant for
33044         the parent of a directory specified on the command-line.
33045
33046 2009-02-17  James Youngman  <jay@gnu.org>
33047             Bruno Haible  <bruno@clisp.org>
33048
33049         * m4/include_next.m4: Reformulate comment.
33050
33051 2009-02-16  Jim Meyering  <meyering@redhat.com>
33052
33053         fts: add #if guards so that the fts_lgpl module still builds
33054         * lib/fts.c: Guard just-added hash-table-using parts with
33055         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33056         Reported by Simon Josefsson.
33057
33058 2009-02-15  Bruno Haible  <bruno@clisp.org>
33059
33060         * modules/array-mergesort-tests: New file.
33061         * tests/test-array-mergesort.c: New file.
33062
33063         New module 'array-mergesort'.
33064         * modules/array-mergesort: New file.
33065         * lib/array-mergesort.h: New file.
33066
33067 2009-02-15  Bruno Haible  <bruno@clisp.org>
33068
33069         Fix 2009-02-07 commit.
33070         * lib/gen-uni-tables.c (output_predicate, output_category,
33071         output_combclass, output_bidi_category, output_decimal_digit,
33072         output_digit, output_numeric, output_mirror, output_scripts,
33073         output_ident_category, output_simple_mapping): Fix format directives.
33074         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33075
33076 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33077
33078         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33079         fixes are available from IBM.
33080
33081 2009-02-13  Jim Meyering  <meyering@redhat.com>
33082
33083         fts: arrange not to stat non-directories in more cases
33084         This makes GNU find (when it doesn't need to stat each file)
33085         *much* more efficient at traversing reiserfs file systems.
33086         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33087         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33088         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33089         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33090         (leaf_optimization_applies): New function.
33091         (LCO_hash, LCO_compare): New helper functions.
33092         (link_count_optimize_ok): New function.
33093         (fts_stat): Initialize new member (if dir).
33094         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33095         we've just stat'ed a directory.  Skip the stat call when possible.
33096         ---
33097         Note this AFS-related exchange:
33098         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33099         and note find's pioctl call in find/fstype.c.
33100         But that is necessary only if you want to enable the
33101         optimization for AFS, and for now, I don't.
33102
33103         fts: move a function definition "up" (no semantic change)
33104         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33105         "up" to precede upcoming use of a related function.
33106
33107 2009-02-11  Jim Meyering  <meyering@redhat.com>
33108
33109         fts: correct internal computation of nlinks (optimization-related)
33110         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33111         whether the current entry is a directory, so don't test it.
33112
33113 2009-02-10  Bruno Haible  <bruno@clisp.org>
33114
33115         Tests for module 'uniwbrk/ulc-wordbreaks'.
33116         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33117         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33118         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33119
33120         Tests for module 'uniwbrk/u32-wordbreaks'.
33121         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33122         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33123
33124         Tests for module 'uniwbrk/u16-wordbreaks'.
33125         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33126         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33127
33128         Tests for module 'uniwbrk/u8-wordbreaks'.
33129         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33130         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33131
33132 2009-02-10  Bruno Haible  <bruno@clisp.org>
33133
33134         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33135         property.
33136         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33137         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33138         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33139
33140 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33141
33142         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33143         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33144
33145 2009-02-10  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33148         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33149         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33150         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33151         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33152         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33153
33154 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33155
33156         * lib/sockets.h (gl_fd_to_handle): New function.
33157
33158         * tests/test-sockets.c: Call gl_fd_to_handle.
33159
33160 2009-02-09  Bruno Haible  <bruno@clisp.org>
33161
33162         * doc/havelib.texi: Document the conventions on bi-arch systems.
33163
33164 2009-02-08  Bruno Haible  <bruno@clisp.org>
33165
33166         Document the AC_LIB_LINKFLAGS macro.
33167         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33168         * doc/gnulib.texi: Include it.
33169
33170 2009-02-08  Bruno Haible  <bruno@clisp.org>
33171
33172         Fix wrong order of sections, compared to TOC.
33173         * doc/gnulib.texi: Include relocatable-maint.texi after the
33174         "Regular expressions" node, not before.
33175
33176 2009-02-08  Bruno Haible  <bruno@clisp.org>
33177
33178         Tests for module 'unicase/totitle'.
33179         * modules/unicase/totitle-tests: New file.
33180
33181         Tests for module 'unicase/tolower'.
33182         * modules/unicase/tolower-tests: New file.
33183
33184         Tests for module 'unicase/toupper'.
33185         * modules/unicase/toupper-tests: New file.
33186         * tests/unicase/test-mapping-part1.h: New file.
33187         * tests/unicase/test-mapping-part2.h: New file.
33188
33189         New module 'unicase/totitle'.
33190         * modules/unicase/totitle: New file.
33191         * lib/unicase/totitle.c: New file.
33192
33193         New module 'unicase/tolower'.
33194         * modules/unicase/tolower: New file.
33195         * lib/unicase/tolower.c: New file.
33196
33197         New module 'unicase/toupper'.
33198         * modules/unicase/toupper: New file.
33199         * lib/unicase/toupper.c: New file.
33200         * lib/unicase/simple-mapping.h: New file.
33201
33202         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33203         (mapping_table): New structure.
33204         (output_simple_mapping): New function.
33205         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33206         * modules/gen-uni-tables (Description): Update.
33207         * lib/unicase/toupper.h: New file, automatically generated by
33208         gen-uni-tables.
33209         * lib/unicase/tolower.h: New file, automatically generated by
33210         gen-uni-tables.
33211         * lib/unicase/totitle.h: New file, automatically generated by
33212         gen-uni-tables.
33213         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33214         gen-uni-tables.
33215         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33216         gen-uni-tables.
33217         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33218         gen-uni-tables.
33219
33220         New module 'unicase/base'.
33221         * modules/unicase/base: New file.
33222         * lib/unicase.h: New file.
33223
33224 2009-02-08  Bruno Haible  <bruno@clisp.org>
33225
33226         New module 'uniwbrk/ulc-wordbreaks'.
33227         * modules/uniwbrk/ulc-wordbreaks: New file.
33228         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33229
33230         New module 'uniwbrk/u32-wordbreaks'.
33231         * modules/uniwbrk/u32-wordbreaks: New file.
33232         * lib/uniwbrk/u32-wordbreaks.c: New file.
33233
33234         New module 'uniwbrk/u16-wordbreaks'.
33235         * modules/uniwbrk/u16-wordbreaks: New file.
33236         * lib/uniwbrk/u16-wordbreaks.c: New file.
33237
33238         New module 'uniwbrk/u8-wordbreaks'.
33239         * modules/uniwbrk/u8-wordbreaks: New file.
33240         * lib/uniwbrk/u8-wordbreaks.c: New file.
33241         * lib/uniwbrk/u-wordbreaks.h: New file.
33242
33243         New module 'uniwbrk/table'.
33244         * modules/uniwbrk/table: New file.
33245         * lib/uniwbrk/wbrktable.h: New file.
33246         * lib/uniwbrk/wbrktable.c: New file.
33247
33248         New module 'uniwbrk/wordbreak-property'.
33249         * modules/uniwbrk/wordbreak-property: New file.
33250         * lib/uniwbrk/wordbreak-property.c: New file.
33251
33252         * lib/gen-uni-tables.c (WBP_*): New enum items.
33253         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33254         (unicode_org_wbp): New variable.
33255         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33256         New functions.
33257         (wbp_table): New structure.
33258         (output_wbp, output_wbrk_tables): New functions.
33259         (main): Accept additional argument. Invoke fill_org_wbp,
33260         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33261         output_wbrk_tables.
33262         * modules/gen-uni-tables (Description): Update.
33263         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33264         gen-uni-tables.
33265
33266         New module 'uniwbrk/base'.
33267         * modules/uniwbrk/base: New file.
33268         * lib/uniwbrk.h: New file.
33269
33270 2009-02-08  Bruno Haible  <bruno@clisp.org>
33271
33272         Update to Unicode 5.1.0.
33273         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33274         U+2185..U+2188.
33275         (is_property_default_ignorable_code_point): Don't include characters
33276         of category Cc or Cs and not-a-characters.
33277         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33278         U+0D79, U+109E, U+109F, U+A60C.
33279         * lib/unictype/bidi_of.h: Regenerated.
33280         * lib/unictype/blocks.h: Regenerated.
33281         * lib/unictype/categ_C.h: Regenerated.
33282         * lib/unictype/categ_Cf.h: Regenerated.
33283         * lib/unictype/categ_Cn.h: Regenerated.
33284         * lib/unictype/categ_L.h: Regenerated.
33285         * lib/unictype/categ_Ll.h: Regenerated.
33286         * lib/unictype/categ_Lm.h: Regenerated.
33287         * lib/unictype/categ_Lo.h: Regenerated.
33288         * lib/unictype/categ_Lu.h: Regenerated.
33289         * lib/unictype/categ_M.h: Regenerated.
33290         * lib/unictype/categ_Mc.h: Regenerated.
33291         * lib/unictype/categ_Me.h: Regenerated.
33292         * lib/unictype/categ_Mn.h: Regenerated.
33293         * lib/unictype/categ_N.h: Regenerated.
33294         * lib/unictype/categ_Nd.h: Regenerated.
33295         * lib/unictype/categ_Nl.h: Regenerated.
33296         * lib/unictype/categ_No.h: Regenerated.
33297         * lib/unictype/categ_P.h: Regenerated.
33298         * lib/unictype/categ_Pd.h: Regenerated.
33299         * lib/unictype/categ_Pe.h: Regenerated.
33300         * lib/unictype/categ_Pf.h: Regenerated.
33301         * lib/unictype/categ_Pi.h: Regenerated.
33302         * lib/unictype/categ_Po.h: Regenerated.
33303         * lib/unictype/categ_Ps.h: Regenerated.
33304         * lib/unictype/categ_S.h: Regenerated.
33305         * lib/unictype/categ_Sk.h: Regenerated.
33306         * lib/unictype/categ_Sm.h: Regenerated.
33307         * lib/unictype/categ_So.h: Regenerated.
33308         * lib/unictype/categ_of.h: Regenerated.
33309         * lib/unictype/combining.h: Regenerated.
33310         * lib/unictype/ctype_alnum.h: Regenerated.
33311         * lib/unictype/ctype_alpha.h: Regenerated.
33312         * lib/unictype/ctype_graph.h: Regenerated.
33313         * lib/unictype/ctype_lower.h: Regenerated.
33314         * lib/unictype/ctype_print.h: Regenerated.
33315         * lib/unictype/ctype_punct.h: Regenerated.
33316         * lib/unictype/ctype_upper.h: Regenerated.
33317         * lib/unictype/decdigit.h: Regenerated.
33318         * lib/unictype/digit.h: Regenerated.
33319         * lib/unictype/mirror.h: Regenerated.
33320         * lib/unictype/numeric.h: Regenerated.
33321         * lib/unictype/pr_alphabetic.h: Regenerated.
33322         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33323         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33324         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33325         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33326         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33327         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33328         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33329         * lib/unictype/pr_combining.h: Regenerated.
33330         * lib/unictype/pr_dash.h: Regenerated.
33331         * lib/unictype/pr_decimal_digit.h: Regenerated.
33332         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33333         * lib/unictype/pr_deprecated.h: Regenerated.
33334         * lib/unictype/pr_diacritic.h: Regenerated.
33335         * lib/unictype/pr_extender.h: Regenerated.
33336         * lib/unictype/pr_format_control.h: Regenerated.
33337         * lib/unictype/pr_grapheme_base.h: Regenerated.
33338         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33339         * lib/unictype/pr_grapheme_link.h: Regenerated.
33340         * lib/unictype/pr_id_continue.h: Regenerated.
33341         * lib/unictype/pr_id_start.h: Regenerated.
33342         * lib/unictype/pr_ideographic.h: Regenerated.
33343         * lib/unictype/pr_ignorable_control.h: Regenerated.
33344         * lib/unictype/pr_lowercase.h: Regenerated.
33345         * lib/unictype/pr_math.h: Regenerated.
33346         * lib/unictype/pr_numeric.h: Regenerated.
33347         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33348         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33349         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33350         * lib/unictype/pr_other_id_continue.h: Regenerated.
33351         * lib/unictype/pr_other_lowercase.h: Regenerated.
33352         * lib/unictype/pr_other_math.h: Regenerated.
33353         * lib/unictype/pr_punctuation.h: Regenerated.
33354         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33355         * lib/unictype/pr_soft_dotted.h: Regenerated.
33356         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33357         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33358         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33359         * lib/unictype/pr_uppercase.h: Regenerated.
33360         * lib/unictype/pr_xid_continue.h: Regenerated.
33361         * lib/unictype/pr_xid_start.h: Regenerated.
33362         * lib/unictype/pr_zero_width.h: Regenerated.
33363         * lib/unictype/scripts.h: Regenerated.
33364         * lib/unictype/scripts_byname.gperf: Regenerated.
33365         * lib/unictype/sy_java_ident.h: Regenerated.
33366         * lib/unilbrk/lbrkprop1.h: Regenerated.
33367         * lib/unilbrk/lbrkprop2.h: Regenerated.
33368         * tests/unictype/test-categ_C.c: Regenerated.
33369         * tests/unictype/test-categ_Cf.c: Regenerated.
33370         * tests/unictype/test-categ_Cn.c: Regenerated.
33371         * tests/unictype/test-categ_L.c: Regenerated.
33372         * tests/unictype/test-categ_Ll.c: Regenerated.
33373         * tests/unictype/test-categ_Lm.c: Regenerated.
33374         * tests/unictype/test-categ_Lo.c: Regenerated.
33375         * tests/unictype/test-categ_Lu.c: Regenerated.
33376         * tests/unictype/test-categ_M.c: Regenerated.
33377         * tests/unictype/test-categ_Mc.c: Regenerated.
33378         * tests/unictype/test-categ_Me.c: Regenerated.
33379         * tests/unictype/test-categ_Mn.c: Regenerated.
33380         * tests/unictype/test-categ_N.c: Regenerated.
33381         * tests/unictype/test-categ_Nd.c: Regenerated.
33382         * tests/unictype/test-categ_Nl.c: Regenerated.
33383         * tests/unictype/test-categ_No.c: Regenerated.
33384         * tests/unictype/test-categ_P.c: Regenerated.
33385         * tests/unictype/test-categ_Pd.c: Regenerated.
33386         * tests/unictype/test-categ_Pe.c: Regenerated.
33387         * tests/unictype/test-categ_Pf.c: Regenerated.
33388         * tests/unictype/test-categ_Pi.c: Regenerated.
33389         * tests/unictype/test-categ_Po.c: Regenerated.
33390         * tests/unictype/test-categ_Ps.c: Regenerated.
33391         * tests/unictype/test-categ_S.c: Regenerated.
33392         * tests/unictype/test-categ_Sk.c: Regenerated.
33393         * tests/unictype/test-categ_Sm.c: Regenerated.
33394         * tests/unictype/test-categ_So.c: Regenerated.
33395         * tests/unictype/test-ctype_alnum.c: Regenerated.
33396         * tests/unictype/test-ctype_alpha.c: Regenerated.
33397         * tests/unictype/test-ctype_graph.c: Regenerated.
33398         * tests/unictype/test-ctype_lower.c: Regenerated.
33399         * tests/unictype/test-ctype_print.c: Regenerated.
33400         * tests/unictype/test-ctype_punct.c: Regenerated.
33401         * tests/unictype/test-ctype_upper.c: Regenerated.
33402         * tests/unictype/test-decdigit.h: Regenerated.
33403         * tests/unictype/test-digit.h: Regenerated.
33404         * tests/unictype/test-numeric.h: Regenerated.
33405         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33406         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33407         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33408         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33409         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33410         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33411         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33412         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33413         * tests/unictype/test-pr_combining.c: Regenerated.
33414         * tests/unictype/test-pr_dash.c: Regenerated.
33415         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33416         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33417         * tests/unictype/test-pr_deprecated.c: Regenerated.
33418         * tests/unictype/test-pr_diacritic.c: Regenerated.
33419         * tests/unictype/test-pr_extender.c: Regenerated.
33420         * tests/unictype/test-pr_format_control.c: Regenerated.
33421         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33422         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33423         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33424         * tests/unictype/test-pr_id_continue.c: Regenerated.
33425         * tests/unictype/test-pr_id_start.c: Regenerated.
33426         * tests/unictype/test-pr_ideographic.c: Regenerated.
33427         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33428         * tests/unictype/test-pr_lowercase.c: Regenerated.
33429         * tests/unictype/test-pr_math.c: Regenerated.
33430         * tests/unictype/test-pr_numeric.c: Regenerated.
33431         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33432         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33433         Regenerated.
33434         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33435         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33436         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33437         * tests/unictype/test-pr_other_math.c: Regenerated.
33438         * tests/unictype/test-pr_punctuation.c: Regenerated.
33439         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33440         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33441         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33442         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33443         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33444         * tests/unictype/test-pr_uppercase.c: Regenerated.
33445         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33446         * tests/unictype/test-pr_xid_start.c: Regenerated.
33447         * tests/unictype/test-pr_zero_width.c: Regenerated.
33448
33449         Update to Unicode 5.1.0.
33450         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33451         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33452         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33453         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33454         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33455         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33456         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33457         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33458         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33459         (nonspacing_table_ind): Update.
33460         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33461
33462         Update to Unicode 5.1.0.
33463         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33464         code transform.
33465         * lib/uniname/uniname.c (unicode_character_name,
33466         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33467         * lib/uniname/uninames.h: Regenerated.
33468         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33469
33470 2009-02-07  Bruno Haible  <bruno@clisp.org>
33471
33472         Merge gen-ctype and gen-lbrk into a single program.
33473         * lib/gen-uni-tables.c: New file, incorporating
33474         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33475         Add directory prefixes to the names of the generated files.
33476         * lib/unictype/gen-ctype.c: Remove file.
33477         * lib/unilbrk/gen-lbrk.c: Remove file.
33478         * modules/gen-uni-tables: New file.
33479         * modules/unictype/gen-ctype: Remove file.
33480         * modules/unilbrk/gen-lbrk: Remove file.
33481
33482 2009-02-07  Bruno Haible  <bruno@clisp.org>
33483
33484         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33485
33486         New module 'unistr/u32-strcoll'.
33487         * modules/unistr/u32-strcoll: New file.
33488         * lib/unistr/u32-strcoll.c: New file.
33489
33490         New module 'unistr/u16-strcoll'.
33491         * modules/unistr/u16-strcoll: New file.
33492         * lib/unistr/u16-strcoll.c: New file.
33493
33494         New module 'unistr/u8-strcoll'.
33495         * modules/unistr/u8-strcoll: New file.
33496         * lib/unistr/u8-strcoll.c: New file.
33497         * lib/unistr/u-strcoll.h: New file.
33498
33499 2009-02-07  Bruno Haible  <bruno@clisp.org>
33500
33501         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33502         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33503         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33504         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33505         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33506         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33507
33508 2009-02-07  Bruno Haible  <bruno@clisp.org>
33509
33510         Make 64-bit clean.
33511         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33512         output_combclass, output_bidi_category, output_decimal_digit,
33513         output_digit, output_numeric, output_mirror, output_scripts,
33514         output_ident_category): Use proper width specifier in format strings.
33515
33516 2009-02-07  Bruno Haible  <bruno@clisp.org>
33517
33518         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33519         failure behaviour.
33520
33521 2009-02-07  Jim Meyering  <meyering@redhat.com>
33522
33523         regex: avoid compilation failure with upcoming gcc-4.4
33524         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33525         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33526         "... error: integer overflow in preprocessor expression".
33527
33528 2009-02-05  Ben Pfaff  <blp@gnu.org>
33529
33530         Fix link errors on Windows when close module is used.
33531         * modules/close: Add $(LIB_CLOSE) to Link section.
33532         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33533         $(LIB_CLOSE) on Windows.
33534
33535 2009-02-05  Jim Meyering  <meyering@redhat.com>
33536
33537         still avoid unused-parameter warnings, but do it cleanly
33538         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33539         (get_fs_usage): Cast to void instead.
33540         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33541         (dev_from_mount_options, read_file_system_list): Cast to void.
33542         Prompted by Bruno Haible.
33543
33544 2009-02-04  Jim Meyering  <meyering@redhat.com>
33545
33546         fsusage.c: correct copyright year
33547         * lib/fsusage.c: Reflect year in which the change is pushed into
33548
33549         avoid misc. warnings
33550         * lib/fsusage.c (UNUSED_PARAM): Define.
33551         (get_fs_usage): Mark parameter "disk" as unused.
33552         * lib/getugroups.c (getgrent): Use "void" in prototype.
33553         * lib/mountlist.c: Mark unused parameters.
33554         (read_file_system_list): Declare a local with "const".
33555         * lib/nanosleep.c (getnow): Declare static.
33556         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33557
33558         dirfd: set errno upon failure
33559         * lib/dirfd.c: Include <errno.h>.
33560         Set errno to ENOTSUP when returning -1.
33561         * modules/dirfd (Depends-on): Add errno.
33562         Suggested by John Kodis <kodis@comcast.net>.
33563
33564 2009-02-01  Bruno Haible  <bruno@clisp.org>
33565
33566         Don't assume sizeof (long) >= sizeof (void *).
33567         * lib/memcmp.c: Include stdint.h.
33568         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33569         srcp2 to 'const byte *'.
33570         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33571         types to uintptr_t.
33572         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33573         * modules/memcmp (Depends-on): Add stdint.
33574         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33575
33576 2009-01-30  Eric Blake  <ebb9@byu.net>
33577
33578         fix more require-before-expand issues
33579         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33580         expand, AC_PROG_AWK.
33581         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33582
33583 2009-01-28  Eric Blake  <ebb9@byu.net>
33584
33585         version-etc: use consistent URL formatting
33586         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33587         Improve formatting.  Use fputs for string without %.
33588
33589 2009-01-28  Jim Meyering  <meyering@redhat.com>
33590
33591         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33592         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33593         "underquoted definition of NAME" from autoconf-2.59.
33594
33595 2009-01-28  Bruno Haible  <bruno@clisp.org>
33596
33597         * doc/gnulib.texi: Add "Obsolete modules" to index.
33598
33599 2009-01-28  Jim Meyering  <meyering@redhat.com>
33600
33601         useless-if-before-free: recognize more variants
33602         * build-aux/useless-if-before-free: Also recognize e.g.,
33603         if (NULL != p) free (p);
33604
33605 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33606
33607         test-getaddrinfo: skip (don't fail) this test when there's no network
33608         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33609         on the presumption that it means you lack network access.
33610
33611 2009-01-26  Jim Meyering  <meyering@redhat.com>
33612
33613         fflush: avoid warnings on modern systems
33614         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33615         pos and result, into scopes where they're used.
33616
33617 2009-01-26  Eric Blake  <ebb9@byu.net>
33618
33619         Silence warning reintroduced by recent extensions patch.
33620         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33621         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33622         autoconf.
33623
33624         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33625         * m4/00gnulib.m4: New file.
33626         * gnulib-tool (func_get_filelist): Always use it.
33627         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33628         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33629
33630 2009-01-25  Bruno Haible  <bruno@clisp.org>
33631
33632         Make test-quotearg work on MacOS X and AIX.
33633         * tests/test-quotearg.sh: New file.
33634         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33635         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33636         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33637         include <libintl.h>.
33638         (fake_locale): Remove variable.
33639         (gettext, dgettext, dcgettext): Remove functions.
33640         (main): Instead of setting a fake locale, set a real locale. Call
33641         textdomain and bindtextdomain.
33642         * modules/quotearg-tests (Files): Add the new files.
33643         (Depends-on): Add gettext, setenv, unsetenv.
33644         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33645         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33646         Augment TESTS_ENVIRONMENT.
33647
33648 2009-01-25  Bruno Haible  <bruno@clisp.org>
33649
33650         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33651         fr_FR.ISO8859-1 locale on MacOS X.
33652         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33653         ja_JP.eucJP locale on MacOS X.
33654         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33655         zh_CN.GB18030 locale on MacOS X.
33656
33657 2009-01-25  Bruno Haible  <bruno@clisp.org>
33658
33659         Avoid link errors on MacOS X 10.3.
33660         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33661         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33662
33663 2009-01-25  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33666         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33667         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33668         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33669         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33670         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33671         posix_spawnattr_init, posix_spawnattr_setsigmask,
33672         posix_spawnattr_setflags, posix_spawnattr_destroy.
33673
33674         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33675         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33676         * modules/execute (Files): Remove m4/posix_spawn.m4.
33677         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
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 2009-01-25  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/glthread/threadlib.c: Include <stdlib.h>.
33685
33686 2009-01-25  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/glthread/threadlib.c (dummy): New declaration.
33689
33690 2009-01-25  Bruno Haible  <bruno@clisp.org>
33691
33692         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33693         multibyte characters also for the GB18030 encoding. Don't crash when
33694         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33695
33696 2009-01-25  Bruno Haible  <bruno@clisp.org>
33697
33698         Avoid redefining 'struct random_data' on OSF/1 5.1.
33699         * lib/stdlib.in.h: Include <random.h> if it exists.
33700         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33701         HAVE_RANDOM_H. Include <random.h> when testing whether
33702         'struct random_data' exists.
33703         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33704
33705 2009-01-25  Bruno Haible  <bruno@clisp.org>
33706
33707         Don't install charset.alias on MacOS X >= 10.3.
33708         * lib/localcharset.c (DARWIN7): New macro.
33709         (get_charset_aliases): Hardcode the result for Darwin7.
33710         * modules/localcharset (install-exec-local): Don't install
33711         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33712
33713 2009-01-25  Bruno Haible  <bruno@clisp.org>
33714
33715         Don't install charset.alias on mingw and Cygwin.
33716         * modules/localcharset (install-exec-local): Don't install
33717         charset.alias on mingw and Cygwin, if the file does not yet exist.
33718         The result for these platforms is hardcoded in localcharset.c.
33719
33720 2009-01-25  Bruno Haible  <bruno@clisp.org>
33721
33722         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33724         before requiring AC_USE_SYSTEM_EXTENSIONS.
33725
33726 2009-01-25  Jim Meyering  <meyering@redhat.com>
33727
33728         c-strtod: avoid warnings
33729         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33730         "assignment discards qualifiers from pointer target type" warnings.
33731
33732 2009-01-24  Bruno Haible  <bruno@clisp.org>
33733
33734         Add support for non-UTF-8 locales on MacOS X.
33735         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33736         canonical encodings. For Darwin 7 and newer, don't map traditional
33737         encodings to UTF-8.
33738         Reported by Vincent Lefevre <vincent@vinc17.org>
33739         at <http://savannah.gnu.org/bugs/?25235>.
33740
33741 2009-01-24  Bruno Haible  <bruno@clisp.org>
33742
33743         * doc/gnulib.texi (Obsolete modules): New section.
33744         Reported by Mike Frysinger <vapier@gentoo.org>.
33745
33746 2009-01-24  Bruno Haible  <bruno@clisp.org>
33747
33748         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33749         (%.dvi): New rule.
33750
33751 2009-01-24  Bruno Haible  <bruno@clisp.org>
33752
33753         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33754         Reported by Eric Blake.
33755
33756 2009-01-24  Bruno Haible  <bruno@clisp.org>
33757
33758         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33759         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33760         Reported by Gary V. Vaughan <gary@gnu.org>.
33761
33762 2009-01-24  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33765
33766 2009-01-23  Bruno Haible  <bruno@clisp.org>
33767
33768         Make c-strtod, c-strtold usable in libraries.
33769         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33770         (C_STRTOD): Call strdup instead of xstrdup.
33771         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33772         * modules/c-strtold (Depends-on): Likewise.
33773         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33774         * NEWS: Mention the change.
33775         Reported by Michael Gold <mgold@ncf.ca>.
33776
33777 2009-01-23  Jim Meyering  <meyering@redhat.com>
33778
33779         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33780         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33781         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33782
33783 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33784
33785         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33786         GNU CoreUtils.
33787         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33788         * modules/version-etc (Description): Update.
33789
33790 2009-01-22  Bruno Haible  <bruno@clisp.org>
33791
33792         Cache the C locale object.
33793         * lib/c-strtod.c (c_locale_cache): New variable.
33794         (c_locale): New function.
33795         (C_STRTOD): Use it, and don't call freelocale.
33796         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33797         Suggested by Paolo Bonzini.
33798
33799 2009-01-21  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33802         conditions other than overflow.
33803
33804 2009-01-21  Bruno Haible  <bruno@clisp.org>
33805
33806         * lib/c-strtod.c: Include errno.h.
33807         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33808         value from STRTOD_L and STRTOD.
33809
33810 2009-01-21  Bruno Haible  <bruno@clisp.org>
33811         and Jim Meyering  <meyering@redhat.com>
33812
33813         nanosleep: skip configure test (fail it) for apple universal builds
33814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33815         universal builds, assume that nanosleep does not work.
33816         * modules/nanosleep (Depends-on): Add multiarch.
33817
33818         mktime: skip configure test (fail it) for apple universal builds
33819         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33820         universal builds, assume that mktime does not work.
33821         * modules/mktime (Depends-on): Add multiarch.
33822
33823 2009-01-21  Eric Blake  <ebb9@byu.net>
33824
33825         multiarch: avoid expand-before-require warning
33826         * modules/multiarch (configure.ac): Require, rather than expand,
33827         gl_MULTIARCH.
33828         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33829         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33830         enforce that all clients require it.  Partial reversion of
33831         2008-12-29 patch.
33832
33833         error: avoid expand-before-require warning
33834         * modules/errno (configure.ac): Require, rather than expand,
33835         gl_HEADER_ERRNO_H.
33836         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33837         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33838         enforce that all clients require it.
33839
33840         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33841         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33842         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33843         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33844
33845 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33846
33847         Revert:
33848         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33849
33850         regex: do not depend on obsolete modules.
33851         * modules/regex: Remove memcmp and memmove.
33852
33853 2009-01-20  Bruno Haible  <bruno@clisp.org>
33854
33855         Make the 'link' module link on Windows NT 4.
33856         * lib/link.c (_WIN32_WINNT): Don't define.
33857         (CreateHardLinkFuncType): New type.
33858         (CreateHardLinkFunc, initialized): New variables.
33859         (initialize): New function.
33860         (link): Invoke CreateHardLink indirectly through the function pointer.
33861
33862 2009-01-20  Bruno Haible  <bruno@clisp.org>
33863
33864         Fix compilation failure on mingw.
33865         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33866
33867 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33868
33869         * doc/c-strtod.texi: Mention a couple of restrictions.
33870
33871 2009-01-20  Jim Meyering  <meyering@redhat.com>
33872
33873         gettimeofday: move more declarations out of functions
33874         * lib/gettimeofday.c: Move extern declarations of tzset and
33875         gmtime out of containing functions.  Prompted by Bruno Haible.
33876
33877 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33878
33879         regex: do not depend on obsolete modules.
33880         * modules/regex: Remove memcmp and memmove.
33881
33882 2009-01-19  Bruno Haible  <bruno@clisp.org>
33883
33884         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33885         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33886         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33887         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33888         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33889
33890 2009-01-19  Bruno Haible  <bruno@clisp.org>
33891
33892         * tests/test-link.c: Include <errno.h>.
33893         (main): Exit with code 77 when a hard link cannot be created due to
33894         the file system.
33895         * tests/test-link.sh: Skip test when a hard link cannot be created due
33896         to the file system.
33897         Suggested by Eric Blake.
33898
33899 2009-01-19  Martin Lambers  <marlam@marlam.de>
33900
33901         * modules/link-tests: New file.
33902         * tests/test-link.sh: New file.
33903         * tests/test-link.c: New file.
33904
33905 2009-01-19  Eric Blake  <ebb9@byu.net>
33906
33907         doc: mention another function added in cygwin 1.7.0
33908         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33909         Another new function in cygwin 1.7.
33910
33911 2009-01-19  Bruno Haible  <bruno@clisp.org>
33912
33913         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33914         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33915         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33916         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33917         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33918         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33919         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33920         * m4/md4.m4 (gl_MD4): Likewise.
33921         * m4/md5.m4 (gl_MD5): Likewise.
33922         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33923         * m4/sha1.m4 (gl_SHA1): Likewise.
33924         * m4/sha256.m4 (gl_SHA256): Likewise.
33925         * m4/sha512.m4 (gl_SHA512): Likewise.
33926
33927 2009-01-19  Bruno Haible  <bruno@clisp.org>
33928
33929         * modules/uniname/uniname-tests (Depends-on): Add progname.
33930         * tests/uniname/test-uninames.c: Include progname.h.
33931         (main): Call set_program_name.
33932
33933         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33934         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33935         (main): Call set_program_name.
33936
33937         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33938         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33939         (main): Call set_program_name.
33940
33941         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33942         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33943         (main): Call set_program_name.
33944
33945         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33946         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33947         (main): Call set_program_name.
33948
33949         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33950         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33951         (main): Call set_program_name.
33952
33953         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33954         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33955         (main): Call set_program_name.
33956
33957         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33958         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33959         (main): Call set_program_name.
33960
33961         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33962         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33963         (main): Call set_program_name.
33964
33965 2009-01-19  Eric Blake  <ebb9@byu.net>
33966
33967         test-unistd: test previous patch
33968         * tests/test-unistd.c: Test *_FILENO macros.
33969
33970         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33971         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33972         Guarantee a definition.
33973         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33974         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33975         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33976         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33977         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33978         Likewise.
33979         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33980         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33981         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33982         Likewise.
33983         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33984         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33985         (STDERR_FILENO): Likewise.
33986         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33987         (STDERR_FILENO): Likewise.
33988         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33989         (STDERR_FILENO): Likewise.
33990         Reported by Elbert Pol.
33991
33992 2009-01-19  Eric Blake  <ebb9@byu.net>
33993
33994         doc: mention more functions added in cygwin 1.7.0
33995         * doc/posix-functions/abort.texi (abort): Update wording related
33996         to cygwin.
33997         * doc/posix-functions/daylight.texi (daylight): Likewise.
33998         * doc/posix-functions/optarg.texi (optarg): Likewise.
33999         * doc/posix-functions/optarg.texi (opterr): Likewise.
34000         * doc/posix-functions/optarg.texi (optind): Likewise.
34001         * doc/posix-functions/optarg.texi (optopt): Likewise.
34002         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34003         worked in 1.5.x, and was withdrawn in 1.7.
34004         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34005         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34006         cygwin versions.
34007         * doc/posix-functions/perror.texi (perror): Likewise.
34008         * doc/posix-functions/printf.texi (printf): Likewise.
34009         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34010         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34011         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34012         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34013         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34014         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34015         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34016         Likewise.
34017         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34018         Likewise.
34019         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34020         this function.
34021         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34022         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34023         Likewise.
34024         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34025         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34026         * doc/posix-functions/confstr.texi (confstr): Likewise.
34027         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34028         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34029         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34030         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34031         * doc/posix-functions/fputws.texi (fputws): Likewise.
34032         * doc/posix-functions/fwide.texi (fwide): Likewise.
34033         * doc/posix-functions/getwc.texi (getwc): Likewise.
34034         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34035         * doc/posix-functions/putwc.texi (putwc): Likewise.
34036         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34037         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34038         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34039         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34040         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34041         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34042         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34043         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34044         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34045         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34046         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34047
34048 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34049
34050         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34051         * lib/ioctl.c: Include <sys/ioctl.h>.
34052
34053 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34054
34055         * modules/getdate-tests (Depends-on): Add progname.
34056         * tests/test-getdate.c: Use progname module, to avoid link errors
34057         on non-glibc systems.
34058
34059 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34060
34061         * modules/filenamecat-tests (Depends-on): Add progname.
34062         * modules/fstrcmp-tests (Depends-on): Likewise.
34063
34064         * tests/test-filenamecat.c: Use progname module, to avoid link
34065         errors on non-glibc systems.
34066         * tests/test-fstrcmp.c: Likewise.
34067
34068 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34069
34070         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34071         * lib/gettimeofday.c: Move extern declaration out of function.
34072
34073 2009-01-18  Bruno Haible  <bruno@clisp.org>
34074
34075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34076         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34077         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34078
34079 2009-01-18  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/strftime.c (MEMPCPY): Remove unused macro.
34082         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34083
34084 2009-01-18  Martin Lambers  <marlam@marlam.de>
34085
34086         New module 'link'.
34087         * lib/unistd.in.h (link): New declaration.
34088         * lib/link.c: New file.
34089         * m4/link.m4: New file.
34090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34091         HAVE_LINK.
34092         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34093         * modules/link: New file.
34094         * doc/posix-functions/link.texi: Mention the new module.
34095
34096 2009-01-18  Bruno Haible  <bruno@clisp.org>
34097
34098         * tests/test-avltree_list.c (main): Call set_program_name.
34099         * tests/test-avltree_oset.c (main): Likewise.
34100         * tests/test-obstack-printf.c: Include progname.h.
34101         (main): Call set_program_name.
34102         * tests/test-quotearg.c: Include progname.h.
34103         (main): Call set_program_name.
34104         * tests/test-xmemdup0.c: Include progname.h.
34105         (main): Call set_program_name.
34106
34107 2009-01-18  Bruno Haible  <bruno@clisp.org>
34108
34109         New module 'alphasort'.
34110         * lib/dirent.in.h (alphasort): New declaration.
34111         * lib/alphasort.c: New file, from glibc with modifications.
34112         * m4/alphasort.m4: New file.
34113         * modules/alphasort: New file.
34114         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34115         HAVE_ALPHASORT.
34116         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34117         HAVE_ALPHASORT.
34118         * doc/posix-functions/alphasort.texi: Mention the new module and the
34119         portability problems.
34120
34121 2009-01-18  Bruno Haible  <bruno@clisp.org>
34122
34123         New module 'scandir'.
34124         * lib/dirent.in.h (scandir): New declaration.
34125         * lib/scandir.c: New file, from glibc with modifications.
34126         * m4/scandir.m4: New file.
34127         * modules/scandir: New file.
34128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34129         HAVE_SCANDIR.
34130         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34131         HAVE_SCANDIR.
34132         * doc/posix-functions/scandir.texi: Mention the new module and the
34133         portability problems.
34134
34135 2009-01-17  Bruno Haible  <bruno@clisp.org>
34136
34137         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34138         Update documentation.
34139         (func_remove_suffix): Escape all dots in the suffix. Update
34140         documentation.
34141         (func_filter_filelist): Update documentation.
34142         Reported by Ralf Wildenhues.
34143
34144 2009-01-17  Bruno Haible  <bruno@clisp.org>
34145
34146         * modules/dprintf-posix-tests: New file.
34147         * tests/test-dprintf-posix.sh: New file.
34148         * tests/test-dprintf-posix.c: New file.
34149
34150         New modules 'dprintf', 'dprintf-posix'.
34151         * lib/stdio.in.h (dprintf): New declaration.
34152         * lib/dprintf.c: New file.
34153         * m4/dprintf.m4: New file.
34154         * m4/dprintf-posix.m4: New file.
34155         * modules/dprintf: New file.
34156         * modules/dprintf-posix: New file.
34157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34158         HAVE_DPRINTF, REPLACE_DPRINTF.
34159         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34160         HAVE_DPRINTF, REPLACE_DPRINTF.
34161         * doc/posix-functions/dprintf.texi: Mention the new modules.
34162
34163 2009-01-17  Bruno Haible  <bruno@clisp.org>
34164
34165         * modules/vdprintf-posix-tests: New file.
34166         * tests/test-vdprintf-posix.sh: New file.
34167         * tests/test-vdprintf-posix.c: New file.
34168
34169         New modules 'vdprintf', 'vdprintf-posix'.
34170         * lib/stdio.in.h (vdprintf): New declaration.
34171         * lib/vdprintf.c: New file.
34172         * m4/vdprintf.m4: New file.
34173         * m4/vdprintf-posix.m4: New file.
34174         * modules/vdprintf: New file.
34175         * modules/vdprintf-posix: New file.
34176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34177         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34178         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34179         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34180         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34181
34182 2009-01-17  Bruno Haible  <bruno@clisp.org>
34183
34184         Fix replacement of fopen on mingw.
34185         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34186         mingw.
34187
34188 2009-01-17  Bruno Haible  <bruno@clisp.org>
34189
34190         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34191         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34192
34193 2009-01-17  Bruno Haible  <bruno@clisp.org>
34194
34195         Avoid test-fflush2.sh failure on mingw.
34196         * tests/test-fflush2.c: Include binary-io.h.
34197         (main): Put standard input into binary mode.
34198         * modules/fflush-tests (Depends-on): Add binary-io.
34199
34200 2009-01-17  Bruno Haible  <bruno@clisp.org>
34201
34202         * lib/wchar.in.h: In another particular situation, include only the
34203         system's <wchar.h> file.
34204         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34205         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34206         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34207
34208 2009-01-17  Bruno Haible  <bruno@clisp.org>
34209
34210         Support for stripping executables in --enable-relocatable.
34211         * build-aux/install-reloc: Expect one more argument, or an environment
34212         variable RELOC_STRIP_PROG. If set, strip the destination program and
34213         its wrapper.
34214         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34215         RELOC_STRIP_PROG.
34216         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34217         to set RELOCATABLE_STRIP.
34218         * NEWS: Mention the new Makefile requirement.
34219
34220 2009-01-17  Bruno Haible  <bruno@clisp.org>
34221
34222         * build-aux/install-reloc: Remove debugging information left over by
34223         C compiler on MacOS X.
34224
34225 2009-01-17  Bruno Haible  <bruno@clisp.org>
34226
34227         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34228         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34229         _NSGetExecutablePath.
34230
34231 2009-01-16  Jim Meyering  <meyering@redhat.com>
34232
34233         strerror: avoid warnings about discarding "const"
34234         * lib/strerror.c (rpl_strerror): Instead of returning a const
34235         string from each and every "case", use a variable, and add a single
34236         cast after the switch.
34237
34238 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34239
34240         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34241
34242 2009-01-16  Bruno Haible  <bruno@clisp.org>
34243
34244         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34245         array initializer syntax that also works in C++ mode.
34246         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34247
34248 2009-01-16  Jim Meyering  <meyering@redhat.com>
34249
34250         poll: suppress a warning
34251         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34252         to ignore "...unsigned expression < 0 is always false" warnings.
34253
34254 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34255
34256         poll: remove declarations of unused variables
34257         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34258         sockbuf and optlen.
34259
34260 2009-01-15  Bruno Haible  <bruno@clisp.org>
34261
34262         Make fflush-after-ungetc POSIX compliant on BSD systems.
34263         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34264         (clear_ungetc_buffer): Implement also for other systems.
34265         (rpl_fflush): On glibc systems, invoke
34266         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34267         clear_ungetc_buffer after fetching the stream's position, not before.
34268
34269 2009-01-15  Bruno Haible  <bruno@clisp.org>
34270
34271         Make fflush-after-ungetc POSIX compliant on glibc systems.
34272         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34273         after ungetc.
34274         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34275         (rpl_fflush): On glibc systems, simply call the system's fflush
34276         function after clearing the ungetc buffer.
34277         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34278         Instead, lseek only to the end of file, then use the system's fseeko
34279         for the rest. On glibc systems, reset the EOF indicator bit.
34280
34281 2009-01-15  Jim Meyering  <meyering@redhat.com>
34282
34283         openmp.m4: revert quote-adding change, for portability to older autoconf
34284         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34285         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34286         Simon Josefsson noticed the problem when using autoconf-2.61.
34287
34288 2009-01-15  Bruno Haible  <bruno@clisp.org>
34289
34290         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34291         * tests/test-fflush2.c (ASSERT): Always fail.
34292         (main): Add two tests for fflush() after ungetc(), taking into account
34293         the Austin Group's clarification.
34294         Suggested by Eric Blake.
34295
34296 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34297
34298         mktime.m4: remove K&R-style function prototypes
34299         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34300         for the Sun C++ compiler.
34301
34302 2009-01-14  Bruno Haible  <bruno@clisp.org>
34303
34304         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34305         while including <wchar.h>.
34306         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34307         the system's <wchar.h> file.
34308         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34309
34310 2009-01-14  Bruno Haible  <bruno@clisp.org>
34311
34312         * m4/csharp.m4: Don't mention gettext on the serial number line.
34313         * m4/csharpexec.m4: Likewise.
34314         * m4/eaccess.m4: Likewise.
34315         * m4/javaexec.m4: Likewise.
34316         * m4/sig_atomic_t.m4: Likewise.
34317         * m4/tmpdir.m4: Likewise.
34318         * m4/intldir.m4: Bump gettext version.
34319         * m4/lib-ld.m4: Likewise.
34320
34321 2009-01-14  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/progname.c (set_program_name): Add more comments.
34324         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34325
34326 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34327
34328         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34329         were sys/stat.h does not define it.
34330
34331 2009-01-14  Jim Meyering  <meyering@redhat.com>
34332
34333         many *.m4 files: improve m4 quoting
34334         99% of this change was performed by running the following commands:
34335         git ls-files | grep '\.m4$' | xargs perl -pi \
34336           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34337           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34338           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34339           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34340         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34341         The remainder were to add Copyright dates, increment serial numbers,
34342         undo some changes in comments, exclude m4/intl.m4, and add quotes
34343         around the "1" in ",1" where the unusual spacing prohibited the
34344         above regexps from doing the job.  For more details, see
34345         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34346         * m4/acl.m4: Modified.
34347         * m4/afs.m4: Likewise.
34348         * m4/alloca.m4: Likewise.
34349         * m4/argp.m4: Likewise.
34350         * m4/argz.m4: Likewise.
34351         * m4/atexit.m4: Likewise.
34352         * m4/bison-i18n.m4: Likewise.
34353         * m4/bison.m4: Likewise.
34354         * m4/byteswap.m4: Likewise.
34355         * m4/c-stack.m4: Likewise.
34356         * m4/c-strtod.m4: Likewise.
34357         * m4/calloc.m4: Likewise.
34358         * m4/canonicalize-lgpl.m4: Likewise.
34359         * m4/chown.m4: Likewise.
34360         * m4/clock_time.m4: Likewise.
34361         * m4/codeset.m4: Likewise.
34362         * m4/copy-file.m4: Likewise.
34363         * m4/csharp.m4: Likewise.
34364         * m4/csharpcomp.m4: Likewise.
34365         * m4/csharpexec.m4: Likewise.
34366         * m4/d-ino.m4: Likewise.
34367         * m4/d-type.m4: Likewise.
34368         * m4/dirfd.m4: Likewise.
34369         * m4/double-slash-root.m4: Likewise.
34370         * m4/eaccess.m4: Likewise.
34371         * m4/eealloc.m4: Likewise.
34372         * m4/environ.m4: Likewise.
34373         * m4/errno_h.m4: Likewise.
34374         * m4/euidaccess.m4: Likewise.
34375         * m4/execute.m4: Likewise.
34376         * m4/fatal-signal.m4: Likewise.
34377         * m4/fchdir.m4: Likewise.
34378         * m4/fcntl_h.m4: Likewise.
34379         * m4/fileblocks.m4: Likewise.
34380         * m4/filenamecat.m4: Likewise.
34381         * m4/findprog.m4: Likewise.
34382         * m4/flexmember.m4: Likewise.
34383         * m4/fnmatch.m4: Likewise.
34384         * m4/fopen.m4: Likewise.
34385         * m4/fpending.m4: Likewise.
34386         * m4/fprintf-posix.m4: Likewise.
34387         * m4/free.m4: Likewise.
34388         * m4/frexp.m4: Likewise.
34389         * m4/frexpl.m4: Likewise.
34390         * m4/fsusage.m4: Likewise.
34391         * m4/ftruncate.m4: Likewise.
34392         * m4/gc-camellia.m4: Likewise.
34393         * m4/gc-random.m4: Likewise.
34394         * m4/gc.m4: Likewise.
34395         * m4/getaddrinfo.m4: Likewise.
34396         * m4/getcwd-abort-bug.m4: Likewise.
34397         * m4/getcwd-path-max.m4: Likewise.
34398         * m4/getdate.m4: Likewise.
34399         * m4/getdomainname.m4: Likewise.
34400         * m4/getgroups.m4: Likewise.
34401         * m4/gethostname.m4: Likewise.
34402         * m4/gethrxtime.m4: Likewise.
34403         * m4/getline.m4: Likewise.
34404         * m4/getloadavg.m4: Likewise.
34405         * m4/getndelim2.m4: Likewise.
34406         * m4/getpass.m4: Likewise.
34407         * m4/gettext.m4: Likewise.
34408         * m4/gettime.m4: Likewise.
34409         * m4/gettimeofday.m4: Likewise.
34410         * m4/gnulib-common.m4: Likewise.
34411         * m4/group-member.m4: Likewise.
34412         * m4/host-os.m4: Likewise.
34413         * m4/iconv.m4: Likewise.
34414         * m4/iconv_open.m4: Likewise.
34415         * m4/inet_ntop.m4: Likewise.
34416         * m4/inet_pton.m4: Likewise.
34417         * m4/inline.m4: Likewise.
34418         * m4/intldir.m4: Likewise.
34419         * m4/intlmacosx.m4: Likewise.
34420         * m4/intmax.m4: Likewise.
34421         * m4/intmax_t.m4: Likewise.
34422         * m4/inttypes.m4: Likewise.
34423         * m4/inttypes_h.m4: Likewise.
34424         * m4/inttypes-pri.m4: Likewise.
34425         * m4/isapipe.m4: Likewise.
34426         * m4/isnand.m4: Likewise.
34427         * m4/isnanf.m4: Likewise.
34428         * m4/isnanl.m4: Likewise.
34429         * m4/javacomp.m4: Likewise.
34430         * m4/javaexec.m4: Likewise.
34431         * m4/jm-winsz1.m4: Likewise.
34432         * m4/jm-winsz2.m4: Likewise.
34433         * m4/lchown.m4: Likewise.
34434         * m4/lcmessage.m4: Likewise.
34435         * m4/ldexpl.m4: Likewise.
34436         * m4/lib-ld.m4: Likewise.
34437         * m4/lib-link.m4: Likewise.
34438         * m4/libsigsegv.m4: Likewise.
34439         * m4/link-follow.m4: Likewise.
34440         * m4/localcharset.m4: Likewise.
34441         * m4/locale-fr.m4: Likewise.
34442         * m4/locale-ja.m4: Likewise.
34443         * m4/locale-tr.m4: Likewise.
34444         * m4/locale-zh.m4: Likewise.
34445         * m4/lock.m4: Likewise.
34446         * m4/longlong.m4: Likewise.
34447         * m4/ls-mntd-fs.m4: Likewise.
34448         * m4/lstat.m4: Likewise.
34449         * m4/malloc.m4: Likewise.
34450         * m4/mathl.m4: Likewise.
34451         * m4/mbrtowc.m4: Likewise.
34452         * m4/mbstate_t.m4: Likewise.
34453         * m4/mbswidth.m4: Likewise.
34454         * m4/memchr.m4: Likewise.
34455         * m4/memcmp.m4: Likewise.
34456         * m4/memcpy.m4: Likewise.
34457         * m4/memmem.m4: Likewise.
34458         * m4/memmove.m4: Likewise.
34459         * m4/mempcpy.m4: Likewise.
34460         * m4/memrchr.m4: Likewise.
34461         * m4/memset.m4: Likewise.
34462         * m4/minmax.m4: Likewise.
34463         * m4/mkdir-slash.m4: Likewise.
34464         * m4/mkdtemp.m4: Likewise.
34465         * m4/mktime.m4: Likewise.
34466         * m4/mmap-anon.m4: Likewise.
34467         * m4/mountlist.m4: Likewise.
34468         * m4/nanosleep.m4: Likewise.
34469         * m4/nls.m4: Likewise.
34470         * m4/nocrash.m4: Likewise.
34471         * m4/open.m4: Likewise.
34472         * m4/openat.m4: Likewise.
34473         * m4/openmp.m4: Likewise.
34474         * m4/pathmax.m4: Likewise.
34475         * m4/perl.m4: Likewise.
34476         * m4/physmem.m4: Likewise.
34477         * m4/pipe.m4: Likewise.
34478         * m4/po.m4: Likewise.
34479         * m4/poll.m4: Likewise.
34480         * m4/posixtm.m4: Likewise.
34481         * m4/posixver.m4: Likewise.
34482         * m4/printf-frexp.m4: Likewise.
34483         * m4/printf-frexpl.m4: Likewise.
34484         * m4/printf-posix.m4: Likewise.
34485         * m4/printf-posix-rpl.m4: Likewise.
34486         * m4/printf.m4: Likewise.
34487         * m4/progtest.m4: Likewise.
34488         * m4/putenv.m4: Likewise.
34489         * m4/readline.m4: Likewise.
34490         * m4/readlink.m4: Likewise.
34491         * m4/readutmp.m4: Likewise.
34492         * m4/realloc.m4: Likewise.
34493         * m4/regex.m4: Likewise.
34494         * m4/relocatable.m4: Likewise.
34495         * m4/relocatable-lib.m4: Likewise.
34496         * m4/rename-dest-slash.m4: Likewise.
34497         * m4/rename.m4: Likewise.
34498         * m4/rmdir-errno.m4: Likewise.
34499         * m4/rmdir.m4: Likewise.
34500         * m4/roundf.m4: Likewise.
34501         * m4/roundl.m4: Likewise.
34502         * m4/rpmatch.m4: Likewise.
34503         * m4/save-cwd.m4: Likewise.
34504         * m4/selinux-selinux-h.m4: Likewise.
34505         * m4/setenv.m4: Likewise.
34506         * m4/settime.m4: Likewise.
34507         * m4/sig2str.m4: Likewise.
34508         * m4/sig_atomic_t.m4: Likewise.
34509         * m4/signalblocking.m4: Likewise.
34510         * m4/signbit.m4: Likewise.
34511         * m4/sigpipe.m4: Likewise.
34512         * m4/sockets.m4: Likewise.
34513         * m4/sockpfaf.m4: Likewise.
34514         * m4/st_dm_mode.m4: Likewise.
34515         * m4/stat-time.m4: Likewise.
34516         * m4/stdbool.m4: Likewise.
34517         * m4/stdint.m4: Likewise.
34518         * m4/stdint_h.m4: Likewise.
34519         * m4/stpcpy.m4: Likewise.
34520         * m4/stpncpy.m4: Likewise.
34521         * m4/strcase.m4: Likewise.
34522         * m4/strchrnul.m4: Likewise.
34523         * m4/strcspn.m4: Likewise.
34524         * m4/strdup.m4: Likewise.
34525         * m4/strftime.m4: Likewise.
34526         * m4/strndup.m4: Likewise.
34527         * m4/strnlen.m4: Likewise.
34528         * m4/strpbrk.m4: Likewise.
34529         * m4/strptime.m4: Likewise.
34530         * m4/strsep.m4: Likewise.
34531         * m4/strtod.m4: Likewise.
34532         * m4/strtoimax.m4: Likewise.
34533         * m4/strtok_r.m4: Likewise.
34534         * m4/strtol.m4: Likewise.
34535         * m4/strtoll.m4: Likewise.
34536         * m4/strtoul.m4: Likewise.
34537         * m4/strtoull.m4: Likewise.
34538         * m4/strtoumax.m4: Likewise.
34539         * m4/strverscmp.m4: Likewise.
34540         * m4/threadlib.m4: Likewise.
34541         * m4/timegm.m4: Likewise.
34542         * m4/tm_gmtoff.m4: Likewise.
34543         * m4/tmpdir.m4: Likewise.
34544         * m4/tmpfile.m4: Likewise.
34545         * m4/tzset.m4: Likewise.
34546         * m4/uintmax_t.m4: Likewise.
34547         * m4/unlinkdir.m4: Likewise.
34548         * m4/unlocked-io.m4: Likewise.
34549         * m4/uptime.m4: Likewise.
34550         * m4/userspec.m4: Likewise.
34551         * m4/utimbuf.m4: Likewise.
34552         * m4/utime.m4: Likewise.
34553         * m4/utimes-null.m4: Likewise.
34554         * m4/utimes.m4: Likewise.
34555         * m4/vararrays.m4: Likewise.
34556         * m4/vasnprintf.m4: Likewise.
34557         * m4/vfprintf-posix.m4: Likewise.
34558         * m4/vprintf-posix.m4: Likewise.
34559         * m4/wait-process.m4: Likewise.
34560         * m4/wchar_t.m4: Likewise.
34561         * m4/wint_t.m4: Likewise.
34562         * m4/write-any-file.m4: Likewise.
34563         * m4/yield.m4: Likewise.
34564
34565 2009-01-13  Bruno Haible  <bruno@clisp.org>
34566
34567         Avoid test-copy-file.sh failures when ACL support insufficient.
34568         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34569         TESTS_ENVIRONMENT.
34570         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34571         Reported by Jim Meyering.
34572
34573 2009-01-13  Bruno Haible  <bruno@clisp.org>
34574
34575         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34576         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34577         * modules/unistdio/u8-printf-parse (Files): Likewise.
34578         * modules/unistdio/u32-printf-parse (Files): Likewise.
34579         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34580
34581 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34582
34583         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34584         and m4/inttypes_h.m4 too.
34585
34586 2009-01-12  Eric Blake  <ebb9@byu.net>
34587
34588         tests: IRIX 6.2 cc can't compile -0.0 into .data
34589         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34590         rather than at compile-time.
34591         * tests/test-floorl.c (minus_zero): Likewise.
34592         * tests/test-frexpl.c (minus_zero): Likewise.
34593         * tests/test-isnan.c (minus_zerol): Likewise.
34594         * tests/test-isnanl.h (minus_zero): Likewise.
34595         * tests/test-ldexpl.c (minus_zero): Likewise.
34596         * tests/test-roundl.c (minus_zero): Likewise.
34597         * tests/test-signbit.c (minus_zerol): Likewise.
34598         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34599         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34600         * tests/test-truncl.c (minus_zero): Likewise.
34601         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34602         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34603         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34604
34605 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34606
34607         regex: fix glibc bug 9697
34608         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34609         handling.
34610
34611 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34612
34613         regex: fix glibc bug 697
34614         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34615         being NULL also if there are no backreferences.
34616
34617 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34618
34619         regex: merge glibc changes
34620         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34621         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34622         re_string_skip_chars, re_string_reconstruct): Likewise.
34623         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34624
34625 2009-01-07  Jim Meyering  <meyering@redhat.com>
34626
34627         poll: filter through cppi
34628         * lib/poll.c: Indent cpp directives to reflect nesting.
34629
34630 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34631
34632         poll: don't return uninitialized
34633         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34634
34635 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34636
34637         avoid compile failure on AIX 6.1
34638         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34639         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34640
34641 2009-01-04  Jim Meyering  <meyering@redhat.com>
34642
34643         remove duplicate inclusion of <stdio.h>
34644         * tests/test-fprintf-posix.c: Likewise.
34645         * tests/test-printf-posix.c: Likewise.
34646         * tests/test-snprintf-posix.c: Likewise.
34647         * tests/test-sprintf-posix.c: Likewise.
34648         * tests/test-vasprintf-posix.c: Likewise.
34649         * tests/test-vfprintf-posix.c: Likewise.
34650         * tests/test-vprintf-posix.c: Likewise.
34651         * tests/test-vsnprintf-posix.c: Likewise.
34652         * tests/test-vsprintf-posix.c: Likewise.
34653
34654 2009-01-03  Jim Meyering  <meyering@redhat.com>
34655
34656         gnulib-tool: fix sed-based filtering
34657         * gnulib-tool (func_filter_filelist): Remove extra backslash
34658         in sed_fff_filter definition.
34659
34660 2009-01-02  Jim Meyering  <meyering@redhat.com>
34661
34662         strftime: avoid compilation failure on Solaris 2.6
34663         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34664         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34665         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34666         be available.  Reported by Tom G. Christensen.  Details in
34667         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34668
34669 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34670             Bruno Haible  <bruno@clisp.org>
34671
34672         Speed up gnulib-tool by doing more string processing through shell
34673         built-ins.
34674         * gnulib-tool (fast_func_append): New variable.
34675         (func_remove_prefix, func_remove_suffix): New functions.
34676         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34677         (func_filter_filelist): New function.
34678         (func_get_dependencies): Use func_remove_suffix instead of sed.
34679         (func_get_automake_snippet): Use func_filter_filelist instead of a
34680         subshell and sed invocation.
34681
34682 2009-01-01  Bruno Haible  <bruno@clisp.org>
34683
34684         Fix a security bug.
34685         * gnulib-tool (func_import, import, update): Don't allow the characters
34686         '"', '$', '`', '\' in macro arguments that become part of commands that
34687         are evaluated.
34688
34689 2009-01-01  Bruno Haible  <bruno@clisp.org>
34690
34691         * gnulib-tool (func_reset_sigpipe): Add more comments.
34692
34693 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34694
34695         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34696         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34697         already know the answer.
34698
34699 2009-01-01  Jim Meyering  <meyering@redhat.com>
34700
34701         * lib/version-etc.c (version_etc_va): Update copyright year.
34702
34703 2008-12-30  Bruno Haible  <bruno@clisp.org>
34704
34705         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34706         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34707         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34708
34709 2008-12-29  Eric Blake  <ebb9@byu.net>
34710
34711         multiarch: avoid autoconf AC_REQUIRE bug
34712         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34713         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34714         2.63 and older.
34715         Reported by Bruno Haible, and analyzed in
34716         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34717
34718 2008-12-29  Bruno Haible  <bruno@clisp.org>
34719
34720         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34721         files in subdirectories correctly.
34722         Reported by Ralf Wildenhues.
34723
34724 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34725
34726         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34727         rather than 'join FILE -', for Solaris join.
34728
34729 2008-12-29  Bruno Haible  <bruno@clisp.org>
34730
34731         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34732         quoting.
34733         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34734         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34735         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34736         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34737         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34738         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34739         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34740         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34741         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34742         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34743         * m4/nls.m4 (AM_NLS): Likewise.
34744         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34745         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34746         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34747         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34748         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34749         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34750         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34751         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34752         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34753         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34754         * m4/xsize.m4 (gl_XSIZE): Likewise.
34755         Suggested by Jim Meyering.
34756
34757 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34758
34759         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34760         * lib/parse-duration.c: use a switch instead of cascading if's.
34761
34762 2008-12-29  Eric Blake  <ebb9@byu.net>
34763
34764         wchar.h: supply WEOF on Irix 5.3
34765         * lib/wchar.in.h (wint_t): Also supply WEOF.
34766         * lib/wctype.in.h (wint_t): Likewise.
34767         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34768         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34769         Reported by Tom G. Christensen.
34770
34771 2008-12-26  Bruno Haible  <bruno@clisp.org>
34772
34773         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34774         i486, i586, i686.
34775
34776 2008-12-26  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34779
34780 2008-12-26  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34783         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34784         not __STDC_CONSTANT_MACROS.
34785         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34786
34787 2008-12-25  Bruno Haible  <bruno@clisp.org>
34788
34789         Add support for universal builds to vasnprintf.
34790         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34791         universal builds, guess no.
34792         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34793         * modules/vasprintf-posix (Depends-on): Likewise.
34794         * modules/fprintf-posix (Depends-on): Likewise.
34795         * modules/vfprintf-posix (Depends-on): Likewise.
34796         * modules/snprintf-posix (Depends-on): Likewise.
34797         * modules/vsnprintf-posix (Depends-on): Likewise.
34798         * modules/sprintf-posix (Depends-on): Likewise.
34799         * modules/vsprintf-posix (Depends-on): Likewise.
34800         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34801         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34802         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34803         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34804         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34805         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34806         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34807
34808         Add support for universal builds to <inttypes.h>.
34809         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34810         _SCNu64_PREFIX): In Apple
34811         universal builds, define directly, using _LP64.
34812         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34813         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34814         * modules/inttypes (Depends-on): Add multiarch.
34815         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34816
34817         Add support for universal builds to <stdint.h>.
34818         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34819         universal builds, define directly, using _LP64.
34820         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34821         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34822         and size_t.
34823         * modules/stdint (Depends-on): Add multiarch.
34824         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34825
34826         New module 'multiarch'.
34827         * modules/multiarch: New file.
34828         * m4/multiarch.m4: New file.
34829
34830 2008-12-25  Bruno Haible  <bruno@clisp.org>
34831
34832         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34833
34834 2008-12-25  Bruno Haible  <bruno@clisp.org>
34835
34836         * modules/btowc (License): Relicense under LGPLv2+.
34837         * modules/mbsinit (License): Likewise.
34838         * modules/mbrtowc (License): Likewise.
34839         * modules/wcrtomb (License): Likewise.
34840         * modules/streq (License): Likewise.
34841         Reported by David Lutterkort <lutter@redhat.com>.
34842
34843 2008-12-23  Bruno Haible  <bruno@clisp.org>
34844
34845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34846
34847 2008-12-23  Bruno Haible  <bruno@clisp.org>
34848
34849         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34850         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34851         GETADDRINFO_LIB, not in LIBS.
34852         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34853         * modules/canon-host (Link): Likewise.
34854         * NEWS: Mention the change.
34855         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34856         GETADDRINFO_LIB.
34857
34858 2008-12-22  Bruno Haible  <bruno@clisp.org>
34859
34860         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34861         * doc/posix-functions/iswalpha_l.texi: Likewise.
34862         * doc/posix-functions/iswblank_l.texi: Likewise.
34863         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34864         * doc/posix-functions/iswctype_l.texi: Likewise.
34865         * doc/posix-functions/iswdigit_l.texi: Likewise.
34866         * doc/posix-functions/iswgraph_l.texi: Likewise.
34867         * doc/posix-functions/iswlower_l.texi: Likewise.
34868         * doc/posix-functions/iswprint_l.texi: Likewise.
34869         * doc/posix-functions/iswpunct_l.texi: Likewise.
34870         * doc/posix-functions/iswspace_l.texi: Likewise.
34871         * doc/posix-functions/iswupper_l.texi: Likewise.
34872         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34873         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34874         * doc/posix-functions/open_wmemstream.texi: Likewise.
34875         * doc/posix-functions/swscanf.texi: Likewise.
34876         * doc/posix-functions/towctrans_l.texi: Likewise.
34877         * doc/posix-functions/towlower.texi: Likewise.
34878         * doc/posix-functions/towlower_l.texi: Likewise.
34879         * doc/posix-functions/towupper.texi: Likewise.
34880         * doc/posix-functions/towupper_l.texi: Likewise.
34881         * doc/posix-functions/vfwprintf.texi: Likewise.
34882         * doc/posix-functions/vfwscanf.texi: Likewise.
34883         * doc/posix-functions/vswscanf.texi: Likewise.
34884         * doc/posix-functions/vwprintf.texi: Likewise.
34885         * doc/posix-functions/vwscanf.texi: Likewise.
34886         * doc/posix-functions/wcpcpy.texi: Likewise.
34887         * doc/posix-functions/wcpncpy.texi: Likewise.
34888         * doc/posix-functions/wcscasecmp.texi: Likewise.
34889         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34890         * doc/posix-functions/wcscoll_l.texi: Likewise.
34891         * doc/posix-functions/wcsdup.texi: Likewise.
34892         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34893         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34894         * doc/posix-functions/wcsnlen.texi: Likewise.
34895         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34896         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34897         * doc/posix-functions/wctrans_l.texi: Likewise.
34898         * doc/posix-functions/wctype_l.texi: Likewise.
34899         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34900         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34901         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34902         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34903         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34904         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34905         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34906         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34907         * doc/glibc-functions/wcschrnul.texi: Likewise.
34908         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34909         * doc/glibc-functions/wcstod_l.texi: Likewise.
34910         * doc/glibc-functions/wcstof_l.texi: Likewise.
34911         * doc/glibc-functions/wcstol_l.texi: Likewise.
34912         * doc/glibc-functions/wcstold_l.texi: Likewise.
34913         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34914         * doc/glibc-functions/wcstoq.texi: Likewise.
34915         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34916         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34917         * doc/glibc-functions/wcstouq.texi: Likewise.
34918         * doc/glibc-functions/wmempcpy.texi: Likewise.
34919
34920 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34921             Eric Blake  <ebb9@byu.net>
34922             Paolo Bonzini  <bonzini@gnu.org>
34923             Bruno Haible  <bruno@clisp.org>
34924
34925         Make c-stack work on Haiku.
34926         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34927         (c_stack_action): Use SA_ONSTACK flag.
34928
34929 2008-12-22  Bruno Haible  <bruno@clisp.org>
34930
34931         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34932
34933 2008-12-22  Bruno Haible  <bruno@clisp.org>
34934
34935         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34936         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34937         being overridden.
34938         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34939         New macros.
34940         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34942         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34943         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34944
34945 2008-12-22  Bruno Haible  <bruno@clisp.org>
34946
34947         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34948         from test code.
34949
34950 2008-12-22  Eric Blake  <ebb9@byu.net>
34951
34952         Avoid gcc warnings on cygwin.
34953         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34954         Avoid unused variable.
34955         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34956         Likewise.
34957
34958 2008-12-22  Bruno Haible  <bruno@clisp.org>
34959
34960         Remove HAVE_MBRTOWC conditionals.
34961         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34962         (mbscasecmp): Assume mbrtowc function.
34963         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34964         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34965         * lib/mbschr.c: Include mbuiter.h unconditionally.
34966         (mbschr): Assume mbrtowc function.
34967         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34968         (mbscspn): Assume mbrtowc function.
34969         * lib/mbslen.c: Include mbuiter.h unconditionally.
34970         (mbslen): Assume mbrtowc function.
34971         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34972         (mbsncasecmp): Assume mbrtowc function.
34973         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34974         (mbsnlen): Assume mbrtowc function.
34975         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34976         (mbspbrk): Assume mbrtowc function.
34977         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34978         (mbspcasecmp): Assume mbrtowc function.
34979         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34980         (mbsrchr): Assume mbrtowc function.
34981         * lib/mbssep.c: Include mbuiter.h unconditionally.
34982         (mbssep): Assume mbrtowc function.
34983         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34984         (mbsspn): Assume mbrtowc function.
34985         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34986         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34987         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34988         (mbstok_r): Assume mbrtowc function.
34989         * lib/propername.c: Include mbuiter.h unconditionally.
34990         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34991         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34992         (trim2): Assume mbrtowc function.
34993         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34994         (mbsnwidth): Assume mbrtowc function.
34995         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34996         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34997         fallback definitions.
34998         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34999
35000 2008-12-22  Bruno Haible  <bruno@clisp.org>
35001
35002         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35003
35004 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35005
35006         * modules/regex: Request emulations for the mb*/wc* functions we need.
35007         * m4/regex.m4: Don't look for those functions here.
35008         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35009
35010 2008-12-22  Bruno Haible  <bruno@clisp.org>
35011
35012         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35013
35014 2008-12-21  Bruno Haible  <bruno@clisp.org>
35015
35016         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35017         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35018         (Include): Remove conditionalization.
35019         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35020         (Include): Remove conditionalization.
35021         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35022         (Include): Remove conditionalization.
35023         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35024         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35025         * NEWS: Mention the change.
35026         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35027         via Sergey Poznyakoff <gray@gnu.org.ua>.
35028
35029 2008-12-21  Bruno Haible  <bruno@clisp.org>
35030
35031         * MODULES.html.sh (Extended multibyte and wide character utilities
35032         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35033         wcrtomb, wcsrtombs.
35034         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35035         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35036         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35037         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35038
35039 2008-12-21  Bruno Haible  <bruno@clisp.org>
35040
35041         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35042
35043 2008-12-21  Bruno Haible  <bruno@clisp.org>
35044
35045         * modules/wcsnrtombs-tests: New file.
35046         * tests/test-wcsnrtombs1.sh: New file.
35047         * tests/test-wcsnrtombs2.sh: New file.
35048         * tests/test-wcsnrtombs3.sh: New file.
35049         * tests/test-wcsnrtombs4.sh: New file.
35050         * tests/test-wcsnrtombs.c: New file.
35051
35052         New module 'wcsnrtombs'.
35053         * lib/wchar.in.h (wcsnrtombs): New declaration.
35054         * lib/wcsnrtombs.c: New file.
35055         * lib/wcsrtombs-state.c: New file.
35056         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35057         (internal_state): Remove variable.
35058         * m4/wcsnrtombs.m4: New file.
35059         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35060         compilation units.
35061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35062         HAVE_WCSNRTOMBS.
35063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35064         HAVE_WCSNRTOMBS.
35065         * modules/wcsnrtombs: New file.
35066         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35067         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35068
35069 2008-12-21  Bruno Haible  <bruno@clisp.org>
35070
35071         * modules/wcsrtombs-tests: New file.
35072         * tests/test-wcsrtombs1.sh: New file.
35073         * tests/test-wcsrtombs2.sh: New file.
35074         * tests/test-wcsrtombs3.sh: New file.
35075         * tests/test-wcsrtombs4.sh: New file.
35076         * tests/test-wcsrtombs.c: New file.
35077
35078         New module 'wcsrtombs'.
35079         * lib/wchar.in.h (wcsrtombs): New declaration.
35080         * lib/wcsrtombs.c: New file.
35081         * m4/wcsrtombs.m4: New file.
35082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35083         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35085         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35086         * modules/wcsrtombs: New file.
35087         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35088         bugs.
35089
35090 2008-12-21  Bruno Haible  <bruno@clisp.org>
35091
35092         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35093         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35095         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35096         if not correct.
35097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35098         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35099         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35100         m4/locale-zh.m4, m4/codeset.m4.
35101         * doc/posix-functions/wcrtomb.texi: Document the bug.
35102
35103 2008-12-21  Bruno Haible  <bruno@clisp.org>
35104
35105         Work around a btowc() bug on IRIX 6.5.
35106         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35107         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35108         REPLACE_WTOBC if not.
35109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35110         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35111         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35112
35113 2008-12-21  Bruno Haible  <bruno@clisp.org>
35114
35115         * modules/wcrtomb-tests: New file.
35116         * tests/test-wcrtomb.sh: New file.
35117         * tests/test-wcrtomb.c: New file.
35118
35119         New module 'wcrtomb'.
35120         * lib/wchar.in.h (wcrtomb): New declaration.
35121         * lib/wcrtomb.c: New file.
35122         * m4/wcrtomb.m4: New file.
35123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35124         HAVE_WCRTOMB.
35125         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35126         HAVE_WCRTOMB.
35127         * modules/wcrtomb: New file.
35128         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35129
35130 2008-12-21  Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35133         * modules/mbsrtowcs (Files): Likewise.
35134         * modules/wctob (Files): Likewise.
35135         * modules/c-strcase-tests (Files): Likewise.
35136         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35137         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35138         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35139         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35140         * modules/vasnprintf-posix-tests (Files): Likewise.
35141
35142 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35143
35144         gitlog-to-changelog: pass all command-line arguments to git-log
35145         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35146         it is sometimes convenient to filter the commits in various ways.
35147         gitlog-to-changelog only allows --since to specify a start date,
35148         but git-log itself supports many other filtering mechanisms.
35149         At the moment, I want to filter by branch name.  Rather than
35150         adding a --branch option to gitlog-to-changelog, it seems more
35151         flexible to simply pass all options directly to git-log and let
35152         git do the work.  Notice that this effectively makes --since a
35153         redundant option for gitlog-to-changelog, but removing it would
35154         require current usage to change since calls would then require
35155         an additional '--'.
35156
35157 2008-12-21  Bruno Haible  <bruno@clisp.org>
35158
35159         * modules/mbsnrtowcs-tests: New file.
35160         * tests/test-mbsnrtowcs1.sh: New file.
35161         * tests/test-mbsnrtowcs2.sh: New file.
35162         * tests/test-mbsnrtowcs3.sh: New file.
35163         * tests/test-mbsnrtowcs4.sh: New file.
35164         * tests/test-mbsnrtowcs.c: New file.
35165
35166         New module 'mbsnrtowcs'.
35167         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35168         * lib/mbsnrtowcs.c: New file.
35169         * lib/mbsrtowcs-state.c: New file.
35170         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35171         (internal_state): Remove variable.
35172         * m4/mbsnrtowcs.m4: New file.
35173         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35174         compilation units.
35175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35176         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35177         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35178         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35179         * modules/mbsnrtowcs: New file.
35180         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35181         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35182         portability problem.
35183
35184 2008-12-21  Bruno Haible  <bruno@clisp.org>
35185
35186         Work around mbsrtowcs bug.
35187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35188         (gl_FUNC_MBSRTOWCS): Invoke it.
35189         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35190         m4/locale-zh.m4.
35191         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35192
35193 2008-12-21  Bruno Haible  <bruno@clisp.org>
35194
35195         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35196
35197 2008-12-21  Bruno Haible  <bruno@clisp.org>
35198
35199         Update doc for AIX.
35200         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35201         16-bit wchar_t type.
35202         * doc/posix-functions/btowc.texi: Likewise.
35203         * doc/posix-functions/fgetwc.texi: Likewise.
35204         * doc/posix-functions/fgetws.texi: Likewise.
35205         * doc/posix-functions/fputwc.texi: Likewise.
35206         * doc/posix-functions/fputws.texi: Likewise.
35207         * doc/posix-functions/fwide.texi: Likewise.
35208         * doc/posix-functions/fwprintf.texi: Likewise.
35209         * doc/posix-functions/fwscanf.texi: Likewise.
35210         * doc/posix-functions/getwchar.texi: Likewise.
35211         * doc/posix-functions/getwc.texi: Likewise.
35212         * doc/posix-functions/iswalnum.texi: Likewise.
35213         * doc/posix-functions/iswalpha.texi: Likewise.
35214         * doc/posix-functions/iswblank.texi: Likewise.
35215         * doc/posix-functions/iswcntrl.texi: Likewise.
35216         * doc/posix-functions/iswctype.texi: Likewise.
35217         * doc/posix-functions/iswdigit.texi: Likewise.
35218         * doc/posix-functions/iswgraph.texi: Likewise.
35219         * doc/posix-functions/iswlower.texi: Likewise.
35220         * doc/posix-functions/iswprint.texi: Likewise.
35221         * doc/posix-functions/iswpunct.texi: Likewise.
35222         * doc/posix-functions/iswspace.texi: Likewise.
35223         * doc/posix-functions/iswupper.texi: Likewise.
35224         * doc/posix-functions/iswxdigit.texi: Likewise.
35225         * doc/posix-functions/mbrtowc.texi: Likewise.
35226         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35227         * doc/posix-functions/mbstowcs.texi: Likewise.
35228         * doc/posix-functions/mbtowc.texi: Likewise.
35229         * doc/posix-functions/putwchar.texi: Likewise.
35230         * doc/posix-functions/putwc.texi: Likewise.
35231         * doc/posix-functions/swprintf.texi: Likewise.
35232         * doc/posix-functions/tolower.texi: Likewise.
35233         * doc/posix-functions/toupper.texi: Likewise.
35234         * doc/posix-functions/towctrans.texi: Likewise.
35235         * doc/posix-functions/ungetwc.texi: Likewise.
35236         * doc/posix-functions/vswprintf.texi: Likewise.
35237         * doc/posix-functions/wcrtomb.texi: Likewise.
35238         * doc/posix-functions/wcscat.texi: Likewise.
35239         * doc/posix-functions/wcschr.texi: Likewise.
35240         * doc/posix-functions/wcscmp.texi: Likewise.
35241         * doc/posix-functions/wcscoll.texi: Likewise.
35242         * doc/posix-functions/wcscpy.texi: Likewise.
35243         * doc/posix-functions/wcscspn.texi: Likewise.
35244         * doc/posix-functions/wcsftime.texi: Likewise.
35245         * doc/posix-functions/wcslen.texi: Likewise.
35246         * doc/posix-functions/wcsncat.texi: Likewise.
35247         * doc/posix-functions/wcsncmp.texi: Likewise.
35248         * doc/posix-functions/wcsncpy.texi: Likewise.
35249         * doc/posix-functions/wcspbrk.texi: Likewise.
35250         * doc/posix-functions/wcsrchr.texi: Likewise.
35251         * doc/posix-functions/wcsrtombs.texi: Likewise.
35252         * doc/posix-functions/wcsspn.texi: Likewise.
35253         * doc/posix-functions/wcsstr.texi: Likewise.
35254         * doc/posix-functions/wcstod.texi: Likewise.
35255         * doc/posix-functions/wcstof.texi: Likewise.
35256         * doc/posix-functions/wcstoimax.texi: Likewise.
35257         * doc/posix-functions/wcstok.texi: Likewise.
35258         * doc/posix-functions/wcstold.texi: Likewise.
35259         * doc/posix-functions/wcstoll.texi: Likewise.
35260         * doc/posix-functions/wcstol.texi: Likewise.
35261         * doc/posix-functions/wcstombs.texi: Likewise.
35262         * doc/posix-functions/wcstoull.texi: Likewise.
35263         * doc/posix-functions/wcstoul.texi: Likewise.
35264         * doc/posix-functions/wcstoumax.texi: Likewise.
35265         * doc/posix-functions/wcswidth.texi: Likewise.
35266         * doc/posix-functions/wcsxfrm.texi: Likewise.
35267         * doc/posix-functions/wctob.texi: Likewise.
35268         * doc/posix-functions/wctomb.texi: Likewise.
35269         * doc/posix-functions/wctrans.texi: Likewise.
35270         * doc/posix-functions/wctype.texi: Likewise.
35271         * doc/posix-functions/wcwidth.texi: Likewise.
35272         * doc/posix-functions/wmemchr.texi: Likewise.
35273         * doc/posix-functions/wmemcmp.texi: Likewise.
35274         * doc/posix-functions/wmemcpy.texi: Likewise.
35275         * doc/posix-functions/wmemmove.texi: Likewise.
35276         * doc/posix-functions/wmemset.texi: Likewise.
35277         * doc/posix-functions/wprintf.texi: Likewise.
35278         * doc/posix-functions/wscanf.texi: Likewise.
35279
35280 2008-12-21  Bruno Haible  <bruno@clisp.org>
35281
35282         Update doc for HP-UX 11.11.
35283         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35284         in HP-UX version 11.00, not in all versions of HP-UX 11.
35285         * doc/posix-functions/fwide.texi: Likewise.
35286         * doc/posix-functions/fwprintf.texi: Likewise.
35287         * doc/posix-functions/fwscanf.texi: Likewise.
35288         * doc/posix-functions/inet_ntop.texi: Likewise.
35289         * doc/posix-functions/inet_pton.texi: Likewise.
35290         * doc/posix-functions/mbrlen.texi: Likewise.
35291         * doc/posix-functions/mbrtowc.texi: Likewise.
35292         * doc/posix-functions/mbsinit.texi: Likewise.
35293         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35294         * doc/posix-functions/swprintf.texi: Likewise.
35295         * doc/posix-functions/swscanf.texi: Likewise.
35296         * doc/posix-functions/towctrans.texi: Likewise.
35297         * doc/posix-functions/vfwprintf.texi: Likewise.
35298         * doc/posix-functions/vswprintf.texi: Likewise.
35299         * doc/posix-functions/vwprintf.texi: Likewise.
35300         * doc/posix-functions/wcrtomb.texi: Likewise.
35301         * doc/posix-functions/wcsrtombs.texi: Likewise.
35302         * doc/posix-functions/wcsstr.texi: Likewise.
35303         * doc/posix-functions/wctob.texi: Likewise.
35304         * doc/posix-functions/wctrans.texi: Likewise.
35305         * doc/posix-functions/wmemchr.texi: Likewise.
35306         * doc/posix-functions/wmemcmp.texi: Likewise.
35307         * doc/posix-functions/wmemcpy.texi: Likewise.
35308         * doc/posix-functions/wmemmove.texi: Likewise.
35309         * doc/posix-functions/wmemset.texi: Likewise.
35310         * doc/posix-functions/wprintf.texi: Likewise.
35311         * doc/posix-functions/wscanf.texi: Likewise.
35312
35313 2008-12-21  Bruno Haible  <bruno@clisp.org>
35314
35315         Work around a portability problem.
35316         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35317         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35318
35319 2008-12-20  Bruno Haible  <bruno@clisp.org>
35320
35321         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35322         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35323         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35325         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35326
35327         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35328         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35329         set.
35330         (GNULIB_defined_mbstate_t): New macro.
35331         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35332         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35333         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35334         reuses the system's mbrtowc function but works around the bugs.
35335         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35336         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35337         macros.
35338         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35339         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35340         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35341         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35342         REPLACE_MBSINIT if mbsinit needs to be overridden.
35343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35344         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35345         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35346         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35347         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35348         m4/locale-zh.m4.
35349         (Depends): Add mbsinit.
35350         * modules/mbsinit (Depends): Add mbrtowc.
35351         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35352
35353 2008-12-20  Bruno Haible  <bruno@clisp.org>
35354
35355         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35356         so that there are no conversion errors on AIX.
35357         * tests/test-mbsrtowcs.c (main): LIkewise.
35358
35359 2008-12-20  Bruno Haible  <bruno@clisp.org>
35360
35361         Work around wctob bug on Solaris <= 9.
35362         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35363         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35365         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35366         * modules/wctob (Files): Add m4/locale-fr.m4.
35367         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35368
35369 2008-12-20  Bruno Haible  <bruno@clisp.org>
35370
35371         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35372         /dev/null.
35373         * tests/test-select-in.sh: Likewise.
35374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35375
35376 2008-12-20  Bruno Haible  <bruno@clisp.org>
35377
35378         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35379         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35380         Cygwin 1.5.x.
35381
35382 2008-12-20  Bruno Haible  <bruno@clisp.org>
35383
35384         Ensure mbstate_t is defined on HP-UX 11.11.
35385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35386         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35387         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35388         AC_USE_SYSTEM_EXTENSIONS.
35389         * modules/fnmatch (Depends-on): Add extensions.
35390         * modules/mbrlen (Depends-on): Likewise.
35391         * modules/mbrtowc (Depends-on): Likewise.
35392         * modules/mbsinit (Depends-on): Likewise.
35393         * modules/mbsrtowcs (Depends-on): Likewise.
35394         * modules/mbswidth (Depends-on): Likewise.
35395         * modules/quotearg (Depends-on): Likewise.
35396         * modules/strftime (Depends-on): Likewise.
35397
35398 2008-12-20  Bruno Haible  <bruno@clisp.org>
35399
35400         Ensure wctob is declared on IRIX 6.5.
35401         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35402         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35403         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35405         of HAVE_WCTOB.
35406         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35407         HAVE_WCTOB.
35408         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35409
35410 2008-12-19  Bruno Haible  <bruno@clisp.org>
35411
35412         * modules/mbsrtowcs-tests: New file.
35413         * tests/test-mbsrtowcs1.sh: New file.
35414         * tests/test-mbsrtowcs2.sh: New file.
35415         * tests/test-mbsrtowcs3.sh: New file.
35416         * tests/test-mbsrtowcs4.sh: New file.
35417         * tests/test-mbsrtowcs.c: New file.
35418
35419         New module 'mbsrtowcs'.
35420         * lib/wchar.in.h (mbsrtowcs): New declaration.
35421         * lib/mbsrtowcs.c: New file.
35422         * m4/mbsrtowcs.m4: New file.
35423         * modules/mbsrtowcs: New file.
35424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35425         HAVE_MBSRTOWCS.
35426         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35427         HAVE_MBSRTOWCS.
35428         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35429
35430 2008-12-19  Bruno Haible  <bruno@clisp.org>
35431
35432         New module 'mbrlen'.
35433         * lib/wchar.in.h (mbrlen): New declaration.
35434         * lib/mbrlen.c: New file.
35435         * m4/mbrlen.m4: New file.
35436         * modules/mbrlen: New file.
35437         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35438         HAVE_MBRLEN.
35439         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35440         HAVE_MBRLEN.
35441         * doc/posix-functions/mbrlen.texi: Document the new module.
35442
35443 2008-12-19  Bruno Haible  <bruno@clisp.org>
35444
35445         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35446         * modules/mbrtowc (Depends-on): Add verify.
35447         Suggested by Paul Eggert.
35448
35449 2008-12-18  Bruno Haible  <bruno@clisp.org>
35450
35451         * modules/mbsinit-tests: New file.
35452         * tests/test-mbsinit.sh: New file.
35453         * tests/test-mbsinit.c: New file.
35454
35455 2008-12-18  Bruno Haible  <bruno@clisp.org>
35456
35457         * modules/mbrtowc-tests: New file.
35458         * tests/test-mbrtowc1.sh: New file.
35459         * tests/test-mbrtowc2.sh: New file.
35460         * tests/test-mbrtowc3.sh: New file.
35461         * tests/test-mbrtowc4.sh: New file.
35462         * tests/test-mbrtowc.c: New file.
35463
35464         New module 'mbrtowc'.
35465         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35466         mbsinit and mbrtowc.
35467         (mbrtowc): New declaration.
35468         * lib/mbrtowc.c: New file.
35469         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35470         * modules/mbrtowc: New file.
35471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35472         HAVE_MBRTOWC.
35473         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35474         HAVE_MBRTOWC.
35475         * doc/posix-functions/mbrtowc.texi: Document the new module.
35476
35477 2008-12-18  Bruno Haible  <bruno@clisp.org>
35478
35479         New module 'wctob'.
35480         * lib/wchar.in.h (wctob): New declaration.
35481         * lib/wctob.c: New file.
35482         * m4/wctob.m4: New file.
35483         * modules/wctob: New file.
35484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35485         HAVE_WCTOB.
35486         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35487         * doc/posix-functions/wctob.texi: Document the new module.
35488
35489 2008-12-18  Bruno Haible  <bruno@clisp.org>
35490
35491         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35492         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35493
35494 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35495
35496         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35497         G. Christensen" <tgc@jupiterrise.com>.
35498
35499         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35500         G. Christensen" <tgc@jupiterrise.com>.
35501
35502         * lib/flock.c: Need to include string.h.  Reported by "Tom
35503         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35504         <ebb9@byu.net>.
35505
35506 2008-12-18  Bruno Haible  <bruno@clisp.org>
35507
35508         * m4/locale-ja.m4: New file, from GNU gettext.
35509
35510 2008-12-17  Bruno Haible  <bruno@clisp.org>
35511
35512         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35513         Suggested by Eric Blake.
35514
35515 2008-12-17  Bruno Haible  <bruno@clisp.org>
35516
35517         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35518
35519 2008-12-17  Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35522         * modules/mbsinit (Depends-on): Add verify.
35523         Suggested by Paul Eggert.
35524
35525 2008-12-17  Bruno Haible  <bruno@clisp.org>
35526
35527         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35528         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35529         gl_FUNC_MBRTOWC.
35530         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35531         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35532         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35533         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35534         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35535         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35536         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35537         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35538         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35539         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35540         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35541         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35542         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35543         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35544         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35545         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35546         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35547         * modules/trim (configure.ac): Likewise.
35548
35549 2008-12-17  Bruno Haible  <bruno@clisp.org>
35550
35551         * modules/btowc-tests: New file.
35552         * tests/test-btowc1.sh: New file.
35553         * tests/test-btowc2.sh: New file.
35554         * tests/test-btowc.c: New file.
35555
35556         New module 'btowc'.
35557         * lib/wchar.in.h (btowc): New declaration.
35558         * lib/btowc.c: New file.
35559         * m4/btowc.m4: New file.
35560         * modules/btowc: New file.
35561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35562         HAVE_BTOWC.
35563         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35564         * doc/posix-functions/btowc.texi: Document the new module.
35565
35566 2008-12-17  Bruno Haible  <bruno@clisp.org>
35567
35568         New module 'mbsinit'.
35569         * lib/wchar.in.h (mbsinit): New declaration.
35570         * lib/mbsinit.c: New file.
35571         * m4/mbsinit.m4: New file.
35572         * modules/mbsinit: New file.
35573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35574         HAVE_MBSINIT.
35575         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35576         HAVE_MBSINIT.
35577         * doc/posix-functions/mbsinit.texi: Document the new module.
35578
35579 2008-12-16  Bruno Haible  <bruno@clisp.org>
35580
35581         * lib/unistd.in.h: Add comment.
35582         * tests/test-environ.c: Don't include <stdlib.h>.
35583
35584 2008-12-16  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/parse-duration.h (parse_duration): Document return value
35587         convention.
35588         * lib/parse-duration.c: Include specification header first. Add
35589         comments.
35590         (_): Remove macro.
35591         (parse_year_month_day, parse_hour_minute_second): Move side effects
35592         outside of strchr call.
35593         (parse_non_iso8601): Move side effects outside of isspace call.
35594         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35595         call.
35596
35597 2008-12-16  Bruno Haible  <bruno@clisp.org>
35598
35599         * tests/test-parse-duration.sh: Produce no output when the test
35600         succeeds.
35601
35602 2008-12-16  Bruno Haible  <bruno@clisp.org>
35603
35604         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35605         expressions.
35606
35607 2008-12-15  Bruno Haible  <bruno@clisp.org>
35608
35609         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35610         * doc/glibc-functions/flistxattr.texi: Likewise.
35611         * doc/glibc-functions/fopencookie.texi: Likewise.
35612         * doc/glibc-functions/fremovexattr.texi: Likewise.
35613         * doc/glibc-functions/fsetxattr.texi: Likewise.
35614         * doc/glibc-functions/getxattr.texi: Likewise.
35615         * doc/glibc-functions/lgetxattr.texi: Likewise.
35616         * doc/glibc-functions/listxattr.texi: Likewise.
35617         * doc/glibc-functions/llistxattr.texi: Likewise.
35618         * doc/glibc-functions/lremovexattr.texi: Likewise.
35619         * doc/glibc-functions/lsetxattr.texi: Likewise.
35620         * doc/glibc-functions/removexattr.texi: Likewise.
35621         * doc/glibc-functions/setxattr.texi: Likewise.
35622         * doc/posix-functions/open_memstream.texi: Likewise.
35623
35624 2008-12-15  Eric Blake  <ebb9@byu.net>
35625
35626         Update doc for cygwin 1.7.
35627         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35628         functions.
35629         * doc/posix-functions/fchmodat.texi: Likewise.
35630         * doc/posix-functions/fchownat.texi: Likewise.
35631         * doc/posix-functions/fdopendir.texi: Likewise.
35632         * doc/posix-functions/fmemopen.texi: Likewise.
35633         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35634         * doc/posix-functions/fstatat.texi: Likewise.
35635         * doc/posix-functions/futimens.texi: Likewise.
35636         * doc/posix-functions/gai_strerror.texi: Likewise.
35637         * doc/posix-functions/getaddrinfo.texi: Likewise.
35638         * doc/posix-functions/getnameinfo.texi: Likewise.
35639         * doc/posix-functions/if_freenameindex.texi: Likewise.
35640         * doc/posix-functions/if_indextoname.texi: Likewise.
35641         * doc/posix-functions/if_nameindex.texi: Likewise.
35642         * doc/posix-functions/if_nametoindex.texi: Likewise.
35643         * doc/posix-functions/insque.texi: Likewise.
35644         * doc/posix-functions/linkat.texi: Likewise.
35645         * doc/posix-functions/llrint.texi: Likewise.
35646         * doc/posix-functions/llrintf.texi: Likewise.
35647         * doc/posix-functions/llrintl.texi: Likewise.
35648         * doc/posix-functions/lockf.texi: Likewise.
35649         * doc/posix-functions/lrintl.texi: Likewise.
35650         * doc/posix-functions/mkdirat.texi: Likewise.
35651         * doc/posix-functions/mkfifoat.texi: Likewise.
35652         * doc/posix-functions/mknodat.texi: Likewise.
35653         * doc/posix-functions/mq_close.texi: Likewise.
35654         * doc/posix-functions/mq_getattr.texi: Likewise.
35655         * doc/posix-functions/mq_notify.texi: Likewise.
35656         * doc/posix-functions/mq_open.texi: Likewise.
35657         * doc/posix-functions/mq_receive.texi: Likewise.
35658         * doc/posix-functions/mq_send.texi: Likewise.
35659         * doc/posix-functions/mq_setattr.texi: Likewise.
35660         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35661         * doc/posix-functions/mq_timedsend.texi: Likewise.
35662         * doc/posix-functions/mq_unlink.texi: Likewise.
35663         * doc/posix-functions/open_memstream.texi: Likewise.
35664         * doc/posix-functions/openat.texi: Likewise.
35665         * doc/posix-functions/posix_fadvise.texi: Likewise.
35666         * doc/posix-functions/posix_fallocate.texi: Likewise.
35667         * doc/posix-functions/posix_madvise.texi: Likewise.
35668         * doc/posix-functions/posix_memalign.texi: Likewise.
35669         * doc/posix-functions/posix_openpt.texi: Likewise.
35670         * doc/posix-functions/readlinkat.texi: Likewise.
35671         * doc/posix-functions/remque.texi: Likewise.
35672         * doc/posix-functions/renameat.texi: Likewise.
35673         * doc/posix-functions/rintl.texi: Likewise.
35674         * doc/posix-functions/sem_unlink.texi: Likewise.
35675         * doc/posix-functions/shm_open.texi: Likewise.
35676         * doc/posix-functions/shm_unlink.texi: Likewise.
35677         * doc/posix-functions/signgam.texi: Likewise.
35678         * doc/posix-functions/sigset.texi: Likewise.
35679         * doc/posix-functions/stpcpy.texi: Likewise.
35680         * doc/posix-functions/stpncpy.texi: Likewise.
35681         * doc/posix-functions/strerror.texi: Likewise.
35682         * doc/posix-functions/strtod.texi: Likewise.
35683         * doc/posix-functions/symlinkat.texi: Likewise.
35684         * doc/posix-functions/unlinkat.texi: Likewise.
35685         * doc/posix-functions/utimensat.texi: Likewise.
35686         * doc/glibc-functions/bindresvport.texi: Likewise.
35687         * doc/glibc-functions/dn_expand.texi: Likewise.
35688         * doc/glibc-functions/exp10.texi: Likewise.
35689         * doc/glibc-functions/exp10f.texi: Likewise.
35690         * doc/glibc-functions/fgetxattr.texi: Likewise.
35691         * doc/glibc-functions/flistxattr.texi: Likewise.
35692         * doc/glibc-functions/fopencookie.texi: Likewise.
35693         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35694         * doc/glibc-functions/fremovexattr.texi: Likewise.
35695         * doc/glibc-functions/fsetxattr.texi: Likewise.
35696         * doc/glibc-functions/getifaddrs.texi: Likewise.
35697         * doc/glibc-functions/getxattr.texi: Likewise.
35698         * doc/glibc-functions/lgetxattr.texi: Likewise.
35699         * doc/glibc-functions/listxattr.texi: Likewise.
35700         * doc/glibc-functions/llistxattr.texi: Likewise.
35701         * doc/glibc-functions/lremovexattr.texi: Likewise.
35702         * doc/glibc-functions/lsetxattr.texi: Likewise.
35703         * doc/glibc-functions/pow10.texi: Likewise.
35704         * doc/glibc-functions/pow10f.texi: Likewise.
35705         * doc/glibc-functions/rcmd_af.texi: Likewise.
35706         * doc/glibc-functions/removexattr.texi: Likewise.
35707         * doc/glibc-functions/res_init.texi: Likewise.
35708         * doc/glibc-functions/res_mkquery.texi: Likewise.
35709         * doc/glibc-functions/res_query.texi: Likewise.
35710         * doc/glibc-functions/res_querydomain.texi: Likewise.
35711         * doc/glibc-functions/res_send.texi: Likewise.
35712         * doc/glibc-functions/rresvport_af.texi: Likewise.
35713         * doc/glibc-functions/setxattr.texi: Likewise.
35714         * doc/glibc-functions/strcasestr.texi: Likewise.
35715
35716 2008-12-15  Bruno Haible  <bruno@clisp.org>
35717
35718         Fix compilation error on OSF/1 4.0.
35719         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35720         <sys/time.h>, simply delegate to the system header.
35721         Reported by Daniel Richard G. <oss@teragram.com>.
35722
35723 2008-12-15  Bruno Haible  <bruno@clisp.org>
35724
35725         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35726         * doc/posix-functions/fchmodat.texi: Likewise.
35727         * doc/posix-functions/fchownat.texi: Likewise.
35728         * doc/posix-functions/fdopendir.texi: Likewise.
35729         * doc/posix-functions/fstatat.texi: Likewise.
35730         * doc/posix-functions/mkdirat.texi: Likewise.
35731         * doc/posix-functions/unlinkat.texi: Likewise.
35732
35733 2008-12-14  Bruno Haible  <bruno@clisp.org>
35734
35735         Update doc for POSIX:2008.
35736         * doc/posix-functions/faccessat.texi: New file.
35737         * doc/posix-functions/fchmodat.texi: New file.
35738         * doc/posix-functions/fchownat.texi: New file.
35739         * doc/posix-functions/fdopendir.texi: New file.
35740         * doc/posix-functions/fstatat.texi: New file.
35741         * doc/posix-functions/futimens.texi: New file.
35742         * doc/posix-functions/linkat.texi: New file.
35743         * doc/posix-functions/mkdirat.texi: New file.
35744         * doc/posix-functions/mkfifoat.texi: New file.
35745         * doc/posix-functions/mknodat.texi: New file.
35746         * doc/posix-functions/open_wmemstream.texi: New file.
35747         * doc/posix-functions/openat.texi: New file.
35748         * doc/posix-functions/psiginfo.texi: New file.
35749         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35750         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35751         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35752         * doc/posix-functions/readlinkat.texi: New file.
35753         * doc/posix-functions/renameat.texi: New file.
35754         * doc/posix-functions/strerror_l.texi: New file.
35755         * doc/posix-functions/symlinkat.texi: New file.
35756         * doc/posix-functions/unlinkat.texi: New file.
35757         * doc/posix-functions/utimensat.texi: New file.
35758         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35759
35760 2008-12-14  Bruno Haible  <bruno@clisp.org>
35761
35762         Update doc for POSIX:2008.
35763         * doc/posix-functions/alphasort.texi: Renamed from
35764         doc/glibc-functions/alphasort.texi.
35765         * doc/posix-functions/dirfd.texi: Renamed from
35766         doc/glibc-functions/dirfd.texi.
35767         * doc/posix-functions/dprintf.texi: Renamed from
35768         doc/glibc-functions/dprintf.texi.
35769         * doc/posix-functions/duplocale.texi: Renamed from
35770         doc/glibc-functions/duplocale.texi.
35771         * doc/posix-functions/fexecve.texi: Renamed from
35772         doc/glibc-functions/fexecve.texi.
35773         * doc/posix-functions/fmemopen.texi: Renamed from
35774         doc/glibc-functions/fmemopen.texi.
35775         * doc/posix-functions/freelocale.texi: Renamed from
35776         doc/glibc-functions/freelocale.texi.
35777         * doc/posix-functions/getdate_err.texi: Renamed from
35778         doc/glibc-functions/getdate_err.texi.
35779         * doc/posix-functions/isalnum_l.texi: Renamed from
35780         doc/glibc-functions/isalnum_l.texi.
35781         * doc/posix-functions/isalpha_l.texi: Renamed from
35782         doc/glibc-functions/isalpha_l.texi.
35783         * doc/posix-functions/isblank_l.texi: Renamed from
35784         doc/glibc-functions/isblank_l.texi.
35785         * doc/posix-functions/iscntrl_l.texi: Renamed from
35786         doc/glibc-functions/iscntrl_l.texi.
35787         * doc/posix-functions/isdigit_l.texi: Renamed from
35788         doc/glibc-functions/isdigit_l.texi.
35789         * doc/posix-functions/isgraph_l.texi: Renamed from
35790         doc/glibc-functions/isgraph_l.texi.
35791         * doc/posix-functions/islower_l.texi: Renamed from
35792         doc/glibc-functions/islower_l.texi.
35793         * doc/posix-functions/isprint_l.texi: Renamed from
35794         doc/glibc-functions/isprint_l.texi.
35795         * doc/posix-functions/ispunct_l.texi: Renamed from
35796         doc/glibc-functions/ispunct_l.texi.
35797         * doc/posix-functions/isspace_l.texi: Renamed from
35798         doc/glibc-functions/isspace_l.texi.
35799         * doc/posix-functions/isupper_l.texi: Renamed from
35800         doc/glibc-functions/isupper_l.texi.
35801         * doc/posix-functions/iswalnum_l.texi: Renamed from
35802         doc/glibc-functions/iswalnum_l.texi.
35803         * doc/posix-functions/iswalpha_l.texi: Renamed from
35804         doc/glibc-functions/iswalpha_l.texi.
35805         * doc/posix-functions/iswblank_l.texi: Renamed from
35806         doc/glibc-functions/iswblank_l.texi.
35807         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35808         doc/glibc-functions/iswcntrl_l.texi.
35809         * doc/posix-functions/iswctype_l.texi: Renamed from
35810         doc/glibc-functions/iswctype_l.texi.
35811         * doc/posix-functions/iswdigit_l.texi: Renamed from
35812         doc/glibc-functions/iswdigit_l.texi.
35813         * doc/posix-functions/iswgraph_l.texi: Renamed from
35814         doc/glibc-functions/iswgraph_l.texi.
35815         * doc/posix-functions/iswlower_l.texi: Renamed from
35816         doc/glibc-functions/iswlower_l.texi.
35817         * doc/posix-functions/iswprint_l.texi: Renamed from
35818         doc/glibc-functions/iswprint_l.texi.
35819         * doc/posix-functions/iswpunct_l.texi: Renamed from
35820         doc/glibc-functions/iswpunct_l.texi.
35821         * doc/posix-functions/iswspace_l.texi: Renamed from
35822         doc/glibc-functions/iswspace_l.texi.
35823         * doc/posix-functions/iswupper_l.texi: Renamed from
35824         doc/glibc-functions/iswupper_l.texi.
35825         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35826         doc/glibc-functions/iswxdigit_l.texi.
35827         * doc/posix-functions/isxdigit_l.texi: Renamed from
35828         doc/glibc-functions/isxdigit_l.texi.
35829         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35830         doc/glibc-functions/mbsnrtowcs.texi.
35831         * doc/posix-functions/mkdtemp.texi: Renamed from
35832         doc/glibc-functions/mkdtemp.texi.
35833         * doc/posix-functions/newlocale.texi: Renamed from
35834         doc/glibc-functions/newlocale.texi.
35835         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35836         doc/glibc-functions/nl_langinfo_l.texi.
35837         * doc/posix-functions/open_memstream.texi: Renamed from
35838         doc/glibc-functions/open_memstream.texi.
35839         * doc/posix-functions/opterr.texi: Renamed from
35840         doc/glibc-functions/opterr.texi.
35841         * doc/posix-functions/optind.texi: Renamed from
35842         doc/glibc-functions/optind.texi.
35843         * doc/posix-functions/optopt.texi: Renamed from
35844         doc/glibc-functions/optopt.texi.
35845         * doc/posix-functions/psignal.texi: Renamed from
35846         doc/glibc-functions/psignal.texi.
35847         * doc/posix-functions/scandir.texi: Renamed from
35848         doc/glibc-functions/scandir.texi.
35849         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35850         doc/glibc-functions/sched_get_priority_min.texi.
35851         * doc/posix-functions/signgam.texi: Renamed from
35852         doc/glibc-functions/signgam.texi.
35853         * doc/posix-functions/stpcpy.texi: Renamed from
35854         doc/glibc-functions/stpcpy.texi.
35855         * doc/posix-functions/stpncpy.texi: Renamed from
35856         doc/glibc-functions/stpncpy.texi.
35857         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35858         doc/glibc-functions/strcasecmp_l.texi.
35859         * doc/posix-functions/strcoll_l.texi: Renamed from
35860         doc/glibc-functions/strcoll_l.texi.
35861         * doc/posix-functions/strfmon_l.texi: Renamed from
35862         doc/glibc-functions/strfmon_l.texi.
35863         * doc/posix-functions/strftime_l.texi: Renamed from
35864         doc/glibc-functions/strftime_l.texi.
35865         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35866         doc/glibc-functions/strncasecmp_l.texi.
35867         * doc/posix-functions/strndup.texi: Renamed from
35868         doc/glibc-functions/strndup.texi.
35869         * doc/posix-functions/strnlen.texi: Renamed from
35870         doc/glibc-functions/strnlen.texi.
35871         * doc/posix-functions/strsignal.texi: Renamed from
35872         doc/glibc-functions/strsignal.texi.
35873         * doc/posix-functions/strxfrm_l.texi: Renamed from
35874         doc/glibc-functions/strxfrm_l.texi.
35875         * doc/posix-functions/timer_gettime.texi: Renamed from
35876         doc/glibc-functions/timer_gettime.texi.
35877         * doc/posix-functions/tolower_l.texi: Renamed from
35878         doc/glibc-functions/tolower_l.texi.
35879         * doc/posix-functions/toupper_l.texi: Renamed from
35880         doc/glibc-functions/toupper_l.texi.
35881         * doc/posix-functions/towctrans_l.texi: Renamed from
35882         doc/glibc-functions/towctrans_l.texi.
35883         * doc/posix-functions/towlower_l.texi: Renamed from
35884         doc/glibc-functions/towlower_l.texi.
35885         * doc/posix-functions/towupper_l.texi: Renamed from
35886         doc/glibc-functions/towupper_l.texi.
35887         * doc/posix-functions/uselocale.texi: Renamed from
35888         doc/glibc-functions/uselocale.texi.
35889         * doc/posix-functions/vdprintf.texi: Renamed from
35890         doc/glibc-functions/vdprintf.texi.
35891         * doc/posix-functions/wcpcpy.texi:
35892         Renamed from doc/glibc-functions/wcpcpy.texi.
35893         * doc/posix-functions/wcpncpy.texi: Renamed from
35894         doc/glibc-functions/wcpncpy.texi.
35895         * doc/posix-functions/wcscasecmp.texi: Renamed from
35896         doc/glibc-functions/wcscasecmp.texi.
35897         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35898         doc/glibc-functions/wcscasecmp_l.texi.
35899         * doc/posix-functions/wcscoll_l.texi: Renamed from
35900         doc/glibc-functions/wcscoll_l.texi.
35901         * doc/posix-functions/wcsdup.texi: Renamed from
35902         doc/glibc-functions/wcsdup.texi.
35903         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35904         doc/glibc-functions/wcsncasecmp.texi.
35905         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35906         doc/glibc-functions/wcsncasecmp_l.texi.
35907         * doc/posix-functions/wcsnlen.texi: Renamed from
35908         doc/glibc-functions/wcsnlen.texi.
35909         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35910         doc/glibc-functions/wcsnrtombs.texi.
35911         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35912         doc/glibc-functions/wcsxfrm_l.texi.
35913         * doc/posix-functions/wctrans_l.texi: Renamed from
35914         doc/glibc-functions/wctrans_l.texi.
35915         * doc/posix-functions/wctype_l.texi: Renamed from
35916         doc/glibc-functions/wctype_l.texi.
35917         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35918         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35919         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35920         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35921         these subsections.
35922         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35923         Remove sections.
35924
35925 2008-12-14  Bruno Haible  <bruno@clisp.org>
35926
35927         Update doc for POSIX:2008.
35928         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35929
35930 2008-12-14  Bruno Haible  <bruno@clisp.org>
35931
35932         Update doc for POSIX:2008.
35933         * doc/pastposix-functions/bcmp.texi: Renamed from
35934         doc/posix-functions/bcmp.texi.
35935         * doc/pastposix-functions/bcopy.texi: Renamed from
35936         doc/posix-functions/bcopy.texi.
35937         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35938         doc/posix-functions/bsd_signal.texi.
35939         * doc/pastposix-functions/bzero.texi: Renamed from
35940         doc/posix-functions/bzero.texi.
35941         * doc/pastposix-functions/ecvt.texi: Renamed from
35942         doc/posix-functions/ecvt.texi.
35943         * doc/pastposix-functions/fcvt.texi: Renamed from
35944         doc/posix-functions/fcvt.texi.
35945         * doc/pastposix-functions/ftime.texi: Renamed from
35946         doc/posix-functions/ftime.texi.
35947         * doc/pastposix-functions/gcvt.texi: Renamed from
35948         doc/posix-functions/gcvt.texi.
35949         * doc/pastposix-functions/getcontext.texi: Renamed from
35950         doc/posix-functions/getcontext.texi.
35951         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35952         doc/posix-functions/gethostbyaddr.texi.
35953         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35954         doc/posix-functions/gethostbyname.texi.
35955         * doc/pastposix-functions/getwd.texi: Renamed from
35956         doc/posix-functions/getwd.texi.
35957         * doc/pastposix-functions/h_errno.texi: Renamed from
35958         doc/posix-functions/h_errno.texi.
35959         * doc/pastposix-functions/index.texi: Renamed from
35960         doc/posix-functions/index.texi.
35961         * doc/pastposix-functions/makecontext.texi: Renamed from
35962         doc/posix-functions/makecontext.texi.
35963         * doc/pastposix-functions/mktemp.texi: Renamed from
35964         doc/posix-functions/mktemp.texi.
35965         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35966         doc/posix-functions/pthread_attr_getstackaddr.texi.
35967         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35968         doc/posix-functions/pthread_attr_setstackaddr.texi.
35969         * doc/pastposix-functions/rindex.texi: Renamed from
35970         doc/posix-functions/rindex.texi.
35971         * doc/pastposix-functions/scalb.texi: Renamed from
35972         doc/posix-functions/scalb.texi.
35973         * doc/pastposix-functions/setcontext.texi: Renamed from
35974         doc/posix-functions/setcontext.texi.
35975         * doc/pastposix-functions/swapcontext.texi: Renamed from
35976         doc/posix-functions/swapcontext.texi.
35977         * doc/pastposix-functions/ualarm.texi: Renamed from
35978         doc/posix-functions/ualarm.texi.
35979         * doc/pastposix-functions/usleep.texi: Renamed from
35980         doc/posix-functions/usleep.texi.
35981         * doc/pastposix-functions/vfork.texi: Renamed from
35982         doc/posix-functions/vfork.texi.
35983         * doc/pastposix-functions/wcswcs.texi: Renamed from
35984         doc/posix-functions/wcswcs.texi.
35985         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35986         (Function Substitutes): Update.
35987
35988 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35989
35990         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35991         m4/strerror.m4.
35992
35993 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35994             Bruno Haible  <bruno@clisp.org>
35995
35996         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35997
35998 2008-12-13  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/strtoull (Depends-on): Remove unistd.
36001
36002 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36003
36004         * modules/strtoull (Depends-on): Add stdlib.
36005
36006 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36007
36008         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36009
36010 2008-12-10  Jim Meyering  <meyering@redhat.com>
36011
36012         gl_ASSERT: don't say assertions are disabled when they're not
36013         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36014         "checking whether to enable assertions... no", when they are in
36015         fact enabled.  This is solely a bug in the output of configure.
36016         In spite of saying "no", NDEBUG was not defined in that case.
36017         Also, as noted by Eric Blake, leave assertions enabled upon
36018         --enable-assert=INVALID.
36019
36020 2008-12-10  Bruno Haible  <bruno@clisp.org>
36021
36022         Change MODULES.html to refer to POSIX:2008 where possible.
36023         * MODULES.html.sh (POSIX2008_URL): New variable.
36024         (posix_headers): Remove sys/timeb, ucontext.
36025         (posix2001_headers): New variable.
36026         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36027         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36028         index, makecontext, mktemp, pthread_attr_getstackaddr,
36029         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36030         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36031         (posix2001_functions): New variable.
36032         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36033         otherwise.
36034
36035 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36036
36037         add missing include to parse-duration.c
36038         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36039         * modules/parse-duration (Depends-on): Add xalloc.
36040
36041         fix sed script reading maint.mk
36042         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36043         (syntax-check-rules): Use it.
36044
36045 2008-12-09  Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36048         MacOS X 10.4/PowerPC.
36049         Reported by Simon Josefsson.
36050
36051 2008-12-08  Jim Meyering  <meyering@redhat.com>
36052
36053         work around mingw's lack of some S_IF definitions
36054         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36055         Reported by Simon Josefsson.
36056
36057 2008-12-08  Bruno Haible  <bruno@clisp.org>
36058
36059         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36060         applied to variables. Needed on MacOS X 10.4/PowerPC.
36061         Reported by Simon Josefsson.
36062
36063 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36064         and Eric Blake  <ebb9@byu.net>
36065
36066         assert: honor --enable-assert
36067         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36068         order to honor --enable-assert, rather than treating it as a
36069         synonym for --disable-assert.
36070
36071 2008-12-08  Jim Meyering  <meyering@redhat.com>
36072
36073         * lib/posixtm.c: Remove now-useless declaration of mktime.
36074
36075         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36076
36077 2008-12-07  Bruno Haible  <bruno@clisp.org>
36078
36079         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36080         test_once): Mark functions as static.
36081         * tests/test-tls.c (test_tls): Likewise.
36082
36083 2008-12-07  Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36086         iconv_register_autodetect.
36087
36088 2008-12-07  Jim Meyering  <meyering@redhat.com>
36089
36090         posixtm.c: avoid a warning
36091         * lib/posixtm.c (posixtime): Don't initialize tm0.
36092         It's no longer needed to placate gcc4's -Wuninitialized,
36093         and the attempt to placate would elicit a new warning.
36094
36095         unicodeio.c: mark unused parameters
36096         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36097         (fallback_failure_callback): Likewise.
36098
36099 2008-12-07  Bruno Haible  <bruno@clisp.org>
36100
36101         * gnulib-tool (func_create_testdir): When building the tests
36102         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36103         Reported by Simon Josefsson.
36104
36105 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36106
36107         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36108
36109 2008-12-06  Bruno Haible  <bruno@clisp.org>
36110
36111         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36112         Suggested by Eric Blake.
36113
36114 2008-12-06  Bruno Haible  <bruno@clisp.org>
36115
36116         Fix a c-stack test failure on MacOS X.
36117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36118         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36119         handler for SIGBUS as well.
36120         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36121         install a signal handler for SIGBUS as well.
36122         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36123
36124 2008-12-06  Bruno Haible  <bruno@clisp.org>
36125
36126         Advocacy documentation.
36127         * doc/gnulib-intro.texi (Benefits): New section.
36128         * doc/gnulib.texi: Update.
36129
36130 2008-12-06  Bruno Haible  <bruno@clisp.org>
36131
36132         Document the 'manywarnings' module.
36133         * doc/manywarnings.texi: New file.
36134         * doc/gnulib.texi: Include it.
36135
36136 2008-12-05  Eric Blake  <ebb9@byu.net>
36137
36138         tests: silence some gcc warnings
36139         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36140         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36141         type mismatches.
36142
36143 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36144             Bruno Haible  <bruno@clisp.org>
36145
36146         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36147
36148 2008-11-29  Jim Meyering  <meyering@redhat.com>
36149
36150         unicodeio.c: mark unused parameters
36151         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36152         (fallback_failure_callback): Likewise.
36153
36154         fts: fix a thinko
36155         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36156         (set_stat_type): Return S_IF*-valued "type" directly.
36157         Prompted by James Youngman's spotting a related bug.
36158         Confirmed by further testing through find.
36159
36160         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36161         * lib/fts.c (D_TYPE): Define.
36162         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36163         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36164         (s_ifmt_shift_bits): New function.
36165         (set_stat_type): New function.
36166         (fts_build): When not calling fts_stat, call set_stat_type
36167         to propagate dirent.d_type info to fts_read caller.
36168         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36169         fts_statp->st_mode type information may be valid.
36170
36171 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36172
36173         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36174         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36175         <sds@gnu.org>.
36176
36177 2008-11-20  Bruno Haible  <bruno@clisp.org>
36178
36179         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36180         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36181         INCLUDE_NEXT.
36182         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36183         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36184         * modules/math (Makefile.am): Substitute
36185         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36186         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36187
36188 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36189             Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/stdint.in.h: Define all type macros so that their expansion is
36192         a single typedef'ed token. Fixes a compilation failure in Boost which
36193         does "using ::int8_t;".
36194
36195 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36196
36197         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36198         gl_MANYWARN_ALL_GCC.
36199         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36200         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36201         * modules/manywarnings: New file.
36202         * MODULES.html.sh: Mention manywarnings module.
36203
36204 2008-11-18  Bruno Haible  <bruno@clisp.org>
36205
36206         * doc/gnulib-tool.texi (Unit tests): New section.
36207
36208 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36209
36210         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36211         paths like 'lib/po/foo.po'.
36212
36213 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36214
36215         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36216         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36217
36218 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36219
36220         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36221         parameter works.
36222
36223 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36224
36225         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36226
36227 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36228
36229         * modules/parse-duration-tests: New file.
36230         * tests/test-parse-duration.sh: New file.
36231         * tests/test-parse-duration.c: New file.
36232
36233         New module 'parse-duration'.
36234         * lib/parse-duration.h: New file.
36235         * lib/parse-duration.c: New file.
36236         * modules/parse-duration: New file.
36237
36238 2008-11-17  Bruno Haible  <bruno@clisp.org>
36239
36240         * tests/test-select-out.sh: Comment out the first pipe test.
36241         Reported by Simon Josefsson.
36242
36243 2008-11-17  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36247         gl_HOSTENT.
36248
36249 2008-11-17  Bruno Haible  <bruno@clisp.org>
36250
36251         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36252         -lnetwork and -lnet. Needed for Haiku and BeOS.
36253
36254 2008-11-16  Bruno Haible  <bruno@clisp.org>
36255
36256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36257
36258 2008-11-16  Bruno Haible  <bruno@clisp.org>
36259
36260         Avoid test failure on Haiku.
36261         * tests/test-fsync.c: Include <errno.h>.
36262         (main): Don't require that fsync (0) fails.
36263
36264 2008-11-15  Bruno Haible  <bruno@clisp.org>
36265
36266         New module 'hostent'.
36267         * modules/hostent: New file.
36268         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36269
36270 2008-11-15  Bruno Haible  <bruno@clisp.org>
36271
36272         New module 'servent'.
36273         * modules/servent: New file.
36274         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36275
36276 2008-11-15  Bruno Haible  <bruno@clisp.org>
36277
36278         Avoid generating same test program with two different rules.
36279         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36280         test-frexp to test-frexp-nolibm.
36281         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36282         test-frexpl to test-frexpl-nolibm.
36283
36284 2008-11-15  Bruno Haible  <bruno@clisp.org>
36285
36286         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36287         $(FREXPL_LIBM).
36288
36289 2008-11-15  Bruno Haible  <bruno@clisp.org>
36290
36291         * lib/netdb.in.h: Activate the definitions also when the system's
36292         <netdb.h> has 'struct addrinfo'.
36293         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36294         EAI_OVERFLOW or AI_NUMERICSERV.
36295         * doc/posix-headers/netdb.texi: Document the problem.
36296
36297 2008-11-15  Bruno Haible  <bruno@clisp.org>
36298
36299         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36300
36301         Make the 'sched' module work on platforms where <sched.h> exists but
36302         is incomplete (such as Haiku).
36303         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36304         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36305         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36306         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36307         HAVE_STRUCT_SCHED_PARAM.
36308         * modules/sched (Depends-on): Add include_next.
36309         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36310         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36311         * doc/posix-headers/sched.texi: Document the issue.
36312
36313 2008-11-13  Jim Meyering  <meyering@redhat.com>
36314
36315         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36316         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36317         test would fail due to the difference in the Report bugs to ...
36318         line.  The expected address is empty, "<>", while the actual
36319         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36320
36321 2008-11-12  Bruno Haible  <bruno@clisp.org>
36322
36323         lstat: don't compile lstat.c on systems lacking lstat
36324         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36325         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36326         Reported by Daniel P. Berrange via Jim Meyering.
36327
36328 2008-11-12  Jim Meyering  <meyering@redhat.com>
36329
36330         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36331
36332 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36333
36334         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36335         instead.
36336
36337 2008-11-12  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/unicodeio.c: Include unistr.h.
36340         (utf8_wctomb): Remove function.
36341         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36342
36343 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36344
36345         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36346         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36347         <bruno@clisp.org>.
36348         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36349
36350 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36351
36352         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36353         * doc/gnulib.texi: Add section for warnings.
36354
36355 2008-11-11  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/sockets.h: Add a comment.
36358
36359 2008-11-11  Karl Berry  <karl@gnu.org>
36360
36361         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36362
36363 2008-11-11  Eric Blake  <ebb9@byu.net>
36364
36365         fdl.texi: avoid git symlinks
36366         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36367
36368 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36369
36370         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36371
36372 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36373
36374         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36375         (gl_WARN_ADD): Substitute $2 if literal.
36376
36377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36378
36379         * m4/warning.m4: Remove.
36380
36381 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36382
36383         * m4/warnings.m4: Almost complete rewrite. :-)
36384
36385 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36386
36387         * modules/warnings: New module.
36388         * m4/warnings.m4: New file.
36389         * MODULES.html.sh: Mention warnings module.
36390         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36391         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36392
36393 2008-11-10  Eric Blake  <ebb9@byu.net>
36394
36395         fdl.texi: make a symlink to the latest version
36396         * doc/standards.texi: Revert today's earlier change.
36397         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36398         * doc/fdl.texi: ...and replace this with a symlink to the newer
36399         fdl-1.3.texi.
36400
36401 2008-11-10  Bruno Haible  <bruno@clisp.org>
36402
36403         * tests/test-select-fd.c (main): Accept the result file name as fourth
36404         argument.
36405         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36406         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36407
36408 2008-11-10  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36411         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36412         as autoconf-substituted macros.
36413         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36415         gl_NETDB_H_DEFAULTS. Set these variables.
36416         * modules/netdb (Makefile.am): Substitute these variables.
36417
36418 2008-11-10  Eric Blake  <ebb9@byu.net>
36419
36420         standards.texi: include correct file for FDL 1.3
36421         * doc/standards.texi (GNU Free Documentation License): Change
36422         include file to pull in FDL 1.3, not 1.2.
36423
36424         fdl.texi: revert accidental change to license
36425         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36426
36427 2008-11-10  Bruno Haible  <bruno@clisp.org>
36428
36429         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36430         cross-compiling guesses also when the native compile gives no result.
36431
36432 2008-11-10  Bruno Haible  <bruno@clisp.org>
36433
36434         * lib/spawni.c (__spawni): Force variable into the stack.
36435
36436 2008-11-10  Bruno Haible  <bruno@clisp.org>
36437
36438         Add support for Haiku.
36439         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36440         glibc and BeOS, but also on Haiku.
36441         * lib/fpurge.c (fpurge): Likewise.
36442         * lib/freadable.c (freadable): Likewise.
36443         * lib/freadahead.c (freadahead): Likewise.
36444         * lib/freading.c (freading): Likewise.
36445         * lib/freadptr.c (freadptr): Likewise.
36446         * lib/freadseek.c (freadptrinc): Likewise.
36447         * lib/fseeko.c (rpl_fseeko): Likewise.
36448         * lib/fseterr.c (fseterr): Likewise.
36449         * lib/fwritable.c (fwritable): Likewise.
36450         * lib/fwriting.c (fwriting): Likewise.
36451         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36452
36453 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36454
36455         * lib/config.charset: Treat Haiku like BeOS.
36456
36457 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36458
36459         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36460         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36461
36462 2008-11-08  Bruno Haible  <bruno@clisp.org>
36463
36464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36465         AC_CACHE_CHECK.
36466
36467 2008-11-08  Bruno Haible  <bruno@clisp.org>
36468
36469         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36470
36471 2008-11-08  Bruno Haible  <bruno@clisp.org>
36472
36473         * tests/test-select-fd.c: New file.
36474         * tests/test-select-in.sh: New file.
36475         * tests/test-select-out.sh: New file.
36476         * tests/test-select-stdin.c: New file.
36477         * modules/select-tests (Files): Add the new files.
36478         (Depends-on): Add gettimeofday.
36479         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36480         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36481         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36482
36483 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36484             Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36487
36488 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36489
36490         * build-aux/pmccabe2html: Added support for C++ source files.
36491
36492 2008-11-05  Ben Pfaff  <blp@gnu.org>
36493
36494         Fix lib/close.c build on Windows.
36495         * modules/close (Files): Add lib/w32sock.h.
36496
36497 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36498
36499         Accept Bison's NEWS format.
36500         * build-aux/announce-gen (print_news_deltas): Tweak
36501         $re_prefix.
36502
36503 2008-11-04  Bruno Haible  <bruno@clisp.org>
36504
36505         * modules/random_r (Maintainer): Add glibc.
36506
36507 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36508
36509         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36510         by karl@freefriends.org (Karl Berry).
36511         * doc/alloca.texi: Likewise.
36512         * doc/c-ctype.texi: Likewise.
36513         * doc/c-strcase.texi: Likewise.
36514         * doc/c-strcaseeq.texi: Likewise.
36515         * doc/c-strcasestr.texi: Likewise.
36516         * doc/c-strstr.texi: Likewise.
36517         * doc/c-strtod.texi: Likewise.
36518         * doc/c-strtold.texi: Likewise.
36519         * doc/ctime.texi: Likewise.
36520         * doc/error.texi: Likewise.
36521         * doc/fdl.texi: Likewise.
36522         * doc/gcd.texi: Likewise.
36523         * doc/getdate.texi: Likewise.
36524         * doc/gnulib-intro.texi: Likewise.
36525         * doc/gnulib-tool.texi: Likewise.
36526         * doc/gnulib.texi: Likewise.
36527         * doc/inet_ntoa.texi: Likewise.
36528         * doc/maintain.texi: Likewise.
36529         * doc/make-stds.texi: Likewise.
36530         * doc/quote.texi: Likewise.
36531         * doc/regexprops-generic.texi: Likewise.
36532         * doc/standards.texi: Likewise.
36533         * doc/verify.texi: Likewise.
36534         * doc/visibility.texi: Likewise.
36535         * doc/gnulib.texi (GNU Free Documentation License): Include
36536         fdl-1.3.texi instead of fdl.texi.
36537
36538 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36539
36540         * doc/fdl-1.3.texi: New file, from
36541         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36542         * modules/fdl-1.3: Add.
36543         * MODULES.html.sh: Add fdl-1.3.
36544
36545 2008-11-03  Bruno Haible  <bruno@clisp.org>
36546
36547         Make determination of absolute name of header file work with AIX xlc.
36548         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36549         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36550         preprocessing.
36551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36552         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36553
36554 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36555
36556         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36557         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36558         <ludo@gnu.org>.
36559
36560 2008-11-02  Bruno Haible  <bruno@clisp.org>
36561
36562         Mark 'strpbrk' obsolete.
36563         * modules/strpbrk (Status, Notice): New sections.
36564         * modules/strtok_r (Depends-on): Add strpbrk.
36565
36566 2008-11-02  Bruno Haible  <bruno@clisp.org>
36567
36568         Mark 'strdup' obsolete.
36569         * modules/strdup (Status, Notice): New sections.
36570         * modules/findprog (Depends-on): Add strdup.
36571         * modules/getaddrinfo (Depends-on): Likewise.
36572         * modules/localename (Depends-on): Likewise.
36573         * modules/relocatable-lib (Depends-on): Likewise.
36574         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36575         * modules/relocatable-prog (Depends-on): Likewise.
36576         * modules/trim (Depends-on): Likewise.
36577         * modules/unictype/gen-ctype (Depends-on): Likewise.
36578         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36579
36580 2008-11-02  Bruno Haible  <bruno@clisp.org>
36581
36582         Mark 'strcspn' obsolete.
36583         * modules/strcspn (Status, Notice): New sections.
36584
36585 2008-11-02  Bruno Haible  <bruno@clisp.org>
36586
36587         Mark 'rmdir' obsolete.
36588         * modules/rmdir (Status, Notice): New sections.
36589         * modules/clean-temp (Depends-on): Add rmdir.
36590         * modules/openat (Depends-on): Likewise.
36591
36592 2008-11-02  Bruno Haible  <bruno@clisp.org>
36593
36594         Mark 'raise' obsolete.
36595         * modules/raise (Status, Notice): New sections.
36596         (Include): Specify <signal.h>.
36597         * modules/stdio (Depends-on): Add raise.
36598         * modules/write (Depends-on): Likewise.
36599
36600 2008-11-02  Bruno Haible  <bruno@clisp.org>
36601
36602         Mark 'memset' obsolete.
36603         * modules/memset (Status, Notice): New sections.
36604
36605 2008-11-02  Bruno Haible  <bruno@clisp.org>
36606
36607         Mark 'memmove' obsolete.
36608         * modules/memmove (Status, Notice): New sections.
36609         * modules/argp (Depends-on): Add memmove.
36610         * modules/argz (Depends-on): Likewise.
36611         * modules/canonicalize (Depends-on): Likewise.
36612         * modules/canonicalize-lgpl (Depends-on): Likewise.
36613         * modules/fts (Depends-on): Likewise.
36614         * modules/getcwd (Depends-on): Likewise.
36615         * modules/human (Depends-on): Likewise.
36616         * modules/regex (Depends-on): Likewise.
36617         * modules/striconveh (Depends-on): Likewise.
36618         * modules/trim (Depends-on): Likewise.
36619         * modules/unistr/u8-move (Depends-on): Likewise.
36620         * modules/unistr/u16-move (Depends-on): Likewise.
36621         * modules/unistr/u32-move (Depends-on): Likewise.
36622
36623 2008-11-02  Bruno Haible  <bruno@clisp.org>
36624
36625         Mark 'memcpy' obsolete.
36626         * modules/memcpy (Status, Notice): New sections.
36627
36628 2008-11-02  Bruno Haible  <bruno@clisp.org>
36629
36630         Mark 'memcmp' obsolete.
36631         * modules/memcmp (Status, Notice): New sections.
36632         * modules/argmatch (Depends-on): Add memchr.
36633         * modules/backupfile (Depends-on): Likewise.
36634         * modules/c-strcasestr (Depends-on): Likewise.
36635         * modules/crypto/des (Depends-on): Likewise.
36636         * modules/csharpcomp (Depends-on): Likewise.
36637         * modules/fnmatch (Depends-on): Likewise.
36638         * modules/git-merge-changelog (Depends-on): Likewise.
36639         * modules/isnand (Depends-on): Likewise.
36640         * modules/isnand-nolibm (Depends-on): Likewise.
36641         * modules/isnanf (Depends-on): Likewise.
36642         * modules/isnanf-nolibm (Depends-on): Likewise.
36643         * modules/isnanl (Depends-on): Likewise.
36644         * modules/isnanl-nolibm (Depends-on): Likewise.
36645         * modules/mbchar (Depends-on): Likewise.
36646         * modules/memcoll (Depends-on): Likewise.
36647         * modules/quotearg (Depends-on): Likewise.
36648         * modules/regex (Depends-on): Likewise.
36649         * modules/relocatable-prog (Depends-on): Likewise.
36650         * modules/same (Depends-on): Likewise.
36651         * modules/signbit (Depends-on): Likewise.
36652         * modules/strcasestr-simple (Depends-on): Likewise.
36653         * modules/unictype/gen-ctype (Depends-on): Likewise.
36654         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36655         * modules/uniname/uniname (Depends-on): Likewise.
36656         * modules/unistr/u8-cmp (Depends-on): Likewise.
36657
36658 2008-11-02  Bruno Haible  <bruno@clisp.org>
36659
36660         Mark 'memchr' obsolete.
36661         * modules/memchr (Status, Notice): New sections.
36662         * modules/argp (Depends-on): Add memchr.
36663         * modules/base64 (Depends-on): Likewise.
36664         * modules/c-strcasestr (Depends-on): Likewise.
36665         * modules/chdir-long (Depends-on): Likewise.
36666         * modules/fnmatch (Depends-on): Likewise.
36667         * modules/getsubopt (Depends-on): Likewise.
36668         * modules/git-merge-changelog (Depends-on): Likewise.
36669         * modules/glob (Depends-on): Likewise.
36670         * modules/strcasestr-simple (Depends-on): Likewise.
36671         * modules/strnlen (Depends-on): Likewise.
36672
36673 2008-11-02  Bruno Haible  <bruno@clisp.org>
36674
36675         Mark 'atexit' obsolete.
36676         * modules/atexit (Status, Notice): New sections.
36677         * modules/chdir-long (Depends-on): Add atexit.
36678         * modules/wait-process (Depends-on): Likewise.
36679
36680 2008-11-02  Bruno Haible  <bruno@clisp.org>
36681
36682         * gnulib-tool: New option --with-obsolete.
36683         (func_usage): Document it.
36684         (func_modules_transitive_closure): Drop obsolete dependencies if
36685         incobsolete is not true.
36686         (func_import): Read and save the incobsolete variable to the cache.
36687
36688 2008-11-02  Bruno Haible  <bruno@clisp.org>
36689
36690         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36691         * gnulib-tool: New option --extract-status.
36692         (func_usage): Document it.
36693         (sed_extract_prog): Recognize it.
36694         (func_get_status): New function.
36695
36696 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36697
36698         * modules/sockets (License): Change from LGPL to LGPLv2+.
36699
36700 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36701
36702         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36703
36704 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36705
36706         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36707         Mention times and sys_times.
36708         * modules/sys_times, modules/sys_times-tests: New modules.
36709         * modules/times, modules/times-tests: Likewise
36710         * m4/sys_times_h.m4: New file.
36711         * lib/sys_times.in.h: Likewise
36712         * lib/times.c: Likewise.
36713         * tests/test-sys_times.c: Likewise.
36714         * tests/test-times.c: Likewise.
36715         * doc/posix-headers/sys_times.texi: Update.
36716         * doc/posix-functions/times.texi: Update.
36717
36718 2008-10-28  Jim Meyering  <meyering@redhat.com>
36719
36720         * modules/tempname (Depends-on): Add lstat.
36721
36722         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36723
36724 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36725
36726         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36727         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36728         using idiom used elsewhere in gnulib.
36729
36730 2008-10-27  Jim Meyering  <meyering@redhat.com>
36731
36732         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36733
36734 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36735
36736         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36737         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36738         programs.
36739         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36740
36741 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36742
36743         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36744
36745 2008-10-27  Bruno Haible  <bruno@clisp.org>
36746
36747         * tests/test-lstat.c: Include <stdio.h>.
36748
36749 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36750
36751         * modules/lstat-tests: New module.
36752         * tests/test-lstat.c: New file.
36753
36754 2008-10-26  Jim Meyering  <meyering@redhat.com>
36755
36756         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36757
36758 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36759             Bruno Haible  <bruno@clisp.org>
36760
36761         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36762         * modules/configmake (Include): Add a note that the include must come
36763         after all system headers.
36764         * lib/javaversion.c: Include configmake.h after all other includes.
36765
36766 2008-10-26  Bruno Haible  <bruno@clisp.org>
36767
36768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36769         HAVE_STRUCT_RANDOM_DATA to 1.
36770         (gl_STDLIB_H): Simplify.
36771
36772 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36773
36774         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36775         substitute HAVE_STRUCT_RANDOM_DATA.
36776         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36777         random_data.
36778         * modules/stdlib (Makefile.am): Substitute
36779         HAVE_STRUCT_RANDOM_DATA.
36780
36781 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36782
36783         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36784         * doc/gnulib-intro.texi (Copyright): Likewise.
36785
36786 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36787
36788         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36789         findings.
36790
36791 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36792             Bruno Haible  <bruno@clisp.org>
36793
36794         * lib/unistd.in.h: Include <winsock2.h>.
36795         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36796         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36797         Provide dummy declarations.
36798         (gethostname): Override.
36799         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36800         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36801         gl_PREREQ_SYS_H_WINSOCK2.
36802         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36803         * doc/posix-functions/gethostname.texi: More details.
36804
36805 2008-10-25  Bruno Haible  <bruno@clisp.org>
36806
36807         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36808         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36809         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36810
36811         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36812         here ...
36813         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36815         gl_UNISTD_H_DEFAULTS.
36816
36817 2008-10-25  Eric Blake  <ebb9@byu.net>
36818
36819         signbit: avoid spurious compiler failure
36820         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36821         declarations inside function.
36822
36823 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36824             Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36827         * modules/random_r (Depends-on): Add stdint.
36828
36829 2008-10-24  Bruno Haible  <bruno@clisp.org>
36830
36831         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36832         Eggert.
36833         * modules/strerror (License): Likewise.
36834
36835 2008-10-24  Jim Meyering  <meyering@redhat.com>
36836
36837         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36838         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36839
36840 2008-10-24  Eric Blake  <ebb9@byu.net>
36841
36842         getgroups: fix compilation when getgroups is available
36843         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36844         but with <config.h> override of getgroups disabled.
36845
36846 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36847
36848         * doc/gnulib.texi (Header files): Add note about C++ problems.
36849         Explained by Bruno Haible <bruno@clisp.org>.
36850
36851 2008-10-23  Bruno Haible  <bruno@clisp.org>
36852
36853         Define a dummy SA_NODEFER macro on Interix.
36854         * lib/signal.in.h (SA_NODEFER): Define fallback.
36855         Reported by Aleksey Cheusov <cheusov@tut.by> via
36856         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36857
36858 2008-10-23  Bruno Haible  <bruno@clisp.org>
36859
36860         * modules/freadahead (License): Change to LGPLv2+.
36861         Suggested by Simon Josefsson.
36862
36863 2008-10-23  Jim Meyering  <meyering@redhat.com>
36864
36865         random_r: new module
36866         * modules/random_r: New file.
36867         * m4/random_r.m4: New file.
36868         * lib/random_r.c: New file, from glibc.
36869         * modules/random_r-tests: New file.
36870         * tests/test-random_r.c: New file.
36871         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36872          Declare.
36873         (RAND_MAX): Define.
36874         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36875         * modules/stdlib: Substitute them, too.
36876         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36877         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36878         * doc/glibc-functions/random_r.texi: Likewise.
36879         * doc/glibc-functions/setstate_r.texi: Likewise.
36880         * doc/glibc-functions/srandom_r.texi: Likewise.
36881         * config/srclist.txt: Mention it.
36882
36883 2008-10-23  David Lutterkort  <lutter@redhat.com>
36884
36885         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36886         link requirement
36887
36888 2008-10-23  Jim Meyering  <meyering@redhat.com>
36889
36890         selinux-h: mark parameters of stub functions as intentionally unused
36891         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36892         * lib/se-context.in.h: Likewise.
36893
36894 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36895
36896         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36897
36898 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36899
36900         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36901
36902 2008-10-22  Eric Blake  <ebb9@byu.net>
36903
36904         glthread/thread: avoid compiler warning
36905         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36906         Add unreachable abort to silence compiler.
36907
36908 2008-10-22  Eric Blake  <ebb9@byu.net>
36909
36910         netdb: also supply struct addrinfo for cygwin 1.5.x
36911         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36912         older cygwin.
36913         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36914         cygwin.
36915         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36916
36917 2008-10-22  Bruno Haible  <bruno@clisp.org>
36918
36919         * users.txt: Update entry about pspp.
36920
36921 2008-10-21  Bruno Haible  <bruno@clisp.org>
36922
36923         Simplification.
36924         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36925         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36926
36927         Simplification.
36928         * lib/ioctl.c (ioctl): Don't undefine.
36929         * lib/socket.c (socket): Don't undefine.
36930
36931         Remove unused module indicator macros.
36932         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36933         GNULIB_$1 as a C macro.
36934
36935         * doc/posix-functions/close.texi: Undo last change.
36936         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36937         Windows platforms.
36938
36939 2008-10-21  Bruno Haible  <bruno@clisp.org>
36940
36941         Add gethostname() declaration to <unistd.h>.
36942         * lib/unistd.in.h (gethostname): New declaration.
36943         * lib/gethostname.c: Include <unistd.h>.
36944         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36945         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36947         and HAVE_GETHOSTNAME.
36948         * modules/gethostname (Depends-on): Add unistd.
36949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36950         (Include): Specify <unistd.h>.
36951         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36952         HAVE_GETHOSTNAME.
36953         * tests/test-gethostname.c: Include <unistd.h> first.
36954
36955 2008-10-21  Bruno Haible  <bruno@clisp.org>
36956
36957         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36958         * modules/select-tests (Depends-on): Likewise.
36959         Reported by Simon Josefsson.
36960
36961 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36962
36963         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36964         * lib/accept.c: New file, based on winsock.c.
36965         * lib/bind.c: New file, based on winsock.c.
36966         * lib/connect.c: New file, based on winsock.c.
36967         * lib/getpeername.c: New file, based on winsock.c.
36968         * lib/getsockname.c: New file, based on winsock.c.
36969         * lib/getsockopt.c: New file, based on winsock.c.
36970         * lib/ioctl.c: New file, based on winsock.c.
36971         * lib/listen.c: New file, based on winsock.c.
36972         * lib/recv.c: New file, based on winsock.c.
36973         * lib/recvfrom.c: New file, based on winsock.c.
36974         * lib/send.c: New file, based on winsock.c.
36975         * lib/sendto.c: New file, based on winsock.c.
36976         * lib/setsockopt.c: New file, based on winsock.c.
36977         * lib/shutdown.c: New file, based on winsock.c.
36978         * lib/socket.c: New file, based on winsock.c.
36979         * lib/w32sock.h: New file, based on winsock.c.
36980         * lib/winsock.c: Remove file.
36981         * modules/accept: Likewise.
36982         * modules/bind: Likewise.
36983         * modules/connect: Likewise.
36984         * modules/getpeername: Likewise.
36985         * modules/getsockname: Likewise.
36986         * modules/getsockopt: Likewise.
36987         * modules/ioctl: Likewise.
36988         * modules/listen: Likewise.
36989         * modules/recv: Likewise.
36990         * modules/recvfrom: Likewise.
36991         * modules/send: Likewise.
36992         * modules/sendto: Likewise.
36993         * modules/setsockopt: Likewise.
36994         * modules/shutdown: Likewise.
36995         * modules/socket: Use socket.c instead of winsock.c.
36996         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36997         * doc/posix-functions/accept.texi: Doc fix.
36998         * doc/posix-functions/bind.texi: Doc fix.
36999         * doc/posix-functions/close.texi: Doc fix.
37000         * doc/posix-functions/connect.texi: Doc fix.
37001         * doc/posix-functions/getpeername.texi: Doc fix.
37002         * doc/posix-functions/getsockname.texi: Doc fix.
37003         * doc/posix-functions/getsockopt.texi: Doc fix.
37004         * doc/posix-functions/ioctl.texi: Doc fix.
37005         * doc/posix-functions/listen.texi: Doc fix.
37006         * doc/posix-functions/recv.texi: Doc fix.
37007         * doc/posix-functions/recvfrom.texi: Doc fix.
37008         * doc/posix-functions/send.texi: Doc fix.
37009         * doc/posix-functions/sendto.texi: Doc fix.
37010         * doc/posix-functions/setsockopt.texi: Doc fix.
37011         * doc/posix-functions/shutdown.texi: Doc fix.
37012         * doc/posix-functions/socket.texi: Doc fix.
37013
37014 2008-10-20  Bruno Haible  <bruno@clisp.org>
37015
37016         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37017         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37018         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37019         as an alias for SIGABRT.
37020         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37021         (sigaction): Map it to SIGABRT.
37022         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37023
37024 2008-10-20  Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/fts.c: Don't include lstat.h.
37027         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37028
37029         Move the lstat() declaration to <sys/stat.h>.
37030         * lib/lstat.h: Remove file.
37031         * lib/sys_stat.in.h: Add special invocation convention.
37032         (lstat): New declaration.
37033         * lib/lstat.c (orig_lstat): New function.
37034         (rpl_lstat): Use orig_lstat instead of lstat.
37035         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37036         AC_C_INLINE. Set REPLACE_LSTAT.
37037         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37038         and REPLACE_LSTAT.
37039         * modules/lstat (Files): Remove lib/lstat.h.
37040         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37041         (Include): Specify <sys/stat.h> instead of lstat.h.
37042         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37043         REPLACE_LSTAT.
37044         * NEWS: Mention the change.
37045
37046 2008-10-20  Bruno Haible  <bruno@clisp.org>
37047
37048         * modules/posix_spawn-tests: New file.
37049         * tests/test-posix_spawn3.c: New file.
37050
37051 2008-10-20  Bruno Haible  <bruno@clisp.org>
37052
37053         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37054         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37055         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37056         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37057         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37058
37059 2008-10-20  Bruno Haible  <bruno@clisp.org>
37060
37061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37062         of posix_spawn on AIX 5.3.
37063
37064 2008-10-20  Bruno Haible  <bruno@clisp.org>
37065
37066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37067
37068 2008-10-20  Bruno Haible  <bruno@clisp.org>
37069
37070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37071         of AC_LANG_PROGRAM.
37072
37073 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37074
37075         * lib/netdb.in.h: Don't define GNU specific constants until they
37076         are supported or needed.  Reported by Bruno Haible
37077         <bruno@clisp.org>.
37078
37079 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37080
37081         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37082
37083 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37084
37085         * lib/getaddrinfo.h: Remove file.
37086         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37087         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37088         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37089         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37090         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37091         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37092         * tests/test-getaddrinfo.c: Likewise.
37093         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37094         * NEWS: Mention change.
37095
37096 2008-10-19  Bruno Haible  <bruno@clisp.org>
37097
37098         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37099
37100 2008-10-19  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/wait-process.c: Include simply <sys/wait.h>.
37103         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37104         WIFSTOPPED): Remove fallback definitions.
37105         * modules/wait-process (Depends-on): Add sys_wait.
37106
37107         New module 'sys_wait'.
37108         * modules/sys_wait: New file.
37109         * lib/sys_wait.in.h: New file, partially copied from
37110         lib/wait-process.c.
37111         * m4/sys_wait_h.m4: New file.
37112         * doc/posix-headers/sys_wait.texi: Mention the new module.
37113
37114 2008-10-19  Bruno Haible  <bruno@clisp.org>
37115
37116         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37117
37118 2008-10-19  Bruno Haible  <bruno@clisp.org>
37119
37120         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37121         * lib/wait-process.c (WAIT_T): Remove type.
37122         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37123         (wait_subprocess): Update.
37124
37125 2008-10-19  Bruno Haible  <bruno@clisp.org>
37126
37127         New module 'atoll'.
37128         * modules/atoll: New file.
37129         * lib/stdlib.in.h (atoll): New declaration.
37130         * lib/atoll.c: New file, from glibc with modifications.
37131         * m4/atoll.m4: New file.
37132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37133         HAVE_ATOLL.
37134         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37135         * doc/posix-functions/atoll.texi: Mention the new module.
37136
37137 2008-10-19  Bruno Haible  <bruno@clisp.org>
37138
37139         Add strtoull() declaration to <stdlib.h>.
37140         * lib/stdlib.in.h (strtoull): New declaration.
37141         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37142         Set HAVE_STRTOULL.
37143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37144         HAVE_STRTOULL.
37145         * modules/strtoull (Depends-on): Add stdlib.
37146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37147         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37148         HAVE_STRTOULL.
37149
37150 2008-10-19  Bruno Haible  <bruno@clisp.org>
37151
37152         Add strtoll() declaration to <stdlib.h>.
37153         * lib/stdlib.in.h (strtoll): New declaration.
37154         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37155         Set HAVE_STRTOLL.
37156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37157         HAVE_STRTOLL.
37158         * modules/strtoll (Depends-on): Add stdlib.
37159         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37160         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37161
37162 2008-10-19  Bruno Haible  <bruno@clisp.org>
37163
37164         * modules/bcopy (Depends-on): Add strings.
37165         (Include): Specify <strings.h>.
37166
37167 2008-10-19  Bruno Haible  <bruno@clisp.org>
37168
37169         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37170
37171 2008-10-19  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37174         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37175         mingw.
37176
37177 2008-10-19  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/atanl.c: Don't include isnanl.h.
37180         * lib/cosl.c: Likewise.
37181         * lib/ldexpl.c: Likewise.
37182         * lib/logl.c: Likewise.
37183         * lib/sinl.c: Likewise.
37184         * lib/sqrtl.c: Likewise.
37185         * lib/tanl.c: Likewise.
37186
37187         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37188         * lib/isnanf.h: Remove file.
37189         * lib/isnand.h: Remove file.
37190         * lib/isnanl.h: Remove file.
37191         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37192         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37193         macros.
37194         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37195         HAVE_ISNANF, don't define it as a C macro.
37196         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37197         HAVE_ISNAND, don't define it as a C macro.
37198         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37199         HAVE_ISNANL, don't define it as a C macro.
37200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37201         HAVE_ISNAN[FDL].
37202         * modules/isnanf (Files): Remove lib/isnanf.h.
37203         (Depends-on): Add math.
37204         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37205         (Include): Specify <math.h> instead of isnanf.h.
37206         * modules/isnand (Files): Remove lib/isnand.h.
37207         (Depends-on): Add math.
37208         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37209         (Include): Specify <math.h> instead of isnand.h.
37210         * modules/isnanl (Files): Remove lib/isnanl.h.
37211         (Depends-on): Add math.
37212         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37213         (Include): Specify <math.h> instead of isnanl.h.
37214         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37215         HAVE_ISNAN[FDL].
37216         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37217         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37218         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37219         * NEWS: Mention the change.
37220
37221 2008-10-18  Bruno Haible  <bruno@clisp.org>
37222
37223         Add getusershell(), setusershell(), endusershell() declarations to
37224         <unistd.h>.
37225         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37226         declarations.
37227         * lib/getusershell.c: Include unistd.h.
37228         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37229         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37230         HAVE_GETUSERSHELL.
37231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37232         and HAVE_GETUSERSHELL.
37233         * modules/getusershell (Depends-on): Add unistd, extensions.
37234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37235         (Include): Specify <unistd.h>.
37236         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37237         HAVE_GETUSERSHELL.
37238
37239 2008-10-18  Bruno Haible  <bruno@clisp.org>
37240
37241         Add a getloadavg() declaration to <stdlib.h>.
37242         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37243         getloadavg declaration.
37244         (getloadavg): New declaration.
37245         * lib/getloadavg.c: Include <stdlib.h> first.
37246         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37247         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37248         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37250         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37251         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37253         (Include): Specify <stdlib.h>.
37254         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37255         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37256
37257 2008-10-18  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/dirchownmod.c: Don't include lchmod.h.
37260
37261         Move the lchmod() declaration to <sys/stat.h>.
37262         * lib/lchmod.h: Remove file.
37263         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37264         (lchmod): New declaration, moved here from lib/lchown.h.
37265         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37266         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37268         and HAVE_LCHMOD.
37269         * modules/lchmod (Files): Remove lib/lchmod.h.
37270         (Depends-on): Add sys_stat, extensions.
37271         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37272         (Include): Specify <sys/stat.h> instead of lchmod.h.
37273         * modules/sys_stat (Depends-on): Add link-warning.
37274         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37275         definition of GL_LINK_WARNING.
37276         * NEWS: Mention the change.
37277
37278 2008-10-18  Bruno Haible  <bruno@clisp.org>
37279
37280         * lib/fchdir.c: Don't include dirfd.h.
37281         * lib/fts.c: Likewise.
37282         * lib/getcwd.c: Likewise.
37283         * lib/glob.c: Likewise.
37284
37285         Move the dirfd() declaration to <dirent.h>.
37286         * lib/dirfd.h: Remove file.
37287         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37288         (dirfd): New declaration.
37289         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37290         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37291         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37292         HAVE_DECL_DIRFD.
37293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37294         HAVE_DECL_DIRFD.
37295         * modules/dirfd (Files): Remove lib/dirfd.h.
37296         (Depends-on): Add dirent, extensions.
37297         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37298         (Include): Specify <dirent.h> instead of dirfd.h.
37299         * modules/dirent (Depends-on): Add link-warning.
37300         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37301         definition of GL_LINK_WARNING.
37302         * NEWS: Mention the change.
37303
37304 2008-10-18  Bruno Haible  <bruno@clisp.org>
37305
37306         Move the euidaccess() declaration to <unistd.h>.
37307         * lib/euidaccess.h: Remove file.
37308         * lib/unistd.in.h (euidaccess): New declaration.
37309         * lib/euidaccess.c: Don't include euidaccess.h.
37310         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37311         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37313         and HAVE_EUIDACCESS.
37314         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37315         (Depends-on): Add unistd.
37316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37317         (Include): Specify <unistd.h> instead of euidaccess.h.
37318         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37319         HAVE_EUIDACCESS.
37320         * NEWS: Mention the change.
37321
37322 2008-10-18  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37325
37326         Move the getdomainname() declaration to <unistd.h>.
37327         * lib/getdomainname.h: Remove file.
37328         * lib/unistd.in.h (getdomainname): New declaration.
37329         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37330         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37331         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37332         HAVE_GETDOMAINNAME.
37333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37334         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37335         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37336         (Depends-on): Add unistd, extensions.
37337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37338         (Includes): Specify <unistd.h> instead of getdomainname.h.
37339         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37340         HAVE_GETDOMAINNAME.
37341         * NEWS: Mention the change.
37342
37343 2008-10-18  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/dirent: New file.
37346         * m4/dirent_h.m4: New file.
37347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37348         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37349         * modules/fchdir (Files): Remove lib/dirent.in.h.
37350         (Depends-on): Add dirent.
37351         (Makefile.am): Move rules to modules/dirent.
37352         * doc/posix-headers/dirent.texi: Mention the new module.
37353
37354 2008-10-18  Bruno Haible  <bruno@clisp.org>
37355
37356         Avoid -Wunused-parameter warnings in public gnulib header files.
37357         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37358         macro.
37359         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37360
37361 2008-10-18  Bruno Haible  <bruno@clisp.org>
37362
37363         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37364         * doc/glibc-functions/error.texi: Mention the module 'error'.
37365         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37366         * doc/glibc-functions/getdomainname.texi: Mention the module
37367         'getdomainname'.
37368         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37369         * doc/glibc-functions/getpagesize.texi: Mention the module
37370         'getpagesize'.
37371         * doc/glibc-functions/getusershell.texi: Mention the module
37372         'getusershell'.
37373         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37374         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37375         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37376         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37377         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37378         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37379         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37380         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37381         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37382         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37383         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37384         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37385         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37386         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37387
37388 2008-10-17  Bruno Haible  <bruno@clisp.org>
37389
37390         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37391         HP-UX and IRIX, use -0.0L.
37392         * tests/test-ceill.c (minus_zero): Likewise.
37393         * tests/test-floorl.c (minus_zero): Likewise.
37394         * tests/test-frexpl.c (minus_zero): Likewise.
37395         * tests/test-isnan.c (minus_zerol): Likewise.
37396         * tests/test-isnanl.h (minus_zero): Likewise.
37397         * tests/test-ldexpl.c (minus_zero): Likewise.
37398         * tests/test-roundl.c (minus_zero): Likewise.
37399         * tests/test-signbit.c (minus_zerol): Likewise.
37400         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37401         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37402         * tests/test-truncl.c (minus_zero): Likewise.
37403         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37404         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37405         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37406         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37407
37408 2008-10-17  Bruno Haible  <bruno@clisp.org>
37409
37410         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37411         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37412         that it gets activated only for gcc >= 3.0.
37413         * lib/dirent.in.h: Likewise.
37414         * lib/errno.in.h: Likewise.
37415         * lib/fcntl.in.h: Likewise.
37416         * lib/float.in.h: Likewise.
37417         * lib/iconv.in.h: Likewise.
37418         * lib/inttypes.in.h: Likewise.
37419         * lib/locale.in.h: Likewise.
37420         * lib/math.in.h: Likewise.
37421         * lib/netdb.in.h: Likewise.
37422         * lib/netinet_in.in.h: Likewise.
37423         * lib/search.in.h: Likewise.
37424         * lib/signal.in.h: Likewise.
37425         * lib/spawn.in.h: Likewise.
37426         * lib/stdarg.in.h: Likewise.
37427         * lib/stdint.in.h: Likewise.
37428         * lib/stdio.in.h: Likewise.
37429         * lib/stdlib.in.h: Likewise.
37430         * lib/string.in.h: Likewise.
37431         * lib/strings.in.h: Likewise.
37432         * lib/sys_file.in.h: Likewise.
37433         * lib/sys_ioctl.in.h: Likewise.
37434         * lib/sys_select.in.h: Likewise.
37435         * lib/sys_socket.in.h: Likewise.
37436         * lib/sys_stat.in.h: Likewise.
37437         * lib/sys_time.in.h: Likewise.
37438         * lib/sysexits.in.h: Likewise.
37439         * lib/time.in.h: Likewise.
37440         * lib/unistd.in.h: Likewise.
37441         * lib/wchar.in.h: Likewise.
37442         * lib/wctype.in.h: Likewise.
37443         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37444
37445 2008-10-17  Jim Meyering  <meyering@redhat.com>
37446
37447         ignore-value: don't depend on inline module
37448         * modules/ignore-value (Depends-on): Remove 'inline'.
37449         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37450         Suggestion from Bruno Haible.
37451
37452 2008-10-17  Bruno Haible  <bruno@clisp.org>
37453
37454         New implementation of condition variables for Win32.
37455         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37456         (gl_linked_waitqueue_t): New type.
37457         (gl_cond_t): Use it.
37458         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37459         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37460         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37461         (glthread_cond_init_func, glthread_cond_wait_func,
37462         glthread_cond_timedwait_func, glthread_cond_signal_func,
37463         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37464         Reimplemented on the basis of gl_linked_waitqueue_t.
37465         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37466         gl_waitqueue_t.
37467         (gl_rwlock_t): Update.
37468         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37469
37470 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37471
37472         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37473         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37474
37475 2008-10-17  Jim Meyering  <meyering@redhat.com>
37476
37477         ignore-value: new module
37478         * modules/ignore-value: New file.
37479         * lib/ignore-value.h: New file.
37480         * MODULES.html.sh (Compiler warning management): New section,
37481         just for this module.  More to come.
37482
37483 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37484
37485         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37486         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37487         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37488
37489 2008-10-16  Jim Meyering  <meyering@redhat.com>
37490
37491         openat-die.c: avoid 'no previous prototype' warning
37492         * lib/openat-die.c: Include "openat.h".
37493         Reported by Reuben Thomas <rrt@sc3d.org>.
37494
37495 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37496
37497         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37498         * lib/netdb.in.h: Fix typo.
37499         Reported by Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/netdb.in.h: Include sys/socket.h for platforms without
37502         netdb.h, to get structures like hostent on MinGW.
37503         * modules/netdb (Depends-on): Add sys_socket.
37504
37505 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37506
37507         * modules/netdb, modules/netdb-tests: New file.
37508         * m4/netdb_h.m4: New file.
37509         * lib/netdb.in.h: Add, currently just an empty file pending
37510         definitions.
37511         * tests/test-netdb.c: New file.
37512         * doc/posix-headers/netdb.texi: Mention that we replace it if
37513         needed.
37514         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37515         netdb.
37516
37517 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37518
37519         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37520         with code.
37521
37522 2008-10-13  Bruno Haible  <bruno@clisp.org>
37523
37524         * lib/glthread/cond.c (glthread_cond_wait_func,
37525         glthread_cond_timedwait_func): Add a comment.
37526
37527 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37528
37529         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37530         * tests/test-select.c: Likewise,
37531
37532 2008-10-13  Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/glthread/cond.c (glthread_cond_wait_func,
37535         glthread_cond_timedwait_func): Fix variable name.
37536         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37537
37538 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37539
37540         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37542         struct sockaddr.sa_len.
37543         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37544
37545 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37546
37547         * build-aux/pmccabe2html: Add css and css_url parameters.
37548
37549 2008-10-12  Bruno Haible  <bruno@clisp.org>
37550
37551         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37552         calling aclx_get.
37553         Reported by Rainer Tammer <tammer@tammer.net>.
37554
37555 2008-10-12  Bruno Haible  <bruno@clisp.org>
37556
37557         Use msvcrt aware primitives for creation/termination of Win32 threads.
37558         * lib/glthread/thread.c: Include <process.h>.
37559         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37560         (wrapper_func): Update signature.
37561         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37562
37563 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37564             Bruno Haible  <bruno@clisp.org>
37565
37566         Provide a Win32 implementation of the 'cond' module.
37567         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37568         * lib/glthread/cond.c (glthread_cond_init_func,
37569         glthread_cond_wait_func, glthread_cond_timedwait_func,
37570         glthread_cond_signal_func, glthread_cond_broadcast_func,
37571         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37572         * modules/cond (Dependencies): Add gettimeofday.
37573
37574 2008-10-11  Bruno Haible  <bruno@clisp.org>
37575
37576         Make sleep work on older versions of mingw.
37577         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37578         only whether it exists.
37579         * doc/posix-functions/sleep.texi: Mention the problem with older
37580         versions of mingw.
37581
37582 2008-10-11  Bruno Haible  <bruno@clisp.org>
37583
37584         New module 'shutdown'.
37585         * modules/shutdown: New file.
37586         * lib/sys_socket.in.h (shutdown): New declaration.
37587         * lib/winsock.c (shutdown): New function.
37588         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37589         GNULIB_SHUTDOWN.
37590         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37591         * doc/posix-functions/shutdown.texi: Document the new module.
37592
37593 2008-10-11  Jim Meyering  <meyering@redhat.com>
37594
37595         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37596
37597 2008-10-11  Bruno Haible  <bruno@clisp.org>
37598
37599         New module 'fclose'.
37600         * modules/fclose: New file.
37601         * lib/stdio.in.h (fclose): New declaration.
37602         * lib/fclose.c: New file.
37603         * m4/fclose.m4: New file.
37604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37605         REPLACE_FCLOSE.
37606         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37607         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37608         REPLACE_FCLOSE.
37609         * modules/close (Depends-on): fclose.
37610         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37611
37612 2008-10-11  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37615         set errno and don't call _close.
37616
37617 2008-10-10  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37620         ACL, not afterwards. Fixes test failure on Cygwin.
37621
37622 2008-10-09  Ben Pfaff  <blp@gnu.org>
37623
37624         * build-aux/announce-gen: Fix gnulib version related part of usage
37625         message.  Die with a useful error message if no tarballs are
37626         found.
37627
37628 2008-10-10  Jim Meyering  <meyering@redhat.com>
37629
37630         bootstrap: use git's --depth=N option only if it's supported
37631         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37632         recognize the --depth option.  Reported by Pádraig Brady.
37633
37634 2008-10-09  Bruno Haible  <bruno@clisp.org>
37635
37636         New module 'ioctl'.
37637         * modules/ioctl: New file.
37638         * lib/sys_socket.in.h (ioctl): Remove declaration.
37639         * lib/winsock.c: Include <sys/ioctl.h>.
37640         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37641         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37642         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37643         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37644         * doc/posix-functions/ioctl.texi: Mention the new module.
37645
37646 2008-10-09  Bruno Haible  <bruno@clisp.org>
37647
37648         New module 'sys_ioctl'.
37649         * lib/sys_ioctl.in.h: New file.
37650         * m4/sys_ioctl_h.m4: New file.
37651         * modules/sys_ioctl: New file.
37652         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37653
37654 2008-10-09  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37657         * lib/winsock.c: Include <stdarg.h>.
37658         (rpl_ioctl): Change to second argument 'int' and then varargs.
37659
37660 2008-10-09  Bruno Haible  <bruno@clisp.org>
37661
37662         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37663         when the sys_socket module is present and the system has <winsock2.h>.
37664
37665 2008-10-09  Bruno Haible  <bruno@clisp.org>
37666
37667         * doc/posix-functions/close.texi: Mention module 'close' instead of
37668         module 'sys_socket'.
37669
37670 2008-10-09  Bruno Haible  <bruno@clisp.org>
37671
37672         * doc/glibc-headers/sys_ioctl.texi: New file.
37673         * doc/gnulib.texi: Include it.
37674
37675 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37676             Bruno Haible  <bruno@clisp.org>
37677
37678         Combine the two replacements of 'close'.
37679         * lib/sys_socket.in.h (close): Define to a reminder to include
37680         <unistd.h>.
37681         (_gl_close_fd_maybe_socket): New declaration.
37682         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37683         * lib/winsock.c (close): Remove undefinition.
37684         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37685         needed for the gnulib module 'close'.
37686         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37687         define to an error symbol or to a warning, if suitable.
37688         * lib/close.c: Include <sys/socket.h>.
37689         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37690         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37691         UNISTD_H_HAVE_WINSOCK2_H.
37692         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37694         UNISTD_H_HAVE_WINSOCK2_H.
37695         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37696         (configure.ac): Set a module indicator.
37697         (Makefile.am): Substitute GNULIB_CLOSE.
37698         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37699         * modules/poll-tests (Depends-on): Add close.
37700         * modules/select-tests (Depends-on): Likewise.
37701
37702 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37703             Bruno Haible  <bruno@clisp.org>
37704
37705         New module 'close'.
37706         * modules/close: New file.
37707         * lib/unistd.in.h (close): Move declaration out of the
37708         FCHDIR_REPLACEMENT scope.
37709         (_gl_unregister_fd): New declaration.
37710         * lib/close.c: New file.
37711         * lib/fchdir.c (rpl_close): Remove function.
37712         * m4/close.m4: New file.
37713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37714         close.
37715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37716         REPLACE_CLOSE.
37717         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37718         REPLACE_CLOSE.
37719         * modules/fchdir (Depends-on): Add close.
37720
37721 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37722             Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/fcntl.in.h (open): Simplify conditionals.
37725         (_gl_register_fd): New declaration.
37726         * lib/fchdir.c (rpl_open): Remove function.
37727         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37728         also.
37729         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37731         open.
37732
37733 2008-10-09  Jim Meyering  <meyering@redhat.com>
37734
37735         GNUmakefile: use the more name-space-friendly "_version"
37736         * top/GNUmakefile (_dummy): Update.
37737         (_version): Rename from "version".
37738
37739 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37740             Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37743         rpl_close.
37744         (_gl_register_fd): New function, extracted from rpl_open.
37745         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37746         (rpl_open, rpl_opendir): Use _gl_register_fd.
37747
37748 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37749
37750         Fix organization of 'open' replacement.
37751         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37752         (gl_FUNC_OPEN): Use it.
37753         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37754
37755 2008-10-08  Bruno Haible  <bruno@clisp.org>
37756
37757         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37758
37759 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37760
37761         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37762         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37763         listen).
37764
37765 2008-10-08  Eric Blake  <ebb9@byu.net>
37766
37767         GNUmakefile: add 'make version' target
37768         * top/GNUmakefile (_curr-ver): Split version update rules...
37769         (version): ...into a target.
37770
37771 2008-10-07  Bruno Haible  <bruno@clisp.org>
37772
37773         Use a more portable replacement expression for -0.0L.
37774         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37775         instead of -0.0L. Fix m4 quotation.
37776
37777         * tests/test-signbit.c: Include <float.h>.
37778         (minus_zero): New variable.
37779         (test_signbitl): Use minus_zero instead of -zero.
37780         * modules/signbit-tests (Depends-on): Add float.
37781
37782         * tests/test-ceill.c: Include <float.h>.
37783         (zero): Remove variable.
37784         (minus_zero): New variable.
37785         (main): Use minus_zero instead of -zero.
37786         * modules/ceill-tests (Depends-on): Add float.
37787
37788         * tests/test-floorl.c: Include <float.h>.
37789         (zero): Remove variable.
37790         (minus_zero): New variable.
37791         (main): Use minus_zero instead of -zero.
37792         * modules/floorl-tests (Depends-on): Add float.
37793
37794         * tests/test-roundl.c: Include <float.h>.
37795         (zero): Remove variable.
37796         (minus_zero): New variable.
37797         (main): Use minus_zero instead of -zero.
37798         * modules/roundl-tests (Depends-on): Add float.
37799
37800         * tests/test-truncl.c: Include <float.h>.
37801         (zero): Remove variable.
37802         (minus_zero): New variable.
37803         (main): Use minus_zero instead of -zero.
37804         * modules/truncl-tests (Depends-on): Add float.
37805
37806         * tests/test-frexpl.c (zero): Remove variable.
37807         (minus_zero): New variable.
37808         (main): Use minus_zero instead of -zero.
37809         * modules/frexpl-tests (Depends-on): Add float.
37810
37811         * tests/test-isnan.c (zerol): Remove variable.
37812         (minus_zerol): New variable.
37813         (test_long_double): Use minus_zerol instead of -zerol.
37814         * modules/isnan-tests (Depends-on): Add float.
37815
37816         * tests/test-isnanl.h (zero): Remove variable.
37817         (minus_zero): New variable.
37818         (main): Use minus_zero instead of -zero.
37819         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37820         * modules/isnanl-tests (Depends-on): Add float.
37821
37822         * tests/test-ldexpl.c (zero): Remove variable.
37823         (minus_zero): New variable.
37824         (main): Use minus_zero instead of -zero.
37825         * modules/ldexpl-tests (Depends-on): Add float.
37826
37827         * tests/test-snprintf-posix.h (zerol): Remove variable.
37828         (minus_zerol): New variable.
37829         (test_function): Use minus_zerol instead of -zerol.
37830         * modules/snprintf-posix-tests (Depends-on): Add float.
37831         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37832
37833         * tests/test-sprintf-posix.h (zerol): Remove variable.
37834         (minus_zerol): New variable.
37835         (test_function): Use minus_zerol instead of -zerol.
37836         * modules/sprintf-posix-tests (Depends-on): Add float.
37837         * modules/vsprintf-posix-tests (Depends-on): Add float.
37838
37839         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37840         (minus_zerol): New variable.
37841         (test_function): Use minus_zerol instead of -zerol.
37842         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37843
37844         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37845         (minus_zerol): New variable.
37846         (test_function): Use minus_zerol instead of -zerol.
37847         * modules/vasprintf-posix-tests (Depends-on): Add float.
37848
37849 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37850
37851         * MODULES.html.sh (Support for building documentation): Mention
37852         pmccabe2html.  Sort entries.
37853
37854         Add pmccabe2html module, from gnupdf.
37855         * build-aux/pmccabe.css: New file.
37856         * build-aux/pmccabe2html: New file.
37857         * m4/pmccabe2html.m4: New file.
37858         * modules/pmccabe2html: New file.
37859
37860 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37861
37862         flock: new module
37863         * MODULES.html.sh: Add to list of modules.
37864         * lib/flock.c: flock implementation for Windows and Unix systems
37865         which have fcntl.
37866         * doc/glibc-functions/flock.texi: Update documentation.
37867         * lib/sys_file.in.h: <sys/file.h> header file.
37868         * m4/flock.m4: M4 macros.
37869         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37870         * modules/flock: flock module.
37871         * modules/flock-tests: flock tests module.
37872         * modules/sys_file: sys/file.h module.
37873         * tests/test-flock.c: test suite for flock.
37874
37875 2008-10-06  Jim Meyering  <meyering@redhat.com>
37876
37877         bootstrap: check for LT_INIT more portably still ;-)
37878         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37879         Spotted by Bruno Haible.
37880
37881 2008-10-06  Eric Blake  <ebb9@byu.net>
37882
37883         test-signbit: avoid tripping Irix cc bug on -0.0L
37884         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37885         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37886         entire testsuite consistent and avoids an Irix 6.2 bug.
37887
37888 2008-10-05  Bruno Haible  <bruno@clisp.org>
37889             Jim Meyering  <jim@meyering.net>
37890
37891         Add an option for ignoring EPIPE during close_stdout.
37892         * lib/closeout.h: Include <stdbool.h>.
37893         (close_stdout_set_ignore_EPIPE): New declaration.
37894         * lib/closeout.c: Include <stdbool.h>.
37895         (ignore_EPIPE): New variable.
37896         (close_stdout_set_ignore_EPIPE): New function.
37897         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37898         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37899         failure.
37900         * modules/closeout (Depends-on): Add stdbool.
37901
37902 2008-10-05  Bruno Haible  <bruno@clisp.org>
37903
37904         * modules/accept: New file.
37905         * modules/bind: New file.
37906         * modules/connect: New file.
37907         * modules/getpeername: New file.
37908         * modules/getsockname: New file.
37909         * modules/getsockopt: New file.
37910         * modules/listen: New file.
37911         * modules/recv: New file.
37912         * modules/recvfrom: New file.
37913         * modules/send: New file.
37914         * modules/sendto: New file.
37915         * modules/setsockopt: New file.
37916         * modules/socket: New file.
37917         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37918         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37919         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37920         the particular module is requested. Add a link warning when the
37921         particular module is not requested.
37922         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37923         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37924         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37925         the particular module is requested.
37926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37927         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37928         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37929         * modules/sys_socket (Depends-on): Add link-warning.
37930         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37931         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37932         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37933         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37934         GL_LINK_WARNING.
37935         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37936         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37937         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37938         * doc/posix-functions/getpeername.texi: Mention the new module
37939         'getpeername'.
37940         * doc/posix-functions/getsockname.texi: Mention the new module
37941         'getsockname'.
37942         * doc/posix-functions/getsockopt.texi: Mention the new module
37943         'getsockopt'.
37944         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37945         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37946         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37947         * doc/posix-functions/send.texi: Mention the new module 'send'.
37948         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37949         * doc/posix-functions/setsockopt.texi: Mention the new module
37950         'setsockopt'.
37951         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37952         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37953         listen, connect, accept.
37954         * modules/select-tests (Depends-on): Likewise.
37955
37956 2008-10-05  Bruno Haible  <bruno@clisp.org>
37957
37958         * lib/winsock.c (strerror): Remove unused #undef.
37959         (rpl_close): Remove unused local variable.
37960
37961         * modules/sys_socket (Depends-on); Add errno.
37962
37963 2008-10-05  Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37966         (select): Add a link warning when the 'select' module is not used.
37967         * modules/sys_select (Depends-on): Add link-warning.
37968         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37969         Suggested by Paolo Bonzini.
37970
37971 2008-10-05  Jim Meyering  <meyering@redhat.com>
37972
37973         bootstrap: check for LT_INIT more portably
37974         * build-aux/bootstrap: Avoid using grep -E, since it's not
37975         portable enough.  Suggestion from Bruno Haible.
37976
37977 2008-10-05  Bruno Haible  <bruno@clisp.org>
37978
37979         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37980         as being fixed by gnulib.
37981
37982 2008-10-05  Bruno Haible  <bruno@clisp.org>
37983
37984         * modules/select-tests: New file, mostly copied from
37985         modules/sys_select-tests.
37986         * tests/test-select.c: New file, mostly copied from
37987         tests/test-sys_select.c.
37988         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37989         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37990         (Makefile.am): Remove test_sys_select_LDADD.
37991
37992         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37993         to an undefined symbol, for an error message.
37994         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37995         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37996         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37997         winsock-select.c here.
37998         * modules/sys_select (Files): Remove lib/winsock-select.c.
37999         (Depends-on): Remove alloca.
38000         (Makefile.am): Substitute GNULIB_SELECT.
38001         * modules/select: New file.
38002         * doc/posix-functions/select.texi: Update.
38003
38004 2008-10-05  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38007         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38008         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38009         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38010         getdtablesize.
38011         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38012         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38013
38014 2008-10-05  Bruno Haible  <bruno@clisp.org>
38015
38016         * modules/getdtablesize-tests: New file.
38017         * tests/test-getdtablesize.c: New file.
38018
38019         New module 'getdtablesize'.
38020         * lib/unistd.in.h (getdtablesize): New declaration.
38021         * lib/getdtablesize.c: New file.
38022         * m4/getdtablesize.m4: New file.
38023         * modules/getdtablesize: New file.
38024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38025         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38026         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38027         HAVE_GETDTABLESIZE.
38028         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38029
38030 2008-10-05  Bruno Haible  <bruno@clisp.org>
38031
38032         * modules/sched (Makefile.am): Fix typo.
38033         Reported by Simon Josefsson.
38034
38035 2008-10-05  Jim Meyering  <meyering@redhat.com>
38036
38037         bootstrap: check for LT_INIT, too
38038         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38039         are deprecated.  Suggestion from Ralf Wildenhues.
38040
38041 2008-10-05  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38044         overriding them by ours.
38045         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38046
38047 2008-10-05  Jim Meyering  <meyering@redhat.com>
38048
38049         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38050         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38051         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38052
38053 2008-10-04  Bruno Haible  <bruno@clisp.org>
38054
38055         * modules/dup2 (License): Change to LGPLv2+.
38056         * modules/sleep (License): Likewise.
38057         * modules/perror (License): Likewise.
38058         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38059         Blake.
38060         * modules/signal (License): Likewise.
38061         * modules/sigprocmask (License): Likewise.
38062         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38063         Meyering.
38064
38065 2008-10-04  Bruno Haible  <bruno@clisp.org>
38066
38067         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38068         Reported by Rainer Tammer <tammer@tammer.net>.
38069
38070 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38071             Bruno Haible  <bruno@clisp.org>
38072
38073         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38074         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38075         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38076
38077 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38078
38079         filevercmp: new module
38080         * lib/filevercmp.h: New function filevercmp comparing version strings.
38081         * lib/filevercmp.c: Implementation of filevercmp function.
38082         * modules/filevercmp: Module metadata.
38083         * tests/test-filevercmp.c: Unit test for new module.
38084         * modules/filevercmp-tests: Unit test metadata.
38085         * MODULES.html.sh: Add filevercmp module.
38086
38087 2008-10-03  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/c-ctype.h: Add comment.
38090         Reported by Jim Meyering.
38091
38092 2008-10-02  Bruno Haible  <bruno@clisp.org>
38093
38094         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38095
38096 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38097
38098         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38099         name of bootstrap.conf accordingly.
38100
38101 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38102
38103         * build-aux/bootstrap: Install git-merge-changelog configuration
38104         items into .gitconfig if needed.
38105
38106 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38107
38108         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38109         git repository, and initialize/update it accordingly.
38110
38111 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38112
38113         * modules/fsync-tests: New file.
38114         * tests/test-fsync.c: New file.
38115
38116         New module 'fsync'.
38117         * lib/fsync.c: New file.
38118         * m4/fsync.m4: New file.
38119         * modules/fsync: New file.
38120         * lib/unistd.in.h (fsync): New declaration.
38121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38122         GNULIB_FSYNC and HAVE_FSYNC.
38123         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38124         * MODULES.html.sh (posix_functions): Add fsync.
38125         * doc/posix-functions/fsync.texi: Mention the new module.
38126
38127 2008-10-02  Jim Meyering  <meyering@redhat.com>
38128
38129         fts.c: sync with similar code from coreutils' remove.c
38130         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38131         Guard also with "#if defined __linux__", since for now at least,
38132         this code is Linux-kernel-specific.
38133
38134 2008-10-02  Jim Meyering  <meyering@redhat.com>
38135
38136         fts: bug fixes
38137         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38138         Include <sys/vfs.h>, not <sys/statfs.h>.
38139
38140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38141         Include <sys/vfs.h>, not <sys/statfs.h>.
38142
38143 2008-10-01  Bruno Haible  <bruno@clisp.org>
38144
38145         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38147         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38148         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38149         * doc/posix-functions/posix_spawnp.texi: Likewise.
38150         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38151         whether posix_spawn actually works.
38152         * m4/pipe.m4 (gl_PIPE): Likewise.
38153         * modules/execute (Files): Add m4/posix_spawn.m4.
38154         * modules/pipe (Files): Add m4/posix_spawn.m4.
38155         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38156
38157 2008-10-01  Jim Meyering  <meyering@redhat.com>
38158
38159         remove trailing spaces
38160         * NEWS: Likewise.
38161         * lib/poll.c (poll): Likewise.
38162         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38163         * lib/winsock.c (rpl_close): Likewise.
38164         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38165         * modules/yield: Likewise.
38166         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38167         * tests/test-sys_select.c (connect_to_socket): Likewise.
38168
38169         fts.c: adjust a new interface to be more generally useful
38170         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38171         (fts_build): Adjust caller.
38172
38173 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38174
38175         * modules/cond-tests: New file.
38176         * tests/test-cond.c: New file.
38177
38178 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38179             Bruno Haible  <bruno@clisp.org>
38180
38181         * modules/cond (Dependencies): Add errno, time.
38182         * lib/glthread/cond.h: Include <time.h>.
38183         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38184         across platforms.
38185
38186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38187             Bruno Haible  <bruno@clisp.org>
38188
38189         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38190
38191 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38192             Bruno Haible  <bruno@clisp.org>
38193
38194         * modules/tls-tests (Depends-on): Add thread, yield.
38195         (configure.ac): Remove all checks.
38196         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38197         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38198         gl_thread_self): Remove definitions. Include glthread/thread.h and
38199         glthread/yield.h instead.
38200         (test_tls): Pass an additional NULL argument to gl_thread_join.
38201
38202 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38203             Bruno Haible  <bruno@clisp.org>
38204
38205         * modules/lock-tests (Depends-on): Add thread, yield.
38206         (configure.ac): Remove all checks.
38207         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38208         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38209         gl_thread_self): Remove definitions. Include glthread/thread.h and
38210         glthread/yield.h instead.
38211         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38212         additional NULL argument to gl_thread_join.
38213
38214 2008-09-30  Bruno Haible  <bruno@clisp.org>
38215
38216         Fix the Win32 implementation of the 'thread' module.
38217         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38218         pointer type.
38219         (gl_thread_self): Invoke gl_thread_self_func.
38220         (gl_thread_self_func): New declaration.
38221         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38222         (do_init_self_key, init_self_key): New functions.
38223         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38224         Remove some fields.
38225         (running_threads, running_lock): Remove variables.
38226         (get_current_thread_handle): New function.
38227         (gl_thread_self_func, wrapper_func, glthread_create_func,
38228         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38229         simplified.
38230
38231 2008-09-30  Bruno Haible  <bruno@clisp.org>
38232
38233         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38234         files.
38235
38236 2008-09-30  Jim Meyering  <meyering@redhat.com>
38237
38238         fts.m4: correct the test for statfs.f_type
38239         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38240         when checking for statfs.f_type.
38241
38242 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38243
38244         tests: avoid some compiler warnings
38245         * tests/test-memchr.c (main): Pass NULL indirectly.
38246         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38247
38248 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38249
38250         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38251         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38252         exactly specified dayshifts.
38253         (dayshift): New rule.
38254         (rel): Add dayshift.
38255         (relative_time_table) [tomorrow, yesterday, today, now]:
38256         Use tDAY_SHIFT in place of tDAY_UNIT.
38257         * tests/test-getdate.c: Add tests for now-disallowed countable
38258         dayshifts, e.g., "4 yesterday ago".
38259
38260 2008-09-29  Bruno Haible  <bruno@clisp.org>
38261
38262         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38263         * tests/test-posix_spawn1.in.sh: Renamed from
38264         tests/test-posix_spawn.in.sh.
38265         * tests/test-posix_spawn2.c: New file.
38266         * tests/test-posix_spawn2.in.sh: New file.
38267         * modules/posix_spawnp-tests (Files): Update.
38268         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38269
38270 2008-09-29  Bruno Haible  <bruno@clisp.org>
38271
38272         Propagate effects of putenv/setenv/unsetenv to child processes.
38273         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38274         * lib/pipe.c (create_pipe): Likewise.
38275
38276 2008-09-29  Bruno Haible  <bruno@clisp.org>
38277
38278         Enable use of shell scripts as executables in mingw.
38279         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38280         run the program as a shell script.
38281         * lib/pipe.c (create_pipe): Likewise.
38282         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38283         resulting array.
38284
38285 2008-09-29  Eric Blake  <ebb9@byu.net>
38286
38287         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38288
38289 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38290
38291         * doc/posix-functions/accept.texi: Update mingw problems.
38292         * doc/posix-functions/bind.texi: Update mingw problems.
38293         * doc/posix-functions/close.texi: Update mingw problems.
38294         * doc/posix-functions/connect.texi: Update mingw problems.
38295         * doc/posix-functions/getpeername.texi: Update mingw problems.
38296         * doc/posix-functions/getsockname.texi: Update mingw problems.
38297         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38298         * doc/posix-functions/ioctl.texi: Update mingw problems.
38299         * doc/posix-functions/listen.texi: Update mingw problems.
38300         * doc/posix-functions/recv.texi: Update mingw problems.
38301         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38302         * doc/posix-functions/select.texi: Update mingw problems.
38303         * doc/posix-functions/send.texi: Update mingw problems.
38304         * doc/posix-functions/sendto.texi: Update mingw problems.
38305         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38306         * doc/posix-functions/socket.texi: Update mingw problems.
38307
38308 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38309             Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/sys_select.in.h: Include sys/time.h.
38312         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38313         * modules/sys_select: Depend on sys_time.
38314         * tests/test-sys_select.c: Test that sys/select.h defines struct
38315         timeval fully.
38316
38317 2008-09-29  Bruno Haible  <bruno@clisp.org>
38318
38319         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38320         * lib/sys_select.in.h: Likewise.
38321
38322 2008-09-29  Bruno Haible  <bruno@clisp.org>
38323
38324         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38325
38326 2008-09-29  Bruno Haible  <bruno@clisp.org>
38327
38328         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38329         Set LIBSOCKET instead of augmenting LIBS.
38330         * modules/sockets (Link): New section.
38331         * modules/sockets-tests (test_sockets_LDADD): New variable.
38332         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38333         * modules/poll-tests (test_poll_LDADD): New variable.
38334         * NEWS: Document the change.
38335
38336 2008-09-29  Bruno Haible  <bruno@clisp.org>
38337
38338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38339         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38340         ARPA_INET_H directly.
38341         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38342
38343 2008-09-28  Bruno Haible  <bruno@clisp.org>
38344
38345         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38346         from gl_HEADER_SYS_SOCKET.
38347         (gl_HEADER_SYS_SOCKET): Invoke it.
38348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38349
38350 2008-09-28  Bruno Haible  <bruno@clisp.org>
38351
38352         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38353         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38354         Needed on OSF/1 4.0.
38355
38356 2008-09-28  Bruno Haible  <bruno@clisp.org>
38357
38358         Override open more carefully.
38359         * lib/open.c (orig_open): New function.
38360         (rpl_open): Use orig_open instead of open.
38361         * lib/fcntl.in.h: Add special invocation convention.
38362         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38363         (gl_FUNC_OPEN): Invoke it.
38364
38365         Override freopen more carefully.
38366         * lib/freopen.c (orig_freopen): New function.
38367         (rpl_freopen): Use orig_freopen instead of freopen.
38368         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38369         (gl_FUNC_FREOPEN): Invoke it.
38370
38371         Override fopen more carefully.
38372         * lib/fopen.c (orig_fopen): New function.
38373         (rpl_fopen): Use orig_fopen instead of fopen.
38374         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38375         (gl_FUNC_FOPEN): Invoke it.
38376         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38377
38378 2008-09-28  Bruno Haible  <bruno@clisp.org>
38379
38380         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38381         SIGPIPE.
38382
38383 2008-09-28  Bruno Haible  <bruno@clisp.org>
38384
38385         * tests/test-sigaction.c (handler, main): Disable the check whether
38386         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38387         glibc systems with LinuxThreads.
38388
38389 2008-09-28  Bruno Haible  <bruno@clisp.org>
38390
38391         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38392
38393         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38394         with AIX xlc.
38395         * lib/fcntl.in.h (open): Likewise.
38396         Reported by Rainer Tammer <tammer@tammer.net>.
38397
38398 2008-09-28  Bruno Haible  <bruno@clisp.org>
38399
38400         * modules/posix_spawnp-tests: New file.
38401         * tests/test-posix_spawn.c: New file.
38402         * tests/test-posix_spawn.in.sh: New file.
38403
38404         New module 'posix_spawnp'.
38405         * modules/posix_spawnp: New file.
38406         * lib/spawnp.c: New file, from GNU libc with modifications.
38407         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38408
38409         New module 'posix_spawn'.
38410         * modules/posix_spawn: New file.
38411         * lib/spawn.c: New file, from GNU libc with modifications.
38412         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38413
38414         New module 'posix_spawnattr_destroy'.
38415         * modules/posix_spawnattr_destroy: New file.
38416         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38417         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38418         module.
38419
38420         New module 'posix_spawnattr_setsigmask'.
38421         * modules/posix_spawnattr_setsigmask: New file.
38422         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38423         modifications.
38424         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38425         new module.
38426
38427         New module 'posix_spawnattr_getsigmask'.
38428         * modules/posix_spawnattr_getsigmask: New file.
38429         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38430         modifications.
38431         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38432         new module.
38433
38434         New module 'posix_spawnattr_setsigdefault'.
38435         * modules/posix_spawnattr_setsigdefault: New file.
38436         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38437         modifications.
38438         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38439         new module.
38440
38441         New module 'posix_spawnattr_getsigdefault'.
38442         * modules/posix_spawnattr_getsigdefault: New file.
38443         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38444         modifications.
38445         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38446         new module.
38447
38448         New module 'posix_spawnattr_setschedpolicy'.
38449         * modules/posix_spawnattr_setschedpolicy: New file.
38450         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38451         modifications.
38452         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38453         new module.
38454
38455         New module 'posix_spawnattr_getschedpolicy'.
38456         * modules/posix_spawnattr_getschedpolicy: New file.
38457         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38458         modifications.
38459         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38460         new module.
38461
38462         New module 'posix_spawnattr_setschedparam'.
38463         * modules/posix_spawnattr_setschedparam: New file.
38464         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38465         modifications.
38466         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38467         new module.
38468
38469         New module 'posix_spawnattr_getschedparam'.
38470         * modules/posix_spawnattr_getschedparam: New file.
38471         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38472         modifications.
38473         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38474         new module.
38475
38476         New module 'posix_spawnattr_setpgroup'.
38477         * modules/posix_spawnattr_setpgroup: New file.
38478         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38479         modifications.
38480         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38481         module.
38482
38483         New module 'posix_spawnattr_getpgroup'.
38484         * modules/posix_spawnattr_getpgroup: New file.
38485         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38486         modifications.
38487         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38488         module.
38489
38490         New module 'posix_spawnattr_setflags'.
38491         * modules/posix_spawnattr_setflags: New file.
38492         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38493         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38494         module.
38495
38496         New module 'posix_spawnattr_getflags'.
38497         * modules/posix_spawnattr_getflags: New file.
38498         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38499         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38500         module.
38501
38502         New module 'posix_spawnattr_init'.
38503         * modules/posix_spawnattr_init: New file.
38504         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38505         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38506         module.
38507
38508         New module 'posix_spawn_file_actions_destroy'.
38509         * modules/posix_spawn_file_actions_destroy: New file.
38510         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38511         modifications.
38512         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38513         the new module.
38514
38515         New module 'posix_spawn_file_actions_addopen'.
38516         * modules/posix_spawn_file_actions_addopen: New file.
38517         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38518         modifications.
38519         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38520         the new module.
38521
38522         New module 'posix_spawn_file_actions_adddup2'.
38523         * modules/posix_spawn_file_actions_adddup2: New file.
38524         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38525         modifications.
38526         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38527         the new module.
38528
38529         New module 'posix_spawn_file_actions_addclose'.
38530         * modules/posix_spawn_file_actions_addclose: New file.
38531         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38532         modifications.
38533         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38534         the new module.
38535
38536         New module 'posix_spawn_file_actions_init'.
38537         * modules/posix_spawn_file_actions_init: New file.
38538         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38539         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38540         new module.
38541
38542         New module 'posix_spawn-internal'.
38543         * modules/posix_spawn-internal: New file.
38544         * lib/spawn_int.h: New file, from GNU libc with modifications.
38545         * lib/spawni.c: New file, from GNU libc with modifications.
38546         * m4/posix_spawn.m4: New file.
38547
38548         New module 'spawn'.
38549         * modules/spawn: New file.
38550         * lib/spawn.in.h: New file, from GNU libc with modifications.
38551         * m4/spawn_h.m4: New file.
38552         * doc/posix-headers/spawn.texi: Mention the new module.
38553
38554 2008-09-28  Bruno Haible  <bruno@clisp.org>
38555
38556         * modules/sched-tests: New file.
38557         * tests/test-sched.c: New file.
38558
38559         New module 'sched'.
38560         * modules/sched: New file.
38561         * lib/sched.in.h: New file.
38562         * m4/sched_h.m4: New file.
38563         * doc/posix-headers/sched.texi: Mention the new module.
38564
38565 2008-09-27  Eric Blake  <ebb9@byu.net>
38566
38567         Fix previous patch, and tweak references to $0.
38568         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38569         (func_version, func_gnulib_dir): Don't call this program
38570         gnulib-tool.
38571         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38572         with using $0 in function.
38573         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38574         (func_fatal_error): Reuse the name the user invoked us with.
38575
38576 2008-09-27  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38579         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38580         (gl_ICONV_H): Not here.
38581         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38582         instead of assigning ICONV_H directly.
38583
38584         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38586         WCHAR_H directly.
38587
38588 2008-09-27  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38591         * modules/arpa_inet (Depends-on): Add link-warning.
38592         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38593         * modules/unistd (Makefile.am): Likewise.
38594
38595 2008-09-26  Bruno Haible  <bruno@clisp.org>
38596
38597         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38598         variables.
38599         (func_version): Essentially copied from gnulib-tool.
38600         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38601         func_readlink): Copied from gnulib-tool.
38602
38603 2008-09-26  Bruno Haible  <bruno@clisp.org>
38604
38605         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38606         invoking git-version-gen.
38607
38608 2008-09-26  Bruno Haible  <bruno@clisp.org>
38609
38610         * posix-modules: Update to directory names changed on 2008-01-19.
38611         Remove commas in output before splitting into words. No more need to
38612         avoid 'ftruncate' since 2007-02-19.
38613
38614 2008-09-26  Bruno Haible  <bruno@clisp.org>
38615
38616         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38617
38618 2008-09-26  Bruno Haible  <bruno@clisp.org>
38619
38620         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38621         * modules/fwriteerror (Depends-on): Add errno.
38622
38623 2008-09-26  Bruno Haible  <bruno@clisp.org>
38624
38625         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38626         * tests/test-vc-list-files-cvs.sh: Likewise.
38627
38628 2008-09-26  Bruno Haible  <bruno@clisp.org>
38629
38630         * doc/posix-headers/sys_resource.texi: Reorder items.
38631
38632 2008-09-26  Jim Meyering  <meyering@redhat.com>
38633
38634         fts: tweak inode comparison function
38635         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38636         inode numbers, as documented.
38637
38638         fts: sort dirent entries on inode number before traversing
38639         This avoids a quadratic, seek-related performance penalty when
38640         operating on a directory containing many entries (measurable at 10k;
38641         3.5 hours at 2 million entries with a cold cache) on certain types
38642         of file systems, including ext3 and ext4, but not tmpfs.
38643         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38644         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38645         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38646         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38647         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38648         (fts_build): Set the stat.st_ino member from D_INO.
38649         If it is likely to be useful, sort dirent entries on inode number.
38650
38651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38652         and the struct statfs.f_type member.
38653         * modules/fts (Depends-on): Add d-ino.
38654
38655 2008-09-26  Bruno Haible  <bruno@clisp.org>
38656
38657         * modules/sigpipe-die (Depends-on): Add sigpipe.
38658
38659         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38660         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38661         and GNULIB_STDIO_H_SIGPIPE are set.
38662         * lib/stdio-write.c: New file.
38663         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38664         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38665         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38666         REPLACE_STDIO_WRITE_FUNCS.
38667         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38668         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38669         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38670         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38671         * modules/stdio (Files): Add lib/stdio-write.c.
38672         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38673         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38674         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38675         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38676         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38677         REPLACE_FPRINTF_POSIX.
38678         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38679         REPLACE_PRINTF_POSIX.
38680         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38681         REPLACE_VFPRINTF_POSIX.
38682         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38683         REPLACE_VPRINTF_POSIX.
38684         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38685         SIGPIPE issue.
38686         * doc/posix-functions/fputc.texi: Likewise.
38687         * doc/posix-functions/fputs.texi: Likewise.
38688         * doc/posix-functions/fwrite.texi: Likewise.
38689         * doc/posix-functions/printf.texi: Likewise.
38690         * doc/posix-functions/putc.texi: Likewise.
38691         * doc/posix-functions/putchar.texi: Likewise.
38692         * doc/posix-functions/puts.texi: Likewise.
38693         * doc/posix-functions/vfprintf.texi: Likewise.
38694         * doc/posix-functions/vprintf.texi: Likewise.
38695
38696         * modules/safe-write (Depends-on): Add write.
38697
38698         * modules/sigpipe-tests: New file.
38699         * tests/test-sigpipe.c: New file.
38700         * tests/test-sigpipe.sh: New file.
38701
38702         * modules/write: New file.
38703         * lib/unistd.in.h: Include <sys/types.h>.
38704         (write): New declaration.
38705         * lib/write.c: New file.
38706         * m4/write.m4: New file.
38707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38708         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38709         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38710         GNULIB_WRITE, REPLACE_WRITE.
38711         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38712         and the SIGPIPE issue.
38713
38714         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38715         (raise): New declaration.
38716         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38717         (ext_signal): New function.
38718         (rpl_raise): New function.
38719         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38720         GNULIB_SIGNAL_H_SIGPIPE.
38721         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38722         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38723
38724         * modules/sigpipe: New file.
38725         * m4/sigpipe.m4: New file.
38726
38727 2008-09-25  Derek Price  <derek@ximbiot.com>
38728             Bruno Haible  <bruno@clisp.org>
38729
38730         * gnulib-tool (func_import): Report all license incompatibilities, not
38731         just the first one.
38732
38733 2008-09-25  Bruno Haible  <bruno@clisp.org>
38734
38735         * gnulib-tool (func_import): When computing the edits, consider not
38736         only the Makefile.ams that exist but also those that will be generated.
38737
38738 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38739
38740         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38741         fixes gnulib-tool --test warning about duplicate dependency.
38742
38743 2008-09-25  Bruno Haible  <bruno@clisp.org>
38744
38745         * gnulib-tool: Don't ask the user to perform edits in the generated
38746         Makefile.ams.
38747         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38748         apply to the Makefile.am being generated.
38749         (func_emit_tests_Makefile_am): Execute edits that apply to the
38750         Makefile.am being generated.
38751         (func_import): Setup list of Makefile.am edits before emitting the
38752         Makefile.ams, not at the end.
38753         (func_create_testdir): Update.
38754         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38755
38756 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38757
38758         * gnulib-tool (func_import): Store the --tests-base option in the
38759         comment in gnulib-cache.m4.
38760
38761 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38762
38763         * NEWS: Document increased portability that sys_select now provides.
38764
38765         * lib/sys_select.in.h: Install select wrapper.
38766         * lib/sys_socket.in.h: Use more descriptive name when there is no
38767         select wrapper.
38768         * lib/winsock-select.c: New.
38769         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38770         Require gl_HEADER_SYS_SOCKET.
38771         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38772         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38773         * tests/test-sys_select.c: Add functional tests.
38774
38775 2008-09-24  Eric Blake  <ebb9@byu.net>
38776
38777         open, fopen: close fd leak in last patch
38778         * lib/open.c (rpl_open): Close fd before returning error.
38779         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38780         * doc/posix-functions/open.texi (open): Document that Irix also
38781         has the bug.
38782         * doc/posix-functions/fopen.texi (fopen): Likewise.
38783         Reported by Paolo Bonzini.
38784
38785 2008-09-24  Bruno Haible  <bruno@clisp.org>
38786
38787         Ensure that a filename ending in a slash cannot be used to access a
38788         non-directory.
38789         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38790         to check whether it's really a directory.
38791         * lib/fopen.c: Include fcntl.h, unistd.h.
38792         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38793         and fdopen().
38794         * modules/fopen (Depends-on): Add unistd.
38795         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38796         * tests/test-fopen.c (main): Likewise.
38797         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38798         * doc/posix-functions/fopen.texi: Likewise.
38799         Reported by Eric Blake.
38800
38801 2008-09-23  Eric Blake  <ebb9@byu.net>
38802
38803         c-stack: avoid compiler optimizations when provoking overflow
38804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38805         recursion harder to optimize, to ensure a stack overflow occurs.
38806         * tests/test-c-stack.c (recurse): Likewise.
38807         Borrowed from libsigsegv.
38808
38809         c-stack: work around Irix sigaltstack bug
38810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38811         whether sigaltstack uses wrong end of stack_t (copied in part from
38812         libsigsegv).
38813         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38814         Irix bug, without requiring an over-allocation.
38815         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38816         bug.
38817
38818         fopen: document mingw bug on directories
38819         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38820         not allowing a stream visiting a directory, even though reading
38821         from such a stream is not portable.
38822
38823 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38824
38825         * lib/poll.c: Rewrite.
38826         * modules/poll: Depend on alloca.
38827
38828 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38829
38830         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38831         instead define prototypes for a full set of wrappers.  Ensure
38832         that Cygwin does not use the compatibility code, which is only
38833         for MinGW.
38834         * lib/winsock.c: New.
38835         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38836         * modules/sys_socket: Add lib/winsock.c.
38837
38838         * modules/poll-tests: Add errno and perror.
38839         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38840
38841 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38842
38843         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38844
38845 2008-09-23  Bruno Haible  <bruno@clisp.org>
38846
38847         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38848         * doc/glibc-functions/*: Likewise.
38849
38850 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38851
38852         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38853         success.
38854
38855 2008-09-22  Eric Blake  <ebb9@byu.net>
38856             Bruno Haible  <bruno@clisp.org>
38857
38858         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38859         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38860         supply %A but mishandle pseudo-NaN.
38861         Reported by Simon Josefsson.
38862
38863 2008-09-21  Bruno Haible  <bruno@clisp.org>
38864
38865         * tests/test-lock.c (main): Tweak skip message.
38866         * tests/test-tls.c (main): Likewise.
38867
38868 2008-09-21  Bruno Haible  <bruno@clisp.org>
38869
38870         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38871         whether 'struct sigaction' has sa_sigaction here...
38872         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38873         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38874
38875 2008-09-21  Bruno Haible  <bruno@clisp.org>
38876
38877         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38878         section.
38879         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38880         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38881         the new section.
38882         (Support for obsolete systems lacking POSIX:2001): New section.
38883         (String handling <string.h>): Move strdup to the new section.
38884         Suggested by Simon Josefsson and Paolo Bonzini.
38885
38886 2008-09-21  Bruno Haible  <bruno@clisp.org>
38887
38888         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38889         exponents in %e and %g results on 'long double'. Needed for mingw's
38890         improved *printf functions.
38891         * tests/test-vasprintf-posix.c (test_function): Likewise.
38892         * tests/test-snprintf-posix.h (test_function): Likewise.
38893         * tests/test-sprintf-posix.h (test_function): Likewise.
38894         Reported by Eric Blake.
38895
38896 2008-09-21  Bruno Haible  <bruno@clisp.org>
38897
38898         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38899         * tests/test-sprintf-posix.h (test_function): Likewise.
38900
38901 2008-09-21  Bruno Haible  <bruno@clisp.org>
38902
38903         * modules/getpass (Depends-on): Add strdup-posix.
38904
38905         New module 'strdup-posix'.
38906         * modules/strdup-posix: New file.
38907         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38908         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38910         REPLACE_STRDUP.
38911         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38912         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38914         strdup-posix.
38915
38916         * modules/strdup (Depends-on): Remove malloc-posix.
38917
38918 2008-09-20  Bruno Haible  <bruno@clisp.org>
38919
38920         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38921         Wildenhues.
38922
38923 2008-09-20  Bruno Haible  <bruno@clisp.org>
38924
38925         Ensure that wint_t gets defined on IRIX 5.3.
38926         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38927         * lib/wctype.in.h (wint_t): Likewise.
38928         (__wctype_wint_t): Remove type.
38929         (isw*): Use wint_t instead of __wctype_wint_t.
38930         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38931         * modules/wchar (Files): Add m4/wint_t.m4.
38932         (Makefile.am): Substitute HAVE_WINT_T.
38933         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38934         * tests/test-wctype.c: Check that wint_t is defined.
38935         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38936         * doc/posix-headers/wctype.texi: Likewise.
38937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38938
38939 2008-09-18  Bruno Haible  <bruno@clisp.org>
38940
38941         * gnulib-tool (func_exit): Update comment.
38942
38943 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38944
38945         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38946         assumes strdup exists and does not depend on strdup to return
38947         ENOMEM on out of memory conditions.
38948
38949 2008-09-18  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38952         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38953         digits for the exponent.
38954
38955 2008-09-18  Jim Meyering  <meyering@redhat.com>
38956             Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/vasnprintf.c (decimal_point_char): Define also if
38959         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38960
38961 2008-09-16  Bruno Haible  <bruno@clisp.org>
38962         and Eric Blake  <ebb9@byu.net>
38963
38964         vasnprintf: support Irix 5.3
38965         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38966         that mishandle long double infinity.
38967         Reported by Tom G. Christensen.
38968
38969 2008-09-16  Bruno Haible  <bruno@clisp.org>
38970
38971         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38972         Solaris 9.
38973         * doc/glibc-functions/alphasort.texi: Likewise.
38974         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38975
38976 2008-09-16  Jim Meyering  <meyering@redhat.com>
38977
38978         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38979         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38980         a umask modification leak out of a subshell.  Otherwise, the
38981         opensolaris /bin/sh would be accepted and thus cause unwarranted
38982         failures in the coreutils test suite.
38983
38984 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38985
38986         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38987         to succeed.
38988
38989 2008-09-16  Jim Meyering  <meyering@redhat.com>
38990
38991         avoid spurious test failure when library is built without ACL support
38992         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38993         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38994         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38995         * tests/test-copy-acl.sh: Likewise.
38996
38997 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38998
38999         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39000         based on character occurrence counts.
39001
39002 2008-09-15  Eric Blake  <ebb9@byu.net>
39003
39004         tests: avoid some compiler warnings
39005         * tests/test-memchr.c (main): Pass NULL indirectly.
39006         * tests/test-closein.c (main): Avoid unused variable.
39007
39008 2008-09-15  Bruno Haible  <bruno@clisp.org>
39009
39010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39011         are missing on OpenBSD 4.0 individually.
39012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39013
39014 2008-09-15  Bruno Haible  <bruno@clisp.org>
39015
39016         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39017         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39018         * doc/posix-functions/perror.texi: Likewise.
39019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39020         is missing.
39021         Reported by Eric Blake.
39022
39023         * lib/errno.in.h: Use replacement values >= 2000.
39024         Reported by Eric Blake.
39025
39026 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39027
39028         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39029         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39030         limit.
39031         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39032         compareseq was aborted.
39033
39034 2008-09-14  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39037         yvec_edit_count.
39038         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39039         (fstrcmp_bounded): Simplify result computation accordingly.
39040
39041 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39042
39043         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39044         (fstrcmp): Define in terms of fstrcmp_bounded.
39045         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39046         lower_bound argument.
39047         Return quickly if the result is certainly < lower_bound.
39048         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39049
39050 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39051
39052         * lib/diffseq.h (EARLY_ABORT): New macro.
39053         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39054         evaluates to true.
39055
39056 2008-09-14  Bruno Haible  <bruno@clisp.org>
39057
39058         * modules/perror-tests: New file.
39059         * tests/test-perror.sh: New file.
39060         * tests/test-perror.c: New file.
39061
39062         New module 'perror'.
39063         * lib/stdio.in.h (perror): New declaration.
39064         * lib/perror.c: New file.
39065         * m4/perror.m4: New file.
39066         * modules/perror: New file.
39067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39068         * doc/posix-functions/perror.texi: Mention the perror module.
39069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39070         REPLACE_PERROR.
39071         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39072         REPLACE_PERROR.
39073
39074 2008-09-14  Bruno Haible  <bruno@clisp.org>
39075
39076         * modules/stdio (Makefile.am): Reorder to match the order in
39077         lib/stdio.in.h.
39078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39079
39080 2008-09-13  Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39083
39084 2008-09-13  Bruno Haible  <bruno@clisp.org>
39085
39086         Extend strerror to cover the added errno values.
39087         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39088         (rpl_strerror): Provide error messages for the added errno values and
39089         for the WSA* values.
39090         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39091         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39092         strerror.
39093         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39094         * modules/strerror (Depends-on): Add errno.
39095         * doc/posix-functions/strerror.texi: Document the change.
39096         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39097         and EOVERFLOW.
39098
39099 2008-09-13  Bruno Haible  <bruno@clisp.org>
39100
39101         * modules/EOVERFLOW: Remove file.
39102         * m4/eoverflow.m4: Remove file.
39103         * modules/EOVERFLOW-tests: Remove file.
39104         * tests/test-EOVERFLOW.c: Remove file.
39105         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39106         * modules/ftell (Depends-on): Likewise.
39107         * modules/getdelim (Depends-on): Likewise.
39108         * modules/getugroups (Depends-on): Likewise.
39109         * modules/poll (Depends-on): Likewise.
39110         * modules/snprintf (Depends-on): Likewise.
39111         * modules/sprintf-posix (Depends-on): Likewise.
39112         * modules/vasnprintf (Depends-on): Likewise.
39113         * modules/vasprintf (Depends-on): Likewise.
39114         * modules/vfprintf-posix (Depends-on): Likewise.
39115         * modules/vsnprintf (Depends-on): Likewise.
39116         * modules/vsprintf-posix (Depends-on): Likewise.
39117         * modules/xvasprintf (Depends-on): Likewise.
39118         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39119         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39120         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39121         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39122         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39123         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39124         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39125         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39126         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39127         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39128         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39129         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39130         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39131         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39132         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39133         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39135         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39136         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39137         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39138         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39139         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39140         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39141         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39142         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39143         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39144         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39145         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39146         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39147         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39148         * MODULES.html.sh: Remove EOVERFLOW.
39149         * NEWS: Mention the change.
39150
39151 2008-09-13  Bruno Haible  <bruno@clisp.org>
39152
39153         * modules/errno-tests: New file.
39154         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39155
39156         * lib/errno.in.h: New file.
39157         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39158         * modules/errno: New file.
39159         * doc/posix-headers/errno.texi: Update documentation.
39160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39161
39162 2008-09-13  Bruno Haible  <bruno@clisp.org>
39163
39164         * tests/test-poll.c: Use #if for native Windows, rather than testing
39165         __MSVCRT__.
39166
39167 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39168             Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/glob.c: Don't include <pwd.h> on native Windows.
39171         (WINDOWS32): New macro.
39172         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39173
39174 2008-09-13  Bruno Haible  <bruno@clisp.org>
39175
39176         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39177         (ETIMEDOUT): Remove macro.
39178         (glthread_cond_timedwait_multithreaded): New declaration.
39179         (glthread_cond_timedwait): Use it.
39180         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39181         (glthread_cond_timedwait_multithreaded): New function.
39182
39183 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39184
39185         * modules/poll-tests: Do not check for io.h.
39186         * tests/test-poll.c: Check for __MSVCRT__ instead.
39187
39188 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39189
39190         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39191         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39192         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39193
39194 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39195
39196         * modules/poll-tests: New.
39197         * tests/test-poll.c: New.
39198
39199 2008-09-12  Eric Blake  <ebb9@byu.net>
39200
39201         frexp: test for NetBSD failure on -0.0
39202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39203         not all, bugs from NetBSD 3.0 have been fixed.
39204         * doc/posix-functions/frexp.texi (frexp): Document bug.
39205         Reported by Thomas Klausner.
39206
39207         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39208         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39209         literal -0.0.
39210         Reported by Jonathan C. Patschke <jp@centtech.com>.
39211
39212 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39213
39214         * lib/glthread/cond.h: Use dummy implementation also if
39215         USE_WIN32_THREADS.
39216
39217 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39218
39219         * modules/fnmatch-posix (License): Change to LGPLv2+.
39220         * modules/fnmatch-gnu (License): Likewise.
39221
39222 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39223
39224         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39225
39226 2008-09-11  Jim Meyering  <meyering@redhat.com>
39227
39228         * users.txt: Add gtk-vnc.
39229
39230 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39231
39232         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39233         rotate amounts.
39234
39235         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39236         required for 16-bit and 8-bit rotates.
39237         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39238         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39239         UINT8_MAX instead of hard-coded constants.
39240         Suggested by Paul Eggert.
39241
39242 2008-09-07  Bruno Haible  <bruno@clisp.org>
39243
39244         * tests/test-striconveh.c (main): Check behaviour when converting from
39245         UTF-7.
39246
39247         Make striconveh work better with stateful encodings.
39248         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39249         that iconv does not increment the inptr when returning -1/EINVAL.
39250
39251 2008-09-07  Bruno Haible  <bruno@clisp.org>
39252
39253         * build-aux/config.rpath: Update according to libtool-2.2.6.
39254         * build-aux/config.libpath: Likewise.
39255
39256 2008-09-06  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39259         * lib/freadptr.c (freadptr): Likewise.
39260         * lib/freadseek.c (freadptrinc): Likewise.
39261         Reported by Simon Josefsson.
39262
39263 2008-09-06  Bruno Haible  <bruno@clisp.org>
39264
39265         * modules/freadptr (License): Change to LGPLv2+.
39266         * modules/freadseek (License): Likewise.
39267         Suggested by Eric Blake.
39268
39269         * modules/memchr2 (License): Change to LGPLv2+.
39270         Approved by Eric Blake.
39271
39272 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39273             Bruno Haible  <bruno@clisp.org>
39274
39275         Make gnulib-tool work with native 'sed' on AIX.
39276         * gnulib-tool (sed_noop): New variable.
39277         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39278         func_add_or_update, func_create_testdir): Use it to initialize sed
39279         script variables.
39280         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39281
39282 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39283             Bruno Haible  <bruno@clisp.org>
39284
39285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39286         also works after #include directives.
39287
39288 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39289
39290         getdate.y: reject an out-of-range timezone value
39291         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39292         the range [-24...+24].  When specified with only one or two digits,
39293         * tests/test-getdate.c: Tests for the fix.
39294         * doc/getdate.texi: Document this change.
39295
39296 2008-09-03  Bruno Haible  <bruno@clisp.org>
39297
39298         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39299
39300 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39301
39302         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39303         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39304         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39305         Blake <ebb9@byu.net>.
39306
39307         * tests/test-bitrotate.c: Add more test vectors.
39308
39309 2008-09-02  Eric Blake  <ebb9@byu.net>
39310
39311         vasnprintf-posix: handle large precision via %.*d
39312         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39313         when handling it ourselves.
39314         * tests/test-vasnprintf-posix.c (test_function): Add test.
39315         * tests/test-snprintf-posix.h (test_function): Likewise.
39316         * tests/test-sprintf-posix.h (test_function): Likewise.
39317         * tests/test-vasprintf-posix.c (test_function): Likewise.
39318         Reported by Alain Guibert.
39319
39320 2008-09-01  Eric Blake  <ebb9@byu.net>
39321
39322         c-stack: make configure-time check more robust
39323         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39324         successful sigaction call.
39325         Reported by Tom G. Christensen.
39326
39327 2008-09-01  Bruno Haible  <bruno@clisp.org>
39328
39329         New module 'findprog-lgpl'.
39330         * modules/findprog-lgpl: New file.
39331         * lib/findprog-lgpl.c: New file.
39332         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39333         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39334         to decide whether to use strdup or xstrdup, concatenated_filename or
39335         xconcatenated_filename.
39336
39337 2008-09-01  Bruno Haible  <bruno@clisp.org>
39338
39339         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39340         'xconcat-filename' (GPL).
39341         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39342         (License): Change to LGPLv2+.
39343         * modules/xconcat-filename: New file.
39344         * lib/concat-filename.h (concatenated_filename): Change specification.
39345         (xconcatenated_filename): New declaration.
39346         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39347         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39348         memory situations.
39349         * lib/xconcat-filename.c: New file.
39350         * NEWS: Mention the change.
39351         * lib/findprog.c: Include concat-filename.h, not filename.h.
39352         (find_in_path): Use xconcatenated_filename instead of
39353         concatenated_filename.
39354         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39355         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39356         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39357         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39358         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39359         instead of concatenated_filename.
39360         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39361         (execute_java_class): Use xconcatenated_filename instead of
39362         concatenated_filename.
39363         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39364         * modules/javacomp (Depends-on): Likewise.
39365         * modules/javaexec (Depends-on): Likewise.
39366
39367 2008-09-01  Bruno Haible  <bruno@clisp.org>
39368
39369         Split module 'filename' into 'filename' and 'concat-filename'.
39370         * modules/filename: Keep only lib/filename.h.
39371         (License): Change to LGPLv2+.
39372         * modules/concat-filename: New file, extracted from modules/filename.
39373         * lib/filename.h (concatenated_filename): Remove declaration.
39374         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39375         * lib/concat-filename.c: Include concat-filename.h.
39376         * NEWS: Mention the change.
39377
39378 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39379
39380         * lib/bitrotate.h (rotl8, rotr8): Add.
39381
39382         * modules/bitrotate (configure.ac): Need
39383         AC_REQUIRE([AC_C_INLINE]).
39384         (Description): Mention stdint.h.  Reported by Bruno Haible
39385         <bruno@clisp.org>.
39386
39387         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39388         Paolo Bonzini <bonzini@gnu.org>.
39389
39390 2008-08-31  Bruno Haible  <bruno@clisp.org>
39391
39392         Assume Solaris specific bi-arch conventions on Solaris systems.
39393         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39394         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39395         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39396         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39397         like acl_libdirstem.
39398         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39399         acl_libdirstem.
39400         * NEWS: Mention the change.
39401         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39402
39403 2008-08-31  Jim Meyering  <meyering@redhat.com>
39404
39405         * lib/strftime.h: Add comments describing the two added arguments.
39406
39407         remove duplicate #include directives
39408         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39409         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39410
39411 2008-08-31  Bruno Haible  <bruno@clisp.org>
39412
39413         New module 'sigpipe-die'.
39414         * modules/sigpipe-die: New file.
39415         * lib/sigpipe-die.h: New file.
39416         * lib/sigpipe-die.c: New file.
39417         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39418
39419 2008-08-31  Bruno Haible  <bruno@clisp.org>
39420
39421         Don't override previously installed signal handlers.
39422         * lib/fatal-signal.c (saved_sigactions): New variable.
39423         (uninstall_handlers): Reset the signal to the saved handler, not
39424         to SIG_DFL (except when ignored).
39425         (install_handlers): Save the previous handlers.
39426
39427 2008-08-30  Bruno Haible  <bruno@clisp.org>
39428
39429         * gnulib-tool (func_reset_sigpipe): New function.
39430         (func_get_automake_snippet, func_modules_transitive_closure,
39431         func_import): Invoke it before a join command that reads from stdin,
39432         to avoid "echo: write error: Broken pipe" error messages on stderr.
39433         Reported by Sam Steingold <sds@gnu.org>.
39434
39435 2008-08-30  Bruno Haible  <bruno@clisp.org>
39436
39437         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39438         Code copied from m4/open.m4.
39439         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39440         access and the filename ends in a slash. Code copied from lib/open.c.
39441         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39442         * tests/test-fopen.c (main): Check against bug with trailing slash.
39443
39444 2008-08-29  Bruno Haible  <bruno@clisp.org>
39445
39446         Avoid some "gcc -pedantic" warnings.
39447         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39448         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39449         * lib/dirent.in.h: Likewise.
39450         * lib/fcntl.in.h: Likewise.
39451         * lib/float.in.h: Likewise.
39452         * lib/iconv.in.h: Likewise.
39453         * lib/inttypes.in.h: Likewise.
39454         * lib/locale.in.h: Likewise.
39455         * lib/math.in.h: Likewise.
39456         * lib/netinet_in.in.h: Likewise.
39457         * lib/search.in.h: Likewise.
39458         * lib/signal.in.h: Likewise.
39459         * lib/stdarg.in.h: Likewise.
39460         * lib/stdint.in.h: Likewise.
39461         * lib/stdio.in.h: Likewise.
39462         * lib/stdlib.in.h: Likewise.
39463         * lib/string.in.h: Likewise.
39464         * lib/strings.in.h: Likewise.
39465         * lib/sys_select.in.h: Likewise.
39466         * lib/sys_socket.in.h: Likewise.
39467         * lib/sys_stat.in.h: Likewise.
39468         * lib/sys_time.in.h: Likewise.
39469         * lib/sysexits.in.h: Likewise.
39470         * lib/time.in.h: Likewise.
39471         * lib/unistd.in.h: Likewise.
39472         * lib/wchar.in.h: Likewise.
39473         * lib/wctype.in.h: Likewise.
39474         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39475         * modules/fchdir (Makefile.am): Likewise.
39476         * modules/fcntl (Makefile.am): Likewise.
39477         * modules/float (Makefile.am): Likewise.
39478         * modules/iconv_open (Makefile.am): Likewise.
39479         * modules/inttypes (Makefile.am): Likewise.
39480         * modules/locale (Makefile.am): Likewise.
39481         * modules/math (Makefile.am): Likewise.
39482         * modules/netinet_in (Makefile.am): Likewise.
39483         * modules/search (Makefile.am): Likewise.
39484         * modules/signal (Makefile.am): Likewise.
39485         * modules/stdarg (Makefile.am): Likewise.
39486         * modules/stdint (Makefile.am): Likewise.
39487         * modules/stdio (Makefile.am): Likewise.
39488         * modules/stdlib (Makefile.am): Likewise.
39489         * modules/string (Makefile.am): Likewise.
39490         * modules/strings (Makefile.am): Likewise.
39491         * modules/sys_select (Makefile.am): Likewise.
39492         * modules/sys_socket (Makefile.am): Likewise.
39493         * modules/sys_stat (Makefile.am): Likewise.
39494         * modules/sys_time (Makefile.am): Likewise.
39495         * modules/sysexits (Makefile.am): Likewise.
39496         * modules/time (Makefile.am): Likewise.
39497         * modules/unistd (Makefile.am): Likewise.
39498         * modules/wchar (Makefile.am): Likewise.
39499         * modules/wctype (Makefile.am): Likewise.
39500         Reported by Reuben Thomas <rrt@sc3d.org>.
39501
39502 2008-08-29  Bruno Haible  <bruno@clisp.org>
39503
39504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39505         any more.
39506
39507 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39508
39509         * MODULES.html.sh (Misc): Add bitrotate.
39510
39511         * modules/bitrotate: New file.
39512
39513         * lib/bitrotate.h: New file.
39514
39515         * modules/bitrotate-tests: New file.
39516
39517         * tests/test-bitrotate.c: New file.
39518
39519         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39520         on the bitrotate module.
39521
39522         * lib/arctwo.c: Use new bitrotate module.
39523
39524 2008-08-29  Jim Meyering  <meyering@redhat.com>
39525
39526         bootstrap: merge changes from coreutils
39527         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39528         of copied files.  Remove a kludge, now that this is fixed.
39529         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39530         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39531         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39532
39533 2008-08-29  Bruno Haible  <bruno@clisp.org>
39534
39535         * MODULES.html.sh: Remove --cvs-urls option.
39536
39537 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39538
39539         maint.mk: adjust to file name change
39540         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39541
39542 2008-08-28  Jim Meyering  <meyering@redhat.com>
39543
39544         * modules/getndelim2 (License): Relicense to LGPLv2+.
39545         Approved by Richard Stallman for the version of 1995, and by
39546         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39547
39548 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39549
39550         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39551         dummy if one is not available.  Do not touch them if
39552         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39553         (getc_maybe_unlocked): New.
39554         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39555
39556 2008-08-26  Eric Blake  <ebb9@byu.net>
39557
39558         doc/INSTALL: resync from autoconf
39559         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39560         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39561         moving...
39562         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39563         * INSTALL: Regenerate.
39564         * INSTALL.ISO: New file.
39565         * INSTALL.UTF-8: Likewise.
39566
39567 2008-08-26  Jim Meyering  <meyering@redhat.com>
39568
39569         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39570         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39571         these definitions conditional, so that they may be overridden, too.
39572
39573 2008-08-26  Bruno Haible  <bruno@clisp.org>
39574
39575         Generate INSTALL file variants with prettier quotes.
39576         * doc/Makefile (INSTALL_PRELUDE): New macro.
39577         (INSTALL): Use it.
39578         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39579
39580 2008-08-26  Bruno Haible  <bruno@clisp.org>
39581
39582         Run makeinfo in an English locale.
39583         * doc/Makefile (MAKEINFO): New variable.
39584
39585 2008-08-26  Bruno Haible  <bruno@clisp.org>
39586
39587         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39588         Suggested by Eric Blake.
39589
39590 2008-08-25  Bruno Haible  <bruno@clisp.org>
39591
39592         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39593
39594 2008-08-25  Eric Blake  <ebb9@byu.net>
39595
39596         c-stack: test that stack overflow can be caught
39597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39598         that platform allows handling stack overflow; at least OS/2 EMX
39599         has sigaltstack, but crashes before transferring control to
39600         handler on stack overflow.
39601         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39602         check for HAVE_STACK_OVERFLOW_HANDLING.
39603         Reported by Elbert Pol.
39604
39605 2008-08-25  Bruno Haible  <bruno@clisp.org>
39606
39607         * doc/posix-functions/strftime.texi: Fix description of strftime
39608         module.
39609
39610 2008-08-24  Bruno Haible  <bruno@clisp.org>
39611
39612         * tests/uniwidth/test-uc_width2.c: New file.
39613         * tests/uniwidth/test-uc_width2.sh: New file.
39614         * modules/uniwidth/width-tests (Files): Add the new files.
39615         (TESTS): Add uniwidth/test-uc_width2.sh.
39616         (TESTS_ENVIRONMENT): New variable.
39617         (check_PROGRAMS): Add test-uc_width2.
39618         (test_uc_width2_SOURCES): New variable.
39619
39620         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39621         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39622         not 0x00AB.
39623         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39624
39625 2008-08-22  Eric Blake  <ebb9@byu.net>
39626
39627         test-lock, test-tls: mention why a test is skipped
39628         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39629         skipped.
39630         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39631
39632         count-one-bits: relax license
39633         * modules/count-one-bits (License): Relicense to LGPLv2+.
39634         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39635
39636 2008-08-22  Andreas Schwab  <schwab@suse.de>
39637
39638         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39639         Remove spurious space in assignment.
39640
39641 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39642
39643         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39644         Paul Eggert <eggert@CS.UCLA.EDU>.
39645
39646 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39647
39648         * modules/gettext: Add m4/threadlib.m4.
39649
39650 2008-08-19  Eric Blake  <ebb9@byu.net>
39651
39652         test-c-stack: fix compilation failure on FreeBSD 5.0
39653         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39654         headers before <sys/resource.h>.
39655         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39656         the bug.
39657         Reported by Nelson H. F. Beebe.
39658
39659         strverscmp: migrate from "strverscmp.h" to <string.h>
39660         * modules/string (Makefile.am): Add new hooks.
39661         * modules/strverscmp (Files): Remove strverscmp.h.
39662         (Depends-on): Add string.
39663         (configure.ac): Add indicator.
39664         (Include): Mention new header.
39665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39666         defaults.
39667         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39668         results.
39669         * lib/strverscmp.h: Delete.
39670         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39671         * tests/test-strverscmp.c (includes): Adjust client.
39672         * lib/check-version.c (includes): Likewise.
39673         * NEWS: Document the change.
39674
39675         strverscmp: add unit test
39676         * modules/strverscmp-tests: New file.
39677         * tests/test-strverscmp.c: Likewise.
39678
39679 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39680
39681         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39682         regarding Windows crypto stuff, from Mono.
39683
39684 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39685
39686         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39687         if present, for intel RND.  Return error on failures.
39688
39689 2008-08-18  Ben Pfaff  <blp@gnu.org>
39690
39691         gitlog-to-changelog: give better diagnostic for failed pipe-open
39692         * build-aux/gitlog-to-changelog: Improve error message: suggest
39693         that the version of Git may be too old.
39694
39695 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39696
39697         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39698         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39699
39700 2008-08-18  Bruno Haible  <bruno@clisp.org>
39701
39702         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39703         pthread_in_use().
39704
39705 2008-08-18  Bruno Haible  <bruno@clisp.org>
39706
39707         * lib/glthread/threadlib.c: Include <pthread.h>.
39708
39709 2008-08-18  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39712         glthread_recursive_lock_* macros.
39713         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39714         Fix syntax error.
39715
39716 2008-08-18  Bruno Haible  <bruno@clisp.org>
39717
39718         * lib/glthread/thread.c: Avoid forcing a context switch right after
39719         thread creation.
39720
39721 2008-08-17  Bruno Haible  <bruno@clisp.org>
39722
39723         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39724         * lib/glthread/thread.h: Provide Win32 specific implementation.
39725         * modules/thread (Files): Add lib/glthread/thread.c.
39726         (Depends-on): Add lock.
39727         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39728
39729 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39730
39731         New module 'yield'.
39732         * modules/yield: New file.
39733         * lib/glthread/yield.h: New file.
39734         * m4/yield.m4: New file.
39735         * MODULES.html.sh (Multithreading): Add yield.
39736
39737 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39738
39739         New module 'thread'.
39740         * modules/thread: New file.
39741         * lib/glthread/thread.h: New file.
39742         * m4/thread.m4: New file.
39743         * MODULES.html.sh (Multithreading): Add thread.
39744
39745 2008-08-17  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/glthread/lock.h: Include <stdlib.h> always.
39748         * lib/glthread/tls.h: Likewise.
39749         * lib/glthread/cond.h: Likewise.
39750
39751 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39752
39753         New module 'cond'.
39754         * modules/cond: New file.
39755         * lib/glthread/cond.h: New file.
39756         * lib/glthread/cond.c: New file.
39757         * m4/cond.m4: New file.
39758         * MODULES.html.sh (Multithreading): Add cond.
39759
39760 2008-08-16  Eric Blake  <ebb9@byu.net>
39761
39762         c-stack: fix regression on Irix 5.3 from 2008-06-21
39763         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39764         sa_sigaction...
39765         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39766         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39767         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39768         * modules/signal (Makefile.am): Use the value.
39769         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39770         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39771         * doc/posix-headers/signal.texi (signal.h): Document this
39772         portability issue.
39773         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39774         Reported by Tom G. Christensen.
39775
39776 2008-08-17  Bruno Haible  <bruno@clisp.org>
39777
39778         New module 'threadlib'.
39779         * modules/threadlib: New file.
39780         * lib/glthread/threadlib.c: New file, extracted from
39781         lib/glthread/lock.c.
39782         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39783         functions.
39784         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39785         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39786         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39787         macros.
39788         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39789         (gl_DISABLE_THREADS): Remove macro.
39790         * modules/lock (Files): Remove build-aux/config.rpath.
39791         (Depends-on): Remove havelib. Add threadlib.
39792         (configure.ac-early): Remove section.
39793         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39794         * modules/tls (Depends-on): Remove lock. Add threadlib.
39795         (Link): New section, copied from threadlib.
39796         * MODULES.html.sh (Multithreading): Add threadlib.
39797
39798 2008-08-14  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39801         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39802         glthread_rwlock_unlock, glthread_rwlock_destroy,
39803         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39804         glthread_recursive_lock_destroy): Define as macros always.
39805         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39806         glthread_lock_lock.
39807         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39808         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39809         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39810         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39811         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39812         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39813         (glthread_recursive_lock_lock_func): Renamed from
39814         glthread_recursive_lock_lock.
39815         (glthread_recursive_lock_unlock_func): Renamed from
39816         glthread_recursive_lock_unlock.
39817         (glthread_recursive_lock_destroy_func): Renamed from
39818         glthread_recursive_lock_destroy.
39819
39820 2008-08-14  Bruno Haible  <bruno@clisp.org>
39821
39822         * lib/glthread/lock.h: Renamed from lib/lock.h.
39823         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39824         * lib/glthread/tls.h: Renamed from lib/tls.h.
39825         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39826         * lib/fstrcmp.c: Update includes.
39827         * lib/strsignal.c: Update includes.
39828         * modules/lock (Files, Makefile.am): Update.
39829         (Include): Change to "glthread/lock.h".
39830         * modules/tls (Files, Makefile.am): Update.
39831         (Include): Change to "glthread/tls.h".
39832         * tests/test-lock.c: Update includes.
39833         * tests/test-tls.c: Update includes.
39834         * NEWS: Mention the renamed header files.
39835
39836 2008-08-11  Jim Meyering  <meyering@redhat.com>
39837
39838         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39839
39840 2008-08-11  Eric Blake  <ebb9@byu.net>
39841
39842         test-c-stack: avoid C99-ism
39843         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39844         before statement.
39845         Reported by Alain Guibert.
39846
39847 2008-08-10  Jim Meyering  <meyering@redhat.com>
39848
39849         ensure that return value of uinttostr et al are not ignored
39850         * lib/inttostr.h (__GNUC_PREREQ): Define.
39851         (__attribute_warn_unused_result__): Define.
39852         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39853
39854 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39855
39856         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39857         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39858
39859 2008-08-07  Jim Meyering  <meyering@redhat.com>
39860
39861         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39862
39863         * modules/mkstemp (License): Relicense under LGPLv2+.
39864         * modules/tempname (License): Likewise.
39865
39866 2008-08-06  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/poll.c (poll): Further micro-optimization.
39869
39870 2008-08-06  Jim Meyering  <meyering@redhat.com>
39871
39872         inet_pton.c: use locale-independent tolower
39873         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39874         (inet_pton6): Use c_tolower rather than tolower.
39875         * modules/inet_pton (Depends-on): Add c-ctype.
39876
39877 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39878
39879         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39880         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39881
39882 2008-08-06  Jim Meyering  <meyering@redhat.com>
39883
39884         * modules/inet_pton (License): Relicense under LGPLv2+.
39885
39886 2008-08-03  Bruno Haible  <bruno@clisp.org>
39887
39888         Additional non-aborting API for lock and tls.
39889         * lib/lock.h: Include <errno.h>.
39890         (glthread_lock_init): New macro/function.
39891         (gl_lock_init): Define as wrapper around glthread_lock_init.
39892         (glthread_lock_lock): New macro/function.
39893         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39894         (glthread_lock_unlock): New macro/function.
39895         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39896         (glthread_lock_destroy): New macro/function.
39897         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39898         (glthread_rwlock_init): New macro/function.
39899         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39900         (glthread_rwlock_rdlock): New macro/function.
39901         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39902         (glthread_rwlock_wrlock): New macro/function.
39903         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39904         (glthread_rwlock_unlock): New macro/function.
39905         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39906         (glthread_rwlock_destroy): New macro/function.
39907         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39908         (glthread_recursive_lock_init): New macro/function.
39909         (gl_recursive_lock_init): Define as wrapper around
39910         glthread_recursive_lock_init.
39911         (glthread_recursive_lock_lock): New macro/function.
39912         (gl_recursive_lock_lock): Define as wrapper around
39913         glthread_recursive_lock_lock.
39914         (glthread_recursive_lock_unlock): New macro/function.
39915         (gl_recursive_lock_unlock): Define as wrapper around
39916         glthread_recursive_lock_unlock.
39917         (glthread_recursive_lock_destroy): New macro/function.
39918         (gl_recursive_lock_destroy): Define as wrapper around
39919         glthread_recursive_lock_destroy.
39920         (glthread_once): New macro/function.
39921         (gl_once): Define as wrapper around glthread_once.
39922         Update function declarations.
39923         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39924         glthread_rwlock_init. Return error code.
39925         (glthread_rwlock_rdlock_multithreaded): Renamed from
39926         glthread_rwlock_rdlock. Return error code.
39927         (glthread_rwlock_wrlock_multithreaded): Renamed from
39928         glthread_rwlock_wrlock. Return error code.
39929         (glthread_rwlock_unlock_multithreaded): Renamed from
39930         glthread_rwlock_unlock. Return error code.
39931         (glthread_rwlock_destroy_multithreaded): Renamed from
39932         glthread_rwlock_destroy. Return error code.
39933         (glthread_recursive_lock_init_multithreaded): Renamed from
39934         glthread_recursive_lock_init. Return error code.
39935         (glthread_recursive_lock_lock_multithreaded): Renamed from
39936         glthread_recursive_lock_lock. Return error code.
39937         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39938         glthread_recursive_lock_unlock. Return error code.
39939         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39940         glthread_recursive_lock_destroy. Return error code.
39941         (glthread_once_call): Make static.
39942         (glthread_once_multithreaded): Renamed from glthread_once.
39943         * lib/tls.h: Include <errno.h>.
39944         (glthread_tls_key_init): New macro/function.
39945         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39946         (glthread_tls_set): New macro/function.
39947         (gl_tls_set): Define as wrapper around glthread_tls_set.
39948         (glthread_tls_key_destroy): New macro/function.
39949         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39950         Update function declarations.
39951         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39952         glthread_tls_get.
39953         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39954
39955 2008-08-04  Eric Blake  <ebb9@byu.net>
39956
39957         gnumakefile: use space, not TAB, outside of targets
39958         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39959
39960 2008-08-02  Jim Meyering  <meyering@redhat.com>
39961
39962         getdate.y: avoid locale-dependent date parsing failure
39963         In Turkish locales, getdate would fail to recognize keywords
39964         containing a lowercase "i".  The solution is not to rely on
39965         locale-sensitive case-conversion.
39966         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39967         (lookup_word): Use c_toupper in place of toupper.
39968         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39969         Reported by Vefa Bicakci <bicave@superonline.com> in
39970         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39971         * modules/getdate (Depends-on): Add c-ctype.
39972
39973 2008-08-02  Bruno Haible  <bruno@clisp.org>
39974
39975         * gnulib-tool (func_import): When updating or creating a .gitignore
39976         file, prepend each added line with a slash, and ignore leading slashes
39977         from the existing lines.
39978         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39979
39980 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39981
39982         Portability fix for GNU make 3.79.1.
39983         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39984         versions do not understand.
39985
39986 2008-08-01  Bruno Haible  <bruno@clisp.org>
39987
39988         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39989         * tests/test-isnanf.h (zero): New variable.
39990         (main): Avoid literal -0.0f.
39991         * tests/test-isnand.h (zero): New variable.
39992         (main): Avoid literal -0.0.
39993         * tests/test-isnanl.h (zero): New variable.
39994         (main): Avoid literal -0.0L.
39995         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39996         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39997         -0.0, -0.0L.
39998         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39999         (test_signbitd): Avoid literal -0.0.
40000         (test_signbitl): Avoid literal -0.0L.
40001         * tests/test-ceilf1.c (zero): New variable.
40002         (main): Avoid literal -0.0f.
40003         * tests/test-ceill.c (zero): New variable.
40004         (main): Avoid literal -0.0L.
40005         * tests/test-floorf1.c (zero): New variable.
40006         (main): Avoid literal -0.0f.
40007         * tests/test-floorl.c (zero): New variable.
40008         (main): Avoid literal -0.0L.
40009         * tests/test-roundf1.c (zero): New variable.
40010         (main): Avoid literal -0.0f.
40011         * tests/test-round1.c (zero): New variable.
40012         (main): Avoid literal -0.0.
40013         * tests/test-roundl.c (zero): New variable.
40014         (main): Avoid literal -0.0L.
40015         * tests/test-truncf1.c (zero): New variable.
40016         (main): Avoid literal -0.0f.
40017         * tests/test-trunc1.c (zero): New variable.
40018         (main): Avoid literal -0.0.
40019         * tests/test-truncl.c (zero): New variable.
40020         (main): Avoid literal -0.0L.
40021         * tests/test-frexp.c (zero): New variable.
40022         (main): Avoid literal -0.0.
40023         * tests/test-frexpl.c (zero): New variable.
40024         (main): Avoid literal -0.0L.
40025         * tests/test-ldexpl.c (zero): New variable.
40026         (main): Avoid literal -0.0L.
40027         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40028         (zerod, zerol): New variables.
40029         (test_function): Avoid literals -0.0, -0.0L.
40030         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40031         (zerod, zerol): New variables.
40032         (test_function): Avoid literals -0.0, -0.0L.
40033         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40034         (zerod, zerol): New variables.
40035         (test_function): Avoid literals -0.0, -0.0L.
40036         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40037         (zerod, zerol): New variables.
40038         (test_function): Avoid literals -0.0, -0.0L.
40039         * tests/test-strtod.c (zero): New variable.
40040         (main): Avoid literal -0.0.
40041         Reported by Jonathan C. Patschke <jp@centtech.com>.
40042
40043 2008-07-31  Jim Meyering  <meyering@redhat.com>
40044
40045         sha256.h: correct definition of SHA224_DIGEST_SIZE
40046         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40047         Reported by Paulie Pena IV <paulie4@gmail.com>.
40048         Define as 224 / 8, rather than as a literal.
40049         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40050         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40051         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40052
40053 2008-07-31  Bruno Haible  <bruno@clisp.org>
40054
40055         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40056         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40057         Reported by Jonathan Patschke <jp@centtech.com>.
40058
40059 2008-07-31  Bruno Haible  <bruno@clisp.org>
40060
40061         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40062         Reported by Paolo Bonzini <bonzini@gnu.org>.
40063
40064 2008-07-30  Eric Blake  <ebb9@byu.net>
40065
40066         test-strtod: allow compilation without -lm
40067         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40068         Reported by Dennis Clarke <blastwave@gmail.com>.
40069
40070 2008-07-28  Jim Meyering  <meyering@redhat.com>
40071
40072         bootstrap: work also when there are no .po files in po/
40073         * build-aux/bootstrap (update_po_files): Complete the change
40074         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40075
40076 2008-07-27  Jim Meyering  <meyering@redhat.com>
40077
40078         * users.txt: Add zile.
40079
40080 2008-07-26  Ben Pfaff  <blp@gnu.org>
40081
40082         Add missing dependencies on new m4/exponent[fdl].m4 files.
40083         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40084         * modules/isnand-nolibm: Add m4/exponentd.m4.
40085         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40086         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40087         m4/isnan[fdl].m4, because the macros actually used moved.
40088         Reported by Jim Meyering.
40089
40090 2008-07-14  Ben Pfaff  <blp@gnu.org>
40091
40092         Add isinf module.
40093         * lib/isinf.c: New file.
40094         * lib/math.in.h: Define isinf macro if we have decided to replace
40095         it.
40096         * m4/isinf.m4: New file.
40097         * m4/math_h.m4: Initialize and substitute variables for isinf
40098         module.
40099         * modules/isinf: New file.
40100         * modules/isinf-tests: New file.
40101         * modules/math: Add substitutions for new module.
40102         * tests/test-isinf.c: New file.
40103         * doc/posix-functions/isinf.texi: Mention new module.
40104         * MODULES.html.sh: Mention new module.
40105
40106 2008-07-14  Ben Pfaff  <blp@gnu.org>
40107
40108         Factor out some macros for use by additional modules.
40109         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40110         exponentf.m4.
40111         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40112         exponentd.m4.
40113         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40114         file exponentl.m4.
40115         * m4/exponentf.m4: New file.
40116         * m4/exponentd.m4: New file.
40117         * m4/exponentl.m4: New file.
40118         * modules/isnanf: Use new file m4/exponentf.m4.
40119         * modules/isnand: Use new file m4/exponentd.m4.
40120         * modules/isnanl: Use new file m4/exponentl.m4.
40121
40122 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40123
40124         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40125         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40126         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40127         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40128
40129         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40130         readlink on platforms without PATH_MAX.
40131
40132 2008-07-21  Eric Blake  <ebb9@byu.net>
40133
40134         Warn, not fail, on stale version.
40135         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40136
40137         Don't allow installation with stale devel version number.
40138         * top/GNUmakefile (_is-install-target): New macro.
40139         (_curr-ver): Forbid installation with stale version number.
40140
40141 2008-07-20  Bruno Haible  <bruno@clisp.org>
40142
40143         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40144         TESTS_ENVIRONMENT.
40145         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40146
40147 2008-07-20  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/c-stack.h (c_stack_action): Add documentation.
40150         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40151
40152 2008-07-20  Bruno Haible  <bruno@clisp.org>
40153
40154         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40155         * modules/readlink (License): Likewise.
40156
40157 2008-07-17  Eric Blake  <ebb9@byu.net>
40158
40159         * modules/c-stack (Link): Fix typo.
40160
40161         Make c-stack use libsigsegv, when available.
40162         * modules/c-stack (Depends-on): Add libsigsegv.
40163         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40164         needed.
40165         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40166         (segv_handler, overflow_handler, c_stack_action)
40167         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40168         implementation when libsigsegv is available, but only when using
40169         the library is necessary.
40170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40171         comment, explaining why XSI check fails on Linux.
40172         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40173         * tests/test-c-stack2.sh: Tweak skip message.
40174         * NEWS: Document new link-time requirements.
40175
40176 2008-07-16  Eric Blake  <ebb9@byu.net>
40177
40178         c-stack: Expose false positives when not using libsigsegv.
40179         * modules/c-stack-tests (Files): Expand test.
40180         * tests/test-c-stack.c (main): Add means to conditionally trigger
40181         non-overflow SIGSEGV.
40182         * tests/test-c-stack2.sh: New file.
40183
40184 2008-07-14  Bruno Haible  <bruno@clisp.org>
40185
40186         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40187         Reported by Eric Blake.
40188
40189 2008-07-14  Sam Steingold  <sds@gnu.org>
40190             Bruno Haible  <bruno@clisp.org>
40191
40192         New module libsigsegv.
40193         * modules/libsigsegv: New file.
40194         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40195         modifications.
40196         * MODULES.html.sh (Signal handling): New section.
40197
40198 2008-07-14  Bruno Haible  <bruno@clisp.org>
40199
40200         * modules/unictype/ctype-* (Description): Add the word "function".
40201         Improves the resulting doc in MODULES.html.
40202
40203 2008-07-12  Ben Pfaff  <blp@gnu.org>
40204
40205         Add longlong module.
40206         * modules/longlong: New file.
40207
40208 2008-07-12  Bruno Haible  <bruno@clisp.org>
40209
40210         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40211         to empty.
40212
40213 2008-07-10  Ben Pfaff  <blp@gnu.org>
40214
40215         Add isnan module.
40216         * doc/posix-functions/isnan.texi: Mention new module.
40217         * lib/math.in.h: Define isnan macro if we have decided to replace
40218         it.
40219         * m4/isnan.m4: New file.
40220         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40221         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40222         also.
40223         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40224         redundancy.
40225         * m4/math_h.m4: Initialize and substitute variables for isnan
40226         module.
40227         * modules/isnan: New file.
40228         * modules/isnan-tests: New file.
40229         * modules/math: Add substitutions for new module.
40230         * tests/test-isnan.c: New file.
40231         * MODULES.html.sh: Mention new module.
40232
40233 2008-07-10  Ben Pfaff  <blp@gnu.org>
40234
40235         Add isnanf module.
40236         * lib/isnanf.m4: New file.
40237         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40238         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40239         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40240         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40241         * modules/isnanf: New file.
40242         * modules/isnanf-tests: New file.
40243         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40244         files.
40245         * tests/test-isnanf-nolibm.c: factored most of its contents into
40246         new file tests/test-isnanf.h.
40247         * tests/test-isnanf.h: New file.
40248         * tests/test-isnanf.c: New file.
40249         * MODULES.html.sh: Mention new module.
40250         * doc/glibc-functions/isnanf.texi: Mention new module.
40251
40252 2008-07-10  Ben Pfaff  <blp@gnu.org>
40253
40254         Add isnand module.
40255         * lib/isnand.h: New file.
40256         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40257         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40258         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40259         functionality also.
40260         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40261         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40262         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40263         * modules/isnand: New file.
40264         * modules/isnand-tests: New file.
40265         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40266         files.
40267         * tests/test-isnand-nolibm.c: factored most of its contents into
40268         new file tests/test-isnand.h.
40269         * tests/test-isnand.h: New file.
40270         * tests/test-isnand.c: New file.
40271         * MODULES.html.sh: Mention new module.
40272
40273 2008-07-10  Ben Pfaff  <blp@gnu.org>
40274
40275         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40276         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40277         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40278         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40279         * modules/isnanf-nolibm: Update references to renamed files.
40280         * modules/isnand-nolibm: Likewise.
40281         * modules/isnanf-nolibm-tests: Likewise.
40282         * modules/isnand-nolibm-tests: Likewise.
40283         * lib/frexp.c: Likewise.
40284         * lib/isfinite.c: Likewise.
40285         * lib/signbitd.c: Likewise.
40286         * lib/signbitf.c: Likewise.
40287         * lib/vasnprintf.c: Likewise.
40288         * tests/test-ceilf1.c: Likewise.
40289         * tests/test-ceilf2.c: Likewise.
40290         * tests/test-floorf1.c: Likewise.
40291         * tests/test-floorf2.c: Likewise.
40292         * tests/test-frexp.c: Likewise.
40293         * tests/test-round1.c: Likewise.
40294         * tests/test-round2.c: Likewise.
40295         * tests/test-roundf1.c: Likewise.
40296         * tests/test-strtod.c: Likewise.
40297         * tests/test-trunc1.c: Likewise.
40298         * tests/test-trunc2.c: Likewise.
40299         * tests/test-truncf1.c: Likewise.
40300         * tests/test-truncf2.c: Likewise.
40301         * NEWS: Mention the renamed header files.
40302
40303 2008-07-11  Jim Meyering  <meyering@redhat.com>
40304
40305         vc-list-files: make the last-resort awk code more portable
40306         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40307         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40308         does not support it.
40309
40310 2008-07-10  Eric Blake  <ebb9@byu.net>
40311
40312         Work with tar's bootstrap.
40313         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40314         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40315         an m4 comment.
40316
40317 2008-07-09  Jim Meyering  <meyering@redhat.com>
40318
40319         posix-shell.m4: fix typo that made this test malfunction
40320         * m4/posix-shell.m4: Remove capitalization in variable name.
40321
40322 2008-07-08  Bruno Haible  <bruno@clisp.org>
40323
40324         * m4/onceonly.m4: Update comments.
40325         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40326
40327 2008-07-04  Jim Meyering  <meyering@redhat.com>
40328
40329         * users.txt: Add vc-dwim.
40330         (bison, coreutils): Use the gitweb URL.
40331
40332 2008-07-03  Jim Meyering  <meyering@redhat.com>
40333
40334         * users.txt: Add libffcall.  From Sam Steingold.
40335
40336 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40337
40338         getdate.y: do not ignore TZ with relative day, month or year offset
40339         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40340         relative-date-handling, since otherwise, the latter would clobber the
40341         sole output (an updated Start value) of the tz-handling block.
40342         * tests/test-getdate.c: Tests for the fix
40343
40344 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40345
40346         Recognize 'foo_LIBRARIES += libgnu.a'.
40347         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40348         makefile snippet has already specified an installation location,
40349         also using '+='.
40350
40351 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40352
40353         getdate.y: factor out common actions
40354         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40355         Use them in place of open-coded actions.
40356
40357 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40358
40359         Add self-test for getdate module.
40360         * modules/getdate-tests: New file.
40361         * tests/test-getdate.c: New file.
40362
40363 2008-06-29  Bruno Haible  <bruno@clisp.org>
40364
40365         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40366         .gitignore.
40367         Reported by Sylvain Beucler <beuc@beuc.net>.
40368
40369 2008-06-29  Bruno Haible  <bruno@clisp.org>
40370
40371         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40372         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40373
40374 2008-06-29  Bruno Haible  <bruno@clisp.org>
40375
40376         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40377         EXTRA_DIST.
40378         Reported by Sylvain Beucler <beuc@beuc.net>.
40379
40380 2008-06-26  Jim Meyering  <meyering@redhat.com>
40381
40382         make several modules depend on the "open" module
40383         This provides slightly increased consistency when opening-for-write
40384         the name of a non-directory spelled with a trailing slash.
40385         * modules/chdir-safer: Likewise.
40386         * modules/chown: Likewise.
40387         * modules/clean-temp: Likewise.
40388         * modules/copy-file: Likewise.
40389         * modules/fchdir: Likewise.
40390         * modules/fcntl-safer: Likewise.
40391         * modules/pipe: Likewise.
40392         * modules/utime: Likewise.
40393         Prompted by Eric Blake and Bruno Haible.
40394
40395 2008-06-24  Andreas Schwab  <schwab@suse.de>
40396
40397         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40398         literals can be used as initializers for global variables.
40399
40400 2008-06-23  Eric Blake  <ebb9@byu.net>
40401
40402         Make gnulib-cache.m4 easier to diff.
40403         * gnulib-tool (func_import): Allow newlines when reading cached
40404         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40405
40406 2008-06-23  Bruno Haible  <bruno@clisp.org>
40407
40408         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40409         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40410         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40411         m4/signalblocking.m4.
40412         (gl_PREREQ_SIGACTION): Don't invoke it.
40413         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40414         gl_PREREQ_SIG_HANDLER_H.
40415         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40416         Don't check for sigaction here.
40417
40418 2008-06-23  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40421         (install_handlers): Don't set the SA_RESETHAND flag.
40422
40423 2008-06-23  Bruno Haible  <bruno@clisp.org>
40424
40425         * m4/sigaction.m4: Comment fixes.
40426         * lib/signal.in.h: Likewise.
40427
40428 2008-06-23  Eric Blake  <ebb9@byu.net>
40429
40430         Fix typo.
40431         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40432
40433         Avoid SA_ namespace.
40434         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40435         Reported by Ralf Wildenhues.
40436
40437         Avoid test failure due to SA_RESTORER.
40438         * tests/test-sigaction.c (SA_MASK): New macro.
40439         (main): Avoid failing due to extension flags being set.
40440         Reported by Jim Meyering.
40441
40442         Revert use of sig-handler.h in sigprocmask.c.
40443         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40444         it requires the existence of struct sigaction.
40445         * lib/sigprocmask.c (handler_t): Restore typedef.
40446         (rpl_signal, old_handlers): Use local type.
40447
40448 2008-06-22  Bruno Haible  <bruno@clisp.org>
40449
40450         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40451         conditionally.
40452         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40453
40454 2008-06-22  Bruno Haible  <bruno@clisp.org>
40455
40456         * doc/posix-functions/siginterrupt.texi: Move note.
40457
40458         * lib/signal.in.h (SA_RESTART): New macro.
40459         * lib/sigaction.c: Update comment.
40460
40461         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40462
40463         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40464         (gl_PREREQ_SIGPROCMASK): Invoke it.
40465         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40466
40467         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40468
40469         * lib/sigprocmask.c: Update a comment.
40470
40471 2008-06-21  Eric Blake  <ebb9@byu.net>
40472
40473         Use sigaction module rather than signal().
40474         * modules/c-stack (Depends-on): Add sigaction.
40475         * modules/fatal-signal (Depends-on): Likewise.
40476         * modules/nanosleep (Depends-on): Likewise.
40477         * modules/sigprocmask (Files): Add sig-handler.h.
40478         * modules/sigaction (Files): Likewise.
40479         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40480         Eggert.
40481         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40482         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40483         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40484         (init_fatal_signals): Likewise.
40485         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40486         (siginterrupt): Delete fallback.
40487         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40488         instead.
40489         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40490         siginterrupt.
40491
40492         New module sigaction, for mingw.
40493         * modules/sigaction: New module...
40494         * modules/sigaction-tests: ...and its test.
40495         * m4/sigaction.m4: New file.
40496         * lib/sigaction.c: Likewise.
40497         * tests/test-sigaction.c: Likewise.
40498         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40499         * modules/signal (Makefile.am): Likewise.
40500         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40501         needed.
40502         * doc/posix-headers/signal.texi (signal.h): Mention provided
40503         types.
40504         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40505         that sigaction is preferable.
40506         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40507         module.
40508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40509         sigaction.
40510
40511         Improve robustness of sigprocmask by overriding signal.
40512         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40513         is in use.
40514         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40515         (SIGKILL, SIGSTOP): Provide fallbacks.
40516         (rpl_signal): Implement.
40517         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40518         signal can be called inside handlers.
40519
40520         Fix nanosleep module on mingw.
40521         * modules/nanosleep (Depends-on): Add sys_select.
40522         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40523
40524         Fix licensing of sigprocmask.
40525         * modules/raise (License): Relicense as LGPL.
40526
40527 2008-06-21  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40530         result if it contains question marks.
40531         Reported by Michael Geng <linux@michaelgeng.de>.
40532
40533 2008-06-19  Bruno Haible  <bruno@clisp.org>
40534
40535         Fix CVS-ism.
40536         * doc/gnulib.texi: Include updated-stamp.texi.
40537         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40538         (updated-stamp.texi): New rule.
40539         (gnulib.info): Depend on it.
40540         * doc/.gitignore: Add updated-stamp.texi.
40541         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40542
40543 2008-06-19  Bruno Haible  <bruno@clisp.org>
40544
40545         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40546         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40547
40548 2008-06-19  Eric Blake  <ebb9@byu.net>
40549
40550         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40551         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40552         Reported by Stepan Kasal.
40553
40554 2008-06-18  Bruno Haible  <bruno@clisp.org>
40555
40556         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40557         Reported by Eric Blake.
40558
40559 2008-06-18  Eric Blake  <ebb9@byu.net>
40560
40561         Work around cygwin 1.5.25 strsignal bug.
40562         * tests/test-strsignal.c: Allow for const char *.
40563         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40564
40565 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40566
40567         * users.txt: Update URL to article and add author/date
40568         information.
40569
40570 2008-06-17  Bruno Haible  <bruno@clisp.org>
40571
40572         New macro gl_DISABLE_THREADS.
40573         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40574         if the user did not pass --enable-threads or --disable-threads option.
40575         (gl_DISABLE_THREADS): New macro.
40576         Reported by Eric Blake <ebb9@byu.net>.
40577
40578 2008-06-17  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40581         when the macro ignores it.
40582         Based on a patch by Eric Blake <ebb9@byu.net>.
40583
40584 2008-06-17  Bruno Haible  <bruno@clisp.org>
40585
40586         * modules/tls (License): Change to LGPLv2+.
40587         Reported by Eric Blake.
40588
40589 2008-06-17  Eric Blake  <ebb9@byu.net>
40590
40591         Simplify c-stack prerequisites.
40592         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40594         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40595         check.
40596         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40597         <sys/resource.h>.
40598
40599         Move c-stack test into testsuite.
40600         * modules/c-stack-tests: New file.
40601         * lib/c-stack.c [DEBUG]: Move test program...
40602         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40603         fail test if sigaltstack is lacking.
40604         * tests/test-c-stack.sh: New driver file.
40605
40606 2008-06-16  Eric Blake  <ebb9@byu.net>
40607
40608         Use raise module consistently.
40609         * modules/fatal-signal (Depends-on): Add raise.
40610         * modules/sigprocmask (Depends-on): Likewise.
40611         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40612         * lib/sigprocmask.c (sigprocmask): Likewise.
40613         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40614         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40615
40616         Fix compliance bug in sigpending.
40617         * lib/sigprocmask.c (sigpending): Return pending array via
40618         parameter, not return value.
40619
40620 2008-06-14  Eric Blake  <ebb9@byu.net>
40621
40622         Improve obstack-printf test code.
40623         * tests/test-obstack-printf.c (test_function): Fix comment, and
40624         simplify usage of obstack_* in macros.  Add a test for coverage.
40625         Reported by Bruno Haible.
40626
40627 2008-06-14  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40630         array size as a constant, not as a const variable.
40631         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40632         AC_USE_SYSTEM_EXTENSIONS.
40633         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40634         Test whether the obstack_printf function actually exists.
40635         * modules/obstack-printf (Depends-on): Add extensions.
40636         (Include): Remove obstack.h.
40637         * modules/obstack-printf-posix (Depends-on): Add extensions.
40638         (Include): Remove obstack.h.
40639
40640 2008-06-13  Eric Blake  <ebb9@byu.net>
40641
40642         Add obstack-printf and obstack-printf-posix modules.
40643         * modules/obstack-printf: New file.
40644         * modules/obstack-printf-posix: Likewise.
40645         * MODULES.html.sh (Misc): Mention them.
40646         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40647         Likewise.
40648         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40649         Likewise.
40650         * modules/stdio (Makefile.am): Accomodate new modules.
40651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40652         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40653         Declare.
40654         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40655         functions.
40656         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40657         (gl_REPLACE_OBSTACK_PRINTF): New macros
40658         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40659         * tests/test-obstack-printf.c: New file.
40660         * modules/obstack-printf-tests: Likewise.
40661         * modules/obstack-printf-posix-tests: Likewise.
40662
40663 2008-06-11  Bruno Haible  <bruno@clisp.org>
40664
40665         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40666         * lib/open.c: Include errno.h.
40667         (open): Fail when attempting to write to a file that has a trailing
40668         slash.
40669         * tests/test-open.c (main): Test against trailing slash bug.
40670         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40671
40672 2008-06-10  Bruno Haible  <bruno@clisp.org>
40673
40674         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40675         for $? to work inside the trap command, with various /bin/sh-s.
40676         * tests/test-vc-list-files-cvs.sh: Likewise.
40677
40678 2008-06-10  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/acl-internal.h: Don't include gettext.h here.
40681         * lib/set-mode-acl.c: Include gettext.h here.
40682         * lib/copy-acl.c: Likewise.
40683
40684 2008-06-10  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40687         * lib/wait-process.c (wait_subprocess): Likewise.
40688         * lib/execute.h (execute): Add termsigp argument.
40689         * lib/execute.c (execute): Likewise.
40690         * lib/csharpcomp.c (compile_csharp_using_pnet,
40691         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40692         * lib/csharpexec.c (execute_csharp_using_pnet,
40693         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40694         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40695         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40696         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40697         is_jikes_present): Update.
40698         * lib/javaexec.c (execute_java_class): Update.
40699         * lib/javaversion.c (execute_and_read_line): Update.
40700         * NEWS: Document the changes.
40701         Reported by Eric Blake.
40702
40703 2008-06-10  Eric Blake  <ebb9@byu.net>
40704
40705         Add missing include.
40706         * tests/test-strstr.c (includes): Add <signal.h>.
40707         * tests/test-strcasestr.c (includes): Likewise.
40708         * tests/test-memmem.c (includes): Likewise.
40709
40710 2008-06-10  Bruno Haible  <bruno@clisp.org>
40711
40712         * lib/wait-process.c (wait_subprocess): Add an assertion.
40713
40714 2008-06-10  Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40717
40718 2008-06-10  Bruno Haible  <bruno@clisp.org>
40719
40720         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40721         using alarm().
40722         * tests/test-strcasestr.c (main): Likewise.
40723         * tests/test-strstr.c (main): Likewise.
40724
40725 2008-06-09  Bruno Haible  <bruno@clisp.org>
40726
40727         Work around the Solaris 10 ACE ACLs ABI change.
40728         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40729         declare if ACL_NO_TRIVIAL is present.
40730         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40731         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40732         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40733         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40734         define if ACL_NO_TRIVIAL is present.
40735         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40736         and use the current ABI.
40737         (file_has_acl): Use same #if condition as elsewhere.
40738         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40739         in use, and use the current ABI.
40740         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40741         Reported by Jim Meyering.
40742
40743 2008-06-09  Eric Blake  <ebb9@byu.net>
40744
40745         Work around environments that (stupidly) ignore SIGALRM.
40746         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40747         before using alarm().
40748         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40749         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40750         Reported by Ian Beckwith <ianb@erislabs.net>.
40751
40752         Produce autobuild blurb earlier in log.
40753         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40754
40755 2008-06-09  Jim Meyering  <meyering@redhat.com>
40756         and OndÅ™ej Vašík  <ovasik@redhat.com>
40757
40758         utimens.c: correct kernel bug work-around
40759         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40760         failure, not success, and the kernel bug we're trying to work
40761         around affects not just the utimensat call, but also the fallback
40762         futimens call.
40763         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40764         not success.
40765         [HAVE_FUTIMENS]: Use the same work-around, here.
40766
40767 2008-06-09  Jim Meyering  <meyering@redhat.com>
40768
40769         add more guards around definition of ACE_-related code
40770         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40771         ALLOW and ACE_OWNER are also defined.
40772
40773 2008-06-08  Bruno Haible  <bruno@clisp.org>
40774
40775         * lib/acl-internal.h: Add me as co-author.
40776         * lib/file-has-acl.c: Likewise.
40777         * lib/set-mode-acl.c: Likewise.
40778         * lib/copy-acl.c: Likewise.
40779
40780 2008-06-08  Bruno Haible  <bruno@clisp.org>
40781
40782         Add support for AIX ACLs.
40783         * lib/acl-internal.h (acl_nontrivial): New declaration.
40784         * lib/file-has-acl.c (acl_nontrivial): New function.
40785         (file_has_acl): Add implementation using AIX 4 ACL API.
40786         * lib/set-mode-acl.c (qset_acl): Likewise.
40787         * lib/copy-acl.c (qcopy_acl): Likewise.
40788
40789 2008-06-08  Bruno Haible  <bruno@clisp.org>
40790
40791         Add support for HP-UX ACLs.
40792         * lib/acl-internal.h (acl_nontrivial): New declaration.
40793         * lib/file-has-acl.c (acl_nontrivial): New function.
40794         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40795         * lib/set-mode-acl.c (qset_acl): Likewise.
40796         * lib/copy-acl.c (qcopy_acl): Likewise.
40797
40798 2008-06-08  Bruno Haible  <bruno@clisp.org>
40799
40800         Add support for Cygwin ACLs.
40801         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40802         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40803         the chmod_or_fchmod call.
40804         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40805
40806 2008-06-08  Bruno Haible  <bruno@clisp.org>
40807
40808         Fix bug with setuid modes in Solaris 10+ code.
40809         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40810         succeeded, when the mode contains some special bits.
40811
40812 2008-06-08  Bruno Haible  <bruno@clisp.org>
40813
40814         Add support for Solaris 7..10 ACLs.
40815         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40816         declarations.
40817         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40818         functions.
40819         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40820         * lib/set-mode-acl.c (qset_acl): Likewise.
40821         * lib/copy-acl.c (qcopy_acl): Likewise.
40822
40823 2008-06-08  Bruno Haible  <bruno@clisp.org>
40824
40825         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40826         declaration.
40827         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40828         (acl_access_nontrivial): Remove MacOS X case.
40829         (file_has_acl): Use acl_extended_nontrivial.
40830         * lib/copy-acl.c (qcopy_acl): Likewise.
40831
40832 2008-06-08  Bruno Haible  <bruno@clisp.org>
40833
40834         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40835
40836 2008-06-08  Jim Meyering  <meyering@redhat.com>
40837
40838         * modules/acl (Maintainer): Add Bruno Haible.
40839
40840 2008-06-07  Bruno Haible  <bruno@clisp.org>
40841
40842         Improve support for Tru64 ACLs.
40843         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40844         ACL on OSF/1.
40845
40846 2008-06-07  Bruno Haible  <bruno@clisp.org>
40847
40848         Add support for MacOS X ACLs.
40849         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40850         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40851         * lib/set-mode-acl.c (qset_acl): Likewise.
40852         * lib/copy-acl.c (qcopy_acl): Likewise.
40853
40854 2008-06-07  Bruno Haible  <bruno@clisp.org>
40855
40856         Fix memory leak introduced on 2008-05-22.
40857         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40858         use.
40859
40860 2008-06-07  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40863         to construct an empty ACL.
40864
40865 2008-06-07  Bruno Haible  <bruno@clisp.org>
40866
40867         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40868         precisely.
40869         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40870
40871 2008-06-07  Bruno Haible  <bruno@clisp.org>
40872
40873         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40874         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40875
40876 2008-06-07  Bruno Haible  <bruno@clisp.org>
40877
40878         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40879         regardless of POSIX.
40880         * doc/posix-functions/_longjmp.texi: Likewise.
40881         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40882         SystemV platform in this case.
40883
40884 2008-06-06  Eric Blake  <ebb9@byu.net>
40885
40886         Document abort() bugs.
40887         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40888
40889         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40890         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40891         sigsetjmp.
40892         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40893         siglongjmp, but only as a macro.
40894         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40895         is obsolete.
40896         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40897
40898         Tweak documentation to cover cygwin argz bugs.
40899         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40900         argz bug fix; no code change needed since no cygwin releases
40901         occurred between the last fix and the bug being tested.
40902         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40903         module and recently fixed cygwin bugs.
40904         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40905         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40906         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40907         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40908         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40909         Likewise.
40910         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40911         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40912         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40913         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40914         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40915         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40916         Likewise.
40917
40918         Avoid gcc warning on cygwin.
40919         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40920         !ACL_NO_TRIVIAL]: Avoid unused variable.
40921
40922 2008-06-05  Eric Blake  <ebb9@byu.net>
40923
40924         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40925         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40926         git-version-gen fails to come up with a version.
40927         Reported by Simon Josefsson.
40928
40929 2008-06-05  Jim Meyering  <meyering@redhat.com>
40930             Paul Eggert  <eggert@cs.ucla.edu>
40931
40932         utimens.c: work around a probable Linux kernel bug
40933         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40934         appears to be a kernel bug that causes utimensat to return 280
40935         instead of 0, indicating success.
40936
40937 2008-06-04  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40940         2008-06-01 commit.
40941
40942 2008-06-04  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40945         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40946         (file_has_acl): Use it. Save errno afterwards.
40947         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40948
40949 2008-06-03  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40952         draft code. Simplify #ifs.
40953         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40954         Put Solaris code after POSIX-draft code. Fix comments regarding
40955         Solaris 10, HP-UX. Mention Cygwin.
40956         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40957
40958 2008-06-03  Eric Blake  <ebb9@byu.net>
40959
40960         Provide fallback for older kernels.
40961         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40962         Provide runtime fallback if kernel lacks support.
40963         Reported by Mike Frysinger.
40964
40965 2008-06-02  Bruno Haible  <bruno@clisp.org>
40966
40967         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40968         it exists.
40969
40970 2008-06-02  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40973         * lib/copy-acl.c (qcopy_acl): Update comment.
40974
40975 2008-06-02  Bruno Haible  <bruno@clisp.org>
40976
40977         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40978         like ACL APIs.
40979
40980 2008-06-02  Bruno Haible  <bruno@clisp.org>
40981
40982         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40983         * tests/test-set-mode-acl.sh: Likewise.
40984         * tests/test-copy-acl.sh: Likewise.
40985         * tests/test-copy-file.sh: Likewise.
40986
40987 2008-06-02  Bruno Haible  <bruno@clisp.org>
40988
40989         * tests/test-file-has-acl.sh: Remove unused code.
40990
40991 2008-06-01  Bruno Haible  <bruno@clisp.org>
40992
40993         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40994         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40995         messages.
40996         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40997
40998 2008-06-01  Bruno Haible  <bruno@clisp.org>
40999
41000         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41001         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41002         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41003         APIs.
41004         * modules/acl-tests (configure.ac): Remove tests now contained in
41005         m4/acl.m4.
41006
41007 2008-06-02  Jim Meyering  <meyering@redhat.com>
41008
41009         announce-gen: use a better key-server host name
41010         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41011         it may be more consistently reliable.  Suggested by Werner Koch
41012         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41013
41014 2008-06-01  Bruno Haible  <bruno@clisp.org>
41015
41016         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41017         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41018
41019 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41020
41021         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41022
41023 2008-06-01  Bruno Haible  <bruno@clisp.org>
41024
41025         New ACL tests.
41026         * tests/test-file-has-acl.sh: New file.
41027         * tests/test-file-has-acl.c: New file.
41028         * tests/test-set-mode-acl.sh: New file.
41029         * tests/test-set-mode-acl.c: New file.
41030         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41031         * tests/test-copy-acl.c: New file.
41032         * modules/acl-tests: New file, based on modules/copy-file-tests.
41033         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41034         (Depends-on): Add acl-tests.
41035         (configure.ac): Remove checks.
41036         (Makefile.am): Don't create test-sameacls program here any more.
41037
41038 2008-06-01  Bruno Haible  <bruno@clisp.org>
41039
41040         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41041         * tests/test-sameacls.c: Include progname.h.
41042         (main): Invoke set_program_name. Portability fixes for MacOS X,
41043         Solaris, HP-UX.
41044
41045 2008-06-01  Bruno Haible  <bruno@clisp.org>
41046
41047         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41048         function.
41049         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41050
41051 2008-06-01  Bruno Haible  <bruno@clisp.org>
41052
41053         * modules/rpmatch (Depends-on): Add strdup.
41054
41055 2008-06-01  Bruno Haible  <bruno@clisp.org>
41056
41057         * lib/pipe.c: Include unistd-safer.h.
41058         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41059         * modules/pipe (Depends-on): Add unistd-safer.
41060
41061 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41062
41063         * modules/autobuild (configure.ac): Call AB_INIT.
41064
41065 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41066
41067         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41068         Suggested by Bruno Haible <bruno@clisp.org>.
41069
41070 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41071
41072         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41073         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41074         <bruno@clisp.org>.
41075
41076 2008-05-29  Eric Blake  <ebb9@byu.net>
41077
41078         Prefer new POSIX 200x interfaces over futimesat.
41079         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41080         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41081         when available.
41082         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41083
41084 2008-05-28  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/stpcpy (License): Change to LGPLv2+.
41087         Requested by David Lutterkort <dlutter@redhat.com>.
41088
41089 2008-05-27  Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41092         current mingw.
41093         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41094
41095 2008-05-27  Bruno Haible  <bruno@clisp.org>
41096
41097         * modules/iconv_open (Link): New section, from module 'iconv'.
41098         * modules/striconv (Link): Likewise.
41099         * modules/striconveh (Link): Likewise.
41100         * modules/xstriconv (Link): Likewise.
41101         * modules/unicodeio (Link): Likewise.
41102         * modules/propername (Link): Likewise.
41103         Reported by Jim Meyering.
41104
41105 2008-05-26  Jim Meyering  <meyering@redhat.com>
41106
41107         sha256: do not artificially restrict buffer length to be < 2^32
41108         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41109         uint32_t to size_t.
41110         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41111         to match.
41112
41113         avoid unaligned access errors, e.g., on sparc
41114         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41115         direct access through a possibly-unaligned uint64* pointer.
41116         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41117         direct access through a possibly-unaligned uint32* pointer.
41118         Prompted by this patch from Tom "spot" Callaway:
41119         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41120
41121         sha512.c: fix typo in comment
41122         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41123
41124 2008-05-25  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41127         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41128         (Makefile.am): Update lib_SOURCES.
41129
41130 2008-05-25  Bruno Haible  <bruno@clisp.org>
41131
41132         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41133
41134 2008-05-25  Jim Meyering  <meyering@redhat.com>
41135
41136         useless-if-before-free: freed expr may have white-space differences
41137         * build-aux/useless-if-before-free: Recognize cases in which the
41138         freed expression differs from the tested one in embedded white
41139         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41140         $1 was used, so we can't make any regexp shy.  Improved tests now
41141         detect this.
41142
41143         useless-if-before-free: accept white space in the expression.
41144         * build-aux/useless-if-before-free: For now, any white space
41145         in the expression must be identical in the free argument.
41146
41147         useless-if-before-free: efficiency tweak
41148         * build-aux/useless-if-before-free: Make the expression-matching
41149         regexp "shy".
41150         Make the *outer* regexp shy, not the expr-matching one.
41151
41152         update code-in-comment to accept cast of free arg
41153         * build-aux/useless-if-before-free: Update regexp.
41154
41155 2008-05-25  Bruno Haible  <bruno@clisp.org>
41156
41157         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41158         * modules/copy-file-tests (Files, Makefile.am): Update.
41159         * tests/test-copy-file.c (func_test_copy): Update.
41160
41161 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41162
41163         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41164
41165 2008-05-23  Bruno Haible  <bruno@clisp.org>
41166
41167         Improve support for ACLs on OSF/1.
41168         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41169         Remove fallback for unknown flavors of ACLs.
41170
41171 2008-05-22  Bruno Haible  <bruno@clisp.org>
41172
41173         Add support for ACLs on OSF/1.
41174         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41175         replacements.
41176         (acl_free_text): New macro fallback.
41177         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41178         acl_free.
41179         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41180         acl_free_text function. Require AC_C_INLINE.
41181
41182 2008-05-22  Bruno Haible  <bruno@clisp.org>
41183
41184         Make copy_acl work on MacOS X 10.5.
41185         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41186         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41187         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41188         If MODE_INSIDE_ACL, don't assume that every system has the same text
41189         representation for ACLs as FreeBSD.
41190         * lib/copy-acl.c (copy_acl): Add support for platforms with
41191         !MODE_INSIDE_ACL.
41192         * lib/file-has-acl.c (file_has_acl): Likewise.
41193         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41194         FreeBSD, MacOS X, or IRIX, respectively.
41195
41196 2008-05-22  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/acl.h: Don't include <sys/acl.h>.
41199         (GETACLCNT): Move fallback to lib/acl-internal.h.
41200         * lib/acl-internal.h: Include <sys/acl.h> here.
41201         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41202
41203 2008-05-22  Bruno Haible  <bruno@clisp.org>
41204
41205         Split off copy_acl function to separate file.
41206         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41207         * lib/acl.c (copy_acl): Moved function to separate file.
41208         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41209         * modules/acl (Files): Add lib/copy-acl.c.
41210         (Makefiles.am): Augment lib_SOURCES.
41211
41212 2008-05-22  Bruno Haible  <bruno@clisp.org>
41213
41214         * modules/copy-file-tests: New file.
41215         * tests/test-copy-file.sh: New file.
41216         * tests/test-copy-file.c: New file.
41217         * tests/test-copy-file-sameacls.c: New file.
41218
41219 2008-05-22  Eric Blake  <ebb9@byu.net>
41220
41221         Avoid gcc warning.
41222         * tests/test-memcmp.c (main): Pass NULL indirectly.
41223
41224 2008-05-21  Bruno Haible  <bruno@clisp.org>
41225
41226         Add reference doc about ACLs.
41227         * doc/acl-resources.txt: New file.
41228         * doc/acl-cygwin.txt: New file.
41229
41230 2008-05-21  Bruno Haible  <bruno@clisp.org>
41231
41232         Avoid one more warning from gcc.
41233         * lib/vasnprintf.c (IF_LINT): Update comments.
41234         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41235
41236 2008-05-21  Jim Meyering  <meyering@redhat.com>
41237
41238         avoid a warning from gcc
41239         * lib/vasnprintf.c (IF_LINT): Define.
41240         (scale10_round_decimal_long_double):
41241         Use it to avoid a "may be used uninitialized" warning.
41242         (scale10_round_decimal_double): Likewise.
41243
41244 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41245
41246         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41247         declared.
41248
41249 2008-05-20  Bruno Haible  <bruno@clisp.org>
41250
41251         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41252         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41253
41254 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41255
41256         * modules/memcmp-tests: New file.
41257         * tests/test-memcmp.c: New file.
41258
41259 2008-05-19  Bruno Haible  <bruno@clisp.org>
41260
41261         * modules/propername (Notice, configure.ac): Put quoted "..." into
41262         --keyword option.
41263         * lib/propername.h: Update comments accordingly.
41264         Reported by Eric Blake.
41265
41266 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41267
41268         * modules/getpass-gnu (Depends-on): Add fseeko.
41269
41270 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41271
41272         * modules/base64-tests: New file.
41273
41274 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41275
41276         * lib/base64.c (base64_decode_ctx): If a decode context structure
41277         was passed in use it to ignore newlines.  If a context structure
41278         was _not_ passed in, continue to treat newlines as garbage (this
41279         is the historical behavior).  Formerly base64_decode.
41280         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41281         takes a decode context structure.
41282         * lib/base64.h (base64_decode): Macro for four-argument calls.
41283         (base64_decode_alloc): Likewise.
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
41293 2008-05-19  Jim Meyering  <meyering@redhat.com>
41294
41295         avoid a warning from gcc
41296         * lib/trim.c (IF_LINT): Define.
41297         (trim2): Use it to avoid a "may be used uninitialized" warning.
41298
41299         Fix doc typo.
41300         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41301
41302 2008-05-19  Bruno Haible  <bruno@clisp.org>
41303
41304         * doc/glibc-functions/getpass.texi: Document limits of other
41305         implementations.
41306
41307 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41308             Bruno Haible <bruno@clisp.org>
41309
41310         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41311
41312 2008-05-18  Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/propername: New file, from GNU gettext.
41315         * lib/propername.h: New file, from GNU gettext.
41316         * lib/propername.c: New file, from GNU gettext.
41317         * MODULES.html.sh (Internationalization functions): Add propername.
41318
41319 2008-05-16  Jim Meyering  <meyering@redhat.com>
41320             Bruno Haible  <bruno@clisp.org>
41321
41322         Avoid some warnings from "gcc -Wshadow".
41323         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41324
41325 2008-05-15  Eric Blake  <ebb9@byu.net>
41326
41327         Extend previous patch to cygwin 1.7.0.
41328         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41329         fast implementation in cygwin >= 1.7.0.
41330         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41332
41333 2008-05-15  Bruno Haible  <bruno@clisp.org>
41334
41335         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41336         implementation in glibc >= 2.9.
41337         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41339
41340 2008-05-15  Bruno Haible  <bruno@clisp.org>
41341
41342         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41343         (Unicode string functions): Add unilbrk/*.
41344         Reported by Karl Berry.
41345
41346 2008-05-15  Eric Blake  <ebb9@byu.net>
41347
41348         Fix violation of <stdbool.h> replacement in regex.
41349         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41350         * lib/regexec.c (re_search_internal): Likewise.
41351         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41352
41353 2008-05-15  Jim Meyering  <meyering@redhat.com>
41354
41355         avoid distracting test output when git or cvs is not found
41356         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41357         * tests/test-vc-list-files-git.sh: Likewise.
41358
41359 2008-05-15  Eric Blake  <ebb9@byu.net>
41360
41361         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41362         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41363         glibc version.
41364         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41365         * doc/posix-functions/strstr.texi (strstr): Likewise.
41366         * lib/str-two-way.h (MAX): Sychronize with glibc.
41367
41368 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41369
41370         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41371         opr.ctx_type.
41372         (calc_first): Initialize constraint field.
41373         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41374         Fix grammar.
41375         (duplicate_node): Merge constraint field for all node types.
41376         (calc_eclosure_iter): Look at constraint field for all node types.
41377         * lib/regex_internal.c (create_cd_newstate): Don't look at
41378         opr.ctx_type.
41379
41380 2008-05-14  Bruno Haible  <bruno@clisp.org>
41381
41382         Help GCC to do better code generation.
41383         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41384         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41385         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41386         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41387         Declare with attribute 'malloc' if supported.
41388
41389 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41390
41391         use "echo STR|wc -c" rather than unportable "expr length STR"
41392         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41393         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41394
41395 2008-05-14  Jim Meyering  <meyering@redhat.com>
41396
41397         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41398         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41399         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41400         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41401         via Collin Lasse.
41402
41403 2008-05-14  Eric Blake  <ebb9@byu.net>
41404
41405         Avoid quadratic growth in gl_LIBSOURCES.
41406         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41407         Suggested by Bruno Haible.
41408
41409         Test xmemdup0.
41410         * modules/xmemdup0-tests: New file.
41411         * tests/test-xmemdup0.c: Likewise.
41412
41413 2008-05-13  Eric Blake  <ebb9@byu.net>
41414
41415         Split xmemdup0 into its own module.
41416         * modules/xmemdup0: New file.
41417         * lib/xmemdup0.h: Likewise.
41418         * lib/xmemdup0.c: Likewise.
41419         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41420         * lib/xalloc.h (xmemdup0): Remove.
41421         * lib/xmalloc.c (xmemdup0): Likewise.
41422
41423 2008-05-13  Eric Blake  <ebb9@byu.net>
41424             Bruno Haible  <bruno@clisp.org>
41425
41426         Reduce number of forks required during autoconf.
41427         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41428         and gl_LIBSOURCES_DIR.
41429         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41430         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41431         m4_syscmd per file.
41432         <m4_foreach_w>: Move...
41433         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41434
41435 2008-05-13  Eric Blake  <ebb9@byu.net>
41436
41437         * gnulib-tool: Fix various comment typos.
41438
41439 2008-05-12  Bruno Haible  <bruno@clisp.org>
41440
41441         Tailor the linebreaking algorithm.
41442         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41443
41444 2008-05-12  Bruno Haible  <bruno@clisp.org>
41445
41446         Update to Unicode 5.0.0.
41447         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41448         LBP_JV, LBP_JT. Redistribute values.
41449         (unilbrk_table): Change size.
41450         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41451         Unicode TR#14 rev. 22.
41452         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41453         LBP_JV, LBP_JT. Redistribute values.
41454         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41455         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41456         Update.
41457         * lib/unilbrk/lbrkprop1.h: Regenerated.
41458         * lib/unilbrk/lbrkprop2.h: Regenerated.
41459         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41460         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41461         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41462         Likewise.
41463         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41464         Likewise.
41465         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41466         result.
41467         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41468         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41469         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41470         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41471         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41472         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41473
41474 2008-05-11  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41477
41478 2008-05-11  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41481         * modules/unilbrk/gen-lbrk: New file.
41482
41483 2008-05-11  Bruno Haible  <bruno@clisp.org>
41484
41485         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41486         * m4/sha512.m4 (gl_SHA512): Likewise.
41487
41488 2008-05-11  Jim Meyering  <meyering@redhat.com>
41489
41490         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41491         * modules/crypto/sha256: New file.
41492         * modules/crypto/sha512: Likewise.
41493         * lib/sha256.c: Likewise.
41494         * lib/sha256.h: Likewise.
41495         * lib/sha512.c: Likewise.
41496         * lib/sha512.h: Likewise.
41497         * lib/u64.h: Likewise.
41498         * m4/sha256.m4: Likewise.
41499         * m4/sha512.m4: Likewise.
41500         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41501
41502 2008-05-10  Bruno Haible  <bruno@clisp.org>
41503
41504         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41505         (Input/Output <stdio.h>): Add xprintf.
41506         (Signal handling <signal.h>): Add strsignal.
41507         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41508         (Core language properties): Add func.
41509         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41510         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41511         strings.
41512         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41513         (Input/output): New section.
41514         (File system functions): Add openat-die, stat-macros.
41515         (Networking functions): Add sockets.
41516         (Unicode string functions): Add unictype/*.
41517         (Support for building libraries and executables): Add gperf.
41518         (Support for building documentation): Add agpl-3.0.
41519         (Misc): Add nocrash.
41520
41521 2008-05-10  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/unictype/gen-ctype: New file.
41524
41525 2008-05-10  Jim Meyering  <meyering@redhat.com>
41526
41527         Make chdir-safer.c more efficient on a system with no symlinks.
41528         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41529         also if ELOOP is zero.  Suggested by Bruno Haible.
41530
41531         Make chdir-safer.c slightly safer.
41532         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41533         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41534
41535         Avoid compile failure on systems without ELOOP (like mingw).
41536         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41537         Reported by Bruno Haible.
41538
41539 2008-05-10  Bruno Haible  <bruno@clisp.org>
41540
41541         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41542         (is_utf8_encoding): Use a case-insensitive comparison.
41543         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41544         streq.
41545
41546 2008-05-10  Bruno Haible  <bruno@clisp.org>
41547
41548         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41549         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41550         * lib/unilbrk/ulc-common.h (iconv_string_length,
41551         iconv_string_keeping_offsets): Remove declarations.
41552         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41553         Don't include <iconv.h>, streq.h, xsize.h.
41554         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41555         conversion.
41556         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41557         <iconv.h>, streq.h, xsize.h.
41558         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41559         conversion.
41560         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41561         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41562         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41563         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41564
41565 2008-05-10  Bruno Haible  <bruno@clisp.org>
41566
41567         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41568         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41569
41570         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41571         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41572
41573         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41574         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41575
41576         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41577         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41578
41579         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41580         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41581
41582         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41583         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41584
41585         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41586         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41587
41588         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41589         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41590
41591 2008-05-10  Bruno Haible  <bruno@clisp.org>
41592
41593         Split up 'linebreak' module.
41594         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41595         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41596         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41597         modifications.
41598         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41599         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41600         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41601         lib/linebreak.c.
41602         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41603         lib/linebreak.c.
41604         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41605         lib/linebreak.c.
41606         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41607         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41608         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41609         lib/linebreak.c.
41610         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41611         lib/linebreak.c.
41612         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41613         lib/linebreak.c.
41614         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41615         lib/linebreak.c.
41616         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41617         lib/linebreak.c.
41618         * modules/unilbrk/base: New file.
41619         * modules/unilbrk/tables: New file.
41620         * modules/unilbrk/u8-possible-linebreaks: New file.
41621         * modules/unilbrk/u16-possible-linebreaks: New file.
41622         * modules/unilbrk/u32-possible-linebreaks: New file.
41623         * modules/unilbrk/ulc-common: New file.
41624         * modules/unilbrk/ulc-possible-linebreaks: New file.
41625         * modules/unilbrk/u8-width-linebreaks: New file.
41626         * modules/unilbrk/u16-width-linebreaks: New file.
41627         * modules/unilbrk/u32-width-linebreaks: New file.
41628         * modules/unilbrk/ulc-width-linebreaks: New file.
41629         * lib/linebreak.h: Remove file.
41630         * lib/linebreak.c: Remove file.
41631         * m4/linebreak.m4: Remove file.
41632         * modules/linebreak: Remove file.
41633         * NEWS: Mention the changes.
41634
41635 2008-05-09  Eric Blake  <ebb9@byu.net>
41636
41637         Add xmemdup0.
41638         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41639         implementation.
41640         * lib/xmalloc.c (xmemdup0): New C implementation.
41641
41642 2008-05-08  Bruno Haible  <bruno@clisp.org>
41643
41644         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41645
41646 2008-05-07  Eric Blake  <ebb9@byu.net>
41647
41648         Support cross-compilation of <wctype.h>.
41649         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41650         AC_CACHE_CHECK.
41651
41652 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41653
41654         * build-aux/vc-list-files: Add support for bzr.
41655
41656 2008-05-03  Jim Meyering  <meyering@redhat.com>
41657
41658         avoid failed assertion with tight malloc
41659         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41660
41661 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41662
41663         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41664         are needed from arpa/inet.h.
41665         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41666         Reported by Bruno Haible.
41667
41668 2008-05-02  Jim Meyering  <meyering@redhat.com>
41669
41670         avoid compilation error on FreeBSD 6
41671         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41672
41673 2008-05-01  Jim Meyering  <meyering@redhat.com>
41674
41675         useless-if-before-free: correct --help's exit status description
41676         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41677         for one or more matches, etc.  Reported by Bruno Haible.
41678
41679         vc-list-files: make the stand-alone gnulib test work
41680         * modules/vc-list-files-tests (configure.ac):
41681         Define and AC_SUBST abs_aux_dir.
41682         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41683         $(abs_top_srcdir) to each script and having each of them
41684         duplicate the work of setting PATH, set PATH here, using
41685         the new variable, abs_aux_dir instead.
41686         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41687         * tests/test-vc-list-files-git.sh: Likewise.
41688         Reported by Bruno Haible.
41689
41690 2008-05-01  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41693         reallocation. Rename 'done' to 'found_delimiter'.
41694
41695 2008-05-01  Jim Meyering  <meyering@redhat.com>
41696
41697         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41698         * build-aux/vc-list-files: Use `...`, not $(...).
41699
41700 2008-04-30  Jim Meyering  <meyering@redhat.com>
41701
41702         add tests for vc-list-files
41703         * modules/vc-list-files-tests: New module.
41704         * tests/test-vc-list-files-cvs.sh: New file.
41705         * tests/test-vc-list-files-git.sh: New file.
41706
41707         avoid a warning from gcc
41708         * lib/getndelim2.c (IF_LINT): Define.
41709         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41710
41711         vc-list-files: work properly with build-aux/cvsu, too
41712         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41713         to all cvs-based clauses.
41714
41715         vc-list-files: work properly in the CVS+awk case, too
41716         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41717
41718         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41719         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41720         take more than one file argument, so .  Add quotes, just in case $dir
41721         ever contains a shell meta-character.  Prompted by Soren Hansen in
41722         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41723
41724 2008-04-29  Eric Blake  <ebb9@byu.net>
41725
41726         Optimize getndelim2 to use block operations when possible.
41727         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41728         freadseek, and memchr2.
41729         * lib/getndelim2.c (getndelim2): Use them for block reads.
41730
41731 2008-04-29  Bruno Haible  <bruno@clisp.org>
41732
41733         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41734         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41735         * modules/inet_ntop (Depends-on): Add extensions.
41736         * modules/inet_pton (Depends-on): Likewise.
41737         Reported by Simon Josefsson.
41738
41739 2008-04-29  Jim Meyering  <meyering@redhat.com>
41740
41741         When the is more than one match in a block, match all of them.
41742         * build-aux/useless-if-before-free: Iterate through each block
41743         until there are no more matches.
41744
41745         Fix broken useless-if-before-free script.
41746         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41747         the expression to match cast of argument to free-like function.
41748
41749 2008-04-29  Eric Blake  <ebb9@byu.net>
41750
41751         Use new header.
41752         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41753
41754 2008-04-29  Jim Meyering  <meyering@redhat.com>
41755
41756         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41757         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41758         by gnulib to exist and to declare e.g., inet_ntop.
41759         Don't include "inet_ntop.h", now removed.
41760
41761         * m4/arpa_inet_h.m4: Remove trailing blanks.
41762
41763 2008-04-29  Eric Blake  <ebb9@byu.net>
41764
41765         Silence valgrind on safe reads beyond potential array bounds.
41766         * lib/rawmemchr.valgrind: New file.
41767         * lib/strchrnul.valgrind: Likewise.
41768         * modules/rawmemchr (Files): Distribute new file.
41769         * modules/strchrnul (Files): Likewise.
41770         Suggested by Bruno Haible.
41771
41772 2008-04-29  Bruno Haible  <bruno@clisp.org>
41773
41774         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41775         (inet_ntop, inet_pton): Change portability warning's wording.
41776         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41777         Invoke gl_CHECK_NEXT_HEADERS.
41778         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41779         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41780         set ARPA_INET_H.
41781         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41782         * modules/arpa_inet (Description): No longer only for systems that
41783         lack it.
41784         (Depends-on): Add include_next.
41785         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41786         HAVE_ARPA_INET_H.
41787
41788 2008-04-29  Jim Meyering  <meyering@redhat.com>
41789
41790         * modules/mkdir (License): Re-license as LGPLv2+.
41791
41792 2008-04-29  Bruno Haible  <bruno@clisp.org>
41793
41794         * modules/rawmemchr (Maintainer): Set to Eric.
41795         * modules/strchrnul (Maintainer): Likewise.
41796
41797 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41798
41799         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41800         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41801
41802         * modules/arpa_inet (arpa/inet.h): Use them.
41803
41804 2008-04-28  Eric Blake  <ebb9@byu.net>
41805
41806         Test getndelim2.
41807         * modules/getndelim2-tests: New file.
41808         * tests/test-getndelim2.c: Likewise.
41809         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41810         stream.
41811         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41812
41813         * MODULES.html.sh: Document new module.
41814
41815 2008-04-20  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/c-stack.c (die): Use raise.
41818         * modules/c-stack (Depends-on): Add raise.
41819
41820 2008-04-28  Bruno Haible  <bruno@clisp.org>
41821
41822         Expect rpmatch to be declared.
41823         * lib/yesno.c (rpmatch): Remove declaration.
41824
41825         Declare rpmatch.
41826         * lib/stdlib.in.h (rpmatch): New declaration.
41827         * lib/rpmatch.c: Include <stdlib.h> first.
41828         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41829         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41831         HAVE_RPMATCH.
41832         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41834         (Include): Set to <stdlib.h>.
41835         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41836         HAVE_RPMATCH.
41837         * NEWS: Document the change.
41838
41839 2008-04-28  Bruno Haible  <bruno@clisp.org>
41840
41841         Change rpmatch to use nl_langinfo when appropriate.
41842         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41843         (N_): New macro.
41844         (localized_pattern): New function/macro.
41845         (try): Remove match, nomatch arguments. Copy the pattern into safe
41846         memory before caching it.
41847         (rpmatch): Use localized_pattern. Add translator comments.
41848         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41849         Suggested by Eric Blake.
41850         * modules/rpmatch (Depends-on): Add stdbool.
41851
41852 2008-04-28  Eric Blake  <ebb9@byu.net>
41853
41854         Add rawmemchr module, matching glibc.
41855         * modules/string (Makefile.am): New indicator.
41856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41857         * lib/string.in.h (rawmemchr): Declare when appropriate.
41858         * modules/rawmemchr: New file.
41859         * m4/rawmemchr.m4: Likewise.
41860         * lib/rawmemchr.c: Likewise.
41861         * modules/rawmemchr-tests: Likewise.
41862         * tests/test-rawmemchr.c: Likewise.
41863         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41864         module.
41865         * modules/strchrnul (Depends-on): Add rawmemchr.
41866         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41867
41868         Whitespace cleanup.
41869         * tests/test-strchrnul.c: Reindent.
41870         * lib/strchrnul.c: Likewise.
41871
41872         Optimize and test strchrnul.
41873         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41874         * modules/strchrnul-tests: New file.
41875         * tests/test-strchrnul.c: Likewise.
41876
41877         Remove intprops dependency.
41878         * modules/memchr (Depends-on): Remove intprops.
41879         * modules/memrchr (Depends-on): Likewise.
41880         * modules/memchr2 (Depends-on): Likewise.
41881         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41882         * lib/memrchr.c (__memrchr): Likewise.
41883         * lib/memrchr2.c (memchr2): Likewise.
41884         Reported by Simon Josefsson.
41885
41886 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41887
41888         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41889         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41890
41891 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41892
41893         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41894
41895         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41896
41897         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41898
41899         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41900         declarations.
41901         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41902
41903         * m4/inet_pton.m4: Don't check for header files.
41904
41905         * m4/inet_ntop.m4: Don't check for header files.
41906
41907 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41908
41909         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41910         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41911         trigger for cygwin).
41912         Reported by Bruno Haible  <bruno@clisp.org>.
41913
41914 2008-04-28  Bruno Haible  <bruno@clisp.org>
41915
41916         * doc/posix-functions/strdup.texi: Mention mingw problem.
41917
41918 2008-04-27  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/stat-time-tests (Depends-on): Add sleep.
41921         * tests/test-stat-time.c (force_unlink): New function.
41922         (cleanup): Use it.
41923         (test_mtime): Remove the ctime related tests.
41924         (test_ctime): New function, containing the ctime related tests.
41925         (main): Call test_ctime, except on native Windows platforms.
41926
41927 2008-04-27  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/rpmatch.c (rpmatch): Add some comments.
41930         Reported by James Youngman <jay@gnu.org>.
41931
41932 2008-04-27  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41935         quiet NaNs.
41936
41937 2008-04-27  Bruno Haible  <bruno@clisp.org>
41938
41939         Make test-yesno.sh work on mingw.
41940         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41941         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41942         (main): Set stdin to binary mode.
41943         * modules/yesno-tests (Depends-on): Add binary-io.
41944
41945 2008-04-27  Bruno Haible  <bruno@clisp.org>
41946
41947         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41948         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41949         argument that lie outside the IEEE 854 domain.
41950         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41951         (gl_ISFINITE): Use it.
41952         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41953
41954 2008-04-27  Bruno Haible  <bruno@clisp.org>
41955
41956         Allow local renaming in config.h.
41957         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41958
41959 2008-04-27  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/memchr.c (__memchr): Change type of 'i'.
41962         * lib/memchr2.c (memchr2): Likewise.
41963
41964 2008-04-26  Eric Blake  <ebb9@byu.net>
41965         and Bruno Haible  <bruno@clisp.org>
41966
41967         Optimize and test memrchr.
41968         * modules/memrchr (Depends-on): Add intprops.
41969         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41970         * modules/memrchr-tests: New file.
41971         * tests/test-memrchr.c: New file.
41972
41973 2008-04-26  Bruno Haible  <bruno@clisp.org>
41974
41975         Add tentative support for DragonFly BSD.
41976         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41977         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41978         fp.
41979         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41980         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41981         * lib/fpurge.c (fpurge): Likewise.
41982         * lib/freadable.c (freaadable): Likewise.
41983         * lib/freadahead.c (freadahead): Likewise.
41984         * lib/freading.c (freading): Likewise.
41985         * lib/freadptr.c (freadptr): Likewise.
41986         * lib/freadseek.c (freadptrinc): Likewise.
41987         * lib/fseeko.c (fseeko): Likewise.
41988         * lib/fseterr.c (fseterr): Likewise.
41989         * lib/fwritable.c (fwritable): Likewise.
41990         * lib/fwriting.c (fwriting): Likewise.
41991
41992 2008-04-26  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/stdio-impl.h: New file.
41995         * lib/fbufmode.c: Include stdio-impl.h.
41996         (fbufmode): Use fp_, remove redundant #defines.
41997         * lib/fflush.c: Include stdio-impl.h.
41998         (clear_ungetc_buffer): Remove redundant #defines.
41999         * lib/fpurge.c: Include stdio-impl.h.
42000         (fpurge): Remove redundant #defines.
42001         * lib/freadable.c: Include stdio-impl.h.
42002         (freadable): Remove redundant #defines.
42003         * lib/freadahead.c: Include stdio-impl.h.
42004         (freadahead): Remove redundant #defines.
42005         * lib/freading.c: Include stdio-impl.h.
42006         (freading): Remove redundant #defines.
42007         * lib/freadptr.c: Include stdio-impl.h.
42008         (freadptr): Remove redundant #defines.
42009         * lib/freadseek.c: Include stdio-impl.h.
42010         (freadptrinc): Remove redundant #defines.
42011         * lib/fseeko.c: Include stdio-impl.h.
42012         (rpl_fseeko): Remove redundant #defines.
42013         * lib/fseterr.c: Include stdio-impl.h.
42014         (fseterr): Remove redundant #defines.
42015         * lib/fwritable.c: Include stdio-impl.h.
42016         (fwritable: Remove redundant #defines.
42017         * lib/fwriting.c: Include stdio-impl.h.
42018         (fwriting): Remove redundant #defines.
42019         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42020         * modules/fflush (Files): Likewise.
42021         * modules/fpurge (Files): Likewise.
42022         * modules/freadable (Files): Likewise.
42023         * modules/freadahead (Files): Likewise.
42024         * modules/freading (Files): Likewise.
42025         * modules/freadptr (Files): Likewise.
42026         * modules/freadseek (Files): Likewise.
42027         * modules/fseeko (Files): Likewise.
42028         * modules/fseterr (Files): Likewise.
42029         * modules/fwritable (Files): Likewise.
42030         * modules/fwriting (Files): Likewise.
42031
42032 2008-04-26  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42035         restore_seek_optimization, update_fpos_cache): New functions, extracted
42036         from rpl_fflush.
42037         (rpl_fflush): Use them.
42038         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42039         (gl_REPLACE_FFLUSH): Use it.
42040
42041 2008-04-26  Bruno Haible  <bruno@clisp.org>
42042
42043         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42044         on Solaris.
42045         * tests/test-xstrtoimax.sh: Likewise.
42046         * tests/test-xstrtoumax.sh: Likewise.
42047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42048
42049 2008-04-26  Bruno Haible  <bruno@clisp.org>
42050
42051         * modules/memchr-tests: New file.
42052         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42053
42054 2008-04-26  Eric Blake  <ebb9@byu.net>
42055             Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/memchr.c: Include intprops.h.
42058         (__memchr): Optimize parallel detection of matching bytes. Rename local
42059         variables. Add explanatory comments.
42060
42061 2008-04-26  Bruno Haible  <bruno@clisp.org>
42062
42063         Fix module 'memchr', broken since 2000-10-28.
42064         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42065
42066 2008-04-26  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42069         comments.
42070
42071 2008-04-25  Eric Blake  <ebb9@byu.net>
42072
42073         Use native fstatat on cygwin 1.7.0.
42074         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42075         first.
42076
42077 2008-04-23  Eric Blake  <ebb9@byu.net>
42078
42079         Improve memchr2 performance.
42080         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42081         NUL bytes.
42082         * modules/memchr2 (Depends-on): Use intprops.h.
42083
42084 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42085
42086         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42087         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42088         <blp@cs.stanford.edu>.
42089
42090 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42091
42092         * lib/arpa_inet.in.h: New file.
42093
42094         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42095         (Makefile.am): Sed in substitute header file.
42096
42097         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42098         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42099
42100         * modules/inet_ntop (configure.ac): Use
42101         gl_ARPA_INET_MODULE_INDICATOR.
42102
42103         * modules/inet_pton (configure.ac): Use
42104         gl_ARPA_INET_MODULE_INDICATOR.
42105
42106 2008-04-22  Jim Meyering  <meyering@redhat.com>
42107
42108         * modules/verify (License): Re-license as LGPLv2+.
42109
42110 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42111
42112         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42113         parameter to void* as per POSIX standard (MinGW uses char*).
42114
42115 2008-04-21  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42118         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42119         Define to replacements if REPLACE_ISWCNTRL is 1.
42120         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42121         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42122         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42123         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42124         what it fixes.
42125         * doc/posix-functions/iswalpha.texi: Likewise.
42126         * doc/posix-functions/iswblank.texi: Likewise.
42127         * doc/posix-functions/iswcntrl.texi: Likewise.
42128         * doc/posix-functions/iswdigit.texi: Likewise.
42129         * doc/posix-functions/iswgraph.texi: Likewise.
42130         * doc/posix-functions/iswlower.texi: Likewise.
42131         * doc/posix-functions/iswprint.texi: Likewise.
42132         * doc/posix-functions/iswpunct.texi: Likewise.
42133         * doc/posix-functions/iswspace.texi: Likewise.
42134         * doc/posix-functions/iswupper.texi: Likewise.
42135         * doc/posix-functions/iswxdigit.texi: Likewise.
42136         Reported by Alain Guibert.
42137
42138 2008-04-21  Bruno Haible  <bruno@clisp.org>
42139
42140         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42141         Patch by Alain Guibert.
42142
42143 2008-04-21  Bruno Haible  <bruno@clisp.org>
42144
42145         Fix test failures on mingw.
42146         * tests/test-xstrtol.c (print_no_progname): New function.
42147         (main): Install it in error_print_progname hook.
42148         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42149         * tests/test-xstrtoimax.sh: Likewise.
42150         * tests/test-xstrtoumax.sh: Likewise.
42151
42152 2008-04-21  Bruno Haible  <bruno@clisp.org>
42153
42154         Fix test failure on mingw.
42155         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42156
42157 2008-04-21  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42160         Actually assign a value.
42161
42162 2008-04-20  Bruno Haible  <bruno@clisp.org>
42163
42164         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42165         take 2.
42166         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42167         'canonicalize-lgpl' module is also used.
42168         * lib/canonicalize-lgpl.c: Undo last change.
42169         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42170
42171 2008-04-20  Bruno Haible  <bruno@clisp.org>
42172
42173         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42174         config.h. Provide _mkdir based fallback for mingw.
42175         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42176         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42177         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42178         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42179         rather than defining mkdir in config.h.
42180         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42181         (gl_SYS_STAT_H_DEFAULTS): New macro.
42182         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42183         HAVE_IO_H any more.
42184         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42185         HAVE_DECL_MKDIR and HAVE_IO_H.
42186
42187 2008-04-20  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/isapipe.c: Port to native Windows platforms.
42190
42191 2008-04-20  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42194
42195 2008-04-21  Eric Blake  <ebb9@byu.net>
42196
42197         Work around preprocessors that don't handle UINTMAX_MAX.
42198         * lib/memchr2.c (memchr2): Avoid embedded #if.
42199         Reported by Alain Guibert, fix suggested by Bruno Haible.
42200
42201 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42202
42203         * doc/posix-functions/strftime.texi (strftime): Explain better
42204         Windows incompatibility.  Suggested by Micah Cowan
42205         <micah@cowan.name>.
42206
42207 2008-04-20  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42210         unistr/u8-mblen.
42211
42212 2008-04-20  Bruno Haible  <bruno@clisp.org>
42213
42214         Fix test failure on platforms with non-GNU iconv.
42215         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42216         (U_TO_U8): Use it, rather than u16_to_u8.
42217         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42218         units at the end of the input string.
42219         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42220
42221 2008-04-20  Bruno Haible  <bruno@clisp.org>
42222
42223         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42224         when the resulting length is 0.
42225         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42226
42227 2008-04-20  Bruno Haible  <bruno@clisp.org>
42228
42229         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42230         works.
42231         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42232
42233 2008-04-20  Bruno Haible  <bruno@clisp.org>
42234
42235         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42236         * modules/tsearch-tests (configure.ac): Test for initstate function.
42237
42238 2008-04-20  Bruno Haible  <bruno@clisp.org>
42239
42240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42241         for nlink_t if missing.
42242         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42243
42244 2008-04-19  Bruno Haible  <bruno@clisp.org>
42245
42246         Work around snprintf bug on Linux libc5.
42247         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42249         gl_SNPRINTF_SIZE1.
42250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42251         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42252         that test failed.
42253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42254         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42255         * modules/snprintf (Files): Add m4/printf.m4.
42256         * modules/vsnprintf (Files): Likewise.
42257         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42258         * doc/posix-functions/vsnprintf.texi: Likewise.
42259
42260 2008-04-19  Bruno Haible  <bruno@clisp.org>
42261
42262         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42263         from 0.0058 to less than 10^-7.
42264
42265 2008-04-19  Bruno Haible  <bruno@clisp.org>
42266
42267         Fix rounding when a precision is given.
42268         * lib/vasnprintf.c (is_borderline): New function.
42269         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42270         9...9x.
42271         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42272         %e, %g.
42273         * tests/test-vasprintf-posix.c (test_function): Likewise.
42274         * tests/test-snprintf-posix.h (test_function): Likewise.
42275         * tests/test-sprintf-posix.h (test_function): Likewise.
42276         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42277         * tests/test-printf-posix.h (test_function): Likewise.
42278         * tests/test-printf-posix.output: Update.
42279         Reported by John Darrington <john@darrington.wattle.id.au> via
42280         Ben Pfaff <blp@cs.stanford.edu>.
42281
42282 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42283
42284         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42285         Suggested by Bruno Haible <bruno@clisp.org>.
42286
42287 2008-04-17  Bruno Haible  <bruno@clisp.org>
42288
42289         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42290         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42291         implementation.
42292         Patch by Bruce Merry <bmerry@gmail.com>.
42293
42294 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42295
42296         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42297         doesn't work under Windows.
42298
42299 2008-04-16  Bruno Haible  <bruno@clisp.org>
42300
42301         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42302         New macros.
42303         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42304         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42305         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42306         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42307         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42308         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42309         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42310         macros.
42311         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42312         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42313         Northern Sotho, Uighur.
42314
42315 2008-04-16  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42318         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42319         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42320         Reported by Daniel Bergström <daniel@octocode.com>.
42321
42322 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42323             Bruno Haible  <bruno@clisp.org>
42324
42325         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42326         function.
42327         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42328         New functions, mostly extracted from gl_locale_name_default.
42329         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42330
42331 2008-04-16  Eric Blake  <ebb9@byu.net>
42332
42333         Adjust strtod detection to catch glibc 2.7 bug.
42334         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42335         Reported by John Gatewood Ham.
42336
42337 2008-04-16  Bruno Haible  <bruno@clisp.org>
42338
42339         Add tentative support for Linux libc5.
42340         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42341         * lib/fpurge.c (fpurge): Likewise.
42342         * lib/freadable.c (freadable): Likewise.
42343         * lib/freadahead.c (freadahead): Likewise.
42344         * lib/freading.c (freading): Likewise.
42345         * lib/freadptr.c (freadptr): Likewise.
42346         * lib/freadseek.c (freadptrinc): Likewise.
42347         * lib/fseeko.c (rpl_fseeko): Likewise.
42348         * lib/fseterr.c (fseterr): Likewise.
42349         * lib/fwritable.c (fwritable): Likewise.
42350         * lib/fwriting.c (fwriting): Likewise.
42351         Reported by Alain Guibert <alguibert+bts@free.fr>.
42352
42353 2008-04-15  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/mathl (configure.ac): Define module indicator.
42356
42357 2008-04-15  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/logl.c (logl): Remove unused variables.
42360
42361 2008-04-15  Bruno Haible  <bruno@clisp.org>
42362
42363         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42364         fails.
42365
42366 2008-04-15  Bruno Haible  <bruno@clisp.org>
42367
42368         * lib/trim.c (trim2): Fix argument of isspace() macro.
42369
42370 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42371
42372         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42373         to 0.
42374         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42375
42376 2008-04-14  Bruno Haible  <bruno@clisp.org>
42377
42378         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42379         AC_LANG_PROGRAM argument.
42380         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42381         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42383         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42384         * m4/math_h.m4 (gl_MATH_H): Likewise.
42385         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42387         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42388         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42389         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42390         * m4/regex.m4 (gl_REGEX): Likewise.
42391         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42392         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42394         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42396         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42397         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42399
42400 2008-04-14  Jim Meyering  <meyering@redhat.com>
42401
42402         test-strtod: fix typos: s/abs/fabs/
42403         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42404
42405 2008-04-13  Bruno Haible  <bruno@clisp.org>
42406
42407         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42408         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42409         module is also used and while not building the reloc-wrapper.
42410
42411 2008-04-13  Bruno Haible  <bruno@clisp.org>
42412
42413         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42414
42415 2008-04-13  Bruno Haible  <bruno@clisp.org>
42416
42417         Fix AIX compilation failure introduced on 2008-04-02.
42418         * tests/test-frexp.c (exp): Undefine before redefining.
42419         * tests/test-frexpl.c (exp): Likewise.
42420
42421 2008-04-13  Bruno Haible  <bruno@clisp.org>
42422
42423         Work around a HP-UX stdio bug.
42424         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42425         * tests/test-ftello.c (main): Likewise.
42426         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42427         * doc/posix-functions/ftello.texi: Likewise.
42428
42429 2008-04-13  Bruno Haible  <bruno@clisp.org>
42430
42431         Make test-signbit pass on HP-UX/hppa.
42432         * tests/test-signbit.c (minus_zerol): New variable.
42433         (test_signbitl): Use it.
42434
42435 2008-04-13  Bruno Haible  <bruno@clisp.org>
42436
42437         Make truncl work on OSF/1 4.0.
42438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42439         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42440         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42442         HAVE_DECL_TRUNCL.
42443         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42444         HAVE_DECL_TRUNCL.
42445         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42446
42447 2008-04-13  Bruno Haible  <bruno@clisp.org>
42448
42449         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42450
42451 2008-04-13  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42454         expression, so as to avoid HP-UX 11 cc compiler bug.
42455
42456 2008-04-13  Bruno Haible  <bruno@clisp.org>
42457
42458         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42459
42460 2008-04-13  Bruno Haible  <bruno@clisp.org>
42461
42462         * lib/git-merge-changelog.c: Remove empty declaration outside of
42463         functions.
42464
42465 2008-04-13  Bruno Haible  <bruno@clisp.org>
42466
42467         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42468
42469 2008-04-13  Bruno Haible  <bruno@clisp.org>
42470
42471         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42472         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42474         also if it exists but lacks definitions of the SHUT_* macros.
42475         * modules/sys_socket (Description): Update.
42476         Reported by Elbert Pol <e.pol@chello.nl>.
42477
42478 2008-04-13  Bruno Haible  <bruno@clisp.org>
42479
42480         * lib/localcharset.c (OS2): Don't redefine if already defined.
42481         Reported by Elbert Pol <e.pol@chello.nl>.
42482
42483 2008-04-13  Bruno Haible  <bruno@clisp.org>
42484
42485         * lib/binary-io.h [__EMX__]: Include <io.h>.
42486         Reported by Elbert Pol <e.pol@chello.nl>.
42487
42488 2008-04-12  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/fpucw.h: Enable the definitions also for x86_64.
42491         Needed for NetBSD/x86_64.
42492         Reported by Thomas Klausner <tk@giga.or.at>.
42493
42494 2008-04-12  Bruno Haible  <bruno@clisp.org>
42495
42496         * tests/test-strtod.c: Include isnand.h.
42497         (main): Use isnand instead of isnan.
42498         Reported by Jim Meyering.
42499
42500 2008-04-12  Bruno Haible  <bruno@clisp.org>
42501
42502         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42503         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42504
42505 2008-04-12  Jim Meyering  <meyering@redhat.com>
42506
42507         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42508
42509 2008-04-12  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42512         Reported by Elbert Pol <e.pol@chello.nl>.
42513
42514 2008-04-12  Eric Blake  <ebb9@byu.net>
42515
42516         Work around Solaris 10 math.h bug.
42517         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42518         (gl_MATH_H_DEFAULTS): Set up default.
42519         * modules/math (Makefile.am): Replace new indicators.
42520         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42521         * tests/test-math.c (main): Test this.
42522         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42523         * doc/posix-headers/math.texi (math.h): Mention bug.
42524         Reported by Nelson H. F. Beebe and Jim Meyering.
42525
42526 2008-04-11  Bruno Haible  <bruno@clisp.org>
42527
42528         Adapt to future versions of Apple GCC.
42529         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42530         Reported by Peter O'Gorman <peter@pogma.com>.
42531
42532 2008-04-11  Bruno Haible  <bruno@clisp.org>
42533
42534         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42535
42536 2008-04-11  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42539
42540         * modules/getaddrinfo-tests (Makefile.am): Define
42541         test_getaddrinfo_LDADD.
42542
42543 2008-04-11  Bruno Haible  <bruno@clisp.org>
42544
42545         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42546         (init): Fix syntax error.
42547         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42548         is declared.
42549
42550 2008-04-11  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42553         * modules/glob (Depends-on): Add stdbool.
42554
42555 2008-04-11  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/trim.c: Include <string.h>.
42558
42559 2008-04-11  Eric Blake  <ebb9@byu.net>
42560
42561         Avoid compile failure on OS/2.
42562         * lib/regex_internal.h (internal_function): Disable optimization
42563         on OS/2 (__EMX__), where it caused compiler error.
42564         Reported by Elbert Pol.
42565
42566 2008-04-11  Bruno Haible  <bruno@clisp.org>
42567
42568         Flush the standard error stream before aborting. Needed on mingw.
42569         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42570         * tests/test-array_list.c (ASSERT): Likewise.
42571         * tests/test-array_oset.c (ASSERT): Likewise.
42572         * tests/test-avltree_list.c (ASSERT): Likewise.
42573         * tests/test-avltree_oset.c (ASSERT): Likewise.
42574         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42575         * tests/test-binary-io.c (ASSERT): Likewise.
42576         * tests/test-byteswap.c (ASSERT): Likewise.
42577         * tests/test-c-ctype.c (ASSERT): Likewise.
42578         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42579         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42580         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42581         * tests/test-c-strstr.c (ASSERT): Likewise.
42582         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42583         * tests/test-canonicalize.c (ASSERT): Likewise.
42584         * tests/test-carray_list.c (ASSERT): Likewise.
42585         * tests/test-ceilf1.c (ASSERT): Likewise.
42586         * tests/test-ceilf2.c (ASSERT): Likewise.
42587         * tests/test-ceill.c (ASSERT): Likewise.
42588         * tests/test-count-one-bits.c (ASSERT): Likewise.
42589         * tests/test-fbufmode.c (ASSERT): Likewise.
42590         * tests/test-fflush2.c (ASSERT): Likewise.
42591         * tests/test-floorf1.c (ASSERT): Likewise.
42592         * tests/test-floorf2.c (ASSERT): Likewise.
42593         * tests/test-floorl.c (ASSERT): Likewise.
42594         * tests/test-fopen.c (ASSERT): Likewise.
42595         * tests/test-fpending.c (ASSERT): Likewise.
42596         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42597         * tests/test-fpurge.c (ASSERT): Likewise.
42598         * tests/test-freadable.c (ASSERT): Likewise.
42599         * tests/test-freadahead.c (ASSERT): Likewise.
42600         * tests/test-freading.c (ASSERT): Likewise.
42601         * tests/test-freadptr.c (ASSERT): Likewise.
42602         * tests/test-freadptr2.c (ASSERT): Likewise.
42603         * tests/test-freadseek.c (ASSERT): Likewise.
42604         * tests/test-freopen.c (ASSERT): Likewise.
42605         * tests/test-frexp.c (ASSERT): Likewise.
42606         * tests/test-frexpl.c (ASSERT): Likewise.
42607         * tests/test-fseek.c (ASSERT): Likewise.
42608         * tests/test-fseeko.c (ASSERT): Likewise.
42609         * tests/test-fstrcmp.c (ASSERT): Likewise.
42610         * tests/test-ftell.c (ASSERT): Likewise.
42611         * tests/test-ftello.c (ASSERT): Likewise.
42612         * tests/test-func.c (ASSERT): Likewise.
42613         * tests/test-fwritable.c (ASSERT): Likewise.
42614         * tests/test-fwriting.c (ASSERT): Likewise.
42615         * tests/test-getdelim.c (ASSERT): Likewise.
42616         * tests/test-getline.c (ASSERT): Likewise.
42617         * tests/test-i-ring.c (ASSERT): Likewise.
42618         * tests/test-iconv-utf.c (ASSERT): Likewise.
42619         * tests/test-iconv.c (ASSERT): Likewise.
42620         * tests/test-isfinite.c (ASSERT): Likewise.
42621         * tests/test-isnand.c (ASSERT): Likewise.
42622         * tests/test-isnanf.c (ASSERT): Likewise.
42623         * tests/test-isnanl.h (ASSERT): Likewise.
42624         * tests/test-ldexpl.c (ASSERT): Likewise.
42625         * tests/test-linked_list.c (ASSERT): Likewise.
42626         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42627         * tests/test-localename.c (ASSERT): Likewise.
42628         * tests/test-lseek.c (ASSERT): Likewise.
42629         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42630         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42631         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42632         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42633         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42634         * tests/test-mbschr.c (ASSERT): Likewise.
42635         * tests/test-mbscspn.c (ASSERT): Likewise.
42636         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42637         * tests/test-mbspbrk.c (ASSERT): Likewise.
42638         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42639         * tests/test-mbsrchr.c (ASSERT): Likewise.
42640         * tests/test-mbsspn.c (ASSERT): Likewise.
42641         * tests/test-mbsstr1.c (ASSERT): Likewise.
42642         * tests/test-mbsstr2.c (ASSERT): Likewise.
42643         * tests/test-mbsstr3.c (ASSERT): Likewise.
42644         * tests/test-memchr2.c (ASSERT): Likewise.
42645         * tests/test-memmem.c (ASSERT): Likewise.
42646         * tests/test-open.c (ASSERT): Likewise.
42647         * tests/test-printf-frexp.c (ASSERT): Likewise.
42648         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42649         * tests/test-printf-posix.c (ASSERT): Likewise.
42650         * tests/test-quotearg.c (ASSERT): Likewise.
42651         * tests/test-rbtree_list.c (ASSERT): Likewise.
42652         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42653         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42654         * tests/test-round1.c (ASSERT): Likewise.
42655         * tests/test-roundf1.c (ASSERT): Likewise.
42656         * tests/test-roundl.c (ASSERT): Likewise.
42657         * tests/test-signbit.c (ASSERT): Likewise.
42658         * tests/test-sleep.c (ASSERT): Likewise.
42659         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42660         * tests/test-snprintf.c (ASSERT): Likewise.
42661         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42662         * tests/test-stat-time.c (ASSERT): Likewise.
42663         * tests/test-strcasestr.c (ASSERT): Likewise.
42664         * tests/test-strerror.c (ASSERT): Likewise.
42665         * tests/test-striconv.c (ASSERT): Likewise.
42666         * tests/test-striconveh.c (ASSERT): Likewise.
42667         * tests/test-striconveha.c (ASSERT): Likewise.
42668         * tests/test-strsignal.c (ASSERT): Likewise.
42669         * tests/test-strstr.c (ASSERT): Likewise.
42670         * tests/test-strtod.c (ASSERT): Likewise.
42671         * tests/test-trunc1.c (ASSERT): Likewise.
42672         * tests/test-trunc2.c (ASSERT): Likewise.
42673         * tests/test-truncf1.c (ASSERT): Likewise.
42674         * tests/test-truncf2.c (ASSERT): Likewise.
42675         * tests/test-truncl.c (ASSERT): Likewise.
42676         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42677         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42678         * tests/test-vasnprintf.c (ASSERT): Likewise.
42679         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42680         * tests/test-vasprintf.c (ASSERT): Likewise.
42681         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42682         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42683         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42684         * tests/test-vsnprintf.c (ASSERT): Likewise.
42685         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42686         * tests/test-wcwidth.c (ASSERT): Likewise.
42687         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42688         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42689         * tests/test-xvasprintf.c (ASSERT): Likewise.
42690         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42691         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42692         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42693         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42694         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42695         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42696         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42697         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42698         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42699         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42700         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42701         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42702         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42703         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42704         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42705         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42706         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42707         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42708         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42709         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42710         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42711         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42712         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42713         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42714         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42715         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42716         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42717         * tests/unictype/test-combining.c (ASSERT): Likewise.
42718         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42719         * tests/unictype/test-digit.c (ASSERT): Likewise.
42720         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42721         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42722         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42723         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42724         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42725         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42726         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42727         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42728         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42729         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42730         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42731         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42732         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42733         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42734         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42735         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42736         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42737         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42738         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42739         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42740         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42741         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42742         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42743         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42744         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42745         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42746         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42747         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42748         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42749         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42750         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42751         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42752         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42753         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42754         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42755         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42756         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42757         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42758         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42759         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42760         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42761         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42762         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42763         Reported by Eric Blake.
42764
42765 2008-04-11  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/wchar.in.h: Tweak comment.
42768
42769 2008-04-11  Bruno Haible  <bruno@clisp.org>
42770
42771         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42772         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42773         gl_COMMON.
42774         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42775
42776 2008-04-11  Bruno Haible  <bruno@clisp.org>
42777
42778         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42779
42780 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42781
42782         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42783         of attempting to use non-existing /dev/*random.  Based on patch
42784         from Adam Strzelecki <ono@java.pl> in
42785         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42786
42787 2008-04-08  Bruno Haible  <bruno@clisp.org>
42788
42789         Add tentative support for emx+gcc.
42790         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42791         * lib/fpurge.c (fpurge): Likewise.
42792         * lib/freadable.c (freadable): Likewise.
42793         * lib/freadahead.c (freadahead): Likewise.
42794         * lib/freading.c (freading): Likewise.
42795         * lib/freadptr.c (freadptr): Likewise.
42796         * lib/freadseek.c (freadptrinc): Likewise.
42797         * lib/fseeko.c (rpl_fseeko): Likewise.
42798         * lib/fseterr.c (fseterr): Likewise.
42799         * lib/fwritable.c (fwritable): Likewise.
42800         * lib/fwriting.c (fwriting): Likewise.
42801         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42802
42803 2008-04-09  Eric Blake  <ebb9@byu.net>
42804
42805         Avoid some autoconf warnings.
42806         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42807         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42808         * m4/afs.m4 (gl_AFS): Likewise.
42809         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42810         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42812         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42813         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42814         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42815         (AC_CHECK_DECLS_ONCE): Likewise.
42816         Rename file...
42817         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42818         gnulib-tool requires autoconf 2.59 or better.
42819         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42820
42821 2008-04-08  Eric Blake  <ebb9@byu.net>
42822
42823         Use 'git describe --match' if present (added in git 1.5.5).
42824         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42825         if possible.
42826
42827 2008-04-08  Bruno Haible  <bruno@clisp.org>
42828
42829         Add tentative support for OpenServer.
42830         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42831         _ptr, _cnt.
42832         * lib/fpurge.c (fpurge): Likewise.
42833         * lib/freadable.c (freadable): Likewise.
42834         * lib/freadahead.c (freadahead): Likewise.
42835         * lib/freading.c (freading): Likewise.
42836         * lib/freadptr.c (freadptr): Likewise.
42837         * lib/freadseek.c (freadptrinc): Likewise.
42838         * lib/fseeko.c (rpl_fseeko): Likewise.
42839         * lib/fseterr.c (fseterr): Likewise.
42840         * lib/fwritable.c (fwritable): Likewise.
42841         * lib/fwriting.c (fwriting): Likewise.
42842         Reported by Roger Cornelius <rac@tenzing.org> and
42843         Brian K. White <brian@aljex.com>.
42844
42845 2008-04-06  Jim Meyering  <meyering@redhat.com>
42846
42847         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42848
42849 2008-04-06  Bruno Haible  <bruno@clisp.org>
42850
42851         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42852         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42853         * tests/test-printf-posix.sh: Likewise.
42854         * tests/test-vfprintf-posix.sh: Likewise.
42855         * tests/test-vprintf-posix.sh: Likewise.
42856         * tests/test-xprintf-posix.sh: Likewise.
42857
42858 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42859
42860         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42861         hide error from 'ls', needed on OS/2.
42862         Report by Elbert Pol <elbert.pol@gmail.com>.
42863
42864 2008-04-04  Eric Blake  <ebb9@byu.net>
42865
42866         Make test-fseeko.c failures meaningful.
42867         * tests/test-fseeko.c: Print line number on failure.
42868         * tests/test-fseek.c: Likewise.
42869         Reported by Nelson H. F. Beebe.
42870
42871         Improve strtod bug detection check.
42872         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42873         required for Solaris 10.
42874         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42875
42876 2008-04-04  Bruno Haible  <bruno@clisp.org>
42877
42878         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42879         by m4/setenv.m4.
42880
42881 2008-04-03  Eric Blake  <ebb9@byu.net>
42882
42883         Ensure sane .version contents.
42884         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42885         version string.
42886         * build-aux/git-version-gen: Improve documentation.
42887
42888         Make GNU make output nicer.
42889         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42890         MAKECMDGOALS to enforce message for all command line targets.  Set
42891         srcdir for use in maint.mk.
42892
42893         Another maintainer tweak.
42894         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42895         a target that regenerates version.
42896
42897 2008-04-03  Jim Meyering  <meyering@redhat.com>
42898
42899         vc-list-files: don't cause coreutils "make po-check" failure
42900         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42901
42902 2008-04-03  Eric Blake  <ebb9@byu.net>
42903
42904         Allow VPATH usage of vc-list-files.
42905         * build-aux/vc-list-files (scriptversion): Add timestamp.
42906         (options): Add --help, --version, -C.
42907         (CVS): Support installed cvsu.
42908
42909 2008-04-02  Bruno Haible  <bruno@clisp.org>
42910
42911         Avoid some "statement with no effect" warnings from gcc.
42912         * tests/test-wctype.c (main): Explicitly ignore unused values.
42913         Reported by Jim Meyering.
42914
42915 2008-04-02  Jim Meyering  <meyering@redhat.com>
42916
42917         Avoid some warnings from "gcc -Wshadow".
42918         * tests/test-frexp.c (exp): Define to a different identifier.
42919         * tests/test-frexpl.c (exp): Likewise.
42920
42921 2008-04-03  Jim Meyering  <meyering@redhat.com>
42922
42923         bootstrap: remove dangling *.[ch] symlinks from lib
42924         * build-aux/bootstrap [dangling symlink removal]: Move find's
42925         -depth option to precede all others, to avoid a warning.
42926         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42927
42928 2008-04-02  Bruno Haible  <bruno@clisp.org>
42929
42930         Avoid some warnings from "gcc -Wshadow".
42931         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42932         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42933         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42934         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42935         Reported by Jim Meyering.
42936
42937 2008-04-01  Bruno Haible  <bruno@clisp.org>
42938
42939         Fix test to work on IRIX 6.5 with cc.
42940         * tests/test-math.c (numeric_equal): New function.
42941         (main): Use it.
42942
42943 2008-04-01  Bruno Haible  <bruno@clisp.org>
42944
42945         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42946
42947 2008-04-01  Bruno Haible  <bruno@clisp.org>
42948
42949         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42950         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42951         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42952         (Depends-on): Remove math.
42953
42954         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42956         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42957         (Depends-on): Remove math.
42958
42959         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42960         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42961         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42962         (Depends-on): Remove math.
42963         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42964         (Depends-on): Remove math.
42965
42966         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42967         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42968         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42969         (Depends-on): Remove math.
42970         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42971         (Depends-on): Remove math.
42972
42973         * tests/test-round1.c: Include nan.h.
42974         (main): Use NaNd instead of NAN.
42975         * modules/round-tests (Files): Add tests/nan.h.
42976
42977         * tests/test-trunc1.c: Include nan.h.
42978         (main): Use NaNd instead of NAN.
42979         * modules/trunc-tests (Files): Add tests/nan.h.
42980
42981         * tests/test-roundf1.c: Include nan.h.
42982         (main): Use NaNf instead of NAN.
42983         * modules/roundf-tests (Files): Add tests/nan.h.
42984
42985         * tests/test-truncf1.c: Include nan.h.
42986         (main): Use NaNf instead of NAN.
42987         * modules/truncf-tests (Files): Add tests/nan.h.
42988
42989         * tests/test-ceilf1.c: Include nan.h.
42990         (main): Use NaNf instead of NAN.
42991         * modules/ceilf-tests (Files): Add tests/nan.h.
42992
42993         * tests/test-floorf1.c: Include nan.h.
42994         (main): Use NaNf instead of NAN.
42995         * modules/floorf-tests (Files): Add tests/nan.h.
42996
42997         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42998         (main): Use NaNf instead of NAN.
42999         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43000
43001         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43002         (main): Use NaNd instead of NAN.
43003         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43004
43005         * tests/test-frexp.c: Include nan.h.
43006         (main): Use NaNd instead of NAN.
43007         * modules/frexp-tests (Files): Add tests/nan.h.
43008
43009         * lib/isnan.c: Don't include <math.h>.
43010         (FUNC): Don't use NAN macro.
43011         * modules/isnand-nolibm (Depends-on): Remove math.
43012         * modules/isnanf-nolibm (Depends-on): Remove math.
43013         * modules/isnanl (Depends-on): Remove math.
43014         * modules/isnanl-nolibm (Depends-on): Remove math.
43015
43016         * tests/nan.h: New file.
43017
43018 2008-04-01  Eric Blake  <ebb9@byu.net>
43019
43020         Fix typos.
43021         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43022         values to be the right type.
43023
43024         For now, cater to gnulib strtod inaccuracies.
43025         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43026         fractional results.  While not as nice from a QoI perspective, it
43027         is a quicker patch than correctly implementing decimal to binary
43028         rounding.
43029
43030 2008-03-31  Eric Blake  <ebb9@byu.net>
43031
43032         Guarantee a definition of NAN.
43033         * lib/math.in.h (NAN): Define if missing.
43034         * tests/test-math.c (main): Test it.
43035         * doc/posix-headers/math.texi (math.h): Document this.
43036         * lib/isnan.c (rpl_isnand): Use it.
43037         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43038         * tests/test-floorf1.c (NaN): Likewise.
43039         * tests/test-frexp.c (NaN): Likewise.
43040         * tests/test-isnand.c (NaN): Likewise.
43041         * tests/test-isnanf.c (NaN): Likewise.
43042         * tests/test-round1.c (NaN): Likewise.
43043         * tests/test-roundf1.c (NaN): Likewise.
43044         * tests/test-snprintf-posix.h (NaN): Likewise.
43045         * tests/test-sprintf-posix.h (NaN): Likewise.
43046         * tests/test-trunc1.c (NaN): Likewise.
43047         * tests/test-truncf1.c (NaN): Likewise.
43048         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43049         * tests/test-vasprintf-posix.c (NaN): Likewise.
43050         * modules/isnand-nolibm (Depends-on): Add math.
43051         * modules/isnanf-nolibm (Depends-on): Likewise.
43052         * modules/isnanl (Depends-on): Likewise.
43053         * modules/isnanl-nolibm (Depends-on): Likewise.
43054         * modules/snprintf-posix-tests (Depends-on): Likewise.
43055         * modules/sprintf-posix-tests (Depends-on): Likewise.
43056         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43057         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43058         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43059         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43060
43061 2008-03-31  Bruno Haible  <bruno@clisp.org>
43062
43063         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43064         * doc/posix-functions/strtod.texi: Likewise.
43065
43066 2008-03-31  Bruno Haible  <bruno@clisp.org>
43067
43068         * tests/test-strtod.c (main): Don't use C99 syntax.
43069
43070 2008-03-31  Bruno Haible  <bruno@clisp.org>
43071
43072         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43073         Reported by Eric Blake.
43074
43075 2008-03-31  Jim Meyering  <meyering@redhat.com>
43076
43077         Don't compare actual signbit return values.
43078         * tests/test-strtod.c (main): Rather, compare only their
43079         zero/non-zero nature.
43080
43081 2008-03-31  Eric Blake  <ebb9@byu.net>
43082
43083         More strtod documentation.
43084         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43085         failures as distinct bugs.
43086
43087 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43088
43089         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43090         Problem reported by Erik Benada in
43091         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43092
43093 2008-03-30  Bruno Haible  <bruno@clisp.org>
43094
43095         * tests/test-strtod.c: Add comments about which assertion fails on which
43096         platform.
43097         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43098
43099 2008-03-30  Eric Blake  <ebb9@byu.net>
43100
43101         Test signbit behavior on zeros.
43102         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43103         (test_signbitd, test_signbitl): Likewise.
43104
43105         More strtod touchups.
43106         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43107         sign of negative underflow, for now.  Use .5, not .1.
43108         * doc/posix-functions/strtod.texi (strtod): Mention these
43109         limitations.
43110         Reported by Jim Meyering.
43111
43112 2008-03-30  Bruno Haible  <bruno@clisp.org>
43113
43114         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43115         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43116
43117 2008-03-30  Bruno Haible  <bruno@clisp.org>
43118
43119         Avoid failure when attempting to return empty iconv results on some
43120         platforms.
43121         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43122         allocation, don't report ENOMEM when the resulting string is empty.
43123
43124 2008-03-30  Bruno Haible  <bruno@clisp.org>
43125
43126         Fix buffer overrun.
43127         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43128         Don't consider the width for tmp_length. Check count against tmp_length
43129         before doing the padding. Ensure enough allocation during padding.
43130
43131 2008-03-30  Eric Blake  <ebb9@byu.net>
43132
43133         strtod touchups.
43134         * lib/strtod.c (strtod): Avoid compiler warnings.
43135         Reported by Jim Meyering.
43136
43137 2008-03-30  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43140         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43141         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43142         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43143         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43144         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43145         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43146         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43147
43148         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43149         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43150         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43151         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43152         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43153         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43154         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43155         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43156
43157         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43158         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43159         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43160         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43161         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43162         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43163         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43164         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43165
43166         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43167         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43168
43169         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43170         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43171
43172         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43173         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43174
43175         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43177         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43178
43179         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43181         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43182
43183         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43185         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43186
43187         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43189         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43190
43191         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43192         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43194         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43195         (Depends-on): Add EOVERFLOW.
43196         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43197         (Depends-on): Add EOVERFLOW.
43198         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43199         (Depends-on): Add EOVERFLOW.
43200         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43201         (Depends-on): Add EOVERFLOW.
43202         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43203         (Depends-on): Add EOVERFLOW.
43204         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43205         (Depends-on): Add EOVERFLOW.
43206         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43207         (Depends-on): Add EOVERFLOW.
43208         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43209         (Depends-on): Add EOVERFLOW.
43210
43211         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43213         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43214
43215         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43217         * modules/snprintf (Depends-on): Add EOVERFLOW.
43218
43219         * lib/poll.c (EOVERFLOW): Remove fallback.
43220         * modules/poll (Depends-on): Add EOVERFLOW.
43221
43222         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43223         * modules/getugroups (Depends-on): Add EOVERFLOW.
43224
43225         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43226         * modules/getdelim (Depends-on): Add EOVERFLOW.
43227
43228         * lib/ftell.c (EOVERFLOW): Remove fallback.
43229         * modules/ftell (Depends-on): Add EOVERFLOW.
43230
43231         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43233         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43234
43235         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43236
43237         * modules/EOVERFLOW-tests: New file.
43238         * tests/test-EOVERFLOW.c: New file.
43239
43240         * modules/EOVERFLOW: New file.
43241         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43242
43243 2008-03-30  Bruno Haible  <bruno@clisp.org>
43244
43245         Fix bug introduced on 2007-06-10.
43246         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43247         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43248
43249 2008-03-30  Bruno Haible  <bruno@clisp.org>
43250
43251         Improve freadseek's efficiency after ungetc.
43252         * lib/freadseek.c: Include freadahead.h.
43253         (freadptrinc): New function, extracted from freadseek.
43254         (freadseek): Use it in a loop. Use freadahead to determine the number
43255         of loop iterations.
43256         * modules/freadseek (Depends-on): Add freadahead.
43257         (configure.ac): Require AC_C_INLINE.
43258
43259 2008-03-30  Bruno Haible  <bruno@clisp.org>
43260
43261         * lib/freadseek.c (freadseek): Don't ignore the return value of
43262         freadptr.
43263
43264 2008-03-29  Eric Blake  <ebb9@byu.net>
43265
43266         Add hex float support.
43267         * modules/strtod (Depends-on): Add c-ctype.
43268         (Link): Mention POW_LIB.
43269         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43270         whitespace between 'e' and exponent.
43271         * tests/test-strtod.c (main): Enable hex float tests.
43272         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43273         now provides.
43274
43275         Document various strtod bugs, with some fixes.
43276         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43277         "-0x", "inf", "nan", and hex constants.
43278         * doc/posix-functions/atof.texi (atof): Likewise.
43279         * modules/stdlib (Makefile.am): Support strtod.
43280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43281         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43282         detect additional strtod bugs.
43283         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43284         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43285         bool where appropriate.  Parse 'inf' and 'nan'.
43286         * tests/test-strtod.c: New file.
43287         * modules/strtod (Depends-on): Add stdbool, stdlib.
43288         (configure.ac): Turn on module indicator.
43289         * modules/strtod-tests: New module.
43290
43291 2008-03-29  Eric Blake  <ebb9@byu.net>
43292
43293         Fix ftell on mingw.
43294         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43295         * modules/ftell-tests (Depends-on): Add binary-io.
43296         * modules/ftello-tests (Depends-on): Likewise.
43297         * tests/test-ftell.c (main): Enhance test to cover behavior after
43298         ungetc.  Enforce binary mode.
43299         * tests/test-ftello.c (main): Likewise.
43300
43301         Pass test-freadseek on cygwin.
43302         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43303         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43304         ungetc buffer.
43305
43306         * tests/test-fflush2.c (main): Fix typo.
43307
43308 2008-03-29  Bruno Haible  <bruno@clisp.org>
43309
43310         * tests/test-fflush2.c (main): Temporarily disable the contents of
43311         this test.
43312         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43313         Reported by Eric Blake.
43314
43315 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43316
43317         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43318         (GC_SHA224_DIGEST_SIZE): Add.
43319
43320         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43321         (gc_hash_digest_length): Likewise.
43322         (gc_hash_buffer): Likewise.
43323
43324 2008-03-25  Bruno Haible  <bruno@clisp.org>
43325
43326         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43327         detail which gettext release to use.
43328         Reported by Simon Josefsson.
43329
43330 2008-03-26  Jim Meyering  <meyering@redhat.com>
43331
43332         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43333         * modules/gnumakefile (clean-GNUmakefile): Also, use
43334         test ... && ... || : syntax rather than if-then ... fi.
43335
43336         gnumakefile: Don't double-quote-expand $(VPATH) value.
43337         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43338
43339 2008-03-24  Eric Blake  <ebb9@byu.net>
43340
43341         Alter GNUmakefile to install into top directory.
43342         * modules/maintainer-makefile: Split, and add dependency...
43343         * modules/gnumakefile: to this new module.
43344         * build-aux/GNUmakefile: Move...
43345         * top/GNUmakefile: ...here.
43346         * build-aux/maint.mk: Move...
43347         * top/maint.mk: ...here.
43348         * MODULES.html.sh (Support for maintaining...): Document new
43349         module.
43350
43351 2008-03-23  Bruno Haible  <bruno@clisp.org>
43352
43353         * gnulib-tool: New options --vc-files, --no-vc-files.
43354         (func_usage): Document them.
43355         (vc_files): New variable.
43356         (func_import): Consider vc_files.
43357         (func_create_testdir): Set vc_files to empty.
43358         Suggested by Jim Meyering and Karl Berry.
43359
43360 2008-03-23  Bruno Haible  <bruno@clisp.org>
43361
43362         Fix regex compilation error on HP-UX 11.
43363         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43364         * modules/regex (Files): Add m4/mbstate_t.m4.
43365         Reported by Ton Voon <ton.voon@altinity.com>.
43366
43367 2008-03-23  Bruno Haible  <bruno@clisp.org>
43368
43369         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43370
43371 2008-03-23  Eric Blake  <ebb9@byu.net>
43372             Bruno Haible  <bruno@clisp.org>
43373
43374         Install files from top/ in the destination directory.
43375         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43376         augmentation also for the files from top/.
43377         (func_import, func_create_testdir): Rewrite file names:
43378         top/filename -> filename.
43379
43380 2008-03-23  Bruno Haible  <bruno@clisp.org>
43381
43382         Tweak "gnulib --version" output.
43383         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43384
43385 2008-03-23  Bruno Haible  <bruno@clisp.org>
43386
43387         Tweak "gnulib --version" output.
43388         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43389         rather than contents of ChangeLog, when possible.
43390
43391 2008-03-21  Eric Blake  <ebb9@byu.net>
43392
43393         More --version tweaks.
43394         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43395         date of last ChangeLog entry.
43396
43397 2008-03-21  Jim Meyering  <meyering@redhat.com>
43398
43399         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43400
43401 2008-03-20  Eric Blake  <ebb9@byu.net>
43402
43403         VPATH fix.
43404         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43405
43406 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43407
43408         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43409         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43410
43411 2008-03-20  Eric Blake  <ebb9@byu.net>
43412
43413         Sync GNUmakefile with coreutils.
43414         * build-aux/GNUmakefile (have-Makefile): Rename...
43415         (_have-Makefile): ...to this, for namespace consideration.
43416         (GNUmakefile.cfg): Include, if present.
43417         (_autoreconf): Define a default.
43418         (_is-dist-target): New rule for rebuilds to pick up intra-release
43419         version.
43420         (maint-cfg.mk): Rename...
43421         (cfg.mk): ...to this.
43422
43423 2008-03-18  Jim Meyering  <meyering@redhat.com>
43424
43425         New script and module: mktempd
43426         * MODULES.html.sh (maint+release support): Add mktempd.
43427         * build-aux/mktempd: New file.
43428         * modules/mktempd: New file.
43429
43430 2008-03-15  Jim Meyering  <meyering@redhat.com>
43431
43432         Undo last change.
43433         * lib/sha1.c, lib/md5.c: 63 != ~63.
43434         Reported by Andreas Schwab.
43435
43436         sha1.c, md5.c: Hoist a redundant expression.
43437         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43438         "ctx->buflen" only once, before calling *_process_block.
43439         * lib/md5.c (md5_process_bytes): Likewise.
43440
43441 2008-03-14  Eric Blake  <ebb9@byu.net>
43442
43443         Bump copyright year in files generated by gnulib-tool.
43444         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43445         gnulib-tool, rather than hard-coding it.
43446
43447         Fix 'gnulib-tool --version' output to work with git.
43448         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43449         (startup): ...here.
43450         (func_version): Use it to invoke git-version-gen, rather than
43451         relying on CVS keyword expansion.  Modernize wording.
43452         (cvsdatestamp, last_checkin_date, version): Kill unused
43453         variables.
43454
43455 2008-03-12  Jim Meyering  <meyering@redhat.com>
43456
43457         Recognize optional cast of the argument to free.
43458         * build-aux/useless-if-before-free: Update regexps.
43459
43460         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43461
43462 2008-03-11  Bruno Haible  <bruno@clisp.org>
43463
43464         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43465         by a single package.
43466         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43467         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43468         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43469         Reported by Sam Steingold <sds@gnu.org>.
43470
43471 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43472
43473         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43474         repositories.
43475
43476 2008-03-11  Bruno Haible  <bruno@clisp.org>
43477
43478         Avoid conflicts between local macro definitions.
43479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43480         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43481
43482 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43483             Bruno Haible  <bruno@clisp.org>
43484
43485         Make va_copy work with some version of xlc on AIX 5.1.
43486         * lib/stdarg.in.h: New file.
43487         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43488         On AIX, use a <stdarg.h> file substitute.
43489         * modules/stdarg (Files): Add lib/stdarg.in.h.
43490         (Depends-on): Add include_next.
43491         (Makefile.am): Build a stdarg.h substitute if requested.
43492         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43493
43494 2008-03-10  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43497         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43498         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43499
43500 2008-03-10  Bruno Haible  <bruno@clisp.org>
43501
43502         * modules/stdlib (Depends-on): Add include_next, remove
43503         absolute-header.
43504
43505 2008-03-09  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/freadahead.h (freadahead): Document more precisely.
43508         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43509         the sum of both buffer sizes.
43510         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43511         * NEWS: Document the change.
43512
43513 2008-03-09  Bruno Haible  <bruno@clisp.org>
43514
43515         Extend freadptr to return also the buffer size.
43516         * lib/freadptr.h (freadptr): Add sizep argument.
43517         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43518         (freadptr): Add sizep argument. Determine buffer size like freadahead
43519         does.
43520         * tests/test-freadptr.c: Don't include freadahead.h.
43521         (main): Adapt for new calling convention of freadptr.
43522         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43523         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43524         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43525         tests/test-freadptr2.sh.
43526         (Depends): Remove freadahead.
43527         (TESTS): Add test-freadptr2.sh.
43528         (check_PROGRAMS): Add test-freadptr2.
43529
43530 2008-03-09  Bruno Haible  <bruno@clisp.org>
43531
43532         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43533         Report and solution by Simon Josefsson.
43534
43535 2008-03-06  Bruno Haible  <bruno@clisp.org>
43536
43537         Make fflush after ungetc work on BSD platforms.
43538         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43539         * tests/test-fflush2.c: New file.
43540         * tests/test-fflush2.sh: New file.
43541         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43542         tests/test-fflush2.c.
43543         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43544         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43545
43546 2008-03-06  Eric Blake  <ebb9@byu.net>
43547
43548         Likewise for ftello.
43549         * modules/ftello (Dependencies): Add extensions.
43550         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43551
43552 2008-03-06  Bruno Haible  <bruno@clisp.org>
43553
43554         * modules/fseeko (Dependencies): Add extensions.
43555         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43556         Needed on glibc systems.
43557
43558 2008-03-06  Bruno Haible  <bruno@clisp.org>
43559
43560         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43561         email address.
43562         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43563
43564 2008-03-06  Bruno Haible  <bruno@clisp.org>
43565
43566         * users.txt: Add libgnupdf.
43567
43568 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43569
43570         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43571         (Header File Substitutes, Function Substitutes,
43572         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43573         (Build robot for gnulib): Fix typo.
43574
43575 2008-03-06  Bruno Haible  <bruno@clisp.org>
43576
43577         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43578         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43579
43580 2008-03-06  Bruno Haible  <bruno@clisp.org>
43581
43582         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43583         * doc/gnulib.texi: Include it.
43584
43585 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43586
43587         * modules/func (License): Change license to unlimited; there was
43588         no LGPL parts in the module anyway.
43589
43590 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43591
43592         * modules/__func__: Renamed to modules/func.
43593         * modules/__func__-tests: Renamed to modules/func-tests.
43594         * tests/test-__func__.c: Renamed to tests/test-func.c.
43595         * m4/__func__.m4: Renamed to m4/func.m4.
43596         * doc/gnulib.texi (__func__): Section renamed to func.
43597         Suggested by Eric Blake <ebb9@byu.net>.
43598
43599 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43600
43601         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43602         about __func__.  Make example self-contained.  Suggested by Eric
43603         Blake <ebb9@byu.net>.
43604
43605         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43606         Suggested by Eric Blake <ebb9@byu.net>.
43607
43608 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43609
43610         * modules/__func__: New file.
43611         * modules/__func__-tests: New file.
43612         * tests/test-__func__.c: New file.
43613         * m4/__func__.m4: New file.
43614         * doc/gnulib.texi (__func__): Document __func__ module.
43615
43616 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43617
43618         * modules/byteswap (License): Re-license as LGPLv2+.
43619
43620 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43621
43622         * doc/Makefile: Add pdf target.
43623
43624 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43625
43626         * modules/inline (License): Use 'unlimited', since there are only
43627         *.m4 files in this module.
43628
43629 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43630             Bruno Haible  <bruno@clisp.org>
43631
43632         Add support for HP C 7.1 on OpenVMS 8.3.
43633         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43634
43635 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43636
43637         Update VMS specifics.
43638         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43639
43640 2008-03-02  Jim Meyering  <meyering@redhat.com>
43641
43642         Remove the last dependency on the "free" module.
43643         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43644         Reported by Bob Proulx.
43645
43646         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43647
43648         Remove useless "if" tests before free.  Deprecate "free" module.
43649         * doc/posix-functions/free.texi: Mention that this
43650         module is no longer useful.
43651         * modules/free (Notice): Say this module is obsolete.
43652         * modules/readutmp (Depends-on): Remove free.
43653         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43654         * lib/putenv.c (putenv): Likewise.
43655         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43656         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43657         * tests/test-c-strcasestr.c (main): Likewise.
43658         * tests/test-c-strstr.c (main): Likewise.
43659         * tests/test-mbscasestr1.c (main): Likewise.
43660         * tests/test-mbscasestr2.c (main): Likewise.
43661         * tests/test-mbsstr1.c (main): Likewise.
43662         * tests/test-mbsstr2.c (main): Likewise.
43663         * tests/test-memmem.c (main): Likewise.
43664         * tests/test-strcasestr.c (main): Likewise.
43665         * tests/test-striconv.c (main): Likewise.
43666         * tests/test-striconveh.c (main): Likewise.
43667         * tests/test-striconveha.c (main): Likewise.
43668         * tests/test-strstr.c (main): Likewise.
43669
43670         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43671
43672         bootstrap: sync from coreutils again
43673         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43674
43675 2008-03-01  Jim Meyering  <meyering@redhat.com>
43676
43677         bootstrap: sync from coreutils
43678         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43679         also when the target doesn't exist.
43680
43681 2008-03-01  Eric Blake  <ebb9@byu.net>
43682
43683         Fix bugs in last patch.
43684         * lib/memchr2.c (memchr2): Fix typo.
43685         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43686         extension.
43687         Reported by Bruce Korb.
43688
43689         New module 'memchr2'.
43690         * modules/memchr2: New file.
43691         * modules/memchr2-tests: Likewise.
43692         * lib/memchr2.h: Likewise.
43693         * lib/memchr2.c: Likewise, based on memchr.c.
43694         * tests/test-memchr2.c: New test.
43695         * MODULES.html.sh (String handling): Add memchr2.
43696
43697 2008-02-29  Bruno Haible  <bruno@clisp.org>
43698
43699         * modules/freadseek-tests: New file.
43700         * tests/test-freadseek.sh: New file.
43701         * tests/test-freadseek.c: New file.
43702
43703         New module 'freadseek'.
43704         * modules/freadseek: New file.
43705         * lib/freadseek.h: New file.
43706         * lib/freadseek.c: New file.
43707         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43708
43709 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43710
43711         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43712         wydawca.
43713
43714         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43715         program_invocation_name and program_invocation_short_name are
43716         present.
43717
43718 2008-02-28  Bruno Haible  <bruno@clisp.org>
43719
43720         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43721         * tests/test-freadptr.sh: Also test non-seekable stdin.
43722
43723 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43724
43725         * build-aux/bootstrap (source_base, m4_base)
43726         (doc_base, tests_base): New variables.
43727         (gnulib_tool_options): Do not hardcode base directories, use
43728         the above variables instead.
43729
43730 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43731
43732         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43733
43734 2008-02-28  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/freadptr-tests: New file.
43737         * tests/test-freadptr.sh: New file.
43738         * tests/test-freadptr.c: New file.
43739
43740         New module 'freadptr'.
43741         * modules/freadptr: New file.
43742         * lib/freadptr.h: New file.
43743         * lib/freadptr.c: New file.
43744         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43745
43746 2008-02-26  Karl Berry  <karl@freefriends.org>
43747
43748         Sync from Libtool:
43749         * libltdl/argz.c (argz_add, argz_count): New functions.
43750         * libltdl/argz.in.h: Declare them.
43751         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43752
43753 2008-02-22  Bruno Haible  <bruno@clisp.org>
43754
43755         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43756         is a pointer type.  Needed for HP-UX 10.
43757         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43758         * doc/posix-functions/gmtime_r.texi: Likewise.
43759         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43760
43761 2008-02-24  Bruno Haible  <bruno@clisp.org>
43762
43763         * modules/environ-tests: New file.
43764         * tests/test-environ.c: New file.
43765
43766         New module 'environ'.
43767         * modules/environ: New file.
43768         * lib/unistd.in.h (environ): New declaration.
43769         * m4/environ.m4: New file.
43770         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43771         after use.
43772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43773         HAVE_DECL_ENVIRON.
43774         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43775         HAVE_DECL_ENVIRON.
43776         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43777         wrong claim that 'environ' is missing on some systems.
43778         * modules/execute (Depends-on): Add environ.
43779         * lib/execute.c (environ): Remove fallback declaration.
43780         * modules/pipe (Depends-on): Add environ.
43781         * lib/pipe.c (environ): Remove fallback declaration.
43782         * modules/setenv (Depends-on): Add environ.
43783         * lib/setenv.c (environ): Remove fallback declaration.
43784         * modules/unsetenv (Depends-on): Add environ.
43785         * lib/unsetenv.c (environ): Remove fallback declaration.
43786         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43787         m4/environ.m4.
43788         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43789         (gl_PREREQ_UNSETENV): Likewise.
43790
43791 2008-02-24  Bruno Haible  <bruno@clisp.org>
43792
43793         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43794
43795 2008-02-20  Bob Proulx  <bob@proulx.com>
43796
43797         Enable use of older two part flavor 'git describe'.
43798         * build-aux/git-version-gen: If using the older two part flavor of
43799         git version then recreate the third part now present in the
43800         newer three part flavor of git describe.
43801
43802 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43803
43804         * lib/fts.c (fts_build): Typo correction to comment.
43805
43806 2008-02-17  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43809         generating no-op conflicts.
43810
43811 2008-02-17  Bruno Haible  <bruno@clisp.org>
43812
43813         Speed up by 10%.
43814         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43815         result_entries, rather than an index-based loop.
43816
43817 2008-02-17  Bruno Haible  <bruno@clisp.org>
43818
43819         Speed up by 25%.
43820         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43821         'hashcode_cached'.
43822         (entry_create): New function.
43823         (entry_hashcode): Use the cached hashcode if possible.
43824         (read_changelog_file, try_split_merged_entry): Use entry_create.
43825
43826 2008-02-17  Bruno Haible  <bruno@clisp.org>
43827
43828         Speed up from O(n^2) to O(n) for long ChangeLog files.
43829         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43830         (read_changelog_file): Change implementation of entries_reversed list
43831         to rbtreehash.
43832         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43833
43834 2008-02-17  Bruno Haible  <bruno@clisp.org>
43835
43836         New option --split-merged-entry.
43837         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43838         (find_paragraph_end, try_split_merged_entry): New functions.
43839         (long_options): Add option --split-merged-entry.
43840         (usage): Document option --split-merged-entry.
43841         (main): Implement option --split-merged-entry.
43842         Reported by Eric Blake.
43843
43844 2008-02-17  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/git-merge-changelog.c: Include c-strstr.h.
43847         (main): Support the "git pull --rebase" situation.
43848         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43849         Reported by Eric Blake.
43850
43851 2008-02-16  Eric Blake  <ebb9@byu.net>
43852
43853         Avoid doubling \ in common case of "c-maybe" quoting style.
43854         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43855         eliding outer quotes.
43856         * lib/quotearg.h: Document this.
43857         * tests/test-quotearg.c (result_strings, inputs, results_g)
43858         (flag_results, locale_results): Test it by adding a new string to
43859         each test group.
43860         (compare_strings): Test new string.
43861
43862 2008-02-13  Eric Blake  <ebb9@byu.net>
43863
43864         Avoid trigraph quoting in default output.
43865         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43866         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43867         unless explicitly requested.
43868         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43869
43870 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43871
43872         Don't rely on signed integer overflowing to negative value.
43873         * lib/getugroups.c (getugroups): Include <limits.h>.
43874         Instead, compare against INT_MAX, and increment only if the test passes.
43875
43876 2008-02-13  Jim Meyering  <meyering@redhat.com>
43877         and Eric Blake  <ebb9@byu.net>
43878
43879         Avoid shadowing warning and compile errors on Linux.
43880         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43881         forwarding macros on Linux.
43882         (dcgettext): Define a stub, for Linux.
43883         (results_g, main): Avoid warnings.
43884
43885 2008-02-12  Eric Blake  <ebb9@byu.net>
43886
43887         Silence warning in last patch.
43888         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43889
43890         Quotearg part 4: add tests, fix c-maybe colon quoting.
43891         * lib/quotearg.h: Improve documentation.
43892         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43893         escapes when adding outer quotes.  When quoting trigraphs, use
43894         valid C notation.  When quoting NUL, omit extra characters if next
43895         character is not digit.  Alter prototype.
43896         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43897         callers.
43898         * modules/quotearg-tests: New module.
43899         * tests/test-quotearg.c: New test.
43900
43901 2008-02-07  Eric Blake  <ebb9@byu.net>
43902
43903         Quotearg part 3: add flag to control outer quote elision.
43904         * lib/quotearg.h (c_maybe_quoting_style): New style.
43905         (enum quoting_flags): Better documentation of flags.
43906         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43907         c-maybe style.
43908         (quotearg_buffer_restyled): Handle new flag to elide outer
43909         quotes.
43910
43911         Quotearg part 2: add flag that can control NUL elision.
43912         * lib/quotearg.h (set_quoting_flags): New prototype.
43913         * lib/quotearg.c (struct quoting_options): Add flag field.
43914         (set_quoting_flags): New function.
43915         (quotearg_buffer_restyled): Add flags parameter.
43916         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43917         (quotearg_n_options): Set the flag, since length cannot be
43918         returned.
43919         (quoting_options_from_style): Default flags correctly.
43920
43921         Quotearg part 1: more wrappers, restore quotearg_char state.
43922         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43923         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43924         (quotearg_colon_mem): New wrappers.
43925         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43926         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43927         functions.
43928         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43929         (quotearg_colon_mem): New functions.
43930
43931 2008-02-11  Bruno Haible  <bruno@clisp.org>
43932
43933         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43934         library in the current directory: it does not work with parallel make.
43935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43936
43937 2008-02-11  Bruno Haible  <bruno@clisp.org>
43938
43939         * .gitattributes: New file.
43940
43941 2008-02-11  Jim Meyering  <meyering@redhat.com>
43942
43943         useless-if-before-free: Fix reversed exit values.
43944         * build-aux/useless-if-before-free: Use correct values
43945         for EXIT_MATCH and EXIT_NO_MATCH.
43946
43947         * build-aux/useless-if-before-free: Close stdout carefully.
43948
43949 2008-02-10  Bruno Haible  <bruno@clisp.org>
43950
43951         New module 'git-merge-changelog'.
43952         * modules/git-merge-changelog: New file.
43953         * lib/git-merge-changelog.c: New file.
43954
43955 2008-02-10  Jim Meyering  <meyering@redhat.com>
43956
43957         useless-if-before-free: New option: --list (-l).
43958
43959         useless-if-before-free: Don't exit immediately upon open failure.
43960         * build-aux/useless-if-before-free: Exit 2 for errors.
43961         Upon failure to open a file, don't exit immediately.
43962         Rather, just warn and continue with any remaining files.
43963
43964 2008-02-10  Bruno Haible  <bruno@clisp.org>
43965
43966         New abstract list operation 'node_set_value'.
43967         * lib/gl_list.h (gl_list_node_set_value): New function.
43968         (struct gl_list_implementation): New field node_set_value.
43969         * lib/gl_list.c (gl_list_node_set_value): New function.
43970         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43971         (gl_array_list_implementation): Update.
43972         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43973         (gl_carray_list_implementation): Update.
43974         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43975         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43976         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43977         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43978         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43979         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43980         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43981         Update.
43982         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43983         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43984         (gl_sublist_list_implementation): Update.
43985
43986 2008-02-10  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43989         Needed when ELEMENT is #defined to 'some_type *'.
43990
43991 2008-02-10  Jim Meyering  <meyering@redhat.com>
43992
43993         New script and module: useless-if-before-free
43994         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43995         * build-aux/useless-if-before-free: New file.
43996         * modules/useless-if-before-free: New file.
43997
43998         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43999
44000         xstrtol_error: Fix typo.
44001         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44002         s/exit_failure/exit_status/.
44003
44004 2008-02-09  Jim Meyering  <meyering@redhat.com>
44005
44006         New script and module: gitlog-to-changelog
44007         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44008         * modules/gitlog-to-changelog: New file.
44009         * build-aux/gitlog-to-changelog: New file.
44010
44011 2008-02-08  Jim Meyering  <meyering@redhat.com>
44012
44013         Avoid two "parameter unused" warnings.
44014         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44015         Mark "st" as used.
44016
44017         Use "git COMMAND", not "git-COMMAND".
44018         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44019         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44020         * build-aux/git-version-gen: Use "git status", not "git-status".
44021
44022 2008-02-07  Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44025         Avoids a crash on Windows Vista.
44026         Reported by Adam Strzelecki <ono@java.pl> via
44027         Simon Josefsson <simon@josefsson.org>.
44028
44029 2008-02-06  Bruno Haible  <bruno@clisp.org>
44030
44031         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44032         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44033         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44035         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44037         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44038         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44046         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44047         left-adjust flag.
44048         * tests/test-snprintf-posix.h (test_function): Likewise.
44049         * tests/test-sprintf-posix.h (test_function): Likewise.
44050         * tests/test-vasprintf-posix.c (test_function): Likewise.
44051         * doc/posix-functions/fprintf.texi: Update.
44052         * doc/posix-functions/printf.texi: Update.
44053         * doc/posix-functions/snprintf.texi: Update.
44054         * doc/posix-functions/sprintf.texi: Update.
44055         * doc/posix-functions/vfprintf.texi: Update.
44056         * doc/posix-functions/vprintf.texi: Update.
44057         * doc/posix-functions/vsnprintf.texi: Update.
44058         * doc/posix-functions/vsprintf.texi: Update.
44059         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44060
44061 2008-02-06  Bruno Haible  <bruno@clisp.org>
44062
44063         Fix bug introduced on 2008-01-26.
44064         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44065
44066 2008-02-06  Bruno Haible  <bruno@clisp.org>
44067
44068         Fix bug introduced on 2007-06-10.
44069         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44070         !NEED_PRINTF_FLAG_ZERO.
44071
44072 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44073
44074         getloadavg: use libperfstat on AIX5
44075         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44076
44077 2008-02-03  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/diffseq.h: Add comments about required #includes.
44080         Reported by Michael Biggs <gnulib@doubleplum.net>.
44081
44082 2008-02-01  Bruno Haible  <bruno@clisp.org>
44083
44084         * users.txt: Add gnuit.
44085
44086 2008-01-31  Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/md4.c (set_uint32): Mark as inline.
44089         * lib/md5.c (set_uint32): Likewise.
44090         * lib/sha1.c (set_uint32): Likewise.
44091         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44092         * m4/md5.m4 (gl_MD5): Likewise.
44093         * m4/sha1.m4 (gl_SHA1): Likewise.
44094
44095 2008-01-31  Jim Meyering  <meyering@redhat.com>
44096
44097         Use "sizeof VAR", rather than a literal "4".
44098         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44099         * lib/md4.c (md4_read_ctx): Likewise.
44100         * lib/sha1.c (sha1_read_ctx): Likewise.
44101
44102 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44103
44104         * tests/test-sha1.c: New file, based on test-md5.c.
44105
44106         * modules/crypto/sha1-tests: New file.
44107
44108 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44109
44110         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44111
44112 2008-01-31  Jim Meyering  <meyering@redhat.com>
44113
44114         Prefer "sizeof v" over the equivalent "4".
44115         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44116         * lib/md5.c (set_uint32): Likewise.
44117         * lib/sha1.c (set_uint32): Likewise.
44118
44119 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44120
44121         * lib/sha1.c (set_uint32): Mark function as static.
44122
44123 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44124
44125         md2: clarify comments to say that alignment is not required.
44126         * lib/md2.h: Remove warning about alignment in comment.
44127         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44128         never been required.
44129
44130 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44131
44132         md4: adapt alignment constraint fix from sha1.
44133         * lib/md4.c (set_uint32): New function, from sha1.c
44134         (md4_read_ctx): Use it.
44135         (md4_finish_ctx): Doc fix.
44136         * lib/md4.h: Doc fix.
44137
44138 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44139
44140         md5: adapt alignment constraint fix from sha1.
44141         * lib/md5.c (set_uint32): New function, from sha1.c
44142         (md5_read_ctx): Use it.
44143         (md5_finish_ctx): Doc fix.
44144         * lib/md5.h: Doc fix.
44145
44146 2008-01-30  Peter Palfrader  <weasel@debian.org>
44147
44148         sha1: remove the result buffer alignment constraint
44149         * lib/sha1.c (set_uint32): New function.
44150         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44151         constraint.
44152         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44153         * lib/sha1.h: Likewise.
44154
44155 2008-01-30  Andreas Schwab  <schwab@suse.de>
44156             Bruno Haible  <bruno@clisp.org>
44157
44158         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44159         correct definition of LDBL_MIN_EXP.
44160
44161 2008-01-30  Karl Berry  <karl@gnu.org>
44162
44163         * config/srclist-update: try to preserve x bit on updates.
44164         * config/srclistvars.sh: update for karl.
44165
44166 2008-01-29  Jim Meyering  <meyering@redhat.com>
44167
44168         vasnprintf.c: Avoid warning about unused label
44169         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44170         "overflow" label definition and associated code with the
44171         same cpp condition that guards the sole use of that label.
44172
44173 2008-01-26  Bruno Haible  <bruno@clisp.org>
44174
44175         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44176         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44177         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44178         * lib/isnanl-nolibm.h (isnanl): Likewise.
44179         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44180
44181 2008-01-26  Bruno Haible  <bruno@clisp.org>
44182
44183         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44184         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44185
44186 2008-01-26  Bruno Haible  <bruno@clisp.org>
44187
44188         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44189         GCC >= 4.0 built-in.
44190         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44191
44192 2008-01-26  Bruno Haible  <bruno@clisp.org>
44193
44194         Rename isnan, applicable to 'double' only, to isnand.
44195         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44196         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44197         (configure.ac): Update.
44198         (Include): Replace "isnan.h" with "isnand.h".
44199         * m4/isnand.m4: Renamed from m4/isnan.m4.
44200         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44201         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44202         instead of isnan.c.
44203         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44204         instead of HAVE_ISNAN_IN_LIBC.
44205         (isnand): Renamed from isnan.
44206         * lib/isnand.c: New file.
44207         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44208         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44209         (Makefile.am): Update.
44210         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44211         Include isnand.h instead of isnan.h.
44212         (main): Test isnand instead of isnan.
44213         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44214         isnan-nolibm.
44215         * modules/frexp (Depends-on): Likewise.
44216         * modules/frexp-tests (Depends-on): Likewise.
44217         * modules/frexp-nolibm (Depends-on): Likewise.
44218         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44219         * modules/isfinite (Depends-on): Likewise.
44220         * modules/round-tests (Depends-on): Likewise.
44221         * modules/signbit (Depends-on): Likewise.
44222         * modules/signbit-tests (Depends-on): Likewise.
44223         * modules/snprintf-posix (Depends-on): Likewise.
44224         * modules/sprintf-posix (Depends-on): Likewise.
44225         * modules/trunc-tests (Depends-on): Likewise.
44226         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44227         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44228         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44229         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44230         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44231         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44232         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44233         * modules/vasnprintf-posix (Depends-on): Likewise.
44234         * modules/vasprintf-posix (Depends-on): Likewise.
44235         * modules/vfprintf-posix (Depends-on): Likewise.
44236         * modules/vsnprintf-posix (Depends-on): Likewise.
44237         * modules/vsprintf-posix (Depends-on): Likewise.
44238         * lib/frexp.c: Include isnand.h instead of isnan.h.
44239         (ISNAN): Set to isnand instead of isnan.
44240         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44241         (gl_isfinited): Use isnand instead of isnan.
44242         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44243         (gl_signbitd): Use isnand instead of isnan.
44244         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44245         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44246         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44247         (main): Use isnand instead of isnan.
44248         * tests/test-round1.c: Include isnand.h.
44249         (main): Use isnand instead of isnan.
44250         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44251         (ISNAN): Set to isnand instead of isnan.
44252         * tests/test-trunc1.c: Include isnand.h.
44253         (main): Use isnand instead of isnan.
44254         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44255         (equal): Use isnand instead of isnan.
44256         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44257         isnand-nolibm.
44258         * NEWS: Mention the change.
44259
44260 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44261             Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44264         the GCC builtins for signbits are present and set
44265         REPLACE_SIGNBIT_USING_GCC if so.
44266         * lib/math.in.h (signbit): Define using GCC builtins if
44267         REPLACE_SIGNBIT_USING_GCC is set.
44268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44269         REPLACE_SIGNBIT_USING_GCC.
44270         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44271
44272 2008-01-25  Jim Meyering  <meyering@redhat.com>
44273
44274         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44275         * lib/poll.c: Include <config.h>, not "config.h".
44276         * tests/test-getaddrinfo.c: Likewise.
44277
44278 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44279
44280         * modules/sockets-tests: New file.
44281
44282 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44283
44284         * modules/sockets: New module, can be used to call WSA_Startup and
44285         WSA_Cleanup when needed.
44286
44287         * lib/sockets.h, lib/sockets.c: New files.
44288
44289         * m4/sockets.m4: New file.
44290
44291         * tests/test-sockets.c: New file.
44292
44293 2008-01-19  Bruno Haible  <bruno@clisp.org>
44294
44295         * doc/posix-headers: Renamed from doc/headers.
44296         * doc/posix-functions: Renamed from doc/functions.
44297         * doc/gnulib.texi: Update.
44298
44299 2008-01-19  Bruno Haible  <bruno@clisp.org>
44300
44301         * doc/glibc-functions/strcasestr.texi: Include contents of
44302         doc/functions/strcasestr.texi, fixing the list of platforms.
44303         * doc/functions/strcasestr.texi: Remove file.
44304
44305 2008-01-19  Bruno Haible  <bruno@clisp.org>
44306
44307         * doc/glibc-functions/memmem.texi: Include contents of
44308         doc/functions/memmem.texi.
44309         * doc/functions/memmem.texi: Remove file.
44310
44311 2008-01-18  Bruno Haible  <bruno@clisp.org>
44312
44313         * doc/glibc-functions/*.texi: New files.
44314         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44315         to use the new files.
44316
44317 2008-01-17  Bruno Haible  <bruno@clisp.org>
44318
44319         * tests/test-gethostname.c (main): Fix printf statement.
44320
44321 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44322
44323         * modules/gethostname-tests: New file.
44324
44325         * tests/test-gethostname.c: New file.
44326
44327 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44328
44329         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44330         used by the UNAME case.  Reported by Bruno Haible
44331         <bruno@clisp.org>.
44332
44333 2008-01-17  Eric Blake  <ebb9@byu.net>
44334
44335         Convert c-strcasestr to be more efficient.
44336         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44337         (Depends-on): Add c-strcase, remove malloca, strnlen.
44338         * tests/test-c-strcasestr.c (main): Enhance test.
44339         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44340
44341 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44342
44343         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44344         Use it in creating po/Makevars.
44345
44346 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44347
44348         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44349         Applications that requires it should initialize libgcrypt
44350         manually.
44351
44352 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44353
44354         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44355
44356 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44357
44358         Fix problem with getdate on mingw32 reported by Simon Josefsson
44359         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44360         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44361         tzname", when deciding whether to declare tzname.
44362         * lib/strftime.c (tzname): Likewise.
44363
44364 2008-01-15  Bruno Haible  <bruno@clisp.org>
44365
44366         Work around a MacOS X 10.5 bug in frexpl().
44367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44368         * doc/functions/frexpl.texi: Document the bug.
44369         Reported by Elias Pipping <pipping@gentoo.org>.
44370
44371 2008-01-14  Eric Blake  <ebb9@byu.net>
44372
44373         Touch up previous patch.
44374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44375         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44376
44377         Convert strcasestr module to use Two-Way algorithm.
44378         * modules/strcasestr-simple: New module, based on the old
44379         strcasestr, but with Two-Way rather than KMP.
44380         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44381         * lib/string.in.h (rpl_strcasestr): Declare.
44382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44383         performance.
44384         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44385         * modules/string (Makefile.am): Support strcasestr.
44386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44387         * modules/strcasestr-tests (Depends-on): Check for alarm.
44388         * tests/test-strcasestr.c: Augment test.
44389         * lib/str-two-way.h: Clean up stray macro.
44390         * NEWS: Document new module.
44391         * MODULES.html.sh (string handling): Likewise.
44392         * doc/functions/strcasestr.texi: New file.
44393         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44394         here, since it is not a POSIX function.
44395
44396 2008-01-14  Colin Watson  <cjwatson@debian.org>
44397             Bruno Haible  <bruno@clisp.org>
44398
44399         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44400         works fine; if not, set REPLACE_STRSIGNAL.
44401         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44403         REPLACE_STRSIGNAL.
44404         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44405         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44406         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44407
44408 2008-01-14  Bruno Haible  <bruno@clisp.org>
44409
44410         * modules/strsignal (Include): Change to <string.h>.
44411
44412 2008-01-14  Colin Watson  <cjwatson@debian.org>
44413
44414         * modules/argp (Notice): Add a notice recommending to change
44415         XGETTEXT_OPTIONS.
44416         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44417
44418 2008-01-13  Colin Watson  <cjwatson@debian.org>
44419
44420         * modules/strsignal-tests: New file.
44421         * tests/test-strsignal.c: New file.
44422
44423         * lib/strsignal.c: New file, from glibc with modifications.
44424         * lib/siglist.h: New file, from glibc with modifications.
44425         * lib/string.in.h (strsignal): New declaration.
44426         * m4/strsignal.m4: New file.
44427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44428         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44429         * modules/strsignal: New file.
44430         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44431         HAVE_DECL_STRSIGNAL.
44432
44433 2008-01-13  Bruno Haible  <bruno@clisp.org>
44434
44435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44436         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44439
44440 2008-01-13  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44443         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44444         * lib/argp.h (__attribute__): Likewise.
44445         * lib/c-stack.c (__attribute__): Likewise.
44446         * lib/error.h (__attribute__): Likewise.
44447         * lib/fts.c (__attribute__): Likewise.
44448         * lib/openat.h (__attribute__): Likewise.
44449         * lib/stdio.in.h (__attribute__): Likewise.
44450         * lib/string.in.h (__attribute__): Likewise.
44451         * lib/utimens.c (__attribute__): Likewise.
44452         * lib/vasnprintf.h (__attribute__): Likewise.
44453         * lib/xalloc.h (__attribute__): Likewise.
44454         * lib/xprintf.h (__attribute__): Likewise.
44455         * lib/xstrtol.h (__attribute__): Likewise.
44456         * lib/xvasprintf.h (__attribute__): Likewise.
44457
44458 2008-01-12  Bruno Haible  <bruno@clisp.org>
44459
44460         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44461         * doc/glibc-headers/a.out.texi: New file.
44462         * doc/glibc-headers/aliases.texi: New file.
44463         * doc/glibc-headers/alloca.texi: New file.
44464         * doc/glibc-headers/ar.texi: New file.
44465         * doc/glibc-headers/argp.texi: New file.
44466         * doc/glibc-headers/argz.texi: New file.
44467         * doc/glibc-headers/byteswap.texi: New file.
44468         * doc/glibc-headers/crypt.texi: New file.
44469         * doc/glibc-headers/endian.texi: New file.
44470         * doc/glibc-headers/envz.texi: New file.
44471         * doc/glibc-headers/err.texi: New file.
44472         * doc/glibc-headers/error.texi: New file.
44473         * doc/glibc-headers/execinfo.texi: New file.
44474         * doc/glibc-headers/fpu_control.texi: New file.
44475         * doc/glibc-headers/fstab.texi: New file.
44476         * doc/glibc-headers/fts.texi: New file.
44477         * doc/glibc-headers/getopt.texi: New file.
44478         * doc/glibc-headers/ieee754.texi: New file.
44479         * doc/glibc-headers/ifaddrs.texi: New file.
44480         * doc/glibc-headers/libintl.texi: New file.
44481         * doc/glibc-headers/mcheck.texi: New file.
44482         * doc/glibc-headers/mntent.texi: New file.
44483         * doc/glibc-headers/obstack.texi: New file.
44484         * doc/glibc-headers/paths.texi: New file.
44485         * doc/glibc-headers/printf.texi: New file.
44486         * doc/glibc-headers/pty.texi: New file.
44487         * doc/glibc-headers/resolv.texi: New file.
44488         * doc/glibc-headers/shadow.texi: New file.
44489         * doc/glibc-headers/sysexits.texi: New file.
44490         * doc/glibc-headers/ttyent.texi: New file.
44491
44492 2008-01-12  Jim Meyering  <meyering@redhat.com>
44493
44494         announce-gen: emit Gnulib's git-based version string.
44495         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44496         New option --gnulib-version=V, where V is expected to be
44497         the output of running git describe in the gnulib directory.
44498         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44499         not useful, and plan to stop publishing an xdelta file with each
44500         coreutils release.
44501
44502         * build-aux/announce-gen: Also check for lzma-compressed files.
44503
44504 2008-01-11  Bruno Haible  <bruno@clisp.org>
44505
44506         * tests/test-memmem.c (main): Increase maximum allowed time.
44507         * tests/test-strstr.c (main): Likewise.
44508
44509 2008-01-11  Bruno Haible  <bruno@clisp.org>
44510
44511         * doc/functions/memmem.texi: Add more precisions about platforms.
44512         * doc/functions/strstr.texi: Likewise.
44513
44514 2008-01-10  Eric Blake  <ebb9@byu.net>
44515
44516         * m4/strstr.m4: Delete cruft from copy-n-paste.
44517         Reported by Bruno Haible.
44518
44519 2008-01-10  Bruno Haible  <bruno@clisp.org>
44520
44521         Make c-strstr rely on strstr.
44522         * lib/c-strstr.c: Don't include str-kmp.h.
44523         (c_strstr): Define in terms of strstr.
44524         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44525         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44526
44527 2008-01-10  Bruno Haible  <bruno@clisp.org>
44528
44529         * doc/gnulib.texi (String Functions in C Locale): New section.
44530         * doc/c-ctype.texi: New file.
44531         * doc/c-strcase.texi: New file.
44532         * doc/c-strcaseeq.texi: New file.
44533         * doc/c-strcasestr.texi: New file.
44534         * doc/c-strstr.texi: New file.
44535         * doc/c-strtod.texi: New file.
44536         * doc/c-strtold.texi: New file.
44537
44538 2008-01-10  Eric Blake  <ebb9@byu.net>
44539
44540         * lib/relocatable.h: Fix a comment.
44541
44542 2008-01-10  Eric Blake  <ebb9@byu.net>
44543
44544         Share two-way algorithm.
44545         * lib/str-two-way.h: New file, merged from...
44546         * lib/memmem.c: ...here...
44547         * lib/strstr.c: ...and here.
44548         * modules/memmem (Files): Use it.
44549         * modules/strstr (Files): Likewise.
44550
44551         Avoid quadratic strstr implementations.
44552         * lib/strstr.c: New file.
44553         * m4/strstr.m4: Likewise.
44554         * modules/strstr: Likewise.
44555         * modules/strstr-tests: Likewise.
44556         * tests/test-strstr.c: Likewise.
44557         * lib/string.in.h (rpl_strstr): Declare.
44558         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44560         * modules/string (Makefile.am): Likewise.
44561         * MODULES.html.sh (string handling): Mention new module.
44562         * doc/functions/strstr.texi (strstr): Document the bug.
44563
44564 2008-01-10  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/relocatable.h (relocate): State whether result is freshly
44567         allocated or not.
44568         * lib/relocatable.c (relocate): Return a freshly allocated string
44569         instead of a pointer to a privately held string.
44570         Reported by Sylvain Beucler <beuc@gnu.org>.
44571
44572 2008-01-10  Colin Watson  <cjwatson@debian.org>
44573
44574         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44575         s/S_ISNLK/S_ISLNK/.
44576
44577 2008-01-09  Bruno Haible  <bruno@clisp.org>
44578
44579         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44580         and other files.
44581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44582         if it's only a guess.
44583         * modules/memmem: Simplify by depending on memmem-simple.
44584
44585 2008-01-09  Bruno Haible  <bruno@clisp.org>
44586
44587         Work around OpenBSD 4.0 tdelete() bug.
44588         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44589         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44590         macros and don't redefine the enum values.
44591         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44592         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44593         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44594
44595 2008-01-09  Bruno Haible  <bruno@clisp.org>
44596
44597         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44598         (main): Don't perform the tests if setlocale did not install a UTF-8
44599         locale. Needed on OpenBSD 4.0.
44600         * modules/wcwidth-tests (Depends-on): Add localcharset.
44601
44602 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44603
44604         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44605         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44606         * NEWS: announce this.
44607         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44608
44609 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44610         and Eric Blake  <ebb9@byu.net>
44611
44612         Add memmem-simple module.
44613         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44614         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44615         * modules/memmem-simple: New file.
44616         * modules/memmem (Description): Tweak.
44617         * MODULES.html.sh (string handling): Mention new module.
44618         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44619         addressed by memmem-simple.
44620         * NEWS: Document the difference.
44621
44622 2008-01-09  Eric Blake  <ebb9@byu.net>
44623
44624         Give gcc some memmem optimization hints.
44625         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44626         (strcasestr): Declare as pure.
44627         * modules/memmem (Maintainer): Claim my implementation.
44628
44629 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44630
44631         Support AIX 6.1 and higher.
44632         * build-aux/config.libpath: Likewise.
44633         * build-aux/config.rpath: Likewise.
44634
44635 2008-01-08  Jim Meyering  <meyering@redhat.com>
44636             Bruno Haible  <bruno@clisp.org>
44637
44638         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44639         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44640         Reported by Peter Fales in
44641         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44642
44643 2008-01-08  Bruno Haible  <bruno@clisp.org>
44644
44645         * modules/unictype/category-of (Depends-on): Add
44646         unictype/category-none.
44647         * modules/unictype/category-and-tests (Depends-on): Add
44648         unictype/category-{L,N,Lu,Nd}.
44649         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44650         * modules/unictype/category-or-tests (Depends-on): Add
44651         unictype/category-{L,N}.
44652         * modules/unictype/category-name-tests (Depends-on): Add
44653         unictype/category-{Z,Nl}.
44654         Reported by Simon Josefsson.
44655
44656 2008-01-08  Bruno Haible  <bruno@clisp.org>
44657
44658         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44659         convention better.
44660         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44661         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44662         Reported by Peter Miller <millerp@canb.auug.org.au>.
44663
44664 2008-01-08  Eric Blake  <ebb9@byu.net>
44665
44666         Rewrite memmem to guarantee linear complexity without malloc.
44667         * lib/memmem.c (memmem): Use Two-Way rather than
44668         Knuth-Morris-Pratt, to allow O(1) space usage.
44669         (critical_factorization, two_way_short_needle)
44670         (two_way_long_needle): New functions.
44671         (knuth_morris_pratt): Delete.
44672         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44673         Add stdint.
44674         * tests/test-memmem.c (main): Add tests for periodic needle and
44675         sublinear performance.
44676         * doc/functions/memmem.texi (memmem): Document other deficiencies
44677         in cygwin and older glibc.
44678
44679 2008-01-08  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44682         augmentation.
44683
44684 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44685
44686         Add a configure time option: --disable-acl.
44687         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44688         AC_ARG_ENABLE(acl).
44689
44690 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44691
44692         * tests/test-localename.c: Don't include obsolete "setenv.h".
44693
44694         * modules/localename-tests (Depends-on): Need unsetenv.
44695
44696 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44697
44698         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44699
44700 2008-01-06  Colin Watson  <cjwatson@debian.org>
44701
44702         * users.txt: Add man-db.
44703
44704 2008-01-07  Bruno Haible  <bruno@clisp.org>
44705
44706         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44707         previous section name.
44708
44709 2008-01-07  Bruno Haible  <bruno@clisp.org>
44710
44711         * lib/progname.c (set_program_name): Don't strip off a leading
44712         "lt-" prefix outside a .libs directory.
44713         Suggested by Paul Eggert.
44714
44715 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44716             Bruno Haible  <bruno@clisp.org>
44717
44718         Improve memory cleanup in 'relocatable' module.
44719         * lib/relocatable.h (compute_curr_prefix): Change return type to
44720         'char *'.
44721         * lib/relocatable.c (compute_curr_prefix): Change return type to
44722         'char *'. Free curr_installdir after use.
44723         (relocate): Free curr_prefix_better after use.
44724         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44725
44726 2008-01-01  Bruno Haible  <bruno@clisp.org>
44727
44728         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44729         failure on older glibc systems.
44730         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44731
44732 2008-01-05  Eric Blake  <ebb9@byu.net>
44733
44734         Avoid quadratic system memmem.
44735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44736         Reported by Ralf Wildenhues.
44737
44738         Fix memmem test for mingw.
44739         * modules/memmem-tests (configure.ac): Check for alarm.
44740         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44741         it.
44742         * doc/functions/memmem.texi: New file.
44743         * doc/gnulib.texi (Function Substitutes): Add memmem.
44744         Reported by Bruno Haible.
44745
44746 2008-01-04  Bruno Haible  <bruno@clisp.org>
44747
44748         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44749         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44750         gl_HEADER_STRING_H_DEFAULTS.
44751
44752 2008-01-04  Eric Blake  <ebb9@byu.net>
44753
44754         Shorten duration of memmem test.
44755         * tests/test-memmem.c (main): Use alarm to declare failure if test
44756         is taking too long.
44757         Reported by Ralf Wildenhues.
44758
44759 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44760
44761         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44762         string, needed by strerror.
44763
44764 2008-01-03  Colin Watson  <cjwatson@debian.org>
44765             Bruno Haible  <bruno@clisp.org>
44766
44767         * doc/gnulib-tool.texi (Localization): New section.
44768
44769 2008-01-02  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44772         variables to 'unsigned char *' type.
44773         Reported by Paul Eggert.
44774
44775 2008-01-02  Jim Meyering  <jim@meyering.net>
44776
44777         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44778
44779 2007-12-31  Jim Meyering  <jim@meyering.net>
44780
44781         Avoid use of private FTS type name.
44782         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44783
44784 2007-12-30  Karl Berry  <karl@gnu.org>
44785
44786         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44787         work around defect in Texinfo and/or the standalone Info browser.
44788
44789 2007-12-30  Bruno Haible  <bruno@clisp.org>
44790
44791         Unify 5 copies of the KMP code.
44792         * lib/str-kmp.h: New file.
44793         * lib/c-strcasestr.c: Include str-kmp.h.
44794         (knuth_morris_pratt): Remove function.
44795         (c_strcasestr): Update.
44796         * lib/c-strstr.c: Include str-kmp.h.
44797         (knuth_morris_pratt): Remove function.
44798         (c_strcasestr): Update.
44799         * lib/mbscasestr.c: Include str-kmp.h.
44800         (knuth_morris_pratt_unibyte): Remove function.
44801         * lib/mbsstr.c: Include str-kmp.h.
44802         (knuth_morris_pratt_unibyte): Remove function.
44803         * lib/strcasestr.c: Include str-kmp.h.
44804         (knuth_morris_pratt): Remove function.
44805         (strcasestr): Update.
44806         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44807         * modules/c-strstr (Files): Likewise.
44808         * modules/mbscasestr (Files): Likewise.
44809         * modules/mbsstr (Files): Likewise.
44810         * modules/strcasestr (Files): Likewise.
44811         Suggested by Paul Eggert.
44812
44813 2007-12-30  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44816         defined.
44817
44818 2007-12-30  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/xmalloca.h: Include xalloc.h.
44821         (xnmalloca): New macro.
44822
44823 2007-12-30  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/malloca.h (nmalloca): New macro.
44826         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44827         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44828         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44829         knuth_morris_pratt_multibyte): Likewise.
44830         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44831         knuth_morris_pratt_multibyte): Likewise.
44832         * lib/memmem.c (knuth_morris_pratt): Likewise.
44833         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44834
44835 2007-12-25  Bruno Haible  <bruno@clisp.org>
44836
44837         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44838         * lib/glob.c: Don't include openat.h.
44839         (link_exists2_p): Add back the code that deals with the
44840         !GLOB_ALTDIRFUNC case.
44841         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44842         let it do the filename concatenation.
44843         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44844         * modules/glob (Depends-on): Remove openat.
44845
44846 2007-12-31  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/dirfd (License): Change to LGPLv2+.
44849         Approved by Jim Meyering.
44850
44851 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44852
44853         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44854         when multiplying M by sizeof (size_t).
44855
44856 2007-12-10  Martin Lambers  <marlam@marlam.de>
44857
44858         Override getpagesize on mingw.
44859         * lib/getpagesize.c: New file.
44860         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44861         * modules/getpagesize (Files): Add lib/getpagesize.c.
44862         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44864         REPLACE_GETPAGESIZE.
44865         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44866
44867 2007-12-25  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/localcharset (Notice): New field.
44870         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44871         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44872
44873 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44874             Bruno Haible  <bruno@clisp.org>
44875
44876         Avoid using the syntax symbol() in formatted documentation.
44877         * MODULES.html.sh (func_module): When replacing symbol() with a
44878         hyperlink, remove the parentheses. Show an error if some remain.
44879         Recognize and render the '...' syntax.
44880         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44881         Rework. Add paragraph about GCC's inlining.
44882         * doc/alloca.texi: Likewise.
44883         * doc/error.texi: Remove parentheses from symbol reference.
44884         * doc/gnulib-intro.texi: Likewise.
44885         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44886         * modules/fnmatch (Description): Reword to say "the ... function".
44887         * modules/full-read (Description): Likewise.
44888         * modules/full-write (Description): Likewise.
44889         * modules/safe-read (Description): Likewise.
44890         * modules/safe-write (Description): Likewise.
44891         * modules/strchrnul (Description): Likewise.
44892         * modules/trim (Description): Likewise.
44893         * modules/error (Description): Remove parentheses from symbol
44894         references.
44895         * modules/verror (Description): Likewise.
44896         Reported by Karl Berry.
44897
44898 2007-12-25  Bruno Haible  <bruno@clisp.org>
44899
44900         Fixup after 2007-10-16 commit.
44901         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44902
44903 2007-12-24  Bruno Haible  <bruno@clisp.org>
44904
44905         Make --enable-relocatable work with DESTDIR.
44906         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44907         to compute installdir from destprog.
44908         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44909         also set the RELOC_DESTDIR variable.
44910         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44911
44912 2007-12-24  Bruno Haible  <bruno@clisp.org>
44913
44914         Fix link error due to xalloc_die().
44915         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44916         of xreadlink.
44917         * lib/relocwrapper.c: Update comments.
44918         * build-aux/install-reloc: Remove xreadlink.c from file list.
44919         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44920         xreadlink.c.
44921         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44922
44923 2007-12-24  Bruno Haible  <bruno@clisp.org>
44924
44925         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44926         * lib/setenv.h: Remove file.
44927         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44928         lib/setenv.h.
44929         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44930         (Depends-on): Add stdlib.
44931         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44932         gl_FUNC_UNSETENV.
44933         (Include): Replace setenv.h with <stdlib.h>.
44934         * modules/unsetenv: New file.
44935         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44936         * lib/unsetenv.c: Include <stdlib.h> first.
44937         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44938         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44939         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44940         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44941         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44942         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44944         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44945         * doc/functions/unsetenv.texi: Update.
44946         * modules/xsetenv (Depends-on): Add unsetenv.
44947         * modules/getdate (Depends-on): Likewise.
44948         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44949         * lib/xsetenv.c: Don't include setenv.h.
44950         * lib/getdate.y: Likewise.
44951         * lib/relocwrapper.c: Likewise.
44952         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44953         (Depends-on): Add stdlib.
44954         * NEWS: Mention the changes.
44955         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44956
44957 2007-12-23  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44960         indentation.
44961
44962 2007-12-23  Bruno Haible  <bruno@clisp.org>
44963
44964         * lib/c-strcasestr.c: Add more comments.
44965         * lib/c-strstr.c: Likewise.
44966         * lib/mbscasestr.c: Likewise.
44967         * lib/mbsstr.c: Likewise.
44968         * lib/strcasestr.c: Likewise.
44969         * lib/memmem.c: Likewise.
44970
44971 2007-12-23  Bruno Haible  <bruno@clisp.org>
44972
44973         * tests/test-memmem.c: Include <string.h> first.
44974
44975 2007-12-22  Bruno Haible  <bruno@clisp.org>
44976
44977         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44978         the contents of $testsbase.
44979         Reported by Ralf Wildenhues.
44980
44981 2007-12-22  Bruno Haible  <bruno@clisp.org>
44982
44983         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44984         two variables local_ldadd_before, local_ldadd_last.
44985
44986 2007-12-20  Eric Blake  <ebb9@byu.net>
44987
44988         Work around circular library issue when cross-compiling.
44989         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44990         that progname.o does not need to pull in rpl_memcmp.
44991
44992 2007-12-19  Eric Blake  <ebb9@byu.net>
44993
44994         Fix memmem to avoid O(n^2) worst-case complexity.
44995         * lib/memmem.c (knuth_morris_pratt): New function.
44996         (memmem): Use it if first few naive iterations fail.
44997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44998         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44999         * modules/memchr (License): Likewise.
45000         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45001         malloca.
45002         * tests/test-memmem.c: Rewrite, borrowing ideas from
45003         test-mbsstr1.c; the old version wouldn't even compile!
45004         * modules/memmem-tests: New file.
45005         * lib/string.in.h (rpl_memmem): Add declaration.
45006         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45008         REPLACE_MEMMEM.
45009
45010 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45011
45012         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45013         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45014         before any system include files, and undef after them all.  This
45015         should fix a problem on VMS reported by John E. Malmberg in
45016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45017
45018 2007-12-17  Eric Blake  <ebb9@byu.net>
45019
45020         Revert addition of verify, for BSD/OS.
45021         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45022         can't handle large files, for the sake of obsolete platforms.
45023         * modules/fseeko (Depends-on): Remove verify.
45024         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45025         * doc/functions/ftello.texi (ftello): Likewise.
45026         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45027         Reported by Larry Jones.
45028
45029 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45030
45031         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45032         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45033
45034 2007-12-17  Jim Meyering  <meyering@redhat.com>
45035
45036         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45037         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45038         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45039         * modules/getcwd (Depends-on): Add openat.
45040         Reported by Petr Salinger.
45041
45042 2007-12-17  Bruno Haible  <bruno@clisp.org>
45043
45044         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45045         avoid a segmentation fault of the configure test on x86_64 systems.
45046
45047 2007-12-15  Jim Meyering  <meyering@redhat.com>
45048
45049         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45050
45051 2007-12-13  Eric Blake  <ebb9@byu.net>
45052
45053         Another fseek test.
45054         * tests/test-fseek.c (main): Also test ungetc handling.
45055         * tests/test-fseeko.c (main): Likewise.
45056         * modules/fseeko (Depends-on): Add verify.
45057         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45058         large.
45059         Reported by Larry Jones.
45060
45061         Fix fseeko on mingw.
45062         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45063         seek.
45064
45065         Beef up fseek tests.
45066         * tests/test-fseek.c (main): Also test eof handling.
45067         * tests/test-fseeko.c (main): Likewise.
45068         Reported by Larry Jones.
45069
45070 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45071
45072         Fix fseeko on BSD-based platforms.
45073         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45074         successful seek.
45075
45076 2007-12-12  Eric Blake  <ebb9@byu.net>
45077
45078         Allow circular dependency of separate libtests.a
45079         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45080         when use_libtests.
45081
45082 2007-12-11  Eric Blake  <ebb9@byu.net>
45083
45084         Fix bug with -0.0L in previous patch.
45085         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45086         * tests/test-isnan.c (main): Also test on zeroes.
45087         * tests/test-isnanf.c (main): Likewise.
45088         * tests/test-isnanl.h (main): Likewise.
45089
45090         Detect pseudo-denormals on x86 even when cross-compiling.
45091         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45092         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45093         invalid bit patterns that happen to satisfy ==.
45094
45095         Avoid link failures with separate libtests.a.
45096         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45097         last, to satisfy circular dependencies.
45098
45099 2007-12-11  Eric Blake  <ebb9@byu.net>
45100         and Bruno Haible  <bruno@clisp.org>
45101
45102         Fix OpenBSD 4.0 <float.h> handling of long double.
45103         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45104         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45105         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45106
45107 2007-12-11  Jim Meyering  <meyering@redhat.com>
45108
45109         * users.txt: Add libvirt.
45110
45111         Support versions of autoconf prior to 2.59c.
45112         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45113         if it is not already defined.
45114
45115 2007-12-09  Bruno Haible  <bruno@clisp.org>
45116
45117         Let 'gnulib-tool --import' collect sources needed for the tests in
45118         tests/ rather than in lib/.
45119         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45120         argument. If true, add rules to generate libtests.a, and put libtests.a
45121         into $(LDADD). Consider source files in subdirectories and set
45122         uses_subdirs.
45123         (func_emit_initmacro_start, func_emit_initmacro_end,
45124         func_emit_initmacro_done): Pass all arguments explicitly.
45125         (func_import): Determine two module lists main_modules,
45126         testsrelated_modules. Determine use_libtests. Determine two variables
45127         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45128         instead of just sed_transform_lib_file. Determine two variables
45129         main_files and testsrelated_files. Compute 'files' as the union of
45130         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45131         func_add_or_update. In the generated gnulib-comp.m4, collect the
45132         object files for tests/ in different variables than those for lib/.
45133         Substitute LIBTESTS_LIBDEPS.
45134         (func_create_testdir): Combine the uses_subdirs results from
45135         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45136
45137 2007-12-09  Bruno Haible  <bruno@clisp.org>
45138
45139         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45140         the build-aux directory.
45141
45142 2007-12-09  Bruno Haible  <bruno@clisp.org>
45143
45144         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45145         introduced on 2006-09-09.
45146
45147 2007-12-07  Jim Meyering  <meyering@redhat.com>
45148
45149         Let these macros work also with autoconf-2.59.
45150         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45151         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45152         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45153
45154 2007-12-06  Jim Meyering  <meyering@redhat.com>
45155
45156         Avoid a configure-time syntax error in gl_FUNC_ACL.
45157         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45158         function in each branch, before testing the cache variable.
45159
45160 2007-12-04  Eric Blake  <ebb9@byu.net>
45161
45162         Make scripts executable.
45163         * build-aux/config.guess: Add execute permissions.
45164         * build-aux/config.sub: Likewise.
45165         * build-aux/gendocs.sh: Likewise.
45166
45167         Fix frexp on mingw.
45168         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45169         cross-compiling.
45170         * doc/functions/frexp.texi (frexp): Document the bug.
45171
45172         Make cygwin fseeko check more reliable.
45173         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45174         version numbers, rather than unrelated feature check.
45175         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45176         * doc/functions/ftello.texi (ftello): Likewise.
45177         Reported by Bruno Haible.
45178
45179         * m4/strerror.m4: Bump version number.
45180
45181 2007-12-03  Bruno Haible  <bruno@clisp.org>
45182
45183         * doc/functions/mprotect.texi: Mention the mingw problem.
45184
45185 2007-12-03  Eric Blake  <ebb9@byu.net>
45186
45187         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45188         REPLACE_STRERROR is initialized before this macro.
45189
45190 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45193         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45194         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45195         put -lsec in even for programs other than 'ls'.  This fixes a problem
45196         for gettext reported by Bruno Haible in
45197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45198         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45199         Add support for Solaris 10.  This isn't efficient, but should get the
45200         job done for now.
45201
45202 2007-12-03  James Youngman  <jay@gnu.org>
45203
45204         * doc/regexprops-generic.texi: change "an close-group" to "a
45205         close-group" and "illegal" to "not allowed".
45206
45207 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45208
45209         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45210         pr_byname.h. Needed for the rare case when the maintainer has done
45211         "make maintainer-clean" in the source directory and then attempts a
45212         build outside the source directory.
45213         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45214         scripts_byname.h.
45215
45216 2007-12-02  Martin Lambers <marlam@marlam.de>
45217             Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/getpagesize.h: Remove file.
45220         * lib/unistd.in.h: Include declaration of getpagesize here.
45221         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45222         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45223         HAVE_SYS_PARAM_H.
45224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45225         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45226         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45227         (Depends-on): Add unistd.
45228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45229         (Include): Use <unistd.h> instead of getpagesize.h.
45230         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45231         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45232         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45233         gl_GETPAGESIZE invocation, already handled by module dependency.
45234         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45235
45236 2007-12-02  Bruno Haible  <bruno@clisp.org>
45237
45238         * modules/strings-tests: New file.
45239         * tests/test-strings.c: New file.
45240
45241         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45242         * lib/strings.in.h: New file.
45243         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45244         * m4/strings_h.m4: New file.
45245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45246         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45247         * modules/strings: New file.
45248         * modules/string (Makefile.am): Update.
45249         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45250         Reported by Karl Berry.
45251
45252 2007-12-01  Eric Blake  <ebb9@byu.net>
45253
45254         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45255         accomodate fix in cygwin 1.5.25.
45256
45257 2007-12-01  Jim Meyering  <meyering@redhat.com>
45258
45259         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45260         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45261         that would inhibit utf8-optimization of a regexp containing line-
45262         or buffer-anchors, e.g., `^', `$'.
45263
45264 2007-11-30  Bruno Haible  <bruno@clisp.org>
45265
45266         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45267         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45268         glthread_recursive_lock_init.
45269         * lib/lock.c (glthread_recursive_lock_init)
45270         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45271         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45272
45273 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45274
45275         New function qset_acl, like set_acl but with syscall semantics.
45276         * lib/acl.h (qset_acl): New decl.
45277         * lib/acl.c (qset_acl): New function.
45278         (set_acl): Use new function.  Use more-consistent diagnostics.
45279
45280 2007-11-28  Jim Meyering  <meyering@redhat.com>
45281
45282         * modules/physmem (License): Change from GPL to LGPLv2+.
45283
45284 2007-11-26  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45287         'long double' type has excess precision.
45288         Reported by Jim Meyering in
45289         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45290
45291 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45292
45293         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45294         Sync from <http://gnu.org/licenses>.
45295         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45296         with license text from same location.
45297         * doc/maintain.texi, doc/standards.texi:  Sync from
45298         <http://savannah.gnu.org/projects/gnustandards>.
45299
45300 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45301         and Jim Meyering  <meyering@redhat.com>
45302
45303         Adjust getdate' grammar to accept a slightly more regular language.
45304         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45305         Before, the former was rejected.
45306         * lib/getdate.y (digits_to_date_time): New function, factored
45307         out of ...
45308         (number): ...here.  Just call digits_to_date_time.
45309         (hybrid): New non-terminal to handle an <unsigned number,
45310         signed relative offset> sequence consistently.
45311
45312 2007-11-18  Jim Meyering  <meyering@redhat.com>
45313
45314         Pull my changes from coreutils:
45315         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45316         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45317         use of $gnulib_tool_option_extras, so that it's separated from the
45318         preceding argument.
45319
45320         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45321         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45322         parent destination directories before copying a file into place.
45323
45324 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45325
45326         bootstrap: work also with 4-argument variant of AC_INIT
45327         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45328
45329 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45330
45331         Port test-getaddrinfo to Solaris.
45332         Problem reported by Bruno Haible in
45333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45334         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45335         explanation of setting 'hints'.
45336         Don't reject an implementation merely because it returns EAI_SERVICE.
45337         (EAI_SERVICE): Define to 0 if not defined.
45338
45339 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45340
45341         The license of gnu-make and posix-shell is now "GPLed build tool".
45342         * modules/gnu-make (License): Likewise.
45343         * modules/posix-shell (License): Likewise.
45344
45345         New module posix-shell, for determining a POSIX shell
45346         or perhaps something that is close enough to a POSIX shell.
45347         * m4/posix-shell.m4: New file.
45348         * modules/posix-shell: New file.
45349
45350         * MODULES.html.sh: Mention new module.
45351
45352         New module gnu-make, for determining whether we're using GNU Make.
45353         * m4/gnu-make.m4: New file.
45354         * modules/gnu-make: New file.
45355         * MODULES.html.sh: Mention new module.
45356
45357 2007-11-14  Jim Meyering  <meyering@redhat.com>
45358
45359         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45360         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45361         use this macro to create a function _definition_.
45362         Remove useless "#undef ARGMATCH_DIE".
45363
45364 2007-11-14  Bruno Haible  <bruno@clisp.org>
45365
45366         * lib/config.charset: Update for OpenBSD 4.1.
45367         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45368
45369 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45370
45371         Document 64-bit #if problems in stdint.texi.
45372         * doc/headers/stdint.texi (stdint.h): Mention problems with
45373         64-bit-#if, and how to work around them.
45374
45375         Don't insist on 'long long int' support in the preprocessor.  It
45376         breaks too many things.  For example, PRIdMAX still uses a 'long
45377         long int' format with the latest Sun compiler, even though
45378         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45379         preprocessor problem.  This causes the latest coreutils to dump
45380         core on Solaris 10 sparc with the Sun C compiler.
45381         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45382         the troublesome expressions at configure-time, not at #if-time.
45383         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45384         preprocessor.
45385         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45386         compile-time C checks, done at 'configure'-time.
45387         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45388         * modules/inttypes (Makefile): Substitute the new symbols that
45389         gl_INTTYPES_H now generates.
45390         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45391
45392 2007-11-12  Bruno Haible  <bruno@clisp.org>
45393
45394         Tests for Unicode character classification functions.
45395
45396         * modules/unictype/bidicategory-byname-tests: New file.
45397         * modules/unictype/bidicategory-name-tests: New file.
45398         * modules/unictype/bidicategory-of-tests: New file.
45399         * modules/unictype/bidicategory-test-tests: New file.
45400         * modules/unictype/block-list-tests: New file.
45401         * modules/unictype/block-of-tests: New file.
45402         * modules/unictype/block-test-tests: New file.
45403         * modules/unictype/category-C-tests: New file.
45404         * modules/unictype/category-Cc-tests: New file.
45405         * modules/unictype/category-Cf-tests: New file.
45406         * modules/unictype/category-Cn-tests: New file.
45407         * modules/unictype/category-Co-tests: New file.
45408         * modules/unictype/category-Cs-tests: New file.
45409         * modules/unictype/category-L-tests: New file.
45410         * modules/unictype/category-Ll-tests: New file.
45411         * modules/unictype/category-Lm-tests: New file.
45412         * modules/unictype/category-Lo-tests: New file.
45413         * modules/unictype/category-Lt-tests: New file.
45414         * modules/unictype/category-Lu-tests: New file.
45415         * modules/unictype/category-M-tests: New file.
45416         * modules/unictype/category-Mc-tests: New file.
45417         * modules/unictype/category-Me-tests: New file.
45418         * modules/unictype/category-Mn-tests: New file.
45419         * modules/unictype/category-N-tests: New file.
45420         * modules/unictype/category-Nd-tests: New file.
45421         * modules/unictype/category-Nl-tests: New file.
45422         * modules/unictype/category-No-tests: New file.
45423         * modules/unictype/category-P-tests: New file.
45424         * modules/unictype/category-Pc-tests: New file.
45425         * modules/unictype/category-Pd-tests: New file.
45426         * modules/unictype/category-Pe-tests: New file.
45427         * modules/unictype/category-Pf-tests: New file.
45428         * modules/unictype/category-Pi-tests: New file.
45429         * modules/unictype/category-Po-tests: New file.
45430         * modules/unictype/category-Ps-tests: New file.
45431         * modules/unictype/category-S-tests: New file.
45432         * modules/unictype/category-Sc-tests: New file.
45433         * modules/unictype/category-Sk-tests: New file.
45434         * modules/unictype/category-Sm-tests: New file.
45435         * modules/unictype/category-So-tests: New file.
45436         * modules/unictype/category-Z-tests: New file.
45437         * modules/unictype/category-Zl-tests: New file.
45438         * modules/unictype/category-Zp-tests: New file.
45439         * modules/unictype/category-Zs-tests: New file.
45440         * modules/unictype/category-and-not-tests: New file.
45441         * modules/unictype/category-and-tests: New file.
45442         * modules/unictype/category-byname-tests: New file.
45443         * modules/unictype/category-name-tests: New file.
45444         * modules/unictype/category-none-tests: New file.
45445         * modules/unictype/category-of-tests: New file.
45446         * modules/unictype/category-or-tests: New file.
45447         * modules/unictype/category-test-withtable-tests: New file.
45448         * modules/unictype/combining-class-tests: New file.
45449         * modules/unictype/ctype-alnum-tests: New file.
45450         * modules/unictype/ctype-alpha-tests: New file.
45451         * modules/unictype/ctype-blank-tests: New file.
45452         * modules/unictype/ctype-cntrl-tests: New file.
45453         * modules/unictype/ctype-digit-tests: New file.
45454         * modules/unictype/ctype-graph-tests: New file.
45455         * modules/unictype/ctype-lower-tests: New file.
45456         * modules/unictype/ctype-print-tests: New file.
45457         * modules/unictype/ctype-punct-tests: New file.
45458         * modules/unictype/ctype-space-tests: New file.
45459         * modules/unictype/ctype-upper-tests: New file.
45460         * modules/unictype/ctype-xdigit-tests: New file.
45461         * modules/unictype/decimal-digit-tests: New file.
45462         * modules/unictype/digit-tests: New file.
45463         * modules/unictype/mirror-tests: New file.
45464         * modules/unictype/numeric-tests: New file.
45465         * modules/unictype/property-alphabetic-tests: New file.
45466         * modules/unictype/property-ascii-hex-digit-tests: New file.
45467         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45468         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45469         * modules/unictype/property-bidi-block-separator-tests: New file.
45470         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45471         * modules/unictype/property-bidi-common-separator-tests: New file.
45472         * modules/unictype/property-bidi-control-tests: New file.
45473         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45474         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45475         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45476         * modules/unictype/property-bidi-european-digit-tests: New file.
45477         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45478         * modules/unictype/property-bidi-left-to-right-tests: New file.
45479         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45480         * modules/unictype/property-bidi-other-neutral-tests: New file.
45481         * modules/unictype/property-bidi-pdf-tests: New file.
45482         * modules/unictype/property-bidi-segment-separator-tests: New file.
45483         * modules/unictype/property-bidi-whitespace-tests: New file.
45484         * modules/unictype/property-byname-tests: New file.
45485         * modules/unictype/property-combining-tests: New file.
45486         * modules/unictype/property-composite-tests: New file.
45487         * modules/unictype/property-currency-symbol-tests: New file.
45488         * modules/unictype/property-dash-tests: New file.
45489         * modules/unictype/property-decimal-digit-tests: New file.
45490         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45491         * modules/unictype/property-deprecated-tests: New file.
45492         * modules/unictype/property-diacritic-tests: New file.
45493         * modules/unictype/property-extender-tests: New file.
45494         * modules/unictype/property-format-control-tests: New file.
45495         * modules/unictype/property-grapheme-base-tests: New file.
45496         * modules/unictype/property-grapheme-extend-tests: New file.
45497         * modules/unictype/property-grapheme-link-tests: New file.
45498         * modules/unictype/property-hex-digit-tests: New file.
45499         * modules/unictype/property-hyphen-tests: New file.
45500         * modules/unictype/property-id-continue-tests: New file.
45501         * modules/unictype/property-id-start-tests: New file.
45502         * modules/unictype/property-ideographic-tests: New file.
45503         * modules/unictype/property-ids-binary-operator-tests: New file.
45504         * modules/unictype/property-ids-trinary-operator-tests: New file.
45505         * modules/unictype/property-ignorable-control-tests: New file.
45506         * modules/unictype/property-iso-control-tests: New file.
45507         * modules/unictype/property-join-control-tests: New file.
45508         * modules/unictype/property-left-of-pair-tests: New file.
45509         * modules/unictype/property-line-separator-tests: New file.
45510         * modules/unictype/property-logical-order-exception-tests: New file.
45511         * modules/unictype/property-lowercase-tests: New file.
45512         * modules/unictype/property-math-tests: New file.
45513         * modules/unictype/property-non-break-tests: New file.
45514         * modules/unictype/property-not-a-character-tests: New file.
45515         * modules/unictype/property-numeric-tests: New file.
45516         * modules/unictype/property-other-alphabetic-tests: New file.
45517         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45518         * modules/unictype/property-other-grapheme-extend-tests: New file.
45519         * modules/unictype/property-other-id-continue-tests: New file.
45520         * modules/unictype/property-other-id-start-tests: New file.
45521         * modules/unictype/property-other-lowercase-tests: New file.
45522         * modules/unictype/property-other-math-tests: New file.
45523         * modules/unictype/property-other-uppercase-tests: New file.
45524         * modules/unictype/property-paired-punctuation-tests: New file.
45525         * modules/unictype/property-paragraph-separator-tests: New file.
45526         * modules/unictype/property-pattern-syntax-tests: New file.
45527         * modules/unictype/property-pattern-white-space-tests: New file.
45528         * modules/unictype/property-private-use-tests: New file.
45529         * modules/unictype/property-punctuation-tests: New file.
45530         * modules/unictype/property-quotation-mark-tests: New file.
45531         * modules/unictype/property-radical-tests: New file.
45532         * modules/unictype/property-sentence-terminal-tests: New file.
45533         * modules/unictype/property-soft-dotted-tests: New file.
45534         * modules/unictype/property-space-tests: New file.
45535         * modules/unictype/property-terminal-punctuation-tests: New file.
45536         * modules/unictype/property-test-tests: New file.
45537         * modules/unictype/property-titlecase-tests: New file.
45538         * modules/unictype/property-unassigned-code-value-tests: New file.
45539         * modules/unictype/property-unified-ideograph-tests: New file.
45540         * modules/unictype/property-uppercase-tests: New file.
45541         * modules/unictype/property-variation-selector-tests: New file.
45542         * modules/unictype/property-white-space-tests: New file.
45543         * modules/unictype/property-xid-continue-tests: New file.
45544         * modules/unictype/property-xid-start-tests: New file.
45545         * modules/unictype/property-zero-width-tests: New file.
45546         * modules/unictype/scripts-tests: New file.
45547         * modules/unictype/syntax-c-ident-tests: New file.
45548         * modules/unictype/syntax-c-whitespace-tests: New file.
45549         * modules/unictype/syntax-java-ident-tests: New file.
45550         * modules/unictype/syntax-java-whitespace-tests: New file.
45551         * tests/unictype/test-bidi_byname.c: New file.
45552         * tests/unictype/test-bidi_name.c: New file.
45553         * tests/unictype/test-bidi_of.c: New file.
45554         * tests/unictype/test-bidi_test.c: New file.
45555         * tests/unictype/test-block_list.c: New file.
45556         * tests/unictype/test-block_of.c: New file.
45557         * tests/unictype/test-block_test.c: New file.
45558         * tests/unictype/test-categ_and.c: New file.
45559         * tests/unictype/test-categ_and_not.c: New file.
45560         * tests/unictype/test-categ_byname.c: New file.
45561         * tests/unictype/test-categ_name.c: New file.
45562         * tests/unictype/test-categ_none.c: New file.
45563         * tests/unictype/test-categ_of.c: New file.
45564         * tests/unictype/test-categ_or.c: New file.
45565         * tests/unictype/test-categ_test_withtable.c: New file.
45566         * tests/unictype/test-combining.c: New file.
45567         * tests/unictype/test-decdigit.c: New file.
45568         * tests/unictype/test-digit.c: New file.
45569         * tests/unictype/test-mirror.c: New file.
45570         * tests/unictype/test-numeric.c: New file.
45571         * tests/unictype/test-pr_byname.c: New file.
45572         * tests/unictype/test-pr_test.c: New file.
45573         * tests/unictype/test-predicate-part1.h: New file.
45574         * tests/unictype/test-predicate-part2.h: New file.
45575         * tests/unictype/test-scripts.c: New file.
45576         * tests/unictype/test-sy_c_ident.c: New file.
45577         * tests/unictype/test-sy_java_ident.c: New file.
45578
45579         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45580         for Unicode 5.0.0.
45581         * tests/unictype/test-categ_Cc.c: Likewise.
45582         * tests/unictype/test-categ_Cf.c: Likewise.
45583         * tests/unictype/test-categ_Cn.c: Likewise.
45584         * tests/unictype/test-categ_Co.c: Likewise.
45585         * tests/unictype/test-categ_Cs.c: Likewise.
45586         * tests/unictype/test-categ_L.c: Likewise.
45587         * tests/unictype/test-categ_Ll.c: Likewise.
45588         * tests/unictype/test-categ_Lm.c: Likewise.
45589         * tests/unictype/test-categ_Lo.c: Likewise.
45590         * tests/unictype/test-categ_Lt.c: Likewise.
45591         * tests/unictype/test-categ_Lu.c: Likewise.
45592         * tests/unictype/test-categ_M.c: Likewise.
45593         * tests/unictype/test-categ_Mc.c: Likewise.
45594         * tests/unictype/test-categ_Me.c: Likewise.
45595         * tests/unictype/test-categ_Mn.c: Likewise.
45596         * tests/unictype/test-categ_N.c: Likewise.
45597         * tests/unictype/test-categ_Nd.c: Likewise.
45598         * tests/unictype/test-categ_Nl.c: Likewise.
45599         * tests/unictype/test-categ_No.c: Likewise.
45600         * tests/unictype/test-categ_P.c: Likewise.
45601         * tests/unictype/test-categ_Pc.c: Likewise.
45602         * tests/unictype/test-categ_Pd.c: Likewise.
45603         * tests/unictype/test-categ_Pe.c: Likewise.
45604         * tests/unictype/test-categ_Pf.c: Likewise.
45605         * tests/unictype/test-categ_Pi.c: Likewise.
45606         * tests/unictype/test-categ_Po.c: Likewise.
45607         * tests/unictype/test-categ_Ps.c: Likewise.
45608         * tests/unictype/test-categ_S.c: Likewise.
45609         * tests/unictype/test-categ_Sc.c: Likewise.
45610         * tests/unictype/test-categ_Sk.c: Likewise.
45611         * tests/unictype/test-categ_Sm.c: Likewise.
45612         * tests/unictype/test-categ_So.c: Likewise.
45613         * tests/unictype/test-categ_Z.c: Likewise.
45614         * tests/unictype/test-categ_Zl.c: Likewise.
45615         * tests/unictype/test-categ_Zp.c: Likewise.
45616         * tests/unictype/test-categ_Zs.c: Likewise.
45617         * tests/unictype/test-ctype_alnum.c: Likewise.
45618         * tests/unictype/test-ctype_alpha.c: Likewise.
45619         * tests/unictype/test-ctype_blank.c: Likewise.
45620         * tests/unictype/test-ctype_cntrl.c: Likewise.
45621         * tests/unictype/test-ctype_digit.c: Likewise.
45622         * tests/unictype/test-ctype_graph.c: Likewise.
45623         * tests/unictype/test-ctype_lower.c: Likewise.
45624         * tests/unictype/test-ctype_print.c: Likewise.
45625         * tests/unictype/test-ctype_punct.c: Likewise.
45626         * tests/unictype/test-ctype_space.c: Likewise.
45627         * tests/unictype/test-ctype_upper.c: Likewise.
45628         * tests/unictype/test-ctype_xdigit.c: Likewise.
45629         * tests/unictype/test-decdigit.h: Likewise.
45630         * tests/unictype/test-digit.h: Likewise.
45631         * tests/unictype/test-numeric.h: Likewise.
45632         * tests/unictype/test-pr_alphabetic.c: Likewise.
45633         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45634         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45635         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45636         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45637         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45638         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45639         * tests/unictype/test-pr_bidi_control.c: Likewise.
45640         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45641         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45642         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45643         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45644         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45645         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45646         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45647         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45648         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45649         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45650         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45651         * tests/unictype/test-pr_combining.c: Likewise.
45652         * tests/unictype/test-pr_composite.c: Likewise.
45653         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45654         * tests/unictype/test-pr_dash.c: Likewise.
45655         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45656         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45657         * tests/unictype/test-pr_deprecated.c: Likewise.
45658         * tests/unictype/test-pr_diacritic.c: Likewise.
45659         * tests/unictype/test-pr_extender.c: Likewise.
45660         * tests/unictype/test-pr_format_control.c: Likewise.
45661         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45662         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45663         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45664         * tests/unictype/test-pr_hex_digit.c: Likewise.
45665         * tests/unictype/test-pr_hyphen.c: Likewise.
45666         * tests/unictype/test-pr_id_continue.c: Likewise.
45667         * tests/unictype/test-pr_id_start.c: Likewise.
45668         * tests/unictype/test-pr_ideographic.c: Likewise.
45669         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45670         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45671         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45672         * tests/unictype/test-pr_iso_control.c: Likewise.
45673         * tests/unictype/test-pr_join_control.c: Likewise.
45674         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45675         * tests/unictype/test-pr_line_separator.c: Likewise.
45676         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45677         * tests/unictype/test-pr_lowercase.c: Likewise.
45678         * tests/unictype/test-pr_math.c: Likewise.
45679         * tests/unictype/test-pr_non_break.c: Likewise.
45680         * tests/unictype/test-pr_not_a_character.c: Likewise.
45681         * tests/unictype/test-pr_numeric.c: Likewise.
45682         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45683         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45684         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45685         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45686         * tests/unictype/test-pr_other_id_start.c: Likewise.
45687         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45688         * tests/unictype/test-pr_other_math.c: Likewise.
45689         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45690         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45691         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45692         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45693         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45694         * tests/unictype/test-pr_private_use.c: Likewise.
45695         * tests/unictype/test-pr_punctuation.c: Likewise.
45696         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45697         * tests/unictype/test-pr_radical.c: Likewise.
45698         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45699         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45700         * tests/unictype/test-pr_space.c: Likewise.
45701         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45702         * tests/unictype/test-pr_titlecase.c: Likewise.
45703         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45704         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45705         * tests/unictype/test-pr_uppercase.c: Likewise.
45706         * tests/unictype/test-pr_variation_selector.c: Likewise.
45707         * tests/unictype/test-pr_white_space.c: Likewise.
45708         * tests/unictype/test-pr_xid_continue.c: Likewise.
45709         * tests/unictype/test-pr_xid_start.c: Likewise.
45710         * tests/unictype/test-pr_zero_width.c: Likewise.
45711         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45712         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45713
45714 2007-11-12  Bruno Haible  <bruno@clisp.org>
45715
45716         Unicode character classification functions.
45717         * lib/unictype.h: New file.
45718         * modules/unictype/base: New file.
45719         * modules/unictype/category-L: New file.
45720         * modules/unictype/category-Lu: New file.
45721         * modules/unictype/category-Ll: New file.
45722         * modules/unictype/category-Lt: New file.
45723         * modules/unictype/category-Lm: New file.
45724         * modules/unictype/category-Lo: New file.
45725         * modules/unictype/category-M: New file.
45726         * modules/unictype/category-Mn: New file.
45727         * modules/unictype/category-Mc: New file.
45728         * modules/unictype/category-Me: New file.
45729         * modules/unictype/category-N: New file.
45730         * modules/unictype/category-Nd: New file.
45731         * modules/unictype/category-Nl: New file.
45732         * modules/unictype/category-No: New file.
45733         * modules/unictype/category-P: New file.
45734         * modules/unictype/category-Pc: New file.
45735         * modules/unictype/category-Pd: New file.
45736         * modules/unictype/category-Ps: New file.
45737         * modules/unictype/category-Pe: New file.
45738         * modules/unictype/category-Pi: New file.
45739         * modules/unictype/category-Pf: New file.
45740         * modules/unictype/category-Po: New file.
45741         * modules/unictype/category-S: New file.
45742         * modules/unictype/category-Sm: New file.
45743         * modules/unictype/category-Sc: New file.
45744         * modules/unictype/category-Sk: New file.
45745         * modules/unictype/category-So: New file.
45746         * modules/unictype/category-Z: New file.
45747         * modules/unictype/category-Zs: New file.
45748         * modules/unictype/category-Zl: New file.
45749         * modules/unictype/category-Zp: New file.
45750         * modules/unictype/category-C: New file.
45751         * modules/unictype/category-Cc: New file.
45752         * modules/unictype/category-Cf: New file.
45753         * modules/unictype/category-Cs: New file.
45754         * modules/unictype/category-Co: New file.
45755         * modules/unictype/category-Cn: New file.
45756         * modules/unictype/category-or: New file.
45757         * modules/unictype/category-of: New file.
45758         * modules/unictype/category-test: New file.
45759         * modules/unictype/category-test-withtable: New file.
45760         * modules/unictype/category-byname: New file.
45761         * modules/unictype/category-none: New file.
45762         * modules/unictype/category-and: New file.
45763         * modules/unictype/category-and-not: New file.
45764         * modules/unictype/category-name: New file.
45765         * modules/unictype/combining-class: New file.
45766         * modules/unictype/category-all: New file.
45767         * modules/unictype/bidicategory-all: New file.
45768         * modules/unictype/bidicategory-byname: New file.
45769         * modules/unictype/bidicategory-name: New file.
45770         * modules/unictype/bidicategory-of: New file.
45771         * modules/unictype/bidicategory-test: New file.
45772         * modules/unictype/decimal-digit: New file.
45773         * modules/unictype/digit: New file.
45774         * modules/unictype/numeric: New file.
45775         * modules/unictype/mirror: New file.
45776         * modules/unictype/property-white-space: New file.
45777         * modules/unictype/property-alphabetic: New file.
45778         * modules/unictype/property-other-alphabetic: New file.
45779         * modules/unictype/property-not-a-character: New file.
45780         * modules/unictype/property-default-ignorable-code-point: New file.
45781         * modules/unictype/property-other-default-ignorable-code-point: New
45782         file.
45783         * modules/unictype/property-deprecated: New file.
45784         * modules/unictype/property-logical-order-exception: New file.
45785         * modules/unictype/property-variation-selector: New file.
45786         * modules/unictype/property-private-use: New file.
45787         * modules/unictype/property-unassigned-code-value: New file.
45788         * modules/unictype/property-uppercase: New file.
45789         * modules/unictype/property-other-uppercase: New file.
45790         * modules/unictype/property-lowercase: New file.
45791         * modules/unictype/property-other-lowercase: New file.
45792         * modules/unictype/property-titlecase: New file.
45793         * modules/unictype/property-soft-dotted: New file.
45794         * modules/unictype/property-id-start: New file.
45795         * modules/unictype/property-other-id-start: New file.
45796         * modules/unictype/property-id-continue: New file.
45797         * modules/unictype/property-other-id-continue: New file.
45798         * modules/unictype/property-xid-start: New file.
45799         * modules/unictype/property-xid-continue: New file.
45800         * modules/unictype/property-pattern-white-space: New file.
45801         * modules/unictype/property-pattern-syntax: New file.
45802         * modules/unictype/property-join-control: New file.
45803         * modules/unictype/property-grapheme-base: New file.
45804         * modules/unictype/property-grapheme-extend: New file.
45805         * modules/unictype/property-other-grapheme-extend: New file.
45806         * modules/unictype/property-grapheme-link: New file.
45807         * modules/unictype/property-bidi-control: New file.
45808         * modules/unictype/property-bidi-left-to-right: New file.
45809         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45810         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45811         * modules/unictype/property-bidi-european-digit: New file.
45812         * modules/unictype/property-bidi-eur-num-separator: New file.
45813         * modules/unictype/property-bidi-eur-num-terminator: New file.
45814         * modules/unictype/property-bidi-arabic-digit: New file.
45815         * modules/unictype/property-bidi-common-separator: New file.
45816         * modules/unictype/property-bidi-block-separator: New file.
45817         * modules/unictype/property-bidi-segment-separator: New file.
45818         * modules/unictype/property-bidi-whitespace: New file.
45819         * modules/unictype/property-bidi-non-spacing-mark: New file.
45820         * modules/unictype/property-bidi-boundary-neutral: New file.
45821         * modules/unictype/property-bidi-pdf: New file.
45822         * modules/unictype/property-bidi-embedding-or-override: New file.
45823         * modules/unictype/property-bidi-other-neutral: New file.
45824         * modules/unictype/property-hex-digit: New file.
45825         * modules/unictype/property-ascii-hex-digit: New file.
45826         * modules/unictype/property-ideographic: New file.
45827         * modules/unictype/property-unified-ideograph: New file.
45828         * modules/unictype/property-radical: New file.
45829         * modules/unictype/property-ids-binary-operator: New file.
45830         * modules/unictype/property-ids-trinary-operator: New file.
45831         * modules/unictype/property-zero-width: New file.
45832         * modules/unictype/property-space: New file.
45833         * modules/unictype/property-non-break: New file.
45834         * modules/unictype/property-iso-control: New file.
45835         * modules/unictype/property-format-control: New file.
45836         * modules/unictype/property-dash: New file.
45837         * modules/unictype/property-hyphen: New file.
45838         * modules/unictype/property-punctuation: New file.
45839         * modules/unictype/property-line-separator: New file.
45840         * modules/unictype/property-paragraph-separator: New file.
45841         * modules/unictype/property-quotation-mark: New file.
45842         * modules/unictype/property-sentence-terminal: New file.
45843         * modules/unictype/property-terminal-punctuation: New file.
45844         * modules/unictype/property-currency-symbol: New file.
45845         * modules/unictype/property-math: New file.
45846         * modules/unictype/property-other-math: New file.
45847         * modules/unictype/property-paired-punctuation: New file.
45848         * modules/unictype/property-left-of-pair: New file.
45849         * modules/unictype/property-combining: New file.
45850         * modules/unictype/property-composite: New file.
45851         * modules/unictype/property-decimal-digit: New file.
45852         * modules/unictype/property-numeric: New file.
45853         * modules/unictype/property-diacritic: New file.
45854         * modules/unictype/property-extender: New file.
45855         * modules/unictype/property-ignorable-control: New file.
45856         * modules/unictype/property-test: New file.
45857         * modules/unictype/property-byname: New file.
45858         * modules/unictype/property-all: New file.
45859         * modules/unictype/scripts: New file.
45860         * modules/unictype/scripts-all: New file.
45861         * modules/unictype/block-of: New file.
45862         * modules/unictype/block-test: New file.
45863         * modules/unictype/block-list: New file.
45864         * modules/unictype/block-all: New file.
45865         * modules/unictype/syntax-c-whitespace: New file.
45866         * modules/unictype/syntax-java-whitespace: New file.
45867         * modules/unictype/syntax-c-ident: New file.
45868         * modules/unictype/syntax-java-ident: New file.
45869         * modules/unictype/ctype-alnum: New file.
45870         * modules/unictype/ctype-alpha: New file.
45871         * modules/unictype/ctype-cntrl: New file.
45872         * modules/unictype/ctype-digit: New file.
45873         * modules/unictype/ctype-graph: New file.
45874         * modules/unictype/ctype-lower: New file.
45875         * modules/unictype/ctype-print: New file.
45876         * modules/unictype/ctype-punct: New file.
45877         * modules/unictype/ctype-space: New file.
45878         * modules/unictype/ctype-upper: New file.
45879         * modules/unictype/ctype-xdigit: New file.
45880         * modules/unictype/ctype-blank: New file.
45881         * lib/unictype/bidi_byname.c: New file.
45882         * lib/unictype/bidi_name.c: New file.
45883         * lib/unictype/bidi_of.c: New file.
45884         * lib/unictype/bidi_test.c: New file.
45885         * lib/unictype/bitmap.h: New file.
45886         * lib/unictype/block_test.c: New file.
45887         * lib/unictype/blocks.c: New file.
45888         * lib/unictype/categ_C.c: New file.
45889         * lib/unictype/categ_Cc.c: New file.
45890         * lib/unictype/categ_Cf.c: New file.
45891         * lib/unictype/categ_Cn.c: New file.
45892         * lib/unictype/categ_Co.c: New file.
45893         * lib/unictype/categ_Cs.c: New file.
45894         * lib/unictype/categ_L.c: New file.
45895         * lib/unictype/categ_Ll.c: New file.
45896         * lib/unictype/categ_Lm.c: New file.
45897         * lib/unictype/categ_Lo.c: New file.
45898         * lib/unictype/categ_Lt.c: New file.
45899         * lib/unictype/categ_Lu.c: New file.
45900         * lib/unictype/categ_M.c: New file.
45901         * lib/unictype/categ_Mc.c: New file.
45902         * lib/unictype/categ_Me.c: New file.
45903         * lib/unictype/categ_Mn.c: New file.
45904         * lib/unictype/categ_N.c: New file.
45905         * lib/unictype/categ_Nd.c: New file.
45906         * lib/unictype/categ_Nl.c: New file.
45907         * lib/unictype/categ_No.c: New file.
45908         * lib/unictype/categ_P.c: New file.
45909         * lib/unictype/categ_Pc.c: New file.
45910         * lib/unictype/categ_Pd.c: New file.
45911         * lib/unictype/categ_Pe.c: New file.
45912         * lib/unictype/categ_Pf.c: New file.
45913         * lib/unictype/categ_Pi.c: New file.
45914         * lib/unictype/categ_Po.c: New file.
45915         * lib/unictype/categ_Ps.c: New file.
45916         * lib/unictype/categ_S.c: New file.
45917         * lib/unictype/categ_Sc.c: New file.
45918         * lib/unictype/categ_Sk.c: New file.
45919         * lib/unictype/categ_Sm.c: New file.
45920         * lib/unictype/categ_So.c: New file.
45921         * lib/unictype/categ_Z.c: New file.
45922         * lib/unictype/categ_Zl.c: New file.
45923         * lib/unictype/categ_Zp.c: New file.
45924         * lib/unictype/categ_Zs.c: New file.
45925         * lib/unictype/categ_and.c: New file.
45926         * lib/unictype/categ_and_not.c: New file.
45927         * lib/unictype/categ_byname.c: New file.
45928         * lib/unictype/categ_name.c: New file.
45929         * lib/unictype/categ_none.c: New file.
45930         * lib/unictype/categ_of.c: New file.
45931         * lib/unictype/categ_or.c: New file.
45932         * lib/unictype/categ_test.c: New file.
45933         * lib/unictype/combining.c: New file.
45934         * lib/unictype/ctype_alnum.c: New file.
45935         * lib/unictype/ctype_alpha.c: New file.
45936         * lib/unictype/ctype_blank.c: New file.
45937         * lib/unictype/ctype_cntrl.c: New file.
45938         * lib/unictype/ctype_digit.c: New file.
45939         * lib/unictype/ctype_graph.c: New file.
45940         * lib/unictype/ctype_lower.c: New file.
45941         * lib/unictype/ctype_print.c: New file.
45942         * lib/unictype/ctype_punct.c: New file.
45943         * lib/unictype/ctype_space.c: New file.
45944         * lib/unictype/ctype_upper.c: New file.
45945         * lib/unictype/ctype_xdigit.c: New file.
45946         * lib/unictype/decdigit.c: New file.
45947         * lib/unictype/digit.c: New file.
45948         * lib/unictype/identsyntaxmap.h: New file.
45949         * lib/unictype/mirror.c: New file.
45950         * lib/unictype/numeric.c: New file.
45951         * lib/unictype/pr_alphabetic.c: New file.
45952         * lib/unictype/pr_ascii_hex_digit.c: New file.
45953         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45954         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45955         * lib/unictype/pr_bidi_block_separator.c: New file.
45956         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45957         * lib/unictype/pr_bidi_common_separator.c: New file.
45958         * lib/unictype/pr_bidi_control.c: New file.
45959         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45960         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45961         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45962         * lib/unictype/pr_bidi_european_digit.c: New file.
45963         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45964         * lib/unictype/pr_bidi_left_to_right.c: New file.
45965         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45966         * lib/unictype/pr_bidi_other_neutral.c: New file.
45967         * lib/unictype/pr_bidi_pdf.c: New file.
45968         * lib/unictype/pr_bidi_segment_separator.c: New file.
45969         * lib/unictype/pr_bidi_whitespace.c: New file.
45970         * lib/unictype/pr_byname.c: New file.
45971         * lib/unictype/pr_byname.gperf: New file.
45972         * lib/unictype/pr_combining.c: New file.
45973         * lib/unictype/pr_composite.c: New file.
45974         * lib/unictype/pr_currency_symbol.c: New file.
45975         * lib/unictype/pr_dash.c: New file.
45976         * lib/unictype/pr_decimal_digit.c: New file.
45977         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45978         * lib/unictype/pr_deprecated.c: New file.
45979         * lib/unictype/pr_diacritic.c: New file.
45980         * lib/unictype/pr_extender.c: New file.
45981         * lib/unictype/pr_format_control.c: New file.
45982         * lib/unictype/pr_grapheme_base.c: New file.
45983         * lib/unictype/pr_grapheme_extend.c: New file.
45984         * lib/unictype/pr_grapheme_link.c: New file.
45985         * lib/unictype/pr_hex_digit.c: New file.
45986         * lib/unictype/pr_hyphen.c: New file.
45987         * lib/unictype/pr_id_continue.c: New file.
45988         * lib/unictype/pr_id_start.c: New file.
45989         * lib/unictype/pr_ideographic.c: New file.
45990         * lib/unictype/pr_ids_binary_operator.c: New file.
45991         * lib/unictype/pr_ids_trinary_operator.c: New file.
45992         * lib/unictype/pr_ignorable_control.c: New file.
45993         * lib/unictype/pr_iso_control.c: New file.
45994         * lib/unictype/pr_join_control.c: New file.
45995         * lib/unictype/pr_left_of_pair.c: New file.
45996         * lib/unictype/pr_line_separator.c: New file.
45997         * lib/unictype/pr_logical_order_exception.c: New file.
45998         * lib/unictype/pr_lowercase.c: New file.
45999         * lib/unictype/pr_math.c: New file.
46000         * lib/unictype/pr_non_break.c: New file.
46001         * lib/unictype/pr_not_a_character.c: New file.
46002         * lib/unictype/pr_numeric.c: New file.
46003         * lib/unictype/pr_other_alphabetic.c: New file.
46004         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46005         * lib/unictype/pr_other_grapheme_extend.c: New file.
46006         * lib/unictype/pr_other_id_continue.c: New file.
46007         * lib/unictype/pr_other_id_start.c: New file.
46008         * lib/unictype/pr_other_lowercase.c: New file.
46009         * lib/unictype/pr_other_math.c: New file.
46010         * lib/unictype/pr_other_uppercase.c: New file.
46011         * lib/unictype/pr_paired_punctuation.c: New file.
46012         * lib/unictype/pr_paragraph_separator.c: New file.
46013         * lib/unictype/pr_pattern_syntax.c: New file.
46014         * lib/unictype/pr_pattern_white_space.c: New file.
46015         * lib/unictype/pr_private_use.c: New file.
46016         * lib/unictype/pr_punctuation.c: New file.
46017         * lib/unictype/pr_quotation_mark.c: New file.
46018         * lib/unictype/pr_radical.c: New file.
46019         * lib/unictype/pr_sentence_terminal.c: New file.
46020         * lib/unictype/pr_soft_dotted.c: New file.
46021         * lib/unictype/pr_space.c: New file.
46022         * lib/unictype/pr_terminal_punctuation.c: New file.
46023         * lib/unictype/pr_test.c: New file.
46024         * lib/unictype/pr_titlecase.c: New file.
46025         * lib/unictype/pr_unassigned_code_value.c: New file.
46026         * lib/unictype/pr_unified_ideograph.c: New file.
46027         * lib/unictype/pr_uppercase.c: New file.
46028         * lib/unictype/pr_variation_selector.c: New file.
46029         * lib/unictype/pr_white_space.c: New file.
46030         * lib/unictype/pr_xid_continue.c: New file.
46031         * lib/unictype/pr_xid_start.c: New file.
46032         * lib/unictype/pr_zero_width.c: New file.
46033         * lib/unictype/scripts.c: New file.
46034         * lib/unictype/sy_c_ident.c: New file.
46035         * lib/unictype/sy_c_whitespace.c: New file.
46036         * lib/unictype/sy_java_ident.c: New file.
46037         * lib/unictype/sy_java_whitespace.c: New file.
46038
46039         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46040         Unicode 5.0.0.
46041         * lib/unictype/blocks.h: Likewise.
46042         * lib/unictype/categ_C.h: Likewise.
46043         * lib/unictype/categ_Cc.h: Likewise.
46044         * lib/unictype/categ_Cf.h: Likewise.
46045         * lib/unictype/categ_Cn.h: Likewise.
46046         * lib/unictype/categ_Co.h: Likewise.
46047         * lib/unictype/categ_Cs.h: Likewise.
46048         * lib/unictype/categ_L.h: Likewise.
46049         * lib/unictype/categ_Ll.h: Likewise.
46050         * lib/unictype/categ_Lm.h: Likewise.
46051         * lib/unictype/categ_Lo.h: Likewise.
46052         * lib/unictype/categ_Lt.h: Likewise.
46053         * lib/unictype/categ_Lu.h: Likewise.
46054         * lib/unictype/categ_M.h: Likewise.
46055         * lib/unictype/categ_Mc.h: Likewise.
46056         * lib/unictype/categ_Me.h: Likewise.
46057         * lib/unictype/categ_Mn.h: Likewise.
46058         * lib/unictype/categ_N.h: Likewise.
46059         * lib/unictype/categ_Nd.h: Likewise.
46060         * lib/unictype/categ_Nl.h: Likewise.
46061         * lib/unictype/categ_No.h: Likewise.
46062         * lib/unictype/categ_P.h: Likewise.
46063         * lib/unictype/categ_Pc.h: Likewise.
46064         * lib/unictype/categ_Pd.h: Likewise.
46065         * lib/unictype/categ_Pe.h: Likewise.
46066         * lib/unictype/categ_Pf.h: Likewise.
46067         * lib/unictype/categ_Pi.h: Likewise.
46068         * lib/unictype/categ_Po.h: Likewise.
46069         * lib/unictype/categ_Ps.h: Likewise.
46070         * lib/unictype/categ_S.h: Likewise.
46071         * lib/unictype/categ_Sc.h: Likewise.
46072         * lib/unictype/categ_Sk.h: Likewise.
46073         * lib/unictype/categ_Sm.h: Likewise.
46074         * lib/unictype/categ_So.h: Likewise.
46075         * lib/unictype/categ_Z.h: Likewise.
46076         * lib/unictype/categ_Zl.h: Likewise.
46077         * lib/unictype/categ_Zp.h: Likewise.
46078         * lib/unictype/categ_Zs.h: Likewise.
46079         * lib/unictype/categ_of.h: Likewise.
46080         * lib/unictype/combining.h: Likewise.
46081         * lib/unictype/ctype_alnum.h: Likewise.
46082         * lib/unictype/ctype_alpha.h: Likewise.
46083         * lib/unictype/ctype_blank.h: Likewise.
46084         * lib/unictype/ctype_cntrl.h: Likewise.
46085         * lib/unictype/ctype_digit.h: Likewise.
46086         * lib/unictype/ctype_graph.h: Likewise.
46087         * lib/unictype/ctype_lower.h: Likewise.
46088         * lib/unictype/ctype_print.h: Likewise.
46089         * lib/unictype/ctype_punct.h: Likewise.
46090         * lib/unictype/ctype_space.h: Likewise.
46091         * lib/unictype/ctype_upper.h: Likewise.
46092         * lib/unictype/ctype_xdigit.h: Likewise.
46093         * lib/unictype/decdigit.h: Likewise.
46094         * lib/unictype/digit.h: Likewise.
46095         * lib/unictype/mirror.h: Likewise.
46096         * lib/unictype/numeric.h: Likewise.
46097         * lib/unictype/pr_alphabetic.h: Likewise.
46098         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46099         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46100         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46101         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46102         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46103         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46104         * lib/unictype/pr_bidi_control.h: Likewise.
46105         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46106         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46107         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46108         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46109         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46110         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46111         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46112         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46113         * lib/unictype/pr_bidi_pdf.h: Likewise.
46114         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46115         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46116         * lib/unictype/pr_combining.h: Likewise.
46117         * lib/unictype/pr_composite.h: Likewise.
46118         * lib/unictype/pr_currency_symbol.h: Likewise.
46119         * lib/unictype/pr_dash.h: Likewise.
46120         * lib/unictype/pr_decimal_digit.h: Likewise.
46121         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46122         * lib/unictype/pr_deprecated.h: Likewise.
46123         * lib/unictype/pr_diacritic.h: Likewise.
46124         * lib/unictype/pr_extender.h: Likewise.
46125         * lib/unictype/pr_format_control.h: Likewise.
46126         * lib/unictype/pr_grapheme_base.h: Likewise.
46127         * lib/unictype/pr_grapheme_extend.h: Likewise.
46128         * lib/unictype/pr_grapheme_link.h: Likewise.
46129         * lib/unictype/pr_hex_digit.h: Likewise.
46130         * lib/unictype/pr_hyphen.h: Likewise.
46131         * lib/unictype/pr_id_continue.h: Likewise.
46132         * lib/unictype/pr_id_start.h: Likewise.
46133         * lib/unictype/pr_ideographic.h: Likewise.
46134         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46135         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46136         * lib/unictype/pr_ignorable_control.h: Likewise.
46137         * lib/unictype/pr_iso_control.h: Likewise.
46138         * lib/unictype/pr_join_control.h: Likewise.
46139         * lib/unictype/pr_left_of_pair.h: Likewise.
46140         * lib/unictype/pr_line_separator.h: Likewise.
46141         * lib/unictype/pr_logical_order_exception.h: Likewise.
46142         * lib/unictype/pr_lowercase.h: Likewise.
46143         * lib/unictype/pr_math.h: Likewise.
46144         * lib/unictype/pr_non_break.h: Likewise.
46145         * lib/unictype/pr_not_a_character.h: Likewise.
46146         * lib/unictype/pr_numeric.h: Likewise.
46147         * lib/unictype/pr_other_alphabetic.h: Likewise.
46148         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46149         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46150         * lib/unictype/pr_other_id_continue.h: Likewise.
46151         * lib/unictype/pr_other_id_start.h: Likewise.
46152         * lib/unictype/pr_other_lowercase.h: Likewise.
46153         * lib/unictype/pr_other_math.h: Likewise.
46154         * lib/unictype/pr_other_uppercase.h: Likewise.
46155         * lib/unictype/pr_paired_punctuation.h: Likewise.
46156         * lib/unictype/pr_paragraph_separator.h: Likewise.
46157         * lib/unictype/pr_pattern_syntax.h: Likewise.
46158         * lib/unictype/pr_pattern_white_space.h: Likewise.
46159         * lib/unictype/pr_private_use.h: Likewise.
46160         * lib/unictype/pr_punctuation.h: Likewise.
46161         * lib/unictype/pr_quotation_mark.h: Likewise.
46162         * lib/unictype/pr_radical.h: Likewise.
46163         * lib/unictype/pr_sentence_terminal.h: Likewise.
46164         * lib/unictype/pr_soft_dotted.h: Likewise.
46165         * lib/unictype/pr_space.h: Likewise.
46166         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46167         * lib/unictype/pr_titlecase.h: Likewise.
46168         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46169         * lib/unictype/pr_unified_ideograph.h: Likewise.
46170         * lib/unictype/pr_uppercase.h: Likewise.
46171         * lib/unictype/pr_variation_selector.h: Likewise.
46172         * lib/unictype/pr_white_space.h: Likewise.
46173         * lib/unictype/pr_xid_continue.h: Likewise.
46174         * lib/unictype/pr_xid_start.h: Likewise.
46175         * lib/unictype/pr_zero_width.h: Likewise.
46176         * lib/unictype/scripts.h: Likewise.
46177         * lib/unictype/scripts_byname.gperf: Likewise.
46178         * lib/unictype/sy_c_ident.h: Likewise.
46179         * lib/unictype/sy_c_whitespace.h: Likewise.
46180         * lib/unictype/sy_java_ident.h: Likewise.
46181         * lib/unictype/sy_java_whitespace.h: Likewise.
46182
46183         * lib/unictype/Makefile: New file.
46184         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46185         glibc.
46186         * lib/unictype/3level.h: New file, copied from glibc.
46187         * lib/unictype/3levelbit.h: New file.
46188
46189 2007-11-11  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/gperf: New file.
46192         * modules/iconv_open (Depends-on): Add it.
46193         (Makefile.am): Remove the GPERF definition.
46194
46195 2007-11-11  Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46198         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46199
46200 2007-11-11  Bruno Haible  <bruno@clisp.org>
46201
46202         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46203         (usage): Remove function.
46204
46205 2007-11-11  Bruno Haible  <bruno@clisp.org>
46206
46207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46208         gl_FUNC_CEILF_LIBS.
46209         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46210         gl_FUNC_CEIL_LIBS.
46211         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46212         gl_FUNC_CEILL_LIBS.
46213         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46214         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46215         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46216
46217 2007-11-11  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46220         roundf were declared but do not exist on functions.
46221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46222         roundl were declared but do not exist on functions.
46223         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46224         HAVE_FLOORL_AND_CEILL, respectively.
46225         Needed for Sun C on Solaris 10.
46226
46227 2007-11-11  Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46230         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46231         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46232         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46233         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46234         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46235         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46236         HAVE_DECL_ROUNDF.
46237         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46238         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46240         of HAVE_DECL_ROUND*.
46241         * modules/math (Makefile.am): Update.
46242
46243 2007-11-10  Bruno Haible  <bruno@clisp.org>
46244
46245         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46246         ptrdiff_t as m4/intl.m4.
46247
46248 2007-11-10  Jim Meyering  <meyering@redhat.com>
46249
46250         Avoid link failure for the argmatch test.
46251         * tests/test-argmatch.c (usage): Define function to avoid a link
46252         failure: argmatch_die requires a usage function.
46253
46254 2007-11-09  Bruno Haible  <bruno@clisp.org>
46255
46256         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46257         * doc/functions/vsnprintf.texi: Likewise.
46258         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46259         with a size argument < 2.
46260
46261 2007-11-09  Bruno Haible  <bruno@clisp.org>
46262
46263         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46264         buffer. Fixes an inefficiency introduced on 2007-11-03.
46265
46266 2007-11-09  Bruno Haible  <bruno@clisp.org>
46267
46268         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46269         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46270
46271 2007-11-08  Jim Meyering  <meyering@redhat.com>
46272
46273         Change cache variable name prefix "jm_" to "gl_" everywhere.
46274         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46275         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46276         * m4/uptime.m4: s/gl_/jm_/
46277
46278 2007-11-07  Bruno Haible  <bruno@clisp.org>
46279
46280         Update to GNU gettext 0.17.
46281         * m4/intl.m4: Update to GNU gettext 0.17.
46282         * m4/po.m4: Likewise.
46283         * modules/gettext (Files): Remove m4/ulonglong.m4.
46284         (configure.ac): Require gettext infrastructure from version 0.17.
46285
46286 2007-11-06  Bruno Haible  <bruno@clisp.org>
46287
46288         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46289         symbolic values are not defined in a public header.
46290         * lib/freadable.c (freadable) [QNX]: Likewise.
46291         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46292         * lib/freading.c (freading) [QNX]: Likewise.
46293         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46294         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46295         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46296         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46297         Reported by Alain Magloire.
46298
46299         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46300
46301 2007-11-05  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46304         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46305         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46306         Reported by Eric Blake.
46307
46308 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46309             Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46312         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46313         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46314         (malloc): Undefine also before including <stdlib.h>.
46315         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46316         Needed on OSF/1 4.0.
46317
46318 2007-11-05  Jim Meyering  <meyering@redhat.com>
46319
46320         git-version-gen: sync from coreutils.
46321         * build-aux/git-version-gen: Add comments.
46322         Change the first '-' to '.' in the snapshot version string,
46323         e.g., 6.9-377-08144 -> 6.9.377-08144
46324         Remove first parameter.
46325         Don't declare a version "-dirty" merely because a time
46326         stamp has changed.
46327
46328 2007-11-04  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/lock.h: Protect all macro definitions containing an 'if'
46331         statement through a "do { ... } while (0)".
46332         * lib/tls.h: Likewise.
46333
46334 2007-11-04  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46337
46338 2007-11-04  Bruno Haible  <bruno@clisp.org>
46339
46340         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46341         * modules/fprintf-posix (Depends-on): Add nocrash.
46342         * modules/snprintf-posix (Depends-on): Likewise.
46343         * modules/sprintf-posix (Depends-on): Likewise.
46344         * modules/vasnprintf-posix (Depends-on): Likewise.
46345         * modules/vasprintf-posix (Depends-on): Likewise.
46346         * modules/vfprintf-posix (Depends-on): Likewise.
46347         * modules/vsnprintf-posix (Depends-on): Likewise.
46348         * modules/vsprintf-posix (Depends-on): Likewise.
46349         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46356
46357 2007-11-04  Bruno Haible  <bruno@clisp.org>
46358
46359         * modules/nocrash: New file.
46360         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46361         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46362
46363 2007-11-04  Bruno Haible  <bruno@clisp.org>
46364
46365         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46366         precision handling.
46367         * tests/test-vasprintf-posix.c (test_function): Likewise.
46368         * tests/test-snprintf-posix.h (test_function): Likewise.
46369         * tests/test-sprintf-posix.h (test_function): Likewise.
46370
46371         Fix *printf behaviour for large precisions on mingw and BeOS.
46372         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46373         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46375         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46377         gl_PRINTF_PRECISION and test its result. Invoke
46378         gl_PREREQ_VASNPRINTF_PRECISION.
46379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46383         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46386         * doc/functions/fprintf.texi: Update.
46387         * doc/functions/printf.texi: Update.
46388         * doc/functions/snprintf.texi: Update.
46389         * doc/functions/sprintf.texi: Update.
46390         * doc/functions/vfprintf.texi: Update.
46391         * doc/functions/vprintf.texi: Update.
46392         * doc/functions/vsnprintf.texi: Update.
46393         * doc/functions/vsprintf.texi: Update.
46394
46395 2007-11-04  Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46398
46399 2007-11-04  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46402         Reported by Sylvain Beucler <beuc@gnu.org>.
46403
46404 2007-11-03  Bruno Haible  <bruno@clisp.org>
46405
46406         * tests/test-fprintf-posix2.sh: New file.
46407         * tests/test-fprintf-posix2.c: New file.
46408         * modules/fprintf-posix-tests (Files): Add them.
46409         (TESTS): Add test-fprintf-posix2.sh.
46410         (configure.ac): Check for getrlimit and setrlimit.
46411         (check_PROGRAMS): Add test-fprintf-posix2.
46412
46413         * tests/test-printf-posix2.sh: New file.
46414         * tests/test-printf-posix2.c: New file.
46415         * modules/printf-posix-tests (Files): Add them.
46416         (TESTS): Add test-printf-posix2.sh.
46417         (configure.ac): Check for getrlimit and setrlimit.
46418         (check_PROGRAMS): Add test-printf-posix2.
46419
46420         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46421         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46422         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46423         (decode_double): New function, copied from decode_long_double.
46424         (scale10_round_decimal_decoded): New function, extracted from
46425         scale10_round_decimal_long_double.
46426         (scale10_round_decimal_long_double): Use it.
46427         (scale10_round_decimal_double): New function.
46428         (floorlog10): New function.
46429         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46431         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46433         gl_PRINTF_ENOMEM and test its result. Invoke
46434         gl_PREREQ_VASNPRINTF_ENOMEM.
46435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46442         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46443         * modules/snprintf-posix (Depends-on): Likewise.
46444         * modules/sprintf-posix (Depends-on): Likewise.
46445         * modules/vasnprintf-posix (Depends-on): Likewise.
46446         * modules/vasprintf-posix (Depends-on): Likewise.
46447         * modules/vfprintf-posix (Depends-on): Likewise.
46448         * modules/vsnprintf-posix (Depends-on): Likewise.
46449         * modules/vsprintf-posix (Depends-on): Likewise.
46450         * doc/functions/fprintf.texi: Update.
46451         * doc/functions/printf.texi: Update.
46452         * doc/functions/snprintf.texi: Update.
46453         * doc/functions/sprintf.texi: Update.
46454         * doc/functions/vfprintf.texi: Update.
46455         * doc/functions/vprintf.texi: Update.
46456         * doc/functions/vsnprintf.texi: Update.
46457         * doc/functions/vsprintf.texi: Update.
46458
46459 2007-11-03  Bruno Haible  <bruno@clisp.org>
46460
46461         * modules/frexp-nolibm-tests: New file.
46462
46463         * modules/frexp-nolibm: New file.
46464         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46465
46466 2007-11-03  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46469         value is C99 compliant.
46470         Needed for OSF/1 5.1.
46471
46472 2007-11-03  Bruno Haible  <bruno@clisp.org>
46473
46474         Fix out-of-memory handling of vasnprintf.
46475         * lib/printf-parse.c: Include <errno.h>.
46476         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46477         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46478         is already set.
46479
46480 2007-11-02  Eric Blake  <ebb9@byu.net>
46481
46482         Fix tests on cygwin.
46483         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46484
46485 2007-11-01  Bruno Haible  <bruno@clisp.org>
46486
46487         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46488         warning.
46489         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46490         needed for POSIX compatibility.
46491
46492 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46495         for compatibility with GNU.
46496
46497 2007-11-01  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46500         (putenv): Renamed from rpl_putenv. Change argument type from
46501         'const char *' to 'char *'.
46502         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46503         of defining putenv in config.h, just set REPLACE_PUTENV.
46504         * modules/putenv (Depends-on): Add stdlib.
46505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46506         (Include): Use <stdlib.h>.
46507         * lib/stdlib.in.h (putenv): New declaration.
46508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46509         REPLACE_PUTENV.
46510         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46511         REPLACE_PUTENV.
46512         Needed for MacOS X 10.5.0.
46513         Reported by Peter O'Gorman <peter@pogma.com>.
46514
46515 2007-11-01  Jim Meyering  <meyering@redhat.com>
46516
46517         Treat an empty date string exactly like "0".
46518         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46519         if the remaining date string (to be parsed) is empty, use "0".
46520         Reported by Mischa Molhoek and discussed in this thread:
46521         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46522
46523 2007-10-31  Bruno Haible  <bruno@clisp.org>
46524
46525         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46526         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46527         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46528         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46529         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46530         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46531
46532 2007-10-31  Bruno Haible  <bruno@clisp.org>
46533
46534         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46535         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46536         (AC_TYPE_LONG_LONG_INT): Use it.
46537         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46538         it as well.
46539         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46540         to m4/longlong.m4.
46541         * modules/stdint (Files): Remove m4/ulonglong.m4.
46542         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46543         m4/ulonglong.m4.
46544         * modules/strtoumax (Files): Likewise.
46545
46546 2007-10-30  Bruno Haible  <bruno@clisp.org>
46547
46548         * modules/xvasprintf-posix: New file.
46549         Suggested by Eric Blake.
46550
46551 2007-10-30  Bruno Haible  <bruno@clisp.org>
46552
46553         * modules/xprintf-posix-tests: New file.
46554         * tests/test-xprintf-posix.sh: New file.
46555         * tests/test-xprintf-posix.c: New file.
46556         * tests/test-xfprintf-posix.c: New file.
46557
46558         * modules/xprintf-posix: New file.
46559
46560 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46561
46562         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46563         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46564         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46565
46566 2007-10-29  Bruno Haible  <bruno@clisp.org>
46567
46568         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46569         contain the special marker '_cv_'.
46570         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46571         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46572         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46573         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46574         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46575         Reported by Ralf Wildenhues.
46576
46577 2007-10-29  Bruno Haible  <bruno@clisp.org>
46578
46579         * gnulib-tool (func_import): When --lgpl is not specified, set
46580         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46581         GPLv3.
46582         Reported by Simon Josefsson.
46583
46584 2007-10-28  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46587         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46588         HAVE_DECL_ISFINITE.
46589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46590         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46591         HAVE_DECL_ISFINITE.
46592
46593 2007-10-28  Bruno Haible  <bruno@clisp.org>
46594
46595         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46596         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46597
46598 2007-10-28  Bruno Haible  <bruno@clisp.org>
46599
46600         Fix link errors with Sun C 5.0 on Solaris 10.
46601         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46602         function is declared but not present in the compiler's libm.
46603         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46604         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46605         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46606         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46607         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46608         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46609         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46611         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46612         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46613         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46614         HAVE_DECL_FLOORL.
46615
46616 2007-10-28  Bruno Haible  <bruno@clisp.org>
46617
46618         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46619         gl_FUNC_FLOORL. Cache the result.
46620         (gl_FUNC_FLOORL): Use it.
46621         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46622         gl_FUNC_CEILL. Cache the result.
46623         (gl_FUNC_CEILL): Use it.
46624
46625         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46626         gl_FUNC_FLOOR. Cache the result.
46627         (gl_FUNC_FLOOR): Use it.
46628         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46629         gl_FUNC_CEIL. Cache the result.
46630         (gl_FUNC_CEIL): Use it.
46631
46632         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46633         gl_FUNC_FLOORF. Cache the result.
46634         (gl_FUNC_FLOORF): Use it.
46635         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46636         gl_FUNC_CEILF. Cache the result.
46637         (gl_FUNC_CEILF): Use it.
46638
46639 2007-10-28  Bruno Haible  <bruno@clisp.org>
46640
46641         * gnulib-tool: Allow specifying the LGPL version number through
46642         --lgpl=2 or --lgpl=3.
46643         (func_usage): Document --lgpl with argument.
46644         Handle --lgpl=... arguments.
46645         (func_import): Recognize also gl_LGPL calls with an argument. When
46646         --lgpl=2 is used and the module's license is just LGPL, report an
46647         error. Set sed_transform_lib_file according to the lgpl variable. In
46648         the generated files, use --lgpl or gl_LGPL invocations with argument,
46649         if necessary.
46650         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46651         an LGPv2+ license.
46652         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46653         gl_LGPL macro.
46654
46655 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46656             Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46659         (u16_uctomb_aux): Likewise.
46660         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46661         !HAVE_INLINE.
46662         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46663
46664 2007-10-28  Bruno Haible  <bruno@clisp.org>
46665
46666         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46667         Invoke AM_GETTEXT_OPTION if it exists.
46668         * modules/vasprintf: Likewise.
46669         * modules/verror: Likewise.
46670         * modules/xprintf: Likewise.
46671         * modules/xvasprintf: Likewise.
46672
46673 2007-10-27  Ben Pfaff  <blp@gnu.org>
46674
46675         * lib/math.in.h: Define isfinite macro and prototypes for
46676         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46677         implementations.
46678         * m4/math_h.m4: New substitutions for isfinite module.
46679         * lib/isfinite.c: New file.
46680         * m4/isfinite.m4: New file.
46681         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46682         * modules/isfinite: New file.
46683         * modules/isfinite-tests: New file.
46684         * tests/tests-isfinite.c: New file.
46685         * doc/functions/isfinite.texi: Mention isfinite module.
46686         * MODULES.html.sh: Mention new module.
46687
46688 2007-10-27  Ben Pfaff  <blp@gnu.org>
46689
46690         Ralf Wildenhues reported that Tru64 4.0D declares the round
46691         functions but does not have definitions.
46692         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46693         cannot be found in any library, set the output variable to
46694         "missing" instead of "".
46695         * m4/round.m4: Also use our substitute if we cannot find round in
46696         any library, even if it is declared.
46697         * m4/roundf.m4: Likewise for roundf.
46698         * m4/roundl.m4: Likewise for roundl.
46699         * lib/math.in.h: Undefine roundf, round, roundl before defining
46700         their replacements, to allow for hypothetical systems where these
46701         may be defined as macros but not available in libraries.
46702
46703 2007-10-27  Bruno Haible  <bruno@clisp.org>
46704
46705         * doc/gnulib.texi: Invoke @firstparagraphindent.
46706         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46707         changes in gnulib.
46708         (Source changes): New section.
46709
46710 2007-10-26  Bruno Haible  <bruno@clisp.org>
46711
46712         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46713         borrowed from autoconf.
46714
46715 2007-10-26  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46718         strerror returned the empty string. Needed on HP-UX 11.00.
46719
46720 2007-10-24  Micah Cowan  <micah@cowan.name>
46721
46722         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46723         * build-aux/bootstrap: Remove support for now-unnecessary option,
46724         --cvs-user, and envvars CVS_USER, CVS_RSH.
46725
46726 2007-10-24  Jim Meyering  <meyering@redhat.com>
46727
46728         Avoid diagnostics from sha1sum when there is no cached checksum.
46729         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46730         if the po.s1 file hasn't been created yet.
46731
46732         * build-aux/bootstrap: Sync from coreutils:
46733         2007-10-24  Jim Meyering  <meyering@redhat.com>
46734         Get gnulib from the git repository, not from an obsolete cvs one.
46735         * build-aux/bootstrap: Suggestion from Micah Cowan.
46736         2007-10-04  Jim Meyering  <jim@meyering.net>
46737         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46738         (update_po_files): Work also when there are no .po files in po/.
46739
46740 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46741
46742         * README: Append ".git" to git and cg examples.
46743         Problem reported by Benoit Sigoure.
46744
46745 2007-10-23  Micah Cowan  <micah@cowan.name>
46746
46747         * users.txt: Add wget.
46748
46749 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46750
46751         Fix linking of some unistdio tests on FreeBSD.
46752         * modules/unistdio/u16-vsnprintf-tests
46753         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46754         * modules/unistdio/u16-vsprintf-tests
46755         (test_u16_vsnprintf1_LDADD): Likewise.
46756         * modules/unistdio/u32-vsnprintf-tests
46757         (test_u32_vsnprintf1_LDADD): Likewise.
46758         * modules/unistdio/u32-vsprintf-tests
46759         (test_u32_vsprintf1_LDADD): Likewise.
46760         * modules/unistdio/u8-vsnprintf-tests
46761         (test_u8_vsnprintf1_LDADD): Likewise.
46762         * modules/unistdio/u8-vsprintf-tests
46763         (test_u8_vsprintf1_LDADD): Likewise.
46764         * modules/unistdio/ulc-vsnprintf-tests
46765         (test_ulc_vsnprintf1_LDADD): Likewise.
46766         * modules/unistdio/ulc-vsprintf-tests
46767         (test_ulc_vsprintf1_LDADD): Likewise.
46768
46769         Fix linking of some uniconv tests on FreeBSD.
46770         * modules/uniconv/u16-conv-from-enc-tests
46771         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46772         * modules/uniconv/u16-conv-to-enc-tests
46773         (test_u16_conv_to_enc_LDADD): Likewise.
46774         * modules/uniconv/u16-strconv-from-enc-tests
46775         (test_u16_strconv_from_enc_LDADD): Likewise.
46776         * modules/uniconv/u16-strconv-to-enc-tests
46777         (test_u16_strconv_to_enc_LDADD): Likewise.
46778         * modules/uniconv/u32-conv-from-enc-tests
46779         (test_u32_conv_from_enc_LDADD): Likewise.
46780         * modules/uniconv/u32-conv-to-enc-tests
46781         (test_u32_conv_to_enc_LDADD): Likewise.
46782         * modules/uniconv/u32-strconv-from-enc-tests
46783         (test_u32_strconv_from_enc_LDADD): Likewise.
46784         * modules/uniconv/u32-strconv-to-enc-tests
46785         (test_u32_strconv_to_enc_LDADD): Likewise.
46786         * modules/uniconv/u8-conv-from-enc-tests
46787         (test_u8_conv_from_enc_LDADD): Likewise.
46788         * modules/uniconv/u8-conv-to-enc-tests
46789         (test_u8_conv_to_enc_LDADD): Likewise.
46790         * modules/uniconv/u8-strconv-from-enc-tests
46791         (test_u8_strconv_from_enc_LDADD): Likewise.
46792         * modules/uniconv/u8-strconv-to-enc-tests
46793         (test_u8_strconv_to_enc_LDADD): Likewise.
46794
46795 2007-10-22  Bruno Haible  <bruno@clisp.org>
46796
46797         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46798         size.
46799
46800 2007-10-22  Eric Blake  <ebb9@byu.net>
46801
46802         Tweak x*printf documentation.
46803         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46804         variable name and comments.
46805         Suggested by Bruno Haible.
46806
46807 2007-10-22  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/acl.c (copy_acl): Fix file name in comment.
46810
46811 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46812
46813         Fix Tru64 problem with stdbool.h.
46814         * lib/stdbool.in.h (false, true):
46815         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46816         Don't declare as an enum in this situation; it runs afoul of Tru64.
46817         Problem reported by Steven M. Schweda in
46818         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46819
46820 2007-10-22  Eric Blake  <ebb9@byu.net>
46821
46822         Also wrap vf?printf.
46823         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46824         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46825         (xvprintf, xvfprintf): New functions.
46826
46827 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46828
46829         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46830         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46831
46832         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46833         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46834
46835 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46836
46837         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46838         by Bruno Haible.
46839
46840 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46841
46842         * lib/getloadavg.c
46843         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46844         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46845
46846         * tests/test-i-ring.c: Work for C89.
46847
46848 2007-10-22  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46851         -1u, in preprocessor expression, so that we don't test for the bug
46852         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46853         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46854
46855 2007-10-22  Eric Blake  <ebb9@byu.net>
46856
46857         * tests/test-yesno.sh: Silence stderr during test.
46858
46859 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46860
46861         * modules/crypto/gc-camellia: New file.
46862
46863         * m4/gc-camellia.m4: New file.
46864
46865         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46866
46867         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46868
46869 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46870
46871         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46872         --help to stdout.  Reported by sms@antinode.org (Steven
46873         M. Schweda).
46874
46875 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46876
46877         * users.txt: Fix link to libksba.
46878
46879 2007-10-21  Ben Pfaff  <blp@gnu.org>
46880
46881         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46882         round.c roundf implementation that depends on floorf and ceilf to
46883         be tested unconditionally.
46884
46885 2007-10-21  Ben Pfaff  <blp@gnu.org>
46886
46887         * m4/check-libm-func.m4: Removed.
46888         * m4/check-math-lib.m4: New file.
46889         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46890         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46891         definition and lack of AC_LIBOBJ([roundf]).
46892         * m4/roundl.m4: Ditto, and similarly for roundl.
46893         * modules/round: Reference new m4 file.
46894         * modules/roundf: Ditto.
46895         * modules/roundl: Ditto.
46896         * tests/test-round2.c (main): Use ROUND instead of round.
46897         Bug report from Bruno Haible.
46898
46899 2007-10-21  Bruno Haible  <bruno@clisp.org>
46900
46901         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46902         context.
46903
46904 2007-10-21  Bruno Haible  <bruno@clisp.org>
46905
46906         * tests/test-wcwidth.c (main): Allow negative result for some control
46907         characters.
46908
46909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46910         Needed on OSF/1 5.1.
46911
46912 2007-10-21  Bruno Haible  <bruno@clisp.org>
46913
46914         * tests/test-floorf1.c: Include isnanf.h.
46915         (main): Use isnanf() instead of isnan().
46916         * tests/test-ceilf1.c: Include isnanf.h.
46917         (main): Use isnanf() instead of isnan().
46918         * tests/test-truncf1.c: Include isnanf.h.
46919         (main): Use isnanf() instead of isnan().
46920         * tests/test-roundf1.c: Include isnanf.h.
46921         (main): Use isnanf() instead of isnan().
46922
46923 2007-10-21  Eric Blake  <ebb9@byu.net>
46924
46925         * users.txt: Update URL for m4.
46926
46927 2007-10-21  Bruno Haible  <bruno@clisp.org>
46928
46929         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46930
46931 2007-10-21  Bruno Haible  <bruno@clisp.org>
46932
46933         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46934         Git's management files if the CVS files are not present.
46935
46936 2007-10-20  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46939         gcc-3.4.x.
46940
46941 2007-10-20  Ben Pfaff  <blp@gnu.org>
46942
46943         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46944         implementations.
46945         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46946         * lib/round.c: New file.
46947         * lib/roundf.c: New file.
46948         * lib/roundl.c: New file.
46949         * m4/round.m4: New file.
46950         * m4/roundf.m4: New file.
46951         * m4/roundl.m4: New file.
46952         * m4/check-libm-func-m4: New file.
46953         * modules/math: Replace round, roundf, roundl related @VARS@ in
46954         math.in.h.
46955         * modules/round: New file.
46956         * modules/round-tests: New file.
46957         * modules/roundf: New file.
46958         * modules/roundf-tests: New file.
46959         * modules/roundl: New file.
46960         * modules/roundl-tests: New file.
46961         * tests/test-round1.c: New file.
46962         * tests/test-round2.c: New file.
46963         * tests/test-roundf1.c: New file.
46964         * tests/test-roundf2.c: New file.
46965         * tests/test-roundl.c: New file.
46966         * doc/functions/round.texi: Mention round module.
46967         * doc/functions/roundf.texi: Mention roundf module.
46968         * doc/functions/roundl.texi: Mention roundl module.
46969         * MODULES.html.sh: Mention new modules.
46970         Thanks to Bruno Haible for suggestions.
46971
46972 2007-10-20  Jim Meyering  <meyering@redhat.com>
46973
46974         * lib/xprintf.c: Include <config.h> unconditionally.
46975
46976         Change xprintf's license to GPL.
46977         * modules/xprintf (License): s/LGPL/GPL/, since this module
46978         depends on modules (exit and exitfail) which are GPL.
46979         Suggestion from Bruno Haible.
46980
46981         xprintf fixes.
46982         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46983         Use a clearer diagnostic.
46984         Patch from Bruno Haible.
46985
46986 2007-10-20  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46989         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46991
46992 2007-10-20  Bruno Haible  <bruno@clisp.org>
46993
46994         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46995         precision in the comparison result > x - 1 or similar.
46996         * tests/test-ceilf2.c (correct_result_p): Likewise.
46997         * tests/test-truncf2.c (correct_result_p): Likewise.
46998         * tests/test-trunc2.c (correct_result_p): Likewise.
46999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47000
47001 2007-10-20  Bruno Haible  <bruno@clisp.org>
47002
47003         * modules/ceil: New file.
47004         * m4/ceil.m4: New file.
47005         * doc/functions/ceil.texi: Mention the 'ceil' module.
47006
47007 2007-10-20  Bruno Haible  <bruno@clisp.org>
47008
47009         * modules/floor: New file.
47010         * m4/floor.m4: New file.
47011         * doc/functions/floor.texi: Mention the 'floor' module.
47012
47013 2007-10-20  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47016         of %a.
47017         * modules/floorf-tests (Depends-on): Likewise.
47018         * modules/truncf-tests (Depends-on): Likewise.
47019         * modules/trunc-tests (Depends-on): Likewise.
47020         Reported by Ben Pfaff.
47021
47022 2007-10-19  Jim Meyering  <meyering@redhat.com>
47023
47024         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47025         Don't bother testing specific errno values.  Just test ferror.
47026
47027         New module: xprintf
47028         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47029
47030 2007-10-19  Bruno Haible  <bruno@clisp.org>
47031
47032         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47033         syntax.
47034         * modules/javaexec (Makefile.am): Likewise.
47035         * modules/relocatable-prog (Makefile.am): Likewise.
47036         Suggested by Jim Meyering.
47037
47038 2007-10-18  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47041         Reported by Jim Meyering.
47042
47043 2007-10-18  Eric Blake  <ebb9@byu.net>
47044
47045         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47046
47047 2007-10-18  Bruno Haible  <bruno@clisp.org>
47048
47049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47050         the format string into writable memory. Needed in Fortify conditions.
47051
47052 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47053             Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47056         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47057         * modules/trim (Depends-on): Add mbchar.
47058         (configure.ac): Add gl_FUNC_MBRTOWC.
47059         (Makefile.am): Augment lib_SOURCES.
47060
47061 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47062
47063         Modify glob.c to use fstatat and dirfd, to simplify it.
47064         Suggested by Eric Blake.
47065         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47066         Don't include <stdbool.h>; not used.
47067         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47068         (link_exists_p): Simplify implementation, since we can now assume
47069         dirfd and fstatat.
47070         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47071
47072 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47073
47074         * gnulib-tool (func_get_dependencies): Fix sed script to
47075         match only tests.
47076
47077 2007-10-17  Bruno Haible  <bruno@clisp.org>
47078
47079         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47080         allow locale names without encoding suffix.
47081         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47082         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47083
47084 2007-10-16  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47087         * lib/getgroups.c (getgroups): Likewise.
47088         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47089
47090 2007-10-16  Bruno Haible  <bruno@clisp.org>
47091
47092         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47093         * modules/malloc-posix (License): Likewise.
47094         * modules/realloc-posix (License): Likewise.
47095         * modules/calloc-posix (License): Likewise.
47096         * modules/intprops (License): Change from GPL to LGPL, with
47097         Paul Eggert's approval.
47098
47099 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         Merge glibc changes into lib/glob.c.
47102
47103         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47104         2007-10-15 04:59:03 UTC.  Here are the changes:
47105
47106         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47107
47108         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47109
47110         * lib/glob.c: Add some branch prediction throughout.
47111
47112         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47113
47114         [BZ #5103]
47115         * lib/glob.c (glob): Recognize patterns starting \/.
47116
47117         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47118
47119         [BZ #3996]
47120         * lib/glob.c (attribute_hidden): Define if not defined.
47121         (glob): Unescape dirname, filename or username when needed and not
47122         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47123         is NULL.  Handle unescaped [ in pattern without closing ].
47124         Don't pass GLOB_CHECK down to recursive glob for directories.
47125         (__glob_pattern_type): New function.
47126         (__glob_pattern_p): Implement using __glob_pattern_type.
47127         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47128         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47129         Remove unreachable code.
47130
47131         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47132
47133         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47134         explain why there are no leaks.
47135
47136         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47137
47138         [BZ #3253]
47139         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47140         time, rather allocate increasingly bigger arrays of pointers, if
47141         possible with alloca, if too large with malloc.
47142
47143 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47144
47145         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47146         Problem reported by H.Merijn Brand in
47147         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47149         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47150
47151 2007-10-15  Bruno Haible  <bruno@clisp.org>
47152
47153         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47154         with explicit rpl_ prefix.
47155         * lib/fopen.c (fopen): Likewise.
47156         * lib/freopen.c (freopen): Likewise.
47157         * lib/iconv.c (iconv): Likewise.
47158         * lib/iconv_close.c (iconv_close): Likewise.
47159
47160 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47161
47162         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47163
47164 2007-10-15  Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47167         <stddef.h> instead of <stdlib.h> since we only need NULL.
47168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47169
47170 2007-10-15  Bruno Haible  <bruno@clisp.org>
47171
47172         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47173         Replace paragraph talking about LIBOBJS.
47174         Reported by Colin Watson <cjwatson@debian.org>.
47175
47176 2007-10-15  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47179         <stdlib.h> before using NULL.
47180
47181 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47182
47183         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47184         Reported by Albert Chin <china@thewrittenword.com>.
47185
47186 2007-10-14  Bruno Haible  <bruno@clisp.org>
47187
47188         * modules/iconv_open-utf-tests: New file.
47189         * tests/test-iconv-utf.c: New file.
47190
47191         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47192         * modules/iconv_open-utf: New file.
47193         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47194         (iconv, iconv_close): New declarations.
47195         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47196         be defined.
47197         (iconv_open): Add special handling of conversion between UTF-8 and
47198         UTF-{16,32}{BE,LE}.
47199         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47200         * lib/iconv_close.c: New file.
47201         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47202         gl_FUNC_ICONV_OPEN.
47203         (gl_FUNC_ICONV_OPEN): Use it.
47204         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47205         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47206         and REPLACE_ICONV_UTF.
47207         * modules/iconv_open (Depends-on): Add c-strcase.
47208         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47209         ICONV_CONST.
47210         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47211
47212 2007-10-13  Albert Chin  <china@thewrittenword.com>
47213             Bruno Haible  <bruno@clisp.org>
47214
47215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47216         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47217
47218 2007-10-13  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47221         defined, use the ISO C99 inline semantics.
47222         * lib/argp.h (ARGP_EI): Likewise.
47223
47224 2007-10-13  Bruno Haible  <bruno@clisp.org>
47225
47226         Handle 'inline' change in gcc 4.3.0.
47227         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47228         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47229         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47230         argp_fmtstream_point): Disable 'extern' declaration if the function
47231         definition is going to be provided inline.
47232         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47233         semantics, not the ISO C99 inline semantics.
47234         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47235         'extern' declaration if the function definition is going to be provided
47236         inline.
47237         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47238         the GNU C inline semantics, not the ISO C99 inline semantics. With
47239         GCC 4.2, avoid a warning.
47240
47241 2007-10-13  Bruno Haible  <bruno@clisp.org>
47242
47243         * lib/freading.h (freading): Enable the use of __freading for
47244         glibc >= 2.7.
47245         * lib/freading.c (freading): Likewise.
47246
47247 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47248
47249         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47250         "warning: C99 inline functions are not supported; using GNU89".
47251
47252 2007-10-12  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47255         of 2.
47256         * tests/test-ceilf2.c: New file.
47257         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47258
47259         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47260         * modules/ceilf-tests: Update.
47261
47262 2007-10-12  Bruno Haible  <bruno@clisp.org>
47263
47264         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47265         of 2.
47266         * tests/test-floorf2.c: New file.
47267         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47268
47269         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47270         * modules/floorf-tests: Update.
47271
47272 2007-10-12  Bruno Haible  <bruno@clisp.org>
47273
47274         * tests/test-trunc2.c: New file.
47275         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47276
47277         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47278         * modules/trunc-tests: Update.
47279
47280 2007-10-12  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47283         of 2.
47284         * tests/test-truncf2.c: New file.
47285         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47286
47287         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47288         * modules/truncf-tests: Update.
47289
47290 2007-10-11  Eric Blake  <ebb9@byu.net>
47291
47292         Don't claim strerror is broken on Interix.
47293         * doc/functions/strerror.texi (strerror): Known broken systems are
47294         now Solaris 8, and not Interix.
47295         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47296         Interix on cross-compile.
47297         Reported by Martin Koeppe in
47298         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47299
47300 2007-10-11  Bruno Haible  <bruno@clisp.org>
47301
47302         * modules/i-ring-tests: New file.
47303         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47304         instead of assert.
47305
47306 2007-10-11  Bruno Haible  <bruno@clisp.org>
47307
47308         * modules/filenamecat-tests: New file.
47309         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47310         * lib/filenamecat.c: Remove test code.
47311
47312 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47313
47314         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47315
47316         * lib/strerror.c: Include <string.h> always, to test interface,
47317         and to remove the need for the dummy.
47318         Include intprops.h to compute width instead of doing it ourselves
47319         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47320         (strerror): Define it to return NULL if there's no system strerror.
47321         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47322         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47323         ancient pre-strerror Unix systems well any more.  Saying "unknown
47324         system error" is enough.
47325         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47326         simpler strerror.c implementation.
47327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47328         Simplify the tests to reflect the simpler strerror implementation.
47329         * modules/strerror (Depends-on): Add intprops.
47330
47331 2007-10-09  Eric Blake  <ebb9@byu.net>
47332
47333         Silence test-fpending.
47334         * modules/fpending-tests (Files): Add wrapper script.
47335         * tests/test-fpending.sh: New file.
47336
47337 2007-10-09  Bruno Haible  <bruno@clisp.org>
47338
47339         * MODULES.html.sh (func_module): Don't create a hyperlink for
47340         function names like 'printf_frexp'.
47341         (Misc): Add crc, memxor.
47342         (Characteristics of floating types): New section.
47343         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47344         isnanf-nolibm, signbit, trunc, truncf, truncl.
47345         (Enhancements for ISO C 99 functions): New subsection Input/output.
47346         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47347         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47348         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47349         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47350         (Enhancements for POSIX:2001 functions): Add chdir-long.
47351         (File system functions): Add areadlink, chdir-safer, read-file.
47352         Remove cycle-check.
47353         (File system as inode set): New section.
47354         (Date and time): Add gethrxtime.
47355         (Multithreading): Add openmp.
47356         (Internationalization functions): Add localename.
47357         (Unicode string functions): Add unistr/u*-mbsnlen.
47358         (Support for maintaining and releasing projects): Add git-version-gen.
47359         (Lone files): Remove directories.
47360
47361 2007-10-08  Ben Pfaff  <blp@gnu.org>
47362
47363         * lib/xmalloca.h: Fix typo in comment.
47364
47365 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47366
47367         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47368         when avoiding problems with integer overflow.  Use a portable test
47369         instead.
47370
47371 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47372
47373         * modules/dummy (License): Change to LGPLv2+.
47374         * modules/float (License): Likewise
47375         * modules/realloc (License): Likewise
47376         * modules/stdlib (License): Likewise
47377
47378 2007-10-07  Bruno Haible  <bruno@clisp.org>
47379
47380         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47381         * floor.c (TWO_MANT_DIG): Likewise.
47382         * ceil.c (TWO_MANT_DIG): Likewise.
47383         Reported by Ben Pfaff.
47384
47385 2007-10-07  Bruno Haible  <bruno@clisp.org>
47386
47387         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47388         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47389         * lib/frexp.c (FUNC): Likewise.
47390         * lib/printf-frexp.h (printf_frexp): Likewise.
47391         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47392         * lib/printf-frexp.c (FUNC): Likewise.
47393         Suggested by Jim Meyering.
47394
47395 2007-10-07  Jim Meyering  <meyering@redhat.com>
47396
47397         Make xnanosleep's integer overflow test more robust.
47398         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47399         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47400
47401 2007-10-07  Bruno Haible  <bruno@clisp.org>
47402
47403         * NEWS: Mention the license change.
47404
47405         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47406         abbreviations in the modules files.
47407
47408         Change copyright notice from GPLv2+ to GPLv3+.
47409         * README: Change copyright notice.
47410         * MODULES.html.sh: Likewise.
47411         * build-aux/bootstrap.conf: Likewise.
47412         * build-aux/config.libpath: Likewise.
47413         * build-aux/csharpcomp.sh.in: Likewise.
47414         * build-aux/csharpexec.sh.in: Likewise.
47415         * build-aux/install-reloc: Likewise.
47416         * build-aux/javacomp.sh.in: Likewise.
47417         * build-aux/javaexec.sh.in: Likewise.
47418         * build-aux/ldd.sh.in: Likewise.
47419         * build-aux/reloc-ldflags: Likewise.
47420         * build-aux/relocatable.sh.in: Likewise.
47421         * build-aux/x-to-1.in: Likewise.
47422         * check-module: Likewise.
47423         * config/srclistvars.sh: Likewise.
47424         * gnulib-tool: Likewise.
47425         * lib/acl-internal.h: Likewise.
47426         * lib/acl.c: Likewise.
47427         * lib/acl.h: Likewise.
47428         * lib/acl_entries.c: Likewise.
47429         * lib/areadlink-with-size.c: Likewise.
47430         * lib/areadlink.c: Likewise.
47431         * lib/areadlink.h: Likewise.
47432         * lib/argmatch.c: Likewise.
47433         * lib/argmatch.h: Likewise.
47434         * lib/argp-ba.c: Likewise.
47435         * lib/argp-eexst.c: Likewise.
47436         * lib/argp-fmtstream.c: Likewise.
47437         * lib/argp-fmtstream.h: Likewise.
47438         * lib/argp-fs-xinl.c: Likewise.
47439         * lib/argp-help.c: Likewise.
47440         * lib/argp-namefrob.h: Likewise.
47441         * lib/argp-parse.c: Likewise.
47442         * lib/argp-pin.c: Likewise.
47443         * lib/argp-pv.c: Likewise.
47444         * lib/argp-pvh.c: Likewise.
47445         * lib/argp-xinl.c: Likewise.
47446         * lib/argp.h: Likewise.
47447         * lib/at-func.c: Likewise.
47448         * lib/atanl.c: Likewise.
47449         * lib/backupfile.c: Likewise.
47450         * lib/backupfile.h: Likewise.
47451         * lib/basename.c: Likewise.
47452         * lib/binary-io.h: Likewise.
47453         * lib/byteswap.in.h: Likewise.
47454         * lib/c-stack.c: Likewise.
47455         * lib/c-stack.h: Likewise.
47456         * lib/c-strcasestr.c: Likewise.
47457         * lib/c-strcasestr.h: Likewise.
47458         * lib/c-strstr.c: Likewise.
47459         * lib/c-strstr.h: Likewise.
47460         * lib/c-strtod.c: Likewise.
47461         * lib/calloc.c: Likewise.
47462         * lib/canon-host.c: Likewise.
47463         * lib/canon-host.h: Likewise.
47464         * lib/canonicalize-lgpl.c: Likewise.
47465         * lib/canonicalize.c: Likewise.
47466         * lib/canonicalize.h: Likewise.
47467         * lib/ceil.c: Likewise.
47468         * lib/ceilf.c: Likewise.
47469         * lib/ceill.c: Likewise.
47470         * lib/chdir-long.c: Likewise.
47471         * lib/chdir-long.h: Likewise.
47472         * lib/chdir-safer.c: Likewise.
47473         * lib/chdir-safer.h: Likewise.
47474         * lib/chown.c: Likewise.
47475         * lib/classpath.c: Likewise.
47476         * lib/classpath.h: Likewise.
47477         * lib/clean-temp.c: Likewise.
47478         * lib/clean-temp.h: Likewise.
47479         * lib/cloexec.c: Likewise.
47480         * lib/close-stream.c: Likewise.
47481         * lib/closein.c: Likewise.
47482         * lib/closein.h: Likewise.
47483         * lib/closeout.c: Likewise.
47484         * lib/closeout.h: Likewise.
47485         * lib/concat-filename.c: Likewise.
47486         * lib/copy-file.c: Likewise.
47487         * lib/copy-file.h: Likewise.
47488         * lib/count-one-bits.h: Likewise.
47489         * lib/crc.c: Likewise.
47490         * lib/crc.h: Likewise.
47491         * lib/creat-safer.c: Likewise.
47492         * lib/csharpcomp.c: Likewise.
47493         * lib/csharpcomp.h: Likewise.
47494         * lib/csharpexec.c: Likewise.
47495         * lib/csharpexec.h: Likewise.
47496         * lib/cycle-check.c: Likewise.
47497         * lib/cycle-check.h: Likewise.
47498         * lib/diacrit.c: Likewise.
47499         * lib/diacrit.h: Likewise.
47500         * lib/diffseq.h: Likewise.
47501         * lib/dirchownmod.c: Likewise.
47502         * lib/dirent.in.h: Likewise.
47503         * lib/dirfd.c: Likewise.
47504         * lib/dirfd.h: Likewise.
47505         * lib/dirname.c: Likewise.
47506         * lib/dirname.h: Likewise.
47507         * lib/dummy.c: Likewise.
47508         * lib/dup-safer.c: Likewise.
47509         * lib/dup2.c: Likewise.
47510         * lib/eealloc.h: Likewise.
47511         * lib/error.c: Likewise.
47512         * lib/error.h: Likewise.
47513         * lib/euidaccess.c: Likewise.
47514         * lib/exclude.c: Likewise.
47515         * lib/exclude.h: Likewise.
47516         * lib/execute.c: Likewise.
47517         * lib/execute.h: Likewise.
47518         * lib/exitfail.c: Likewise.
47519         * lib/exitfail.h: Likewise.
47520         * lib/expl.c: Likewise.
47521         * lib/fatal-signal.c: Likewise.
47522         * lib/fatal-signal.h: Likewise.
47523         * lib/fbufmode.c: Likewise.
47524         * lib/fbufmode.h: Likewise.
47525         * lib/fchdir.c: Likewise.
47526         * lib/fchmodat.c: Likewise.
47527         * lib/fchownat.c: Likewise.
47528         * lib/fcntl--.h: Likewise.
47529         * lib/fcntl-safer.h: Likewise.
47530         * lib/fcntl.in.h: Likewise.
47531         * lib/fd-safer.c: Likewise.
47532         * lib/fflush.c: Likewise.
47533         * lib/file-has-acl.c: Likewise.
47534         * lib/file-set.c: Likewise.
47535         * lib/file-type.c: Likewise.
47536         * lib/file-type.h: Likewise.
47537         * lib/fileblocks.c: Likewise.
47538         * lib/filemode.c: Likewise.
47539         * lib/filemode.h: Likewise.
47540         * lib/filename.h: Likewise.
47541         * lib/filenamecat.c: Likewise.
47542         * lib/filenamecat.h: Likewise.
47543         * lib/findprog.c: Likewise.
47544         * lib/findprog.h: Likewise.
47545         * lib/float.in.h: Likewise.
47546         * lib/floor.c: Likewise.
47547         * lib/floorf.c: Likewise.
47548         * lib/floorl.c: Likewise.
47549         * lib/fopen-safer.c: Likewise.
47550         * lib/fopen.c: Likewise.
47551         * lib/fpending.c: Likewise.
47552         * lib/fpending.h: Likewise.
47553         * lib/fprintf.c: Likewise.
47554         * lib/fprintftime.h: Likewise.
47555         * lib/fpucw.h: Likewise.
47556         * lib/fpurge.c: Likewise.
47557         * lib/fpurge.h: Likewise.
47558         * lib/freadable.c: Likewise.
47559         * lib/freadable.h: Likewise.
47560         * lib/freadahead.c: Likewise.
47561         * lib/freadahead.h: Likewise.
47562         * lib/freading.c: Likewise.
47563         * lib/freading.h: Likewise.
47564         * lib/free.c: Likewise.
47565         * lib/freopen.c: Likewise.
47566         * lib/frexp.c: Likewise.
47567         * lib/frexpl.c: Likewise.
47568         * lib/fseek.c: Likewise.
47569         * lib/fseterr.c: Likewise.
47570         * lib/fseterr.h: Likewise.
47571         * lib/fstatat.c: Likewise.
47572         * lib/fstrcmp.c: Likewise.
47573         * lib/fstrcmp.h: Likewise.
47574         * lib/fsusage.c: Likewise.
47575         * lib/fsusage.h: Likewise.
47576         * lib/ftell.c: Likewise.
47577         * lib/ftello.c: Likewise.
47578         * lib/fts-cycle.c: Likewise.
47579         * lib/fts.c: Likewise.
47580         * lib/fts_.h: Likewise.
47581         * lib/full-read.c: Likewise.
47582         * lib/full-read.h: Likewise.
47583         * lib/full-write.c: Likewise.
47584         * lib/full-write.h: Likewise.
47585         * lib/fwritable.c: Likewise.
47586         * lib/fwritable.h: Likewise.
47587         * lib/fwriteerror.c: Likewise.
47588         * lib/fwriteerror.h: Likewise.
47589         * lib/fwriting.c: Likewise.
47590         * lib/fwriting.h: Likewise.
47591         * lib/gcd.c: Likewise.
47592         * lib/gcd.h: Likewise.
47593         * lib/getcwd.c: Likewise.
47594         * lib/getdate.h: Likewise.
47595         * lib/getdate.y: Likewise.
47596         * lib/getdomainname.c: Likewise.
47597         * lib/getdomainname.h: Likewise.
47598         * lib/getgroups.c: Likewise.
47599         * lib/gethostname.c: Likewise.
47600         * lib/gethrxtime.c: Likewise.
47601         * lib/gethrxtime.h: Likewise.
47602         * lib/getloadavg.c: Likewise.
47603         * lib/getndelim2.c: Likewise.
47604         * lib/getndelim2.h: Likewise.
47605         * lib/getnline.c: Likewise.
47606         * lib/getnline.h: Likewise.
47607         * lib/getopt.c: Likewise.
47608         * lib/getopt.in.h: Likewise.
47609         * lib/getopt1.c: Likewise.
47610         * lib/getopt_int.h: Likewise.
47611         * lib/getpagesize.h: Likewise.
47612         * lib/getsubopt.c: Likewise.
47613         * lib/gettime.c: Likewise.
47614         * lib/getugroups.c: Likewise.
47615         * lib/getugroups.h: Likewise.
47616         * lib/getusershell.c: Likewise.
47617         * lib/gl_anyavltree_list1.h: Likewise.
47618         * lib/gl_anyavltree_list2.h: Likewise.
47619         * lib/gl_anyhash_list1.h: Likewise.
47620         * lib/gl_anyhash_list2.h: Likewise.
47621         * lib/gl_anylinked_list1.h: Likewise.
47622         * lib/gl_anylinked_list2.h: Likewise.
47623         * lib/gl_anyrbtree_list1.h: Likewise.
47624         * lib/gl_anyrbtree_list2.h: Likewise.
47625         * lib/gl_anytree_list1.h: Likewise.
47626         * lib/gl_anytree_list2.h: Likewise.
47627         * lib/gl_anytree_oset.h: Likewise.
47628         * lib/gl_anytreehash_list1.h: Likewise.
47629         * lib/gl_anytreehash_list2.h: Likewise.
47630         * lib/gl_array_list.c: Likewise.
47631         * lib/gl_array_list.h: Likewise.
47632         * lib/gl_array_oset.c: Likewise.
47633         * lib/gl_array_oset.h: Likewise.
47634         * lib/gl_avltree_list.c: Likewise.
47635         * lib/gl_avltree_list.h: Likewise.
47636         * lib/gl_avltree_oset.c: Likewise.
47637         * lib/gl_avltree_oset.h: Likewise.
47638         * lib/gl_avltreehash_list.c: Likewise.
47639         * lib/gl_avltreehash_list.h: Likewise.
47640         * lib/gl_carray_list.c: Likewise.
47641         * lib/gl_carray_list.h: Likewise.
47642         * lib/gl_linked_list.c: Likewise.
47643         * lib/gl_linked_list.h: Likewise.
47644         * lib/gl_linkedhash_list.c: Likewise.
47645         * lib/gl_linkedhash_list.h: Likewise.
47646         * lib/gl_list.c: Likewise.
47647         * lib/gl_list.h: Likewise.
47648         * lib/gl_oset.c: Likewise.
47649         * lib/gl_oset.h: Likewise.
47650         * lib/gl_rbtree_list.c: Likewise.
47651         * lib/gl_rbtree_list.h: Likewise.
47652         * lib/gl_rbtree_oset.c: Likewise.
47653         * lib/gl_rbtree_oset.h: Likewise.
47654         * lib/gl_rbtreehash_list.c: Likewise.
47655         * lib/gl_rbtreehash_list.h: Likewise.
47656         * lib/gl_sublist.c: Likewise.
47657         * lib/gl_sublist.h: Likewise.
47658         * lib/group-member.c: Likewise.
47659         * lib/group-member.h: Likewise.
47660         * lib/hard-locale.c: Likewise.
47661         * lib/hard-locale.h: Likewise.
47662         * lib/hash-pjw.c: Likewise.
47663         * lib/hash-pjw.h: Likewise.
47664         * lib/hash-triple.c: Likewise.
47665         * lib/hash.c: Likewise.
47666         * lib/hash.h: Likewise.
47667         * lib/human.c: Likewise.
47668         * lib/human.h: Likewise.
47669         * lib/i-ring.c: Likewise.
47670         * lib/i-ring.h: Likewise.
47671         * lib/idcache.c: Likewise.
47672         * lib/imaxabs.c: Likewise.
47673         * lib/imaxdiv.c: Likewise.
47674         * lib/inet_pton.c: Likewise.
47675         * lib/inet_pton.h: Likewise.
47676         * lib/intprops.h: Likewise.
47677         * lib/inttostr.c: Likewise.
47678         * lib/inttostr.h: Likewise.
47679         * lib/inttypes.in.h: Likewise.
47680         * lib/isapipe.c: Likewise.
47681         * lib/isdir.c: Likewise.
47682         * lib/isnan.c: Likewise.
47683         * lib/isnan.h: Likewise.
47684         * lib/isnanf.c: Likewise.
47685         * lib/isnanf.h: Likewise.
47686         * lib/isnanl-nolibm.h: Likewise.
47687         * lib/isnanl.c: Likewise.
47688         * lib/isnanl.h: Likewise.
47689         * lib/javacomp.c: Likewise.
47690         * lib/javacomp.h: Likewise.
47691         * lib/javaexec.c: Likewise.
47692         * lib/javaexec.h: Likewise.
47693         * lib/javaversion.c: Likewise.
47694         * lib/javaversion.h: Likewise.
47695         * lib/javaversion.java: Likewise.
47696         * lib/lbrkprop.h: Likewise.
47697         * lib/lchmod.h: Likewise.
47698         * lib/lchown.c: Likewise.
47699         * lib/ldexpl.c: Likewise.
47700         * lib/linebreak.c: Likewise.
47701         * lib/linebreak.h: Likewise.
47702         * lib/linebuffer.c: Likewise.
47703         * lib/linebuffer.h: Likewise.
47704         * lib/locale.in.h: Likewise.
47705         * lib/logl.c: Likewise.
47706         * lib/long-options.c: Likewise.
47707         * lib/long-options.h: Likewise.
47708         * lib/lstat.c: Likewise.
47709         * lib/lstat.h: Likewise.
47710         * lib/math.in.h: Likewise.
47711         * lib/mbchar.c: Likewise.
47712         * lib/mbchar.h: Likewise.
47713         * lib/mbfile.h: Likewise.
47714         * lib/mbiter.h: Likewise.
47715         * lib/mbscasecmp.c: Likewise.
47716         * lib/mbscasestr.c: Likewise.
47717         * lib/mbschr.c: Likewise.
47718         * lib/mbscspn.c: Likewise.
47719         * lib/mbslen.c: Likewise.
47720         * lib/mbsncasecmp.c: Likewise.
47721         * lib/mbsnlen.c: Likewise.
47722         * lib/mbspbrk.c: Likewise.
47723         * lib/mbspcasecmp.c: Likewise.
47724         * lib/mbsrchr.c: Likewise.
47725         * lib/mbssep.c: Likewise.
47726         * lib/mbsspn.c: Likewise.
47727         * lib/mbsstr.c: Likewise.
47728         * lib/mbstok_r.c: Likewise.
47729         * lib/mbswidth.c: Likewise.
47730         * lib/mbswidth.h: Likewise.
47731         * lib/mbuiter.h: Likewise.
47732         * lib/memcasecmp.c: Likewise.
47733         * lib/memcasecmp.h: Likewise.
47734         * lib/memchr.c: Likewise.
47735         * lib/memcmp.c: Likewise.
47736         * lib/memcoll.c: Likewise.
47737         * lib/memcoll.h: Likewise.
47738         * lib/memcpy.c: Likewise.
47739         * lib/memrchr.c: Likewise.
47740         * lib/mkancesdirs.c: Likewise.
47741         * lib/mkdir-p.c: Likewise.
47742         * lib/mkdir-p.h: Likewise.
47743         * lib/mkdir.c: Likewise.
47744         * lib/mkdirat.c: Likewise.
47745         * lib/mkdtemp.c: Likewise.
47746         * lib/mkstemp-safer.c: Likewise.
47747         * lib/mkstemp.c: Likewise.
47748         * lib/modechange.c: Likewise.
47749         * lib/modechange.h: Likewise.
47750         * lib/mountlist.c: Likewise.
47751         * lib/mountlist.h: Likewise.
47752         * lib/mpsort.c: Likewise.
47753         * lib/nanosleep.c: Likewise.
47754         * lib/obstack.c: Likewise.
47755         * lib/obstack.h: Likewise.
47756         * lib/open-safer.c: Likewise.
47757         * lib/open.c: Likewise.
47758         * lib/openat-die.c: Likewise.
47759         * lib/openat-priv.h: Likewise.
47760         * lib/openat-proc.c: Likewise.
47761         * lib/openat.c: Likewise.
47762         * lib/openat.h: Likewise.
47763         * lib/pagealign_alloc.c: Likewise.
47764         * lib/pagealign_alloc.h: Likewise.
47765         * lib/physmem.c: Likewise.
47766         * lib/physmem.h: Likewise.
47767         * lib/pipe-safer.c: Likewise.
47768         * lib/pipe.c: Likewise.
47769         * lib/pipe.h: Likewise.
47770         * lib/posixtm.c: Likewise.
47771         * lib/posixtm.h: Likewise.
47772         * lib/posixver.c: Likewise.
47773         * lib/printf-frexp.c: Likewise.
47774         * lib/printf-frexp.h: Likewise.
47775         * lib/printf-frexpl.c: Likewise.
47776         * lib/printf-frexpl.h: Likewise.
47777         * lib/printf.c: Likewise.
47778         * lib/progname.c: Likewise.
47779         * lib/progname.h: Likewise.
47780         * lib/progreloc.c: Likewise.
47781         * lib/putenv.c: Likewise.
47782         * lib/quote.c: Likewise.
47783         * lib/quote.h: Likewise.
47784         * lib/quotearg.c: Likewise.
47785         * lib/quotearg.h: Likewise.
47786         * lib/raise.c: Likewise.
47787         * lib/readline.c: Likewise.
47788         * lib/readline.h: Likewise.
47789         * lib/readlink.c: Likewise.
47790         * lib/readtokens.c: Likewise.
47791         * lib/readtokens.h: Likewise.
47792         * lib/readtokens0.c: Likewise.
47793         * lib/readtokens0.h: Likewise.
47794         * lib/readutmp.c: Likewise.
47795         * lib/readutmp.h: Likewise.
47796         * lib/realloc.c: Likewise.
47797         * lib/relocwrapper.c: Likewise.
47798         * lib/rename-dest-slash.c: Likewise.
47799         * lib/rename.c: Likewise.
47800         * lib/rmdir.c: Likewise.
47801         * lib/rpmatch.c: Likewise.
47802         * lib/safe-read.c: Likewise.
47803         * lib/safe-read.h: Likewise.
47804         * lib/safe-write.c: Likewise.
47805         * lib/safe-write.h: Likewise.
47806         * lib/same-inode.h: Likewise.
47807         * lib/same.c: Likewise.
47808         * lib/same.h: Likewise.
47809         * lib/save-cwd.c: Likewise.
47810         * lib/save-cwd.h: Likewise.
47811         * lib/savedir.c: Likewise.
47812         * lib/savedir.h: Likewise.
47813         * lib/savewd.c: Likewise.
47814         * lib/savewd.h: Likewise.
47815         * lib/search.in.h: Likewise.
47816         * lib/setenv.c: Likewise.
47817         * lib/setenv.h: Likewise.
47818         * lib/settime.c: Likewise.
47819         * lib/sh-quote.c: Likewise.
47820         * lib/sh-quote.h: Likewise.
47821         * lib/sig2str.c: Likewise.
47822         * lib/sig2str.h: Likewise.
47823         * lib/signal.in.h: Likewise.
47824         * lib/signbitd.c: Likewise.
47825         * lib/signbitf.c: Likewise.
47826         * lib/signbitl.c: Likewise.
47827         * lib/sigprocmask.c: Likewise.
47828         * lib/sincosl.c: Likewise.
47829         * lib/sleep.c: Likewise.
47830         * lib/sprintf.c: Likewise.
47831         * lib/sqrtl.c: Likewise.
47832         * lib/stat-time.h: Likewise.
47833         * lib/stdio--.h: Likewise.
47834         * lib/stdio-safer.h: Likewise.
47835         * lib/stdlib--.h: Likewise.
47836         * lib/stdlib-safer.h: Likewise.
47837         * lib/stdlib.in.h: Likewise.
47838         * lib/stpcpy.c: Likewise.
47839         * lib/stpncpy.c: Likewise.
47840         * lib/strchrnul.c: Likewise.
47841         * lib/strcspn.c: Likewise.
47842         * lib/strerror.c: Likewise.
47843         * lib/strftime.c: Likewise.
47844         * lib/strftime.h: Likewise.
47845         * lib/striconveh.c: Likewise.
47846         * lib/striconveh.h: Likewise.
47847         * lib/striconveha.c: Likewise.
47848         * lib/striconveha.h: Likewise.
47849         * lib/stripslash.c: Likewise.
47850         * lib/strnlen1.c: Likewise.
47851         * lib/strnlen1.h: Likewise.
47852         * lib/strtod.c: Likewise.
47853         * lib/strtoimax.c: Likewise.
47854         * lib/strtok_r.c: Likewise.
47855         * lib/strtol.c: Likewise.
47856         * lib/strtoll.c: Likewise.
47857         * lib/strtoul.c: Likewise.
47858         * lib/strtoull.c: Likewise.
47859         * lib/sysexits.in.h: Likewise.
47860         * lib/tempname.c: Likewise.
47861         * lib/tempname.h: Likewise.
47862         * lib/timespec.h: Likewise.
47863         * lib/tls.c: Likewise.
47864         * lib/tls.h: Likewise.
47865         * lib/tmpdir.c: Likewise.
47866         * lib/tmpdir.h: Likewise.
47867         * lib/tmpfile-safer.c: Likewise.
47868         * lib/tmpfile.c: Likewise.
47869         * lib/trigl.c: Likewise.
47870         * lib/trigl.h: Likewise.
47871         * lib/trim.c: Likewise.
47872         * lib/trim.h: Likewise.
47873         * lib/trunc.c: Likewise.
47874         * lib/truncf.c: Likewise.
47875         * lib/truncl.c: Likewise.
47876         * lib/tsearch.c: Likewise.
47877         * lib/unicodeio.c: Likewise.
47878         * lib/unicodeio.h: Likewise.
47879         * lib/unistd--.h: Likewise.
47880         * lib/unistd-safer.h: Likewise.
47881         * lib/unistdio/ulc-fprintf.c: Likewise.
47882         * lib/unistdio/ulc-vfprintf.c: Likewise.
47883         * lib/unlinkdir.c: Likewise.
47884         * lib/unlinkdir.h: Likewise.
47885         * lib/unlocked-io.h: Likewise.
47886         * lib/unsetenv.c: Likewise.
47887         * lib/userspec.c: Likewise.
47888         * lib/utime.c: Likewise.
47889         * lib/utimecmp.c: Likewise.
47890         * lib/utimecmp.h: Likewise.
47891         * lib/utimens.c: Likewise.
47892         * lib/verify.h: Likewise.
47893         * lib/verror.c: Likewise.
47894         * lib/verror.h: Likewise.
47895         * lib/version-etc-fsf.c: Likewise.
47896         * lib/version-etc.c: Likewise.
47897         * lib/version-etc.h: Likewise.
47898         * lib/vfprintf.c: Likewise.
47899         * lib/vprintf.c: Likewise.
47900         * lib/vsprintf.c: Likewise.
47901         * lib/w32spawn.h: Likewise.
47902         * lib/wait-process.c: Likewise.
47903         * lib/wait-process.h: Likewise.
47904         * lib/wcwidth.c: Likewise.
47905         * lib/write-any-file.c: Likewise.
47906         * lib/xalloc-die.c: Likewise.
47907         * lib/xalloc.h: Likewise.
47908         * lib/xasprintf.c: Likewise.
47909         * lib/xgetcwd.c: Likewise.
47910         * lib/xgetcwd.h: Likewise.
47911         * lib/xgetdomainname.c: Likewise.
47912         * lib/xgetdomainname.h: Likewise.
47913         * lib/xgethostname.c: Likewise.
47914         * lib/xmalloc.c: Likewise.
47915         * lib/xmalloca.c: Likewise.
47916         * lib/xmalloca.h: Likewise.
47917         * lib/xmemcoll.c: Likewise.
47918         * lib/xnanosleep.c: Likewise.
47919         * lib/xreadlink.c: Likewise.
47920         * lib/xreadlink.h: Likewise.
47921         * lib/xsetenv.c: Likewise.
47922         * lib/xsetenv.h: Likewise.
47923         * lib/xstriconv.c: Likewise.
47924         * lib/xstriconv.h: Likewise.
47925         * lib/xstrndup.c: Likewise.
47926         * lib/xstrndup.h: Likewise.
47927         * lib/xstrtod.c: Likewise.
47928         * lib/xstrtod.h: Likewise.
47929         * lib/xstrtol-error.c: Likewise.
47930         * lib/xstrtol.c: Likewise.
47931         * lib/xstrtol.h: Likewise.
47932         * lib/xtime.h: Likewise.
47933         * lib/xvasprintf.c: Likewise.
47934         * lib/xvasprintf.h: Likewise.
47935         * lib/yesno.c: Likewise.
47936         * lib/yesno.h: Likewise.
47937         * posix-modules: Likewise.
47938         * tests/test-alloca-opt.c: Likewise.
47939         * tests/test-arcfour.c: Likewise.
47940         * tests/test-arctwo.c: Likewise.
47941         * tests/test-argmatch.c: Likewise.
47942         * tests/test-argp-2.sh: Likewise.
47943         * tests/test-argp.c: Likewise.
47944         * tests/test-arpa_inet.c: Likewise.
47945         * tests/test-array_list.c: Likewise.
47946         * tests/test-array_oset.c: Likewise.
47947         * tests/test-atexit.c: Likewise.
47948         * tests/test-avltree_list.c: Likewise.
47949         * tests/test-avltree_oset.c: Likewise.
47950         * tests/test-avltreehash_list.c: Likewise.
47951         * tests/test-base64.c: Likewise.
47952         * tests/test-binary-io.c: Likewise.
47953         * tests/test-byteswap.c: Likewise.
47954         * tests/test-c-ctype.c: Likewise.
47955         * tests/test-c-strcasecmp.c: Likewise.
47956         * tests/test-c-strcasestr.c: Likewise.
47957         * tests/test-c-strncasecmp.c: Likewise.
47958         * tests/test-c-strstr.c: Likewise.
47959         * tests/test-canonicalize-lgpl.c: Likewise.
47960         * tests/test-canonicalize.c: Likewise.
47961         * tests/test-carray_list.c: Likewise.
47962         * tests/test-ceilf.c: Likewise.
47963         * tests/test-ceill.c: Likewise.
47964         * tests/test-count-one-bits.c: Likewise.
47965         * tests/test-crc.c: Likewise.
47966         * tests/test-dirname.c: Likewise.
47967         * tests/test-fbufmode.c: Likewise.
47968         * tests/test-fcntl.c: Likewise.
47969         * tests/test-fflush.c: Likewise.
47970         * tests/test-floorf.c: Likewise.
47971         * tests/test-floorl.c: Likewise.
47972         * tests/test-fopen.c: Likewise.
47973         * tests/test-fprintf-posix.c: Likewise.
47974         * tests/test-fprintf-posix.h: Likewise.
47975         * tests/test-fpurge.c: Likewise.
47976         * tests/test-freadable.c: Likewise.
47977         * tests/test-freadahead.c: Likewise.
47978         * tests/test-freading.c: Likewise.
47979         * tests/test-freopen.c: Likewise.
47980         * tests/test-frexp.c: Likewise.
47981         * tests/test-frexpl.c: Likewise.
47982         * tests/test-fseek.c: Likewise.
47983         * tests/test-fseeko.c: Likewise.
47984         * tests/test-fseterr.c: Likewise.
47985         * tests/test-fstrcmp.c: Likewise.
47986         * tests/test-ftell.c: Likewise.
47987         * tests/test-ftello.c: Likewise.
47988         * tests/test-fwritable.c: Likewise.
47989         * tests/test-fwriting.c: Likewise.
47990         * tests/test-getaddrinfo.c: Likewise.
47991         * tests/test-getpass.c: Likewise.
47992         * tests/test-gettimeofday.c: Likewise.
47993         * tests/test-hmac-md5.c: Likewise.
47994         * tests/test-hmac-sha1.c: Likewise.
47995         * tests/test-iconv.c: Likewise.
47996         * tests/test-iconvme.c: Likewise.
47997         * tests/test-inttypes.c: Likewise.
47998         * tests/test-isnan.c: Likewise.
47999         * tests/test-isnanf.c: Likewise.
48000         * tests/test-isnanl-nolibm.c: Likewise.
48001         * tests/test-isnanl.c: Likewise.
48002         * tests/test-isnanl.h: Likewise.
48003         * tests/test-ldexpl.c: Likewise.
48004         * tests/test-linked_list.c: Likewise.
48005         * tests/test-linkedhash_list.c: Likewise.
48006         * tests/test-locale.c: Likewise.
48007         * tests/test-localename.c: Likewise.
48008         * tests/test-lock.c: Likewise.
48009         * tests/test-lseek.c: Likewise.
48010         * tests/test-malloca.c: Likewise.
48011         * tests/test-math.c: Likewise.
48012         * tests/test-mbscasecmp.c: Likewise.
48013         * tests/test-mbscasestr1.c: Likewise.
48014         * tests/test-mbscasestr2.c: Likewise.
48015         * tests/test-mbscasestr3.c: Likewise.
48016         * tests/test-mbscasestr4.c: Likewise.
48017         * tests/test-mbschr.c: Likewise.
48018         * tests/test-mbscspn.c: Likewise.
48019         * tests/test-mbsncasecmp.c: Likewise.
48020         * tests/test-mbspbrk.c: Likewise.
48021         * tests/test-mbspcasecmp.c: Likewise.
48022         * tests/test-mbsrchr.c: Likewise.
48023         * tests/test-mbsspn.c: Likewise.
48024         * tests/test-mbsstr1.c: Likewise.
48025         * tests/test-mbsstr2.c: Likewise.
48026         * tests/test-mbsstr3.c: Likewise.
48027         * tests/test-md5.c: Likewise.
48028         * tests/test-memmem.c: Likewise.
48029         * tests/test-netinet_in.c: Likewise.
48030         * tests/test-open.c: Likewise.
48031         * tests/test-printf-frexp.c: Likewise.
48032         * tests/test-printf-frexpl.c: Likewise.
48033         * tests/test-printf-posix.c: Likewise.
48034         * tests/test-printf-posix.h: Likewise.
48035         * tests/test-rbtree_list.c: Likewise.
48036         * tests/test-rbtree_oset.c: Likewise.
48037         * tests/test-rbtreehash_list.c: Likewise.
48038         * tests/test-read-file.c: Likewise.
48039         * tests/test-rijndael.c: Likewise.
48040         * tests/test-search.c: Likewise.
48041         * tests/test-signbit.c: Likewise.
48042         * tests/test-sleep.c: Likewise.
48043         * tests/test-snprintf-posix.c: Likewise.
48044         * tests/test-snprintf-posix.h: Likewise.
48045         * tests/test-snprintf.c: Likewise.
48046         * tests/test-sprintf-posix.c: Likewise.
48047         * tests/test-sprintf-posix.h: Likewise.
48048         * tests/test-stat-time.c: Likewise.
48049         * tests/test-stdbool.c: Likewise.
48050         * tests/test-stdint.c: Likewise.
48051         * tests/test-stdio.c: Likewise.
48052         * tests/test-stdlib.c: Likewise.
48053         * tests/test-stpncpy.c: Likewise.
48054         * tests/test-strcasestr.c: Likewise.
48055         * tests/test-striconv.c: Likewise.
48056         * tests/test-striconveh.c: Likewise.
48057         * tests/test-striconveha.c: Likewise.
48058         * tests/test-string.c: Likewise.
48059         * tests/test-sys_select.c: Likewise.
48060         * tests/test-sys_socket.c: Likewise.
48061         * tests/test-sys_stat.c: Likewise.
48062         * tests/test-sys_time.c: Likewise.
48063         * tests/test-sysexits.c: Likewise.
48064         * tests/test-time.c: Likewise.
48065         * tests/test-tls.c: Likewise.
48066         * tests/test-trunc.c: Likewise.
48067         * tests/test-truncf.c: Likewise.
48068         * tests/test-truncl.c: Likewise.
48069         * tests/test-unistd.c: Likewise.
48070         * tests/test-vasnprintf-posix.c: Likewise.
48071         * tests/test-vasnprintf-posix2.c: Likewise.
48072         * tests/test-vasnprintf.c: Likewise.
48073         * tests/test-vasprintf-posix.c: Likewise.
48074         * tests/test-vasprintf.c: Likewise.
48075         * tests/test-verify.c: Likewise.
48076         * tests/test-vfprintf-posix.c: Likewise.
48077         * tests/test-vprintf-posix.c: Likewise.
48078         * tests/test-vsnprintf-posix.c: Likewise.
48079         * tests/test-vsnprintf.c: Likewise.
48080         * tests/test-vsprintf-posix.c: Likewise.
48081         * tests/test-wchar.c: Likewise.
48082         * tests/test-wctype.c: Likewise.
48083         * tests/test-wcwidth.c: Likewise.
48084         * tests/test-xstrtol.c: Likewise.
48085         * tests/test-xvasprintf.c: Likewise.
48086         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48087         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48088         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48089         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48090         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48091         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48092         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48093         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48094         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48095         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48096         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48097         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48098         * tests/uniname/test-uninames.c: Likewise.
48099         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48100         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48101         * tests/unistdio/test-u16-printf1.h: Likewise.
48102         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48103         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48104         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48105         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48106         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48107         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48108         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48109         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48110         * tests/unistdio/test-u32-printf1.h: Likewise.
48111         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48112         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48113         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48114         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48115         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48116         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48117         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48118         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48119         * tests/unistdio/test-u8-printf1.h: Likewise.
48120         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48121         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48122         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48123         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48124         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48125         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48126         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48127         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48128         * tests/unistdio/test-ulc-printf1.h: Likewise.
48129         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48130         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48131         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48132         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48133         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48134         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48135         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48136         * tests/uniwidth/test-u16-width.c: Likewise.
48137         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48138         * tests/uniwidth/test-u32-width.c: Likewise.
48139         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48140         * tests/uniwidth/test-u8-width.c: Likewise.
48141         * tests/uniwidth/test-uc_width.c: Likewise.
48142         * config/srclist-update: Likewise.
48143         (fixlicense): Update to GPLv3+.
48144
48145         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48146         * tests/test-tsearch.c: Change copyright notice.
48147
48148         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48149         * lib/c-strcaseeq.h: Change copyright notice.
48150         * lib/streq.h: Likewise.
48151         * lib/uniconv.h: Likewise.
48152         * lib/uniconv/u-conv-from-enc.h: Likewise.
48153         * lib/uniconv/u-conv-to-enc.h: Likewise.
48154         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48155         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48156         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48157         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48158         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48159         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48160         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48161         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48162         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48163         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48164         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48165         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48166         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48167         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48168         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48169         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48170         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48171         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48172         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48173         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48174         * lib/uniname.h: Likewise.
48175         * lib/uniname/uniname.c: Likewise.
48176         * lib/unistdio.h: Likewise.
48177         * lib/unistdio/u-asnprintf.h: Likewise.
48178         * lib/unistdio/u-asprintf.h: Likewise.
48179         * lib/unistdio/u-printf-args.c: Likewise.
48180         * lib/unistdio/u-printf-args.h: Likewise.
48181         * lib/unistdio/u-printf-parse.h: Likewise.
48182         * lib/unistdio/u-snprintf.h: Likewise.
48183         * lib/unistdio/u-sprintf.h: Likewise.
48184         * lib/unistdio/u-vasprintf.h: Likewise.
48185         * lib/unistdio/u-vsnprintf.h: Likewise.
48186         * lib/unistdio/u-vsprintf.h: Likewise.
48187         * lib/unistdio/u16-asnprintf.c: Likewise.
48188         * lib/unistdio/u16-asprintf.c: Likewise.
48189         * lib/unistdio/u16-printf-parse.c: Likewise.
48190         * lib/unistdio/u16-snprintf.c: Likewise.
48191         * lib/unistdio/u16-sprintf.c: Likewise.
48192         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48193         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48194         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48195         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48196         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48197         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48198         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48199         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48200         * lib/unistdio/u16-vasnprintf.c: Likewise.
48201         * lib/unistdio/u16-vasprintf.c: Likewise.
48202         * lib/unistdio/u16-vsnprintf.c: Likewise.
48203         * lib/unistdio/u16-vsprintf.c: Likewise.
48204         * lib/unistdio/u32-asnprintf.c: Likewise.
48205         * lib/unistdio/u32-asprintf.c: Likewise.
48206         * lib/unistdio/u32-printf-parse.c: Likewise.
48207         * lib/unistdio/u32-snprintf.c: Likewise.
48208         * lib/unistdio/u32-sprintf.c: Likewise.
48209         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48210         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48211         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48212         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48213         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48214         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48215         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48216         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48217         * lib/unistdio/u32-vasnprintf.c: Likewise.
48218         * lib/unistdio/u32-vasprintf.c: Likewise.
48219         * lib/unistdio/u32-vsnprintf.c: Likewise.
48220         * lib/unistdio/u32-vsprintf.c: Likewise.
48221         * lib/unistdio/u8-asnprintf.c: Likewise.
48222         * lib/unistdio/u8-asprintf.c: Likewise.
48223         * lib/unistdio/u8-printf-parse.c: Likewise.
48224         * lib/unistdio/u8-snprintf.c: Likewise.
48225         * lib/unistdio/u8-sprintf.c: Likewise.
48226         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48227         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48228         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48229         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48230         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48231         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48232         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48233         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48234         * lib/unistdio/u8-vasnprintf.c: Likewise.
48235         * lib/unistdio/u8-vasprintf.c: Likewise.
48236         * lib/unistdio/u8-vsnprintf.c: Likewise.
48237         * lib/unistdio/u8-vsprintf.c: Likewise.
48238         * lib/unistdio/ulc-asnprintf.c: Likewise.
48239         * lib/unistdio/ulc-asprintf.c: Likewise.
48240         * lib/unistdio/ulc-printf-parse.c: Likewise.
48241         * lib/unistdio/ulc-snprintf.c: Likewise.
48242         * lib/unistdio/ulc-sprintf.c: Likewise.
48243         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48244         * lib/unistdio/ulc-vasprintf.c: Likewise.
48245         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48246         * lib/unistdio/ulc-vsprintf.c: Likewise.
48247         * lib/unistr.h: Likewise.
48248         * lib/unistr/u-cpy-alloc.h: Likewise.
48249         * lib/unistr/u-cpy.h: Likewise.
48250         * lib/unistr/u-endswith.h: Likewise.
48251         * lib/unistr/u-move.h: Likewise.
48252         * lib/unistr/u-set.h: Likewise.
48253         * lib/unistr/u-startswith.h: Likewise.
48254         * lib/unistr/u-stpcpy.h: Likewise.
48255         * lib/unistr/u-stpncpy.h: Likewise.
48256         * lib/unistr/u-strcat.h: Likewise.
48257         * lib/unistr/u-strcpy.h: Likewise.
48258         * lib/unistr/u-strcspn.h: Likewise.
48259         * lib/unistr/u-strdup.h: Likewise.
48260         * lib/unistr/u-strlen.h: Likewise.
48261         * lib/unistr/u-strncat.h: Likewise.
48262         * lib/unistr/u-strncpy.h: Likewise.
48263         * lib/unistr/u-strnlen.h: Likewise.
48264         * lib/unistr/u-strpbrk.h: Likewise.
48265         * lib/unistr/u-strspn.h: Likewise.
48266         * lib/unistr/u-strstr.h: Likewise.
48267         * lib/unistr/u-strtok.h: Likewise.
48268         * lib/unistr/u16-check.c: Likewise.
48269         * lib/unistr/u16-chr.c: Likewise.
48270         * lib/unistr/u16-cmp.c: Likewise.
48271         * lib/unistr/u16-cpy-alloc.c: Likewise.
48272         * lib/unistr/u16-cpy.c: Likewise.
48273         * lib/unistr/u16-endswith.c: Likewise.
48274         * lib/unistr/u16-mblen.c: Likewise.
48275         * lib/unistr/u16-mbsnlen.c: Likewise.
48276         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48277         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48278         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48279         * lib/unistr/u16-mbtouc.c: Likewise.
48280         * lib/unistr/u16-mbtoucr.c: Likewise.
48281         * lib/unistr/u16-move.c: Likewise.
48282         * lib/unistr/u16-next.c: Likewise.
48283         * lib/unistr/u16-prev.c: Likewise.
48284         * lib/unistr/u16-set.c: Likewise.
48285         * lib/unistr/u16-startswith.c: Likewise.
48286         * lib/unistr/u16-stpcpy.c: Likewise.
48287         * lib/unistr/u16-stpncpy.c: Likewise.
48288         * lib/unistr/u16-strcat.c: Likewise.
48289         * lib/unistr/u16-strchr.c: Likewise.
48290         * lib/unistr/u16-strcmp.c: Likewise.
48291         * lib/unistr/u16-strcpy.c: Likewise.
48292         * lib/unistr/u16-strcspn.c: Likewise.
48293         * lib/unistr/u16-strdup.c: Likewise.
48294         * lib/unistr/u16-strlen.c: Likewise.
48295         * lib/unistr/u16-strmblen.c: Likewise.
48296         * lib/unistr/u16-strmbtouc.c: Likewise.
48297         * lib/unistr/u16-strncat.c: Likewise.
48298         * lib/unistr/u16-strncmp.c: Likewise.
48299         * lib/unistr/u16-strncpy.c: Likewise.
48300         * lib/unistr/u16-strnlen.c: Likewise.
48301         * lib/unistr/u16-strpbrk.c: Likewise.
48302         * lib/unistr/u16-strrchr.c: Likewise.
48303         * lib/unistr/u16-strspn.c: Likewise.
48304         * lib/unistr/u16-strstr.c: Likewise.
48305         * lib/unistr/u16-strtok.c: Likewise.
48306         * lib/unistr/u16-to-u32.c: Likewise.
48307         * lib/unistr/u16-to-u8.c: Likewise.
48308         * lib/unistr/u16-uctomb-aux.c: Likewise.
48309         * lib/unistr/u16-uctomb.c: Likewise.
48310         * lib/unistr/u32-check.c: Likewise.
48311         * lib/unistr/u32-chr.c: Likewise.
48312         * lib/unistr/u32-cmp.c: Likewise.
48313         * lib/unistr/u32-cpy-alloc.c: Likewise.
48314         * lib/unistr/u32-cpy.c: Likewise.
48315         * lib/unistr/u32-endswith.c: Likewise.
48316         * lib/unistr/u32-mblen.c: Likewise.
48317         * lib/unistr/u32-mbsnlen.c: Likewise.
48318         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48319         * lib/unistr/u32-mbtouc.c: Likewise.
48320         * lib/unistr/u32-mbtoucr.c: Likewise.
48321         * lib/unistr/u32-move.c: Likewise.
48322         * lib/unistr/u32-next.c: Likewise.
48323         * lib/unistr/u32-prev.c: Likewise.
48324         * lib/unistr/u32-set.c: Likewise.
48325         * lib/unistr/u32-startswith.c: Likewise.
48326         * lib/unistr/u32-stpcpy.c: Likewise.
48327         * lib/unistr/u32-stpncpy.c: Likewise.
48328         * lib/unistr/u32-strcat.c: Likewise.
48329         * lib/unistr/u32-strchr.c: Likewise.
48330         * lib/unistr/u32-strcmp.c: Likewise.
48331         * lib/unistr/u32-strcpy.c: Likewise.
48332         * lib/unistr/u32-strcspn.c: Likewise.
48333         * lib/unistr/u32-strdup.c: Likewise.
48334         * lib/unistr/u32-strlen.c: Likewise.
48335         * lib/unistr/u32-strmblen.c: Likewise.
48336         * lib/unistr/u32-strmbtouc.c: Likewise.
48337         * lib/unistr/u32-strncat.c: Likewise.
48338         * lib/unistr/u32-strncmp.c: Likewise.
48339         * lib/unistr/u32-strncpy.c: Likewise.
48340         * lib/unistr/u32-strnlen.c: Likewise.
48341         * lib/unistr/u32-strpbrk.c: Likewise.
48342         * lib/unistr/u32-strrchr.c: Likewise.
48343         * lib/unistr/u32-strspn.c: Likewise.
48344         * lib/unistr/u32-strstr.c: Likewise.
48345         * lib/unistr/u32-strtok.c: Likewise.
48346         * lib/unistr/u32-to-u16.c: Likewise.
48347         * lib/unistr/u32-to-u8.c: Likewise.
48348         * lib/unistr/u32-uctomb.c: Likewise.
48349         * lib/unistr/u8-check.c: Likewise.
48350         * lib/unistr/u8-chr.c: Likewise.
48351         * lib/unistr/u8-cmp.c: Likewise.
48352         * lib/unistr/u8-cpy-alloc.c: Likewise.
48353         * lib/unistr/u8-cpy.c: Likewise.
48354         * lib/unistr/u8-endswith.c: Likewise.
48355         * lib/unistr/u8-mblen.c: Likewise.
48356         * lib/unistr/u8-mbsnlen.c: Likewise.
48357         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48358         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48359         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48360         * lib/unistr/u8-mbtouc.c: Likewise.
48361         * lib/unistr/u8-mbtoucr.c: Likewise.
48362         * lib/unistr/u8-move.c: Likewise.
48363         * lib/unistr/u8-next.c: Likewise.
48364         * lib/unistr/u8-prev.c: Likewise.
48365         * lib/unistr/u8-set.c: Likewise.
48366         * lib/unistr/u8-startswith.c: Likewise.
48367         * lib/unistr/u8-stpcpy.c: Likewise.
48368         * lib/unistr/u8-stpncpy.c: Likewise.
48369         * lib/unistr/u8-strcat.c: Likewise.
48370         * lib/unistr/u8-strchr.c: Likewise.
48371         * lib/unistr/u8-strcmp.c: Likewise.
48372         * lib/unistr/u8-strcpy.c: Likewise.
48373         * lib/unistr/u8-strcspn.c: Likewise.
48374         * lib/unistr/u8-strdup.c: Likewise.
48375         * lib/unistr/u8-strlen.c: Likewise.
48376         * lib/unistr/u8-strmblen.c: Likewise.
48377         * lib/unistr/u8-strmbtouc.c: Likewise.
48378         * lib/unistr/u8-strncat.c: Likewise.
48379         * lib/unistr/u8-strncmp.c: Likewise.
48380         * lib/unistr/u8-strncpy.c: Likewise.
48381         * lib/unistr/u8-strnlen.c: Likewise.
48382         * lib/unistr/u8-strpbrk.c: Likewise.
48383         * lib/unistr/u8-strrchr.c: Likewise.
48384         * lib/unistr/u8-strspn.c: Likewise.
48385         * lib/unistr/u8-strstr.c: Likewise.
48386         * lib/unistr/u8-strtok.c: Likewise.
48387         * lib/unistr/u8-to-u16.c: Likewise.
48388         * lib/unistr/u8-to-u32.c: Likewise.
48389         * lib/unistr/u8-uctomb-aux.c: Likewise.
48390         * lib/unistr/u8-uctomb.c: Likewise.
48391         * lib/unitypes.h: Likewise.
48392         * lib/uniwidth.h: Likewise.
48393         * lib/uniwidth/cjk.h: Likewise.
48394         * lib/uniwidth/u16-strwidth.c: Likewise.
48395         * lib/uniwidth/u16-width.c: Likewise.
48396         * lib/uniwidth/u32-strwidth.c: Likewise.
48397         * lib/uniwidth/u32-width.c: Likewise.
48398         * lib/uniwidth/u8-strwidth.c: Likewise.
48399         * lib/uniwidth/u8-width.c: Likewise.
48400         * lib/uniwidth/width.c: Likewise.
48401
48402 2007-10-07  Bruno Haible  <bruno@clisp.org>
48403
48404         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48405         The file is still under LGPL (see modules/inttypes).
48406
48407 2007-10-06  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/trunc (Dependencies): Add 'extensions'.
48410         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48411         Reported by Ben Pfaff <blp@gnu.org>.
48412
48413 2007-10-06  Bruno Haible  <bruno@clisp.org>
48414
48415         * modules/freopen-tests: New file.
48416         * tests/test-freopen.c: New file.
48417
48418         * modules/fopen-tests: New file.
48419         * tests/test-fopen.c: New file.
48420
48421         * modules/fopen: New file.
48422         * lib/fopen.c: New file.
48423         * m4/fopen.m4: New file.
48424         * modules/freopen: New file.
48425         * lib/freopen.c: New file.
48426         * m4/freopen.m4: New file.
48427         * lib/stdio.in.h (fopen, freopen): New declarations.
48428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48429         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48430         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48431         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48432         * doc/functions/fopen.texi: Mention the 'fopen' module.
48433         * doc/functions/freopen.texi: Mention the 'freopen' module.
48434
48435 2007-10-06  Bruno Haible  <bruno@clisp.org>
48436
48437         * modules/open-tests: New file.
48438         * tests/test-open.c: New file.
48439
48440         * modules/open: New file.
48441         * lib/open.c: New file.
48442         * m4/open.m4: New file.
48443         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48444         lib/open.c does.
48445         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48446         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48447         macros.
48448         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48449         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48450         REPLACE_OPEN.
48451         * doc/functions/open.texi: Mention the 'open' module.
48452
48453 2007-10-04  Bruno Haible  <bruno@clisp.org>
48454
48455         * modules/ceill-tests: New file.
48456         * tests/test-ceill.c: New file.
48457
48458         * modules/ceill: New file.
48459         * lib/ceill.c: Replace entire file.
48460         * m4/ceill.m4: New file.
48461         * lib/math.in.h (ceill): Replace declaration.
48462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48463         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48464         * doc/functions/ceill.texi: Mention the 'ceill' module.
48465         * modules/mathl (Files): Remove lib/ceill.c.
48466         (Depends-on): Add ceill.
48467
48468 2007-10-04  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/ceilf-tests: New file.
48471         * tests/test-ceilf.c: New file.
48472
48473         * modules/ceilf: New file.
48474         * lib/ceil.c: New file.
48475         * lib/ceilf.c: New file.
48476         * m4/ceilf.m4: New file.
48477         * lib/math.in.h (ceilf): New declaration.
48478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48479         HAVE_DECL_CEILF.
48480         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48481         HAVE_DECL_CEILF.
48482         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48483
48484 2007-10-04  Bruno Haible  <bruno@clisp.org>
48485
48486         * modules/floorl-tests: New file.
48487         * tests/test-floorl.c: New file.
48488
48489         * modules/floorl: New file.
48490         * lib/floorl.c: Replace entire file.
48491         * m4/floorl.m4: New file.
48492         * lib/math.in.h (floorl): Replace declaration.
48493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48494         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48495         * doc/functions/floorl.texi: Mention the 'floorl' module.
48496         * modules/mathl (Files): Remove lib/floorl.c.
48497         (Depends-on): Add floorl.
48498
48499 2007-10-04  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/floorf-tests: New file.
48502         * tests/test-floorf.c: New file.
48503
48504         * modules/floorf: New file.
48505         * lib/floor.c: New file.
48506         * lib/floorf.c: New file.
48507         * m4/floorf.m4: New file.
48508         * lib/math.in.h (floorf): New declaration.
48509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48510         HAVE_DECL_FLOORF.
48511         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48512         HAVE_DECL_FLOORF.
48513         * doc/functions/floorf.texi: Mention the 'floorf' module.
48514
48515 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48516             Bruno Haible  <bruno@clisp.org>
48517
48518         Advertise for the Git server instead of the CVS server.
48519         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48520         repository instead of the CVS one.
48521         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48522         about all VCS systems generically.
48523         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48524
48525 2007-10-04  Bruno Haible  <bruno@clisp.org>
48526
48527         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48528         means.
48529         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48530
48531 2007-10-04  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/truncl-tests: New file.
48534         * tests/test-truncl.c: New file.
48535
48536         * modules/truncl: New file.
48537         * lib/truncl.c: New file.
48538         * m4/truncl.m4: New file.
48539         * lib/math.in.h (truncl): New declaration.
48540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48541         HAVE_DECL_TRUNCL.
48542         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48543         HAVE_DECL_TRUNCL.
48544         * doc/functions/truncl.texi: Mention the 'truncl' module.
48545
48546 2007-10-04  Bruno Haible  <bruno@clisp.org>
48547
48548         * modules/truncf-tests: New file.
48549         * tests/test-truncf.c: New file.
48550
48551         * modules/truncf: New file.
48552         * lib/trunc.c: Make paramerizable through USE_* macros.
48553         * lib/truncf.c: New file.
48554         * m4/truncf.m4: New file.
48555         * lib/math.in.h (truncf): New declaration.
48556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48557         HAVE_DECL_TRUNCF.
48558         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48559         HAVE_DECL_TRUNCF.
48560         * doc/functions/truncf.texi: Mention the 'truncf' module.
48561
48562 2007-10-03  Bruno Haible  <bruno@clisp.org>
48563
48564         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48565         augmentation also for tests modules.
48566         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48567         * modules/atexit-tests (Makefile.am): Likewise.
48568         * modules/binary-io-tests (Makefile.am): Likewise.
48569         * modules/c-strcase-tests (Makefile.am): Likewise.
48570         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48571         * modules/canonicalize-tests (Makefile.am): Likewise.
48572         * modules/closein-tests (Makefile.am): Likewise.
48573         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48574         * modules/freadahead-tests (Makefile.am): Likewise.
48575         * modules/fseek-tests (Makefile.am): Likewise.
48576         * modules/fseeko-tests (Makefile.am): Likewise.
48577         * modules/ftell-tests (Makefile.am): Likewise.
48578         * modules/ftello-tests (Makefile.am): Likewise.
48579         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48580         * modules/isnanl-tests (Makefile.am): Likewise.
48581         * modules/lseek-tests (Makefile.am): Likewise.
48582         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48583         * modules/mbscasestr-tests (Makefile.am): Likewise.
48584         * modules/mbschr-tests (Makefile.am): Likewise.
48585         * modules/mbscspn-tests (Makefile.am): Likewise.
48586         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48587         * modules/mbspbrk-tests (Makefile.am): Likewise.
48588         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48589         * modules/mbsrchr-tests (Makefile.am): Likewise.
48590         * modules/mbsspn-tests (Makefile.am): Likewise.
48591         * modules/mbsstr-tests (Makefile.am): Likewise.
48592         * modules/printf-posix-tests (Makefile.am): Likewise.
48593         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48594         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48595         * modules/tsearch-tests (Makefile.am): Likewise.
48596         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48597         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48598         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48599         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48600         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48601         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48602         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48603         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48604         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48605         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48606         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48607         * modules/xstrtol-tests (Makefile.am): Likewise.
48608         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48609         * modules/yesno-tests (Makefile.am): Likewise.
48610
48611 2007-10-03  Bruno Haible  <bruno@clisp.org>
48612
48613         * modules/trunc-tests: New file.
48614         * tests/test-trunc.c: New file.
48615
48616         * modules/trunc: New file.
48617         * lib/trunc.c: New file.
48618         * m4/trunc.m4: New file.
48619         * lib/math.in.h (trunc): New declaration.
48620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48621         HAVE_DECL_TRUNC.
48622         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48623         HAVE_DECL_TRUNC.
48624         * doc/functions/trunc.texi: Mention the 'trunc' module.
48625
48626 2007-10-03  Bruno Haible  <bruno@clisp.org>
48627
48628         * tests/test-fpending.c: New file, mostly copied
48629         from coreutils/lib/t-fpending.c.
48630         * modules/fpending-tests: New file.
48631
48632 2007-10-03  Bruno Haible  <bruno@clisp.org>
48633
48634         Port the stdio extensions to QNX (untested).
48635         * lib/fseterr.c (fseterr): Add support for QNX.
48636         * lib/fbufmode.c (fbufmode): Likewise.
48637         * lib/freadable.c (freadable): Likewise.
48638         * lib/fwritable.c (fwritable): Likewise.
48639         * lib/freading.c (freading): Likewise.
48640         * lib/fwriting.c (fwriting): Likewise.
48641         * lib/freadahead.c (freadahed): Likewise.
48642         * lib/fpurge.c (fpurge): Likewise.
48643         * lib/fseeko.c (rpl_fseeko): Likewise.
48644
48645 2007-10-03  Bruno Haible  <bruno@clisp.org>
48646             Jim Meyering  <jim@meyering.net>
48647             Eric Blake  <ebb9@byu.net>
48648
48649         * doc/relocatable.texi: Use @command instead of @program.
48650
48651 2007-10-02  Jim Meyering  <jim@meyering.net>
48652
48653         Perform one more "_.h" -> ".in.h" substitution.
48654         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48655         instead of unistd_.h here, too.
48656
48657 2007-10-01  Bruno Haible  <bruno@clisp.org>
48658
48659         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48660         Needed for the alloca-opt module.
48661
48662 2007-09-30  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48665         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48666         alloca_.h.
48667         * lib/argz.in.h: Renamed from lib/argz_.h.
48668         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48669         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48670         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48671         byteswap_.h.
48672         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48673         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48674         dirent_.h.
48675         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48676         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48677         fcntl_.h.
48678         * lib/float.in.h: Renamed from lib/float_.h.
48679         * modules/float (Files, Makefile.am): Use float.in.h instead of
48680         float_.h.
48681         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48682         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48683         fnmatch_.h.
48684         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48685         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48686         getopt_.h.
48687         * lib/glob.in.h: Renamed from lib/glob_.h.
48688         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48689         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48690         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48691         iconv_.h.
48692         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48693         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48694         inttypes_.h.
48695         * lib/locale.in.h: Renamed from lib/locale_.h.
48696         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48697         locale_.h.
48698         * lib/math.in.h: Renamed from lib/math_.h.
48699         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48700         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48701         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48702         of netinet_in_.h. Add dependency.
48703         * lib/poll.in.h: Renamed from lib/poll_.h.
48704         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48705         * lib/search.in.h: Renamed from lib/search_.h.
48706         * modules/search (Files, Makefile.am): Use search.in.h instead of
48707         search_.h.
48708         * lib/signal.in.h: Renamed from lib/signal_.h.
48709         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48710         _signal.h.
48711         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48712         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48713         stdbool_.h.
48714         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48715         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48716         stdint_.h.
48717         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48718         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48719         stdio_.h.
48720         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48721         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48722         stdlib_.h.
48723         * lib/string.in.h: Renamed from lib/string_.h.
48724         * modules/string (Files, Makefile.am): Use string.in.h instead of
48725         string_.h.
48726         * doc/gnulib-tool.texi (Initial import): Update.
48727         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48728         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48729         of sys_select_.h. Add dependency.
48730         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48731         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48732         of sys_socket_.h.
48733         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48734         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48735         sys_stat_.h.
48736         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48737         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48738         sys_time_.h.
48739         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48740         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48741         sysexits_.h.
48742         * lib/time.in.h: Renamed from lib/time_.h.
48743         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48744         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48745         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48746         unistd_.h.
48747         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48748         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48749         wchar_.h.
48750         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48751         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48752         wctype_.h.
48753         * build-aux/bootstrap (slurp): Update.
48754         * lib/.cppi-disable: Update.
48755
48756 2007-09-30  Bruno Haible  <bruno@clisp.org>
48757
48758         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48759         Needed on BeOS.
48760
48761 2007-09-30  Bruno Haible  <bruno@clisp.org>
48762
48763         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48764
48765 2007-09-29  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48768
48769 2007-09-29  Bruno Haible  <bruno@clisp.org>
48770
48771         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48772         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48773         * build-aux/install-reloc: Compile also areadlink.c.
48774         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48775
48776 2007-09-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (func_emit_initmacro_done): Indentation.
48779
48780 2007-09-29  Bruno Haible  <bruno@clisp.org>
48781
48782         * README: Add CVS checkout update instructions.
48783         Info from Bob Proulx <bob@proulx.com>.
48784
48785 2007-09-28  Eric Blake  <ebb9@byu.net>
48786
48787         Provide move-if-change.
48788         * build-aux/move-if-change: New file, based on best practice
48789         rather than any canonical upstream location.
48790
48791 2007-09-28  Jim Meyering  <jim@meyering.net>
48792
48793         Fix canonicalize loop-detection corner case.
48794         Do not attempt to stat the symlink values stored via seen_triple.
48795         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48796         on linux-2.6.18, (but not 2.6.22).
48797         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48798         triple_compare.  The former compares dev,ino,filename, while the latter
48799         would actually stat dirname(filename) when dev and ino were equal.
48800         * lib/hash-triple.c: Install <string.h>.
48801         (STREQ): Define.
48802         (triple_compare_ino_str): New function.
48803         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48804
48805 2007-09-28  Eric Blake  <ebb9@byu.net>
48806
48807         Enforce that AC_REPLACE_FUNCS files exist.
48808         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48809         override check for typos.
48810
48811         Fix test-closein on Solaris 10.
48812         * tests/test-closein.c (main): Don't assume stdin can be inherited
48813         closed on all systems.
48814         * tests/test-closein.sh: Likewise.
48815         Reported by Piotr Tarnowski.
48816
48817 2007-09-28  Jim Meyering  <jim@meyering.net>
48818
48819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48820
48821 2007-09-27  Jim Meyering  <jim@meyering.net>
48822
48823         canonicalize: Avoid a false-positive cycle failure.
48824         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48825         Sort.  Remove cycle-check.
48826         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48827         not cycle-check.h.
48828         (seen_triple): New function.
48829         (canonicalize_filename_mode): Use it instead of cycle-check.
48830         * tests/test-canonicalize.c: Add a test for this bug.
48831         * tests/test-canonicalize.sh: Set up and run the test.
48832
48833         New module, file-set, from coreutils.
48834         * modules/file-set: Define it.
48835         * lib/file-set.c, lib/file-set.h: Implement.
48836
48837         New module, hash-triple, from coreutils.
48838         * modules/hash-triple: Define it.
48839         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48840
48841 2007-09-25  Eric Blake  <ebb9@byu.net>
48842
48843         Fix strerror on Interix.
48844         * lib/string_.h (strerror): Declare replacement.
48845         * doc/functions/strerror.texi (strerror): Document the Interix
48846         shortcoming.
48847         * modules/string (Makefile.am): Support new hooks.
48848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48849         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48850         gl_FUNC_STRERROR_SEPARATE.
48851         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48852         * lib/strerror.c (rpl_strerror): Provide replacement.
48853         * modules/strerror (Depends-on): Add string.
48854         (configure.ac): Detect use of module.
48855         * tests/test-strerror.c: New file.
48856         * modules/strerror-tests: New test module.
48857         * modules/argp (Depends-on): Add strerror.
48858         * modules/error (Depends-on): Likewise.
48859         Reported by Martin Koeppe.
48860
48861 2007-09-24  Bruno Haible  <bruno@clisp.org>
48862
48863         * README: Update git instructions.
48864
48865 2007-09-24  Eric Blake  <ebb9@byu.net>
48866
48867         Revert fpending breakage from 2007-09-08.
48868         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48869         __fpending.c.
48870
48871 2007-09-24  Jim Meyering  <jim@meyering.net>
48872
48873         filenamecat.c: Add a test.
48874         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48875         showing how the function works when DIR is the empty string.
48876
48877 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48878
48879         * tests/test-canonicalize.sh: Turn on executable bit.
48880
48881 2007-09-19  Eric Blake  <ebb9@byu.net>
48882
48883         * README: Update CVS instructions.
48884
48885 2007-09-18  Bruno Haible  <bruno@clisp.org>
48886
48887         * modules/areadlink: New file.
48888         * lib/areadlink.h (areadlink): New declaration.
48889         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48890
48891 2007-09-17  Jim Meyering  <jim@meyering.net>
48892
48893         * lib/savewd.c (ESTALE) [!defined]: Define.
48894         Reported to be required on Interix by Martin Koeppe.
48895
48896 2007-09-17  Bruno Haible  <bruno@clisp.org>
48897
48898         * gnulib-tool (func_version): Use $version.
48899
48900 2007-09-16  Bruno Haible  <bruno@clisp.org>
48901
48902         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48903         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48904         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48905         Reported by Greg Schafer <gschafer@zip.com.au>.
48906
48907 2007-09-15  Bruno Haible  <bruno@clisp.org>
48908
48909         * gnulib-tool (sed): Try a little harder to make bash understand the
48910         alias.
48911         Reported by Bruce Korb <bruce.korb@gmail.com>.
48912
48913 2007-09-13  Eric Blake  <ebb9@byu.net>
48914
48915         * ChangeLog: Remove conflict markers.
48916
48917 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48918
48919         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48920         Reported by Bruno Haible <bruno@clisp.org>.
48921
48922 2007-09-12  Bruno Haible  <bruno@clisp.org>
48923
48924         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48925         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48926         is not defined.
48927
48928 2007-09-12  Eric Blake  <ebb9@byu.net>
48929
48930         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48931         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48932         Autoconf definition.
48933         * modules/euidaccess (Depends-on): Add extensions, for
48934         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48935         * modules/fnmatch (Depends-on): Likewise.
48936         * modules/getaddrinfo (Depends-on): Likewise.
48937         * modules/getdelim (Depends-on): Likewise.
48938         * modules/getline (Depends-on): Likewise.
48939         * modules/getsubopt (Depends-on): Likewise.
48940         * modules/gettext (Depends-on): Likewise.
48941         * modules/group-member (Depends-on): Likewise.
48942         * modules/mbchar (Depends-on): Likewise.
48943         * modules/memmem (Depends-on): Likewise.
48944         * modules/mempcpy (Depends-on): Likewise.
48945         * modules/memrchr (Depends-on): Likewise.
48946         * modules/pagealign_alloc (Depends-on): Likewise.
48947         * modules/readutmp (Depends-on): Likewise.
48948         * modules/stpcpy (Depends-on): Likewise.
48949         * modules/stpncpy (Depends-on): Likewise.
48950         * modules/strchrnul (Depends-on): Likewise.
48951         * modules/strndup (Depends-on): Likewise.
48952         * modules/strsep (Depends-on): Likewise.
48953         * modules/strverscmp (Depends-on): Likewise.
48954         * modules/vasprintf (Depends-on): Likewise.
48955         * modules/wcwidth (Depends-on): Likewise.
48956         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48957         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48958         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48960         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48961         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48962         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48963         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48964         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48965         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48967         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48969         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48970         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48971         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48972         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48973         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48975         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48978         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48979         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48980         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48982         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48983         so that lock.m4 can be used in gettext without extensions module.
48984
48985 2007-09-11  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/isc-posix.m4: Remove file.
48988         Suggested by Eric Blake.
48989
48990 2007-09-11  Eric Blake  <ebb9@byu.net>
48991
48992         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48993
48994 2007-09-10  Bruno Haible  <bruno@clisp.org>
48995
48996         * posix-modules: Fix typo in error message.
48997         Reported by Matt <mkraai@beckman.com>.
48998
48999 2007-09-09  Bruno Haible  <bruno@clisp.org>
49000
49001         * doc/functions/getdelim.texi: Update list of platforms lacking the
49002         function.
49003         * doc/functions/getline.texi: Likewise.
49004
49005 2007-09-09  Jim Meyering  <jim@meyering.net>
49006
49007         * lib/hash.c (hash_initialize): Detect calloc failure.
49008         Reported by Bruno Haible.
49009
49010 2007-09-09  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49013         malloc or realloc fails.
49014
49015 2007-09-09  Bruno Haible  <bruno@clisp.org>
49016
49017         * modules/getcwd (Depends-on): Add malloc-posix.
49018         * modules/glob (Depends-on): Likewise.
49019         * modules/putenv (Depends-on): Likewise.
49020         * modules/strdup (Depends-on): Likewise.
49021         * modules/getdelim (Depends-on): Add realloc-posix.
49022         * modules/read-file (Depends-on): Likewise.
49023
49024 2007-09-09  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49027         (gl_FUNC_MALLOC_POSIX): Require it.
49028         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49029         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49030         * modules/realloc (Files): Add m4/malloc.m4.
49031         * modules/calloc (Files): Likewise.
49032
49033 2007-09-09  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/malloc-posix: New file.
49036         * modules/malloc (Depends-on): Add malloc-posix.
49037         * lib/malloc.c: Include errno.h.
49038         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49039         and a POSIX-compatible malloc into a single function. Set ENOMEM
49040         when returning NULL.
49041         * m4/malloc.m4: New file.
49042         * doc/functions/malloc.texi: Mention the malloc-posix module.
49043         * lib/stdlib_.h (malloc): New declaration.
49044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49045         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49046         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49047         and HAVE_MALLOC_POSIX.
49048
49049 2007-09-09  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/realloc-posix: New file.
49052         * modules/realloc (Depends-on): Add realloc-posix.
49053         * lib/realloc.c: Include errno.h.
49054         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49055         and a POSIX-compatible realloc into a single function. Set ENOMEM
49056         when returning NULL.
49057         * m4/realloc.m4: New file.
49058         * doc/functions/realloc.texi: Mention the realloc-posix module.
49059         * lib/stdlib_.h (realloc): New declaration.
49060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49061         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49062         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49063         and HAVE_REALLOC_POSIX.
49064
49065 2007-09-09  Bruno Haible  <bruno@clisp.org>
49066
49067         * modules/calloc-posix: New file.
49068         * modules/calloc (Depends-on): Add calloc-posix.
49069         * lib/calloc.c: Include errno.h.
49070         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49071         and a POSIX-compatible calloc into a single function. Set ENOMEM
49072         when returning NULL.
49073         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49074         * doc/functions/calloc.texi: Mention the calloc-posix module.
49075         * lib/stdlib_.h (calloc): New declaration.
49076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49077         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49078         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49079         and HAVE_CALLOC_POSIX.
49080
49081 2007-09-09  Bruno Haible  <bruno@clisp.org>
49082
49083         Allow for modules to show an arbitrary notice.
49084         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49085         * gnulib-tool: New option --extract-notice.
49086         (func_usage): Document it.
49087         (sed_extract_prog): Update.
49088         (func_get_notice): New function.
49089         (func_modules_notice): New function.
49090         (func_import, func_create_testdir): Invoke it.
49091         Suggested by Jim Meyering.
49092
49093 2007-09-09  Bruno Haible  <bruno@clisp.org>
49094
49095         * gnulib-tool: New options --verbose, --quiet.
49096         (func_usage): Document them.
49097         (verbose): New variable.
49098         (func_execute_command): New function.
49099         (func_import): Don't show the module list and the file list if
49100         $verbose < 0.
49101         (func_create_testdir): Likewise. Use func_execute_command.
49102         (func_create_megatestdir): Use func_execute_command.
49103
49104 2007-09-08  Bruno Haible  <bruno@clisp.org>
49105
49106         * gnulib-tool (func_import): Prefer rsync over wget when available,
49107         for fetching the PO files.
49108
49109 2007-09-08  Bruno Haible  <bruno@clisp.org>
49110
49111         * posix-modules: New file. Portions copied from gnulib-tool.
49112         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49113
49114 2007-09-08  Jim Meyering  <jim@meyering.net>
49115
49116         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49117         * lib/fpending.h: Rename from __fpending.h.
49118         * lib/fpending.c: Rename from __fpending.c.
49119         Include "fpending.h", not "__fpending.h".
49120         * lib/__fpending.h, lib/__fpending.c: Remove files.
49121         * modules/fpending (Files): Reflect new file names.
49122         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49123
49124 2007-09-08  Bruno Haible  <bruno@clisp.org>
49125
49126         * m4/inttypes-h.m4: Remove stub file.
49127
49128 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49129
49130         * doc/headers/stdint.texi: Discuss #include_next issue.
49131
49132 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49135
49136 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49137
49138         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49139         in variable name.
49140
49141 2007-09-03  Jim Meyering  <jim@meyering.net>
49142
49143         New module: git-version-gen.
49144         * modules/git-version-gen: New file.
49145
49146         Import changes from coreutils for bootstrap script.
49147
49148         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49149
49150         bootstrap: uses rsync to download the .po files
49151         * build-aux/bootstrap (po_download_command_format): New global.
49152         (download_po_files): Use rsync.
49153         (update_po_files): Don't remove .po files after download,
49154         so future rsync runs can take advantage of the copies.
49155
49156         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49157
49158         Solve the unnecessary-.po-file-regeneration problem once and for all.
49159         * build-aux/bootstrap (download_po_files): New function, renamed from
49160         get_translations.  Now, downloads, but doesn't update LINGUAS.
49161         (update_po_files): New function.
49162
49163         bootstrap: Ignore more.
49164         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49165         uniwidth to e.g., lib/.gitignore.
49166         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49167
49168         * build-aux/bootstrap: New setting: vc_ignore.
49169         (insert_sorted_if_absent): Create $file if absent.
49170         Adapt to new, possibly empty, list: $vc_ignore.
49171
49172         bootstrap: generate more ignorable names
49173         * build-aux/bootstrap (slurp): When generating ignorable names,
49174         also map .sin to .sed, .gperf to .c, and .y to .c.
49175
49176 2007-09-03  Jim Meyering  <jim@meyering.net>
49177
49178         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49179         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49180
49181 2007-09-02  Bruno Haible  <bruno@clisp.org>
49182
49183         Fix mis-recognition of 'mcs' on QNX 6.
49184         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49185         output contains the string "Mono".
49186         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49187         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49188
49189 2007-09-01  Bruno Haible  <bruno@clisp.org>
49190
49191         Fix collision between uniwidth/* and linebreak modules.
49192         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49193         u32_width): Remove declarations.
49194         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49195         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49196         streq3, streq2, streq1, streq0): Remove functions.
49197         (STREQ): Remove macro.
49198         (is_cjk_encoding): Remove function.
49199         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49200         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49201         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49202         * NEWS: Document the change.
49203
49204 2007-09-01  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/streq.h: Add double-inclusion guard.
49207
49208 2007-09-01  Karl Berry  <karl@gnu.org>
49209
49210         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49211
49212 2007-08-28  Jim Meyering  <jim@meyering.net>
49213
49214         Rename mreadlink_with_size to areadlink_with_size.
49215         * NEWS: Document the change.
49216         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49217         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49218         * lib/mreadlink.h: Rename this to...
49219         * lib/areadlink.h: ...this.
49220         * modules/mreadlink-with-size: Rename this to...
49221         * modules/areadlink-with-size: ...this.
49222         * lib/canonicalize.c: Reflect the renaming.
49223         * modules/canonicalize: Likewise.
49224
49225 2007-08-26  Bruno Haible  <bruno@clisp.org>
49226
49227         * gnulib-tool (func_import): When deciding which files to remove,
49228         consider also dangling symbolic links.
49229         Reported by Eric Blake.
49230
49231 2007-08-26  Bruno Haible  <bruno@clisp.org>
49232
49233         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49234
49235 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49236
49237         * lib/readline.c: Don't include getline.h, the prototype is now
49238         found in stdio.h.
49239
49240 2007-08-23  Jim Meyering  <jim@meyering.net>
49241
49242         Getdelim touchup.
49243         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49244         around the funlockfile call, since funlockfile never sets errno.
49245         Don't set errno upon failed realloc.
49246
49247 2007-08-22  Eric Blake  <ebb9@byu.net>
49248
49249         Getline touchups.
49250         * lib/getdelim.c (getdelim): Revert regression that required *n to
49251         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49253         getdelim, rather than whether implementation is missing.
49254         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49255         * lib/stdio_.h (getline): Also declare if replacement is
49256         required.
49257         * doc/functions/getdelim.texi: New file.
49258         * doc/functions/getline.texi: Likewise.
49259         * doc/gnulib.texi (Function Substitutes): Add new files.
49260         Reported by Bruno Haible.
49261
49262 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49263
49264         * users.txt: Add Guile.
49265
49266 2007-08-22  Eric Blake  <ebb9@byu.net>
49267
49268         * tests/test-getdelim.c (main): Use remove, not unlink.
49269         * tests/test-getline.c (main): Likewise.
49270
49271         Move getline and getdelim into stdio.h, per POSIX 200x.
49272         * modules/getline (Files): Remove getline.h.
49273         (Depends-on): Add stdio.
49274         (configure.ac): Add module indicator.
49275         * modules/getdelim (Files): Remove getdelim.h.
49276         (Depends-on): Add stdio.
49277         (configure.ac): Add module indicator.
49278         * modules/stdio (Makefile.am): Work with new indicators.
49279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49280         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49281         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49282         * lib/getdelim.h: Delete.
49283         * lib/getline.h: Delete.
49284         * lib/stdio_.h (getdelim, getline): Declare.
49285         * modules/getdelim-tests: New module.
49286         * modules/getline-tests: Likewise.
49287         * tests/test-getdelim.c: New file.
49288         * tests/test-getline.c: Likewise.
49289         * NEWS: Document the change.
49290         * lib/getline.c: Update choice of header.
49291         * lib/csharpcomp.c: Likewise.
49292         * lib/getpass.c: Likewise.
49293         * lib/javacomp.c: Likewise.
49294         * lib/javaversion.c: Likewise.
49295         * lib/yesno.c: Likewise.
49296         * lib/getdelim.c: Likewise.
49297         (getdelim): Set errno on failure, and avoid memory leak.
49298
49299 2007-08-19  Bruno Haible  <bruno@clisp.org>
49300
49301         * modules/closein (Depends-on): Add freadahead.
49302         * lib/closein.c: Include freadahead.h.
49303         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49304         is zero.
49305
49306 2007-08-19  Bruno Haible  <bruno@clisp.org>
49307
49308         * modules/freadahead-tests: New file.
49309         * tests/test-freadahead.sh: New file.
49310         * tests/test-freadahead.c: New file.
49311
49312         * modules/freadahead: New file.
49313         * lib/freadahead.h: New file.
49314         * lib/freadahead.c: New file.
49315         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49316         fbufmode, fpurge, freadable, fwritable.
49317
49318 2007-08-19  Eric Blake  <ebb9@byu.net>
49319
49320         Test yesno in combination with closein.
49321         * lib/yesno.c (yesno): Document use of stdin.
49322         * modules/yesno-tests (Files): New module.
49323         * tests/test-yesno.c (main): New file.
49324         * tests/test-yesno.sh: Likewise.
49325
49326 2007-08-19  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49329         * lib/fseeko.c (rpl_fseeko): Likewise.
49330         * lib/fseterr.c (fseterr): Likewise.
49331
49332 2007-08-19  Bruno Haible  <bruno@clisp.org>
49333
49334         * tests/test-lseek.c (main): Disable a test for BeOS.
49335         * doc/functions/lseek.texi: Document the BeOS bug.
49336
49337 2007-08-19  Bruno Haible  <bruno@clisp.org>
49338             Eric Blake  <ebb9@byu.net>
49339
49340         * lib/lseek.c: Include <sys/stat.h>.
49341         (rpl_lseek): Add workaround code also for Unix platforms.
49342         Needed for BeOS.
49343         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49344         * doc/functions/lseek.texi: Document BeOS definiency.
49345
49346 2007-08-18  Bruno Haible  <bruno@clisp.org>
49347
49348         * modules/fstrcmp-tests: New file.
49349         * tests/test-fstrcmp.c: New file.
49350
49351 2007-08-18  Bruno Haible  <bruno@clisp.org>
49352
49353         * modules/fstrcmp: New file, from GNU gettext with modifications.
49354         * lib/fstrcmp.h: New file, from GNU gettext.
49355         * lib/fstrcmp.c: New file, from GNU gettext.
49356         * MODULES.html.sh (String handling): Add fstrcmp.
49357
49358 2007-08-18  Bruno Haible  <bruno@clisp.org>
49359
49360         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49361         'bool'.
49362         (diag, compareseq): Remove const from the ctxt argument.
49363         (USE_HEURISTIC): Undefine at the end.
49364
49365 2007-08-18  Jim Meyering  <jim@meyering.net>
49366
49367         New file: lib/idcache.h
49368         * NEWS: Mention the addition.
49369         * modules/idcache (Files): Add lib/idcache.h
49370         * lib/idcache.c: Include "idcache.h".
49371         Don't include <sys/types.h>.
49372         Add a FIXME comment.
49373         Move file-scoped "static" declarations to the top.
49374         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49375
49376 2007-08-17  Bruno Haible  <bruno@clisp.org>
49377         and Paul Eggert  <eggert@cs.ucla.edu>
49378
49379         * MODULES.html.sh: Add diffseq.
49380         * modules/diffseq: New file.
49381         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49382         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49383
49384 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49385
49386         Import changes from coreutils for bootstrap script.
49387
49388         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * build-aux/bootstrap (slurp): Work even in environments where
49391         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49392         current code does not slurp files whose names start with ".", and
49393         this looks like it might be a troublesome area.
49394
49395         2007-07-11  Jim Meyering  <jim@meyering.net>
49396
49397         If there's a GPL vN copyright comment, require that N == 3.
49398
49399         2007-07-08  Jim Meyering  <jim@meyering.net>
49400
49401         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49402         * build-aux/bootstrap (mam_template): Move definition out of loop.
49403
49404         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49405
49406         * build-aux/bootstrap (symlink_to_dir): Rename function from
49407         symlink_to_gnulib.  Add a directory parameter.  Update all
49408         callers.
49409         (cp_mark_as_generated): Also check for -- and link to -- files in
49410         gl/.
49411
49412         2007-07-08  Jim Meyering  <jim@meyering.net>
49413
49414         Adapt to deeper hierarchy in gnulib.
49415         * build-aux/bootstrap (symlink_to_dir): If the destination
49416         directory doesn't exist, create it. This is required at least for
49417         "lib/uniwidth/cjk.h".
49418
49419         2007-05-15  Jim Meyering  <jim@meyering.net>
49420
49421         * build-aux/bootstrap: Now that generated Makefile.am files
49422         are no longer under version control, they must be created at
49423         bootstrap time.
49424
49425 2007-08-14  Ben Pfaff  <blp@gnu.org>
49426
49427         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49428
49429 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49430
49431         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49432         given the changes below.
49433         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49434         even on hosts that have padding bits beyond the supported 64.
49435
49436 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49437
49438         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49439         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49440         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49441         depends on it.
49442         (xstrtol_error): Remove.
49443         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49444         but with a different signature.
49445         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49446         * lib/xstrtol-error.c: Include exitfail.h.
49447         (xstrtol_fatal): New function, with a different signature from the
49448         old xstrtol_error, so that the caller need not worry about passing
49449         in an exit status, or about storage management of the option argument.
49450         (xstrtol_error): Now a static function.  Redo signature to
49451         implement xstrtol_fatal.  Output the correct number of hyphens in
49452         front of the option so that the caller need not worry about
49453         storage management.
49454         (N_): New macro.
49455         (_): Remove; not used now.
49456         * modules/xstrtol: Depend on getopt.
49457         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49458         of old STRTOL_FATAL_ERROR macro.
49459         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49460         of test program.
49461         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49462         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49463
49464 2007-08-08  Eric Blake  <ebb9@byu.net>
49465
49466         * lib/xstrtol-error.c: Add missing include.
49467
49468         Move xstrtol messages into gnulib domain, when --pobase is used.
49469         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49470         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49471         * modules/xstrtol (Files): Distribute new file.
49472         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49473         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49474         * tests/test-xstrtol.c: ...into new file.
49475         * tests/test-xstrtoul.c: Also test xstrtoul.
49476         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49477         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49478         * tests/test-xstrtol.sh: Drive the tests.
49479         * tests/test-xstrtoimax.sh: Likewise.
49480         * tests/test-xstrtoumax.sh: Likewise.
49481         * modules/xstrtol-tests: New module.
49482         * modules/xstrtoimax-tests: Likewise.
49483         * modules/xstrtoumax-tests: Likewise.
49484
49485 2007-08-08  Jim Meyering  <jim@meyering.net>
49486
49487         New function: mfile_name_concat.
49488         * lib/filenamecat.c (mfile_name_concat): New function, just like
49489         file_name_concat, but return NULL upon failure rather than exiting
49490         with a diagnostic.
49491         * lib/filenamecat.h: Declare it.
49492
49493 2007-08-07  Bruno Haible  <bruno@clisp.org>
49494
49495         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49496         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49497         warning from gcc.
49498         Reported by Eric Blake.
49499
49500 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49501
49502         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49503         * modules/crypto/arcfour (License): Likewise.
49504         * modules/crypto/des-tests (License): Likewise.
49505         * modules/crypto/gc-arctwo-tests (License): Likewise.
49506         * modules/crypto/gc-des-tests (License): Likewise.
49507         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49508         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49509         * modules/crypto/gc-md2-tests (License): Likewise.
49510         * modules/crypto/gc-md4-tests (License): Likewise.
49511         * modules/crypto/gc-md5-tests (License): Likewise.
49512         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49513         * modules/crypto/gc-rijndael-tests (License): Likewise.
49514         * modules/crypto/gc-sha1-tests (License): Likewise.
49515         * modules/crypto/gc-tests (License): Likewise.
49516         * modules/crypto/hmac-md5 (License): Likewise.
49517         * modules/crypto/hmac-sha1 (License): Likewise.
49518         * modules/crypto/md2-tests (License): Likewise.
49519         * modules/crypto/md4-tests (License): Likewise.
49520         * modules/crypto/md5 (License): Likewise.
49521         * modules/crypto/rijndael (License): Likewise.
49522         * modules/crypto/sha1 (License): Likewise.
49523         * modules/memxor (License): Likewise.
49524
49525 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49526         and Bruno Haible  <bruno@clisp.org>
49527
49528         * NEWS: Describe interface changes to human, xstrtol.
49529         * lib/human.h: Include <xstrtol.h>.
49530         (human_options): Return enum strtol_error, not int.  Remove
49531         bool arg; take int * instead.
49532         * lib/human.c: Don't include "gettext.h".
49533         (_): Remove; no longer used.
49534         Don't include <xstrtol.h>, since human.h does it.
49535         (human_options): Adjust to abovementioned interface changes.
49536         Do not report error to stderr; that's now the caller's
49537         responsibility.
49538         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49539         interface change.
49540         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49541         Str, Argument_type_string.  All uses changed.  Put " argument"
49542         in diagnostics to make them clearer.  Change wording of suffix
49543         message for clarity.
49544         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49545         Argument_type_string.
49546         (STRTOL_FATAL_WARN): Remove; no longer used.
49547         * modules/human (Depends-on): Remove gettext-h.
49548
49549 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49550
49551         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49552
49553 2007-07-31  Bruno Haible  <bruno@clisp.org>
49554
49555         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49556         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49557         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49558
49559 2007-07-31  Bruno Haible  <bruno@clisp.org>
49560
49561         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49562         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49563
49564 2007-07-30  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49567         * modules/c-ctype (License): Likewise.
49568         * modules/c-strcase (License): Likewise.
49569         * modules/check-version (License): Likewise.
49570         * modules/iconv (License): Likewise.
49571         * modules/iconv_open (License): Likewise.
49572         * modules/read-file (License): Likewise.
49573         * modules/striconv (License): Likewise.
49574         * modules/strverscmp (License): Likewise.
49575         * modules/vasprintf (License): Likewise.
49576         * modules/crypto/des (License): Likewise.
49577         * modules/crypto/gc (License): Likewise.
49578         * modules/crypto/gc-arcfour (License): Likewise.
49579         * modules/crypto/gc-arctwo (License): Likewise.
49580         * modules/crypto/gc-des (License): Likewise.
49581         * modules/crypto/gc-hmac-md5 (License): Likewise.
49582         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49583         * modules/crypto/gc-md2 (License): Likewise.
49584         * modules/crypto/gc-md4 (License): Likewise.
49585         * modules/crypto/gc-md5 (License): Likewise.
49586         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49587         * modules/crypto/gc-random (License): Likewise.
49588         * modules/crypto/gc-rijndael (License): Likewise.
49589         * modules/crypto/gc-sha1 (License): Likewise.
49590         * modules/crypto/md2 (License): Likewise.
49591         * modules/crypto/md4 (License): Likewise.
49592
49593 2007-07-30  Jim Meyering  <jim@meyering.net>
49594
49595         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49596         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49597         it has valid stat data.  This bug would cause du not to count the
49598         sizes of inaccessible directories.
49599         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49600         in <http://bugzilla.redhat.com/250077>.
49601
49602 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49603             Bruno Haible  <bruno@clisp.org>
49604
49605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49606         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49607         #include_next, gives a diagnostic about it, but reports no error in
49608         the exit code.
49609         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49610
49611 2007-07-24  Ben Pfaff  <blp@gnu.org>
49612
49613         Improve name: "count-one-bits" is better than "popcount".
49614         * MODULES.html.sh: Update name.
49615         * lib/popcount.h: Renamed lib/count-one-bits.h.
49616         (popcount): Renamed count_one_bits.
49617         (popcountl): Renamed count_one_bits_l.
49618         (popcountll): Renamed count_one_bits_ll.
49619         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49620         * modules/popcount: Renamed module/count-one-bits.
49621         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49622         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49623
49624 2007-07-23  Ben Pfaff  <blp@gnu.org>
49625
49626         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49627         better code generation, and add U to large constants to avoid
49628         warnings, in non-GCC case.
49629         Suggested by Bruno Haible.
49630
49631 2007-07-23  Ben Pfaff  <blp@gnu.org>
49632
49633         * lib/popcount.h: Use verify_true instead of if...abort.
49634         * modules/popcount: Depend on verify module.
49635         Suggested by Jim Meyering.
49636
49637 2007-07-23  Bruno Haible  <bruno@clisp.org>
49638
49639         * gnulib-tool (func_import): Create a .cvsignore file also when the
49640         directory is not yet in CVS but the toplevel directory is. When
49641         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49642         Reported by Karl Berry.
49643
49644 2007-07-22  Ben Pfaff  <blp@gnu.org>
49645
49646         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49647         case.
49648         Suggested by Eric Blake.
49649
49650 2007-07-22  Ben Pfaff  <blp@gnu.org>
49651
49652         New module: popcount.
49653         * MODULES.html.sh: Add popcount.
49654         * modules/popcount: New file.
49655         * modules/popcount-tests: New file.
49656         * tests/test-popcount.c: New file.
49657         * lib/popcount.h: New file.
49658         * m4/popcount.m4: New file.
49659
49660 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49661
49662         * build-aux/announce-gen: Update to GPLv3.
49663
49664         * build-aux/config.guess: Update from config.
49665
49666 2007-07-21  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49669         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49670
49671 2007-07-20  Jim Meyering  <jim@meyering.net>
49672
49673         * check-module: Diagnose a self-dependency.
49674
49675 2007-07-19  Bruno Haible  <bruno@clisp.org>
49676
49677         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49678         empty.
49679         Reported by Eric Blake.
49680
49681 2007-07-18  Bruno Haible  <bruno@clisp.org>
49682
49683         * gnulib-tool: New options --po-base, --po-domain.
49684         (func_usage): Document them.
49685         (pobase, po_domain): New variables.
49686         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49687         DEFAULT_TEXT_DOMAIN.
49688         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49689         (func_import): Consider pobase and po_domain. Create a po/ directory.
49690         (func_create_testdir): Set pobase and po_domain to empty.
49691         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49692         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49693
49694 2007-07-18  Bruno Haible  <bruno@clisp.org>
49695
49696         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49697         EXTRA_DIST augmentation for files in build-aux/.
49698
49699 2007-07-16  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49702         * modules/getdelim (License): Likewise.
49703
49704 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49705
49706         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49707         * modules/d-type (License): Likewise.
49708         * modules/extensions (License): Likewise.
49709         * modules/fnmatch (License): Likewise.
49710         * modules/fseeko (License): Likewise.
49711         * modules/getaddrinfo (License): Likewise.
49712         * modules/getline (License): Likewise.
49713         * modules/getlogin_r (License): Likewise.
49714         * modules/getpass (License): Likewise.
49715         * modules/gettimeofday (License): Likewise.
49716         * modules/glob (License): Likewise.
49717         * modules/inet_ntop (License): Likewise.
49718         * modules/malloc (License): Likewise.
49719         * modules/malloca (License): Likewise.
49720         * modules/memmem (License): Likewise.
49721         * modules/mempcpy (License): Likewise.
49722         * modules/memset (License): Likewise.
49723         * modules/minmax (License): Likewise.
49724         * modules/mktime (License): Likewise.
49725         * modules/netinet_in (License): Likewise.
49726         * modules/pathmax (License): Likewise.
49727         * modules/poll (License): Likewise.
49728         * modules/regex (License): Likewise.
49729         * modules/snprintf (License): Likewise.
49730         * modules/stdbool (License): Likewise.
49731         * modules/stdint (License): Likewise.
49732         * modules/stdio (License): Likewise.
49733         * modules/strcase (License): Likewise.
49734         * modules/strcasestr (License): Likewise.
49735         * modules/strdup (License): Likewise.
49736         * modules/string (License): Likewise.
49737         * modules/strndup (License): Likewise.
49738         * modules/strnlen (License): Likewise.
49739         * modules/strpbrk (License): Likewise.
49740         * modules/strptime (License): Likewise.
49741         * modules/strsep (License): Likewise.
49742         * modules/sys_select (License): Likewise.
49743         * modules/sys_socket (License): Likewise.
49744         * modules/sys_stat (License): Likewise.
49745         * modules/sys_time (License): Likewise.
49746         * modules/time (License): Likewise.
49747         * modules/time_r (License): Likewise.
49748         * modules/timegm (License): Likewise.
49749         * modules/unistd (License): Likewise.
49750         * modules/vsnprintf (License): Likewise.
49751         * modules/wctype (License): Likewise.
49752
49753 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49754
49755         * modules/argz (License): LGPLv2+.
49756
49757 2007-07-15  Karl Berry  <karl@gnu.org>
49758
49759         * doc/gnulib.texi: revise node structure per new fdl.texi.
49760
49761 2007-07-14  Bruno Haible  <bruno@clisp.org>
49762
49763         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49764         the output file.
49765         * lib/uniname/uninames.h: Regenerated.
49766
49767 2007-07-14  Karl Berry  <karl@gnu.org>
49768
49769         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49770         omitting sectioning and index commands.
49771
49772 2007-07-13  Bruno Haible  <bruno@clisp.org>
49773
49774         New gnulib-tool option --more-symlinks.
49775         * gnulib-tool (func_usage): Document --more-symlinks.
49776         (do_copyrights): New variable.
49777         Recognize option --more-symlinks.
49778         (func_import): Don't add a copyright notice transform to
49779         sed_transform_lib_file if do_copyrights is empty.
49780
49781 2007-07-13  Bruno Haible  <bruno@clisp.org>
49782
49783         * lib/vasnprintf.c (decimal_point_char): Define also if
49784         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49785         && !NEED_PRINTF_DIRECTIVE_A.
49786         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49787         Gary V. Vaughan <gary@gnu.org>.
49788
49789 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49790
49791         * lib/inttypes_.h: Undo previous change, since it was fixed
49792         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49793
49794 2007-07-13  Bruno Haible  <bruno@clisp.org>
49795
49796         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49797         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49798
49799 2007-07-13  Jim Meyering  <jim@meyering.net>
49800
49801         df: Don't fail for Tru64's "file-on-file mount".
49802         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49803         so we fall through and use statfs instead.  Details here:
49804         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49805         Reported by Albert Chin.
49806
49807 2007-07-13  Bruno Haible  <bruno@clisp.org>
49808
49809         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49810         * modules/configmake (License): Likewise.
49811         * modules/gettext (License): Likewise.
49812         * modules/gettext-h (License): Likewise.
49813         * modules/include_next (License): Likewise.
49814         * modules/link-warning (License): Likewise.
49815         * modules/localcharset (License): Likewise.
49816         * modules/localename (License): Likewise.
49817         * modules/lock (License): Likewise.
49818         * modules/relocatable-lib-lgpl (License): Likewise.
49819         * modules/size_max (License): Likewise.
49820         * modules/vasnprintf (License): Likewise.
49821         * modules/wchar (License): Likewise.
49822         * modules/xsize (License): Likewise.
49823
49824 2007-07-13  Bruno Haible  <bruno@clisp.org>
49825
49826         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49827         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49828
49829 2007-07-12  Bruno Haible  <bruno@clisp.org>
49830
49831         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49832         in the modules files.
49833
49834 2007-07-11  Karl Berry  <karl@gnu.org>
49835
49836         * MODULES.html.sh (func_module): use
49837          sed -e '\|^'"${includefile}"'$|d'
49838          instead of /.../d, to avoid errors on $includefile's containing /.
49839
49840 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49841
49842         * gnulib-tool (func_import): Avoid duplication of --avoid
49843         statements
49844         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49845         names to `_' in variable names.
49846
49847 2007-07-10  Eric Blake  <ebb9@byu.net>
49848
49849         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49850         * NEWS: Document this change.
49851
49852 2007-07-08  Bruno Haible  <bruno@clisp.org>
49853
49854         Update to Unicode 5.0.
49855         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49856         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49857         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49858         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49859         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49860         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49861         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49862         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49863         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49864         U+10A3F, U+1D242..U+1D244.
49865         (nonspacing_table_ind): Update.
49866         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49867         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49868
49869 2007-07-08  Bruno Haible  <bruno@clisp.org>
49870
49871         Update to Unicode 5.0.
49872         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49873         code transform. Extend the name index field of unicode_name_to_code and
49874         unicode_code_to_name from 16 to 24 bits.
49875         * lib/uniname/uniname.c (unicode_character_name,
49876         unicode_name_character): Add the range 0x12xxx to the code transform.
49877         * lib/uniname/uninames.h: Regenerated.
49878         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49879
49880 2007-07-07  Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/wcwidth-tests: New file.
49883         * tests/test-wcwidth.c: New file.
49884
49885         Work around MacOS X wcwidth() bug.
49886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49887         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49888         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49889         original wcwidth in non-UTF-8 locales.
49890         * modules/wcwidth (Depends-on): Add localcharset, streq,
49891         uniwidth/width.
49892         * doc/functions/wcwidth.texi: Update.
49893
49894 2007-07-07  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49897         (wcwidth): New declaration.
49898         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49899         macros.
49900         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49901         here. Prepare for creating <wchar.h> unconditionally.
49902         * modules/wchar (Depends-on): Add link-warning.
49903         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49904         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49905         * lib/wcwidth.h: Remove file.
49906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49907         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49908         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49909         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49910         (Include): Replace wcwidth.h with <wchar.h>.
49911         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49912         * lib/mbchar.h: Don't include wcwidth.h.
49913         * lib/mbswidth.c: Likewise.
49914         * NEWS: Mention the change.
49915
49916 2007-07-07  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49919         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49920         definition with an external declaration.
49921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49922         defined as a function. Remove AC_C_INLINE requirement.
49923         * modules/wcwidth (Files): Add lib/wcwidth.c.
49924         (Makefile.am): Remove redundant statement.
49925
49926 2007-07-07  Bruno Haible  <bruno@clisp.org>
49927
49928         * MODULES.html.sh (Unicode string functions): Add the new modules.
49929
49930         * tests/uniwidth/test-u32-strwidth.c: New file.
49931         * modules/uniwidth/u32-strwidth-tests: New file.
49932
49933         * lib/uniwidth/u32-strwidth.c: New file.
49934         * modules/uniwidth/u32-strwidth: New file.
49935
49936         * tests/uniwidth/test-u16-strwidth.c: New file.
49937         * modules/uniwidth/u16-strwidth-tests: New file.
49938
49939         * lib/uniwidth/u16-strwidth.c: New file.
49940         * modules/uniwidth/u16-strwidth: New file.
49941
49942         * tests/uniwidth/test-u8-strwidth.c: New file.
49943         * modules/uniwidth/u8-strwidth-tests: New file.
49944
49945         * lib/uniwidth/u8-strwidth.c: New file.
49946         * modules/uniwidth/u8-strwidth: New file.
49947
49948         * tests/uniwidth/test-u32-width.c: New file.
49949         * modules/uniwidth/u32-width-tests: New file.
49950
49951         * lib/uniwidth/u32-width.c: New file.
49952         * modules/uniwidth/u32-width: New file.
49953
49954         * tests/uniwidth/test-u16-width.c: New file.
49955         * modules/uniwidth/u16-width-tests: New file.
49956
49957         * lib/uniwidth/u16-width.c: New file.
49958         * modules/uniwidth/u16-width: New file.
49959
49960         * tests/uniwidth/test-u8-width.c: New file.
49961         * modules/uniwidth/u8-width-tests: New file.
49962
49963         * lib/uniwidth/u8-width.c: New file.
49964         * modules/uniwidth/u8-width: New file.
49965
49966         * tests/uniwidth/test-uc_width.c: New file.
49967         * modules/uniwidth/width-tests: New file.
49968
49969         * lib/uniwidth/width.c: New file, from GNU libiconv.
49970         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49971         * modules/uniwidth/width: New file.
49972
49973         * lib/uniwidth.h: New file, from GNU libiconv.
49974         * modules/uniwidth/base: New file.
49975
49976 2007-07-07  Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/uniname.h: New file, from GNU gettext.
49979         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49980         * lib/uniname/uninames.h: New file, from GNU gettext.
49981         * lib/uniname/uniname.c: New file, from GNU gettext.
49982         * tests/uniname/test-uninames.sh: New file.
49983         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49984         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49985         * modules/uniname/base: New file.
49986         * modules/uniname/uniname: New file.
49987         * modules/uniname/uniname-tests: New file.
49988         * MODULES.html.sh (Unicode string functions): Add the new modules.
49989
49990 2007-07-06  Bruno Haible  <bruno@clisp.org>
49991
49992         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49993
49994 2007-07-06  Bruno Haible  <bruno@clisp.org>
49995
49996         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49997         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49998         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49999         include <sys/time.h>.
50000         Reported by Eric Blake.
50001
50002 2007-07-06  Eric Blake  <ebb9@byu.net>
50003
50004         Fix testing canonicalize on cygwin.
50005         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50006         Revert patch from 2007-06-19.
50007         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50008         canonicalize module is also in use.
50009         * tests/test-canonicalize.c: New file.
50010         * tests/test-canonicalize.sh: Likewise.
50011         * modules/canonicalize-tests: Likewise.
50012
50013 2007-07-06  Jim Meyering  <jim@meyering.net>
50014
50015         * lib/getugroups.c (getugroups): Detect getgrent failure.
50016         Adjust comment to reflect reality: this function may return -1.
50017
50018 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50019
50020         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50021         the new TP address.
50022         (usage): Fix typo
50023         (gnulib_mk): New variable.
50024
50025 2007-07-05  Jim Meyering  <jim@meyering.net>
50026
50027         Don't let endgrent clobber errno, no matter how improbable.
50028         * lib/getugroups.c (getugroups): Save and restore errno around
50029         endgrent call.
50030
50031         Close the group DB even when failing with 2^31 or more members.
50032         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50033
50034 2007-07-04  Jim Meyering  <jim@meyering.net>
50035
50036         * lib/getugroups.h: New file.
50037         * lib/getugroups.c: Include "getugroups.h".
50038         Remove uses of "register" keyword.
50039         Move local variable, "cp", down into scope where used.
50040         Give "username" parameter the "const" attribute.
50041         * modules/getugroups (Files): Add lib/getugroups.h
50042
50043 2007-07-04  Karl Berry  <karl@gnu.org>
50044
50045         * MODULES.html.sh (func_all_modules): Complete rename of
50046         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50047
50048 2007-07-02  Bruno Haible  <bruno@clisp.org>
50049
50050         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50051         mode, when inttypes.h comes from gnulib.
50052         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50053
50054 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50055
50056         * NEWS: Mention lgpl module name change.
50057
50058         * modules/lgpl-2.1: Renamed from lgpl.
50059
50060         * NEWS: Mention gpl module name change.
50061
50062         * modules/gpl-3.0: New file, based on gpl-2.0.
50063
50064         * modules/gpl-2.0: Renamed from gpl.
50065
50066         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50067         doc/gpl-2.0.texi.
50068
50069 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50070
50071         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50072         #define __STDC_LIMIT_MACROS temporarily while including
50073         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50074         Problem reported by Joel E. Denny in
50075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50076
50077 2007-07-01  Bruno Haible  <bruno@clisp.org>
50078
50079         * lib/unistdio.h: New file.
50080         * lib/unistdio/u-asnprintf.h: New file.
50081         * lib/unistdio/u-asprintf.h: New file.
50082         * lib/unistdio/u-printf-args.c: New file.
50083         * lib/unistdio/u-printf-args.h: New file.
50084         * lib/unistdio/u-printf-parse.h: New file.
50085         * lib/unistdio/u-snprintf.h: New file.
50086         * lib/unistdio/u-sprintf.h: New file.
50087         * lib/unistdio/u-vasprintf.h: New file.
50088         * lib/unistdio/u-vsnprintf.h: New file.
50089         * lib/unistdio/u-vsprintf.h: New file.
50090         * lib/unistdio/ulc-asnprintf.c: New file.
50091         * lib/unistdio/ulc-asprintf.c: New file.
50092         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50093         * lib/unistdio/ulc-printf-parse.c: New file.
50094         * lib/unistdio/ulc-snprintf.c: New file.
50095         * lib/unistdio/ulc-sprintf.c: New file.
50096         * lib/unistdio/ulc-vasnprintf.c: New file.
50097         * lib/unistdio/ulc-vasprintf.c: New file.
50098         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50099         * lib/unistdio/ulc-vsnprintf.c: New file.
50100         * lib/unistdio/ulc-vsprintf.c: New file.
50101         * lib/unistdio/u8-asnprintf.c: New file.
50102         * lib/unistdio/u8-asprintf.c: New file.
50103         * lib/unistdio/u8-printf-parse.c: New file.
50104         * lib/unistdio/u8-snprintf.c: New file.
50105         * lib/unistdio/u8-sprintf.c: New file.
50106         * lib/unistdio/u8-vasnprintf.c: New file.
50107         * lib/unistdio/u8-vasprintf.c: New file.
50108         * lib/unistdio/u8-vsnprintf.c: New file.
50109         * lib/unistdio/u8-vsprintf.c: New file.
50110         * lib/unistdio/u8-u8-asnprintf.c: New file.
50111         * lib/unistdio/u8-u8-asprintf.c: New file.
50112         * lib/unistdio/u8-u8-snprintf.c: New file.
50113         * lib/unistdio/u8-u8-sprintf.c: New file.
50114         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50115         * lib/unistdio/u8-u8-vasprintf.c: New file.
50116         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50117         * lib/unistdio/u8-u8-vsprintf.c: New file.
50118         * lib/unistdio/u16-asnprintf.c: New file.
50119         * lib/unistdio/u16-asprintf.c: New file.
50120         * lib/unistdio/u16-printf-parse.c: New file.
50121         * lib/unistdio/u16-snprintf.c: New file.
50122         * lib/unistdio/u16-sprintf.c: New file.
50123         * lib/unistdio/u16-vasnprintf.c: New file.
50124         * lib/unistdio/u16-vasprintf.c: New file.
50125         * lib/unistdio/u16-vsnprintf.c: New file.
50126         * lib/unistdio/u16-vsprintf.c: New file.
50127         * lib/unistdio/u16-u16-asnprintf.c: New file.
50128         * lib/unistdio/u16-u16-asprintf.c: New file.
50129         * lib/unistdio/u16-u16-snprintf.c: New file.
50130         * lib/unistdio/u16-u16-sprintf.c: New file.
50131         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50132         * lib/unistdio/u16-u16-vasprintf.c: New file.
50133         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50134         * lib/unistdio/u16-u16-vsprintf.c: New file.
50135         * lib/unistdio/u32-asnprintf.c: New file.
50136         * lib/unistdio/u32-asprintf.c: New file.
50137         * lib/unistdio/u32-printf-parse.c: New file.
50138         * lib/unistdio/u32-snprintf.c: New file.
50139         * lib/unistdio/u32-sprintf.c: New file.
50140         * lib/unistdio/u32-vasnprintf.c: New file.
50141         * lib/unistdio/u32-vasprintf.c: New file.
50142         * lib/unistdio/u32-vsnprintf.c: New file.
50143         * lib/unistdio/u32-vsprintf.c: New file.
50144         * lib/unistdio/u32-u32-asnprintf.c: New file.
50145         * lib/unistdio/u32-u32-asprintf.c: New file.
50146         * lib/unistdio/u32-u32-snprintf.c: New file.
50147         * lib/unistdio/u32-u32-sprintf.c: New file.
50148         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50149         * lib/unistdio/u32-u32-vasprintf.c: New file.
50150         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50151         * lib/unistdio/u32-u32-vsprintf.c: New file.
50152         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50153         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50154         * tests/unistdio/test-ulc-printf1.h: New file.
50155         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50156         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50157         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50158         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50159         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50160         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50161         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50162         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50163         * tests/unistdio/test-u8-asnprintf1.c: New file.
50164         * tests/unistdio/test-u8-asnprintf1.h: New file.
50165         * tests/unistdio/test-u8-printf1.h: New file.
50166         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50167         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50168         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50169         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50170         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50171         * tests/unistdio/test-u8-vasprintf1.c: New file.
50172         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50173         * tests/unistdio/test-u8-vsprintf1.c: New file.
50174         * tests/unistdio/test-u16-asnprintf1.c: New file.
50175         * tests/unistdio/test-u16-asnprintf1.h: New file.
50176         * tests/unistdio/test-u16-printf1.h: New file.
50177         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50178         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50179         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50180         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50181         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50182         * tests/unistdio/test-u16-vasprintf1.c: New file.
50183         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50184         * tests/unistdio/test-u16-vsprintf1.c: New file.
50185         * tests/unistdio/test-u32-asnprintf1.c: New file.
50186         * tests/unistdio/test-u32-asnprintf1.h: New file.
50187         * tests/unistdio/test-u32-printf1.h: New file.
50188         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50189         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50190         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50191         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50192         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50193         * tests/unistdio/test-u32-vasprintf1.c: New file.
50194         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50195         * tests/unistdio/test-u32-vsprintf1.c: New file.
50196         * modules/unistdio/base: New file.
50197         * modules/unistdio/u-printf-args: New file.
50198         * modules/unistdio/ulc-asnprintf: New file.
50199         * modules/unistdio/ulc-asprintf: New file.
50200         * modules/unistdio/ulc-fprintf: New file.
50201         * modules/unistdio/ulc-printf-parse: New file.
50202         * modules/unistdio/ulc-snprintf: New file.
50203         * modules/unistdio/ulc-sprintf: New file.
50204         * modules/unistdio/ulc-vasnprintf: New file.
50205         * modules/unistdio/ulc-vasprintf: New file.
50206         * modules/unistdio/ulc-vfprintf: New file.
50207         * modules/unistdio/ulc-vsnprintf: New file.
50208         * modules/unistdio/ulc-vsprintf: New file.
50209         * modules/unistdio/u8-asnprintf: New file.
50210         * modules/unistdio/u8-asprintf: New file.
50211         * modules/unistdio/u8-printf-parse: New file.
50212         * modules/unistdio/u8-snprintf: New file.
50213         * modules/unistdio/u8-sprintf: New file.
50214         * modules/unistdio/u8-vasnprintf: New file.
50215         * modules/unistdio/u8-vasprintf: New file.
50216         * modules/unistdio/u8-vsnprintf: New file.
50217         * modules/unistdio/u8-vsprintf: New file.
50218         * modules/unistdio/u8-u8-asnprintf: New file.
50219         * modules/unistdio/u8-u8-asprintf: New file.
50220         * modules/unistdio/u8-u8-snprintf: New file.
50221         * modules/unistdio/u8-u8-sprintf: New file.
50222         * modules/unistdio/u8-u8-vasnprintf: New file.
50223         * modules/unistdio/u8-u8-vasprintf: New file.
50224         * modules/unistdio/u8-u8-vsnprintf: New file.
50225         * modules/unistdio/u8-u8-vsprintf: New file.
50226         * modules/unistdio/u16-asnprintf: New file.
50227         * modules/unistdio/u16-asprintf: New file.
50228         * modules/unistdio/u16-printf-parse: New file.
50229         * modules/unistdio/u16-snprintf: New file.
50230         * modules/unistdio/u16-sprintf: New file.
50231         * modules/unistdio/u16-vasnprintf: New file.
50232         * modules/unistdio/u16-vasprintf: New file.
50233         * modules/unistdio/u16-vsnprintf: New file.
50234         * modules/unistdio/u16-vsprintf: New file.
50235         * modules/unistdio/u16-u16-asnprintf: New file.
50236         * modules/unistdio/u16-u16-asprintf: New file.
50237         * modules/unistdio/u16-u16-snprintf: New file.
50238         * modules/unistdio/u16-u16-sprintf: New file.
50239         * modules/unistdio/u16-u16-vasnprintf: New file.
50240         * modules/unistdio/u16-u16-vasprintf: New file.
50241         * modules/unistdio/u16-u16-vsnprintf: New file.
50242         * modules/unistdio/u16-u16-vsprintf: New file.
50243         * modules/unistdio/u32-asnprintf: New file.
50244         * modules/unistdio/u32-asprintf: New file.
50245         * modules/unistdio/u32-printf-parse: New file.
50246         * modules/unistdio/u32-snprintf: New file.
50247         * modules/unistdio/u32-sprintf: New file.
50248         * modules/unistdio/u32-vasnprintf: New file.
50249         * modules/unistdio/u32-vasprintf: New file.
50250         * modules/unistdio/u32-vsnprintf: New file.
50251         * modules/unistdio/u32-vsprintf: New file.
50252         * modules/unistdio/u32-u32-asnprintf: New file.
50253         * modules/unistdio/u32-u32-asprintf: New file.
50254         * modules/unistdio/u32-u32-snprintf: New file.
50255         * modules/unistdio/u32-u32-sprintf: New file.
50256         * modules/unistdio/u32-u32-vasnprintf: New file.
50257         * modules/unistdio/u32-u32-vasprintf: New file.
50258         * modules/unistdio/u32-u32-vsnprintf: New file.
50259         * modules/unistdio/u32-u32-vsprintf: New file.
50260         * modules/unistdio/ulc-asnprintf-tests: New file.
50261         * modules/unistdio/ulc-vasnprintf-tests: New file.
50262         * modules/unistdio/ulc-vasprintf-tests: New file.
50263         * modules/unistdio/ulc-vsnprintf-tests: New file.
50264         * modules/unistdio/ulc-vsprintf-tests: New file.
50265         * modules/unistdio/u8-asnprintf-tests: New file.
50266         * modules/unistdio/u8-vasnprintf-tests: New file.
50267         * modules/unistdio/u8-vasprintf-tests: New file.
50268         * modules/unistdio/u8-vsnprintf-tests: New file.
50269         * modules/unistdio/u8-vsprintf-tests: New file.
50270         * modules/unistdio/u16-asnprintf-tests: New file.
50271         * modules/unistdio/u16-vasnprintf-tests: New file.
50272         * modules/unistdio/u16-vasprintf-tests: New file.
50273         * modules/unistdio/u16-vsnprintf-tests: New file.
50274         * modules/unistdio/u16-vsprintf-tests: New file.
50275         * modules/unistdio/u32-asnprintf-tests: New file.
50276         * modules/unistdio/u32-vasnprintf-tests: New file.
50277         * modules/unistdio/u32-vasprintf-tests: New file.
50278         * modules/unistdio/u32-vsnprintf-tests: New file.
50279         * modules/unistdio/u32-vsprintf-tests: New file.
50280         * MODULES.html.sh (Unicode string functions): Add the new modules.
50281
50282 2007-07-01  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/sprintf.c (sprintf): Limit the available length estimation,
50285         to avoid address wraparound.
50286         * lib/vsprintf.c (vsprintf): Likewise.
50287         * modules/sprintf-posix (Dependencies): Add stdint.
50288         * modules/vsprintf-posix (Dependencies): Likewise.
50289
50290 2007-07-01  Bruno Haible  <bruno@clisp.org>
50291
50292         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50293         Windows PATH as well. Conservative double-quoting. Comments.
50294
50295 2007-07-01  Bruno Haible  <bruno@clisp.org>
50296             Eric Blake  <ebb9@byu.net>
50297             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50298
50299         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50300         empty components in $PATH, denoting '.'.
50301
50302 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50303
50304         * gnulib-tool: Fix indentation.
50305         (func_create_megatestdir): Likewise.
50306         Report by Bruno Haible.
50307
50308 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50309
50310         Sync from Automake.
50311         * build-aux/gnupload: Fix shell portability issues with for loops.
50312         Report by Karl Berry.
50313
50314 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50315
50316         * build-aux/maint.mk (POURL): Use translationproject.org.
50317
50318 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50319             Bruno Haible  <bruno@clisp.org>
50320
50321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50322         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50323         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50324         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50325         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50326
50327 2007-06-27  Bruno Haible  <bruno@clisp.org>
50328
50329         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50330         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50331
50332 2007-06-26  Karl Berry  <karl@gnu.org>
50333
50334         * MODULES.html.sh: remove xreadlink-with-size.
50335
50336 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50337
50338         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50339         method that I hope also handles the double-include problem noted
50340         by Bruno Haible in
50341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50342
50343 2007-06-23  Bruno Haible  <bruno@clisp.org>
50344
50345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50346         Don't let the 'mostlyclean' target fail if the last subdirectory could
50347         not be removed.
50348         Reported by Karl Berry.
50349
50350 2007-06-23  Bruno Haible  <bruno@clisp.org>
50351
50352         * gnulib-tool (echo): Add a speedier workaround for ksh.
50353         * tests/test-echo.sh: Likewise.
50354
50355 2007-06-23  Bruno Haible  <bruno@clisp.org>
50356
50357         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50358         * tests/test-echo.sh: Likewise.
50359
50360 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50361
50362         * gnulib-tool (IFS): Initialize early, so we don't set it to
50363         empty later.
50364         (self_abspathname): Rewrite algorithm to set it, reindent.
50365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50366         (func_create_megatestdir): Merge some sed scripts.
50367
50368 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50369
50370         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50371         exposed by Sun Studio 11 cc on Solaris 8.
50372
50373 2007-06-22  Bruno Haible  <bruno@clisp.org>
50374
50375         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50376         backslashes.
50377         * tests/test-echo.sh: New file.
50378
50379 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50380
50381         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50382         simplify `sed_replace_build_aux' scripts, they are portable but
50383         echoing them with `echo' is not.
50384         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50385
50386 2007-06-21  Karl Berry  <karl@gnu.org>
50387
50388         * config/srclist.txt: guess we can't handle the licenses via
50389         srclist at the moment.
50390
50391 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         * MODULES.html.sh: Add include_next.
50394         * modules/include_next: New file.
50395
50396 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50397
50398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50399         INCLUDE_NEXT.
50400         (gl_CHECK_NEXT_HEADERS): New macro.
50401         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50402         the obsolescent gl_ABSOLUTE_HEADER.
50403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50404         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50405         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50406         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50407         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50408         * m4/math_h.m4 (gl_MATH_H): Likewise.
50409         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50410         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50411         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50412         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50413         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50414         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50415         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50419         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50420         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50421         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50422         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50423         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50424         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50425         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50426         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50427         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50428         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50429         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50430         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50431         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50432         * lib/float_.h: Likewise.
50433         * lib/inttypes_.h: Likewise.
50434         * lib/math_.h: Likewise.
50435         * lib/search_.h: Likewise.
50436         * lib/signal_.h: Likewise.
50437         * lib/stdint_.h: Likewise.
50438         * lib/stdio_.h: Likewise.
50439         * lib/stdlib_.h: Likewise.
50440         * lib/string_.h: Likewise.
50441         * lib/sys_stat_.h: Likewise.
50442         * lib/sys_time_.h: Likewise.
50443         * lib/time_.h: Likewise.
50444         * lib/unistd_.h: Likewise.
50445         * lib/wchar_.h: Likewise.
50446         * lib/wctype_.h: Likewise.
50447         * lib/dirent_.h: Likewise.
50448         * lib/iconv_.h: Likewise.
50449         * lib/locale_.h: Likewise.
50450         * lib/netinet_in_.h: Likewise.
50451         * lib/sys_select_.h: Likewise.
50452         * lib/sys_socket_.h: Likewise.
50453         * lib/sysexits_.h: Likewise.
50454         * modules/fcntl (Depends-on): Depend on include_next, not
50455         absolute_header.
50456         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50457         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50458         * modules/fchdir: Likewise.
50459         * modules/float: Likewise.
50460         * modules/iconv_open: Likewise.
50461         * modules/inttypes: Likewise.
50462         * modules/locale: Likewise.
50463         * modules/math: Likewise.
50464         * modules/netinet_in: Likewise.
50465         * modules/search: Likewise.
50466         * modules/signal: Likewise.
50467         * modules/stdint: Likewise.
50468         * modules/stdio: Likewise.
50469         * modules/stdlib: Likewise.
50470         * modules/string: Likewise.
50471         * modules/sys_select: Likewise.
50472         * modules/sys_socket: Likewise.
50473         * modules/sys_stat: Likewise.
50474         * modules/sys_time: Likewise.
50475         * modules/sysexits: Likewise.
50476         * modules/time: Likewise.
50477         * modules/unistd: Likewise.
50478         * modules/wchar: Likewise.
50479         * modules/wctype: Likewise.
50480         * modules/sys_stat: Change maintainer to "all".
50481         * modules/unistd: Likewise.
50482
50483 2007-06-20  Karl Berry  <karl@gnu.org>
50484
50485         * config/srclist.txt: track www changes in license files.
50486
50487 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50488
50489         * build-aux/bootstrap: Remove stray dot.
50490         Make sure build_aux settings are honored when linking
50491         gnulib_extra_files.
50492
50493 2007-06-19  Eric Blake  <ebb9@byu.net>
50494
50495         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50496         Allow compilation on cygwin.
50497
50498 2007-06-19  Jim Meyering  <jim@meyering.net>
50499
50500         xreadlink-with-size: Remove module.  No longer used.
50501         Ex-callers now use xreadlink or mreadlink-with-size.
50502         * modules/xreadlink-with-size: Remove module.
50503         * lib/xreadlink-with-size.c: Remove file.
50504         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50505         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50506         just before the function definition *is* accurate.
50507
50508         Eliminate one way canonicalize_filename_mode could exit.
50509         * lib/canonicalize.c (canonicalize_filename_mode):
50510         Use mreadlink_with_size, not xreadlink_with_size.
50511
50512 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         Detect porting problems to FreeBSD/arm, which has time_t wider than
50515         long int.  Original problem reported for GNU diff by Xin Li in
50516         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50517         * modules/getdate (Depends-on): Add intprops, verify.
50518         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50519         is an integer type no wider than long int.
50520
50521 2007-06-18  Jim Meyering  <jim@meyering.net>
50522
50523         New module: mreadlink-with-size.
50524         * MODULES.html.sh: Add mreadlink-with-size.
50525         * modules/mreadlink-with-size: New module
50526         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50527         not xreadlink-with-size.
50528         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50529
50530 2007-06-16  Bruno Haible  <bruno@clisp.org>
50531
50532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50533         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50534         Reported by Gary V. Vaughan <gary@gnu.org>.
50535
50536 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50537
50538         Revamp lchown so that it lives in unistd.h where it belongs.
50539         * lib/lchown.h: Remove.
50540         * lib/dirchownmod.c: Don't include lib/lchown.h.
50541         * lib/fchownat.c: Likewise.
50542         * lib/openat.c: Likewise.
50543         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50544         does not follow symlinks.
50545         (EOPNOTSUPP): Define if not defined.
50546         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50547         is defined to 0.
50548         (lchown): New decl.
50549         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50550         Do not check for lchown decl.
50551         Set REPLACE_LCHOWN.
50552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50553         REPLACE_LCHOWN.
50554         * modules/chown: Make it clear it follows symlinks.
50555         * modules/lchown: Make it clear it doesn't follow symlinks.
50556         (Files): Remove lib/lchown.h
50557         (Depends-on): Add unistd.
50558         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50559         (Include): Include <unistd.h>, not "lchown.h".
50560         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50561         REPLACE_LCHOWN.
50562
50563 2007-06-15  Jim Meyering  <jim@meyering.net>
50564
50565         Change license (GPL to LGPL) of fsusage and dependents.
50566         * modules/fsusage (License): Change to LGPL.
50567         * modules/full-read (License): Likewise.
50568         * modules/full-write (License): Likewise.
50569         * modules/safe-read (License): Likewise.
50570         * modules/safe-write (License): Likewise.
50571
50572 2007-06-14  Ben Pfaff  <blp@gnu.org>
50573
50574         Missing part of allocsa -> malloca transition.
50575         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50576         gl_MALLOCA.
50577
50578 2007-06-12  Bruno Haible  <bruno@clisp.org>
50579
50580         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50581         to ia64, x86_64, i386.
50582         Reported by Eric Blake.
50583
50584 2007-06-12  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50587         cross-compiling to x86_64.
50588
50589 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50592         glitch reported by Ralf Wildenhues in
50593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50594
50595         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50596         Vin Shelton.
50597
50598 2007-06-11  Bruno Haible  <bruno@clisp.org>
50599
50600         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50601         replacement string.
50602         Reported by Eric Blake.
50603
50604 2007-06-10  Bruno Haible  <bruno@clisp.org>
50605
50606         Prepare vasnprintf code for use with Unicode strings.
50607         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50608         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50609         TYPE_U32_STRING.
50610         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50611         a_u32_string variants.
50612         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50613         * lib/printf-args.c: Don't include config.h and the specification
50614         header if PRINTF_FETCHARGS is already defined.
50615         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50616         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50617         TYPE_U16_STRING, TYPE_U32_STRING.
50618         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50619         u16_directive, u16_directives, u32_directive, u32_directives): New
50620         types.
50621         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50622         New declarations.
50623         * lib/printf-parse.c: Don't include config.h and the specification
50624         header if PRINTF_PARSE is already defined. Eliminate the set of
50625         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50626         them now. Include c-ctype.h.
50627         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50628         directive and CHAR_T_ONLY_ASCII.
50629         * lib/vasnprintf.c: Don't include config.h and the specification header
50630         if VASNPRINTF is already defined.
50631         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50632         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50633         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50634         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50635         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50636         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50637         code accordingly.
50638         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50639         pad_ourselves also in this case, with the 'c' and 's' directives, and
50640         with a different notion of "width".
50641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50642
50643 2007-06-10  Bruno Haible  <bruno@clisp.org>
50644
50645         * modules/unistr/u32-mbsnlen: New file.
50646         * lib/unistr/u32-mbsnlen.c: New file.
50647
50648         * modules/unistr/u16-mbsnlen: New file.
50649         * lib/unistr/u16-mbsnlen.c: New file.
50650
50651         * modules/unistr/u8-mbsnlen: New file.
50652         * lib/unistr/u8-mbsnlen.c: New file.
50653
50654         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50655         declarations.
50656
50657 2007-06-10  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/string_.h (mbsnlen): New declaration.
50660         * lib/mbsnlen.c: New file.
50661         * m4/mbsnlen.m4: New file.
50662         * modules/mbsnlen: New file.
50663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50664         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50665         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50666
50667 2007-06-10  Bruno Haible  <bruno@clisp.org>
50668
50669         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50670
50671 2007-06-10  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50674         * lib/mbuiter.h: Likewise.
50675
50676 2007-06-10  Bruno Haible  <bruno@clisp.org>
50677
50678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50679         declaration.
50680
50681 2007-06-10  Karl Berry  <karl@gnu.org>
50682
50683         * config/srclist.txt: remove gettext entries, Bruno prefers
50684         to update individually.
50685
50686 2007-06-10  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50689         'maxlen'. Ensure only length + width bytes are allocated, not
50690         length + 1 + width.
50691
50692 2007-06-09  Bruno Haible  <bruno@clisp.org>
50693
50694         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50695         (CHAR_T): Remove macro.
50696         (VASNPRINTF): Update.
50697
50698 2007-06-09  Bruno Haible  <bruno@clisp.org>
50699
50700         * MODULES.html.sh (Unicode string functions): Add the new modules.
50701
50702         * modules/uniconv/u32-conv-to-enc: New file.
50703         * lib/uniconv/u32-conv-to-enc.c: New file.
50704         * modules/uniconv/u32-conv-to-enc-tests: New file.
50705         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50706
50707         * modules/uniconv/u16-conv-to-enc: New file.
50708         * lib/uniconv/u16-conv-to-enc.c: New file.
50709         * lib/uniconv/u-conv-to-enc.h: New file.
50710         * modules/uniconv/u16-conv-to-enc-tests: New file.
50711         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50712
50713         * modules/uniconv/u8-conv-to-enc: New file.
50714         * lib/uniconv/u8-conv-to-enc.c: New file.
50715         * modules/uniconv/u8-conv-to-enc-tests: New file.
50716         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50717
50718         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50719         u32_conv_to_encoding): New declarations.
50720
50721 2007-06-09  Bruno Haible  <bruno@clisp.org>
50722
50723         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50724
50725 2007-06-09  Bruno Haible  <bruno@clisp.org>
50726
50727         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50728         * modules/malloca: Renamed from modules/allocsa, updated.
50729         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50730         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50731         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50732         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50733         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50734         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50735         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50736         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50737         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50738         * modules/c-strcasestr (Depends-on): Update.
50739         * lib/c-strcasestr.c: Update.
50740         * modules/c-strstr (Depends-on): Update.
50741         * lib/c-strstr.c: Update.
50742         * modules/canonicalize-lgpl (Depends-on): Update.
50743         * lib/canonicalize-lgpl.c: Update.
50744         * modules/clean-temp (Depends-on): Update.
50745         * lib/clean-temp.c: Update.
50746         * modules/csharpcomp (Depends-on): Update.
50747         * lib/csharpcomp.c: Update.
50748         * modules/csharpexec (Depends-on): Update.
50749         * lib/csharpexec.c: Update.
50750         * modules/javacomp (Depends-on): Update.
50751         * lib/javacomp.c: Update.
50752         * modules/javaexec (Depends-on): Update.
50753         * lib/javaexec.c: Update.
50754         * modules/mbscasestr (Depends-on): Update.
50755         * lib/mbscasestr.c: Update.
50756         * modules/mbsstr (Depends-on): Update.
50757         * lib/mbsstr.c: Update.
50758         * modules/setenv (Depends-on): Update.
50759         * lib/setenv.c: Update.
50760         * modules/strcasestr (Depends-on): Update.
50761         * lib/strcasestr.c: Update.
50762         * modules/striconveha (Depends-on): Update.
50763         * lib/striconveha.c: Update.
50764         * modules/relocatable-prog-wrapper (Files): Update.
50765         * lib/relocwrapper.c: Update.
50766         * build-aux/install-reloc: Update.
50767         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50768
50769 2007-06-08  Bruno Haible  <bruno@clisp.org>
50770
50771         Port to uClibc.
50772         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50773         * lib/fpurge.c (fpurge): Likewise.
50774         * lib/freading.c (freading): Likewise.
50775         * lib/fseeko.c (rpl_fseeko): Likewise.
50776         * lib/fseterr.c (fseterr): Likewise.
50777         * lib/fwriting.c (fwriting): Likewise.
50778         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50779
50780 2007-06-08  Bruno Haible  <bruno@clisp.org>
50781
50782         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50783         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50784         * modules/gettext (Files): Add m4/intlmacosx.m4.
50785
50786 2007-06-07  Bruno Haible  <bruno@clisp.org>
50787
50788         * modules/localename-tests: New file.
50789         * tests/test-localename.c: New file.
50790
50791         New module 'localename'.
50792         * lib/localename.h: New file.
50793         * lib/localename.c: New file, from GNU gettext.
50794         * m4/localename.m4: New file.
50795         * modules/localename: New file.
50796
50797 2007-06-07  Bruno Haible  <bruno@clisp.org>
50798
50799         Work around the lack of <wchar.h> on some builds of uClibc.
50800         * doc/headers/wchar.texi: Update.
50801         * lib/wchar_.h: Include <wchar.h> only if it exists.
50802         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50803         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50804         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50805         doesn't exist.
50806         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50807         * modules/mbfile (Depends-on): Add wchar.
50808         * modules/mbiter (Depends-on): Likewise.
50809         * modules/mbuiter (Depends-on): Likewise.
50810         Reported by Simon Josefsson.
50811
50812 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         Work around problem reported by Steven M. Schweda in
50815         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50816         Tru64 5.1B with the Compaq compiler environment installed declares
50817         an 'isblank' function but does not define it in the C library.
50818         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50819         * lib/regex_internal.h (isblank): Likewise.
50820         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50821         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50822
50823 2007-06-05  Bruno Haible  <bruno@clisp.org>
50824
50825         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50826         ia64.
50827         * modules/printf-safe: New file.
50828         * modules/fprintf-posix (Depends-on): Add printf-safe.
50829         * modules/printf-posix (Depends-on): Likewise.
50830         * modules/snprintf-posix (Depends-on): Likewise.
50831         * modules/sprintf-posix (Depends-on): Likewise.
50832         * modules/vasnprintf-posix (Depends-on): Likewise.
50833         * modules/vasprintf-posix (Depends-on): Likewise.
50834         * modules/vfprintf-posix (Depends-on): Likewise.
50835         * modules/vprintf-posix (Depends-on): Likewise.
50836         * modules/vsnprintf-posix (Depends-on): Likewise.
50837         * modules/vsprintf-posix (Depends-on): Likewise.
50838         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50839         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50840         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50841         "no" on i386, x86_64, ia64.
50842         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50843         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50844         on i386, x86_64, ia64.
50845         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50846         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50847         on i386, x86_64, ia64.
50848         * tests/test-vasnprintf-posix.c: Include float.h.
50849         (LDBL80_WORDS): New macro.
50850         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50851         on i386, x86_64, ia64.
50852         * tests/test-vasprintf-posix.c: Include float.h.
50853         (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-snprintf-posix.c: Include float.h.
50857         * tests/test-sprintf-posix.c: Likewise.
50858         * tests/test-vsnprintf-posix.c: Likewise.
50859         * tests/test-vsprintf-posix.c: Likewise.
50860
50861 2007-06-05  Bruno Haible  <bruno@clisp.org>
50862
50863         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50864         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50865         non-IEEE numbers on i386, x86_64, ia64.
50866         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50867         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50868         * tests/test-isnanl.h: Include float.h.
50869         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50870
50871 2007-06-05  Bruno Haible  <bruno@clisp.org>
50872
50873         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50874         also the %a / %A. Handle the %a / %A code before this extra handling.
50875
50876 2007-06-05  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50879         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50880
50881 2007-06-05  Bruno Haible  <bruno@clisp.org>
50882
50883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50884         typo in variable name.
50885
50886 2007-06-05  Eric Blake  <ebb9@byu.net>
50887
50888         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50889         Reported by Simon Josefsson.
50890
50891 2007-06-04  Bruno Haible  <bruno@clisp.org>
50892
50893         Avoid test failures on some PowerPC platforms.
50894         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50895         Define differently for PowerPC.
50896         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50897         Reported by Gary V. Vaughan <gary@gnu.org>.
50898
50899 2007-06-02  Bruno Haible  <bruno@clisp.org>
50900
50901         Fix test-stdint failure on FreeBSD/ia64.
50902         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50903         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50904         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50905         * doc/headers/stdint.texi: Update.
50906
50907 2007-06-01  Bruno Haible  <bruno@clisp.org>
50908
50909         * tests/test-binary-io.c (main): Pass a third argument to open().
50910         Reported by Gary V. Vaughan <gary@gnu.org>.
50911
50912 2007-06-01  Bruno Haible  <bruno@clisp.org>
50913
50914         * doc/functions/frexpl.texi: Update for mingw.
50915
50916 2007-06-01  Bruno Haible  <bruno@clisp.org>
50917
50918         * tests/test-lseek.c (main): Disable test of errno for invalid third
50919         argument.
50920         * doc/functions/lseek.texi: Update.
50921         Reported by Gary V. Vaughan <gary@gnu.org>.
50922
50923 2007-05-28  Bruno Haible  <bruno@clisp.org>
50924
50925         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50926
50927 2007-05-31  Eric Blake  <ebb9@byu.net>
50928
50929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50930         cross compiling.
50931
50932 2007-05-30  Eric Blake  <ebb9@byu.net>
50933         and Bruno Haible  <bruno@clisp.org>
50934
50935         Work around mingw test failures exposed by m4-1.4.9b.
50936         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50937         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50938         moment.
50939
50940 2007-05-30  Bruno Haible  <bruno@clisp.org>
50941
50942         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50943         assuming that they are closed. Needed on HP-UX 11.
50944
50945 2007-05-29  Bruno Haible  <bruno@clisp.org>
50946
50947         Fix a problem with #include_next.
50948         * lib/dirent_.h: Split the double-inclusion guard.
50949         * lib/fcntl_.h: Likewise.
50950         * lib/float_.h: Likewise.
50951         * lib/iconv_.h: Likewise.
50952         * lib/inttypes_.h: Likewise.
50953         * lib/locale_.h: Likewise.
50954         * lib/math_.h: Likewise.
50955         * lib/netinet_in_.h: Likewise.
50956         * lib/search_.h: Likewise.
50957         * lib/signal_.h: Likewise.
50958         * lib/stdint_.h: Likewise.
50959         * lib/stdio_.h: Likewise.
50960         * lib/stdlib_.h: Likewise.
50961         * lib/string_.h: Likewise.
50962         * lib/sys_select_.h: Likewise.
50963         * lib/sys_socket_.h: Likewise.
50964         * lib/sys_stat_.h: Likewise.
50965         * lib/sys_time_.h: Likewise.
50966         * lib/sysexits_.h: Likewise.
50967         * lib/time_.h: Likewise.
50968         * lib/unistd_.h: Likewise.
50969         * lib/wchar_.h: Likewise.
50970         * lib/wctype_.h: Likewise.
50971
50972 2007-05-29  Bruno Haible  <bruno@clisp.org>
50973
50974         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50975         for the moment.
50976
50977 2007-05-29  Bruno Haible  <bruno@clisp.org>
50978
50979         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50980         invocation.
50981         Reported by Eric Blake.
50982
50983 2007-05-29  Bruno Haible  <bruno@clisp.org>
50984
50985         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50986         compiling case.
50987
50988 2007-05-29  Eric Blake  <ebb9@byu.net>
50989             Bruno Haible  <bruno@clisp.org>
50990
50991         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50992         cross compiles.
50993
50994 2007-05-28  Eric Blake  <ebb9@byu.net>
50995
50996         * modules/closein-tests (test_closein_LDADD): Support test on
50997         cygwin with libtool.
50998
50999 2007-05-28  Bruno Haible  <bruno@clisp.org>
51000
51001         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51002         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51003         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51004         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51005         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51006         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51007         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51008         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51009         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51010
51011 2007-05-28  Eric Blake  <ebb9@byu.net>
51012
51013         Unconditionally include <config.h> in unit tests.
51014         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51015         * tests/test-allocsa.c, tests/test-arcfour.c,
51016         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51017         tests/test-array_list.c, tests/test-array_oset.c,
51018         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51019         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51020         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51021         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51022         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51023         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51024         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51025         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51026         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51027         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51028         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51029         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51030         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51031         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51032         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51033         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51034         test-md5.c, test-memmem.c, test-printf-posix.c,
51035         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51036         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51037         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51038         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51039         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51040         test-vasnprintf-posix2.c, test-vasnprintf.c,
51041         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51042         test-vfprintf-posix.c, test-vprintf-posix.c,
51043         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51044         test-xvasprintf.c: Likewise.
51045
51046 2007-05-28  Bruno Haible  <bruno@clisp.org>
51047
51048         * gnulib-tool (func_import): Remember the --with-tests command-line
51049         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51050         Reported by Eric Blake.
51051
51052 2007-05-28  Bruno Haible  <bruno@clisp.org>
51053
51054         * modules/ftell-tests: New file.
51055         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51056         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51057
51058         * lib/ftell.c: New file.
51059         * modules/ftell: New file.
51060         * m4/ftell.m4: New file.
51061         * doc/functions/ftell.texi: Update.
51062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51063         REPLACE_FTELL.
51064         * lib/stdio_.h (rpl_ftell): New declaration.
51065         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51066         REPLACE_FTELL.
51067
51068 2007-05-28  Eric Blake  <ebb9@byu.net>
51069
51070         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51071
51072 2007-05-28  Bruno Haible  <bruno@clisp.org>
51073
51074         * modules/fseek-tests: New file.
51075         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51076         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51077
51078         * lib/fseek.c: New file.
51079         * modules/fseek: New file.
51080         * m4/fseek.m4: New file.
51081         * doc/functions/fseek.texi: Update.
51082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51083         REPLACE_FSEEK.
51084         * lib/stdio_.h (rpl_fseek): New declaration.
51085         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51086         REPLACE_FSEEK.
51087
51088 2007-05-28  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/stdio_.h (fflush): More comments.
51091
51092 2007-05-28  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51095         runtime test.
51096
51097 2007-05-28  Eric Blake  <ebb9@byu.net>
51098
51099         Improve lseek module.
51100         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51101         * lib/unistd_.h (lseek): Scale back link warning message.
51102         * tests/test-lseek.c: Beef up test.
51103         * tests/test-lseek.sh: Exercise more facets of lseek.
51104         Reported by Bruno Haible.
51105
51106 2007-05-28  Bruno Haible  <bruno@clisp.org>
51107
51108         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51109         to define.
51110
51111 2007-05-27  Bruno Haible  <bruno@clisp.org>
51112
51113         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51114
51115 2007-05-27  Bruno Haible  <bruno@clisp.org>
51116
51117         * modules/openmp: New file.
51118         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51119         Noah Misch.
51120
51121 2007-05-26  Bruno Haible  <bruno@clisp.org>
51122
51123         * modules/chdir-long (Depends-on): Add fchdir.
51124         * modules/chdir-safer (Depends-on): Likewise.
51125         * modules/fts (Depends-on): Likewise.
51126         * modules/fts-lgpl (Depends-on): Likewise.
51127         * modules/openat (Depends-on): Likewise.
51128         * modules/savewd (Depends-on): Likewise.
51129
51130 2007-05-24  Eric Blake  <ebb9@byu.net>
51131
51132         Fix lseek on mingw.
51133         * modules/lseek: New module.
51134         * m4/lseek.m4: New file.
51135         * lib/lseek.c: New file.
51136         * modules/lseek-tests: New file.
51137         * tests/test-lseek.c: New file.
51138         * tests/test-lseek.sh: New file.
51139         * MODULES.html.sh: Document lseek module.
51140         * modules/fflush (Depends-on): Add lseek, fseeko.
51141         * modules/fseeko (Depends-on): Likewise.
51142         * modules/ftello (Depends-on): Likewise.
51143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51144         broken.
51145         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51146         broken.
51147         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51148         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51149         * lib/ftello.c (rpl_ftello): Likewise.
51150         * tests/test-fseeko.c (main): Test this.
51151         * tests/test-fseeko.sh: Likewise.
51152         * tests/test-ftello.c (main): Likewise.
51153         * tests/test-ftello.sh: Likewise.
51154         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51155         implies replacing fseek.
51156         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51157         HAVE_FTELLO.
51158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51159         * modules/unistd (Makefile.am): Likewise.
51160         * lib/unistd_.h (lseek): Declare a replacement.
51161         * doc/functions/lseek.texi (lseek): Document this fix.
51162         * doc/functions/fseek.texi (fseek): Likewise.
51163         * doc/functions/ftell.texi (ftell): Likewise.
51164
51165 2007-05-24  Bruno Haible  <bruno@clisp.org>
51166
51167         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51168         in the printed representation of a NaN.
51169         * tests/test-vasprintf-posix.c (test_function): Likewise.
51170         * tests/test-snprintf-posix.h (test_function): Likewise.
51171         * tests/test-sprintf-posix.h (test_function): Likewise.
51172         Reported by Eric Blake.
51173
51174 2007-05-23  Eric Blake  <ebb9@byu.net>
51175
51176         Fix fseeko/ftello on cygwin 1.5.24.
51177         * doc/functions/fseeko.texi (fseeko): Document the fix.
51178         * doc/functions/ftello.texi (ftello): Document the fix.
51179         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51180         * doc/functions/stdout.text (stdout): New file.
51181         * doc/functions/stderr.text (stderr): New file.
51182         * doc/gnulib.texi (Function Substitutes): Use new files.
51183         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51184         prior to 1.7.0.
51185         * tests/test-ftello.c (main): Likewise for ftello.
51186         * tests/test-fseeko.sh: New file.
51187         * tests/test-ftello.sh: New file.
51188         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51189         with seekable stdin.
51190         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51192         (gl_REPLACE_FSEEKO): New macro.
51193         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51194         * modules/fseeko (Files): Distribute fseeko.c.
51195         * modules/ftello (Files): Distribute ftello.c.
51196         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51197         mode.
51198         * lib/ftello.c (rpl_ftello): New file.
51199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51200         fseeko, ftello.
51201         (gl_STDIN_LARGE_OFFSET): New macro.
51202         * modules/stdio (Makefile.am): Perform the replacement.
51203         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51204
51205 2007-05-23  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51208         GNULIB_POSIXCHECK is defined.
51209
51210 2007-05-21  Bruno Haible  <bruno@clisp.org>
51211
51212         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51213         Check also the output for NaN arguments. When cross-compiling, guess
51214         no on IRIX.
51215         * lib/vasnprintf.c: Update comments.
51216         * tests/test-vasnprintf-posix.c (strisnan): New function.
51217         (test_function): Use it.
51218         * tests/test-vasprintf-posix.c (strisnan): New function.
51219         (test_function): Use it.
51220         * tests/test-snprintf-posix.h (strisnan): New function.
51221         (test_function): Use it.
51222         * tests/test-sprintf-posix.h (strisnan): New function.
51223         (test_function): Use it.
51224         Reported by Eric Blake.
51225
51226 2007-05-20  Bruno Haible  <bruno@clisp.org>
51227
51228         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51229         numbers that fails on BeOS.
51230         * doc/functions/frexpl.texi: Update.
51231
51232 2007-05-20  Jim Meyering  <jim@meyering.net>
51233
51234         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51235         forced upon us by glibc-2.6.
51236
51237 2007-05-20  Bruno Haible  <bruno@clisp.org>
51238
51239         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51240         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51241         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51242         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51243         NEED_PRINTF_INFINITE.
51244         (is_infinitel): New function.
51245         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51247         gl_PREREQ_VASNPRINTF_INFINITE.
51248         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51249         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51250         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51251         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51252         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51253         gl_PREREQ_VASNPRINTF_INFINITE.
51254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51261         * doc/functions/fprintf.texi: Update.
51262         * doc/functions/printf.texi: Update.
51263         * doc/functions/snprintf.texi: Update.
51264         * doc/functions/sprintf.texi: Update.
51265         * doc/functions/vfprintf.texi: Update.
51266         * doc/functions/vprintf.texi: Update.
51267         * doc/functions/vsnprintf.texi: Update.
51268         * doc/functions/vsprintf.texi: Update.
51269
51270 2007-05-20  Bruno Haible  <bruno@clisp.org>
51271
51272         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51273         was not found in libc.
51274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51275
51276 2007-05-20  Bruno Haible  <bruno@clisp.org>
51277
51278         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51279         printed as "-nan" instead of "nan".
51280         * tests/test-vasprintf-posix.c (test_function): Likewise.
51281         * tests/test-snprintf-posix.h (test_function): Likewise.
51282         * tests/test-sprintf-posix.h (test_function): Likewise.
51283         Needed for HP-UX 11.
51284
51285 2007-05-20  Jim Meyering  <jim@meyering.net>
51286
51287         Fix buggy test for the fchownat-deref bug.
51288         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51289         symlink required for the run-test.  Without it, this test would
51290         always declare that fchownat doesn't work, and client code would
51291         unnecessarily use the replacement function with fixed libc.
51292         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51293         Reported by Greg Schafer.
51294
51295 2007-05-19  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51298         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51299         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51300         Needed for IRIX 6.5 and Solaris 2.5.1.
51301
51302 2007-05-19  Bruno Haible  <bruno@clisp.org>
51303
51304         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51305         (test_function): Skip tests involving -0.0 on platforms where
51306         -0.0 = 0.0.
51307         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51308         (test_function): Skip tests involving -0.0 on platforms where
51309         -0.0 = 0.0.
51310         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51311         (test_function): Skip tests involving -0.0 on platforms where
51312         -0.0 = 0.0.
51313         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51314         (test_function): Skip tests involving -0.0 on platforms where
51315         -0.0 = 0.0.
51316         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51317         tests.
51318         * tests/test-printf-posix.h (test_function): Likewise.
51319         * tests/test-printf-posix.output: Remove all -0.0 related results.
51320         Needed for IRIX 6.5.
51321
51322 2007-05-19  Bruno Haible  <bruno@clisp.org>
51323
51324         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51325         printed as "nan0x7fffffff" instead of "nan".
51326         * tests/test-vasprintf-posix.c (test_function): Likewise.
51327         * tests/test-snprintf-posix.h (test_function): Likewise.
51328         * tests/test-sprintf-posix.h (test_function): Likewise.
51329         * tests/test-fprintf-posix.h (NaN): Remove macro.
51330         (test_function): Remove all NaN related tests.
51331         * tests/test-printf-posix.h (NaN): Remove macro.
51332         (test_function): Remove all NaN related tests.
51333         * tests/test-printf-posix.output: Remove all NaN related results.
51334         Needed for IRIX 6.5.
51335
51336 2007-05-19  Bruno Haible  <bruno@clisp.org>
51337
51338         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51340
51341 2007-05-19  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/float_.h: New file.
51344         * m4/float_h.m4: New file.
51345         * modules/float: New file.
51346         * modules/isnanl (Dependencies): Add float.
51347         * modules/isnanl-nolibm (Dependencies): Likewise.
51348         * modules/mathl (Dependencies): Likewise.
51349         * modules/printf-frexpl (Dependencies): Likewise.
51350         * modules/signbit (Dependencies): Likewise.
51351         * modules/vasnprintf (Dependencies): Likewise.
51352         * doc/headers/float.texi: Update.
51353
51354 2007-05-19  Jim Meyering  <jim@meyering.net>
51355
51356         * lib/utimens.c (gl_futimens): Rename from futimens,
51357         now that glibc-2.6 declares futimens.
51358         * lib/utimens.h: Likewise.
51359
51360 2007-05-19  Bruno Haible  <bruno@clisp.org>
51361
51362         Avoid test failures on mingw.
51363         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51364         * tests/test-printf-posix.sh: Likewise.
51365         * tests/test-vfprintf-posix.sh: Likewise.
51366         * tests/test-vprintf-posix.sh: Likewise.
51367
51368 2007-05-19  Bruno Haible  <bruno@clisp.org>
51369
51370         Fix *printf result for NaN, Inf, -0.0 on mingw.
51371         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51372         * lib/vasnprintf.c: Include math.h and isnan.h.
51373         (is_infinite_or_zero): New function.
51374         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51375         values in the %f, %F, %e, %E, %g, %G directives.
51376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51378         gl_PRINTF_INFINITE and test its result. Invoke
51379         gl_PREREQ_VASNPRINTF_INFINITE.
51380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51387         * doc/functions/fprintf.texi: Update.
51388         * doc/functions/printf.texi: Update.
51389         * doc/functions/snprintf.texi: Update.
51390         * doc/functions/sprintf.texi: Update.
51391         * doc/functions/vfprintf.texi: Update.
51392         * doc/functions/vprintf.texi: Update.
51393         * doc/functions/vsnprintf.texi: Update.
51394         * doc/functions/vsprintf.texi: Update.
51395
51396 2007-05-19  Bruno Haible  <bruno@clisp.org>
51397
51398         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51399         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51400         Instead of multiplying with 10^k, set extra_zeroes to k.
51401         (scale10_round_long_double): Remove function.
51402
51403 2007-05-18  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51406         introduced on 2007-05-06.
51407
51408 2007-05-18  Bruno Haible  <bruno@clisp.org>
51409
51410         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51411         %g directives.
51412         * tests/test-vasprintf-posix.c (test_function): Likewise.
51413         * tests/test-snprintf-posix.h (test_function): Likewise.
51414         * tests/test-sprintf-posix.h (test_function): Likewise.
51415
51416 2007-05-18  Bruno Haible  <bruno@clisp.org>
51417
51418         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51419         (strmatch): New function.
51420         (test_function): Test the %f directive on numbers of various exponents.
51421         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51422         (strmatch): New function.
51423         (test_function): Test the %f directive on numbers of various exponents.
51424         * tests/test-snprintf-posix.h (strmatch): New function.
51425         (test_function): Test the %f directive on numbers of various exponents.
51426         * tests/test-sprintf-posix.h (strmatch): New function.
51427         (test_function): Test the %f directive on numbers of various exponents.
51428         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51429         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51430         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51431         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51432
51433 2007-05-18  Bruno Haible  <bruno@clisp.org>
51434
51435         Add support for 'long double' number output.
51436         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51437         * lib/vasnprintf.c: Include math.h and float+.h.
51438         (mp_limb_t): New type.
51439         (GMP_LIMB_BITS): New macro.
51440         (mp_twolimb_t): New type.
51441         (GMP_TWOLIMB_BITS): New macro.
51442         (mpn_t): New type.
51443         (multiply, divide, convert_to_decimal, decode_long_double,
51444         scale10_round_long_double, scale10_round_decimal_long_double,
51445         floorlog10l): New functions.
51446         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51447         for the %f, %F, %e, %E, %g, %G directives.
51448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51450         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51451         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51455         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51456         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51457         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51459         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51460         * modules/snprintf-posix (Depends-on): Likewise.
51461         * modules/sprintf-posix (Depends-on): Likewise.
51462         * modules/vasnprintf-posix (Depends-on): Likewise.
51463         * modules/vasprintf-posix (Depends-on): Likewise.
51464         * modules/vfprintf-posix (Depends-on): Likewise.
51465         * modules/vsnprintf-posix (Depends-on): Likewise.
51466         * modules/vsprintf-posix (Depends-on): Likewise.
51467         * modules/vasnprintf (Files): Add lib/float+.h.
51468         * doc/functions/fprintf.texi: Update.
51469         * doc/functions/printf.texi: Update.
51470         * doc/functions/snprintf.texi: Update.
51471         * doc/functions/sprintf.texi: Update.
51472         * doc/functions/vfprintf.texi: Update.
51473         * doc/functions/vprintf.texi: Update.
51474         * doc/functions/vsnprintf.texi: Update.
51475         * doc/functions/vsprintf.texi: Update.
51476
51477 2007-05-18  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51480
51481 2007-05-18  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51484         for printing 64-bit integers. Needed for mingw.
51485
51486 2007-05-18  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51489         gl_FUNC_FREXPL_WORKS.
51490         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51491
51492 2007-05-18  Bruno Haible  <bruno@clisp.org>
51493
51494         * modules/frexpl-nolibm-tests: New file.
51495
51496         * modules/frexpl-nolibm: New file.
51497         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51498
51499 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51500
51501         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51502         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51503         GCC 4.2, which otherwise issues a lot of warnings.
51504         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51505         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51506         Likewise.
51507         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51508         * modules/iconv_open (iconv.h): Likewise.
51509         * modules/locale (locale.h): Likewise.
51510         * modules/netinet_in (netinet/in.h): Likewise.
51511         * modules/sys_select (sys_select.h): Likewise.
51512         * modules/sys_socket (sys/socket.h): Likewise.
51513         * modules/sys_stat (sys/stat.h): Likewise.
51514         * modules/sysexits (sysexits.h): Likewise.
51515         * modules/unistd (unistd.h): Likewise.
51516
51517 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51518
51519         * modules/closein-tests (Makefile.am): Distribute
51520         `test-closein.sh'.
51521
51522 2007-05-17  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-printf-posix.output: Renamed from
51525         tests/test-fprintf-posix.out.
51526         * modules/fprintf-posix-tests: Update.
51527         * modules/printf-posix-tests: Update.
51528         * modules/vfprintf-posix-tests: Update.
51529         * modules/vprintf-posix-tests: Update.
51530         * tests/test-fprintf-posix.sh: Update.
51531         * tests/test-printf-posix.sh: Update.
51532         * tests/test-vfprintf-posix.sh: Update.
51533         * tests/test-vprintf-posix.sh: Update.
51534         Reported by Ralf Wildenhues.
51535
51536 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51539         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51540         GCC 4.2, which otherwise issues a lot of warnings.
51541         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51542         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51543         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51544         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51545         it should no longer be needed.
51546         * lib/string_.h: Likewise.
51547         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51548         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51549         * modules/inttypes (inttypes.h): Likewise.
51550         * modules/math (math.h): Likewise.
51551         * modules/search (search.h): Likewise.
51552         * modules/signal (signal.h): Likewise.
51553         * modules/stdint (stdint.h): Likewise.
51554         * modules/stdio (stdio.h): Likewise.
51555         * modules/stdlib (stdlib.h): Likewise.
51556         * modules/string (string.h): Likewise.
51557         * modules/sys_time (sys/time.h): Likewise.
51558         * modules/time (time.h): Likewise.
51559         * modules/wchar (wchar.h): Likewise.
51560         * modules/wctype (wtype.h): Likewise.
51561
51562 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51563
51564         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51565
51566 2007-05-13  Bruno Haible  <bruno@clisp.org>
51567
51568         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51569         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51570         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51571         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51572         (gl_PREREQ_STRTOK_R): Don't require it here.
51573
51574 2007-05-13  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51577         when used in C++ mode.
51578
51579 2007-05-12  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/linebuffer.h: Tweak doc.
51582         * lib/linebuffer.c: Likewise.
51583
51584 2007-05-12  James Youngman  <jay@gnu.org>
51585
51586         * lib/linebuffer.c (readlinebuffer_delim): New function,
51587         like readlinebuffer, but use a caller-specified delimiter.
51588         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51589         as the delimiter.
51590         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51591
51592 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51593
51594         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51595         * modules/openat (Files): Remove openat-die.c.
51596         (Depends-on): Add openat-die.
51597         * modules/openat-die: New module.
51598
51599 2007-05-06  Bruno Haible  <bruno@clisp.org>
51600
51601         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51602         Update with info about Cygwin.
51603         * doc/functions/fprintf.texi: Update.
51604         * doc/functions/printf.texi: Update.
51605         * doc/functions/snprintf.texi: Update.
51606         * doc/functions/sprintf.texi: Update.
51607         * doc/functions/vfprintf.texi: Update.
51608         * doc/functions/vprintf.texi: Update.
51609         * doc/functions/vsnprintf.texi: Update.
51610         * doc/functions/vsprintf.texi: Update.
51611         Reported by Eric Blake.
51612
51613 2007-05-06  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51616         padding ourselves for the floating-point directives.
51617         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51620         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51621         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51629         * tests/test-snprintf-posix.h (test_function): Also check the width
51630         and some flags in the %f directive.
51631         * tests/test-sprintf-posix.h (test_function): Likewise.
51632         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51633         * tests/test-vasprintf-posix.c (test_function): Likewise.
51634         * doc/functions/fprintf.texi: Update.
51635         * doc/functions/printf.texi: Update.
51636         * doc/functions/snprintf.texi: Update.
51637         * doc/functions/sprintf.texi: Update.
51638         * doc/functions/vfprintf.texi: Update.
51639         * doc/functions/vprintf.texi: Update.
51640         * doc/functions/vsnprintf.texi: Update.
51641         * doc/functions/vsprintf.texi: Update.
51642
51643 2007-05-06  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51646         pass the ' flag character to sprintf or snprintf.
51647         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51649         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51650         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51651         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51653         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51659         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51660         flag.
51661         * tests/test-sprintf-posix.h (test_function): Likewise.
51662         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51663         * tests/test-vasprintf-posix.c (test_function): Likewise.
51664         * doc/functions/fprintf.texi: Update.
51665         * doc/functions/printf.texi: Update.
51666         * doc/functions/snprintf.texi: Update.
51667         * doc/functions/sprintf.texi: Update.
51668         * doc/functions/vfprintf.texi: Update.
51669         * doc/functions/vprintf.texi: Update.
51670         * doc/functions/vsnprintf.texi: Update.
51671         * doc/functions/vsprintf.texi: Update.
51672
51673 2007-05-01  Bruno Haible  <bruno@clisp.org>
51674
51675         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51676
51677 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51678
51679         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51680         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51681
51682 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51683
51684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51685         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51687
51688 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51689
51690         * lib/argp-help.c (struct hol_entry): New member `ord'.
51691         (HOL_ENTRY_PTRCMP): Use ord for comparison
51692         (hol_sort): Initialize ord.
51693
51694 2007-05-01  Bruno Haible  <bruno@clisp.org>
51695
51696         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51697         Reported by Eric Blake.
51698         * doc/gnulib.texi (Function Substitutes): Update.
51699
51700 2007-05-01  Bruno Haible  <bruno@clisp.org>
51701
51702         * doc/functions.texi: Remove file, now redundant through
51703         doc/functions/*.texi.
51704
51705 2007-05-01  Bruno Haible  <bruno@clisp.org>
51706
51707         * modules/argp (Depends-on): Add sleep.
51708
51709 2007-05-01  Bruno Haible  <bruno@clisp.org>
51710
51711         * modules/sleep-tests: New file.
51712         * tests/test-sleep.c: New file.
51713
51714         * modules/sleep: New file.
51715         * lib/sleep.c: New file.
51716         * m4/sleep.m4: New file.
51717         * lib/unistd_.h (sleep): New declaration.
51718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51719         HAVE_SLEEP.
51720         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51721         * doc/functions/sleep.texi: Document the sleep module.
51722
51723 2007-05-01  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/sigprocmask.h: Remove file.
51726         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51727         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51728         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51729         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51730         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51731         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51732         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51733         HAVE_SIGSET_T as a shell variable.
51734         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51735         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51736         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51737         (Depends-on): Add signal. Remove verify.
51738         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51739         (Include): Mention <signal.h> instead of sigprocmask.h.
51740         * NEWS: Mention the change.
51741         * lib/fatal-signal.c: Don't include sigprocmask.h.
51742
51743 2007-05-01  Bruno Haible  <bruno@clisp.org>
51744
51745         * modules/signal: New file.
51746         * lib/signal_.h: New file.
51747         * m4/signal_h.m4: New file.
51748
51749 2007-05-01  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51752         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51753         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51754         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51755
51756 2007-05-01  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51759         configure time.
51760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51761         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51762         * modules/sys_stat (Makefile.am): Substitute their values into
51763         sys/stat.h.
51764
51765 2007-05-01  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51768         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51769         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51770
51771 2007-05-01  Bruno Haible  <bruno@clisp.org>
51772
51773         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51774         'assert' module here.
51775
51776 2007-05-01  Bruno Haible  <bruno@clisp.org>
51777
51778         * doc/functions/*.texi: New files.
51779         * doc/functions/google-ranking.txt: New file.
51780         * doc/gnulib.texi (Function Substitutes): New chapter.
51781         (ctime, inet_ntoa): Remove sections.
51782         * doc/ctime.texi: Remove file.
51783         * doc/inet_ntoa.texi: Remove file.
51784         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51785         dependencies.
51786         (%.info): New rule, specifying a --reference-limit.
51787
51788 2007-05-01  Bruno Haible  <bruno@clisp.org>
51789
51790         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51791
51792 2007-05-01  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51795         the portability of 'mkdir' to mingw systems.
51796
51797 2007-05-01  Bruno Haible  <bruno@clisp.org>
51798
51799         * doc/headers/google-ranking.txt: New file.
51800
51801 2007-04-30  Eric Blake  <ebb9@byu.net>
51802
51803         Prefer fseeko to fseek.
51804         * modules/getpass (Depends-on): Add fseeko.
51805         * lib/getpass.c (getpass): Use fseeko, not fseek.
51806
51807 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51808
51809         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51810         assumes the sorting is stable, while most qsort implementations
51811         are not.  Use argument addresses to ensure they never compare as
51812         equal.
51813
51814         * tests/test-argp-2.sh (usage-indent test): Fix output
51815         (func_compare): Restore diff options
51816         * tests/test-argp.c: Restore #include "progname.h"
51817
51818 2007-04-29  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51822         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51824         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51825         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51826         (TESTS, check_PROGRAMS): Add test-snprintf.
51827         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51828         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51829         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51830         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51831         assertions that fail on HP-UX, OSF/1, or IRIX.
51832         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51833
51834 2007-04-29  Bruno Haible  <bruno@clisp.org>
51835
51836         * MODULES.html.sh (posix_functions): Remove 'contents'.
51837
51838 2007-04-29  Karl Berry  <karl@gnu.org>
51839
51840         * config/srclist.txt (gendocs_template_min): new entry.
51841
51842 2007-04-29  Bruno Haible  <bruno@clisp.org>
51843
51844         Work around fpurge bug on BSD systems.
51845         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51846         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51847         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51848         fpurge to rpl_fpurge if the system already has this function.
51849         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51850         the case where the system already has this function. Correct invariants
51851         on BSD systems.
51852         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51853         BSD systems.
51854
51855 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51856
51857         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51858         proposed by Sven Verdoolaege.
51859
51860         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51861         options.
51862         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51863         (usage and help tests): Update
51864
51865 2007-04-29  Bruno Haible  <bruno@clisp.org>
51866
51867         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51868         Print more information in case of failure. Disable a test on BeOS.
51869
51870 2007-04-29  Bruno Haible  <bruno@clisp.org>
51871
51872         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51873         This helps debugging on systems on which no gdb is available.
51874
51875 2007-04-29  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/freading.h: Improve comments.
51878         * lib/fwriting.h: Likewise.
51879         * tests/test-freading.c (main): Don't check freading immediately after
51880         repositioning. Needed for glibc.
51881
51882 2007-04-29  Bruno Haible  <bruno@clisp.org>
51883
51884         * lib/freading.c (freading): Trivial simplification.
51885
51886 2007-04-28  Bruno Haible  <bruno@clisp.org>
51887
51888         * tests/test-fwriting.c (main): Also test the interaction between
51889         fflush and fwriting.
51890         * modules/fwriting-tests (Depends-on): Add fflush.
51891
51892         * tests/test-freading.c (main): Also test the interaction between
51893         fflush and freading.
51894         * modules/freading-tests (Depends-on): Add fflush.
51895
51896 2007-04-28  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51899         fseeko and ftello.
51900         Suggested by Eric Blake.
51901
51902 2007-04-28  Jim Meyering  <jim@meyering.net>
51903
51904         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51905         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51906         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51907
51908 2007-04-27  Eric Blake  <ebb9@byu.net>
51909
51910         * doc/headers/assert.texi (assert.h): Document assert module use.
51911
51912 2007-04-27  Bruno Haible  <bruno@clisp.org>
51913
51914         * doc/headers/*.texi: New files.
51915         * doc/gnulib.texi (Header File Substitutes): New chapter.
51916         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51917         dependencies.
51918         (standards.info ,standards.html, standards.dvi): Update dependencies.
51919         (mostlyclean, clean): New targets.
51920
51921 2007-04-27  Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51924         * modules/sysexits (Files, Makefile.am): Update.
51925
51926         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51927         * modules/sys_socket (Files, Makefile.am): Update.
51928
51929         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51930         * modules/sys_stat (Files, Makefile.am): Update.
51931
51932 2007-04-27  Eric Blake  <ebb9@byu.net>
51933
51934         * lib/freading.h: Improve comments.
51935         * lib/fwriting.h: Likewise.
51936         * lib/fflush.c: Likewise.
51937
51938         Fix closein for mingw.
51939         * modules/closein-tests: Add tests for closein.
51940         * tests/test-closein.c: New file.
51941         * tests/test-closein.sh: Likewise.
51942         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51943         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51944
51945 2007-04-27  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51948         version is < 6.
51949         * lib/math_.h [__DECC]: Likewise.
51950         * lib/stdio_.h [__DECC]: Likewise.
51951         * lib/stdlib_.h [__DECC]: Likewise.
51952         * lib/string_.h [__DECC]: Likewise.
51953         * lib/time_.h [__DECC]: Likewise.
51954         * lib/wchar_.h [__DECC]: Likewise.
51955         * lib/wctype_.h [__DECC]: Likewise.
51956
51957 2007-04-27  Bruno Haible  <bruno@clisp.org>
51958
51959         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51960
51961 2007-04-27  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/fflush.c: Add comments.
51964         * modules/fpurge-tests (Depends-on): Add fflush.
51965         * modules/freadable-tests (Depends-on): Likewise.
51966         * modules/fwritable-tests (Depends-on): Likewise.
51967
51968 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51969
51970         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51971         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51972         Report by Bruno Haible <bruno@clisp.org>.
51973
51974 2007-04-26  Eric Blake  <ebb9@byu.net>
51975
51976         Fix fflush on mingw.
51977         * modules/fflush (Depends-on): Add freading.
51978         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51979         but unread data.
51980
51981 2007-04-26  Eric Blake  <ebb9@byu.net>
51982         and Bruno Haible  <bruno@clisp.org>
51983
51984         Implement freading and fwriting.
51985         * lib/freading.c: New file.
51986         * lib/freading.h: Likewise.
51987         * m4/freading.m4: Likewise.
51988         * modules/freading: Likewise.
51989         * modules/freading-tests: Likewise.
51990         * tests/test-freading.c: Likewise.
51991         * lib/fwriting.c: New file.
51992         * lib/fwriting.h: Likewise.
51993         * m4/fwriting.m4: Likewise.
51994         * modules/fwriting: Likewise.
51995         * modules/fwriting-tests: Likewise.
51996         * tests/test-fwriting.c: Likewise.
51997         * MODULES.html.sh (File stream based Input/Output): Mention them.
51998
51999 2007-04-26  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52002         'long' when we assume it.
52003         Suggested by Eric Blake.
52004
52005 2007-04-26  Bruno Haible  <bruno@clisp.org>
52006
52007         Ensure fseeko, ftello are declared on glibc systems.
52008         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52009         * modules/fseeko (configure.ac-early): Likewise.
52010         * modules/ftello (configure.ac-early): Likewise.
52011         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52012         AC_FUNC_FSEEKO for this.
52013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52014         (gl_CHECK_FSEEKO): Remove macro.
52015
52016 2007-04-26  Bruno Haible  <bruno@clisp.org>
52017
52018         * tests/test-fflush.c (main): Also check the ftell result after
52019         fflush and fseek/fseeko.
52020         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52021         file descriptor position cache in the stream.
52022         * lib/fseeko.c (rpl_fseeko): Likewise.
52023
52024 2007-04-26  Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/fflush-tests (Depends-on): Add fseeko.
52027
52028 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52029             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52030
52031         * lib/argz_.h: ensure error_t definition is obtained in same
52032         mechanism system argz.h would have.
52033         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52034         argz facilities are known bad.  Err on the side of caution if
52035         cross-compiling.
52036
52037 2007-04-25  Eric Blake  <ebb9@byu.net>
52038
52039         * lib/fpurge.c (includes): Use stdlib.h for free.
52040         * tests/test-fflush.c (main): Also test fflush-fseeko.
52041
52042 2007-04-25  Bruno Haible  <bruno@clisp.org>
52043
52044         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52045         * lib/fseeko.c: New file.
52046         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52047         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52048         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52049         gl_FUNC_FSEEKO.
52050         (gl_FUNC_FSEEKO): Invoke it.
52051         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52052         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52053         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52054
52055 2007-04-25  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/fflush (Depends-on): Add ftello.
52058
52059 2007-04-25  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/ftello-tests: New file.
52062         * tests/test-ftello.c: New file.
52063
52064         * modules/ftello: New file.
52065         * m4/ftello.m4: New file.
52066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52067         HAVE_FTELLO.
52068         * lib/stdio_.h (ftello): New declaration.
52069         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52070         HAVE_FTELLO.
52071
52072 2007-04-25  Bruno Haible  <bruno@clisp.org>
52073
52074         * modules/fseeko-tests: New file.
52075         * tests/test-fseeko.c: New file.
52076
52077         * modules/fseeko: New file.
52078         * m4/fseeko.m4: New file.
52079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52080         HAVE_FSEEKO.
52081         * lib/stdio_.h (fseeko): New declaration.
52082         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52083         HAVE_FSEEKO.
52084
52085 2007-04-25  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52088
52089 2007-04-25  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52092         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52093         * tests/test-unistd.c: Likewise.
52094         * tests/test-fcntl.c: Likewise.
52095
52096 2007-04-23  Eric Blake  <ebb9@byu.net>
52097
52098         * lib/fflush.c: Fix missing include.
52099         Reported by Bruno Haible.
52100
52101 2007-04-23  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52104         Reported by Eric Blake.
52105
52106 2007-04-23  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52109
52110 2007-04-23  Bruno Haible  <bruno@clisp.org>
52111
52112         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52113
52114 2007-04-23  Bruno Haible  <bruno@clisp.org>
52115
52116         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52117         Needed on HP-UX 11.
52118
52119 2007-04-16  Eric Blake  <ebb9@byu.net>
52120
52121         Make fflush rely on fpurge.
52122         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52123         open coding all variants.
52124         * modules/fflush (Depends-on): Add fpurge and unistd.
52125         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52126         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52127
52128         Fix --with-tests compilation on cygwin.
52129         * modules/argmatch-tests (Makefile.am): List gnulib library first
52130         in LDADD.
52131         * modules/argp-tests (Makefile.am): Likewise.
52132         * modules/array-list-tests (Makefile.am): Likewise.
52133         * modules/array-oset-tests (Makefile.am): Likewise.
52134         * modules/avltree-list-tests (Makefile.am): Likewise.
52135         * modules/avltree-oset-tests (Makefile.am): Likewise.
52136         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52137         * modules/carray-list-tests (Makefile.am): Likewise.
52138         * modules/dirname-tests (Makefile.am): Likewise.
52139         * modules/frexp-tests (Makefile.am): Likewise.
52140         * modules/isnanl-tests (Makefile.am): Likewise.
52141         * modules/linked-list-tests (Makefile.am): Likewise.
52142         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52143         * modules/lock-tests (Makefile.am): Likewise.
52144         * modules/rbtree-list-tests (Makefile.am): Likewise.
52145         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52146         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52147         * modules/tls-tests (Makefile.am): Likewise.
52148         * modules/tsearch-tests (Makefile.am): Likewise.
52149         * modules/xvasprintf-tests (Makefile.am): Likewise.
52150
52151         Fix fpurge for cygwin.
52152         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52153         value.
52154         * modules/fpurge-tests (Depends-on): Clean up trash.
52155
52156 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52157
52158         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52159
52160         * m4/autobuild.m4: Re-indent.
52161
52162 2007-04-13  Bruno Haible  <bruno@clisp.org>
52163
52164         * modules/fpurge-tests: New file.
52165         * tests/test-fpurge.c: New file.
52166
52167         * modules/fpurge: New file.
52168         * lib/fpurge.h: New file.
52169         * lib/fpurge.c: New file.
52170         * m4/fpurge.m4: New file.
52171
52172 2007-04-13  Bruno Haible  <bruno@clisp.org>
52173
52174         * modules/fbufmode-tests: New file.
52175         * tests/test-fbufmode.c: New file.
52176
52177         * modules/fbufmode: New file.
52178         * lib/fbufmode.h: New file.
52179         * lib/fbufmode.c: New file.
52180         * m4/fbufmode.m4: New file.
52181
52182 2007-04-13  Bruno Haible  <bruno@clisp.org>
52183
52184         * modules/fwritable-tests: New file.
52185         * tests/test-fwritable.c: New file.
52186
52187         * modules/fwritable: New file.
52188         * lib/fwritable.h: New file.
52189         * lib/fwritable.c: New file.
52190         * m4/fwritable.m4: New file.
52191
52192 2007-04-13  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/freadable-tests: New file.
52195         * tests/test-freadable.c: New file.
52196
52197         * modules/freadable: New file.
52198         * lib/freadable.h: New file.
52199         * lib/freadable.c: New file.
52200         * m4/freadable.m4: New file.
52201
52202 2007-04-13  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52205         MOSTLYCLEANFILES.
52206
52207 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52210         gzip bootstrap.conf to avoid dragging in i18n machinery.
52211         (gnulib_tool_option): Use it.
52212
52213 2007-04-13  Bruno Haible  <bruno@clisp.org>
52214
52215         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52216         %F directives.
52217         * tests/test-vasprintf-posix.c (test_function): Likewise.
52218         * tests/test-snprintf-posix.h (test_function): Likewise.
52219         * tests/test-sprintf-posix.h (test_function): Likewise.
52220         * tests/test-fprintf-posix.h (test_function): Likewise.
52221         * tests/test-printf-posix.h (test_function): Likewise.
52222         * tests/test-fprintf-posix.out: Likewise.
52223
52224 2007-04-13  Bruno Haible  <bruno@clisp.org>
52225
52226         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52227         * modules/tls-tests (configure.ac): Likewise.
52228         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52229
52230 2007-04-13  Bruno Haible  <bruno@clisp.org>
52231
52232         * lib/tls.c (glthread_tls_get): Fix return type.
52233         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52234
52235 2007-04-12  Eric Blake  <ebb9@byu.net>
52236
52237         * modules/gettime (Depends-on): Remove gettime.
52238         Reported by Dmitry V. Levin.
52239
52240 2007-04-12  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/fflush (Include): Mention <stdio.h>.
52243         * modules/strtoimax (Include): Mention <inttypes.h>.
52244         * modules/strtoumax (Include): Likewise.
52245
52246 2007-04-12  Eric Blake  <ebb9@byu.net>
52247
52248         * .cvsignore: New file.
52249         * .gitignore: Likewise.
52250
52251 2007-04-12  Bruno Haible  <bruno@clisp.org>
52252
52253         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52254         not before, since $(LDADD) often contains libgnu.a.
52255         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52256         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52257         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52258         Needed on Cygwin.
52259
52260 2007-04-12  Eric Blake  <ebb9@byu.net>
52261
52262         Work around glibc's failure to flush stdin on fclose.
52263         * lib/closein.c (close_stdin): Flush stdin before closing.
52264
52265         Work around glibc's failure to reset seekable stdin on exit.
52266         * modules/closein: New module.
52267         * lib/closein.c: New file.
52268         * lib/closein.h: Likewise.
52269         * m4/closein.m4: Likewise.
52270         * MODULES.html.sh (File stream based Input/Output): Document it.
52271
52272 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52273
52274         * gnulib-tool: Rename generated 'autobuild' script to
52275         'do-autobuild' in --create-megatestdir output.
52276
52277         * doc/gnulib.texi (Build robot for gnulib): Fix.
52278
52279 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52280
52281         * modules/sysexits (Depends-on): Add absolute-header.
52282
52283 2007-04-12  Eric Blake  <ebb9@byu.net>
52284
52285         No need to preserve errno on success.
52286         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52287         Reported by Bruno Haible.
52288
52289 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52290
52291         * MODULES.html.sh (Support for maintaining and releasing
52292         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52293
52294 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52295
52296         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52297
52298 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52299
52300         * modules/autobuild: New module.
52301
52302         * m4/autobuild.m4: New file.
52303
52304 2007-04-11  Bruno Haible  <bruno@clisp.org>
52305
52306         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52307         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52319         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52334         Reported by Eric Blake.
52335
52336 2007-04-11  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52339
52340 2007-04-10  Bruno Haible  <bruno@clisp.org>
52341
52342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52343         for NaN and Infinity. Needed on FreeBSD 6.1.
52344         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52345         regarding results for "%010a" of Infinity and NaN.
52346         * tests/test-vasprintf-posix.c (test_function): Likewise.
52347         * tests/test-snprintf-posix.h (test_function): Likewise.
52348         * tests/test-sprintf-posix.h (test_function): Likewise.
52349         * tests/test-fprintf-posix.h (test_function): Likewise.
52350         * tests/test-printf-posix.h (test_function): Likewise.
52351         * tests/test-fprintf-posix.out: Likewise.
52352
52353 2007-04-10  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/locale-tests: New file.
52356         * tests/test-locale.c: New file.
52357
52358         * modules/locale: New file.
52359         * lib/locale_.h: New file.
52360         * m4/locale_h.m4: New file.
52361
52362 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52363             Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52366         be determined, test for availability of the copysignf, copysign,
52367         copysignl functions.
52368         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52369         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52370         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52371
52372 2007-04-09  Eric Blake  <ebb9@byu.net>
52373
52374         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52375         * modules/stdio (Makefile.am): Support fflush.
52376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52377         * modules/fflush: New file.
52378         * lib/fflush.c: Likewise.
52379         * m4/fflush.m4: Likewise.
52380         * modules/fflush-tests: New test.
52381         * tests/test-fflush.c: Likewise.
52382         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52383
52384 2007-04-06  Bruno Haible  <bruno@clisp.org>
52385
52386         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52387         (VASNPRINTF): Use signbit for faster determination whether to print a
52388         minus sign.
52389         * modules/vasnprintf (Files): Remove lib/float+.h.
52390         * modules/fprintf-posix (Depends-on): Add signbit.
52391         * modules/snprintf-posix (Depends-on): Likewise.
52392         * modules/sprintf-posix (Depends-on): Likewise.
52393         * modules/vasnprintf-posix (Depends-on): Likewise.
52394         * modules/vasprintf-posix (Depends-on): Likewise.
52395         * modules/vfprintf-posix (Depends-on): Likewise.
52396         * modules/vsnprintf-posix (Depends-on): Likewise.
52397         * modules/vsprintf-posix (Depends-on): Likewise.
52398
52399 2007-04-06  Bruno Haible  <bruno@clisp.org>
52400
52401         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52402         * tests/test-frexpl.c (main): Likewise.
52403         * tests/test-ldexpl.c (main): Likewise.
52404         * modules/frexp-tests (Depends-on): Add signbit.
52405         * modules/frexpl-tests (Depdends-on): Likewise.
52406         * modules/ldexpl-tests (Depdends-on): Likewise.
52407
52408 2007-04-06  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/signbit-tests: New file.
52411         * tests/test-signbit.c: New file.
52412
52413         * modules/signbit: New file.
52414         * lib/signbitf.c: New file.
52415         * lib/signbitd.c: New file.
52416         * lib/signbitl.c: New file.
52417         * m4/signbit.m4: New file.
52418         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52419         (signbit): New macro.
52420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52421         REPLACE_SIGNBIT.
52422         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52423         REPLACE_FREXPL into math.h.
52424
52425 2007-04-06  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/isnanf-nolibm-tests: New file.
52428         * tests/test-isnanf.c: New file.
52429
52430         * modules/isnanf-nolibm: New file.
52431         * lib/isnanf.h: New file.
52432         * lib/isnanf.c: New file.
52433         * lib/isnan.c: Consider the USE_FLOAT macro.
52434         * m4/isnanf.m4: New file.
52435
52436 2007-04-06  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52439         (Link): New section.
52440
52441         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52442
52443 2007-04-06  Bruno Haible  <bruno@clisp.org>
52444
52445         Assume the 'long double' type.
52446         * m4/longdouble.m4: Remove file.
52447         * config/srclist.txt: Don't mention longdouble.m4.
52448         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52449         * lib/float+.h: Likewise.
52450         * lib/frexp.c: Likewise.
52451         * lib/printf-args.h: Likewise.
52452         * lib/printf-args.c: Likewise.
52453         * lib/printf-frexp.c: Likewise.
52454         * lib/printf-parse.c: Likewise.
52455         * lib/vasnprintf.c: Likewise.
52456         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52457         * m4/intl.m4: Likewise.
52458         * m4/isnanl.m4: Likewise.
52459         * m4/printf.m4: Likewise.
52460         * m4/printf-frexpl.m4: Likewise.
52461         * m4/vasnprintf.m4: Likewise.
52462         * modules/allocsa (Files): Remove m4/longdouble.m4.
52463         * modules/gettext (Files): Likewise.
52464         * modules/relocatable-prog-wrapper (Files): Likewise.
52465         * modules/vasnprintf (Files): Likewise.
52466         * modules/isnanl (Files): Likewise.
52467         (Include): Simplify.
52468         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52469         (Include): Simplify.
52470         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52471         (Include): Simplify.
52472         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52473         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52474         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52475         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52476         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52477         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52478         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52479         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52480         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52481         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52482         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52483         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52484         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52485         * tests/test-isnanl.c: Likewise.
52486         * tests/test-snprintf-posix.h: Likewise.
52487         * tests/test-sprintf-posix.h: Likewise.
52488         * tests/test-vasnprintf-posix.c: Likewise.
52489         * tests/test-vasnprintf-posix2.c: Likewise.
52490         * tests/test-vasprintf-posix.c: Likewise.
52491
52492 2007-04-06  Bruno Haible  <bruno@clisp.org>
52493
52494         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52495         * lib/math_.h [__DECC]: Include the overridden include file through
52496         #include_next, outside the double-inclusion guard.
52497         * lib/stdio_.h [__DECC]: Likewise.
52498         * lib/stdlib_.h [__DECC]: Likewise.
52499         * lib/string_.h [__DECC]: Likewise.
52500         * lib/time_.h [__DECC]: Likewise.
52501         * lib/wchar_.h [__DECC]: Likewise.
52502         * lib/wctype_.h [__DECC]: Likewise.
52503         * lib/inttypes_.h [__DECC]: Likewise.
52504         Reported by Albert Chin <china@thewrittenword.com> in
52505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52506
52507 2007-04-04  Eric Blake  <ebb9@byu.net>
52508
52509         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52510         1.5.x.
52511
52512 2007-04-04  Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52515         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52516
52517 2007-04-04  Bruno Haible  <bruno@clisp.org>
52518
52519         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52520         results for "%010a" of Infinity and NaN.
52521         * tests/test-vasprintf-posix.c (test_function): Likewise.
52522         * tests/test-snprintf-posix.h (test_function): Likewise.
52523         * tests/test-sprintf-posix.h (test_function): Likewise.
52524         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52525         * tests/test-printf-posix.h (test_function): Likewise.
52526         * tests/test-fprintf-posix.out: Update.
52527         Needed for FreeBSD 6.1.
52528
52529 2007-04-04  Bruno Haible  <bruno@clisp.org>
52530
52531         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52532         directly used by the gnulib modules nor by gnulib-tool.
52533
52534 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         * DEPENDENCIES: Give overall description of version dependency
52537         desirability.  Use more-typical names for apps.
52538         Add shell, coreutils, diffutils, grep, tar, gzip.
52539
52540 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52541
52542         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52543
52544 2007-04-04  Karl Berry  <karl@gnu.org>
52545
52546         * MODULES.html.sh (func_module): missing '.
52547
52548 2007-04-03  Bruno Haible  <bruno@clisp.org>
52549
52550         * modules/argmatch-tests (Makefile.am): New variable
52551         test_argmatch_LDADD.
52552         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52553         * modules/array-list-tests (Makefile.am): New variable
52554         test_array_list_LDADD.
52555         * modules/array-oset-tests (Makefile.am): New variable
52556         test_array_oset_LDADD.
52557         * modules/avltree-list-tests (Makefile.am): New variable
52558         test_avltree_list_LDADD.
52559         * modules/avltree-oset-tests (Makefile.am): New variable
52560         test_avltree_oset_LDADD.
52561         * modules/avltreehash-list-tests (Makefile.am): New variable
52562         test_avltreehash_list_LDADD.
52563         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52564         test_canonicalize_lgpl_LDADD.
52565         * modules/carray-list-tests (Makefile.am): New variable
52566         test_carray_list_LDADD.
52567         * modules/dirname-tests (Makefile.am): New variable
52568         test_dirname_LDADD.
52569         * modules/linked-list-tests (Makefile.am): New variable
52570         test_linked_list_LDADD.
52571         * modules/linkedhash-list-tests (Makefile.am): New variable
52572         test_linkedhash_list_LDADD.
52573         * modules/rbtree-list-tests (Makefile.am): New variable
52574         test_rbtree_list_LDADD.
52575         * modules/rbtree-oset-tests (Makefile.am): New variable
52576         test_rbtree_oset_LDADD.
52577         * modules/rbtreehash-list-tests (Makefile.am): New variable
52578         test_rbtreehash_list_LDADD.
52579         * modules/xvasprintf-tests (Makefile.am): New variable
52580         test_xvasprintf_LDADD.
52581         Reported by Eric Blake.
52582
52583 2007-04-03  Eric Blake  <ebb9@byu.net>
52584
52585         * DEPENDENCIES: Weaken m4 requirements.
52586
52587 2007-04-03  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52590         * modules/isnanl-tests (configure.ac): Likewise.
52591
52592 2007-04-03  Ben Pfaff  <blp@gnu.org>
52593
52594         * modules/iconv_open: Add $(srcdir)/ to source directory
52595         references in Makefile fragments that call gperf, to fix VPATH
52596         builds.
52597
52598 2007-04-03  Bruno Haible  <bruno@clisp.org>
52599
52600         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52601         * lib/ldexpl.c: Undo last change.
52602
52603 2007-04-03  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/printf-frexpl (Depends-on): Undo last change.
52606         (Files): Add m4/ldexpl.m4.
52607
52608 2007-04-03  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52611         * modules/isnanl (Link): New section.
52612
52613         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52614         * modules/frexp (Link): New section.
52615
52616         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52617         * modules/frexpl (Link): New section.
52618
52619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52620         * modules/ldexpl (Link): New section.
52621
52622 2007-04-03  Bruno Haible  <bruno@clisp.org>
52623
52624         * modules/TEMPLATE-EXTENDED: New file.
52625         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52626
52627 2007-04-03  Bruno Haible  <bruno@clisp.org>
52628
52629         * DEPENDENCIES: New file.
52630         Suggested by Simon Josefsson.
52631
52632 2007-04-03  Bruno Haible  <bruno@clisp.org>
52633
52634         * doc/gnulib.texi: Escape @.
52635
52636 2007-04-03  James Youngman  <jay@gnu.org>
52637         and Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52640         birthtime on all systems that have birthtime, not just those which
52641         use st_birthtimensec rather than st_birthtim.  Putting zero in
52642         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52643         that the birth time is not available for files on an NFS mount.
52644
52645 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52646
52647         * modules/memxor: Move back from crypto/, suggested by Bruno.
52648         * modules/crypto/hmac-sha1: Fix memxor dependency.
52649
52650         * modules/crypto/gc: Moved from ../.
52651
52652 2007-04-02  Eric Blake  <ebb9@byu.net>
52653
52654         * lib/ldexpl.c (includes): Avoid libm.
52655
52656         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52657
52658 2007-04-02  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52661         on IRIX.
52662
52663 2007-04-02  Bruno Haible  <bruno@clisp.org>
52664
52665         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52666         x86 or x86_64 platforms running MacOS X.
52667         Reported by Ryan Schmidt <@ryandesign.com>.
52668
52669 2007-04-02  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52672         i386.
52673
52674 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52675
52676         * modules/crypto/arcfour: Moved from ../.
52677         * modules/crypto/arcfour-tests: Moved from ../.
52678         * modules/crypto/arctwo: Moved from ../.
52679         * modules/crypto/arctwo-tests: Moved from ../.
52680         * modules/crypto/des: Moved from ../.
52681         * modules/crypto/des-tests: Moved from ../.
52682         * modules/crypto/gc-arcfour: Moved from ../.
52683         * modules/crypto/gc-arcfour-tests: Moved from ../.
52684         * modules/crypto/gc-arctwo: Moved from ../.
52685         * modules/crypto/gc-arctwo-tests: Moved from ../.
52686         * modules/crypto/gc-des: Moved from ../.
52687         * modules/crypto/gc-des-tests: Moved from ../.
52688         * modules/crypto/gc-hmac-md5: Moved from ../.
52689         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52690         * modules/crypto/gc-hmac-sha1: Moved from ../.
52691         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52692         * modules/crypto/gc-md2: Moved from ../.
52693         * modules/crypto/gc-md2-tests: Moved from ../.
52694         * modules/crypto/gc-md4: Moved from ../.
52695         * modules/crypto/gc-md4-tests: Moved from ../.
52696         * modules/crypto/gc-md5: Moved from ../.
52697         * modules/crypto/gc-md5-tests: Moved from ../.
52698         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52699         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52700         * modules/crypto/gc-random: Moved from ../.
52701         * modules/crypto/gc-rijndael: Moved from ../.
52702         * modules/crypto/gc-rijndael-tests: Moved from ../.
52703         * modules/crypto/gc-sha1: Moved from ../.
52704         * modules/crypto/gc-sha1-tests: Moved from ../.
52705         * modules/crypto/gc-tests: Moved from ../.
52706         * modules/crypto/hmac-md5: Moved from ../.
52707         * modules/crypto/hmac-md5-tests: Moved from ../.
52708         * modules/crypto/hmac-sha1: Moved from ../.
52709         * modules/crypto/hmac-sha1-tests: Moved from ../.
52710         * modules/crypto/md2: Moved from ../.
52711         * modules/crypto/md2-tests: Moved from ../.
52712         * modules/crypto/md4: Moved from ../.
52713         * modules/crypto/md4-tests: Moved from ../.
52714         * modules/crypto/md5: Moved from ../.
52715         * modules/crypto/md5-tests: Moved from ../.
52716         * modules/crypto/memxor: Moved from ../.
52717         * modules/crypto/rijndael: Moved from ../.
52718         * modules/crypto/rijndael-tests: Moved from ../.
52719         * modules/crypto/sha1: Moved from ../.
52720
52721 2007-03-30  James Youngman  <jay@gnu.org>
52722
52723         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52724         rename() to change the ctime of a file (because ctime is unaffected
52725         by rename on jfs2 on AIX 5.1).
52726         (main): Start by doing cleanup, in case a previous run failed leaving
52727         test files behind.
52728
52729 2007-03-31  Bruno Haible  <bruno@clisp.org>
52730
52731         Support old proprietary implementations of iconv.
52732         * modules/iconv_open: New file.
52733         * lib/iconv_.h: New file.
52734         * m4/iconv_h.m4: New file.
52735         * lib/iconv_open.c: New file.
52736         * lib/iconv_open-aix.gperf: New file.
52737         * lib/iconv_open-hpux.gperf: New file.
52738         * lib/iconv_open-irix.gperf: New file.
52739         * lib/iconv_open-osf.gperf: New file.
52740         * m4/iconv_open.m4: New file.
52741         * modules/linebreak (Depends-on): Add iconv_open.
52742         * modules/striconv (Depends-on): Likewise.
52743         * modules/striconveh (Depends-on): Likewise.
52744         * modules/unicodeio (Depends-on): Likewise.
52745         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52746         (iconv_t)(-1).
52747         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52748         conversion if cd is (iconv_t)(-1).
52749         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52750         is not possible.
52751
52752 2007-03-31  Bruno Haible  <bruno@clisp.org>
52753
52754         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52755         work on Solaris either. Protect also second use of "autodetect_jp".
52756
52757 2007-03-31  Bruno Haible  <bruno@clisp.org>
52758
52759         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52760         the function is not present.
52761
52762 2007-03-31  Bruno Haible  <bruno@clisp.org>
52763
52764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52765         the function is not present.
52766
52767 2007-03-31  Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52770         a bug in HP-UX iconv_open().
52771
52772 2007-03-31  Bruno Haible  <bruno@clisp.org>
52773
52774         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52775         (Mathematics <math.h>): New section, add fpieee.
52776         (Input/output <stdio.h>): Add fseterr.
52777         (Mathematics <math.h>): New section, add printf-frexp.
52778         (Container data structures): Add sublist.
52779         (Core language properties): Add fpucw, inline.
52780         (Functions for greatest-width integer types <inttypes.h>): Add
52781         imaxabs, imaxdiv, inttypes.
52782         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52783         isnanl-nolibm, ldexp.
52784         (Mathematics <math.h>): New section, add printf-frexpl.
52785         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52786         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52787         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52788         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52789         (Unicode string functions): Add unistr/u*-mbtoucr.
52790         (Java): Add javacomp-script, javaexec-script.
52791         (C#): Add csharpcomp-script, csharpexec-script.
52792         (Support for building libraries and executables): Add havelib,
52793         relocatable-*.
52794         (Support for maintaining and releasing projects): Renamed from
52795         'Support for maintaining and release projects'. Add announce-gen.
52796
52797 2007-03-31  Bruno Haible  <bruno@clisp.org>
52798
52799         * README: Talk primarily about git.
52800         (git and CVS): Renamed from CVS.
52801         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52802         gnulib is available through git.
52803         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52804
52805 2007-03-30  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52808         * lib/poll_.h: Likewise.
52809         * lib/stat_.h: Likewise.
52810         * lib/sys_time_.h: Likewise.
52811         * lib/sysexit_.h: Likewise.
52812         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52813         * lib/stdbool_.h: Likewise.
52814         * lib/byteswap_.h: Add double-inclusion guard.
52815
52816 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52817
52818         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52819
52820 2007-03-30  Karl Berry  <karl@gnu.org>
52821
52822         * config/srclist-update: double space after USA in the license
52823         substitution, since that's how it's usually (?) written.
52824
52825 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52828         reported by Bruno Haible.
52829
52830 2007-03-29  Bruno Haible  <bruno@clisp.org>
52831
52832         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52833         a bug in AIX iconv().
52834
52835 2007-03-29  Bruno Haible  <bruno@clisp.org>
52836
52837         * modules/ldexpl-tests: New file.
52838         * tests/test-ldexpl.c: New file.
52839
52840 2007-03-29  Bruno Haible  <bruno@clisp.org>
52841
52842         * lib/ldexpl.c: Include fpucw.h.
52843         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52844         multiplication.
52845         * modules/ldexpl (Depends-on): Add fpucw.
52846
52847 2007-03-29  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/ldexpl: New file.
52850         * m4/ldexpl.m4: New file.
52851         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52852         set.
52853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52854         REPLACE_LDEXPL.
52855         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52856         REPLACE_LDEXPL.
52857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52858         gl_FUNC_LDEXPL_WORKS.
52859         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52860         * modules/mathl (Files): Remove lib/ldexpl.c.
52861         (Depends-on): Add ldexpl.
52862
52863 2007-03-29  Bruno Haible  <bruno@clisp.org>
52864
52865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52866
52867 2007-03-29  Bruno Haible  <bruno@clisp.org>
52868
52869         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52870         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52871         and possibly also HP-UX.
52872         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52873         work on AIX, IRIX, HP-UX, OSF/1.
52874         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52875         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52876         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52877         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52878         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52879         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52880
52881 2007-03-29  Bruno Haible  <bruno@clisp.org>
52882
52883         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52884
52885 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52888         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52889
52890 2007-03-29  Eric Blake  <ebb9@byu.net>
52891
52892         * lib/acl-internal.h: Remove redundant include.
52893         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52894         Cygwin when a file is locked.
52895
52896 2007-03-29  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52899         file.
52900         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52901
52902 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52905         try to remove a parent directory if the child couldn't be removed
52906         (except for the first rmdir, which could fail because the child
52907         doesn't exist).  Problem reported by Jeff Blaine in
52908         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52909
52910 2007-03-28  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/striconveh.c (utf8conv_carefully): New function.
52913         (mem_cd_iconveh_internal): Invoke it.
52914
52915 2007-03-28  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52918         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52919         input.
52920         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52921         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52922         unistr/u8-uctomb.
52923
52924 2007-03-28  Bruno Haible  <bruno@clisp.org>
52925
52926         * modules/unistr/u8-mbtoucr: New file.
52927         * lib/unistr/u8-mbtoucr.c: New file.
52928         * modules/unistr/u16-mbtoucr: New file.
52929         * lib/unistr/u16-mbtoucr.c: New file.
52930         * modules/unistr/u16-mbtoucr: New file.
52931         * lib/unistr/u16-mbtoucr.c: New file.
52932         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52933
52934 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52935             Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52938         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52939         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52940
52941         * m4/stdio_h.m4: Add stubs for vasprintf too.
52942
52943         * modules/stdio: Support vasprintf in sed command.
52944
52945         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52946         vasprintf.h.  Add stdio module indicator.
52947
52948         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52949         vasprintf.h.
52950
52951         * lib/vasprintf.h: File removed.
52952
52953         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52954         * lib/vasprintf.c: Ditto.
52955         * lib/xvasprintf.c: Ditto.
52956         * tests/test-vasprintf-posix.c: Ditto.
52957         * tests/test-vasprintf.c: Ditto.
52958
52959 2007-03-27  Bruno Haible  <bruno@clisp.org>
52960
52961         Make vasnprintf multithread-safe.
52962         * lib/vasnprintf.c (decimal_point_char): New function.
52963         (VASNPRINTF): Use it.
52964         Suggested by Simon Josefsson.
52965
52966 2007-03-27  Eric Blake  <ebb9@byu.net>
52967
52968         Support sub-second birthtime on cygwin.
52969         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52970         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52971         (get_stat_birthtime): Also work with st_birthtim.
52972
52973 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52976         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52977         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52978         (get_stat_birthtime_ns): Simplify compile-time tests.
52979         (get_stat_birthtime): Change the API to look like
52980         get_stat_mtime etc., except return a negative tv_nsec on error.
52981         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52982         Don't check for "spare" fields.
52983         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52984         or for struct stat.st_birthtime, as these tests aren't used.
52985         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52986
52987 2007-03-27  Bruno Haible  <bruno@clisp.org>
52988
52989         * lib/stat-time.h: Include <sys/stat.h>.
52990
52991 2007-03-27  James Youngman  <jay@gnu.org>
52992
52993         * lib/stat-time.h (get_stat_birthtime): New function for
52994           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52995         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52996           and its variants.
52997         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52998         * modules/stat-time-test: New file.
52999         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53000
53001 2007-03-26  Bruno Haible  <bruno@clisp.org>
53002
53003         Better support of signalling NaNs.
53004         * lib/atanl.c: Include isnanl.h.
53005         (atanl): Perform test for NaN at the beginning of the function and
53006         through a call to isnanl.
53007         * lib/cosl.c: Include isnanl.h.
53008         (cosl): Perform test for NaN at the beginning of the function and
53009         through a call to isnanl.
53010         * lib/ldexpl.c: Include isnanl.h.
53011         (ldexpl): Perform test for NaN through a call to isnanl.
53012         * lib/logl.c: Include isnanl.h.
53013         (logl): Perform test for NaN at the beginning of the function and
53014         through a call to isnanl.
53015         * lib/sinl.c: Include isnanl.h.
53016         (sinl): Perform test for NaN at the beginning of the function and
53017         through a call to isnanl.
53018         * lib/sqrtl.c: Include isnanl.h.
53019         (sqrtl): Perform test for NaN at the beginning of the function and
53020         through a call to isnanl.
53021         * lib/tanl.c: Include isnanl.h.
53022         (tanl): Perform test for NaN at the beginning of the function and
53023         through a call to isnanl.
53024         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53025         * modules/mathl (Depends-on): Add isnanl.
53026
53027 2007-03-26  Eric Blake  <ebb9@byu.net>
53028
53029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53030         regression in logic sense of previous patch.
53031
53032 2007-03-26  Bruno Haible  <bruno@clisp.org>
53033
53034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53035         unportable shell command "if ! ...".
53036         Reported by Ralf Wildenhues.
53037
53038 2007-03-25  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53041         <sysexits.h> file, and only add EX_CONFIG.
53042         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53043         absolute file name and whether it is sufficient. Substitute also
53044         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53045         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53046         ABSOLUTE_SYSEXITS_H into sysexits.h.
53047
53048 2007-03-25  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53051         hints is NULL.
53052
53053 2007-03-25  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53056         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53057
53058 2007-03-25  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/vasnprintf.c: Include langinfo.h.
53061         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53062         multithread-safe.
53063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53064         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53072         Reported by Simon Josefsson.
53073
53074 2007-03-25  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53077         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53078         * modules/vasnprintf (Depends-on): Add stdint.
53079
53080 2007-03-25  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/fpieee: New file.
53083         * m4/fpieee.m4: New file.
53084         * modules/isnan-nolibm (Depends-on): Add fpieee.
53085         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53086         * modules/isnanl (Depends-on): Add fpieee.
53087
53088 2007-03-25  Bruno Haible  <bruno@clisp.org>
53089
53090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53091
53092 2007-03-25  Bruno Haible  <bruno@clisp.org>
53093
53094         Avoid test failures on IRIX 6.5.
53095         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53096         (main): Use it.
53097         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53098         macros.
53099         (main): Use them.
53100
53101 2007-03-25  Bruno Haible  <bruno@clisp.org>
53102
53103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53104         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53105         exists but doesn't work.
53106         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53107         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53109         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53110         math.h.
53111
53112 2007-03-25  Bruno Haible  <bruno@clisp.org>
53113
53114         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53115         returns inf. Needed on IRIX 6.5.
53116
53117 2007-03-25  Bruno Haible  <bruno@clisp.org>
53118
53119         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53120         (main): Use isnanl instead of x != x idiom.
53121         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53122
53123         * tests/test-frexp.c: Include isnan.h.
53124         (main): Use isnan instead of x != x idiom.
53125         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53126
53127 2007-03-25  Bruno Haible  <bruno@clisp.org>
53128
53129         * tests/test-frexp.c (NaN): New function/macro.
53130         (main): Use it instead of 0.0 / 0.0.
53131         * tests/test-isnan.c (NaN): New function/macro.
53132         (main): Use it instead of 0.0 / 0.0.
53133         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53134         (test_function): Use it instead of 0.0 / 0.0.
53135         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53136         (test_function): Use it instead of 0.0 / 0.0.
53137         * tests/test-snprintf-posix.h (NaN): New function/macro.
53138         (test_function): Use it instead of 0.0 / 0.0.
53139         * tests/test-sprintf-posix.h (NaN): New function/macro.
53140         (test_function): Use it instead of 0.0 / 0.0.
53141         * tests/test-fprintf-posix.h (NaN): New function/macro.
53142         (test_function): Use it instead of 0.0 / 0.0.
53143         * tests/test-printf-posix.h (NaN): New function/macro.
53144         (test_function): Use it instead of 0.0 / 0.0.
53145
53146         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53147
53148 2007-03-25  Bruno Haible  <bruno@clisp.org>
53149
53150         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53151
53152 2007-03-25  Bruno Haible  <bruno@clisp.org>
53153
53154         * lib/regexec.c (merge_state_with_log): Make static.
53155
53156 2007-03-25  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/trigl.c (kernel_rem_pio2): Make static.
53159
53160 2007-03-25  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/sincosl.c (sincosl_table): Make static.
53163
53164 2007-03-25  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53167         if the compiler does not support C99.
53168
53169 2007-03-25  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/time (Makefile.am): Ensure all rule action lines start with a
53172         tab.
53173
53174 2007-03-24  Bruno Haible  <bruno@clisp.org>
53175
53176         * modules/tsearch-tests: New file.
53177         * tests/test-tsearch.sh: New file.
53178         * tests/test-tsearch.c: New file, mostly copied from glibc.
53179
53180         * modules/search-tests: New file.
53181         * tests/test-search.c: New file.
53182
53183         * modules/search: New file.
53184         * lib/search_.h: New file, incorporating lib/tsearch.h.
53185         * m4/search_h.m4: New file.
53186         * lib/tsearch.h: Remove file.
53187         * lib/tsearch.c: Include search.h instead of tsearch.h.
53188         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53189         HAVE_TSEARCH.
53190         * modules/tsearch (Files): Remove lib/tsearch.h.
53191         (Depends-on): Add search.
53192         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53193         (Include): Change tsearch.h into search.h.
53194
53195 2007-03-24  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/fpucw: New file.
53198         * lib/fpucw.h: New file.
53199         * lib/frexp.c: Include fpucw.h.
53200         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53201         (FUNC): Use them.
53202         * lib/printf-frexp.c: Include fpucw.h.
53203         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53204         (FUNC): Use them.
53205         * lib/vasnprintf.c: Include fpucw.h.
53206         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53207         'long double' calculations.
53208         * tests/test-frexpl.c: Include fpucw.h.
53209         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53210         * tests/test-printf-frexpl.c: Include fpucw.h.
53211         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53212         * modules/frexpl (Depends-on): Add fpucw.
53213         * modules/printf-frexpl (Depends-on): Likewise.
53214         * modules/fprintf-posix (Depends-on): Likewise.
53215         * modules/snprintf-posix (Depends-on): Likewise.
53216         * modules/sprintf-posix (Depends-on): Likewise.
53217         * modules/vasnprintf-posix (Depends-on): Likewise.
53218         * modules/vasprintf-posix (Depends-on): Likewise.
53219         * modules/vfprintf-posix (Depends-on): Likewise.
53220         * modules/vsnprintf-posix (Depends-on): Likewise.
53221         * modules/vsprintf-posix (Depends-on): Likewise.
53222         * modules/frexpl-tests (Depends-on): Likewise.
53223         * modules/printf-frexpl-tests (Depends-on): Likewise.
53224
53225 2007-03-24  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/float+.h: New file.
53228         * lib/isnan.c: Include float+.h.
53229         (SIZE): New macro.
53230         (FUNC): Compare only SIZE bytes of the value.
53231         * lib/vasnprintf.c: Include float+.h.
53232         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53233         SIZEOF_LDBL or SIZEOF_DBL bytes.
53234         * modules/isnan-nolibm (Files): Add lib/float+.h.
53235         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53236         * modules/isnanl (Files): Add lib/float+.h.
53237         * modules/vasnprintf (Files): Add lib/float+.h.
53238
53239 2007-03-24  Bruno Haible  <bruno@clisp.org>
53240
53241         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53242         include isnanl-nolibm.h.
53243
53244 2007-03-24  Bruno Haible  <bruno@clisp.org>
53245
53246         * tests/test-read-file.c (main): Don't produce spurious output for
53247         expected situations. Make the test fail if it encountered unexpected
53248         results.
53249
53250 2007-03-24  Bruno Haible  <bruno@clisp.org>
53251
53252         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53253         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53254
53255 2007-03-24  Bruno Haible  <bruno@clisp.org>
53256
53257         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53258
53259 2007-03-24  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53262         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53263
53264         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53265         * modules/utf8-ucs4: Turn into a symbolic link to module
53266         unistr/u8-mbtouc.
53267
53268         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53269         utf8-ucs4-unsafe.
53270         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53271         unistr/u8-mbtouc-unsafe.
53272
53273         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53274         * modules/utf16-ucs4: Turn into a symbolic link to module
53275         unistr/u16-mbtouc.
53276
53277         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53278         utf16-ucs4-unsafe.
53279         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53280         unistr/u16-mbtouc-unsafe.
53281
53282         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53283         * modules/ucs4-utf8: Turn into a symbolic link to module
53284         unistr/u8-ubtomb.
53285
53286         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53287         * modules/ucs4-utf16: Turn into a symbolic link to module
53288         unistr/u16-ubtomb.
53289
53290 2007-03-24  Bruno Haible  <bruno@clisp.org>
53291
53292         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53293         Enable the function only if HAVE_INLINE.
53294         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53295         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53296         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53297         Enable the function only if HAVE_INLINE.
53298         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53299         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53300         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53301         Enable the function only if HAVE_INLINE.
53302         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53303         Enable the function only if HAVE_INLINE.
53304         * modules/utf8-ucs4: Update.
53305         * modules/utf8-ucs4-unsafe: Update.
53306         * modules/utf16-ucs4: Update.
53307         * modules/utf16-ucs4-unsafe: Update.
53308         * modules/ucs4-utf8: Update.
53309         * modules/ucs4-utf16: Update.
53310
53311 2007-03-24  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/utf8-ucs4.h: Remove file.
53314         * lib/utf8-ucs4-unsafe.h: Remove file.
53315         * lib/utf16-ucs4.h: Remove file.
53316         * lib/utf16-ucs4-unsafe.h: Remove file.
53317         * lib/ucs4-utf8.h: Remove file.
53318         * lib/ucs4-utf16.h: Remove file.
53319         * lib/unistr.h: Include their previous contents.
53320         * m4/utf-ucs4.m4: Remove file.
53321         * m4/ucs4-utf.m4: Remove file.
53322         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53323         (Depends-on): Add unistr/base.
53324         (configure.ac): Remove gl_UTF_UCS4.
53325         (Makefile.am): Update.
53326         (Include): Change to unistr.h.
53327         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53328         (Depends-on): Add unistr/base.
53329         (configure.ac): Remove gl_UTF_UCS4.
53330         (Makefile.am): Update.
53331         (Include): Change to unistr.h.
53332         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53333         (Depends-on): Add unistr/base.
53334         (configure.ac): Remove gl_UTF_UCS4.
53335         (Makefile.am): Update.
53336         (Include): Change to unistr.h.
53337         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53338         (Depends-on): Add unistr/base.
53339         (configure.ac): Remove gl_UTF_UCS4.
53340         (Makefile.am): Update.
53341         (Include): Change to unistr.h.
53342         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53343         (Depends-on): Add unistr/base.
53344         (configure.ac): Remove gl_UCS4_UTF.
53345         (Makefile.am): Update.
53346         (Include): Change to unistr.h.
53347         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53348         (Depends-on): Add unistr/base.
53349         (configure.ac): Remove gl_UCS4_UTF.
53350         (Makefile.am): Update.
53351         (Include): Change to unistr.h.
53352         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53353         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53354         utf8-ucs4-unsafe.h.
53355         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53356         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53357         utf16-ucs4-unsafe.h.
53358         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53359         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53360         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53361         * lib/unistr/u8-strchr.c: Likewise.
53362         * lib/unistr/u8-strrchr.c: Likewise.
53363         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53364         * lib/unistr/u16-strchr.c: Likewise.
53365         * lib/unistr/u16-strrchr.c: Likewise.
53366         * lib/striconveh.c: Update.
53367         * lib/linebreak.c: Update.
53368
53369 2007-03-24  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53372         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53373
53374 2007-03-22  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53377
53378 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * MODULES.html.sh (File system functions): New module write-any-file.
53381         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53382         * m4/write-any-file.m4: New files.
53383
53384 2007-03-23  Eric Blake  <ebb9@byu.net>
53385
53386         * gnulib-tool: Rearrange space-tab sequences, since some editors
53387         like to eat them.
53388
53389 2007-03-23  Eric Blake  <ebb9@byu.net>
53390
53391         * lib/version-etc.c (version_etc_va): Update license wording to
53392         be more concise.  Recommended by Richard Stallman.
53393
53394 2007-03-22  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/poll.c (MSG_PEEK): New fallback definition.
53397
53398 2007-03-22  Bruno Haible  <bruno@clisp.org>
53399
53400         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53401         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53402         (main): Update.
53403         Fixes a compilation error on BeOS.
53404
53405 2007-03-22  Bruno Haible  <bruno@clisp.org>
53406
53407         * modules/frexpl-tests: New file.
53408         * tests/test-frexpl.c: New file.
53409
53410         * modules/frexpl: New file.
53411         * m4/frexpl.m4: New file.
53412         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53413         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53415         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53416         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53417         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53418
53419 2007-03-22  Bruno Haible  <bruno@clisp.org>
53420
53421         * lib/frexpl.c: Share code with lib/frexp.c.
53422         * modules/mathl (Files): Add lib/frexp.c.
53423         (Depends-on): Add isnanl-nolibm.
53424
53425 2007-03-22  Bruno Haible  <bruno@clisp.org>
53426
53427         * modules/printf-frexp (Files): Add m4/frexp.m4.
53428         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53429         only if the found frexp function actually works.
53430
53431 2007-03-22  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/frexp.c: Remove older implementation that uses divisions.
53434
53435 2007-03-21  Bruno Haible  <bruno@clisp.org>
53436
53437         * modules/frexp-tests: New file.
53438         * tests/test-frexp.c: New file.
53439
53440         * modules/frexp: New file.
53441         * lib/frexp.c: New file.
53442         * m4/frexp.m4: New file.
53443         * lib/math_.h (frexp): New declaration.
53444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53445         REPLACE_FREXP.
53446         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53447
53448 2007-03-21  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/isnanl-tests: New file.
53451         * tests/test-isnanl.c: New file.
53452
53453         * modules/isnanl: New file.
53454         * lib/isnanl.h: New file.
53455         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53456         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53457         gl_FUNC_ISNANL_WORKS.
53458         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53459         New macros.
53460
53461 2007-03-21  Bruno Haible  <bruno@clisp.org>
53462
53463         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53464         lib/isnanl.h.
53465         (Include): Update.
53466         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53467         * lib/vasnprintf.c: Update.
53468         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53469         tests/test-isnanl.h, remove tests/test-isnanl.c.
53470         (Makefile.am): Update.
53471         * tests/test-isnanl-nolibm.c: New file.
53472         * tests/test-isnanl.h: New file.
53473         * tests/test-isnanl.c: Remove file.
53474
53475 2007-03-21  Jim Meyering  <jim@meyering.net>
53476
53477         When trying to open ".", treat ESTALE like EACCES.
53478         * lib/savewd.c (savewd_save): Resort to forking not just upon
53479         failure with EACCES, but also when errno is ESTALE.
53480
53481 2007-03-20  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53484         Needed on AIX 5.1. Reported by Matthew Woehlke.
53485
53486 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53487
53488         Suggestions by Bruno Haible:
53489         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53490         our own.
53491         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53492         * modules/acl (Depends-on): Add gettext.
53493
53494 2007-03-19  Bruno Haible  <bruno@clisp.org>
53495
53496         * modules/iconvme: Remove file.
53497         * lib/iconvme.h: Remove file.
53498         * lib/iconvme.c: Remove file.
53499         * m4/iconvme.m4: Remove file.
53500
53501 2007-03-19  Bruno Haible  <bruno@clisp.org>
53502
53503         * doc/relocatable-maint.texi: Break long shell script line.
53504         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53505
53506 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53507
53508         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53509         handle file_has_acl.
53510         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53511         * lib/acl.c: Move header inclusions and related macro defns into
53512         lib/acl-internal.h.
53513         (S_ISLNK): Remove defn, since that's now done for us.
53514         (file_has_acl): Move to lib/file-has-acl.c.
53515         Call acl_trivial if available.  This is the crucial part of the fix.
53516         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53517         shared within the library.  Rewrite a bit, partly to make it compatible
53518         with the GNU coding style.
53519         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53520         Remove unnecessary double-quotes.
53521         Don't test for acl_to_text; the build will catch that.
53522         Replace acl_entries if it doesn't exist and it is needed.
53523         Check for -lsec and acl_trivial (as used on Solaris 10).
53524         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53525         lib/file-has-acl.c.
53526         (Depends-on): Add sys_stat, for S_ISLNK.
53527
53528 2007-03-19  Ben Pfaff  <blp@gnu.org>
53529
53530         * doc/gnulib.texi: Fix typos.
53531         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53532
53533 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53536         If size is zero here, buf must be zero.
53537
53538 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53539
53540         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53541         <bruno@clisp.org>.
53542
53543 2007-03-18  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53546         Suggested by Eric Blake.
53547
53548 2007-03-18  Ben Pfaff  <blp@gnu.org>
53549
53550         * doc/relocatable.texi: Recommend using as prefix a directory
53551         that does not exist and will never be created.  Based on
53552         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53553         and others.
53554
53555 2007-03-17  Bruno Haible  <bruno@clisp.org>
53556
53557         * lib/fchownat.c: Include lchown.h.
53558
53559 2007-03-17  Bruno Haible  <bruno@clisp.org>
53560
53561         Fix endless loop when the given allocated size was > INT_MAX.
53562         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53563         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53564         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53565         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53566         * lib/sprintf.c (sprintf): Likewise.
53567
53568 2007-03-17  Bruno Haible  <bruno@clisp.org>
53569
53570         * tests/test-argp-2.sh (func_compare): Output a context diff.
53571
53572 2007-03-17  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53575         locale's decimal-point character.
53576
53577 2007-03-17  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53580         before comparing it. Needed because on some platforms (e.g. x86) a
53581         'long double' occupies less bytes than sizeof (long double).
53582
53583 2007-03-17  Bruno Haible  <bruno@clisp.org>
53584
53585         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53586         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53587         * tests/test-getaddrinfo.c (simple): Likewise.
53588         * tests/test-read-file.c (main): Likewise.
53589
53590 2007-03-17  Bruno Haible  <bruno@clisp.org>
53591
53592         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53593
53594 2007-03-17  Bruno Haible  <bruno@clisp.org>
53595
53596         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53597         unused variable.
53598
53599 2007-03-17  Bruno Haible  <bruno@clisp.org>
53600
53601         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53602         * tests/test-c-strncasecmp.c: Likewise.
53603
53604 2007-03-17  Bruno Haible  <bruno@clisp.org>
53605
53606         * modules/stdlib (Depends-on): Add unistd.
53607         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53608         Needed for MacOS X 10.3.
53609
53610 2007-03-17  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53613
53614 2007-03-17  Bruno Haible  <bruno@clisp.org>
53615
53616         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53617
53618 2007-03-17  Bruno Haible  <bruno@clisp.org>
53619
53620         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53621         to reflect files copied from gnulib (with or without modifications).
53622         Suggested by Jim Meyering.
53623
53624 2007-03-17  Eric Blake  <ebb9@byu.net>
53625
53626         * NEWS: Document stdlib change from 2007-02-18.
53627
53628 2007-03-17  Jim Meyering  <jim@meyering.net>
53629
53630         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53631         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53632         someone uses a name containing shell meta-characters.
53633         Reported by Alfred M. Szmidt.
53634
53635         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53636
53637 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53638
53639         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53640         and copy gettext configuration files only if configure.ac contains
53641         a use of AM_GNU_GETTEXT_VERSION.
53642
53643 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53644
53645         * build-aux/bootstrap (gnulib_name): New variable.
53646         (gnulib_tool_options): Use it.
53647
53648 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53649
53650         * tests/test-des.c: Use new namespace.
53651
53652 2007-03-15  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53655         Reported by James Youngman <jay@gnu.org>.
53656
53657 2007-03-15  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53660         declared prototype. Needed with cc on OSF/1 5.1.
53661
53662 2007-03-15  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53665         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53666         (struct gl_list_implementation): Add dispose_fn argument to the
53667         'create_empty', 'create' methods.
53668         (struct gl_list_impl_base): Add field 'dispose_fn'.
53669         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53670         argument.
53671         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53672         dispose_fn argument.
53673         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53674         dispose_fn on the dropped values.
53675         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53676         dispose_fn argument.
53677         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53678         dropped values.
53679         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53680         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53681         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53682         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53683         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53684         argument.
53685         (gl_tree_list_free): Call dispose_fn on the dropped values.
53686         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53687         the dropped values.
53688         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53689         Add dispose_fn argument.
53690         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53691         Call dispose_fn on the dropped values.
53692         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53693         Add dispose_fn argument.
53694         (gl_sublist_create): Initialize the 'dispose_fn' field.
53695         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53696         * tests/test-array_list.c (main): Update.
53697         * tests/test-carray_list.c (main): Update.
53698         * tests/test-avltree_list.c (main): Update.
53699         * tests/test-rbtree_list.c (main): Update.
53700         * tests/test-avltreehash_list.c (main): Update.
53701         * tests/test-rbtreehash_list.c (main): Update.
53702         * tests/test-linked_list.c (main): Update.
53703         * tests/test-linkedhash_list.c (main): Update.
53704         * tests/test-array_oset.c (main): Update.
53705
53706 2007-03-15  Bruno Haible  <bruno@clisp.org>
53707
53708         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53709         (gl_oset_create_empty): Add dispose_fn argument.
53710         (struct gl_oset_implementation): Add dispose_fn argument to
53711         'create_empty' method.
53712         (struct gl_oset_impl_base): Add dispose_fn field.
53713         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53714         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53715         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53716         values.
53717         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53718         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53719         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53720         dropped value.
53721         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53722         dropped value.
53723         * tests/test-array_oset.c (main): Update.
53724         * tests/test-avltree_oset.c (main): Update.
53725         * tests/test-rbtree_oset.c (main): Update.
53726         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53727
53728 2007-03-13  Bruno Haible  <bruno@clisp.org>
53729
53730         * tests/test-stdbool.c (i): Update after last patch.
53731
53732 2007-03-12  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53735         the iswprint macro. Needed on Solaris 2.5.1.
53736
53737 2007-03-12  Bruno Haible  <bruno@clisp.org>
53738
53739         * tests/test-printf-frexp.c (main): Declare x as volatile.
53740
53741 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53742
53743         * doc/gnulib.texi (Build robot for gnulib): New section.
53744
53745 2007-03-12  Jim Meyering  <jim@meyering.net>
53746
53747         * build-aux/bootstrap: New file.
53748         * build-aux/bootstrap.conf: New file, from coreutils.
53749
53750 2007-03-11  Bruno Haible  <bruno@clisp.org>
53751
53752         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53753
53754 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53755
53756         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53757         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53758         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53759
53760 2007-03-11  Bruno Haible  <bruno@clisp.org>
53761
53762         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53763         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53764
53765 2007-03-11  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53768         formula. Needed for SunPRO C 5.0.
53769
53770 2007-03-11  Bruno Haible  <bruno@clisp.org>
53771
53772         * modules/long-options (Depends-on): Add getopt.
53773
53774 2007-03-11  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/modechange (Depends-on): Add stdbool.
53777
53778 2007-03-11  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/i-ring (Depends-on): Add stdbool.
53781
53782 2007-03-11  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/gc-des (Depends-on): Add stdbool.
53785
53786 2007-03-11  Bruno Haible  <bruno@clisp.org>
53787
53788         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53789
53790 2007-03-11  Bruno Haible  <bruno@clisp.org>
53791
53792         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53793
53794 2007-03-11  Bruno Haible  <bruno@clisp.org>
53795
53796         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53797
53798 2007-03-11  Bruno Haible  <bruno@clisp.org>
53799
53800         * lib/vasnprintf.c (sprintf): Undefine.
53801
53802 2007-03-11  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53805         initializers in SunPRO C and Compaq C compilers.
53806
53807 2007-03-11  Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53810         decrementing code ANSI C compliant.
53811
53812 2007-03-11  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53815         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53816
53817 2007-03-11  Bruno Haible  <bruno@clisp.org>
53818
53819         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53820         <stdbool.h> substitute doesn't pass.
53821
53822 2007-03-11  Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53825
53826 2007-03-11  Bruno Haible  <bruno@clisp.org>
53827
53828         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53829         script, for submission to autobuild.josefsson.org.
53830
53831 2007-03-10  Bruno Haible  <bruno@clisp.org>
53832
53833         * modules/canonicalize-lgpl-tests: New file.
53834         * tests/test-canonicalize-lgpl.sh: New file.
53835         * tests/test-canonicalize-lgpl.c: New file.
53836
53837         * modules/c-strcase-tests: New file.
53838         * tests/test-c-strcase.sh: New file.
53839         * tests/test-c-strcasecmp.c: New file.
53840         * tests/test-c-strncasecmp.c: New file.
53841
53842         * modules/atexit-tests: New file.
53843         * tests/test-atexit.sh: New file.
53844         * tests/test-atexit.c: New file.
53845
53846 2007-03-10  Bruno Haible  <bruno@clisp.org>
53847
53848         * tests/test-binary-io.sh: Use temporary filenames that are not so
53849         likely to clash with those of other tests (in a parallel make).
53850         * tests/test-binary-io.c: Likewise.
53851
53852 2007-03-10  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53855         fallback; use #error instead.
53856         Suggested by Simon Josefsson.
53857
53858 2007-03-10  Bruno Haible  <bruno@clisp.org>
53859
53860         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53861         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53862         first and the last.
53863
53864 2007-03-10  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53867
53868 2007-03-10  Bruno Haible  <bruno@clisp.org>
53869
53870         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53871         "make distcheck".
53872         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53873         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53874         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53875
53876 2007-03-10  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53879         variable.
53880         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53881         variable.
53882
53883 2007-03-09  Eric Blake  <ebb9@byu.net>
53884         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53885
53886         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53887         types are not being provided by gnulib.
53888         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53889         types are supported.
53890
53891 2007-03-10  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/stdio_.h (__attribute__): New macro.
53894         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53895         vsprintf): Specify __attribute__ __format__ for GCC.
53896         Suggested by Eric Blake.
53897
53898 2007-03-09  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/printf-posix-tests: New file.
53901         * tests/test-printf-posix.sh: New file.
53902         * tests/test-printf-posix.c: New file.
53903
53904         * modules/printf-posix: New file.
53905         * lib/printf.c: New file.
53906         * m4/printf-posix-rpl.m4: New file.
53907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53908         REPLACE_PRINTF.
53909         * lib/stdio_.h (printf): New declaration.
53910         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53911         ____strfmon____): New macros.
53912         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53913         REPLACE_PRINTF.
53914
53915 2007-03-09  Bruno Haible  <bruno@clisp.org>
53916
53917         * tests/test-vasnprintf-posix2.sh: New file.
53918         * tests/test-vasnprintf-posix2.c: New file.
53919         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53920         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53921         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53922
53923         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53924         a locale dependent decimal point, rather than always '.'.
53925
53926 2007-03-09  Eric Blake  <ebb9@byu.net>
53927
53928         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53929         spite of platforms like Tandem/NSK that define it to -1.
53930
53931 2007-03-08  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/vprintf-posix-tests: New file.
53934         * tests/test-vprintf-posix.sh: New file.
53935         * tests/test-vprintf-posix.c: New file.
53936         * tests/test-printf-posix.h: New file.
53937
53938         * modules/vprintf-posix: New file.
53939         * lib/vprintf.c: New file.
53940         * m4/vprintf-posix.m4: New file.
53941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53942         REPLACE_VPRINTF.
53943         * lib/stdio_.h (vprintf): New declaration.
53944         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53945         REPLACE_VPRINTF.
53946
53947 2007-03-08  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/fprintf-posix-tests: New file.
53950         * tests/test-fprintf-posix.sh: New file.
53951         * tests/test-fprintf-posix.c: New file.
53952
53953         * modules/fprintf-posix: New file.
53954         * lib/fprintf.c: New file.
53955         * m4/fprintf-posix.m4: New file.
53956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53957         REPLACE_FPRINTF.
53958         * lib/stdio_.h (fprintf): New declaration.
53959         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53960         REPLACE_FPRINTF.
53961
53962 2007-03-08  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/vfprintf-posix-tests: New file.
53965         * tests/test-vfprintf-posix.sh: New file.
53966         * tests/test-vfprintf-posix.c: New file.
53967         * tests/test-fprintf-posix.h: New file.
53968         * tests/test-fprintf-posix.out: New file.
53969
53970         * modules/vfprintf-posix: New file.
53971         * lib/vfprintf.c: New file.
53972         * m4/vfprintf-posix.m4: New file.
53973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53974         REPLACE_VFPRINTF.
53975         * lib/stdio_.h (vfprintf): New declaration.
53976         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53977         REPLACE_VFPRINTF.
53978
53979 2007-03-08  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53982
53983 2007-03-08  Bruno Haible  <bruno@clisp.org>
53984
53985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53986         instead of 'expr' invocations.
53987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53992         Suggested by Paul Eggert.
53993
53994 2007-03-08  Bruno Haible  <bruno@clisp.org>
53995
53996         * modules/fseterr-tests: New file.
53997         * tests/test-fseterr.c: New file.
53998
53999         * modules/fseterr: New file.
54000         * lib/fseterr.h: New file.
54001         * lib/fseterr.c: New file.
54002
54003 2007-03-08  Bruno Haible  <bruno@clisp.org>
54004
54005         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54006         * lib/getopt_.h: Likewise.
54007         * lib/mbswidth.h: Likewise.
54008         * lib/setenv.h: Likewise.
54009         * lib/vasnprintf.h: Likewise.
54010         * lib/vasprintf.h: Likewise.
54011         * lib/verror.h: Likewise.
54012         * lib/xsetenv.h: Likewise.
54013         * lib/xvasprintf.h: Likewise.
54014
54015 2007-03-08  Jim Meyering  <jim@meyering.net>
54016
54017         * users.txt: Add parted.
54018
54019         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54020
54021 2007-03-07  Bruno Haible  <bruno@clisp.org>
54022
54023         * m4/printf.m4: Make the shell script snippets copy&pastable.
54024
54025 2007-03-02  Bruno Haible  <bruno@clisp.org>
54026
54027         * lib/netinet_in_.h: New file.
54028         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54029         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54030         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54031         (Depends-on): Add absolute-header.
54032         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54033         into netinet/in.h.
54034
54035 2007-03-03  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/sys_select_.h: New file.
54038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54039         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54040         * modules/sys_select (Files): Add lib/sys_select_.h.
54041         (Depends-on): Add absolute-header.
54042         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54043         into sys/select.h.
54044
54045 2007-03-02  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54048         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54049         values.
54050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54051         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54052         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54053         * modules/sys_socket (Depends-on): Add absolute-header.
54054         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54055         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54056         (Include): Remove requirement of inclusion of <sys/types.h>.
54057
54058 2007-03-02  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/byteswap_.h (bswap_32): Fix formula.
54061
54062 2007-03-06  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/sprintf-posix-tests: New file.
54065         * tests/test-sprintf-posix.c: New file.
54066
54067         * modules/sprintf-posix: New file.
54068         * lib/sprintf.c: New file.
54069         * m4/sprintf-posix.m4: New file.
54070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54071         REPLACE_SPRINTF.
54072         * lib/stdio_.h (sprintf): New declaration.
54073         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54074         REPLACE_SPRINTF.
54075
54076 2007-03-06  Bruno Haible  <bruno@clisp.org>
54077
54078         * modules/vsprintf-posix-tests: New file.
54079         * tests/test-vsprintf-posix.c: New file.
54080         * tests/test-sprintf-posix.h: New file.
54081
54082         * modules/vsprintf-posix: New file.
54083         * lib/vsprintf.c: New file.
54084         * m4/vsprintf-posix.m4: New file.
54085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54086         REPLACE_VSPRINTF.
54087         * lib/stdio_.h (vsprintf): New declaration.
54088         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54089         REPLACE_VSPRINTF.
54090
54091 2007-03-06  Bruno Haible  <bruno@clisp.org>
54092
54093         * modules/vsnprintf (Depend-on): Remove minmax.
54094
54095 2007-03-06  Bruno Haible  <bruno@clisp.org>
54096
54097         * modules/snprintf-posix-tests: New file.
54098         * tests/test-snprintf-posix.c: New file.
54099
54100         * modules/snprintf-posix: New file.
54101         * m4/snprintf-posix.m4: New file.
54102         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54103         gl_FUNC_SNPRINTF.
54104         (gl_FUNC_SNPRINTF): Invoke it.
54105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54106         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54107         is set.
54108         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54109
54110 2007-03-06  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/vsnprintf-posix-tests: New file.
54113         * tests/test-vsnprintf-posix.c: New file.
54114         * tests/test-snprintf-posix.h: New file.
54115
54116         * modules/vsnprintf-posix: New file.
54117         * m4/vsnprintf-posix.m4: New file.
54118         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54119         gl_FUNC_VSNPRINTF.
54120         (gl_FUNC_VSNPRINTF): Invoke it.
54121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54122         * lib/stdio_.h (vsnprintf): Define as a replacement if
54123         REPLACE_VSNPRINTF is set.
54124         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54125
54126 2007-03-06  Bruno Haible  <bruno@clisp.org>
54127
54128         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54130
54131 2007-03-06  Bruno Haible  <bruno@clisp.org>
54132
54133         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54134         (asinl): Declare also if HAVE_DECL_ASINL is set.
54135         (atanl): Declare also if HAVE_DECL_ATANL is set.
54136         (ceill): Declare also if HAVE_DECL_CEILL is set.
54137         (cosl): Declare also if HAVE_DECL_COSL is set.
54138         (expl): Declare also if HAVE_DECL_EXPL is set.
54139         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54140         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54141         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54142         (logl): Declare also if HAVE_DECL_LOGL is set.
54143         (sinl): Declare also if HAVE_DECL_SINL is set.
54144         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54145         (tanl): Declare also if HAVE_DECL_TANL is set.
54146         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54148         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54149         declaration of frexpl, ldexpl.
54150         * modules/printf-frexpl (Depends-on): Add math.
54151         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54152
54153 2007-03-05  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54156         frexpl and ldexpl are declared.
54157         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54158
54159 2007-03-05  Bruno Haible  <bruno@clisp.org>
54160
54161         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54162         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54163
54164 2007-03-05  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/stdio_.h: Include <stddef.h>.
54167
54168 2007-03-05  Bruno Haible  <bruno@clisp.org>
54169
54170         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54171
54172 2007-03-05  Bruno Haible  <bruno@clisp.org>
54173
54174         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54175         NetBSD 4, from Ralf Wildenhues.
54176
54177 2007-03-04  Bruno Haible  <bruno@clisp.org>
54178
54179         * lib/vasprintf.h: Update #if logic for the case when the functions
54180         exist but are overridden.
54181
54182 2007-03-04  Bruno Haible  <bruno@clisp.org>
54183
54184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54185         implementations: glibc-2.4 and MacOS X 10.3.
54186         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54187         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54188         * tests/test-vasprintf-posix.c (test_function): Likewise.
54189
54190 2007-03-04  Bruno Haible  <bruno@clisp.org>
54191
54192         * modules/vasprintf-posix-tests: New file.
54193         * tests/test-vasprintf-posix.c: New file.
54194
54195         * modules/vasprintf-posix: New file.
54196         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54197         defined.
54198         * m4/vasprintf-posix.m4: New file.
54199         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54200         gl_FUNC_VASPRINTF.
54201         (gl_FUNC_VASPRINTF): Invoke it.
54202         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54203         here.
54204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54205
54206 2007-03-04  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54209         REPLACE_GETTIMEOFDAY.
54210         * modules/sys_time (Makefile.am): Likewise.
54211         * m4/sys_time_h.m4: Likewise.
54212         * m4/gettimeofday.m4: Likewise.
54213
54214 2007-03-04  Bruno Haible  <bruno@clisp.org>
54215
54216         * modules/vasnprintf-posix-tests: New file.
54217         * tests/test-vasnprintf-posix.c: New file.
54218
54219         * modules/vasnprintf-posix: New file.
54220         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54221         printf-frexpl.h.
54222         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54223         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54224         REPLACE_VASNPRINTF is defined.
54225         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54226         gl_FUNC_VASNPRINTF.
54227         (gl_FUNC_VASNPRINTF): Invoke it.
54228         * m4/vasnprintf-posix.m4: New file.
54229         * m4/printf.m4: New file.
54230
54231 2007-03-04  Bruno Haible  <bruno@clisp.org>
54232
54233         Compile progreloc.c only if --enable-relocatable is specified.
54234         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54235         if --enable-relocatable was specified.
54236         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54237         lib_SOURCES.
54238
54239 2007-03-04  Jim Meyering  <jim@meyering.net>
54240
54241         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54242         Use it consistently, rather than enumerating errno constants.
54243
54244 2007-03-04  Bruno Haible  <bruno@clisp.org>
54245
54246         * modules/xvasprintf-tests: New file.
54247         * tests/test-xvasprintf.c: New file.
54248
54249         * modules/vasprintf-tests: New file.
54250         * tests/test-vasprintf.c: New file.
54251
54252         * modules/vasnprintf-tests: New file.
54253         * tests/test-vasnprintf.c: New file.
54254
54255         * modules/vsnprintf-tests: New file.
54256         * tests/test-vsnprintf.c: New file.
54257
54258         * modules/snprintf-tests: New file.
54259         * tests/test-snprintf.c: New file.
54260
54261 2007-03-04  Bruno Haible  <bruno@clisp.org>
54262
54263         Compile relocatable.c only if --enable-relocatable is specified.
54264         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54265         gl_RELOCATABLE_LIBRARY.
54266         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54267         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54268         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54269         gl_RELOCATABLE_LIBRARY.
54270         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54271         (Makefile.am): Remove lib_SOURCES.
54272         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54273         gl_RELOCATABLE_LIBRARY.
54274         (Makefile.am): Remove lib_SOURCES.
54275         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54276         always.
54277         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54278         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54279
54280 2007-03-04  Bruno Haible  <bruno@clisp.org>
54281
54282         * modules/argmatch-tests: New file.
54283         * tests/test-argmatch.c: New file.
54284
54285         * tests/test-allocsa.c (main): Halve the number of loop runs.
54286
54287         * modules/alloca-opt-tests: New file.
54288         * tests/test-alloca-opt.c: New file.
54289
54290 2007-03-04  Jim Meyering  <jim@meyering.net>
54291
54292         Work around difference between Linux ACLs and Solaris 10 ZFS.
54293         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54294         for EINVAL.
54295
54296 2007-03-03  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/relocatable-prog (Depends-on): Add back progreloc's
54299         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54300
54301 2007-03-03  Bruno Haible  <bruno@clisp.org>
54302
54303         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54304         * modules/relocatable-lib: New file.
54305
54306 2007-03-03  Bruno Haible  <bruno@clisp.org>
54307
54308         * modules/relocatable-prog: Renamed from modules/relocatable.
54309         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54310
54311 2007-03-03  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54314         m4/relocatable-lib.m4.
54315         (Depends-on): Remove 'relocatable'.
54316         (configure.ac): Add gl_RELOCATABLE_NOP.
54317
54318 2007-03-03  Bruno Haible  <bruno@clisp.org>
54319
54320         * modules/relocatable-prog-wrapper: New file.
54321         * modules/relocatable (Depends-on): Add it. Remove all other
54322         dependencies except progname.
54323         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54324
54325         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54326         (gl_FUNC_STRERROR): Nop.
54327         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54328
54329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54330         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54331
54332         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54333         (gl_FUNC_READLINK): Update.
54334
54335         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54336
54337 2007-03-03  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54340         * modules/xreadlink (Depends-on): Add unistd.
54341         * modules/xreadlink-with-size (Depends-on): Likewise.
54342
54343 2007-03-03  Bruno Haible  <bruno@clisp.org>
54344
54345         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54346         extracted from gt_FUNC_SETENV.
54347         (gt_FUNC_SETENV): Remove macro.
54348         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54349         remove gt_FUNC_SETENV.
54350
54351 2007-03-03  Bruno Haible  <bruno@clisp.org>
54352
54353         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54354         ENABLE_RELOCATABLE here.
54355         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54356
54357 2007-03-03  Bruno Haible  <bruno@clisp.org>
54358
54359         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54360         * tests/test-rbtreehash_list.c: Include progname.h.
54361         (main): Call set_program_name.
54362
54363         * modules/rbtree-oset-tests (Depends-on): Add progname.
54364         * tests/test-rbtree_oset.c: Include progname.h.
54365         (main): Call set_program_name.
54366
54367         * modules/rbtree-list-tests (Depends-on): Add progname.
54368         * tests/test-rbtree_list.c: Include progname.h.
54369         (main): Call set_program_name.
54370
54371         * modules/linked-list-tests (Depends-on): Add progname.
54372         * tests/test-linked_list.c: Include progname.h.
54373         (main): Call set_program_name.
54374
54375 2007-03-03  Bruno Haible  <bruno@clisp.org>
54376
54377         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54378         All uses of __restrict changed to _Restrict_.
54379         * lib/glob_.h (__restrict): Remove macro.
54380
54381 2007-03-02  Bruno Haible  <bruno@clisp.org>
54382
54383         * modules/gettext (configure.ac): Require gettext infrastructure
54384         from version 0.16.1.
54385
54386 2007-03-02  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/linkedhash-list-tests (Depends-on): Add progname.
54389         * tests/test-linkedhash_list.c: Include progname.h.
54390         (main): Call set_program_name.
54391
54392         * modules/carray-list-tests (Depends-on): Add progname.
54393         * tests/test-carray_list.c: Include progname.h.
54394         (main): Call set_program_name.
54395
54396         * modules/avltreehash-list-tests (Depends-on): Add progname.
54397         * tests/test-avltreehash_list.c: Include progname.h.
54398         (main): Call set_program_name.
54399
54400         * modules/avltree-oset-tests (Depends-on): Add progname.
54401         * tests/test-avltree_oset.c: Include progname.h.
54402         (main): Call set_program_name.
54403
54404         * modules/avltree-list-tests (Depends-on): Add progname.
54405         * tests/test-avltree_list.c: Include progname.h.
54406         (main): Call set_program_name.
54407
54408         * modules/array-oset-tests (Depends-on): Add progname.
54409         * tests/test-array_oset.c: Include progname.h.
54410         (main): Call set_program_name.
54411
54412         * modules/array-list-tests (Depends-on): Add progname.
54413         * tests/test-array_list.c: Include progname.h.
54414         (main): Call set_program_name.
54415
54416         * modules/argp-tests (Depends-on): Add progname.
54417         * tests/test-argp.c: Include argp.h first. Include progname.h.
54418         (main): Call set_program_name.
54419
54420 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         * doc/gnulib-tool.texi (Initial import): Reword description of
54423         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54424         limited effect even if defined after the first system include.
54425
54426 2007-03-01  Bruno Haible  <bruno@clisp.org>
54427
54428         * build-aux/config.libpath: Update to libtool-1.5.22.
54429         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54430
54431 2007-03-01  Bruno Haible  <bruno@clisp.org>
54432
54433         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54434         foo_CFLAGS.
54435         Reported by Ralf Wildenhues.
54436
54437 2007-03-01  Bruno Haible  <bruno@clisp.org>
54438
54439         * build-aux/install-reloc: Remove object files left over by some
54440         compilers.
54441         Reported by Ralf Wildenhues.
54442
54443 2007-03-01  Bruno Haible  <bruno@clisp.org>
54444
54445         * build-aux/install-reloc: Break long lines.
54446
54447 2007-03-01  Bruno Haible  <bruno@clisp.org>
54448
54449         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54450         Reported by Ralf Wildenhues.
54451
54452 2007-03-01  Bruno Haible  <bruno@clisp.org>
54453
54454         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54455         include ordering constraints.
54456
54457 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54458
54459         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54461         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54462         as another example.
54463         * lib/time_.h: Fix misspelling.
54464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54465         Require gl_HEADER_TIME_H_DEFAULTS.
54466         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54467         * m4/time_r.m4 (gl_TIME_R): Likewise.
54468         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54469
54470 2007-03-01  Bruno Haible  <bruno@clisp.org>
54471
54472         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54473         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54474
54475 2007-03-01  Jim Meyering  <jim@meyering.net>
54476
54477         * modules/xreadlink (Maintainer): Add my name.
54478         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54479
54480 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54481             Bruno Haible  <bruno@clisp.org>
54482
54483         * build-aux/install-reloc: Compile also c-ctype.c.
54484         * build-aux/relocatable.sh.in: New file.
54485         * doc/relocatable.texi: New file.
54486         * doc/relocatable-maint.texi: New file.
54487         * doc/gnulib.texi: Include relocatable-maint.texi.
54488         * lib/progreloc.c: Include unistd.h unconditionally.
54489         * lib/relocwrapper.c: Include unistd.h unconditionally.
54490         Include c-ctype.h.
54491         (add_dotbin): Use c_tolower.
54492         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54493         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54494         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54495         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54496         to m4/relocatable-lib.m4.
54497         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54498         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54499         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54500         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54501         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54502         * modules/relocatable: New file.
54503         * modules/relocatable-lib: New file.
54504         * modules/relocatable-script: New file.
54505
54506 2007-02-28  Bruno Haible  <bruno@clisp.org>
54507
54508         Import --enable-relocatable infrastructure.
54509         * build-aux/config.libpath: New file, from GNU gettext.
54510         * build-aux/install-reloc: New file, from GNU gettext.
54511         * build-aux/reloc-ldflags: New file, from GNU gettext.
54512         * lib/relocatable.h: New file, from GNU gettext.
54513         * lib/relocatable.c: New file, from GNU gettext.
54514         * lib/relocwrapper.c: New file, from GNU gettext.
54515         * m4/relocatable.m4: New file, from GNU gettext.
54516
54517 2007-02-28  Bruno Haible  <bruno@clisp.org>
54518
54519         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54520
54521         * modules/xreadlink: New file, from GNU gettext with modifications.
54522         * lib/xreadlink.c: New file, from GNU gettext.
54523         * lib/xreadlink.h: Add comments.
54524         (xreadlink): New declaration.
54525
54526         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54527         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54528         lib/xreadlink-with-size.c.
54529         (configure.ac): Remove gl_XREADLINK invocation.
54530         (Makefile.am): Augment lib_SOURCES.
54531         * m4/xreadlink.m4: Remove file.
54532         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54533         (xreadlink_with_size): Renamed from xreadink.
54534         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54535         * modules/canonicalize (Depends-on): Replace xreadlink with
54536         xreadlink-with-size.
54537         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54538
54539 2007-02-25  Jim Meyering  <jim@meyering.net>
54540
54541         * build-aux/announce-gen: When complaining about excess arguments,
54542         list them.
54543
54544 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54545
54546         * README: Document signed integer overflow situation more
54547         accurately.
54548
54549 2007-02-25  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54552         'a' or 'A' conversion.
54553
54554 2007-02-25  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/filename: Renamed from modules/pathname.
54557         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54558         lib/concatpath.c with lib/concat-filename.c.
54559         (Makefile.am): Update.
54560         (Include): Replace pathname.h with filename.h.
54561         * lib/filename.h: Renamed from lib/pathname.h.
54562         (concatenated_filename): Renamed from concatenated_pathname.
54563         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54564         (concatenated_filename): Renamed from concatenated_pathname.
54565         * lib/findprog.c: Include filename.h instead of pathname.h.
54566         (find_in_path): Update.
54567         * lib/javacomp.c: Include filename.h instead of pathname.h.
54568         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54569         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54570         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54571         is_oldgcj_14_13_usable, is_javac_usable): Update.
54572         * lib/javaexec.c: Include filename.h instead of pathname.h.
54573         (execute_java_class): Update.
54574         * modules/findprog: Update.
54575         * modules/javacomp: Update.
54576         * modules/javaexec: Update.
54577         * MODULES.html.sh (File system functions): Add 'filename', remove
54578         'pathname'.
54579
54580 2007-02-25  Bruno Haible  <bruno@clisp.org>
54581
54582         * modules/printf-frexpl-tests: New file.
54583         * tests/test-printf-frexpl.c: New file.
54584
54585         * modules/printf-frexpl: New file.
54586         * lib/printf-frexpl.h: New file.
54587         * lib/printf-frexpl.c: New file.
54588         * m4/printf-frexpl.m4: New file.
54589
54590 2007-02-25  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/printf-frexp-tests: New file.
54593         * tests/test-printf-frexp.c: New file.
54594
54595         * modules/printf-frexp: New file.
54596         * lib/printf-frexp.h: New file.
54597         * lib/printf-frexp.c: New file.
54598         * m4/printf-frexp.m4: New file.
54599
54600 2007-02-25  Bruno Haible  <bruno@clisp.org>
54601
54602         Assume automake >= 1.10 for the tests.
54603         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54604         * modules/arctwo-tests: Likewise.
54605         * modules/argp-tests: Likewise.
54606         * modules/avltree-list-tests: Likewise.
54607         * modules/avltree-oset-tests: Likewise.
54608         * modules/avltreehash-list-tests: Likewise.
54609         * modules/carray-list-tests: Likewise.
54610         * modules/crc-tests: Likewise.
54611         * modules/des-tests: Likewise.
54612         * modules/gc-arcfour-tests: Likewise.
54613         * modules/gc-arctwo-tests: Likewise.
54614         * modules/gc-des-tests: Likewise.
54615         * modules/gc-hmac-md5-tests: Likewise.
54616         * modules/gc-hmac-sha1-tests: Likewise.
54617         * modules/gc-md2-tests: Likewise.
54618         * modules/gc-md4-tests: Likewise.
54619         * modules/gc-md5-tests: Likewise.
54620         * modules/gc-pbkdf2-sha1-tests: Likewise.
54621         * modules/gc-rijndael-tests: Likewise.
54622         * modules/gc-sha1-tests: Likewise.
54623         * modules/gc-tests: Likewise.
54624         * modules/getaddrinfo-tests: Likewise.
54625         * modules/hmac-md5-tests: Likewise.
54626         * modules/hmac-sha1-tests: Likewise.
54627         * modules/linked-list-tests: Likewise.
54628         * modules/linkedhash-list-tests: Likewise.
54629         * modules/lock-tests: Likewise.
54630         * modules/md2-tests: Likewise.
54631         * modules/md4-tests: Likewise.
54632         * modules/md5-tests: Likewise.
54633         * modules/rbtree-list-tests: Likewise.
54634         * modules/rbtree-oset-tests: Likewise.
54635         * modules/rbtreehash-list-tests: Likewise.
54636         * modules/read-file-tests: Likewise.
54637         * modules/rijndael-tests: Likewise.
54638         * modules/stdint-tests: Likewise.
54639         * modules/tls-tests: Likewise.
54640
54641 2007-02-24  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54644         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54645         function; instead check whether isnan with a double argument links.
54646         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54647         function; instead check whether isnan with a 'long double' argument
54648         links.
54649         Reported by Eric Blake <ebb9@byu.net>.
54650
54651 2007-02-24  Bruno Haible  <bruno@clisp.org>
54652
54653         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54654         defined.
54655         * lib/isnanl.c: Remove all code. Just include isnan.c.
54656         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54657
54658 2007-02-25  Jim Meyering  <jim@meyering.net>
54659
54660         Avoid conflicting types for 'unsetenv' on FreeBSD.
54661         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54662         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54663         in stdlib.h.
54664
54665 2007-02-24  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/isnanl-nolibm-tests: New file.
54668         * tests/test-isnanl.c: New file.
54669
54670         * modules/isnanl-nolibm: New file.
54671         * lib/isnanl.h: New file.
54672         * lib/isnanl.c: New file.
54673         * m4/isnanl.m4: New file.
54674
54675 2007-02-24  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/isnan-nolibm-tests: New file.
54678         * tests/test-isnan.c: New file.
54679
54680         * modules/isnan-nolibm: New file.
54681         * lib/isnan.h: New file.
54682         * lib/isnan.c: New file.
54683         * m4/isnan.m4: New file.
54684
54685 2007-02-24  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54688         assume that an exponent fits in 20 bits.
54689
54690 2007-02-24  Jim Meyering  <jim@meyering.net>
54691
54692         * m4/regex.m4: Update the description of the configure-time option,
54693         --without-included-regex, to state accurately what the defaults are,
54694         and perhaps to give people an idea why using this option is risky.
54695
54696 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54699         loops on small arguments.  This attempts to avoid the problem
54700         Bruno Haible reported for AIX 4.3.2 in
54701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54702
54703 2007-02-23  Bruno Haible  <bruno@clisp.org>
54704
54705         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54706         Needed for help2man.
54707
54708 2007-02-23  Karl Berry  <karl@gnu.org>
54709
54710         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54711         exists, foo.h should be cvs-ignored, not committed.
54712
54713 2007-02-23  Eric Blake  <ebb9@byu.net>
54714
54715         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54716         * lib/stat-time.h (includes): Likewise.
54717         * lib/utimecmp.c (includes): Likewise.
54718         * lib/utimens.h (includes): Likewise.
54719         * lib/getdate.y (includes): Also include "timespec.h" for use
54720         internal to the module.
54721         * modules/utimens (Depends-on): Revert yesterday's patch.
54722         * modules/nanosleep (Depends-on): Add missing dependency.
54723
54724 2007-02-22  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/glob.c: Don't include getlogin_r.h.
54727
54728 2007-02-22  Jim Meyering  <jim@meyering.net>
54729
54730         * modules/utimens (Depends-on): Add timespec, required for
54731         utimens.h's inclusion of timespec.h.
54732
54733 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54736         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54737         Schwab in
54738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54739         I'll try to think of a better way to fix the Solaris problem.
54740
54741         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54742         like glibc; on Solaris 10, it fails with errno == EINVAL.
54743         POSIX says the behavior is unspecified if the first argument is NULL,
54744         so play it safe and never pass NULL to the system getcwd.
54745
54746 2007-02-21  Jim Meyering  <jim@meyering.net>
54747
54748         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54749         of gettimeofday.  It would conflict with the one now always
54750         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54751         an IRIX 6.5 build failure.
54752
54753 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         Minor fixups to port to Solaris 10 with Sun C 5.8.
54756         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54757         * modules/getcwd (Depends-on): Add dirfd.
54758         * lib/putenv.c (putenv): #undef it.
54759         (rpl_putenv): New decl.
54760         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54761
54762 2007-02-20  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/stdio-tests: New file.
54765         * tests/test-stdio.c: New file.
54766
54767         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54768         (Depends-on): Add stdio.
54769         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54770         (Include): Use <stdio.h> instead of vsnprintf.h.
54771         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54772         HAVE_DECL_VSNPRINTF.
54773         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54774
54775         * modules/snprintf (Files): Remove lib/snprintf.h.
54776         (Depends-on): Add stdio.
54777         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54778         (Include): Use <stdio.h> instead of snprintf.h.
54779         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54780         HAVE_DECL_SNPRINTF.
54781         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54782         * lib/getaddrinfo.c: Likewise.
54783
54784         * modules/stdio: New file.
54785         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54786         * lib/snprintf.h: Remove file.
54787         * lib/vsnprintf.h: Remove file.
54788         * lib/.cppi-disable: Remove snprintf.h.
54789         * m4/stdio_h.m4: New file.
54790         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54791
54792 2007-02-20  Jim Meyering  <jim@meyering.net>
54793
54794         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54795         used by e.g., mingw.  From Bruno Haible.
54796
54797 2007-02-19  Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54800         warnings.
54801         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54802
54803 2007-02-19  Bruno Haible  <bruno@clisp.org>
54804
54805         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54806         from mingw users.
54807
54808 2007-02-19  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54811         warnings.
54812         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54813
54814 2007-02-19  Jim Meyering  <jim@meyering.net>
54815
54816         Don't use FD after a successful "fdopendir (fd)".
54817         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54818         Reset it by calling dirfd on the just-obtained DIR*.
54819
54820         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54821         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54822
54823 2007-02-18  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/readlink.c: Include <unistd.h>.
54826         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54827         HAVE_READLINK.
54828         * modules/readlink (Depends-on): Add unistd.
54829         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54830         (Include): Add <unistd.h>.
54831
54832         * lib/getlogin_r.h: Remove file.
54833         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54834         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54835         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54836         HAVE_DECL_GETLOGIN_R.
54837         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54839         (Include): Use <unistd.h> instead of getlogin_r.h.
54840
54841         * lib/getcwd.h: Remove file.
54842         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54843         * lib/xgetcwd.c: Likewise.
54844         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54845         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54846         * modules/getcwd (Files): Remove lib/getcwd.h.
54847         (Depends-on): Add unistd.
54848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54849         (Include): Use <unistd.h> instad of getcwd.h.
54850
54851         * lib/ftruncate.c: Include <unistd.h> first.
54852         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54853         Set HAVE_FTRUNCATE.
54854         * modules/ftruncate (Depends-on): Add unistd.
54855         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54856
54857         * lib/fchdir.c: Include <unistd.h> first.
54858         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54860         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54861         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54862         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54863
54864         * lib/dup2.c: Include <unistd.h> first.
54865         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54866         HAVE_DUP2.
54867         * modules/dup2 (Depends-on): Add unistd.
54868         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54869
54870         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54871         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54872         REPLACE_CHOWN. Don't define chown as a macro here.
54873         * modules/chown (Depends-on): Add unistd.
54874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54875
54876         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54877         Add definition for GL_LINK_WARNING.
54878         (chown, dup2): New declarations.
54879         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54880         link warning.
54881         (ftruncate): New declaration.
54882         (getcwd): New declaration, taken from old getcwd.h.
54883         (getlogin_r): New declaration, taken from old getlogin_r.h.
54884         (readlink): New declaration.
54885         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54886         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54887         (gl_PREREQ_UNISTD): Remove macro.
54888         (gl_UNISTD_MODULE_INDICATOR): New macro.
54889         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54890         many new variables. Don't set UNISTD_H.
54891         * modules/unistd (Description): Change.
54892         (Depends-on): Add link-warning.
54893         (configure.ac): Update.
54894         (Makefile.am): Create unistd.h always. Substitute many new variables
54895         into it.
54896
54897 2007-02-18  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54900         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54901         HAVE_GETSUBOPT.
54902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54903         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54904         * lib/getsubopt.h: Remove file.
54905         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54906         (Depends-on): Add stdlib.
54907         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54908         (Includes): Use <stdlib.h> instead of getsubopt.h.
54909         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54910         Set HAVE_GETSUBOPT.
54911         * lib/getsubopt.c: Don't include getsubopt.h.
54912
54913 2007-02-18  Bruno Haible  <bruno@clisp.org>
54914
54915         * modules/fchdir (Depends-on): Add dup2.
54916
54917 2007-02-18  Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/stdlib_.h: Handle glibc's special invocation convention
54920         specially.
54921
54922 2007-02-18  Bruno Haible  <bruno@clisp.org>
54923
54924         * modules/stdlib-tests: New file.
54925         * tests/test-stdlib.c: New file.
54926
54927         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54928         (Depends-on): Add stdlib.
54929         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54930         (Includes): Use <stdlib.h> instead of mkstemp.h.
54931         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54932         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54933         * lib/mkstemp.c: Don't include mkstemp.h.
54934         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54935         * lib/stdlib--.h: Don't include mkstemp.h.
54936
54937         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54938         (Depends-on): Add stdlib.
54939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54940         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54941         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54942         HAVE_MKDTEMP.
54943         * lib/mkdtemp.c: Don't include mkdtemp.h.
54944         * lib/clean-temp.c: Don't include mkdtemp.h.
54945
54946         * modules/exit (Files): Remove lib/exit.h.
54947         (Depends-on): Add stdlib.
54948         (Makefile.am): Remove lib_SOURCES.
54949         (Include): Use <stdlib.h> instead of exit.h.
54950         * lib/argmatch.c: Don't include exit.h.
54951         * lib/execute.c: Likewise.
54952         * lib/pagealign_alloc.c: Likewise.
54953         * lib/pipe.c: Likewise.
54954         * lib/wait-process.c: Likewise.
54955         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54956         * lib/exitfail.c: Likewise.
54957         * lib/savewd.c: Likewise.
54958         * lib/xsetenv.c: Likewise.
54959
54960         * modules/stdlib: New file.
54961         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54962         and extra comments about mkstemp().
54963         * lib/exit.h: Remove file.
54964         * lib/mkdtemp.h: Remove file.
54965         * lib/mkstemp.h: Remove file.
54966         * m4/stdlib_h.m4: New file.
54967         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54968
54969 2007-02-18  Bruno Haible  <bruno@clisp.org>
54970
54971         * modules/math-tests: New file.
54972         * tests/test-math.c: New file.
54973
54974         * modules/math: New file.
54975         * modules/mathl (Files): Remove lib/mathl.h.
54976         (Depends-on): Add math.
54977         (Makefile.am): Don't mention mathl.h.
54978         (Include): Use <math.h> instead of mathl.h.
54979         * lib/math_.h: New file.
54980         * lib/mathl.h: Remove file.
54981         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54982         mathl.h.
54983         * lib/asinl.c: Likewise.
54984         * lib/atanl.c: Likewise.
54985         * lib/ceill.c: Likewise.
54986         * lib/cosl.c: Likewise.
54987         * lib/expl.c: Likewise.
54988         * lib/floorl.c: Likewise.
54989         * lib/frexpl.c: Likewise.
54990         * lib/ldexpl.c: Likewise.
54991         * lib/logl.c: Likewise.
54992         * lib/sincosl.c: Likewise.
54993         * lib/sinl.c: Likewise.
54994         * lib/sqrtl.c: Likewise.
54995         * lib/tanl.c: Likewise.
54996         * lib/trigl.c: Likewise.
54997         * m4/math_h.m4: New file.
54998         * MODULES.html.sh (Mathematics): Add math.
54999
55000 2007-02-17  Bruno Haible  <bruno@clisp.org>
55001
55002         * modules/wctype-tests: New file.
55003         * tests/test-wctype.c: New file.
55004
55005         * modules/wchar-tests: New file.
55006         * tests/test-wchar.c: New file.
55007
55008         * modules/unistd-tests: New file.
55009         * tests/test-unistd.c: New file.
55010
55011         * modules/time-tests: New file.
55012         * tests/test-time.c: New file.
55013
55014         * modules/sysexits-tests: New file.
55015         * tests/test-sysexits.c: New file.
55016
55017         * modules/sys_time-tests: New file.
55018         * tests/test-sys_time.c: New file.
55019
55020         * modules/sys_stat-tests: New file.
55021         * tests/test-sys_stat.c: New file.
55022
55023         * modules/sys_socket-tests: New file.
55024         * tests/test-sys_socket.c: New file.
55025
55026         * modules/sys_select-tests: New file.
55027         * tests/test-sys_select.c: New file.
55028
55029         * modules/string-tests: New file.
55030         * tests/test-string.c: New file.
55031
55032         * modules/stdbool-tests: New file.
55033         * tests/test-stdbool.c: New file.
55034
55035         * modules/netinet_in-tests: New file.
55036         * tests/test-netinet_in.c: New file.
55037
55038         * modules/inttypes-tests: New file.
55039         * tests/test-inttypes.c: New file.
55040
55041         * modules/fcntl-tests: New file.
55042         * tests/test-fcntl.c: New file.
55043
55044         * modules/byteswap-tests: New file.
55045         * tests/test-byteswap.c: New file.
55046
55047         * modules/arpa_inet-tests: New file.
55048         * tests/test-arpa_inet.c: New file.
55049
55050 2007-02-17  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55053         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55054         if the corresponding module is not enabled. Emit link warnings if
55055         the function is used nevertheless.
55056         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55057         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55058         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55059         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55060         * modules/inttypes (Depends-on): Add link-warning.
55061         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55062         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55063         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55064         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55065         * modules/imaxdiv (configure.ac): Likewise.
55066         * modules/strtoimax (configure.ac): Likewise.
55067         * modules/strtoumax (configure.ac): Likewise.
55068
55069 2007-02-17  Bruno Haible  <bruno@clisp.org>
55070
55071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55072         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55073         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55074         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55075
55076 2007-02-17  Bruno Haible  <bruno@clisp.org>
55077
55078         * modules/link-warning: New file.
55079         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55080         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55081         * modules/string (Depends-on): Add link-warning.
55082         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55083         string.h.
55084         * MODULES.html.sh (Support for building libraries and executables): Add
55085         link-warning.
55086
55087 2007-02-17  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55090         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55091         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55092         long lines.
55093
55094 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55095             Bruno Haible  <bruno@clisp.org>
55096
55097         * modules/tmpfile: New file.
55098         * lib/tmpfile.c: New file.
55099         * m4/tmpfile.m4: New file.
55100         * MODULES.html.sh (func_all_modules): New section "Input/output".
55101
55102 2007-02-15  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55105         (supports_delete_on_close): New function.
55106         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55107
55108 2007-02-14  Bruno Haible  <bruno@clisp.org>
55109
55110         * modules/mbspcasecmp-tests: New file.
55111         * tests/test-mbspcasecmp.sh: New file.
55112         * tests/test-mbspcasecmp.c: New file.
55113
55114         New module mbspcasecmp.
55115         * modules/mbspcasecmp: New file.
55116         * lib/mbspcasecmp.c: New file.
55117         * lib/string_.h (strncasecmp): Change warning message.
55118         (mbspcasecmp): New declaration.
55119         * m4/mbspcasecmp.m4: New file.
55120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55121         GNULIB_MBSPCASECMP.
55122         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55123         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55124
55125 2007-02-14  Bruno Haible  <bruno@clisp.org>
55126
55127         * modules/mbsncasecmp-tests: New file.
55128         * tests/test-mbsncasecmp.sh: New file.
55129         * tests/test-mbsncasecmp.c: New file.
55130
55131         New module mbsncasecmp.
55132         * modules/mbsncasecmp: New file.
55133         * lib/mbsncasecmp.c: New file.
55134         * lib/string_.h (mbsncasecmp): New declaration.
55135         * m4/mbsncasecmp.m4: New file.
55136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55137         GNULIB_MBSNCASECMP.
55138         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55139         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55140
55141 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55144         Verify that it doesn't overlap with our flags.
55145         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55146         do not have the desired effect in multibyte locales; instead, use
55147         mbscasecmp.
55148         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55149         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55150         we don't require GNU fnmatch ourselves (if our users require it, they
55151         should do so explicitly).
55152
55153         Fix regex code so it doesn't rely on strcasecmp.
55154         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55155         Otherwise, include gnulib's langinfo.h.
55156         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55157         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55158         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55159         * modules/regex (FILES): Remove m4/codeset.m4.
55160         (Depends-on): Add localcharset.  Remove strcase.
55161
55162 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55163
55164         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55165         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55166
55167 2007-02-13  Bruno Haible  <bruno@clisp.org>
55168
55169         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55171
55172 2007-02-12  Bruno Haible  <bruno@clisp.org>
55173
55174         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55175         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55176         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55177         time warning rather than a link error.
55178
55179 2007-02-12  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55184
55185 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55188         args, not 2.
55189
55190 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55191
55192         New module 'time', so that apps can include <time.h> as per
55193         POSIX and GNU instead of separate include files like time_r.h
55194         and timegm.h.  This implementation tries out a simpler approach
55195         for replacing decls in standard include files (as compared to
55196         the string module), somewhat as an experiment.
55197
55198         * config/srclist.txt: Comment out mktime.c for now.
55199         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55200         since it doesn't apply any more.  Use generic wording instead.
55201         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55202         'time'.
55203         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55204         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55205         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55206         Don't include <sys/types.h>; no longer needed since we assume C89.
55207         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55208         * lib/strftime.c: Likewise.
55209         * lib/time_r.c: Likewise.
55210         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55211         * lib/nanosleep.c: Include <time.h> first, to check interface.
55212         * lib/strptime.c: Likewise.
55213         * lib/time_r.c: Likewise.
55214         * lib/timegm.c: Likewise.
55215         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55216         needed.
55217         * lib/timegm.c: Don't include timegm.h; no longer needed.
55218         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55219         time.h now handles any problems in that area.
55220         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55221         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55222         that time.h defines struct timespec.
55223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55224         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55225         handles that.
55226         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55227         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55228         needed.  Set REPLACE_LOCALTIME.
55229         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55230         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55231         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55232         nanosleep; time_h.m4 now does that.  Don't require
55233         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55234         module handles this now.
55235         * modules/getdate (Depends-on): Remove timespec.  Add time.
55236         * modules/nanosleep (Depends-on): Likewise.
55237         * modules/stat-time (Depends-on): Likewise.
55238         * modules/nanosleep (Include): Include time.h, not timespec.h.
55239         * modules/strptime (Files): Remove lib/strptime.h.
55240         (Depends-on): Add extensions, time.
55241         (Include): Include time.h, not strptime.h.
55242         * modules/time_r (Files): Remove lib/time_r.h.
55243         (Depends-on): Add time.
55244         (Include): Include time.h, not time_r.h.
55245         * modules/timegm: Likewise.
55246         * modules/timespec (Description): Now does timespec-related decls
55247         of our own, instead of struct timespec itself.
55248         (Depends-on): Add time; remove extensions.
55249         (Maintainer): Add self.
55250         * modules/utimecmp (Depends-on): Add time; remove timespec.
55251         * modules/utimens (Depends-on): Likewise.
55252         * modules/xnanosleep (Depends-on): Likewise.
55253
55254 2007-02-11  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/c-strstr.c: Include allocsa.h.
55257         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55258         * lib/c-strcasestr.c: Include allocsa.h.
55259         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55260         * lib/strcasestr.c: Include allocsa.h.
55261         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55262         * lib/mbsstr.c: Include allocsa.h.
55263         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55264         allocsa/freesa instead of malloc/free.
55265         * lib/mbscasestr.c: Include allocsa.h.
55266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55267         allocsa/freesa instead of malloc/free.
55268         * modules/c-strstr (Depends-on): Add allocsa.
55269         * modules/c-strcasestr (Depends-on): Likewise.
55270         * modules/strcasestr (Depends-on): Likewise.
55271         * modules/mbsstr (Depends-on): Likewise.
55272         * modules/mbscasestr (Depends-on): Likewise.
55273
55274 2007-02-11  Bruno Haible  <bruno@clisp.org>
55275
55276         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55277
55278         * modules/mbsspn-tests: New file.
55279         * tests/test-mbsspn.sh: New file.
55280         * tests/test-mbsspn.c: New file.
55281
55282 2007-02-11  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55285
55286         * modules/mbspbrk-tests: New file.
55287         * tests/test-mbspbrk.sh: New file.
55288         * tests/test-mbspbrk.c: New file.
55289
55290 2007-02-11  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55293         unneeded cast.
55294
55295         * modules/mbscspn-tests: New file.
55296         * tests/test-mbscspn.sh: New file.
55297         * tests/test-mbscspn.c: New file.
55298
55299 2007-02-11  Bruno Haible  <bruno@clisp.org>
55300
55301         * modules/mbscasecmp-tests: New file.
55302         * tests/test-mbscasecmp.sh: New file.
55303         * tests/test-mbscasecmp.c: New file.
55304
55305 2007-02-11  Bruno Haible  <bruno@clisp.org>
55306
55307         Ensure O(n) worst-case complexity of mbscasestr.
55308         * lib/mbscasestr.c: Include stdbool.h.
55309         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55310         functions.
55311         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55312         the bookkeeping indicates that it's worth it.
55313         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55314
55315         * modules/mbscasestr-tests: New file.
55316         * tests/test-mbscasestr1.c: New file.
55317         * tests/test-mbscasestr2.sh: New file.
55318         * tests/test-mbscasestr2.c: New file.
55319         * tests/test-mbscasestr3.sh: New file.
55320         * tests/test-mbscasestr3.c: New file.
55321         * tests/test-mbscasestr4.sh: New file.
55322         * tests/test-mbscasestr4.c: New file.
55323         * m4/locale-tr.m4: New file.
55324
55325 2007-02-11  Bruno Haible  <bruno@clisp.org>
55326
55327         Ensure O(n) worst-case complexity of mbsstr.
55328         * lib/mbsstr.c: Include stdbool.h.
55329         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55330         functions.
55331         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55332         bookkeeping indicates that it's worth it.
55333         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55334
55335         * modules/mbsstr-tests: New file.
55336         * tests/test-mbsstr1.c: New file.
55337         * tests/test-mbsstr2.sh: New file.
55338         * tests/test-mbsstr2.c: New file.
55339         * tests/test-mbsstr3.sh: New file.
55340         * tests/test-mbsstr3.c: New file.
55341         * m4/locale-fr.m4: New file.
55342
55343 2007-02-11  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/mbsrchr.c (mbsrchr): Fix bug.
55346
55347         * modules/mbsrchr-tests: New file.
55348         * tests/test-mbsrchr.sh: New file.
55349         * tests/test-mbsrchr.c: New file.
55350
55351 2007-02-11  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/mbschr.c (mbschr): Fix bug.
55354
55355         * modules/mbschr-tests: New file.
55356         * tests/test-mbschr.sh: New file.
55357         * tests/test-mbschr.c: New file.
55358         * m4/locale-zh.m4: New file.
55359
55360 2007-02-11  Bruno Haible  <bruno@clisp.org>
55361
55362         Support for copying multibyte string iterators.
55363         * lib/mbiter.h: Include <string.h>.
55364         (mbiter_multi_copy): New function.
55365         (mbi_copy): New macro.
55366         * lib/mbuiter.h: Include <string.h>.
55367         (mbuiter_multi_copy): New function.
55368         (mbui_copy): New macro.
55369
55370 2007-02-11  Bruno Haible  <bruno@clisp.org>
55371
55372         New module mbslen.
55373         * modules/mbslen: New file.
55374         * lib/mbslen.c: New file.
55375         * lib/string_.h (mbslen): New declaration.
55376         * m4/mbslen.m4: New file.
55377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55378         GNULIB_MBSLEN.
55379         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55380         * MODULES.html.sh (Internationalization functions): Add mbslen.
55381
55382 2007-02-11  Bruno Haible  <bruno@clisp.org>
55383
55384         Ensure O(n) worst-case complexity of strcasestr substitute.
55385         * lib/strcasestr.c: Include stdbool.h.
55386         (knuth_morris_pratt): New function.
55387         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55388         bookkeeping indicates that it's worth it.
55389         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55390
55391         * modules/strcasestr-tests: New file.
55392         * tests/test-strcasestr.c: New file.
55393
55394 2007-02-11  Bruno Haible  <bruno@clisp.org>
55395
55396         Ensure O(n) worst-case complexity of c_strcasestr.
55397         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55398         (knuth_morris_pratt): New function.
55399         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55400         the bookkeeping indicates that it's worth it.
55401         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55402
55403         * modules/c-strcasestr-tests: New file.
55404         * tests/test-c-strcasestr.c: New file.
55405
55406 2007-02-11  Bruno Haible  <bruno@clisp.org>
55407
55408         Ensure O(n) worst-case complexity of c_strstr.
55409         * lib/c-strstr.c: Include stdbool.h, string.h.
55410         (knuth_morris_pratt): New function.
55411         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55412         bookkeeping indicates that it's worth it.
55413         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55414
55415         * lib/c-strstr.c: Complete rewrite for maintainability.
55416
55417         * modules/c-strstr-tests: New file.
55418         * tests/test-c-strstr.c: New file.
55419
55420 2007-02-11  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55423         5.2.1 and earlier, whereby \055 was treated just like the range
55424         delimiter '-'.
55425         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55426
55427 2007-02-08  Bruno Haible  <bruno@clisp.org>
55428
55429         * modules/regex (Depends-on): Add stdbool.
55430         Reported by Dalibor Topic <robilad@kaffe.org>.
55431
55432 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55435         Prefer returning from main to exiting from it.
55436         Remove unnecessary parens after sizeof.
55437
55438 2007-02-05  Bruno Haible  <bruno@clisp.org>
55439
55440         New module mbssep.
55441         * modules/mbssep: New file.
55442         * lib/mbssep.c: New file.
55443         * lib/string_.h (strsep): Add a conditional link warning.
55444         (mbssep): New declaration.
55445         * m4/mbssep.m4: New file.
55446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55447         GNULIB_MBSSEP.
55448         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55449         * MODULES.html.sh (Internationalization functions): Add mbssep.
55450
55451 2007-02-05  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55454         Optimize search in case of 1 delimiter.
55455
55456 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55457
55458         * lib/acl.h: Include sys/types.h before sys/acl.h.
55459
55460 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55461
55462         Merge upstream fix for glibc bugzilla #3957:
55463
55464         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55465
55466         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55467         bit for RE_HAT_LISTS_NOT_NEWLINE.
55468         (build_charclass_op): Remove bogus comment.
55469
55470 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55471
55472         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55473
55474 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55475
55476         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55477         * lib/memmem.c [!defined _LIBC]: Include config.h.
55478
55479 2007-02-04  Bruno Haible  <bruno@clisp.org>
55480
55481         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55482         warning message.
55483
55484 2007-02-04  Bruno Haible  <bruno@clisp.org>
55485
55486         New module mbstok_r.
55487         * modules/mbstok_r: New file.
55488         * lib/mbstok_r.c: New file.
55489         * lib/string_.h (strtok_r): Change argument names to match the
55490         comments. Add a conditional link warning.
55491         (mbstok_r): New declaration.
55492         * m4/mbstok_r.m4: New file.
55493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55494         GNULIB_MBSTOK_R.
55495         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55496         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55497
55498 2007-02-04  Bruno Haible  <bruno@clisp.org>
55499
55500         New module mbsspn.
55501         * modules/mbsspn: New file.
55502         * lib/mbsspn.c: New file.
55503         * lib/string_.h (strspn): Add a conditional link warning.
55504         (mbsspn): New declaration.
55505         * m4/mbsspn.m4: New file.
55506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55507         GNULIB_MBSSPN.
55508         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55509         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55510
55511 2007-02-04  Bruno Haible  <bruno@clisp.org>
55512
55513         New module mbspbrk.
55514         * modules/mbspbrk: New file.
55515         * lib/mbspbrk.c: New file.
55516         * lib/string_.h (strpbrk): Add a conditional link warning.
55517         (mbspbrk): New declaration.
55518         * m4/mbspbrk.m4: New file.
55519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55520         GNULIB_MBSPBRK.
55521         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55522         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55523
55524 2007-02-04  Bruno Haible  <bruno@clisp.org>
55525
55526         New module mbscspn.
55527         * modules/mbscspn: New file.
55528         * lib/mbscspn.c: New file.
55529         * lib/string_.h (strcspn): Add a conditional link warning.
55530         (mbscspn): New declaration.
55531         * m4/mbscspn.m4: New file.
55532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55533         GNULIB_MBSCSPN.
55534         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55535         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55536
55537 2007-02-04  Bruno Haible  <bruno@clisp.org>
55538
55539         New module mbscasestr, reduced goal of strcasestr.
55540         * modules/mbscasestr: New file.
55541         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55542         (mbscasestr): Renamed from strcasestr.
55543         * lib/strcasestr.c: Don't include mbuiter.h.
55544         (strcasestr): Remove support for multibyte locales.
55545         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55546         Change the conditional link warning.
55547         (mbscasestr): New declaration.
55548         * m4/mbscasestr.m4: New file.
55549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55550         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55551         REPLACE_STRCASESTR.
55552         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55554         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55555         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55556         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55557         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55558         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55559         (Depends-on): Remove mbuiter.
55560         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55561
55562 2007-02-04  Bruno Haible  <bruno@clisp.org>
55563
55564         Simplify handling of strncasecmp.
55565         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55566         the conditional link warning.
55567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55568         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55570         * modules/strcase (configure.ac): Don't invoke
55571         gl_STRING_MODULE_INDICATOR.
55572         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55573
55574 2007-02-04  Bruno Haible  <bruno@clisp.org>
55575
55576         New module mbscasecmp, reduced goal of strcasecmp.
55577         * modules/mbscasecmp: New file.
55578         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55579         (mbscasecmp): Renamed from strcasecmp.
55580         * lib/strcasecmp.c: Don't include mbuiter.h.
55581         (strcasecmp): Remove support for multibyte locales.
55582         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55583         Change the conditional link warning.
55584         (mbscasecmp): New declaration.
55585         * m4/mbscasecmp.m4: New file.
55586         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55587         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55588         REPLACE_STRCASECMP.
55589         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55591         GNULIB_MBSCASECMP.
55592         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55593         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55594         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55595         (Depends-on): Remove mbuiter.
55596         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55597
55598 2007-02-04  Bruno Haible  <bruno@clisp.org>
55599
55600         New module mbsstr. Remove module strstr.
55601         * modules/mbsstr: New file.
55602         * modules/strstr: Remove file.
55603         * lib/mbsstr.c: Renamed from lib/strstr.c.
55604         (mbsstr): Renamed from strstr.
55605         * lib/string_.h (strstr): Remove declaration. Change the conditional
55606         link warning.
55607         (mbsstr): New declaration.
55608         * m4/mbsstr.m4: New file.
55609         * m4/strstr.m4: Remove file.
55610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55611         REPLACE_STRSTR.
55612         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55613         Don't initialize GNULIB_STRSTR.
55614         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55615         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55616         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55617         (Support for systems lacking ANSI C 89): Remove strstr.
55618
55619 2007-02-04  Bruno Haible  <bruno@clisp.org>
55620
55621         New module mbsrchr.
55622         * modules/mbsrchr: New file.
55623         * lib/mbsrchr.c: New file.
55624         * lib/string_.h (strrchr): Add a conditional link warning.
55625         (mbsrchr): New declaration.
55626         * m4/mbsrchr.m4: New file.
55627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55628         GNULIB_MBSRCHR.
55629         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55630         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55631
55632 2007-02-04  Bruno Haible  <bruno@clisp.org>
55633
55634         New module mbschr.
55635         * modules/mbschr: New file.
55636         * lib/mbschr.c: New file.
55637         * lib/string_.h (strchr): Add a conditional link warning.
55638         (mbschr): New declaration.
55639         * m4/mbschr.m4: New file.
55640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55641         GNULIB_MBSCHR.
55642         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55643         * MODULES.html.sh (Internationalization functions): Add mbschr.
55644
55645 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55648
55649         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55650
55651 2007-02-04  Bruno Haible  <bruno@clisp.org>
55652
55653         New module description section 'configure.ac-early'.
55654         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55655         (func_get_autoconf_early_snippet): New function.
55656         (func_import, func_create_testdir): Use it. Remove special cases for
55657         modules 'extensions' and 'lock'.
55658         * modules/extensions (configure.ac-early): Require
55659         gl_USE_SYSTEM_EXTENSIONS.
55660         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55661
55662 2007-02-04  Bruno Haible  <bruno@clisp.org>
55663
55664         Make use of gcj-4.3's -fsource and -ftarget option.
55665         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55666         and if so try the options -fsource and -ftarget.
55667         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55668         source_version, ftarget_option, target_version arguments.
55669         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55670         (is_envjavac_oldgcj_14_14_usable): Renamed from
55671         is_envjavac_gcj_14_14_usable.
55672         (is_envjavac_oldgcj_14_13_usable): Renamed from
55673         is_envjavac_gcj_14_13_usable.
55674         (is_gcj_present): Update.
55675         (is_gcj_43, is_gcj43_usable): New functions.
55676         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55677         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55678         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55679         try the options -fsource and -ftarget.
55680
55681 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55682
55683         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55684         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55685         larger value.
55686
55687 2007-02-03  Jim Meyering  <jim@meyering.net>
55688
55689         Give tools a better chance to allocate space for very large buffers.
55690         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55691
55692         Make pwd and readlink work also when run with an unreadable parent dir
55693         on systems with openat support.
55694         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55695         provided getcwd function, even when we have openat support.
55696         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55697
55698 2007-02-02  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55701         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55702         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55703         portability problems if one of these functions is only used on specific
55704         platforms.
55705         Reported by Paul Eggert.
55706
55707 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55710         is causing more trouble than it's curing.
55711         * lib/regex_internal.h (__mempcpy): Remove.
55712         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55713         (and make the code a tad smaller to boot).
55714         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55715
55716 2007-02-02  Jim Meyering  <jim@meyering.net>
55717
55718         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55719         section, not in the Makefile.am: one.
55720
55721 2007-02-02  Eric Blake  <ebb9@byu.net>
55722
55723         * lib/strchrnul.c: Always include config.h first.
55724
55725         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55726         gnulib strstr is not necessary here.
55727
55728 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55729
55730         * m4/socklen.m4: Fix typo.
55731
55732 2007-02-02  Eric Blake  <ebb9@byu.net>
55733
55734         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55735         * modules/netinet_in (Makefile.am): Likewise.
55736
55737 2007-02-01  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/string_.h (GL_LINK_WARNING): New macro.
55740         (strcasecmp, strstr, strcasestr): If provided by the system,
55741         conditionally define as a macro that leads to a warning instead of to
55742         an error.
55743         (strncasecmp): Conditionally define as a macro that leads to a warning.
55744
55745 2007-02-01  Karl Berry  <karl@gnu.org>
55746
55747         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55748
55749 2007-02-01  Bruno Haible  <bruno@clisp.org>
55750
55751         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55752         renamings.
55753
55754 2007-02-01  Eric Blake  <ebb9@byu.net>
55755
55756         * modules/regex (Depends-on): Revert dependence on mempcpy.
55757         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55758         module's definition of mempcpy.
55759         Reported by Paul Eggert.
55760
55761 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55764         the symbol XYZ before redefining it.  This fixes a problem with
55765         programs that don't use XYZ, when compiled on systems that define
55766         XYZ to something else.
55767
55768 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55769
55770         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55771         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55772         writeable to group or other and (2) is intended to have a special
55773         mode bit that is set or cleared.  In such a case, the directory
55774         should be neither group- nor other-writeable until the special
55775         mode bits are right.
55776
55777 2007-01-31  Eric Blake  <ebb9@byu.net>
55778
55779         * modules/mountlist (Depends-on): Add strstr.
55780
55781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55782         bug.
55783         * modules/string (Makefile.am): Remove redundant replacement.
55784         * modules/regex (Depends-on): Add mempcpy.
55785
55786 2007-01-31  Bruno Haible  <bruno@clisp.org>
55787
55788         New module description field 'Link'.
55789         * gnulib-tool (func_usage): Document --extract-link-directive.
55790         (sed_extract_prog): Recognize 'Link' directive.
55791         (func_get_link_directive): New function.
55792         (func_import): Show summary of link directives.
55793         Handle --extract-link-directive option.
55794         * modules/acl (Link): New section.
55795         * modules/clock-time (Link): New section.
55796         * modules/euidaccess (Link): New section.
55797         * modules/gettext (Link): New section.
55798         * modules/iconv (Link): New section.
55799         * modules/lock (Link): New section.
55800         * modules/nanosleep (Link): New section.
55801         * modules/readline (Link): New section.
55802
55803 2007-01-27  Bruno Haible  <bruno@clisp.org>
55804
55805         Enforce the use of gnulib modules for unportable <string.h> functions.
55806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55807         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55808         (gl_HEADER_STRING_H_BODY): Require it.
55809         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55810         the symbol XYZ to one that gives a link error.
55811         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55812         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55813         * modules/mempcpy (configure.ac): Likewise.
55814         * modules/memrchr (configure.ac): Likewise.
55815         * modules/stpcpy (configure.ac): Likewise.
55816         * modules/stpncpy (configure.ac): Likewise.
55817         * modules/strcase (configure.ac): Likewise.
55818         * modules/strcasestr (configure.ac): Likewise.
55819         * modules/strchrnul (configure.ac): Likewise.
55820         * modules/strdup (configure.ac): Likewise.
55821         * modules/strndup (configure.ac): Likewise.
55822         * modules/strnlen (configure.ac): Likewise.
55823         * modules/strpbrk (configure.ac): Likewise.
55824         * modules/strsep (configure.ac): Likewise.
55825         * modules/strstr (configure.ac): Likewise.
55826         * modules/strtok_r (configure.ac): Likewise.
55827
55828 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55829
55830         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55831
55832 2007-01-30  Jim Meyering  <jim@meyering.net>
55833
55834         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55835
55836 2007-01-29  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55839         * lib/execute.c: Likewise.
55840         * lib/pipe.c: Likewise.
55841         * lib/printf-args.h: Likewise.
55842         * lib/printf-args.c: Likewise.
55843         * lib/printf-parse.c: Likewise.
55844         * lib/vasnprintf.c: Likewise.
55845
55846 2007-01-29  Eric Blake  <ebb9@byu.net>
55847
55848         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55849         declaration.
55850
55851 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55852
55853         * lib/strptime.h (strptime): Use 'restrict' for args where
55854         POSIX requires this.
55855         * lib/strptime.c (strptime): Likewise.
55856         Change license notice from LGPL to GPL, since gnulib-tool will
55857         change this as needed.
55858         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55859         defined.
55860         Include "strptime.h" first, to check interface.
55861         Do not #undef _LIBC and _NL_CURRENT.
55862         Do not include <stdlib.h>; no longer needed.
55863         Include "time_r.h" and declare ptime_locale_status
55864         only if _LIBC is not defined.
55865         (__P): Remove unused macro.
55866         (match_string): Bring back glibc version, but use it only if _LIBC
55867         is defined.
55868         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55869         Remove unnecessary assertion and abort() call.
55870         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55871         * m4/strptime.m4: Fix serial number comment.
55872         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55873         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55874         (Depends-on): Add time_r.
55875
55876 2007-01-29  Bruno Haible  <bruno@clisp.org>
55877
55878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55879         strptime.
55880         * modules/strptime (Depends-on): Add stdbool.
55881         * lib/strptime.h: Include <time.h> always. Add comments.
55882
55883 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55884
55885         * modules/strptime: New file.
55886         * lib/strptime.h: New file.
55887         * lib/strptime.c: New file.
55888         * m4/strptime.m4: New file.
55889
55890 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * MODULES.html.sh: New module mpsort.
55893         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55894
55895         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55896         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55898         All uses changed.
55899         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55900         All uses changed.
55901         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55902         to _Restrict_.
55903         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55904         the parameter matches the prototype.
55905
55906 2007-01-28  Jim Meyering  <jim@meyering.net>
55907
55908         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55909         sys/time.h here, reverting that part of the previous patch:
55910         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55911
55912 2007-01-28  Bruno Haible  <bruno@clisp.org>
55913
55914         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55915         value of $(SYS_TIME_H).
55916         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55917         remove it conditionally, too. [added by Jim Meyering]
55918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55920         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55921         GETTIMEOFDAY_REPLACEMENT to 1.
55922
55923 2007-01-28  Bruno Haible  <bruno@clisp.org>
55924
55925         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55926         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55928         Set UNISTD_H instead of UNISTD_H2.
55929         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55930
55931 2007-01-28  Bruno Haible  <bruno@clisp.org>
55932
55933         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55934         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55935
55936 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55937
55938         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55939         (func_create_testdir): Ensure C locale for `grep' and `tr'
55940         character ranges.
55941         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55942         ACLOCAL_AMFLAGS parsing state machine.
55943
55944 2007-01-27  Bruno Haible  <bruno@clisp.org>
55945
55946         * modules/unistr/base: Update.
55947
55948 2007-01-27  Bruno Haible  <bruno@clisp.org>
55949
55950         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55951         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55952         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55953         modules/unistr/u32-mbtouc.
55954         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55955         * lib/unistr.h: Update.
55956         * lib/linebreak.c: Update.
55957         * modules/unistr/u32-mbtouc: Renamed from
55958         modules/unistr/u32-mbtouc-safe.
55959         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55960         * lib/unistr.h: Update.
55961         * lib/unistr/u32-to-u8.c: Update.
55962         * lib/unistr/u32-to-u16.c: Update.
55963
55964 2007-01-27  Bruno Haible  <bruno@clisp.org>
55965
55966         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55967         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55968         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55969         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55970         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55971         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55972         modules/unistr/u16-mbtouc.
55973         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55974         * lib/unistr.h: Update.
55975         * lib/linebreak.c: Update.
55976         * modules/linebreak: Update.
55977         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55978         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55979         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55980         * modules/unistr/u16-mbtouc: Renamed from
55981         modules/unistr/u16-mbtouc-safe.
55982         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55983         * lib/unistr.h: Update.
55984         * lib/unistr/u16-to-u8.c: Update.
55985         * modules/unistr/u16-to-u8: Update.
55986         * lib/unistr/u16-to-u32.c: Update.
55987         * modules/unistr/u16-to-u32: Update.
55988
55989 2007-01-27  Bruno Haible  <bruno@clisp.org>
55990
55991         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55992         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55993         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55994         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55995         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55996         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55997         modules/unistr/u8-mbtouc.
55998         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55999         * lib/unistr.h: Update.
56000         * lib/striconveh.c: Update.
56001         * modules/striconveh: Update.
56002         * lib/linebreak.c: Update.
56003         * modules/linebreak: Update.
56004         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56005         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56006         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56007         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56008         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56009         * lib/unistr.h: Update.
56010         * lib/striconveh.c: Update.
56011         * modules/striconveh: Update.
56012         * lib/unistr/u8-to-u16.c: Update.
56013         * modules/unistr/u8-to-u16: Update.
56014         * lib/unistr/u8-to-u32.c: Update.
56015         * modules/unistr/u8-to-u32: Update.
56016
56017 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56018
56019         Sync from Libtool.
56020         * lib/argz.c: Do not include strings.h nor memory.h, include
56021         string.h unconditionally.  Patch by Simon Josefsson.
56022
56023 2007-01-27  Bruno Haible  <bruno@clisp.org>
56024
56025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56026         from gl_HEADER_STRING_H_BODY.
56027         (gl_HEADER_STRING_H_BODY): Require it.
56028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56029         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56031         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56033         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56035         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56036         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56037         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56038         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56039         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56040         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56041         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56043
56044 2007-01-27  Bruno Haible  <bruno@clisp.org>
56045
56046         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56047         check_PROGRAMS into noinst_PROGRAMS.
56048         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56049         check_PROGRAMS in this case.
56050         (func_import): Set for_test to false.
56051         (func_create_testdir): Set for_test to true.
56052
56053 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56054             Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56057         (Depends-on): Add string.
56058         (Includes): Use <string.h> instead of strcasestr.h.
56059         * modules/string (Makefile.am): Also substitute the value of
56060         REPLACE_STRCASESTR.
56061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56062         assume strcasestr is declared in <string.h> not <strings.h>. Also
56063         set REPLACE_STRCASESTR.
56064         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56065         REPLACE_STRCASESTR.
56066         * lib/strcasestr.h: Remove file.
56067         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56068         * lib/string_.h (strcasestr): New declaration.
56069
56070 2007-01-27  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/string_.h: Use 'extern'.
56073
56074 2007-01-27  Jim Meyering  <jim@meyering.net>
56075
56076         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56077         of set-but-not-used local, "q".
56078
56079         * lib/mempcpy.c: Include <config.h> before <string.h>.
56080         This fixes a compilation error on HP-UX, due to the system's
56081         "restrict"-using mempcpy prototype.
56082
56083 2007-01-26  Bruno Haible  <bruno@clisp.org>
56084
56085         Small optimization.
56086         * lib/javacomp.c: Include c-strstr.h.
56087          (is_envjavac_gcj): Use c_strstr instead of strstr.
56088         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56089
56090 2007-01-26  Bruno Haible  <bruno@clisp.org>
56091
56092         * MODULES.html.sh (Unicode string functions): Add the new modules.
56093
56094         * modules/uniconv/u32-strconv-to-locale: New file.
56095         * lib/uniconv/u32-strconv-to-locale.c: New file.
56096
56097         * modules/uniconv/u16-strconv-to-locale: New file.
56098         * lib/uniconv/u16-strconv-to-locale.c: New file.
56099
56100         * modules/uniconv/u8-strconv-to-locale: New file.
56101         * lib/uniconv/u8-strconv-to-locale.c: New file.
56102
56103         * modules/uniconv/u32-strconv-from-locale: New file.
56104         * lib/uniconv/u32-strconv-from-locale.c: New file.
56105
56106         * modules/uniconv/u16-strconv-from-locale: New file.
56107         * lib/uniconv/u16-strconv-from-locale.c: New file.
56108
56109         * modules/uniconv/u8-strconv-from-locale: New file.
56110         * lib/uniconv/u8-strconv-from-locale.c: New file.
56111
56112         * modules/uniconv/u32-strconv-to-enc: New file.
56113         * lib/uniconv/u32-strconv-to-enc.c: New file.
56114         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56115         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56116
56117         * modules/uniconv/u16-strconv-to-enc: New file.
56118         * lib/uniconv/u16-strconv-to-enc.c: New file.
56119         * lib/uniconv/u-strconv-to-enc.h: New file.
56120         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56121         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56122
56123         * modules/uniconv/u8-strconv-to-enc: New file.
56124         * lib/uniconv/u8-strconv-to-enc.c: New file.
56125         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56126         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56127
56128         * modules/uniconv/u32-strconv-from-enc: New file.
56129         * lib/uniconv/u32-strconv-from-enc.c: New file.
56130         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56131         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56132
56133         * modules/uniconv/u16-strconv-from-enc: New file.
56134         * lib/uniconv/u16-strconv-from-enc.c: New file.
56135         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56136         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56137
56138         * modules/uniconv/u8-strconv-from-enc: New file.
56139         * lib/uniconv/u8-strconv-from-enc.c: New file.
56140         * lib/uniconv/u-strconv-from-enc.h: New file.
56141         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56142         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56143
56144         * modules/uniconv/u32-conv-from-enc: New file.
56145         * lib/uniconv/u32-conv-from-enc.c: New file.
56146         * modules/uniconv/u32-conv-from-enc-tests: New file.
56147         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56148
56149         * modules/uniconv/u16-conv-from-enc: New file.
56150         * lib/uniconv/u16-conv-from-enc.c: New file.
56151         * lib/uniconv/u-conv-from-enc.h: New file.
56152         * modules/uniconv/u16-conv-from-enc-tests: New file.
56153         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56154
56155         * modules/uniconv/u8-conv-from-enc: New file.
56156         * lib/uniconv/u8-conv-from-enc.c: New file.
56157         * modules/uniconv/u8-conv-from-enc-tests: New file.
56158         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56159
56160         * modules/uniconv/base: New file.
56161         * lib/uniconv.h: New file.
56162
56163 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56164
56165         * doc/gnulib-tool.texi (Initial import): Update to match current
56166         behavior with strdup module.
56167         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56168         * lib/memmem.h: Remove; all uses removed.  This is now done
56169         by <string.h>.
56170         * lib/mempcpy.h: Likewise.
56171         * lib/memrchr.h: Likewise.
56172         * lib/stpcpy.h: Likewise.
56173         * lib/stpncpy.h: Likewise.
56174         * lib/strcase.h: Likewise.
56175         * lib/strchrnul.h: Likewise.
56176         * lib/strdup.h: Likewise.
56177         * lib/strndup.h: Likewise.
56178         * lib/strnlen.h: Likewise.
56179         * lib/strpbrk.h: Likewise.
56180         * lib/strsep.h: Likewise.
56181         * lib/strstr.h: Likewise.
56182         * lib/strtok_r.h: Likewise.
56183         * lib/string_.h: New file.
56184         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56185         Rely on <string.h> instead.
56186         * lib/canon-host.c: Likewise.
56187         * lib/chdir-long.c: Likewise.
56188         * lib/concatpath.c: Likewise.
56189         * lib/exclude.c: Likewise.
56190         * lib/fchdir.c: Likewise.
56191         * lib/getaddrinfo.c: Likewise.
56192         * lib/getcwd.c: Likewise.
56193         * lib/getsubopt.c: Likewise.
56194         * lib/glob.c: Likewise.
56195         * lib/hard-locale.c: Likewise.
56196         * lib/iconvme.c: Likewise.
56197         * lib/javacomp.c: Likewise.
56198         * lib/mempcpy.c: Likewise.
56199         * lib/memrchr.c: Likewise.
56200         * lib/regex_internal.h: Likewise.
56201         * lib/stpncpy.c: Likewise.
56202         * lib/strcasecmp.c: Likewise.
56203         * lib/strchrnul.c: Likewise.
56204         * lib/strdup.c: Likewise.
56205         * lib/striconv.c: Likewise.
56206         * lib/striconveh.c: Likewise.
56207         * lib/striconveha.c: Likewise.
56208         * lib/strncasecmp.c: Likewise.
56209         * lib/strndup.c: Likewise.
56210         * lib/strnlen.c: Likewise.
56211         * lib/strsep.c: Likewise.
56212         * lib/strstr.c: Likewise.
56213         * lib/strtok_r.c: Likewise.
56214         * lib/userspec.c: Likewise.
56215         * lib/w32spawn.h: Likewise.
56216         * lib/xstrndup.c: Likewise.
56217         * lib/mountlist.c (strstr): Remove decl.
56218         * m4/string_h.m4: New file.
56219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56220         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56222         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56223         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56224         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56225         Set REPLACE_STRCASECMP if necessary.
56226         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56227         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56228         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56229         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56230         HAVE_DECL_STRDUP if necessary.
56231         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56232         since gl_FUNC_STRNDUP does that now.
56233         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56234         Check for decl here...
56235         (gl_PREREQ_STRNLEN): ... not here.
56236         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56237         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56238         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56240         necessary.
56241         * modules/string: New file.
56242         * modules/memmem (Files): Remove special-purpose include file.
56243         (Depends-on): Add string.
56244         (Include): Include <string.h>, not the removed file.
56245         * modules/mempcpy: Likewise.
56246         * modules/memrchr: Likewise.
56247         * modules/stpcpy: Likewise.
56248         * modules/stpncpy: Likewise.
56249         * modules/strcase: Likewise.
56250         * modules/strchrnul: Likewise.
56251         * modules/strdup: Likewise.
56252         * modules/strndup: Likewise.
56253         * modules/strnlen: Likewise.
56254         * modules/strpbrk: Likewise.
56255         * modules/strsep: Likewise.
56256         * modules/strstr: Likewise.
56257         * modules/strtok_r: Likewise.
56258         * tests/test-dirname.c: Don't include "strdup.h", since
56259         <string.h> now suffices.
56260         * tests/test-memmem.c: Don't include "memmem.h", since
56261         <string.h> now suffices.
56262
56263 2007-01-25  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56266         *resultp is 0.
56267
56268         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56269         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56270         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56271         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56272
56273         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56274         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56275         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56276         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56277         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56278         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56279
56280 2007-01-24  Bruno Haible  <bruno@clisp.org>
56281
56282         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56283         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56284         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56285         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56286         gl_FUNC_FTS_CORE.
56287         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56288         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56289         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56290         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56291         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56292         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56293         gl_FUNC_FCHOWNAT.
56294         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56295         gl_FUNC_STRFTIME.
56296         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56297         Reported by Ralf Wildenhues.
56298
56299 2007-01-24  Bruno Haible  <bruno@clisp.org>
56300
56301         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56302         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56303         gl_GETADDRINFO.
56304         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56305         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56306         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56307
56308 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56311         Don't use 'exit'; just return from 'main'.
56312         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56313
56314         * lib/fnmatch_.h: Readjust white space and comments to match
56315         glibc, to avoid spurious diffs.
56316
56317 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56320         2004-12-01 change by Jakub Jelinek, since this code won't compile
56321         if !LIBC.  Problem reported by Bob Proulx.
56322
56323 2007-01-23  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/striconveh.c: Include c-strcaseeq.h.
56326         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56327         * modules/striconveh (Depends-on): Add c-strcaseeq.
56328
56329 2007-01-23  Bruno Haible  <bruno@clisp.org>
56330
56331         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56332
56333         * modules/c-strcaseeq: New file.
56334         * lib/c-strcaseeq.h: New file.
56335
56336         * modules/streq: New file.
56337         * lib/streq.h: New file.
56338
56339 2007-01-23  Bruno Haible  <bruno@clisp.org>
56340
56341         * modules/striconveha-tests: New file.
56342         * tests/test-striconveha.c: New file.
56343
56344         * lib/striconveha.h: Include <stdbool.h>.
56345         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56346         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56347         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56348         (mem_iconveha): New function.
56349         (str_iconveha_notranslit): Renamed from str_iconveha.
56350         (str_iconveha): New function.
56351         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56352         c-strcase.
56353
56354 2007-01-23  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56357         encodings without forgiving before trying any encoding with handler.
56358         (str_iconveha): Try all encodings without forgiving before trying any
56359         encoding with handler.
56360
56361 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56362
56363         Import the following changes from libc.
56364
56365         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56366
56367         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56368
56369         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56370
56371         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56372         normal_bracket label.
56373
56374         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56375
56376         [BZ #361]
56377         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56378         to normal_bracket after fetching the next character.
56379
56380 2007-01-22  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56383         argument.
56384         * lib/striconveh.c (iconv_carefully_1): New function.
56385         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56386         argument.
56387         (str_cd_iconveh): Update.
56388         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56389         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56390         * tests/test-striconveh.c (MAGIC): New macro.
56391         (new_offsets): New function.
56392         (main): Test call with and without offsets.
56393
56394 2007-01-22  Bruno Haible  <bruno@clisp.org>
56395
56396         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56397         * modules/sys_select (Makefile.am): Likewise.
56398         * modules/sys_socket (Makefile.am): Likewise.
56399         * modules/sys_time (Makefile.am): Likewise.
56400
56401 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * modules/gettimeofday (License): Change from GPL to LGPL, since
56404         gettimeofday is a library function.
56405
56406 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56407
56408         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56409
56410 2007-01-21  Bruno Haible  <bruno@clisp.org>
56411
56412         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56413
56414 2007-01-21  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/striconveha: New file.
56417         * lib/striconveha.h: New file.
56418         * lib/striconveha.c: New file.
56419         * MODULES.html.sh (Internationalization functions): Add striconveha.
56420         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56421         string.
56422         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56423
56424 2007-01-21  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56427         * lib/striconveh.c (str_iconveh): Likewise.
56428
56429 2007-01-21  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/striconveh.h (mem_iconveh): New declaration.
56432         * lib/striconveh.c (mem_iconveh): New function.
56433         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56434
56435 2007-01-21  Bruno Haible  <bruno@clisp.org>
56436
56437         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56438
56439         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56440         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56441         original result buffer.
56442         (str_cd_iconveh): Update.
56443         * tests/test-striconveh.c (main): Update.
56444
56445         * lib/striconv.h (mem_cd_iconv): Change specification.
56446         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56447         result buffer.
56448         (str_cd_iconv): Update.
56449         * tests/test-striconv.c (main): Update.
56450
56451 2007-01-21  Bruno Haible  <bruno@clisp.org>
56452
56453         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56454
56455 2007-01-20  Jim Meyering  <jim@meyering.net>
56456
56457         * lib/userspec.c (parse_with_separator): If a user or group string
56458         starts with "+", skip the corresponding name-to-ID look-up, since
56459         such a look-up must fail: user and group names may not include "+".
56460
56461 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56462
56463         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56464         since we now assume the sys_time module.
56465         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56466         check for sys/time.h; no longer needed.
56467         * modules/poll (Depends-on): Depend on sys_time.
56468
56469 2007-01-18  Bruno Haible  <bruno@clisp.org>
56470
56471         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56472         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56473
56474         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56475         gettimeofday.
56476
56477         * tests/test-gettimeofday.c: Include <time.h>.
56478         (dummy): Remove variable.
56479
56480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56481         gl_HEADER_SYS_TIME_H.
56482         (gl_HEADER_SYS_TIME_H): New macro.
56483
56484         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56485         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56487         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56488         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56490         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56491         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56492         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56493         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56494         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56495
56496         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56497         last change; it caused a compilation error when cross-compiling to
56498         Cygwin.
56499
56500 2007-01-18  Jim Meyering  <jim@meyering.net>
56501
56502         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56503         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56504         than the race-prone "test -d sys || mkdir sys".
56505         (configure.ac): Use AC_PROG_MKDIR_P.
56506         * modules/sys_select: Likewise.
56507         * modules/sys_socket: Likewise.
56508         * modules/sys_time: Likewise.
56509
56510 2007-01-18  Eric Blake  <ebb9@byu.net>
56511
56512         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56513         replace gettimeofday.
56514         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56515         name, to avoid infinite recursion.
56516
56517 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56520         module sys_time.
56521         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56522         assume timespec.h defines struct timeval.
56523         * lib/settime.c: Likewise.
56524         * lib/utimens.c: Likewise.
56525         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56526         since we now assume the gettimeofday module.
56527         * lib/tempname.c (__gen_tempname): Likewise.
56528         * lib/gettimeofday.h: Remove.
56529         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56530         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56531         Include <time.h>, for 'time()'.
56532         (localtime_buffer_addr): Also use this workaround if
56533         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56534         to simplify the uses.  All uses changed.
56535         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56536         that #undef is inside {}, and 'const' follows type name consistently.
56537         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56538         (gettimeofday): Do not use the maximum possible value for
56539         tv->tv_usec, since that might break usages other than ls.c.
56540         Instead, we'll leave ls.c alone.  This undoes today's patch
56541         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56542         we've never observed the problem but might as well keep the
56543         canary.
56544         * lib/nanosleep.c: Include timespec.h first, for interface check.
56545         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56546         now assume the sys_time module.
56547         * lib/tempname.c: Likewise.
56548         * lib/timespec.h: Likewise.
56549         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56550         needed.
56551         * lib/strftime.c: Likewise.
56552         * lib/timespec.h: Likewise.
56553         * lib/posixtm.c: Include posixtm.h first, for interface check.
56554         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56555         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56556         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56557         * lib/sys_time_.h: New file.
56558         * lib/timespec.h (struct timespec): Use long int, not long.
56559         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56560         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56561         Remove obsolescent call to AC_HEADER_TIME.
56562         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56564         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56565         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56566         Likewise.
56567         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56568         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56569         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56570         into the sys_time module.  Check for gettimeofday just once.
56571         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56572         for gettimeofday signature to just check the signature.  Merely
56573         compile it, since linking doesn't test signature.  Improve test for
56574         whether gettimeofday.o is actually needed.
56575         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56576         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56577         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56578         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56579         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56580         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56581         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56582         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56583         than worrying about sys/time.h.
56584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56585         Don't bother worrying about TIME_WITH_SYS_TIME.
56586         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56587         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56588         * m4/sys_time_h.m4: New file.
56589         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56590         Don't include sys/time.h.  Return from main rather than exiting.
56591         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56592         all uses changed.
56593         * modules/gethrxtime (Depends-on): Add sys_time.
56594         * modules/gettime (Depends-on): Likewise.
56595         * modules/gettimeofday (Depends-on): Likewise.
56596         * modules/nanosleep (Depends-on): Likewise.
56597         * modules/settime (Depends-on): Likewise.
56598         * modules/tempname (Depends-on): Likewise.
56599         * modules/utimens (Depends-on): Likewise.
56600         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56601         (Include): Change back to <sys/time.h>.
56602         (Maintainer): Add self.
56603         * modules/sys_time: New file.
56604         * modules/tempname (Depends-on): Add gettimeofday.
56605         * tests/test-gettimeofday.c: Include <sys/time.h>
56606         rather than gettimeofday.h.
56607
56608 2007-01-17  Bruno Haible  <bruno@clisp.org>
56609
56610         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56611         the license default to GPL.
56612         (func_create_testdir): Don't complain if a module is LGPL and its
56613         tests module depends on GPLed modules.
56614
56615 2007-01-17  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/gettimeofday.c (gettimeofday): Add code for the case
56618         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56619         maximum possible value for tv->tv_usec, rather than the minimum one.
56620
56621 2005-10-08  Martin Lambers  <marlam@marlam.de>
56622 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56623 2007-01-16  Bruno Haible  <bruno@clisp.org>
56624
56625         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56626         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56627         gl_FUNC_GETTIMEOFDAY.
56628         (Include): Add gettimeofday.h.
56629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56630         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56631         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56632         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56633         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56634         * lib/gettimeofday.h: New file.
56635         * lib/gettimeofday.c: Include <sys/timeb.h>.
56636         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56637         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56638         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56639         fall back on time().
56640
56641         * tests/test-gettimeofday.c: New file.
56642         * modules/gettimeofday-tests: New file.
56643
56644 2007-01-16  Eric Blake  <ebb9@byu.net>
56645
56646         * modules/fnmatch (Depends-on): Depend on wchar.
56647         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56648         * m4/fnmatch.m4: Likewise.
56649         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56650         * m4/mbchar.m4: Likewise.
56651         * modules/mbswidth (Depends-on): Depend on wchar.
56652         * lib/mbswidth.c: Assume <wchar.h>.
56653         * m4/mbswidth.m4: Likewise.
56654         * modules/quotearg (Depends-on): Depend on wchar.
56655         * lib/quotearg.c: Assume <wchar.h>.
56656         * m4/quotearg.m4: Likewise.
56657         * modules/regex (Depends-on): Depend on wchar.
56658         * lib/regex_internal.h: Assume <wchar.h>.
56659         * m4/regex.m4: Likewise.
56660         * modules/stdint (Depends-on): Depend on wchar.
56661         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56662         * m4/stdint.m4: Likewise.
56663         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56664         * modules/strftime (Depends-on): Depend on wchar.
56665         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56666         * modules/strtol (Depends-on): Depend on wchar.
56667         * lib/strtol.c: Assume <wchar.h>.
56668         * modules/wcwidth (Depends-on): Depend on wchar.
56669         * lib/wcwidth.h: Assume <wchar.h>.
56670         * m4/wcwidth.m4: Likewise.
56671
56672 2007-01-16  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/csharpexec-script: New, created from...
56675         * modules/csharpexec: ... this.
56676
56677 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56678
56679         * modules/javaexec-script: New, created from...
56680         * modules/javaexec: ... this.
56681
56682 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56683
56684         * modules/poll (Dependencies): Add sys_select.
56685
56686 2007-01-15  Jim Meyering  <jim@meyering.net>
56687
56688         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56689         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56690         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56691         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56692
56693 2007-01-15  Bruno Haible  <bruno@clisp.org>
56694
56695         * modules/striconveh: New file.
56696         * lib/striconveh.h: New file.
56697         * lib/striconveh.c: New file.
56698         * MODULES.html.sh (Internationalization functions): Add striconveh.
56699
56700         * modules/striconveh-tests: New file.
56701         * tests/test-striconveh.c: New file.
56702
56703 2007-01-15  Bruno Haible  <bruno@clisp.org>
56704
56705         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56706         not from GNU libiconv or GNU libc.
56707
56708 2007-01-15  Bruno Haible  <bruno@clisp.org>
56709
56710         * doc/gnulib-intro.texi (Copyright): Explain the different license
56711         terms for module descriptions, autoconf macros, tests, documentation.
56712
56713 2007-01-14  Bruno Haible  <bruno@clisp.org>
56714
56715         * modules/striconv-tests: New file.
56716         * tests/test-striconv.c: New file.
56717
56718 2007-01-14  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/iconv-tests: New file.
56721         * tests/test-iconv.c: New file.
56722
56723 2007-01-14  Bruno Haible  <bruno@clisp.org>
56724
56725         * gnulib-tool (func_get_license): For test modules, use the license of
56726         the main module.
56727
56728 2007-01-14  Bruno Haible  <bruno@clisp.org>
56729
56730         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56731         if iconv is found to exist.
56732
56733 2007-01-14  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/c-ctype-tests: New file.
56736         * tests/test-c-ctype.c: New file.
56737
56738 2007-01-14  Bruno Haible  <bruno@clisp.org>
56739
56740         * modules/binary-io-tests: New file.
56741         * tests/test-binary-io.sh: New file.
56742         * tests/test-binary-io.c: New file.
56743
56744 2007-01-14  Bruno Haible  <bruno@clisp.org>
56745
56746         * modules/array-oset-tests: New file.
56747         * tests/test-array_oset.c: New file.
56748
56749 2007-01-14  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/array-list-tests: New file.
56752         * tests/test-array_list.c: New file.
56753
56754 2007-01-14  Bruno Haible  <bruno@clisp.org>
56755
56756         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56757         and make.
56758         Reported by Simon Josefsson in
56759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56760
56761 2007-01-14  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/allocsa-tests: New file.
56764         * tests/test-allocsa.c: New file.
56765
56766 2007-01-14  Bruno Haible  <bruno@clisp.org>
56767
56768         * modules/fchdir (Depends-on): Add absolute-header.
56769         * modules/unistd (Depends-on): Likewise.
56770
56771 2006-12-30  Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/fchdir: New file.
56774         * modules/unistd (Files): Add lib/unistd_.h.
56775         (Makefile.am): Generate unistd.h from unistd_.h.
56776         * lib/fchdir.c: New file.
56777         * lib/dirent_.h: New file.
56778         * lib/unistd_.h: New file.
56779         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56780         * m4/fchdir.m4: New file.
56781         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56782         (gl_HEADER_UNISTD): Invoke it.
56783         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56784         function.
56785         * lib/backupfile.c (opendir, closedir): Undefine.
56786         * lib/chown.c (open, close): Undefine.
56787         * lib/clean-temp.c (open, close): Undefine.
56788         * lib/copy-file.c (open, close): Undefine.
56789         * lib/execute.c (open, close): Undefine.
56790         * lib/fsusage.c (open, close): Undefine.
56791         * lib/gc-gnulib.c (open, close): Undefine.
56792         * lib/getcwd.c (opendir, closedir): Undefine.
56793         * lib/glob.c (opendir, closedir): Undefine.
56794         * lib/javacomp.c (open, close): Undefine.
56795         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56796         * lib/openat-proc.c (open, close): Undefine.
56797         * lib/pagealign_alloc.c (open, close): Undefine.
56798         * lib/pipe.c (open, close): Undefine.
56799         * lib/progreloc.c (open, close): Undefine.
56800         * lib/savedir.c (opendir, closedir): Undefine.
56801         * lib/utime.c (open, close): Undefine.
56802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56803
56804 2007-01-10  Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56807
56808 2007-01-12  Eric Blake  <ebb9@byu.net>
56809
56810         Provide a robust <wchar.h>.  Further simplifications are now
56811         possible in other modules, but not included here.
56812         * modules/wchar: New module.
56813         * m4/wchar.m4: New file.
56814         * lib/wchar_.h: Likewise.
56815         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56816         of the new module.
56817         * MODULES.html.sh (Extended multibyte and wide character utilities):
56818         New section.
56819
56820 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56821
56822         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56823         to a reasonable default for memory allocation.
56824         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56825         file system that reports garbage st_size values for symlinks.
56826         Problem reported by Liyang Hu.
56827
56828 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56829
56830         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56831         Emacs .#* auto-save files).
56832
56833 2007-01-11  Bruno Haible  <bruno@clisp.org>
56834
56835         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56836         directory.
56837
56838 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56839
56840         Use @...@ consistently in lib/wctype_.h.
56841         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56842         on it being set to 1 or 0.
56843         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56844         go back to AC_SUBSTing it.
56845         * modules/wctype (Makefile.am): Undo previous change.
56846
56847 2007-01-10  Eric Blake  <ebb9@byu.net>
56848
56849         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56850         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56851         * modules/wctype (Makefile.am): Likewise.
56852         Reported by Chris McGuire.
56853
56854 2007-01-10  Jim Meyering  <jim@meyering.net>
56855
56856         fts.c: a small readability/maintainability improvement
56857         * lib/fts.c (fts_read): Make this code slightly more readable and
56858         maintainable by hoisting the "sp->fts_cur = p" assignments to
56859         immediately follow the statements that set P.  Derived from
56860         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56861
56862 2007-01-10  Eric Blake  <ebb9@byu.net>
56863
56864         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56865         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56867         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56868         Reported by Chris McGuire.
56869
56870 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56871
56872         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56873         in sed script.
56874
56875 2007-01-09  Bruno Haible  <bruno@clisp.org>
56876
56877         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56878         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56879         variables.
56880         (func_module): Use them.
56881
56882 2007-01-09  Bruno Haible  <bruno@clisp.org>
56883
56884         * modules/unistr/base: New file.
56885         * lib/unistr.h: New file.
56886
56887         * modules/unistr/u8-to-u16: New file.
56888         * lib/unistr/u8-to-u16.c: New file.
56889
56890         * modules/unistr/u8-to-u32: New file.
56891         * lib/unistr/u8-to-u32.c: New file.
56892
56893         * modules/unistr/u16-to-u8: New file.
56894         * lib/unistr/u16-to-u8.c: New file.
56895
56896         * modules/unistr/u16-to-u32: New file.
56897         * lib/unistr/u16-to-u32.c: New file.
56898
56899         * modules/unistr/u32-to-u8: New file.
56900         * lib/unistr/u32-to-u8.c: New file.
56901
56902         * modules/unistr/u32-to-u16: New file.
56903         * lib/unistr/u32-to-u16.c: New file.
56904
56905         * modules/unistr/u8-check: New file.
56906         * modules/unistr/u16-check: New file.
56907         * modules/unistr/u32-check: New file.
56908         * lib/unistr/u8-check.c: New file.
56909         * lib/unistr/u16-check.c: New file.
56910         * lib/unistr/u32-check.c: New file.
56911
56912         * modules/unistr/u8-chr: New file.
56913         * modules/unistr/u16-chr: New file.
56914         * modules/unistr/u32-chr: New file.
56915         * lib/unistr/u8-chr.c: New file.
56916         * lib/unistr/u16-chr.c: New file.
56917         * lib/unistr/u32-chr.c: New file.
56918
56919         * modules/unistr/u8-cmp: New file.
56920         * modules/unistr/u16-cmp: New file.
56921         * modules/unistr/u32-cmp: New file.
56922         * lib/unistr/u8-cmp.c: New file.
56923         * lib/unistr/u16-cmp.c: New file.
56924         * lib/unistr/u32-cmp.c: New file.
56925
56926         * modules/unistr/u8-cpy: New file.
56927         * modules/unistr/u16-cpy: New file.
56928         * modules/unistr/u32-cpy: New file.
56929         * lib/unistr/u8-cpy.c: New file.
56930         * lib/unistr/u16-cpy.c: New file.
56931         * lib/unistr/u32-cpy.c: New file.
56932         * lib/unistr/u-cpy.h: New file.
56933
56934         * modules/unistr/u8-cpy-alloc: New file.
56935         * modules/unistr/u16-cpy-alloc: New file.
56936         * modules/unistr/u32-cpy-alloc: New file.
56937         * lib/unistr/u8-cpy-alloc.c: New file.
56938         * lib/unistr/u16-cpy-alloc.c: New file.
56939         * lib/unistr/u32-cpy-alloc.c: New file.
56940         * lib/unistr/u-cpy-alloc.h: New file.
56941
56942         * modules/unistr/u8-endswith: New file.
56943         * modules/unistr/u16-endswith: New file.
56944         * modules/unistr/u32-endswith: New file.
56945         * lib/unistr/u8-endswith.c: New file.
56946         * lib/unistr/u16-endswith.c: New file.
56947         * lib/unistr/u32-endswith.c: New file.
56948         * lib/unistr/u-endswith.h: New file.
56949
56950         * modules/unistr/u8-mblen: New file.
56951         * modules/unistr/u16-mblen: New file.
56952         * modules/unistr/u32-mblen: New file.
56953         * lib/unistr/u8-mblen.c: New file.
56954         * lib/unistr/u16-mblen.c: New file.
56955         * lib/unistr/u32-mblen.c: New file.
56956
56957         * modules/unistr/u8-mbtouc: New file.
56958         * modules/unistr/u16-mbtouc: New file.
56959         * modules/unistr/u32-mbtouc: New file.
56960         * lib/unistr/u8-mbtouc.c: New file.
56961         * lib/unistr/u16-mbtouc.c: New file.
56962         * lib/unistr/u32-mbtouc.c: New file.
56963
56964         * modules/unistr/u8-mbtouc-safe: New file.
56965         * modules/unistr/u16-mbtouc-safe: New file.
56966         * modules/unistr/u32-mbtouc-safe: New file.
56967         * lib/unistr/u8-mbtouc-safe.c: New file.
56968         * lib/unistr/u16-mbtouc-safe.c: New file.
56969         * lib/unistr/u32-mbtouc-safe.c: New file.
56970
56971         * modules/unistr/u8-move: New file.
56972         * modules/unistr/u16-move: New file.
56973         * modules/unistr/u32-move: New file.
56974         * lib/unistr/u8-move.c: New file.
56975         * lib/unistr/u16-move.c: New file.
56976         * lib/unistr/u32-move.c: New file.
56977         * lib/unistr/u-move.h: New file.
56978
56979         * modules/unistr/u8-next: New file.
56980         * modules/unistr/u16-next: New file.
56981         * modules/unistr/u32-next: New file.
56982         * lib/unistr/u8-next.c: New file.
56983         * lib/unistr/u16-next.c: New file.
56984         * lib/unistr/u32-next.c: New file.
56985
56986         * modules/unistr/u8-prev: New file.
56987         * modules/unistr/u16-prev: New file.
56988         * modules/unistr/u32-prev: New file.
56989         * lib/unistr/u8-prev.c: New file.
56990         * lib/unistr/u16-prev.c: New file.
56991         * lib/unistr/u32-prev.c: New file.
56992
56993         * modules/unistr/u8-set: New file.
56994         * modules/unistr/u16-set: New file.
56995         * modules/unistr/u32-set: New file.
56996         * lib/unistr/u8-set.c: New file.
56997         * lib/unistr/u16-set.c: New file.
56998         * lib/unistr/u32-set.c: New file.
56999         * lib/unistr/u-set.h: New file.
57000
57001         * modules/unistr/u8-startswith: New file.
57002         * modules/unistr/u16-startswith: New file.
57003         * modules/unistr/u32-startswith: New file.
57004         * lib/unistr/u8-startswith.c: New file.
57005         * lib/unistr/u16-startswith.c: New file.
57006         * lib/unistr/u32-startswith.c: New file.
57007         * lib/unistr/u-startswith.h: New file.
57008
57009         * modules/unistr/u8-stpcpy: New file.
57010         * modules/unistr/u16-stpcpy: New file.
57011         * modules/unistr/u32-stpcpy: New file.
57012         * lib/unistr/u8-stpcpy.c: New file.
57013         * lib/unistr/u16-stpcpy.c: New file.
57014         * lib/unistr/u32-stpcpy.c: New file.
57015         * lib/unistr/u-stpcpy.h: New file.
57016
57017         * modules/unistr/u8-stpncpy: New file.
57018         * modules/unistr/u16-stpncpy: New file.
57019         * modules/unistr/u32-stpncpy: New file.
57020         * lib/unistr/u8-stpncpy.c: New file.
57021         * lib/unistr/u16-stpncpy.c: New file.
57022         * lib/unistr/u32-stpncpy.c: New file.
57023         * lib/unistr/u-stpncpy.h: New file.
57024
57025         * modules/unistr/u8-strcat: New file.
57026         * modules/unistr/u16-strcat: New file.
57027         * modules/unistr/u32-strcat: New file.
57028         * lib/unistr/u8-strcat.c: New file.
57029         * lib/unistr/u16-strcat.c: New file.
57030         * lib/unistr/u32-strcat.c: New file.
57031         * lib/unistr/u-strcat.h: New file.
57032
57033         * modules/unistr/u8-strchr: New file.
57034         * modules/unistr/u16-strchr: New file.
57035         * modules/unistr/u32-strchr: New file.
57036         * lib/unistr/u8-strchr.c: New file.
57037         * lib/unistr/u16-strchr.c: New file.
57038         * lib/unistr/u32-strchr.c: New file.
57039
57040         * modules/unistr/u8-strcmp: New file.
57041         * modules/unistr/u16-strcmp: New file.
57042         * modules/unistr/u32-strcmp: New file.
57043         * lib/unistr/u8-strcmp.c: New file.
57044         * lib/unistr/u16-strcmp.c: New file.
57045         * lib/unistr/u32-strcmp.c: New file.
57046
57047         * modules/unistr/u8-strcpy: New file.
57048         * modules/unistr/u16-strcpy: New file.
57049         * modules/unistr/u32-strcpy: New file.
57050         * lib/unistr/u8-strcpy.c: New file.
57051         * lib/unistr/u16-strcpy.c: New file.
57052         * lib/unistr/u32-strcpy.c: New file.
57053         * lib/unistr/u-strcpy.h: New file.
57054
57055         * modules/unistr/u8-strcspn: New file.
57056         * modules/unistr/u16-strcspn: New file.
57057         * modules/unistr/u32-strcspn: New file.
57058         * lib/unistr/u8-strcspn.c: New file.
57059         * lib/unistr/u16-strcspn.c: New file.
57060         * lib/unistr/u32-strcspn.c: New file.
57061         * lib/unistr/u-strcspn.h: New file.
57062
57063         * modules/unistr/u8-strdup: New file.
57064         * modules/unistr/u16-strdup: New file.
57065         * modules/unistr/u32-strdup: New file.
57066         * lib/unistr/u8-strdup.c: New file.
57067         * lib/unistr/u16-strdup.c: New file.
57068         * lib/unistr/u32-strdup.c: New file.
57069         * lib/unistr/u-strdup.h: New file.
57070
57071         * modules/unistr/u8-strlen: New file.
57072         * modules/unistr/u16-strlen: New file.
57073         * modules/unistr/u32-strlen: New file.
57074         * lib/unistr/u8-strlen.c: New file.
57075         * lib/unistr/u16-strlen.c: New file.
57076         * lib/unistr/u32-strlen.c: New file.
57077         * lib/unistr/u-strlen.h: New file.
57078
57079         * modules/unistr/u8-strmblen: New file.
57080         * modules/unistr/u16-strmblen: New file.
57081         * modules/unistr/u32-strmblen: New file.
57082         * lib/unistr/u8-strmblen.c: New file.
57083         * lib/unistr/u16-strmblen.c: New file.
57084         * lib/unistr/u32-strmblen.c: New file.
57085
57086         * modules/unistr/u8-strmbtouc: New file.
57087         * modules/unistr/u16-strmbtouc: New file.
57088         * modules/unistr/u32-strmbtouc: New file.
57089         * lib/unistr/u8-strmbtouc.c: New file.
57090         * lib/unistr/u16-strmbtouc.c: New file.
57091         * lib/unistr/u32-strmbtouc.c: New file.
57092
57093         * modules/unistr/u8-strncat: New file.
57094         * modules/unistr/u16-strncat: New file.
57095         * modules/unistr/u32-strncat: New file.
57096         * lib/unistr/u8-strncat.c: New file.
57097         * lib/unistr/u16-strncat.c: New file.
57098         * lib/unistr/u32-strncat.c: New file.
57099         * lib/unistr/u-strncat.h: New file.
57100
57101         * modules/unistr/u8-strncmp: New file.
57102         * modules/unistr/u16-strncmp: New file.
57103         * modules/unistr/u32-strncmp: New file.
57104         * lib/unistr/u8-strncmp.c: New file.
57105         * lib/unistr/u16-strncmp.c: New file.
57106         * lib/unistr/u32-strncmp.c: New file.
57107
57108         * modules/unistr/u8-strncpy: New file.
57109         * modules/unistr/u16-strncpy: New file.
57110         * modules/unistr/u32-strncpy: New file.
57111         * lib/unistr/u8-strncpy.c: New file.
57112         * lib/unistr/u16-strncpy.c: New file.
57113         * lib/unistr/u32-strncpy.c: New file.
57114         * lib/unistr/u-strncpy.h: New file.
57115
57116         * modules/unistr/u8-strnlen: New file.
57117         * modules/unistr/u16-strnlen: New file.
57118         * modules/unistr/u32-strnlen: New file.
57119         * lib/unistr/u8-strnlen.c: New file.
57120         * lib/unistr/u16-strnlen.c: New file.
57121         * lib/unistr/u32-strnlen.c: New file.
57122         * lib/unistr/u-strnlen.h: New file.
57123
57124         * modules/unistr/u8-strpbrk: New file.
57125         * modules/unistr/u16-strpbrk: New file.
57126         * modules/unistr/u32-strpbrk: New file.
57127         * lib/unistr/u8-strpbrk.c: New file.
57128         * lib/unistr/u16-strpbrk.c: New file.
57129         * lib/unistr/u32-strpbrk.c: New file.
57130         * lib/unistr/u-strpbrk.h: New file.
57131
57132         * modules/unistr/u8-strrchr: New file.
57133         * modules/unistr/u16-strrchr: New file.
57134         * modules/unistr/u32-strrchr: New file.
57135         * lib/unistr/u8-strrchr.c: New file.
57136         * lib/unistr/u16-strrchr.c: New file.
57137         * lib/unistr/u32-strrchr.c: New file.
57138
57139         * modules/unistr/u8-strspn: New file.
57140         * modules/unistr/u16-strspn: New file.
57141         * modules/unistr/u32-strspn: New file.
57142         * lib/unistr/u8-strspn.c: New file.
57143         * lib/unistr/u16-strspn.c: New file.
57144         * lib/unistr/u32-strspn.c: New file.
57145         * lib/unistr/u-strspn.h: New file.
57146
57147         * modules/unistr/u8-strstr: New file.
57148         * modules/unistr/u16-strstr: New file.
57149         * modules/unistr/u32-strstr: New file.
57150         * lib/unistr/u8-strstr.c: New file.
57151         * lib/unistr/u16-strstr.c: New file.
57152         * lib/unistr/u32-strstr.c: New file.
57153         * lib/unistr/u-strstr.h: New file.
57154
57155         * modules/unistr/u8-strtok: New file.
57156         * modules/unistr/u16-strtok: New file.
57157         * modules/unistr/u32-strtok: New file.
57158         * lib/unistr/u8-strtok.c: New file.
57159         * lib/unistr/u16-strtok.c: New file.
57160         * lib/unistr/u32-strtok.c: New file.
57161         * lib/unistr/u-strtok.h: New file.
57162
57163         * modules/unistr/u8-uctomb: New file.
57164         * modules/unistr/u16-uctomb: New file.
57165         * modules/unistr/u32-uctomb: New file.
57166         * lib/unistr/u8-uctomb.c: New file.
57167         * lib/unistr/u16-uctomb.c: New file.
57168         * lib/unistr/u32-uctomb.c: New file.
57169
57170         * MODULES.html.sh (Unicode string functions): Add the new modules.
57171
57172 2007-01-08  Bruno Haible  <bruno@clisp.org>
57173
57174         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57175         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57176         subdirectories.
57177
57178 2007-01-08  Karl Berry  <karl@gnu.org>
57179
57180         * doc/error.texi: mention that main() fns must set program_name
57181         when progname is used.
57182
57183 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57184
57185         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57186         WCTYPE_H is empty, for the benefit of builds from non-distclean
57187         directories.  Problem reported by Eric Blake in
57188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57189
57190 2007-01-08  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57193         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57194         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57195         PROVIDE_CANONICALIZE_FILENAME_MODE.
57196         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57197
57198 2007-01-08  Bruno Haible  <bruno@clisp.org>
57199
57200         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57201         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57202         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57203         * lib/fts.c: Likewise.
57204         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57205
57206 2006-12-25  Bruno Haible  <bruno@clisp.org>
57207
57208         * modules/utf8-ucs4-safe: New file.
57209         * lib/utf8-ucs4-safe.h: New file.
57210         * lib/unistr/utf8-ucs4-safe.c: New file.
57211
57212         * modules/utf16-ucs4-safe: New file.
57213         * lib/utf16-ucs4-safe.h: New file.
57214         * lib/unistr/utf16-ucs4-safe.c: New file.
57215
57216         * MODULES.html.sh (Unicode string functions): Add the new modules.
57217
57218 2007-01-08  Bruno Haible  <bruno@clisp.org>
57219
57220         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57221         (Depends-on): Add unitypes.
57222         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57223         (u8_mbtouc_aux): Move out to separate file.
57224         (u8_mbtouc): Use ucs4_t, uint8_t types.
57225         * lib/unistr/utf8-ucs4.c: New file.
57226
57227         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57228         (Depends-on): Add unitypes.
57229         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57230         (u16_mbtouc_aux): Move out to separate file.
57231         (u16_mbtouc): Use ucs4_t, uint16_t types.
57232         * lib/unistr/utf16-ucs4.c: New file.
57233
57234         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57235         (Depends-on): Add unitypes.
57236         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57237         (u8_uctomb_aux): Move out to separate file.
57238         (u8_uctomb): Use ucs4_t, uint8_t types.
57239         * lib/unistr/ucs4-utf8.c: New file.
57240
57241         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57242         (Depends-on): Add unitypes.
57243         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57244         (u16_uctomb_aux): Move out to separate file.
57245         (u16_uctomb): Use ucs4_t, uint16_t types.
57246         * lib/unistr/ucs4-utf16.c: New file.
57247
57248 2006-12-25  Bruno Haible  <bruno@clisp.org>
57249
57250         * modules/unitypes: New file.
57251         * lib/unitypes.h: New file.
57252         * MODULES.html.sh (func_all_modules): New section "Unicode string
57253         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57254         this section. Add unitypes.
57255
57256 2007-01-08  Bruno Haible  <bruno@clisp.org>
57257
57258         Avoid variable names that conflict with those from libtool.
57259         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57260         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57261         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57262         library_names_spec to acl_library_names_spec, hardcode_* to
57263         acl_hardcode_*.
57264         Reported by Ralf Wildenhues.
57265
57266 2007-01-08  Bruno Haible  <bruno@clisp.org>
57267
57268         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57269         definition.
57270         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57271         definition.
57272         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57273         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57274         definition.
57275         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57276         definition.
57277         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57278         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57279         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57280         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57281         definition.
57282         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57283         definition.
57284         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57285         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57286         GC_USE_<algorithm>.
57287         * lib/gc-libgcrypt.c: Likewise.
57288         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57289         * modules/gc-arctwo (configure.ac): Likewise.
57290         * modules/gc-des (configure.ac): Likewise.
57291         * modules/gc-hmac-md5 (configure.ac): Likewise.
57292         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57293         * modules/gc-md2 (configure.ac): Likewise.
57294         * modules/gc-md4 (configure.ac): Likewise.
57295         * modules/gc-md5 (configure.ac): Likewise.
57296         * modules/gc-random (configure.ac): Likewise.
57297         * modules/gc-rijndael (configure.ac): Likewise.
57298         * modules/gc-sha1 (configure.ac): Likewise.
57299
57300 2007-01-08  Bruno Haible  <bruno@clisp.org>
57301
57302         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57303         macro definition.
57304         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57305         definition.
57306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57307         definition.
57308         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57309         * modules/fcntl-safer (configure.ac): Likewise.
57310         * modules/fopen-safer (configure.ac): Likewise.
57311         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57312         GNULIB_FWRITEERROR macro definition.
57313
57314 2007-01-08  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/gnulib-common.m4: New file.
57317         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57318         (func_get_filelist): Add m4/gnulib-common.m4.
57319
57320 2007-01-08  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57323         command.
57324
57325 2007-01-08  Jim Meyering  <jim@meyering.net>
57326
57327         Use a more robust test for a "can't happen" condition.
57328         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57329         narrowed the st_size value.  Presuming the "can't happen" condition
57330         is true, that narrowing could conceivably convert an invalid st_size
57331         value into a valid one.  Instead, use a change based on Matthew
57332         Woehlke's original patch.
57333
57334         Slight readability improvement: use an assert-like macro
57335         in place of literal "abort ()" uses.
57336         * lib/fts.c (fts_assert): Define.
57337         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57338         Use this macro instead of a bare 'abort'.
57339
57340 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57343         simply work around them.
57344         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57346         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57347         declaring.
57348         Don't bother to define as macros, since the standard doesn't require it.
57349         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57350         longer worry about IRIX 5.3.
57351         (HAVE_WCTYPE_CTMP_BUG): Remove.
57352
57353 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57356         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57357         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57358         Problems reported by Georg Schwarz for IRIX 5.3.
57359
57360         * gnulib-tool (autoconf_minversion): Take the maximum version number
57361         found, not the minimum.  Problem reported by James Youngman.
57362
57363 2007-01-03  Karl Berry  <karl@gnu.org>
57364
57365         * doc/error.texi: new file, explaining interaction with progname.
57366         * doc/gnulib.texi: include it.  Update copyright.
57367
57368 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57369
57370         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57371         AC_CANONICAL_HOST, to improve autobuild outputs.
57372
57373 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57374             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57375
57376         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57377         sockets, server sockets, and other file descriptors.  Count errors
57378         to compute the return value.  Reorder the code a bit to be easier
57379         to follow.  Don't set event bits that were not requested (except
57380         POLLERR and POLLHUP).
57381
57382 2007-01-01  Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57385
57386 2007-01-03  Jim Meyering  <jim@meyering.net>
57387
57388         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57389
57390 2007-01-02  Bruno Haible  <bruno@clisp.org>
57391
57392         * modules/settime (Include): Require timespec.h.
57393         * modules/nanosleep (Include): Likewise.
57394
57395 2007-01-01  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool (func_emit_copyright_notice): Bump year.
57398         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57399
57400 2007-01-01  Bruno Haible  <bruno@clisp.org>
57401
57402         Improve support for OpenBSD.
57403         * build-aux/config.rpath (libname_spec): Export.
57404         (library_names_spec): New variable. Export.
57405         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57406         library_names_spec from the config.rpath output. Locate shared library
57407         through the name pattern in library_names_spec.
57408
57409 2007-01-01  Eric Blake  <ebb9@byu.net>
57410
57411         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57412
57413 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57416         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57417         assume the C locale, and avoid an "eval" that could cause trouble.
57418         Problem with SORT reported by Bob Proulx.
57419
57420         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57421         Define.  Trivial patch from Henning Nielsen Lund, originally
57422         sent to bug-grep@gnu.org today.
57423
57424 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57427         struct stat.  Problem reported by Henning Nielsen Lund.
57428         * lib/acl.c: Include acl.h first, to check interface.  Don't
57429         bother to include sys/types.h and sys/stat.h again.
57430
57431 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57432
57433         Import the following change from libc; problem reported by
57434         Sven Verdoolaege.
57435
57436         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57437
57438         [BZ #1373]
57439         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57440
57441 2006-12-28  Jim Meyering  <jim@meyering.net>
57442
57443         * build-aux/announce-gen: Do not assume that the package
57444         builds any of tar.gz, tar.bz2, and .xdelta files.
57445         Suggestion from Simon Josefsson.
57446
57447 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57448
57449         * modules/announce-gen: New file.
57450
57451 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57454         handles its gotchas now.
57455         * lib/mbswidth.c: Likewise.
57456         * lib/wcwidth.h: Likewise.
57457         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57458         and iswcntrl; the wctype module does this stuff now.
57459         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57461         * modules/mbchar (Depends-on): Add wctype.
57462         * modules/mbswidth (Depends-on): Likewise.
57463         * modules/wcwidth (Depends-on): Likewise.
57464
57465 2006-12-27  Eric Blake  <ebb9@byu.net>
57466
57467         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57468         module uses more than what <wctype.h> is required to provide.
57469
57470 2006-12-26  Eric Blake  <ebb9@byu.net>
57471
57472         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57473
57474 2006-12-26  Eric Blake  <ebb9@byu.net>
57475
57476         * modules/absolute-header: New module.
57477         * modules/fcntl (Depends-on): Depend on it.
57478         * modules/inttypes (Depends-on): Likewise.
57479         * modules/stdint (Depends-on): Likewise.
57480         * modules/sys_stat (Depends-on): Likewise.
57481         * modules/wctype (Depends-on): Likewise.
57482         * MODULES.html.sh (Support for building libraries and
57483         executables): Document it.
57484
57485 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57486
57487         * gnulib-tool (SED): Remove, undoing previous change.
57488         The problem was that it broke coreutils on Solaris, because
57489         "sed --posix" leaked into a makefile.
57490         (sed): New alias, if 'alias' and GNU sed.
57491
57492 2006-12-24  Jim Meyering  <jim@meyering.net>
57493
57494         Work around an fchownat bug in glibc-2.4:
57495         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57496         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57497         in spite of the -P option.
57498         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57499         New macros.
57500         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57501         * modules/openat (Files): Add lib/fchownat.c.
57502         * lib/openat.c (fchownat): Don't define here.  Move to...
57503         * lib/fchownat.c: ...this new file.
57504
57505 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57506
57507         Fix bug reported by Bruno Haible in
57508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57509         where quotearg.c didn't compile on Mac OS X 10.2 because it
57510         lacks <wchar.h> and wint_t.
57511         * lib/wctype_.h (__wctype_wint_t): New type.
57512         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57513         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57514         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57515         Arg is now of type __wctype_wint_t, not wint_t.
57516         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57517         substitute HAVE_WINT_T.
57518         * modules/wctype (Files): Add m4/wint_t.m4.
57519         (wctype.h): Substitute HAVE_WINT_T.
57520
57521 2006-12-23  Bruno Haible  <bruno@clisp.org>
57522
57523         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57524
57525 2006-12-23  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57528         S_ISLNK.
57529         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57530         mingw.
57531
57532 2006-12-22  Bruno Haible  <bruno@clisp.org>
57533
57534         * lib/copy-file.c: Include acl.h.
57535         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57536         Close the file descriptors only after being done with copy_acl.
57537         * modules/copy-file (Depends-on): Add acl.
57538
57539 2006-12-22  Bruno Haible  <bruno@clisp.org>
57540
57541         * gnulib-tool (SED): New variable.
57542         Use $SED instead of sed everywhere.
57543
57544 2006-12-22  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/no-c++: New file.
57547         * m4/no-c++.m4: New file.
57548         * MODULES.html.sh (Support for building libraries and executables):
57549         Add no-c++.
57550
57551 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57554         Include <limits.h>, and use its INT_MAX to rewrite the
57555         j loop so that it does not overflow 'int'.  Problem reported by
57556         Ralf Wildenhues in
57557         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57558         Play it safe by shifting left by 1 rather than multiplying by 2,
57559         as GCC is less likely to optimize this away when the value
57560         is signed (when it assumes overflow leads to undefined behavior).
57561         Also, don't assume time_t uses two's complement.
57562
57563 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57564
57565         * MODULES.html.sh: New module wctype.
57566         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57567         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57568         <wctype.h>, since the new wctype module should fix this.
57569         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57570         the wctype module should arrange for it.
57571         * lib/regex_internal.h: Likewise.
57572         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57573         since the wctype module should handle this now.
57574         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57575         * modules/fnmatch (Depends-on): Add wctype.
57576         * modules/quotearg (Depends-on): Likewise.
57577         * modules/regex (Depends-on): Likewise.
57578
57579 2006-12-19  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57582         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57583
57584 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57585
57586         * modules/savewd (Depends-on): Fix dependency on fcntl.
57587
57588 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57591         conforms to C99, rather than relying on the user's environment
57592         setting of STDINT_H.
57593
57594 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57595         and Eric Blake  <ebb9@byu.net>
57596
57597         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57598         This is more consistent with the other defines here.
57599         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57600         Port to z/OS.  Problem reported by Paul Gilmartin.
57601         Change local vars to use gl_ prefix rather than ac_.
57602         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57603         with other defines.
57604         * modules/double-slash-root: New module.
57605         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57606         (Depends-on): Add double-slash-root.
57607         * MODULES.html.sh (File system functions): Mention new module.
57608
57609 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57612         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57613         This is for the benefit of gzip, which doesn't do i18n.
57614
57615 2006-12-12  Jim Meyering  <jim@meyering.net>
57616
57617         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57618         Reported by Andreas Schwab <schwab@suse.de>.
57619
57620 2006-12-12  Bruno Haible  <bruno@clisp.org>
57621
57622         Merge these changes.
57623         2006-09-05  Bruno Haible  <bruno@clisp.org>
57624         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57625         iconv_alloc succeeded.
57626         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57627         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57628         test for " && dest " at the end - dest is always != NULL there. Call
57629         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57630         with 2xNULL arguments, also to flush the state storage. Handle the
57631         IRIX iconv behaviour. Realloc the final result, to throw away unused
57632         memory.
57633
57634 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57635
57636         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57637         and fchmodat unconditionally, since glibc 2.4 has them.
57638         Problem reported by Arkadiusz Miskiewicz.
57639
57640 2006-12-10  Bruno Haible  <bruno@clisp.org>
57641
57642         * gnulib-tool (func_import): Show the include files only for those
57643         modules that are copied and specified.
57644         Reported by Karl Berry.
57645
57646 2006-12-08  Jim Meyering  <jim@meyering.net>
57647
57648         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57649         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57650
57651         * build-aux/announce-gen: Add two new options, both optional:
57652         --bootstrap-tools=TOOL_LIST
57653               a comma-separated list of tools, e.g.,
57654               autoconf,automake,bison,gnulib
57655         --gnulib-snapshot-date=DATE
57656               if gnulib is in the bootstrap tool list,
57657               then report this as the snapshot date.
57658               If not specified, use the current date/time.
57659               If you specify a date here, be sure it's UTC.
57660
57661 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57662
57663         * tests/test-argp-2.sh: Fix test to match actual output.
57664         (func_compare): Fix sed script to be portable.
57665
57666 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57669         workaround for this case.  It is not autoconfigured now; offhand
57670         it's hard to see how to autoconfigure it.
57671
57672 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57675         a directory that is about to be chowned.  Such a directory's
57676         initial file permissions should permit the owner only and this
57677         should not be changed until after the chown, since the group and
57678         other bits would be incorrect if they granted permission before
57679         the chown.
57680
57681         Fix porting problem for iswctype reported by Georg Schwarz in:
57682         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57683         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57684         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57686         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57687
57688 2006-12-03  Jim Meyering  <jim@meyering.net>
57689
57690         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57691         p->fts_statp may not yet be defined.
57692         (fts_read): Instead, set it in the caller, once p->fts_statp is
57693         sure to be defined, and corresponds to a top-level directory.
57694         This bug made du -x fail.  Here's the coreutils test case:
57695         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57696         Reported by Mike Frysinger.
57697
57698 2006-12-01  Jim Meyering  <jim@meyering.net>
57699
57700         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57701         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57702         Reported by Simon Josefsson.
57703
57704 2006-11-30  Jim Meyering  <jim@meyering.net>
57705
57706         * m4/warning.m4: Use the all-permissive copyright notice
57707         recommended by RMS (rather than LGPL).
57708         * m4/vararrays.m4: Likewise.
57709         * m4/flexmember.m4: Likewise.
57710
57711 2006-11-29  Bruno Haible  <bruno@clisp.org>
57712
57713         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57714         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57715         using +=.
57716         Reported by Simon Josefsson <simon@josefsson.org>.
57717
57718 2006-11-28  James Youngman <jay@gnu.org>
57719
57720         * README: Advise users that they might find the bug-gnulib@gnu.org
57721         and autotools-announce@gnu.org mailing lists useful.
57722
57723 2006-11-28  Bruno Haible  <bruno@clisp.org>
57724
57725         * m4/ptrdiff_max.m4: Remove file.
57726
57727 2006-11-21  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57730         _AC_COMPUTE_INT.
57731         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57732         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57733         _AC_COMPUTE_INT.
57734         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57735         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57736         _AC_COMPUTE_INT.
57737         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57738
57739 2006-11-28  Jim Meyering  <jim@meyering.net>
57740
57741         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57742         warning from "gcc -Wshadow" about shadowing the builtin.
57743
57744 2006-11-27  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57747         _AC_COMPUTE_INT.
57748         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57749
57750 2006-11-27  Bruno Haible  <bruno@clisp.org>
57751             Paul Eggert  <eggert@cs.ucla.edu>
57752
57753         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57754
57755 2006-11-26  Bruno Haible  <bruno@clisp.org>
57756
57757         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57758         noinst_LTLIBRARIES.
57759
57760 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57761             Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57764         if compiling with "gcc -ansi".
57765
57766 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         Fix some incompatibilities with gcc -ansi -pedantic.
57769         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57770         if compiling pedantically with GCC, unless it's C99 or later.
57771         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57772         it mishandles gcc -ansi -pedantic as well.
57773         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57774         if gcc -pedantic.
57775         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57776         initializers for struct if -pedantic, unless it's C99 or later.
57777
57778 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57779
57780         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57781         Don't close an fd more than once. Identical atimes indicate
57782         success, not failure.
57783
57784 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57785
57786         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57787
57788 2006-11-23  Jim Meyering  <jim@meyering.net>
57789
57790         * build-aux/announce-gen: New file.  From coreutils.
57791
57792 2006-11-22  Jim Meyering  <jim@meyering.net>
57793
57794         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57795         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57796         (fts_read): Use a temporary to narrow the overused st_size member
57797         before using it in a switch statement.  Reported by Matthew Woehlke.
57798
57799         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57800         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57801
57802 2006-11-20  Bruno Haible  <bruno@clisp.org>
57803
57804         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57805         changequote instead of pairs of brackets.
57806         Reported by Andreas Schwab <schwab@suse.de>.
57807
57808 2006-11-21  Jim Meyering  <jim@meyering.net>
57809
57810         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57811         so as to remain compatible with older compilers.
57812         Patch from Michael Deutschmann.
57813
57814 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         * MODULES.html.sh (File system functions): Add openat.
57817
57818         * lib/openat.h (rpl_fstatat): New macro, if
57819         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57820         (fstatat): Define to rpl_fstatat under the same conditions,
57821         unless COMPILING_FSTATAT.
57822         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57823         seems to have the bug.
57824         * lib/fstatat.c: New file.
57825         * modules/openat (Files): Add it.
57826
57827 2006-11-20  Bruno Haible  <bruno@clisp.org>
57828
57829         * Makefile: New file.
57830
57831 2006-11-20  Jim Meyering  <jim@meyering.net>
57832
57833         The beginnings of syntax-related checks for gnulib.
57834         * lib/Makefile: New file.
57835         * lib/t-idcache: New script.  Ensure that the two halves of
57836         idcache.c stay in sync.
57837
57838         * lib/idcache.c: Adjust comments in user- and group- portions to
57839         be more accurate, and to be consistent with one another.
57840
57841 2006-11-20  Jim Meyering  <jim@meyering.net>
57842
57843         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57844         continue using the flexible array member (thus, this module performs
57845         half as many malloc calls), with the addition that...
57846         (getgroup, getuser): Consistently record a non-match via an empty
57847         "name" string, and map an empty string match to a NULL return value.
57848         * modules/idcache (Depends-on): Re-add flexmember.
57849
57850         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57851         (getuidbyname, getgroup, getgidbyname): Likewise.
57852
57853         Use cleaner syntax: NULL rather than 0.
57854         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57855
57856 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57859         It mishandled the case where the group was missing.
57860         Problem reported by Greg Schafer.
57861         * modules/idcache: Likewise.
57862
57863 2006-11-18  Jim Meyering  <jim@meyering.net>
57864
57865         * check-module (%exempt_header): Add exception for some
57866         conditionally-included headers.
57867
57868         * modules/i-ring (Depends-on): Add verify.
57869         (License): Change to LGPL.
57870
57871 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57874         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57875         and inttostr.h.  Use snprintf rather than uinttostr, so that
57876         LGPLed code doesn't depend on GPLed.
57877
57878 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * modules/inline (License): Change from GPL to LGPL.
57881
57882 2006-11-17  Jim Meyering  <jim@meyering.net>
57883
57884         * modules/d-type (License): Switch to LGPL.
57885
57886 2006-11-15  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57889
57890 2006-11-15  Eric Blake  <ebb9@byu.net>
57891
57892         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57893         the module dependency.
57894
57895 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57896             Bruno Haible  <bruno@clisp.org>
57897
57898         * gnulib-tool (func_create_testdir): Add license consistency check.
57899
57900 2006-11-15  Eric Blake  <ebb9@byu.net>
57901
57902         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57903         random "(cached)" in configure output.
57904
57905 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57906
57907         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57908         test for conforming inttypes.h is both announced and cached.
57909
57910         * MODULES.html.sh (seen_modules, seen_files): New variables.
57911         (func_module): Rewrite to use a few less gnulib-tool and sed
57912         invocations.  Avoid a couple of quadratic algorithms for ...
57913         (missed_modules, missed_files): ... these, with ...
57914         (func_append, func_tmpdir): ... these new functions, from
57915         gnulib-tool.  Analogously, install traps for cleanup.
57916
57917         * tests/test-gc.c (main): Remove unused variables.
57918         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57919
57920 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57921
57922         * modules/inttostr (License): Change to LGPL.
57923
57924 2006-11-14  Eric Blake  <ebb9@byu.net>
57925
57926         * modules/tempname (License): Change to LGPL.
57927
57928 2006-11-14  Eric Blake  <ebb9@byu.net>
57929
57930         * doc/functions.texi (Function Portability): *printf functions on
57931         Cygwin now understand all POSIX size specifiers.
57932
57933 2006-11-14  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/c-ctype (License): Change to LGPL.
57936
57937 2006-11-12  Bruno Haible  <bruno@clisp.org>
57938
57939         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57940         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57941         for GNOME libraries, for which the include files are installed in
57942         subdirectories of $prefix/include.
57943
57944 2006-11-12  Bruno Haible  <bruno@clisp.org>
57945
57946         * m4/lib-link.m4: Require at least autoconf-2.54.
57947         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57948         name to underscores for the --with option.
57949
57950 2006-11-13  Bruno Haible  <bruno@clisp.org>
57951
57952         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57953         the tests directory.
57954         Reported by Ralf Wildenhues.
57955
57956 2006-11-13  Bruno Haible  <bruno@clisp.org>
57957
57958         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57959         (func_emit_initmacro_end): Undo the override here.
57960         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57961         Works around the famous automake error in coreutils.
57962
57963 2006-11-13  Eric Blake  <ebb9@byu.net>
57964
57965         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57966         element, not its node.
57967
57968 2006-11-12  Bruno Haible  <bruno@clisp.org>
57969
57970         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57971         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57972
57973 2006-11-12  Bruno Haible  <bruno@clisp.org>
57974
57975         * gnulib-tool: New option --local-symlink.
57976         (func_usage): Document it.
57977         (lsymbolic): New variable.
57978         (func_import, func_create_testdir): If --symlink was not specified,
57979         test whether --local-symlink was specified and the file comes from
57980         the local_gnulib_dir.
57981
57982 2006-11-12  Bruno Haible  <bruno@clisp.org>
57983
57984         * gnulib-tool (func_ln): New function.
57985         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57986
57987 2006-11-12  Bruno Haible  <bruno@clisp.org>
57988
57989         Finish support for source files in subdirectories.
57990         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57991         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57992         AUTOMAKE_OPTIONS.
57993         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57994
57995 2006-11-12  Bruno Haible  <bruno@clisp.org>
57996
57997         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57998         EXTRA_lib_SOURCES augmentation.
57999         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58000
58001 2006-11-12  Jim Meyering  <jim@meyering.net>
58002
58003         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58004         file descriptors.  This also averts a failure on systems with
58005         native openat support when a traversed directory lacks "x" access.
58006         * lib/fts_.h: Include "i-ring.h"
58007         (struct FTS) [fts_fd_ring]: New member.
58008         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58009         (FCHDIR): Add parentheses.
58010         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58011         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58012         When descending, rather than simply closing the previous
58013         fts_cwd_fd value, push that file descriptor onto the ring.
58014         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58015         (fts_open): Initialize the new fd_ring member.
58016         (fts_close): Clear the ring.
58017         (fts_safe_changedir): When possible, use our new fd_ring to skip
58018         the diropen and fstat and dev/ino comparison that would normally
58019         accompany a virtual `chdir ("..")'.
58020
58021         * modules/fts (Depends-on): Add i-ring.
58022         * modules/i-ring: New module.
58023         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58024         * m4/i-ring.m4: New file.
58025
58026 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58027
58028         * gnulib-tool (func_create_testdir): Fix replacement of
58029         `build-aux' in configure.ac.  Run autotools in gltests
58030         subdirectory.
58031         (func_create_testdir, func_create_megatestdir, test): There is
58032         no need for '--force' in most autotool invocations in a new
58033         tree.  Actually fail the whole test if any of the tools, or the
58034         configure or make stages fail.
58035
58036         Sync from Automake.
58037         * build-aux/gnupload: Revert last change.  Add pointer to upload
58038         instructions of the GNU Maintenance Instructions.
58039         Suggestion by Karl Berry.
58040
58041 2006-11-10  Jim Meyering  <jim@meyering.net>
58042
58043         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58044
58045 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58048         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58049         (bind_textdomain_codeset) [! ENABLE_NLS]:
58050         Evaluate all the arguments.  That way, callers get compatible behavior
58051         if the arguments have side effects.  Also, it avoids some GCC
58052         diagnostics in some cases; Joel E. Denny reported problems when Bison
58053         was configured with --enable-gcc-warnigs.
58054
58055 2006-11-10  Jim Meyering  <jim@meyering.net>
58056
58057         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58058         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58059         account.
58060
58061 2006-11-10  Jim Meyering  <jim@meyering.net>
58062
58063         * modules/inline: New file/module.
58064         * modules/xalloc (Files): Remove m4/inline.m4.
58065         (Depends-on): Add inline, instead.
58066         * modules/oset: Likewise.
58067         * modules/list: Likewise.
58068
58069 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58072         Problem reported by Matthew Woehlke.
58073
58074 2006-11-09  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/tempname.c (gen_tempname): Remove variant that invokes
58077         __gen_tempname.
58078         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58079         __gen_tempname.
58080
58081 2006-11-08  Bruno Haible  <bruno@clisp.org>
58082
58083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58084         to 'yes' instead of 'cross-compiling'.
58085
58086 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * lib/quotearg.h (quotearg_free): New decl.
58089         * lib/quotearg.c (quotearg_free): New function.
58090         (slot0, nslots, slotvec0, slotvec):
58091         Now file-scope so that quotearg_free can get at them.
58092
58093 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58094
58095         Sync from Automake.
58096         * build-aux/gnupload: Add missing 'gnu' to example URL.
58097         Report by Karl Berry.
58098
58099 2006-11-08  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58102         Suggested by Paul Eggert.
58103
58104 2006-11-08  Jim Meyering  <jim@meyering.net>
58105
58106         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58107         It's already included if !_LIBC.
58108         (fts_safe_changedir): Add a comment.
58109
58110 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58113         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58114         Matthew Woehlke.
58115
58116         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58117         definitions up, to avoid colliding with change below.
58118         (static_inline) [HAVE_INLINE]: New macro.
58119         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58120         Provide extern decls when !HAVE_INLINE.  Do not define unless
58121         static_inline is defined, either by us or by xmalloc.c.  Use
58122         static_inline rather than static inline.
58123         (XCALLOC): Optimize sizeof(T) = 1 case.
58124         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58125
58126 2006-11-07  Bruno Haible  <bruno@clisp.org>
58127
58128         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58129         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58130         AC_C_INLINE.
58131         * modules/xalloc (Files): Add m4/inline.m4.
58132
58133 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58134
58135         * README: Fix typo.
58136         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58137         (Miscellanous Notes): ...from this.
58138
58139 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58142         Mention that offsetof should be used instead of sizeof.
58143         From Bruno Haible.
58144
58145 2006-11-07  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58148
58149 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58152         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58153         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58154         (gl_tree_add_before, gl_tree_add_after):
58155         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58156         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58157         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58158         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58159         (gl_linked_add_after, gl_linked_add_at): Likewise.
58160         * lib/gl_anyrbtree_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): Likewise.
58163         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58164         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58165         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58166
58167 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58168
58169         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58170
58171 2006-11-06  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/inline.m4: New file.
58174         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58175         * modules/list (Files): Add m4/inline.m4.
58176         * modules/oset (Files): Likewise.
58177
58178 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58179
58180         * lib/idcache.c: Include <stddef.h>, for offsetof.
58181         (struct userid.name): Change from char * to a flexible array member.
58182         All uses changed.
58183         * modules/idcache (Depends-on): Add flexmember.
58184
58185         * MODULES.html.sh (Core language properties): New module flexmember.
58186         * modules/flexmember, m4/flexmember.m4: New files.
58187
58188         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58189         inline functions that are identical with the old xnmalloc_inline,
58190         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58191         that we can avoid some unnecessary integer multiplications and
58192         divisions in the common case where the element size is known at
58193         compile time.
58194         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58195         needed.
58196         (xnboundedmalloc): Remove.
58197         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58198         arguments, for consistency with rest of this header.
58199         (xcharalloc): Rewrite using XNMALLOC.
58200         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58201         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58202         versions have been moved to lib/xalloc.h and renamed to be the
58203         non-*_inline versions.
58204         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58205         and xnrealloc functions, since those functions are now inline and
58206         now call us.
58207         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58208         renaming described above.
58209         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58210         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58211         captures the dependency in AC_C_INLINE.
58212
58213         New module canonicalize-lgpl, proposed by Charles Wilson in
58214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58215         with a few small changes afterwards.
58216         * MODULES.html.sh (File system functions): New module
58217         canonicalize-lgpl.
58218         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58219         and canonicalize_file_name.
58220         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58221         * modules/canonicalize-lgpl: New files.
58222
58223 2006-11-05  Bruno Haible  <bruno@clisp.org>
58224
58225         * gnulib-tool (func_import, func_create_testdir): Create directories
58226         also for files in subdirectories of lib/.
58227
58228 2006-11-05  Bruno Haible  <bruno@clisp.org>
58229
58230         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58231         ANSI C compliant.
58232
58233 2006-11-03  Bruno Haible  <bruno@clisp.org>
58234
58235         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58236         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58237         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58238         (xnboundedmalloc): New inline function.
58239         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58240         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58241         xmalloc.
58242         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58243         xmalloc.
58244         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58245         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58246         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58247         xmalloc.
58248         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58249         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58250         xmalloc.
58251         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58252         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58253         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58254         xmalloc.
58255         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58256         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58257         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58258         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58259         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58260         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58261         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58262
58263 2006-11-03  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/c-ctype.h [C++]: Define functions without name mangling.
58266         * lib/fwriteerror.h [C++]: Likewise.
58267         * lib/gcd.h [C++]: Likewise.
58268         * lib/linebreak.h [C++]: Likewise.
58269
58270 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58271
58272         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58273         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58274         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58275         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58276         Check for functions and headers just once.
58277         Check for declaration of canonicalize_file_name.
58278         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58279
58280 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58281
58282         * gnulib-tool (func_import): Fix typo in actioncmd.
58283
58284 2006-11-02  Bruno Haible  <bruno@clisp.org>
58285
58286         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58287         newline sequence in the Makefile.am snippet as a space, like "make"
58288         does.
58289         Reported by Roger Persson <perrog@gmail.com>.
58290
58291 2006-11-01  Bruno Haible  <bruno@clisp.org>
58292
58293         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58294         already declared in <string.h>.
58295         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58296
58297 2006-11-01  Bruno Haible  <bruno@clisp.org>
58298
58299         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58300         * lib/strcase.h: Include <string.h>.
58301         (strcasecmp): Define to rpl_strcasecmp here.
58302
58303 2006-11-01  Bruno Haible  <bruno@clisp.org>
58304
58305         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58306
58307 2006-11-01  Eric Blake  <ebb9@byu.net>
58308
58309         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58310
58311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58312
58313 2006-10-29  Bruno Haible  <bruno@clisp.org>
58314
58315         Make it compile in C++ mode.
58316         * lib/full-write.c (full_rw): Add a cast.
58317
58318 2006-11-01  Bruno Haible  <bruno@clisp.org>
58319
58320         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58321         be POSIX compliant.
58322         Reported by Roger Persson <perrog@gmail.com>.
58323
58324 2006-11-01  Eric Blake  <ebb9@byu.net>
58325
58326         * lib/getopt_.h: Fix comments.
58327
58328 2006-10-31  Eric Blake  <ebb9@byu.net>
58329
58330         * modules/tmpdir (Depends-on): Add sys_stat.
58331         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58332         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58333         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58334         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58335         tempname.
58336
58337 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58338
58339         Avoid some C++ diagnostics reported by Bruno Haible.
58340         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58341         xmalloc.
58342         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58343         (struct slotvec): Move to top level.
58344         (quotearg_n_options): Rewrite to avoid xmalloc.
58345         * lib/xalloc.h (xcharalloc): New function.
58346         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58347         [defined __cplusplus]: Add function template that provides result
58348         type propagation.  This part of the change is from Bruno Haible.
58349
58350 2006-10-29  Bruno Haible  <bruno@clisp.org>
58351
58352         Make it compile in C++ mode.
58353         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58354         * lib/strnlen1.c (strnlen1): Cast memchr result.
58355         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58356         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58357         (create_temp_dir): Rename local variable 'template'.
58358         (compile_csharp_using_sscli): Add cast.
58359         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58360         * lib/findprog.c (find_in_path): Likewise.
58361         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58362         * lib/wait-process.c (register_slave_subprocess): Likewise.
58363
58364 2006-10-22  Bruno Haible  <bruno@clisp.org>
58365
58366         * modules/tsearch: New file.
58367         * lib/tsearch.h: New file.
58368         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58369         * m4/tsearch.m4: New file.
58370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58371
58372 2006-10-29  Eric Blake  <ebb9@byu.net>
58373
58374         * lib/arcfour.c: Assume config.h.
58375         * lib/arctwo.c: Likewise.
58376         * lib/base64.c: Likewise.
58377         * lib/check-version.c: Likewise.
58378         * lib/crc.c: Likewise.
58379         * lib/des.c: Likewise.
58380         * lib/gc-gnulib.c: Likewise.
58381         * lib/gc-libgcrypt.c: Likewise.
58382         * lib/gc-pbkdf2-sha1.c: Likewise.
58383         * lib/getaddrinfo.c: Likewise.
58384         * lib/getdelim.c: Likewise.
58385         * lib/getline.c: Likewise.
58386         * lib/hmac-md5.c: Likewise.
58387         * lib/hmac-sha1.c: Likewise.
58388         * lib/iconvme.c: Likewise.
58389         * lib/md2.c: Likewise.
58390         * lib/md4.c: Likewise.
58391         * lib/memxor.c: Likewise.
58392         * lib/read-file.c: Likewise.
58393         * lib/readline.c: Likewise.
58394         * lib/rijndael-alg-fst.c: Likewise.
58395         * lib/rijndael-api-fst.c: Likewise.
58396         * lib/xgetdomainname.c: Likewise.
58397
58398 2006-10-28  Eric Blake  <ebb9@byu.net>
58399
58400         * lib/xstrndup.c: Assume config.h.
58401
58402 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58403
58404         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58405         stat-macros.h is now for our own macros, whereas stat_h is for
58406         macros in the <sys/stat.h> name space.
58407         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58408         (STAT_MACROS_H): Remove.
58409         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58410         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58411         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58412         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58413         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58414         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58415         Move these macros to ...
58416         * lib/stat_.h: here.  Don't include stat-macros.h.
58417         * lib/canonicalize.c: Don't include stat-macros.h.
58418         * lib/chown.c: Likewise.
58419         * lib/euidaccess.c: Likewise.
58420         * lib/file-type.c: Likewise.
58421         * lib/filemode.c: Likewise.
58422         * lib/glob.c: Likewise.
58423         * lib/isapipe.c: Likewise.
58424         * lib/lchown.c: Likewise.
58425         * lib/lstat.c: Likewise.
58426         * lib/mkdir-p.c: Likewise.
58427         * lib/rmdir.c: Likewise.
58428         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58430         unless mkdir isn't declared, to speed up 'configure'.
58431         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58432         would define all the S_* symbols.
58433         * modules/canonicalize (Depends-on):
58434         Depend on sys_stat, not stat-macros.
58435         * modules/chown: Likewise.
58436         * modules/euidaccess: Likewise.
58437         * modules/filemode: Likewise.
58438         * modules/file-type: Likewise.
58439         * modules/glob: Likewise.
58440         * modules/isapipe: Likewise.
58441         * modules/lchown: Likewise.
58442         * modules/lstat: Likewise.
58443         * modules/mkancesdirs: Likewise.
58444         * modules/rmdir: Likewise.
58445         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58446         * modules/modechange: Likewise.
58447         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58448         (configure.ac): Remove gl_STAT_MACROS.
58449         * modules/sys_stat (Depends-on): Remove stat-macros.
58450
58451 2006-10-27  Bruno Haible  <bruno@clisp.org>
58452
58453         * m4/signed.m4: Remove file.
58454         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58455         invocation.
58456         * modules/vasnprintf (Files): Remove m4/signed.m4.
58457
58458 2006-10-27  Bruno Haible  <bruno@clisp.org>
58459
58460         Update to GNU gettext 0.16.
58461         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58462         m4/inttypes-h.m4, m4/signed.m4.
58463         * m4/gettext.m4: Update to GNU gettext 0.16.
58464         * m4/intl.m4: New file, from GNU gettext.
58465         * m4/intldir.m4: New file, from GNU gettext.
58466         * config/srclist.txt: Update
58467
58468 2006-10-27  Eric Blake  <ebb9@byu.net>
58469
58470         * MODULES.html.sh: Document tempname.
58471         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58472         dependencies.
58473         (Files): Move lib/tempname.c...
58474         * modules/tempname: ...to this new module.
58475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58476         (gl_PREREQ_TEMPNAME): Move...
58477         * m4/tempname.m4: ...to this new file.
58478         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58479         * modules/sys_stat (Depends-on): Add stat-macros.
58480         * lib/stat_.h (includes): Pick up stat macros.
58481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58482         if stat macros are broken.
58483         * lib/tempname.c (includes): No need to include "stat-macros.h".
58484         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58485         (direxists, __path_search) [!_LIBC]: Don't compile these in
58486         gnulib; the tmpdir module covers that.
58487         * lib/tempname.h: New file.
58488
58489 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         * COPYING: Explain how gnulib-tool converts licence headers.
58492         Almost all wording by Eric Blake.
58493
58494 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * lib/mbchar.h (is_basic_table): Make read-only.
58497         * lib/mbchar.c (is_basic_table): Likewise.
58498         Reported by John Darrington.
58499
58500 2006-10-25  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/progname.h (set_program_name): Undefine before defining.
58503
58504 2006-10-25  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58507         false for non-gcc C++ compilers.
58508         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58509
58510 2006-10-24  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58513         iconv implementations like Irix iconv.
58514
58515 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58516
58517         * modules/vararrays: New file.
58518         * m4/vararrays.m4: New file, taken from diffutils.
58519         * MODULES.html.sh: New module vararrays.
58520
58521 2006-10-24  Karl Berry  <karl@gnu.org>
58522
58523         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58524         Don't call GNU Unix.
58525
58526 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58527
58528         * users.txt: Add Libtool.
58529
58530         Sync from Libtool:
58531
58532         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58535         to gnulib's policy of including config.h unconditionally.
58536
58537 2006-10-24  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/wcwidth (Files): Add m4/wint_t.m4.
58540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58541         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58542
58543 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58546         to pacify GCC with some -W flags enabled.  Problem reported by
58547         Bruno Haible.
58548
58549 2006-10-24  Jim Meyering  <jim@meyering.net>
58550
58551         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58552         Reported by Karl Berry.
58553
58554 2006-10-23  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58557
58558 2006-10-24  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/gl_list.h: Use C comment style, not C++ comment style.
58561
58562 2006-10-23  Eric Blake  <ebb9@byu.net>
58563
58564         * lib/getaddrinfo.c (includes): Add missing include.
58565
58566 2006-10-23  Bruno Haible  <bruno@clisp.org>
58567             Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         Ability to rename obstack_free.
58570         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58571         obstack_free.
58572         (obstack_free): Invoke the __obstack_free macro.
58573         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58574
58575 2006-10-23  Bruno Haible  <bruno@clisp.org>
58576             Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58579         __argc, __argv from the declaration. (They are defined as macros on
58580         mingw.)
58581
58582 2006-10-22  Bruno Haible  <bruno@clisp.org>
58583
58584         * doc/gnulib-intro.texi: New file.
58585         * doc/gnulib.texi: Include it.
58586
58587 2006-10-21  Bruno Haible  <bruno@clisp.org>
58588
58589         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58590         "Introduction", "Miscellanous Notes", "Particular Modules".
58591
58592 2006-10-21  Bruno Haible  <bruno@clisp.org>
58593
58594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58595         Change mostlyclean-local rule to avoid sh syntax error from bash
58596         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58597
58598 2006-10-23  Jim Meyering  <jim@meyering.net>
58599
58600         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58601         in place of snprintf.
58602
58603         * modules/inttostr (Files): Add lib/uinttostr.c.
58604         * lib/uinttostr.c (inttostr): New file/function.
58605         * lib/inttostr.h (uinttostr): Declare.
58606         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58607         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58608         Add uinttostr.
58609         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58610
58611 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * lib/canonicalize.c (ELOOP): Define if not already defined.
58614         Problem reported by Bruno Haible in
58615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58616
58617 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58618
58619         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58620         Problem reported by Perry Smith and Ville Laurikari.
58621
58622         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58623         uses.
58624
58625 2006-10-19  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58628         for mingw.
58629
58630 2006-10-19  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58633         Needed for mingw.
58634
58635 2006-10-19  Bruno Haible  <bruno@clisp.org>
58636
58637         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58638
58639 2006-10-19  Bruno Haible  <bruno@clisp.org>
58640
58641         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58642         it.
58643
58644 2006-10-19  Bruno Haible  <bruno@clisp.org>
58645
58646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58647         invocation.
58648
58649 2006-10-19  Bruno Haible  <bruno@clisp.org>
58650
58651         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58652         mountlist by default.
58653
58654 2006-10-16  Bruno Haible  <bruno@clisp.org>
58655
58656         * lib/c-strstr.c: Include c-strstr.h.
58657
58658 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58659
58660         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58661         in a slash.
58662
58663 2006-10-18  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/lock.h [C++]: Wrap definitions in extern "C".
58666
58667 2006-10-18  Bruno Haible  <bruno@clisp.org>
58668
58669         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58670         gl_LIBOBJS list.
58671
58672 2006-10-18  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58675
58676 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * lib/xstrtol.h: Include gettext.h.
58679         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58680         Problem reported by Eric Blake.
58681         * modules/xstrtol (Depends-on): Add gettext-h.
58682
58683 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58684
58685         * lib/strftime.c (advance): New macro.
58686         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58687         incomplete type, so you can't add 0 to it.  Problem and patch
58688         reported by Eelco Dolstra for dietlibc.
58689
58690 2006-10-18  Jim Meyering  <jim@meyering.net>
58691
58692         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58693         type for a local, and rename it: s/up/user_proc/.
58694
58695 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58696
58697         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58698         READ_UTMP_USER_PROCESS.
58699         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58700
58701 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58702
58703         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58704         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58705
58706 2006-10-17  Eric Blake  <ebb9@byu.net>
58707
58708         * lib/sigprocmask.c (sigprocmask): Fix typo.
58709
58710         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58711
58712         * modules/clean-temp (Makefile.am): Don't add to make output...
58713         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58714         config.h.
58715
58716 2006-10-17  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58719         differently if DEFAULT_TEXT_DOMAIN is set.
58720
58721 2006-10-16  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/clean-temp.c: Include fwriteerror.h.
58724
58725 2006-10-16  Bruno Haible  <bruno@clisp.org>
58726
58727         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58728
58729 2006-10-16  Bruno Haible  <bruno@clisp.org>
58730
58731         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58732         * lib/sigprocmask.h: Include <sys/types.h>.
58733         (sigset_t): Use the system's definition if present.
58734
58735 2006-10-17  Eric Blake  <ebb9@byu.net>
58736
58737         * lib/xvasprintf.c (includes): Assume config.h.
58738         * lib/xasprintf.c (includes): Likewise.
58739
58740 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58741
58742         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58743         at least as wide as intmax_t.
58744
58745 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58746
58747         (Imported from Automake.)
58748         * build-aux/gnupload: Update to version 1.1 of directive file.
58749
58750 2006-10-16  Eric Blake  <ebb9@byu.net>
58751
58752         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58753         match Automake 1.10a.
58754
58755 2006-10-14  Bruno Haible  <bruno@clisp.org>
58756
58757         * modules/sigprocmask: New file.
58758         * lib/sigprocmask.h: New file.
58759         * lib/sigprocmask.c: New file.
58760         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58761         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58762         request sigprocmask.o.
58763         (gl_PREREQ_SIGPROCMASK): New macro.
58764         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58765         (Depends-on): Add sigprocmask.
58766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58767         gt_SIGNALBLOCKING. Test for 'raise' only once.
58768         * lib/fatal-signal.c: Include sigprocmask.h.
58769         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58770         unblock_fatal_signals): Define always.
58771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58772         sigprocmask.
58773
58774 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         Sync from Automake.
58777         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58778         which incorrectly sets the mode of an existing destination
58779         directory.  In some cases the unpatched install-sh could do the
58780         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58781         system.  We hope this is rare in practice, but it's clearly worth
58782         fixing.  Problem reported by Alex Unleashed in
58783         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58784         Also, don't bother to check for -m bugs unless we're using -m;
58785         suggested by Stepan Kasal.
58786
58787 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58788
58789         Sync from Automake.
58790         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58791         `-c' flag, so they appear at the same position as in %FASTDEP%
58792         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58793         which ignores unknown options only after the first non-option.
58794         Bug report against M4 by Nelson H. F. Beebe.
58795
58796 2006-10-13  Jim Meyering  <jim@meyering.net>
58797
58798         Fix a bug in yesterday's change.
58799         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58800         p->fts_statp->st_dev would be used uninitialized.
58801         Ensures that we always call fts_stat on the very first entry.
58802         Miklos Szeredi reported that find -xdev stopped working.
58803
58804 2006-10-12  Bruno Haible  <bruno@clisp.org>
58805
58806         * gnulib-tool (func_get_automake_snippet): Append an automatically
58807         computed EXTRA_DIST augmentation.
58808         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58809         * modules/alloca-opt (Makefile.am): Likewise.
58810         * modules/allocsa (Makefile.am): Likewise.
58811         * modules/arcfour (Makefile.am): Likewise.
58812         * modules/arctwo (Makefile.am): Likewise.
58813         * modules/argmatch (Makefile.am): Likewise.
58814         * modules/argz (Makefile.am): Likewise.
58815         * modules/atexit (Makefile.am): Likewise.
58816         * modules/backupfile (Makefile.am): Likewise.
58817         * modules/byteswap (Makefile.am): Likewise.
58818         * modules/c-strtod (Makefile.am): Likewise.
58819         * modules/c-strtold (Makefile.am): Likewise.
58820         * modules/calloc (Makefile.am): Likewise.
58821         * modules/canon-host (Makefile.am): Likewise.
58822         * modules/canonicalize (Makefile.am): Likewise.
58823         * modules/chdir-long (Makefile.am): Likewise.
58824         * modules/chdir-safer (Makefile.am): Likewise.
58825         * modules/check-version (Makefile.am): Likewise.
58826         * modules/chown (Makefile.am): Likewise.
58827         * modules/cloexec (Makefile.am): Likewise.
58828         * modules/close-stream (Makefile.am): Likewise.
58829         * modules/closeout (Makefile.am): Likewise.
58830         * modules/crc (Makefile.am): Likewise.
58831         * modules/csharpexec (Makefile.am): Likewise.
58832         * modules/cycle-check (Makefile.am): Likewise.
58833         * modules/des (Makefile.am): Likewise.
58834         * modules/dev-ino (Makefile.am): Likewise.
58835         * modules/dirfd (Makefile.am): Likewise.
58836         * modules/dirname (Makefile.am): Likewise.
58837         * modules/dup2 (Makefile.am): Likewise.
58838         * modules/eealloc (Makefile.am): Likewise.
58839         * modules/error (Makefile.am): Likewise.
58840         * modules/euidaccess (Makefile.am): Likewise.
58841         * modules/exclude (Makefile.am): Likewise.
58842         * modules/exitfail (Makefile.am): Likewise.
58843         * modules/fcntl-safer (Makefile.am): Likewise.
58844         * modules/fcntl (Makefile.am): Likewise.
58845         * modules/file-type (Makefile.am): Likewise.
58846         * modules/fileblocks (Makefile.am): Likewise.
58847         * modules/filemode (Makefile.am): Likewise.
58848         * modules/filenamecat (Makefile.am): Likewise.
58849         * modules/fnmatch (Makefile.am): Likewise.
58850         * modules/fopen-safer (Makefile.am): Likewise.
58851         * modules/fpending (Makefile.am): Likewise.
58852         * modules/fprintftime (Makefile.am): Likewise.
58853         * modules/free (Makefile.am): Likewise.
58854         * modules/fsusage (Makefile.am): Likewise.
58855         * modules/ftruncate (Makefile.am): Likewise.
58856         * modules/fts (Makefile.am): Likewise.
58857         * modules/gc-arcfour (Makefile.am): Likewise.
58858         * modules/gc-des (Makefile.am): Likewise.
58859         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58860         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58861         * modules/gc-md4 (Makefile.am): Likewise.
58862         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58863         * modules/gc-sha1 (Makefile.am): Likewise.
58864         * modules/gc (Makefile.am): Likewise.
58865         * modules/getaddrinfo (Makefile.am): Likewise.
58866         * modules/getcwd (Makefile.am): Likewise.
58867         * modules/getdelim (Makefile.am): Likewise.
58868         * modules/getdomainname (Makefile.am): Likewise.
58869         * modules/getgroups (Makefile.am): Likewise.
58870         * modules/gethostname (Makefile.am): Likewise.
58871         * modules/gethrxtime (Makefile.am): Likewise.
58872         * modules/getline (Makefile.am): Likewise.
58873         * modules/getloadavg (Makefile.am): Likewise.
58874         * modules/getlogin_r (Makefile.am): Likewise.
58875         * modules/getndelim2 (Makefile.am): Likewise.
58876         * modules/getopt (Makefile.am): Likewise.
58877         * modules/getpagesize (Makefile.am): Likewise.
58878         * modules/getpass-gnu (Makefile.am): Likewise.
58879         * modules/getpass (Makefile.am): Likewise.
58880         * modules/getsubopt (Makefile.am): Likewise.
58881         * modules/gettime (Makefile.am): Likewise.
58882         * modules/gettimeofday (Makefile.am): Likewise.
58883         * modules/getugroups (Makefile.am): Likewise.
58884         * modules/getusershell (Makefile.am): Likewise.
58885         * modules/glob (Makefile.am): Likewise.
58886         * modules/group-member (Makefile.am): Likewise.
58887         * modules/hard-locale (Makefile.am): Likewise.
58888         * modules/hash (Makefile.am): Likewise.
58889         * modules/hmac-md5 (Makefile.am): Likewise.
58890         * modules/hmac-sha1 (Makefile.am): Likewise.
58891         * modules/human (Makefile.am): Likewise.
58892         * modules/idcache (Makefile.am): Likewise.
58893         * modules/imaxabs (Makefile.am): Likewise.
58894         * modules/imaxdiv (Makefile.am): Likewise.
58895         * modules/inet_ntop (Makefile.am): Likewise.
58896         * modules/inet_pton (Makefile.am): Likewise.
58897         * modules/intprops (Makefile.am): Likewise.
58898         * modules/inttostr (Makefile.am): Likewise.
58899         * modules/inttypes (Makefile.am): Likewise.
58900         * modules/isapipe (Makefile.am): Likewise.
58901         * modules/javaversion (Makefile.am): Likewise.
58902         * modules/lchmod (Makefile.am): Likewise.
58903         * modules/lchown (Makefile.am): Likewise.
58904         * modules/localcharset (Makefile.am): Likewise.
58905         * modules/long-options (Makefile.am): Likewise.
58906         * modules/lstat (Makefile.am): Likewise.
58907         * modules/malloc (Makefile.am): Likewise.
58908         * modules/mathl (Makefile.am): Likewise.
58909         * modules/mbchar (Makefile.am): Likewise.
58910         * modules/md2 (Makefile.am): Likewise.
58911         * modules/md4 (Makefile.am): Likewise.
58912         * modules/md5 (Makefile.am): Likewise.
58913         * modules/memcasecmp (Makefile.am): Likewise.
58914         * modules/memchr (Makefile.am): Likewise.
58915         * modules/memcmp (Makefile.am): Likewise.
58916         * modules/memcoll (Makefile.am): Likewise.
58917         * modules/memcpy (Makefile.am): Likewise.
58918         * modules/memmem (Makefile.am): Likewise.
58919         * modules/memmove (Makefile.am): Likewise.
58920         * modules/mempcpy (Makefile.am): Likewise.
58921         * modules/memrchr (Makefile.am): Likewise.
58922         * modules/memset (Makefile.am): Likewise.
58923         * modules/memxor (Makefile.am): Likewise.
58924         * modules/mkancesdirs (Makefile.am): Likewise.
58925         * modules/mkdir-p (Makefile.am): Likewise.
58926         * modules/mkdir (Makefile.am): Likewise.
58927         * modules/mkdtemp (Makefile.am): Likewise.
58928         * modules/mkstemp (Makefile.am): Likewise.
58929         * modules/mktime (Makefile.am): Likewise.
58930         * modules/modechange (Makefile.am): Likewise.
58931         * modules/mountlist (Makefile.am): Likewise.
58932         * modules/nanosleep (Makefile.am): Likewise.
58933         * modules/obstack (Makefile.am): Likewise.
58934         * modules/openat (Makefile.am): Likewise.
58935         * modules/pagealign_alloc (Makefile.am): Likewise.
58936         * modules/pathmax (Makefile.am): Likewise.
58937         * modules/physmem (Makefile.am): Likewise.
58938         * modules/poll (Makefile.am): Likewise.
58939         * modules/posixtm (Makefile.am): Likewise.
58940         * modules/posixver (Makefile.am): Likewise.
58941         * modules/putenv (Makefile.am): Likewise.
58942         * modules/quote (Makefile.am): Likewise.
58943         * modules/quotearg (Makefile.am): Likewise.
58944         * modules/raise (Makefile.am): Likewise.
58945         * modules/read-file (Makefile.am): Likewise.
58946         * modules/readline (Makefile.am): Likewise.
58947         * modules/readlink (Makefile.am): Likewise.
58948         * modules/readtokens (Makefile.am): Likewise.
58949         * modules/readutmp (Makefile.am): Likewise.
58950         * modules/realloc (Makefile.am): Likewise.
58951         * modules/regex (Makefile.am): Likewise.
58952         * modules/rename-dest-slash (Makefile.am): Likewise.
58953         * modules/rename (Makefile.am): Likewise.
58954         * modules/rijndael (Makefile.am): Likewise.
58955         * modules/rmdir (Makefile.am): Likewise.
58956         * modules/rpmatch (Makefile.am): Likewise.
58957         * modules/safe-read (Makefile.am): Likewise.
58958         * modules/safe-write (Makefile.am): Likewise.
58959         * modules/same-inode (Makefile.am): Likewise.
58960         * modules/same (Makefile.am): Likewise.
58961         * modules/save-cwd (Makefile.am): Likewise.
58962         * modules/savedir (Makefile.am): Likewise.
58963         * modules/setenv (Makefile.am): Likewise.
58964         * modules/settime (Makefile.am): Likewise.
58965         * modules/sha1 (Makefile.am): Likewise.
58966         * modules/sig2str (Makefile.am): Likewise.
58967         * modules/snprintf (Makefile.am): Likewise.
58968         * modules/stat-macros (Makefile.am): Likewise.
58969         * modules/stat-time (Makefile.am): Likewise.
58970         * modules/stdbool (Makefile.am): Likewise.
58971         * modules/stdint (Makefile.am): Likewise.
58972         * modules/stdlib-safer (Makefile.am): Likewise.
58973         * modules/stpcpy (Makefile.am): Likewise.
58974         * modules/stpncpy (Makefile.am): Likewise.
58975         * modules/strcase (Makefile.am): Likewise.
58976         * modules/strcasestr (Makefile.am): Likewise.
58977         * modules/strchrnul (Makefile.am): Likewise.
58978         * modules/strcspn (Makefile.am): Likewise.
58979         * modules/strdup (Makefile.am): Likewise.
58980         * modules/strerror (Makefile.am): Likewise.
58981         * modules/strftime (Makefile.am): Likewise.
58982         * modules/strndup (Makefile.am): Likewise.
58983         * modules/strnlen (Makefile.am): Likewise.
58984         * modules/strpbrk (Makefile.am): Likewise.
58985         * modules/strsep (Makefile.am): Likewise.
58986         * modules/strstr (Makefile.am): Likewise.
58987         * modules/strtod (Makefile.am): Likewise.
58988         * modules/strtoimax (Makefile.am): Likewise.
58989         * modules/strtok_r (Makefile.am): Likewise.
58990         * modules/strtol (Makefile.am): Likewise.
58991         * modules/strtoll (Makefile.am): Likewise.
58992         * modules/strtoul (Makefile.am): Likewise.
58993         * modules/strtoull (Makefile.am): Likewise.
58994         * modules/strtoumax (Makefile.am): Likewise.
58995         * modules/strverscmp (Makefile.am): Likewise.
58996         * modules/sys_socket (Makefile.am): Likewise.
58997         * modules/sys_stat (Makefile.am): Likewise.
58998         * modules/sysexits (Makefile.am): Likewise.
58999         * modules/time_r (Makefile.am): Likewise.
59000         * modules/timegm (Makefile.am): Likewise.
59001         * modules/timespec (Makefile.am): Likewise.
59002         * modules/tmpfile-safer (Makefile.am): Likewise.
59003         * modules/trim (Makefile.am): Likewise.
59004         * modules/unistd-safer (Makefile.am): Likewise.
59005         * modules/unlinkdir (Makefile.am): Likewise.
59006         * modules/unlocked-io (Makefile.am): Likewise.
59007         * modules/userspec (Makefile.am): Likewise.
59008         * modules/utime (Makefile.am): Likewise.
59009         * modules/utimecmp (Makefile.am): Likewise.
59010         * modules/utimens (Makefile.am): Likewise.
59011         * modules/vasnprintf (Makefile.am): Likewise.
59012         * modules/vasprintf (Makefile.am): Likewise.
59013         * modules/vsnprintf (Makefile.am): Likewise.
59014         * modules/xalloc (Makefile.am): Likewise.
59015         * modules/xgetcwd (Makefile.am): Likewise.
59016         * modules/xnanosleep (Makefile.am): Likewise.
59017         * modules/xreadlink (Makefile.am): Likewise.
59018         * modules/xstrtod (Makefile.am): Likewise.
59019         * modules/xstrtol (Makefile.am): Likewise.
59020         * modules/xstrtold (Makefile.am): Likewise.
59021         * modules/yesno (Makefile.am): Likewise.
59022         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59023
59024 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * modules/error (Makefile.am): Distribute files through
59027         EXTRA_DIST, not lib_SOURCES.
59028
59029 2006-10-12  Eric Blake  <ebb9@byu.net>
59030
59031         * modules/error (Makefile.am): Distribute files in /lib.
59032         * modules/obstack (Makefile.am): Likewise.
59033
59034 2006-10-12  Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/acl (Makefile.am): Distribute all files in lib/ through
59037         EXTRA_DIST.
59038         * modules/arcfour (Makefile.am): Likewise.
59039         * modules/arctwo (Makefile.am): Likewise.
59040         * modules/argmatch (Makefile.am): Likewise.
59041         * modules/argz (Makefile.am): Likewise.
59042         * modules/atexit (Makefile.am): Likewise.
59043         * modules/backupfile (Makefile.am): Likewise.
59044         * modules/c-strtod (Makefile.am): Likewise.
59045         * modules/c-strtold (Makefile.am): Likewise.
59046         * modules/calloc (Makefile.am): Likewise.
59047         * modules/canon-host (Makefile.am): Likewise.
59048         * modules/canonicalize (Makefile.am): Likewise.
59049         * modules/chdir-long (Makefile.am): Likewise.
59050         * modules/chdir-safer (Makefile.am): Likewise.
59051         * modules/check-version (Makefile.am): Likewise.
59052         * modules/chown (Makefile.am): Likewise.
59053         * modules/cloexec (Makefile.am): Likewise.
59054         * modules/close-stream (Makefile.am): Likewise.
59055         * modules/closeout (Makefile.am): Likewise.
59056         * modules/crc (Makefile.am): Likewise.
59057         * modules/cycle-check (Makefile.am): Likewise.
59058         * modules/des (Makefile.am): Likewise.
59059         * modules/dirfd (Makefile.am): Likewise.
59060         * modules/dirname (Makefile.am): Likewise.
59061         * modules/dup2 (Makefile.am): Likewise.
59062         * modules/euidaccess (Makefile.am): Likewise.
59063         * modules/exclude (Makefile.am): Likewise.
59064         * modules/exitfail (Makefile.am): Likewise.
59065         * modules/fcntl-safer (Makefile.am): Likewise.
59066         * modules/file-type (Makefile.am): Likewise.
59067         * modules/fileblocks (Makefile.am): Likewise.
59068         * modules/filemode (Makefile.am): Likewise.
59069         * modules/filenamecat (Makefile.am): Likewise.
59070         * modules/fnmatch (Makefile.am): Likewise.
59071         * modules/fopen-safer (Makefile.am): Likewise.
59072         * modules/fpending (Makefile.am): Likewise.
59073         * modules/fprintftime (Makefile.am): Likewise.
59074         * modules/free (Makefile.am): Likewise.
59075         * modules/fsusage (Makefile.am): Likewise.
59076         * modules/ftruncate (Makefile.am): Likewise.
59077         * modules/fts (Makefile.am): Likewise.
59078         * modules/gc (Makefile.am): Likewise.
59079         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59080         * modules/getaddrinfo (Makefile.am): Likewise.
59081         * modules/getcwd (Makefile.am): Likewise.
59082         * modules/getdelim (Makefile.am): Likewise.
59083         * modules/getdomainname (Makefile.am): Likewise.
59084         * modules/getgroups (Makefile.am): Likewise.
59085         * modules/gethostname (Makefile.am): Likewise.
59086         * modules/gethrxtime (Makefile.am): Likewise.
59087         * modules/getline (Makefile.am): Likewise.
59088         * modules/getloadavg (Makefile.am): Likewise.
59089         * modules/getlogin_r (Makefile.am): Likewise.
59090         * modules/getopt (Makefile.am): Likewise.
59091         * modules/getpass (Makefile.am): Likewise.
59092         * modules/getpass-gnu (Makefile.am): Likewise.
59093         * modules/getsubopt (Makefile.am): Likewise.
59094         * modules/gettime (Makefile.am): Likewise.
59095         * modules/gettimeofday (Makefile.am): Likewise.
59096         * modules/getugroups (Makefile.am): Likewise.
59097         * modules/getusershell (Makefile.am): Likewise.
59098         * modules/glob (Makefile.am): Likewise.
59099         * modules/group-member (Makefile.am): Likewise.
59100         * modules/hard-locale (Makefile.am): Likewise.
59101         * modules/hash (Makefile.am): Likewise.
59102         * modules/hmac-md5 (Makefile.am): Likewise.
59103         * modules/hmac-sha1 (Makefile.am): Likewise.
59104         * modules/human (Makefile.am): Likewise.
59105         * modules/idcache (Makefile.am): Likewise.
59106         * modules/imaxabs (Makefile.am): Likewise.
59107         * modules/imaxdiv (Makefile.am): Likewise.
59108         * modules/inet_ntop (Makefile.am): Likewise.
59109         * modules/inet_pton (Makefile.am): Likewise.
59110         * modules/inttostr (Makefile.am): Likewise.
59111         * modules/isapipe (Makefile.am): Likewise.
59112         * modules/lchown (Makefile.am): Likewise.
59113         * modules/long-options (Makefile.am): Likewise.
59114         * modules/lstat (Makefile.am): Likewise.
59115         * modules/malloc (Makefile.am): Likewise.
59116         * modules/mathl (Makefile.am): Likewise.
59117         * modules/mbchar (Makefile.am): Likewise.
59118         * modules/md2 (Makefile.am): Likewise.
59119         * modules/md4 (Makefile.am): Likewise.
59120         * modules/md5 (Makefile.am): Likewise.
59121         * modules/memcasecmp (Makefile.am): Likewise.
59122         * modules/memchr (Makefile.am): Likewise.
59123         * modules/memcmp (Makefile.am): Likewise.
59124         * modules/memcoll (Makefile.am): Likewise.
59125         * modules/memcpy (Makefile.am): Likewise.
59126         * modules/memmem (Makefile.am): Likewise.
59127         * modules/memmove (Makefile.am): Likewise.
59128         * modules/mempcpy (Makefile.am): Likewise.
59129         * modules/memrchr (Makefile.am): Likewise.
59130         * modules/memset (Makefile.am): Likewise.
59131         * modules/memxor (Makefile.am): Likewise.
59132         * modules/mkancesdirs (Makefile.am): Likewise.
59133         * modules/mkdir (Makefile.am): Likewise.
59134         * modules/mkdir-p (Makefile.am): Likewise.
59135         * modules/mkdtemp (Makefile.am): Likewise.
59136         * modules/mkstemp (Makefile.am): Likewise.
59137         * modules/mktime (Makefile.am): Likewise.
59138         * modules/modechange (Makefile.am): Likewise.
59139         * modules/mountlist (Makefile.am): Likewise.
59140         * modules/nanosleep (Makefile.am): Likewise.
59141         * modules/openat (Makefile.am): Likewise.
59142         * modules/pagealign_alloc (Makefile.am): Likewise.
59143         * modules/physmem (Makefile.am): Likewise.
59144         * modules/poll (Makefile.am): Likewise.
59145         * modules/posixtm (Makefile.am): Likewise.
59146         * modules/posixver (Makefile.am): Likewise.
59147         * modules/putenv (Makefile.am): Likewise.
59148         * modules/quote (Makefile.am): Likewise.
59149         * modules/quotearg (Makefile.am): Likewise.
59150         * modules/raise (Makefile.am): Likewise.
59151         * modules/read-file (Makefile.am): Likewise.
59152         * modules/readline (Makefile.am): Likewise.
59153         * modules/readlink (Makefile.am): Likewise.
59154         * modules/readtokens (Makefile.am): Likewise.
59155         * modules/readutmp (Makefile.am): Likewise.
59156         * modules/realloc (Makefile.am): Likewise.
59157         * modules/regex (Makefile.am): Likewise.
59158         * modules/rename (Makefile.am): Likewise.
59159         * modules/rename-dest-slash (Makefile.am): Likewise.
59160         * modules/rijndael (Makefile.am): Likewise.
59161         * modules/rmdir (Makefile.am): Likewise.
59162         * modules/rpmatch (Makefile.am): Likewise.
59163         * modules/safe-read (Makefile.am): Likewise.
59164         * modules/safe-write (Makefile.am): Likewise.
59165         * modules/same (Makefile.am): Likewise.
59166         * modules/save-cwd (Makefile.am): Likewise.
59167         * modules/savedir (Makefile.am): Likewise.
59168         * modules/setenv (Makefile.am): Likewise.
59169         * modules/settime (Makefile.am): Likewise.
59170         * modules/sha1 (Makefile.am): Likewise.
59171         * modules/sig2str (Makefile.am): Likewise.
59172         * modules/snprintf (Makefile.am): Likewise.
59173         * modules/stdlib-safer (Makefile.am): Likewise.
59174         * modules/stpcpy (Makefile.am): Likewise.
59175         * modules/stpncpy (Makefile.am): Likewise.
59176         * modules/strcase (Makefile.am): Likewise.
59177         * modules/strcasestr (Makefile.am): Likewise.
59178         * modules/strchrnul (Makefile.am): Likewise.
59179         * modules/strcspn (Makefile.am): Likewise.
59180         * modules/strdup (Makefile.am): Likewise.
59181         * modules/strerror (Makefile.am): Likewise.
59182         * modules/strftime (Makefile.am): Likewise.
59183         * modules/strndup (Makefile.am): Likewise.
59184         * modules/strnlen (Makefile.am): Likewise.
59185         * modules/strpbrk (Makefile.am): Likewise.
59186         * modules/strsep (Makefile.am): Likewise.
59187         * modules/strstr (Makefile.am): Likewise.
59188         * modules/strtod (Makefile.am): Likewise.
59189         * modules/strtoimax (Makefile.am): Likewise.
59190         * modules/strtok_r (Makefile.am): Likewise.
59191         * modules/strtol (Makefile.am): Likewise.
59192         * modules/strtoll (Makefile.am): Likewise.
59193         * modules/strtoul (Makefile.am): Likewise.
59194         * modules/strtoull (Makefile.am): Likewise.
59195         * modules/strtoumax (Makefile.am): Likewise.
59196         * modules/strverscmp (Makefile.am): Likewise.
59197         * modules/time_r (Makefile.am): Likewise.
59198         * modules/timegm (Makefile.am): Likewise.
59199         * modules/tmpfile-safer (Makefile.am): Likewise.
59200         * modules/unistd-safer (Makefile.am): Likewise.
59201         * modules/unlinkdir (Makefile.am): Likewise.
59202         * modules/userspec (Makefile.am): Likewise.
59203         * modules/utime (Makefile.am): Likewise.
59204         * modules/utimecmp (Makefile.am): Likewise.
59205         * modules/utimens (Makefile.am): Likewise.
59206         * modules/vasnprintf (Makefile.am): Likewise.
59207         * modules/vasprintf (Makefile.am): Likewise.
59208         * modules/vsnprintf (Makefile.am): Likewise.
59209         * modules/xalloc (Makefile.am): Likewise.
59210         * modules/xgetcwd (Makefile.am): Likewise.
59211         * modules/xnanosleep (Makefile.am): Likewise.
59212         * modules/xreadlink (Makefile.am): Likewise.
59213         * modules/xstrtod (Makefile.am): Likewise.
59214         * modules/xstrtol (Makefile.am): Likewise.
59215         * modules/xstrtold (Makefile.am): Likewise.
59216         * modules/yesno (Makefile.am): Likewise.
59217
59218 2006-10-12  Jim Meyering  <jim@meyering.net>
59219
59220         * m4/getloadavg.m4: Revert the change below.
59221
59222         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59223         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59224         fail with a symlink, which is what coreutils' ./bootstrap now
59225         creates by default.
59226
59227 2006-10-12  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59230         mingw.
59231         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59232         MSVC and mingw explicitly.
59233
59234 2006-10-11  Simon Josefsson  <jas@extundo.com>
59235             Bruno Haible  <bruno@clisp.org>
59236
59237         Add support for multiple gnulib-tool invocations in the scope of a
59238         single configure.ac file.
59239         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59240         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59241         with the same contents as the _LIBADD variable.
59242         (func_emit_initmacro_start, func_emit_initmacro_end,
59243         func_emit_initmacro_done): New functions.
59244         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59245         gl_LIBOBJS and gl_LTLIBOBJS.
59246
59247 2006-10-11  Bruno Haible  <bruno@clisp.org>
59248
59249         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59250         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59251         autoreconf. Instead, invoke autopoint explicitly but move back the
59252         *.m4 files from gnulib.
59253
59254 2006-10-11  Bruno Haible  <bruno@clisp.org>
59255
59256         * gnulib-tool (func_usage): Make module names after --create-testdir
59257         optional.
59258         (func_create_testdir): If no module was specified, use nearly all
59259         modules.
59260
59261 2006-10-12  Jim Meyering  <jim@meyering.net>
59262
59263         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59264         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59265         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59266         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59267         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59268         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59269         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59270         (fts_set_stat_required): New function.
59271         (fts_open): Defer the calls to fts_stat, if possible or requested.
59272         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59273         into fts_stat itself.
59274         (fts_read): Perform any required (deferred) fts_stat call.
59275         (fts_build): Likewise, for the directory we're about to open and read.
59276         In the readdir loop, carefully decide whether each entry will require
59277         an eventual call to fts_stat, using dirent.d_type info if available.
59278         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59279         a command line argument into this function.  Update all callers.
59280         Map a return value of FTS_DOT to FTS_D for a command line argument.
59281         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59282         Thanks to Miklos Szeredi for his tenacity and for the initial
59283         bug report about "find" failing on a FUSE-based file system.
59284
59285         * lib/fts.c (fts_open): Use consistent indentation.
59286
59287 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59290         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59291         reported by Jim Meyering.  All uses of cache variables renamed
59292         to match Autoconf's.
59293         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59294         the other one.
59295
59296         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59297         Fix misspelling in diagnostic.
59298
59299 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59302         defined.  Problem reported by Matthew Woehlke.
59303
59304         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59305         Add support for Tandem NonStop R series.
59306         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59307         Use new macro.
59308
59309         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59310         (has_trailing_slash): Omit size arg; all callers changed.
59311         Omit 'inline', since it doesn't help performance and we'd
59312         need to configure it.
59313         Don't count //, ///, etc. as having a trailing slash.
59314         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59315         (rpl_rename_dest_slash): On failure, use rename's errno rather
59316         than (in some cases) an incorrect or junk errno.
59317         Simplify code by removing need to compute length; this does
59318         cause it to make two passes instead of one over the file name,
59319         but it's worth it.
59320
59321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59322         change, since Autoconf's version may no longer be appropriate now
59323         that we are using CVS Autoconf's version.  Add support for Tandem.
59324
59325 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59326             Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59329         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59330         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59331         gl_AC_TYPE_LONG_LONG.
59332
59333         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59334         instead of HAVE_LONG_LONG.
59335         * lib/printf-args.c (printf_fetchargs): Likewise.
59336         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59337         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59338         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59339         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59340         gl_AC_TYPE_LONG_LONG.
59341
59342 2006-10-11  Bruno Haible  <bruno@clisp.org>
59343
59344         * m4/longlong.m4: Add comments.
59345         * m4/ulonglong.m4: Likewise.
59346
59347 2006-10-10  Bruno Haible  <bruno@clisp.org>
59348
59349         Make it possible to #define stpcpy, strdup to aliases.
59350         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59351         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59352
59353 2006-10-10  Bruno Haible  <bruno@clisp.org>
59354
59355         Make it possible to #define gcd to an alias.
59356         * lib/gcd.c: Include config.h.
59357
59358 2006-10-10  Bruno Haible  <bruno@clisp.org>
59359
59360         Make it possible to #define c_isascii to an alias.
59361         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59362         defined. Undefine the macros before defining them, to avoid gcc
59363         warnings.
59364         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59365         define NO_C_CTYPE_MACROS early.
59366
59367 2006-10-10  Bruno Haible  <bruno@clisp.org>
59368
59369         Make it possible to #define set_program_name to an alias.
59370         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59371         ENABLE_RELOCATABLE early.
59372
59373 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59376         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59377         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59378         More generally, don't assume that 64-bit signed int is available
59379         if unsigned int is, and vice versa.
59380         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59381         unsigned symbols, not on their signed counterparts.
59382         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59383         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59384         (UINT64_C, UINTMAX_C):
59385         Likewise.
59386         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59387         unsigned counterparts.
59388         (Have_long_long, Unsigned): New macros.
59389         (Int): Renamed from INT.
59390         (strtoimax): Use the new macros.
59391         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59392         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59393         * modules/inttypes (inttypes.h): Substitute
59394         HAVE_UNSIGNED_LONG_LONG_INT.
59395         * modules/stdint (stdint.h): Likewise.
59396         (Files): Add m4/ulonglong.m4.
59397
59398 2006-10-10  Bruno Haible  <bruno@clisp.org>
59399
59400         Fix a gcc -Wshadow warning.
59401         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59402         to 'bucket'.
59403         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59404         gl_linked_indexof_from_to): Likewise.
59405         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59406         Likewise.
59407         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59408         Likewise.
59409         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59410         Reported by Eric Blake.
59411
59412 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59415         for NetBSD.  Problem reported by Bruno Haible.
59416
59417 2006-10-09  Jim Meyering  <jim@meyering.net>
59418
59419         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59420         Patch from Bruno Haible.
59421
59422 2006-10-09  Jim Meyering  <jim@meyering.net>
59423
59424         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59425         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59426         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59427
59428 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         Don't include <config.h> twice; this doesn't work in some cases,
59431         e.g., when config.h has "#define intmax_t long long int" and
59432         we include <config.h>, <inttypes.h>, <config.h> in that order.
59433         Problem reported by Matthew Woehlke in:
59434         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59435         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59436         * lib/fts-cycle.c: Don't include config.h.
59437         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59438         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59439         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59440         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59441         inttypes.h.
59442         * lib/xstrtoumax.c: Likewise.
59443         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59444         __strtol and the like, so that this module is more like its siblings.
59445         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59446         Remove; no longer needed now that we assume gnulib inttypes.h.
59447
59448 2006-10-08  Bruno Haible  <bruno@clisp.org>
59449
59450         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59451         option.
59452
59453 2006-10-07  Jim Meyering  <jim@meyering.net>
59454
59455         * modules/inttypes (inttypes.h): Revert what seems to have been
59456         an inadvertent part of today's change: use "|", not "/" in the
59457         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59458
59459 2006-10-07  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/sublist: New file.
59462
59463 2006-10-07  Bruno Haible  <bruno@clisp.org>
59464
59465         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59466         * modules/argz (argz.h): Likewise.
59467         * modules/arpa_inet (arpa/inet.h): Likewise.
59468         * modules/byteswap (byteswap.h): Likewise.
59469         * modules/configmake (configmake.h): Likewise.
59470         * modules/fcntl (fcntl.h): Likewise.
59471         * modules/fnmatch (fnmatch.h): Likewise.
59472         * modules/getopt (getopt.h): Likewise.
59473         * modules/glob (glob.h): Likewise.
59474         * modules/inttypes (inttypes.h): Likewise.
59475         * modules/netinet_in (netinet/in.h): Likewise.
59476         * modules/poll (poll.h): Likewise.
59477         * modules/stdbool (stdbool.h): Likewise.
59478         * modules/stdint (stdint.h): Likewise.
59479         * modules/sys_select (sys/select.h): Likewise.
59480         * modules/sys_socket (sys/socket.h): Likewise.
59481         * modules/sys_stat (sys/stat.h): Likewise.
59482         * modules/sysexits (sysexits.h): Likewise.
59483         * modules/unistd (unistd.h): Likewise.
59484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59485         Add a "DO NOT EDIT" comment to the generated file.
59486         (func_import): Likewise for gnulib-comp.m4.
59487
59488 2006-10-07  Bruno Haible  <bruno@clisp.org>
59489
59490         * lib/gl_sublist.h: New file.
59491         * lib/gl_sublist.c: New file.
59492
59493 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59496         name (relative to the original working directory) and the file
59497         name component (relative to the temporary working directory).  All
59498         callers changed.
59499         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59500         * lib/mkdir-p.c (make_dir_parents): Likewise.
59501         * lib/mkdir-p.h (make_dir_parents): Likewise.
59502
59503 2006-10-06  Eric Blake  <ebb9@byu.net>
59504
59505         Define several macros for use by the clean-temp module.
59506         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59507         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59509
59510         * lib/clean-temp.h (close_stream_temp): New declaration.
59511         * lib/clean-temp.c (includes): Pull in headers according to what
59512         other modules are in use.
59513         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59514
59515 2006-10-06  Bruno Haible  <bruno@clisp.org>
59516
59517         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59518         instead of fopen, fwriteerror.
59519
59520 2006-10-06  Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59523         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59524         int.
59525         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59526         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59527         Return an error indicator.
59528         Suggested by Eric Blake.
59529
59530 2006-10-06  Bruno Haible  <bruno@clisp.org>
59531
59532         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59533         Reported by Eric Blake.
59534
59535 2006-10-06  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/closeout (Description): Mention stderr too.
59538
59539 2006-10-06  Bruno Haible  <bruno@clisp.org>
59540         and Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/closeout.c (close_stdout): Also close stderr.
59543         * lib/closeout.h: Update comment.
59544
59545 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59548         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59549         * lib/dirchownmod.c: Include lchown.h.
59550         * lib/lchown.c: Don't include files that lchown.h now includes.
59551         Don't declare chown, since lchown.h now does that.
59552         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59553         (lchown): Define to rpl_chown if lchown is declared but
59554         does not exist.  Declare using a prototype if lchown is not
59555         declared.  Add a copyright notice.
59556         * lib/mkstemp.h: Include <unistd.h>.
59557         * lib/openat.c: Include lchown.h.
59558
59559         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59560         we now test for that separately.
59561         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59562         rather than O_NOFOLLOW, when testing whether it's possible to
59563         avoid a race condition reliably.
59564         * lib/savewd.c (savewd_chdir): Likewise.
59565
59566         Remove macros that are no longer needed now that stdint.h is
59567         reliable.
59568         * lib/fsusage.c (UINTMAX_MAX): Remove.
59569         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59570         * lib/utimecmp.c (SIZE_MAX): Remove.
59571
59572         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59573
59574         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59575         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59576         O_NOATIME works.
59577
59578 2006-10-05  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/gl_list.h (gl_sortedlist_search_from_to,
59581         gl_sortedlist_indexof_from_to): New declarations.
59582         (gl_list_implementation): New fields sortedlist_search_from_to,
59583         sortedlist_indexof_from_to.
59584         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59585         inline functions.
59586         * lib/gl_list.c (gl_sortedlist_search_from_to,
59587         gl_sortedlist_indexof_from_to): New functions.
59588         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59589         function.
59590         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59591         (gl_array_sortedlist_search_from_to): New function.
59592         (gl_array_list_implementation): Update.
59593         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59594         function.
59595         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59596         (gl_carray_sortedlist_search_from_to): New function.
59597         (gl_carray_list_implementation): Update.
59598         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59599         gl_linked_sortedlist_indexof_from_to): New functions.
59600         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59601         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59602         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59603         gl_tree_sortedlist_indexof_from_to): New functions.
59604         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59605         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59606         Update.
59607         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59608         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59609         Update.
59610
59611 2006-10-05  Bruno Haible  <bruno@clisp.org>
59612
59613         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59614         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59615         (struct gl_list_implementation): Add fields search_from_to,
59616         indexof_from_to. Remove fields search, indexof.
59617         (gl_list_search): Use the search_from_to method.
59618         (gl_list_search_from, gl_list_search_from_to): New functions.
59619         (gl_list_indexof): Use the indexof_from_to method.
59620         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59621         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59622         (gl_list_search_from, gl_list_search_from_to): New functions.
59623         (gl_list_indexof): Use the indexof_from_to method.
59624         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59625         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59626         gl_array_indexof. Add start_index, end_index arguments.
59627         (gl_array_search_from_to): Renamed from gl_array_search. Add
59628         start_index, end_index arguments.
59629         (gl_array_remove, gl_array_list_implementation): Update.
59630         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59631         gl_carray_indexof. Add start_index, end_index arguments.
59632         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59633         start_index, end_index arguments.
59634         (gl_carray_remove, gl_carray_list_implementation): Update.
59635         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59636         gl_linked_search. Add start_index, end_index arguments.
59637         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59638         start_index, end_index arguments.
59639         (gl_linked_remove): Update.
59640         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59641         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59642         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59643         field to 'size_t'.
59644         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59645         gl_tree_search. Add start_index, end_index arguments.
59646         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59647         start_index, end_index arguments.
59648         (gl_tree_remove): Update.
59649         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59650         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59651         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59652         function.
59653         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59654         gl_tree_search. Add start_index, end_index arguments.
59655         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59656         start_index, end_index arguments.
59657         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59658         Update.
59659         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59660
59661 2006-10-05  Bruno Haible  <bruno@clisp.org>
59662
59663         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59664
59665         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59666         fwriteerror_temp): New declarations.
59667         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59668         (descriptors): New variable.
59669         (cleanup): First, close the descriptors.
59670         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59671         fclose_temp, fwriteerror_temp): New functions.
59672
59673 2006-10-04  Jim Meyering  <jim@meyering.net>
59674
59675         * lib/fts.c (fts_open): Tiny comment change.
59676
59677 2006-10-04  Bruno Haible  <bruno@clisp.org>
59678
59679         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59680         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59681         gl_LOCK_BODY.
59682         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59683         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59684         gl_LOCK_EARLY_BODY.
59685         (gl_LOCK): Require gl_LOCK_BODY.
59686
59687 2006-10-04  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59690         (gl_oset_search_atleast): New declaration.
59691         (struct gl_oset_implementation): Add field 'search_atleast'.
59692         (gl_oset_search_atleast): New inline function.
59693         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59694         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59695         (gl_array_oset_implementation): Update.
59696         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59697         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59698         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59699
59700 2006-10-04  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59703
59704 2006-10-03  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59707         from gl_avltreehash_list_implementation.
59708
59709 2006-10-03  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/gl_oset.c (gl_oset_add): Fix return type.
59712
59713 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59714
59715         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59716
59717 2006-10-02  Eric Blake  <ebb9@byu.net>
59718
59719         * modules/strnlen (Depends-on): Add extensions.
59720
59721 2006-10-02  Eric Blake  <ebb9@byu.net>
59722
59723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59724         definition in 2.60+.
59725
59726 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59727
59728         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59729         checks.
59730
59731 2006-10-02  Bruno Haible  <bruno@clisp.org>
59732
59733         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59734         to the AUTOMAKE_OPTIONS.
59735         Reported by Jim Meyering.
59736
59737 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         Work around bug in Solaris 10 /proc file system:
59740         /proc/self/fd/NNN/.. isn't the parent directory of
59741         the directory whose file descriptor is NNN.  This needs to
59742         be worked around at run time, not compile time, since a
59743         program might be built on Solaris 8, where things work, and
59744         run on Solaris 10.
59745         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59746         to use the following interface instead:
59747         (OPENAT_BUFFER_SIZE): New macro.
59748         (openat_proc_name): New function.
59749         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59750         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59751         Likewise.
59752         * lib/openat-proc.c: New file.
59753         * modules/openat (Files): Add lib/openat-proc.c.
59754         (Depends-on): Add same-inode, stdbool.
59755         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59756
59757 2006-09-29  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59760         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59761         argument. Set stdout_closed before testing for ferror, not after.
59762         (fwriteerror, fwriteerror_no_ebadf): New functions.
59763
59764 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59765
59766         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59767
59768 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59769
59770         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59771         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59772
59773 2006-09-28  Jim Meyering  <jim@meyering.net>
59774
59775         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59776         Include <unistd.h>.
59777
59778 2006-09-28  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59781         * modules/linkedhash-list (Depends-on): Likewise.
59782         * modules/rbtreehash-list (Depends-on): Likewise.
59783
59784 2006-09-28  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/strndup.h: Simplify the redefinition of strndup.
59787         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59789
59790 2006-09-28  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59793         * lib/gl_linkedhash_list.c: Likewise.
59794         * lib/gl_rbtreehash_list.c: Likewise.
59795
59796 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59799         getaddrinfo.
59800
59801         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59802         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59803         it causes <stdio_ext.h> to cause a compile-time error.
59804         Problem reported by Nelson H. F. Beebe.
59805         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59806         of HAVE_DECL___PENDING.
59807
59808         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59809         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59810         declaration.
59811
59812 2006-09-27  Jim Meyering  <jim@meyering.net>
59813
59814         This file could end up with a definition for a function
59815         named __strndup, rather than rpl_strndup on a system with
59816         incomplete weak_alias support.
59817         * lib/strndup.c (strndup): Rename from __strndup.
59818         Remove #defines that used to map __strndup to strndup.
59819         Don't use K&R prototypes.
59820         Remove LIBC-related code, since this file is not sync'd with glibc.
59821         * lib/strndup.h: Revamp, accordingly.
59822         * m4/strndup.m4: Modernize.
59823
59824 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59825
59826         * modules/savewd (Depends-on): Add 'raise'.
59827         * lib/savewd.c: Include <signal.h>, for 'raise'.
59828
59829 2006-09-26  Jim Meyering  <jim@meyering.net>
59830
59831         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59832         when we detect Darwin 8.7.0's acl_get_file bug.
59833         Rearrange to perform the new (below) run-test while $LIBS
59834         contains any acl-related library.  Set USE_ACL at the end.
59835         (gl_ACL_GET_FILE): New function.
59836
59837 2006-09-26  Eric Blake  <ebb9@byu.net>
59838
59839         * lib/verror.c: Include <config.h> unconditionally.
59840
59841 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * modules/clock-time (Maintainer): Add self.
59844         * modules/getlogin_r (Depends-on): Add extensions.
59845
59846 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59847
59848         * modules/clock-time: New module.
59849         * modules/nanosleep (Depends-on): Add clock-time.
59850         * modules/gethrxtime (Depends-on): Likewise.
59851         * modules/gettime (Depends-on): Likewise.
59852         * modules/settime (Depends-on): Likewise.
59853
59854         * modules/fts-lgpl: Depend on openat.
59855         * modules/mkancesdirs: Depend on savewd.
59856         * modules/mkdir-p: Likewise.
59857
59858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59859
59860         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59861
59862         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59863         `gl_have_arbitrary_file_name_length_limit' to
59864         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59865         actually works between configure runs.
59866
59867 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59868             Bruno Haible  <bruno@clisp.org>
59869
59870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59871
59872 2006-09-25  Jim Meyering  <jim@meyering.net>
59873
59874         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59875         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59876
59877 2006-09-25  Eric Blake  <ebb9@byu.net>
59878
59879         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59880         exec's in 2006-09-18 patch when shuffling fds.
59881
59882 2006-09-25  Bruno Haible  <bruno@clisp.org>
59883
59884         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59885         Reported by Jim Meyering.
59886
59887 2006-09-24  Jim Meyering  <jim@meyering.net>
59888
59889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59890         compare a pointer against a literal "0".  That caused failures with
59891         at least HP-UX's hpcc.
59892
59893 2006-09-22  Simon Josefsson  <jas@extundo.com>
59894
59895         * modules/gc-sha1:
59896         * modules/gc-md4:
59897         * modules/gc-hmac-sha1:
59898         * modules/gc-hmac-md5:
59899         * modules/gc-des:
59900         * modules/gc-arcfour: Distribute more files.
59901
59902 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59903
59904         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59905         (gl_linked_iterator_from_to): Initialize struct completely.
59906         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59907         (gl_tree_iterator_from_to): Likewise
59908         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59909         * lib/gl_array_list.c [lint] (gl_array_iterator)
59910         (gl_array_iterator_from_to): Likewise.
59911         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59912         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59913         (gl_carray_iterator_from_to): Likewise.
59914
59915         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59916         * lib/md4.c (md4_process_block): Remove unused variable.
59917         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59918         parentheses for clarity.
59919
59920 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59921
59922         * modules/bison-i18n (Depends-on): Add gettext.
59923
59924 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59925
59926         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59927         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59928         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59929         also add missing comma that caused broken test.
59930         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59931         stdlib.h, for `abort'.
59932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59933         variables.
59934         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59935         include unistd.h if present, for `rmdir'.
59936         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59937         variables.
59938         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59939         in the process include standard headers for prototypes.
59940         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59941         gets declared on GNU/Linux.
59942         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59943         unistd.h, for `rmdir'.
59944         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59945
59946         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59947         always true.
59948         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59949
59950         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59951
59952 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59953
59954         * gnulib-tool (func_version): Create output all at once.  This
59955         may help avoid triggering unnecessary SIGPIPEs, and at any
59956         rate it doesn't hurt.
59957
59958 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59959             Bruno Haible  <bruno@clisp.org>
59960
59961         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59962         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59963         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59964
59965         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59966         (gl_FUNC_VASPRINTF): Invoke it.
59967
59968 2006-09-22  Bruno Haible  <bruno@clisp.org>
59969
59970         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59971         getloadavg.c as first argument.
59972
59973 2006-09-22  Bruno Haible  <bruno@clisp.org>
59974
59975         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59976         at the beginning of the gl_INIT macro.
59977         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59978         gl_GETLOADAVG.
59979
59980 2006-09-22  Bruno Haible  <bruno@clisp.org>
59981
59982         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59983         module.
59984         Suggested by Ralf Wildenhues.
59985
59986 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         Import this patch from libc:
59989
59990         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59991
59992         * lib/regex_internal.c (re_string_reconstruct): Handle
59993         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59994         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59995         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59996         re_string_context_at.
59997
59998         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59999         now requires it.
60000         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60001         gl_REGEX now does it for us.
60002         (gl_REGEX): Add test taken from
60003         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60004
60005         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60006         Check that large offsets work.  Modernize Autoconf usages.
60007         Prefer "yes" to mean a good thing rather than a bad.
60008         Don't put "#define mkstemp" in config.h, as this might interfere
60009         with standard system headers that "#define mkstemp mkstemp64".
60010
60011         * modules/mkstemp (Depends-on): Add extensions, so that
60012         mkstemp is visible on some platforms.
60013         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60014         (Include): Change to "mkstemp.h" from <stdlib.h>.
60015         (Files): Add mkstemp.h.
60016
60017         * lib/mkstemp.h: New file, since some standard headers
60018         #define mkstemp.
60019         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60020         Include "mkstemp.h".
60021         Make the _LIBC code resemble glibc original more,
60022         e.g., use K&R style.
60023         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60024         (mkstemp): Remove, since mkstemp.h does this for us.
60025         * lib/stdlib--.h: Include mkstemp.h.
60026
60027         Import this patch from libc:
60028
60029         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60030
60031         * lib/tempname.c (__gen_tempname): Change attempts_min
60032         into a macro.  Use preprocessor to decide how to initialize
60033         attempts [Coverity CID 67].
60034
60035 2006-09-20  Bruno Haible  <bruno@clisp.org>
60036
60037         * lib/mkdtemp.c: Import from libc.
60038         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60039                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60040                 attempts_min into a macro.  Use preprocessor to decide how to
60041                 initialize attempts [Coverity CID 67].
60042         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60043                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60044                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60045
60046 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60047
60048         * gnulib-tool (func_exit): New function, to allow to pass the
60049         exit status portably through the trap.  Use everywhere.
60050         (--help, --version): Signal a write error.
60051         (trap): catch SIGPIPE, for write errors.
60052         Exit at the end of the trap, with the correct exit status.
60053
60054 2006-09-19  Karl Berry  <karl@gnu.org>
60055
60056         * doc/gnulib.texi: note about the license texinfo files.
60057
60058 2006-09-19  Eric Blake  <ebb9@byu.net>
60059
60060         * gnulib-tool: Avoid space-tab.
60061
60062 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60063
60064         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60065         that prevented coreutils 6.1 from building.  Problem reported
60066         by Petter Reinholdtsen.
60067
60068 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         * gnulib-tool (avoidlist): Fix typo that broke options like
60071         --avoid=lock that are used by coreutils bootstrap.
60072
60073 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60074
60075         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60076         more systematically.
60077
60078 2006-09-18  Jim Meyering  <jim@meyering.net>
60079
60080         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60081
60082 2006-09-18  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60085
60086 2006-09-18  Bruno Haible  <bruno@clisp.org>
60087
60088         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60089         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60090         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60091         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60092         * m4/gettext.m4: Require autoconf >= 2.52.
60093         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60094         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60095         of gl_cv_header_inttypes_h.
60096
60097 2006-09-18  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/javaversion.c: Include configmake.h.
60100
60101 2006-09-18  Bruno Haible  <bruno@clisp.org>
60102
60103         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60104         avoid that the while loops be executed in a subshell.
60105
60106 2006-09-18  Bruno Haible  <bruno@clisp.org>
60107
60108         * MODULES.html.sh (func_module): Break long lines.
60109         Suggested by Bruce Korb <bkorb@gnu.org>.
60110
60111 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60112
60113         Speed up by a factor of 1.12.
60114         * gnulib-tool (nl): New variable.
60115         (func_import): Rewrite include directive extraction to only read each
60116         directive once.
60117
60118 2006-09-17  Bruno Haible  <bruno@clisp.org>
60119
60120         * modules/javaversion (Makefile.am): Remove DEFS setting.
60121         (Depends-on): Add configmake, for PKGDATADIR definition.
60122
60123 2006-09-17  Bruno Haible  <bruno@clisp.org>
60124
60125         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60126
60127 2006-09-17  Bruno Haible  <bruno@clisp.org>
60128
60129         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60130         (func_modules_transitive_closure, func_modules_add_dummy,
60131         func_modules_to_filelist, func_import, func_create_testdir,
60132         func_create_megatestdir, ...): Use it wherever possible.
60133         Suggested by Ralf Wildenhues.
60134
60135 2006-09-16  Karl Berry  <karl@gnu.org>
60136
60137         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60138         to avoid sectioning errors.
60139         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60140         [ifinfo]: blank line after @center-ed titles.
60141         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60142         Spell FSF address consistently with others.
60143         (These changes approved by rms.)
60144
60145 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60146
60147         Speed up by a factor of 1.61.
60148         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60149         already checked module names again.
60150
60151 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60152
60153         Speed up by a factor of 1.13.
60154         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60155         for new_files, and the input to func_add_or_update.
60156
60157 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60158
60159         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60160         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60161
60162 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * modules/mkancesdirs (Depends-on): Add fcntl.
60165         * modules/savewd: New file.
60166         * MODULES.html.sh (File system functions): Add savewd.
60167
60168         * modules/configmake (Makefile.am): Add support for the
60169         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60170
60171 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60172
60173         * m4/savewd.m4: New file.
60174
60175 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60178         (dirchownmod): New arg FD.  All callers changed.
60179         Use FD rather than opening the directory ourself, as opening is
60180         now the caller's responsibility.
60181         * lib/dirchownmod.h: Likewise.
60182         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60183         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60184         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60185         (test_dir): Remove.
60186         (mkancesdirs): Return length of prefix of FILE that has already
60187         been made, or -2 if there is a child doing the work.  Redo
60188         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60189         ".", and treat ".." specially since it might stray back into
60190         already-created areas.  Use a subprocess if necessary.  New arg
60191         WD; all users changed.  MAKE_DIR function should now return 1
60192         if it creates a directory that is not readable.  Return -2 if
60193         a child process is spun off.
60194         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60195         Adjust signature to match code.
60196         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60197         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60198         all users changed.
60199         * lib/savewd.c, lib/savewd.h: New files.
60200
60201 2006-09-15  Jim Meyering  <jim@meyering.net>
60202
60203         * modules/rename-dest-slash: New module.
60204         * MODULES.html.sh (posix_compat): Add it here.
60205
60206         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60207
60208 2006-09-15  Jim Meyering  <jim@meyering.net>
60209
60210         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60211         file.
60212
60213         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60214
60215 2006-09-15  Jim Meyering  <jim@meyering.net>
60216
60217         * lib/rename-dest-slash.c (has_trailing_slash): Use
60218         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60219         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60220         test before testing whether SRC is a directory.
60221         Suggestions from Bruno Haible.
60222
60223         Avoid a warning about an unused variable.
60224         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60225         into the #ifdef block where it's used.
60226
60227         * lib/rename-dest-slash.c: New file.
60228
60229 2006-09-14  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/allocsa.c: Include <config.h> unconditionally.
60232         * lib/asnprintf.c: Likewise.
60233         * lib/asprintf.c: Likewise.
60234         * lib/c-strcasecmp.c: Likewise.
60235         * lib/c-strcasestr.c: Likewise.
60236         * lib/c-strncasecmp.c: Likewise.
60237         * lib/c-strstr.c: Likewise.
60238         * lib/classpath.c: Likewise.
60239         * lib/clean-temp.c: Likewise.
60240         * lib/concatpath.c: Likewise.
60241         * lib/copy-file.c: Likewise.
60242         * lib/csharpcomp.c: Likewise.
60243         * lib/csharpexec.c: Likewise.
60244         * lib/execute.c: Likewise.
60245         * lib/fatal-signal.c: Likewise.
60246         * lib/findprog.c: Likewise.
60247         * lib/fwriteerror.c: Likewise.
60248         * lib/gl_array_list.c: Likewise.
60249         * lib/gl_array_oset.c: Likewise.
60250         * lib/gl_avltree_list.c: Likewise.
60251         * lib/gl_avltree_oset.c: Likewise.
60252         * lib/gl_avltreehash_list.c: Likewise.
60253         * lib/gl_carray_list.c: Likewise.
60254         * lib/gl_linked_list.c: Likewise.
60255         * lib/gl_linkedhash_list.c: Likewise.
60256         * lib/gl_list.c: Likewise.
60257         * lib/gl_oset.c: Likewise.
60258         * lib/gl_rbtree_list.c: Likewise.
60259         * lib/gl_rbtree_oset.c: Likewise.
60260         * lib/gl_rbtreehash_list.c: Likewise.
60261         * lib/imaxabs.c: Likewise.
60262         * lib/imaxdiv.c: Likewise.
60263         * lib/javacomp.c: Likewise.
60264         * lib/javaexec.c: Likewise.
60265         * lib/javaversion.c: Likewise.
60266         * lib/linebreak.c: Likewise.
60267         * lib/localcharset.c: Likewise.
60268         * lib/lock.c: Likewise.
60269         * lib/mbchar.c: Likewise.
60270         * lib/mbswidth.c: Likewise.
60271         * lib/mkdtemp.c: Likewise.
60272         * lib/pipe.c: Likewise.
60273         * lib/printf-args.c: Likewise.
60274         * lib/printf-parse.c: Likewise.
60275         * lib/progname.c: Likewise.
60276         * lib/progreloc.c: Likewise.
60277         * lib/readlink.c: Likewise.
60278         * lib/sh-quote.c: Likewise.
60279         * lib/stpcpy.c: Likewise.
60280         * lib/stpncpy.c: Likewise.
60281         * lib/strcasecmp.c: Likewise.
60282         * lib/strcasestr.c: Likewise.
60283         * lib/strcspn.c: Likewise.
60284         * lib/striconv.c: Likewise.
60285         * lib/strncasecmp.c: Likewise.
60286         * lib/strnlen1.c: Likewise.
60287         * lib/strstr.c: Likewise.
60288         * lib/strtok_r.c: Likewise.
60289         * lib/tls.c: Likewise.
60290         * lib/tmpdir.c: Likewise.
60291         * lib/unicodeio.c: Likewise.
60292         * lib/unsetenv.c: Likewise.
60293         * lib/vasnprintf.c: Likewise.
60294         * lib/vasprintf.c: Likewise.
60295         * lib/wait-process.c: Likewise.
60296         * lib/xallocsa.c: Likewise.
60297         * lib/xsetenv.c: Likewise.
60298         * lib/xstriconv.c: Likewise.
60299
60300 2006-09-13  Simon Josefsson  <jas@extundo.com>
60301
60302         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60303         that internally, suggested by Ralf Wildenhues
60304         <Ralf.Wildenhues@gmx.de>.
60305
60306 2006-09-13  Simon Josefsson  <jas@extundo.com>
60307
60308         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60309         @LIBOBJS@.
60310         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60311
60312 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60313
60314         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60315         longer worry about uses that don't define HAVE_CONFIG_H.
60316         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60317         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60318         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60319         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60320         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60321         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60322         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60323         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60324         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60325         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60326         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60327         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60328         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60329         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60330         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60331         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60332         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60333         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60334         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60335         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60336         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60337         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60338         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60339         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60340         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60341         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60342         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60343         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60344         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60345         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60346         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60347         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60348         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60349         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60350         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60351         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60352         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60353         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60354         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60355         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60356         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60357         Likewise.
60358
60359 2006-09-13  Eric Blake  <ebb9@byu.net>
60360
60361         * lib/getopt.c: Fix typo in last commit.
60362
60363 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60364
60365         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60366         dgettext.
60367
60368 2006-09-12  Jim Meyering  <jim@meyering.net>
60369
60370         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60371         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60372         Reported by Nelson H. F. Beebe.
60373
60374 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60375
60376         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60377         program_invocation_name and program_invocation_short_name are
60378         initialized.
60379         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60380         and program_invocation_short_name to argp.h, so they are visible
60381         to user programs.
60382         * lib/argp.h: Likewise
60383
60384 2006-09-10  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60387         m4/inttypes_h.m4, m4/uintmax_t.m4.
60388
60389 2006-09-10  Bruno Haible  <bruno@clisp.org>
60390
60391         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60392         gl_AC_TYPE_UINTMAX_T.
60393
60394 2006-09-10  Bruno Haible  <bruno@clisp.org>
60395
60396         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60397
60398 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60399
60400         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60401         convention.  Text proposed by Bruno Haible.
60402         (struct argp_option): Document the use of N_() wrappers.
60403
60404         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60405         '\v', and translate the two parts separately, instead of feeding
60406         the whole string to gettext.  This allows to exclude
60407         '\v' from the strings visible to the translator by writing doc
60408         strings as N_("..") "\v" N_("..").
60409
60410 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         * config/srclist.txt: Undo latest change; the bug was fixed.
60413
60414 2006-09-09  Bruno Haible  <bruno@clisp.org>
60415
60416         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60417         assignments if building a library without libtool.
60418         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60419         in func_emit_lib_Makefile_am.
60420         (func_import): When building a static library libfoo.a, arrange to
60421         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60422         (func_create_testdir): Likewise.
60423         * modules/gc (configure.ac, Makefile.am): If building statically,
60424         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60425         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60426         * modules/striconv (configure.ac, Makefile.am): Likewise.
60427         Based on a suggestion by Ralf Wildenhues.
60428
60429 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60432         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60433         Also:
60434
60435         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60436         Add year_2050_test to catch glibc bug 2821
60437         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60438
60439         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60440         Prefer #ifdef to #if.
60441
60442         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60443         Return from 'main' instead of calling 'exit'.
60444
60445 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60446
60447         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60448         returned the maximum time_t value rather than (time_t) -1.
60449         Problem originally reported by William Bardwell
60450         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60451
60452         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60453         Moved to here ...
60454         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60455         ... from here.
60456
60457 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60458
60459         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60460         2821 is fixed.
60461
60462 2006-09-08  Jim Meyering  <jim@meyering.net>
60463
60464         Don't make generated files read-only.  That would bother too many
60465         people.  However, do retain the ability to work when targets are
60466         read-only: remove the destination and temporary files before writing
60467         them (when generated via sed or echo), or by using the -f option for
60468         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60469         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60470         * modules/byteswap, modules/configmake, modules/fcntl:
60471         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60472         * modules/localcharset, modules/netinet_in, modules/poll:
60473         * modules/stdbool, modules/stdint, modules/sys_select:
60474         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60475
60476 2006-09-08  Jim Meyering  <jim@meyering.net>
60477
60478         Avoid new build failure on FreeBSD 6.0.
60479         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60480         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60481         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60482
60483 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60484
60485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60486
60487 2006-09-07  Jim Meyering  <jim@meyering.net>
60488
60489         Fix global typo in last change: use chmod u-w, not chmod u-x.
60490         Spotted by Paul Eggert and Bruce Korb.
60491         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60492         * modules/byteswap, modules/configmake, modules/fcntl:
60493         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60494         * modules/localcharset, modules/netinet_in, modules/poll:
60495         * modules/stdbool, modules/stdint, modules/sys_select:
60496         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60497
60498 2006-09-06  Jim Meyering  <jim@meyering.net>
60499
60500         Make generated files be read-only.
60501         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60502         Ensure that each generated file is now read-only.
60503         * modules/argz: Likewise.
60504         * modules/arpa_inet: Likewise.
60505         * modules/byteswap: Likewise.
60506         * modules/configmake: Likewise.
60507         * modules/fcntl: Likewise.
60508         * modules/fnmatch: Likewise.
60509         * modules/getopt: Likewise.
60510         * modules/glob: Likewise.
60511         * modules/inttypes: Likewise.
60512         * modules/netinet_in: Likewise.
60513         * modules/poll: Likewise.
60514         * modules/stdbool: Likewise.
60515         * modules/stdint: Likewise.
60516         * modules/sys_select: Likewise.
60517         * modules/sys_socket: Likewise.
60518         * modules/sys_stat: Likewise.
60519         * modules/sysexits: Likewise.
60520         * modules/localcharset: Same as above, but continue using temporary
60521         file named "t-$@" (why different?) rather than the "$@-t" used
60522         everywhere else.
60523
60524         * modules/sysexits (Makefile.am): Replace literal occurrences
60525         of "sysexit.h" more readable, and more consistent, "$@".
60526
60527 2006-09-06  Bruno Haible  <bruno@clisp.org>
60528
60529         * modules/striconv: New file.
60530         * modules/xstriconv: New file.
60531         * MODULES.html.sh (Internationalization functions): Add striconv,
60532         xstriconv.
60533
60534 2006-09-06  Bruno Haible  <bruno@clisp.org>
60535
60536         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60537         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60538         not using libtool correctly.
60539
60540 2006-09-06  Bruno Haible  <bruno@clisp.org>
60541
60542         * lib/striconv.h: New file.
60543         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60544         iconvstring.c.
60545         * lib/xstriconv.h: New file.
60546         * lib/xstriconv.c: New file.
60547
60548 2006-09-06  Bruno Haible  <bruno@clisp.org>
60549
60550         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60551         lib_..._LDFLAGS.
60552
60553 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60554
60555         * lib/argz_.h: Sync from Libtool.
60556
60557         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60558                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60559
60560         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60561
60562 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60563
60564         * modules/trim: New file.
60565
60566 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60567
60568         * lib/trim.h: New file.
60569         * lib/trim.c: New file.
60570
60571 2006-09-05  Bruno Haible  <bruno@clisp.org>
60572
60573         * MODULES.html.sh (String handling): Add trim.
60574
60575 2006-09-04  Karl Berry  <karl@gnu.org>
60576
60577         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60578         until next release.
60579
60580 2006-09-03  Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60583         correctly.
60584
60585 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60588         not gl_GETLOADAVG.  Omit unneeded semicolons.
60589         Problems reported by Ralf Wildenhues in
60590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60591         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60592         at the end, which is the usual gnulib style.
60593
60594         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60595         of doing all the work ourselves.
60596         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60597         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60598
60599 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60602         Problem reported by Ralf Wildenhues in
60603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60604
60605         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60606         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60607
60608 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60609
60610         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60611         yesterday's patch by changing test -n to test -z.
60612
60613 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60616         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60617         the former is now obsolescent.
60618
60619         * modules/chdir-long (Depends-on): Add fcntl.
60620
60621 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60622
60623         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60624         obsolescent, and programs should use gnulib instead.
60625         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60626         but with prefixes changed.
60627
60628 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60631         or stdbool.h, because they might not exist while configuring.
60632
60633         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60634         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60635         does that for us.
60636         (O_DIRECTORY): Remove.
60637
60638 2006-08-31  Eric Blake  <ebb9@byu.net>
60639
60640         * gnulib-tool: Don't let emacs change spaces to TAB.
60641
60642 2006-08-31  Bruno Haible  <bruno@clisp.org>
60643
60644         * gnulib-tool: When calling func_import more than once, do it in a
60645         subshell.
60646         Reported by Eric Blake <ebb9@byu.net>.
60647
60648 2006-08-31  Bruno Haible  <bruno@clisp.org>
60649
60650         * gnulib-tool (nl): Remove variable.
60651         (sed_transform_lib_file): Use more robust test for config-h module.
60652         (func_import): Fix typo in 2006-08-25 patch.
60653
60654 2006-08-31  Bruno Haible  <bruno@clisp.org>
60655
60656         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60657         specified, augment Makefile.am variables instead of assigning them.
60658
60659 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60660
60661         Work around a bug in both the Linux and SunOS 64-bit kernels:
60662         nanosleep mishandles sleeps for longer than 2**31 seconds.
60663         Problem reported by Frank v Waveren in
60664         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60666         Check for nanosleep bug.
60667         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60668
60669 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60670
60671         Work around a bug in both the Linux and SunOS 64-bit kernels:
60672         nanosleep mishandles sleeps for longer than 2**31 seconds.
60673         Problem reported by Frank v Waveren in
60674         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60675         * lib/nanosleep.c (BILLION): New constant.
60676         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60677         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60678         implementation.
60679
60680 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60681
60682         * modules/nanosleep (Depends-on): Add gettime.
60683
60684 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60685         and Simon Josefsson  <jas@extundo.com>
60686         and Oskar Liljeblad  <oskar@osk.mine.nu>
60687
60688         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60689         * gnulib-tool (func_import): New license type 'unmodifiable license
60690         text'.
60691         * modules/fdl: Use it.  Longer description.
60692         * module/gpl, module/lgpl: New files.
60693
60694 2006-08-30  Jim Meyering  <jim@meyering.net>
60695
60696         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60697         shadowing the parameter.
60698
60699 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60700
60701         Sync from Libtool:
60702
60703         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60704
60705         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60706         sharing with gnulib.  Report by Eric Blake.
60707
60708 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60709
60710         * modules/isapipe: New file.
60711         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60712
60713 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60714
60715         * modules/configmake (Makefile.am): Add a comment, and omit
60716         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60717         by Bruno Haible.
60718
60719 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60720
60721         * m4/isapipe.m4: New file.
60722
60723 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * lib/isapipe.c, lib/isapipe.h: New files.
60726
60727 2006-08-29  Jim Meyering  <jim@meyering.net>
60728
60729         * modules/configmake (Makefile.am): Make configmake.h depend on
60730         Makefile.  Otherwise, a stale configmake.h could hang around.
60731
60732 2006-08-29  Eric Blake  <ebb9@byu.net>
60733
60734         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60735         resolution of upstream bug 3044.
60736
60737 2006-08-29  Bruno Haible  <bruno@clisp.org>
60738
60739         * modules/localcharset (Depends-on): Add configmake.
60740         (Makefile.am): Remove setting of LIBDIR through DEFS.
60741
60742 2006-08-29  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60745         defined.
60746
60747 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * modules/fcntl: New file.
60750         * modules/chdir-safer (Depends-on): Add fcntl.
60751         * modules/fts: Likewise.
60752         * modules/mkdir-p: Likewise.
60753
60754         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60755         This undoes the most recent change, since we're now addressing the
60756         problem in a different way.
60757
60758         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60759         into output, since the output might be called Makefile.am even
60760         if $makefile_name is something different.
60761         (func_import): Use $makefile_am rather than
60762         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60763         empty.
60764
60765         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60766
60767 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60770         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60771         recent change to stdint.m4, since we're now addressing the problem in a
60772         different way.
60773
60774 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * m4/fcntl_h.m4: New file.
60777
60778 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * lib/fcntl_.h: New file.
60781         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60782         the fcntl module.
60783         * lib/dirchownmod.c: Likewise.
60784         * lib/fts.c: Likewise.
60785
60786         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60787         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60788         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60789         just before including <inttypes.h>, to avoid circular inclusion.
60790
60791 2006-08-28  Jim Meyering  <jim@meyering.net>
60792
60793         * doc/visibility.texi: Actually read and correct the grammar of the
60794         sentence affected by yesterday's change.
60795
60796 2006-08-28  Eric Blake  <ebb9@byu.net>
60797
60798         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60799         needs wrapper.
60800
60801 2006-08-28  Eric Blake  <ebb9@byu.net>
60802
60803         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60804
60805 2006-08-28  Eric Blake  <ebb9@byu.net>
60806
60807         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60808
60809 2006-08-28  Bruno Haible  <bruno@clisp.org>
60810
60811         * modules/c-strstr: New file, from GNU gettext.
60812         * MODULES.html.sh (String handling): Add c-strstr.
60813
60814 2006-08-28  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60817         macros.
60818         Reported by Eric Blake.
60819
60820 2006-08-28  Bruno Haible  <bruno@clisp.org>
60821
60822         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60823         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60824         * lib/vasprintf.c: Include errno.h, limits.h.
60825         (EOVERFLOW): New fallback definition.
60826         (vasprintf): Test here whether the string length is > INT_MAX.
60827         * lib/vsnprintf.c: Include errno.h, limits.h.
60828         (EOVERFLOW): New fallback definition.
60829         (vsnprintf): Fix bug when generated string was too long for the buffer.
60830         Test here whether the string length is > INT_MAX.
60831
60832 2006-08-28  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/inttypes_.h (SCNX*): Remove definitions.
60835         Reported by Eric Blake.
60836
60837 2006-08-28  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/c-strstr.h: New file, from GNU gettext.
60840         * lib/c-strstr.c: New file, from GNU gettext.
60841
60842 2006-08-28  Bruno Haible  <bruno@clisp.org>
60843
60844         * gnulib-tool: Reorder some statements.
60845
60846 2006-08-28  Bruno Haible  <bruno@clisp.org>
60847
60848         * gnulib-tool: New option --makefile-name.
60849         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60850         $makefile_name.
60851         (func_import): Write $makefile_name to the cache file, and read it from
60852         there unless explicitly specified. Use $makefile_name as file name
60853         instead of Makefile.am. Adjust the recommendations accordingly.
60854
60855 2006-08-28  Bruno Haible  <bruno@clisp.org>
60856
60857         * gnulib-tool (func_verify_module): Check against misapplying patch.
60858
60859 2006-08-28  Bruno Haible  <bruno@clisp.org>
60860
60861         * gnulib-tool (func_relativize, func_relconcat): New functions.
60862         Give an error if --local-dir is given with --update.
60863         Remove trailing slashes from $local_gnulib_dir.
60864         (func_import): Store the relativized $local_gnulib_dir in
60865         gnulib-cache.m4, and read it from there if not specified explicitly.
60866
60867 2006-08-28  Bruno Haible  <bruno@clisp.org>
60868
60869         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60870         is the current directory. Respect also $local_gnulib_dir.
60871
60872 2006-08-28  Bruno Haible  <bruno@clisp.org>
60873             Simon Josefsson  <jas@extundo.com>
60874
60875         BeOS portability.
60876         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60877
60878 2006-08-27  Jim Meyering  <jim@meyering.net>
60879
60880         * doc/visibility.texi: Remove duplicate word: "pointer".
60881
60882 2006-08-26  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60885         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60886         (Makefile.am): Create inttypes.h from inttypes_.h.
60887         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60888
60889         * modules/imaxabs: New file.
60890
60891         * modules/imaxdiv: New file.
60892
60893 2006-08-26  Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/inttypes.m4: New file.
60896         * m4/_inttypes_h.m4: Remove file.
60897         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60898         PRI_MACROS_BROKEN.
60899         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60900
60901         * m4/imaxabs.m4: New file.
60902
60903         * m4/imaxdiv.m4: New file.
60904
60905 2006-08-26  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/inttypes_.h: New file.
60908         * lib/inttypes.h: Remove file.
60909         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60910
60911         * lib/imaxabs.c: New file.
60912
60913         * lib/imaxdiv.c: New file.
60914
60915 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60916
60917         New config-h module, so that "make" output needn't be cluttered
60918         by -DHAVE_CONFIG_H.
60919         * MODULES.html.sh (Support for building libraries and executables):
60920         Add config-h.
60921         * modules/config-h: New file.
60922         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60923         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60924         the config-h module is used.
60925
60926         New configmake module, so that "make" output needn't be cluttered
60927         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60928         * MODULES.html.sh (Support for building libraries and executables):
60929         Add configmake.
60930         * modules/configmake: New file.
60931
60932 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * m4/config-h.m4: New file.
60935
60936 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * config/srclist.txt: Add elisp-comp.
60939
60940 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * MODULES.html.sh (Support for building libraries and executables):
60943         Add elisp-comp.
60944         * build-aux/elisp-comp: New file.
60945         * modules/elisp-comp: New file.
60946
60947 2006-08-24  Bruno Haible  <bruno@clisp.org>
60948
60949         * gnulib-tool (func_create_testdir): Use non-default values of
60950         sourcebase and m4base.
60951
60952 2006-08-24  Bruno Haible  <bruno@clisp.org>
60953
60954         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60955         HTML structure.
60956
60957 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * modules/openat (Depends-on): Add lchown.
60960
60961 2006-08-23  Bruno Haible  <bruno@clisp.org>
60962
60963         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60964         of gl_LOCK_EARLY instead of gl_LOCK.
60965
60966 2006-08-23  Bruno Haible  <bruno@clisp.org>
60967
60968         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60969         on OSF/1 to no.
60970         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60971
60972 2006-08-23  Bruno Haible  <bruno@clisp.org>
60973
60974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60975         as unusable.
60976
60977         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60978         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60979         (gl_LOCK): New macro.
60980
60981 2006-08-22  Simon Josefsson  <jas@extundo.com>
60982
60983         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60984         to md5 module.
60985
60986 2006-08-22  Simon Josefsson  <jas@extundo.com>
60987
60988         * MODULES.html.sh: Add "Support for maintaining and release
60989         projects".
60990
60991         * build-aux/gnupload: New file, from coreutils.
60992
60993 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60994
60995         Avoid the need for AC_LIBSOURCES in m4 macros.
60996         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60997         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60998         * modules/check-version (EXTRA_DIST): Add check-version.h.
60999         * modules/crc (EXTRA_DIST): Add crc.h.
61000         * modules/des (EXTRA_DIST): Add des.h.
61001         * modules/gc (EXTRA_DIST): Add gc.h.
61002         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61003         * modules/getline (EXTRA_DIST): Add getline.h.
61004         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61005         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61006         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61007         * modules/md2 (EXTRA_DIST): Add md2.h.
61008         * modules/md4 (EXTRA_DIST): Add md4.h.
61009         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61010         * modules/read-file (EXTRA_DIST): Add read-file.h.
61011         * modules/readline (EXTRA_DIST): Add readline.h.
61012         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61013         rijndael-api-fst.h.
61014
61015 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * m4/rijndael.m4 (gl_ARCFOUR):
61018         * m4/arctwo.m4 (gl_ARCTWO):
61019         * m4/check-version.m4 (gl_CHECK_VERSION):
61020         * m4/crc.m4 (gl_CRC):
61021         * m4/des.m4 (gl_DES):
61022         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61023         * m4/gc.m4 (gl_GC):
61024         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61025         * m4/getline.m4 (gl_FUNC_GETLINE):
61026         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61027         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61028         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61029         * m4/md2.m4 (gl_MD2):
61030         * m4/md4.m4 (gl_MD4):
61031         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61032         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61033         * m4/readline.m4 (gl_FUNC_READLINE):
61034         * m4/rijndael.m4 (gl_RIJNDAEL):
61035         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61036         to get the necessary .h files and whatnot.
61037
61038 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61041         gnulib rather than the other way around.
61042         * config/srclistvars.sh (COREUTILS): Remove.
61043
61044 2006-08-22  Jim Meyering  <jim@meyering.net>
61045
61046         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61047
61048         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61049
61050 2006-08-22  Eric Blake  <ebb9@byu.net>
61051
61052         * modules/regexprops-generic: New file.
61053         * MODULES.html.sh (Support for building documentation): List it.
61054
61055 2006-08-22  Eric Blake  <ebb9@byu.net>
61056
61057         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61058         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61059         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61060         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61061
61062 2006-08-22  Bruno Haible  <bruno@clisp.org>
61063
61064         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61065         and lib_LTLIBRARIES like the other lib_* variables.
61066
61067 2006-08-22  Bruno Haible  <bruno@clisp.org>
61068
61069         * build-aux/x-to-1.in: New file, from GNU gettext.
61070
61071 2006-08-22  Bruno Haible  <bruno@clisp.org>
61072
61073         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61074         <utmpx.h> exists.
61075
61076 2006-08-22  Bruno Haible  <bruno@clisp.org>
61077
61078         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61079         <utmpx.h> exists.
61080
61081 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         BeOS portability.
61084         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61085         exist.
61086         Problem reported by Bruno Haible.
61087
61088 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         Avoid the need for AC_LIBSOURCES in m4 macros.
61091         * modules/acl (EXTRA_DIST): Add acl.h.
61092         * modules/argmatch (Files): Add m4/argmatch.m4.
61093         (configure.ac): Add gl_ARGMATCH.
61094         (EXTRA_DIST): Renamed from lib_SOURCES, for
61095         consistency with the other modules.  Remove argmatch.c.
61096         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61097         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61098         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61099         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61100         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61101         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61102         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61103         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61104         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61105         * modules/closeout (EXTRA_DIST): Add closeout.h.
61106         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61107         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61108         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61109         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61110         dirname.h; remove basename.c and stripslash.c.
61111         * modules/exclude (EXTRA_DIST): Add exclude.h.
61112         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61113         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61114         * modules/file-type (EXTRA_DIST): Add file-type.h.
61115         * modules/filemode (EXTRA_DIST): Add filemode.h.
61116         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61117         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61118         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61119         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61120         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61121         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61122         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61123         * modules/getdate (EXTRA_DIST): Add getdate.c.
61124         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61125         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61126         * modules/getpass (EXTRA_DIST): Add getpass.h.
61127         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61128         * modules/group-member (EXTRA_DIST): Add group-member.h.
61129         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61130         * modules/hash (EXTRA_DIST): Add hash.h.
61131         * modules/human (EXTRA_DIST): Add human.h.
61132         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61133         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61134         * modules/lchown (EXTRA_DIST): Add lchown.h.
61135         * modules/long-options (EXTRA_DIST): Add long-options.h.
61136         * modules/lstat (EXTRA_DIST): Add lstat.h.
61137         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61138         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61139         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61140         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61141         * modules/memxor (EXTRA_DIST): Add memxor.h.
61142         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61143         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61144         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61145         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61146         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61147         * modules/physmem (EXTRA_DIST): Add physmem.h.
61148         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61149         * modules/posixver (EXTRA_DIST): Add posixver.h.
61150         * modules/quote (EXTRA_DIST): Add quote.h.
61151         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61152         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61153         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61154         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61155         regex_internal.h regexec.c.
61156         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61157         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61158         * modules/same (EXTRA_DIST): Add same.h.
61159         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61160         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61161         * modules/savedir (EXTRA_DIST): Add savedir.h.
61162         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61163         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61164         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61165         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61166         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61167         * modules/strdup (EXTRA_DIST): Add strdup.h.
61168         * modules/strftime (EXTRA_DIST): Add strftime.h.
61169         * modules/strndup (EXTRA_DIST): Add strndup.h.
61170         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61171         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61172         * modules/time_r (EXTRA_DIST): Add time_r.h.
61173         * modules/timespec (EXTRA_DIST): Add timespec.h.
61174         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61175         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61176         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61177         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61178         * modules/userspec (EXTRA_DIST): Add userspec.h.
61179         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61180         * modules/utimens (EXTRA_DIST): Add utimens.h.
61181         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61182         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61183         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61184         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61185         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61186         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61187         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61188         * modules/yesno (EXTRA_DIST): Add yesno.h.
61189
61190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61193
61194         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61195         * m4/dev-ino.m4, same-inode.m4: Remove.
61196
61197         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61198         * m4/acl.m4 (AC_FUNC_ACL):
61199         * m4/backupfile.m4 (gl_BACKUPFILE):
61200         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61201         * m4/canon-host.m4 (gl_CANON_HOST):
61202         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61203         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61204         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61205         * m4/cloexec.m4 (gl_CLOEXEC):
61206         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61207         * m4/closeout.m4 (gl_CLOSEOUT):
61208         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61209         * m4/dirname.m4 (gl_DIRNAME):
61210         * m4/exclude.m4 (gl_EXCLUDE):
61211         * m4/exitfail.m4 (gl_EXITFAIL):
61212         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61213         * m4/file-type.m4 (gl_FILE_TYPE):
61214         * m4/filemode.m4 (gl_FILEMODE):
61215         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61216         * m4/fpending.m4 (gl_FUNC_FPENDING):
61217         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61218         * m4/fts.m4 (gl_FUNC_FTS):
61219         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61220         * m4/getdate.m4 (gl_GETDATE):
61221         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61222         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61223         * m4/getpass.m4 (gl_FUNC_GETPASS):
61224         * m4/gettime.m4 (gl_GETTIME):
61225         * m4/getugroups.m4 (gl_GETUGROUPS):
61226         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61227         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61228         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61229         * m4/hash.m4 (gl_HASH):
61230         * m4/idcache.m4 (gl_IDCACHE):
61231         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61232         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61233         * m4/long-options.m4 (gl_LONG_OPTIONS):
61234         * m4/lstat.m4 (gl_FUNC_LSTAT):
61235         * m4/md5.m4 (gl_MD5):
61236         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61237         * m4/memcoll.m4 (gl_MEMCOLL):
61238         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61239         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61240         * m4/memxor.m4 (gl_MEMXOR):
61241         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61242         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61243         * m4/modechange.m4 (gl_MODECHANGE):
61244         * m4/mountlist.m4 (gl_MOUNTLIST):
61245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61246         * m4/openat.m4 (gl_FUNC_OPENAT):
61247         * m4/pathmax.m4 (gl_PATHMAX):
61248         * m4/physmem.m4 (gl_PHYSMEM):
61249         * m4/posixtm.m4 (gl_POSIXTM):
61250         * m4/posixver.m4 (gl_POSIXVER):
61251         * m4/quote.m4 (gl_QUOTE):
61252         * m4/quotearg.m4 (gl_QUOTEARG):
61253         * m4/readtokens.m4 (gl_READTOKENS):
61254         * m4/readutmp.m4 (gl_READUTMP):
61255         * m4/regex.m4 (gl_REGEX):
61256         * m4/safe-read.m4 (gl_SAFE_READ):
61257         * m4/safe-write.m4 (gl_SAFE_WRITE):
61258         * m4/same.m4 (gl_SAME):
61259         * m4/save-cwd.m4 (gl_SAVE_CWD):
61260         * m4/savedir.m4 (gl_SAVEDIR):
61261         * m4/settime.m4 (gl_SETTIME):
61262         * m4/sha1.m4 (gl_SHA1):
61263         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61264         * m4/stat-macros.m4 (gl_STAT_MACROS):
61265         * m4/stat-time.m4 (gl_STAT_TIME):
61266         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61267         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61268         * m4/strdup.m4 (gl_FUNC_STRDUP):
61269         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61270         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61271         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61272         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61273         * m4/time_r.m4 (gl_TIME_R):
61274         * m4/timespec.m4 (gl_TIMESPEC):
61275         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61276         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61277         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61278         * m4/userspec.m4 (gl_USERSPEC):
61279         * m4/utimecmp.m4 (gl_UTIMECMP):
61280         * m4/utimens.m4 (gl_UTIMENS):
61281         * m4/xalloc.m4 (gl_XALLOC):
61282         * m4/xgetcwd.m4 (gl_XGETCWD):
61283         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61284         * m4/xreadlink.m4 (gl_XREADLINK):
61285         * m4/xstrtod.m4 (gl_XSTRTOD):
61286         * m4/yesno.m4 (gl_YESNO):
61287         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61288         to get the necessary .h files and whatnot.
61289
61290 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61291             Bruno Haible  <bruno@clisp.org>
61292
61293         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61294         /bin/sh understanding of '!' conditional negation.
61295
61296 2006-08-21  Jim Meyering  <jim@meyering.net>
61297
61298         * modules/openat (Depends-on): Really alphabetize.
61299
61300         * modules/acl (Depends-on): Add error and quote.
61301
61302         * check-module (find_included_lib_files): Add at-func.c to the
61303         ok-to-include-more-than-once white list.
61304
61305         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61306
61307 2006-08-21  Bruno Haible  <bruno@clisp.org>
61308
61309         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61310         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61311         Reported by Martin Lambers <marlam@marlam.de>.
61312
61313 2006-08-21  Bruno Haible  <bruno@clisp.org>
61314
61315         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61316         specify an installation location, don't emit a noinst_LIBRARIES or
61317         noinst_LTLIBRARIES assignment.
61318
61319 2006-08-21  Bruno Haible  <bruno@clisp.org>
61320
61321         BeOS portability.
61322         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61323         BeOS has mbrtowc() but no <wctype.h>.
61324
61325 2006-08-21  Bruno Haible  <bruno@clisp.org>
61326
61327         BeOS portability.
61328         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61329         exist.
61330
61331 2006-08-21  Bruno Haible  <bruno@clisp.org>
61332
61333         BeOS portability.
61334         * lib/mbchar.h: Include <wctype.h> only if it exists.
61335
61336 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61337
61338         Remove files that are no longer needed by their respective modules.
61339         * m4/obstack.m4: Remove.
61340         * m4/strerror_r.m4: Remove.
61341         * m4/uint32_t.m4: Remove.
61342         * m4/uintptr_t.m4: Remove.
61343         * m4/ullong_max.m4: Remove.
61344         * m4/xstrtoimax.m4: Remove.
61345         * m4/xstrtoumax.m4: Remove.
61346
61347         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61348         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61349         dependencies now capture this.
61350
61351         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61352         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61353         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61354         * m4/human.m4 (gl_HUMAN): Likewise.
61355         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61356         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61357
61358         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61359
61360         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61361         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61362         stdint.
61363         * m4/human.m4 (gl_HUMAN): Likewise.
61364         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61365         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61366         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61367         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61368         * m4/xstrtol (gl_XSTRTOL): Likewise.
61369
61370         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61371         AC_TYPE_LONG_LONG_INT.
61372         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61373         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61374         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61375         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61376
61377         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61378         on stdbool.
61379
61380         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61381         (gl_PREREQ_XSTRTOUL): Remove.
61382
61383         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61384
61385         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61386         mode.
61387
61388 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         Add and change modules to make it easier for coreutils to use
61391         gnulib-tool.
61392         * modules/backupfile (Files): Remove m4/d-ino.m4.
61393         (Depends-on): Add d-ino.
61394         * modules/cycle-check (Depends-on): Add stdint.
61395         (lib_SOURCES): Add cycle-check.h.
61396         * modules/d-ino: New module.
61397         * modules/d-type: New module.
61398         * modules/error (Files): Remove m4/strerror_r.m4.
61399         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61400         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61401         m4/inttypes_h.m4, m4/uintmax_t.m4.
61402         (Depends-on): Add stdint.
61403         (lib_SOURCES): Add fsusage.h.
61404         * modules/getcwd (Files): Remove d-ino.m4.
61405         (Depends-on): Add d-ino.
61406         * modules/getndelim2 (Depends-on): Add stdint.
61407         * modules/glob (Files): Remove m4/d-type.m4.
61408         (Depends-on): Add d-type.
61409         * modules/host-os: New module.
61410         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61411         m4/inttypes_h.m4, m4/uintmax_t.m4.
61412         * Depends-on: Add stdint.
61413         (lib_SOURCES): Add human.h.
61414         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61415         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61416         m4/uintmax_t.m4, m4/ulonglong.m4.
61417         (Depends-on): Add stdint.
61418         (EXTRA_DIST): Add inttostr.h.
61419         * modules/lchmod: New module.
61420         * modules/link-follow: New module.
61421         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61422         (Depends-on): Add lchmod.
61423         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61424         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61425         (Depends-on): Add stdint.
61426         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61427         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61428         (Depends-on): Add stdint.
61429         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61430         * modules/perl: New module.
61431         * modules/regex (Depends-on): Add stdint.
61432         * modules/rmdir-errno: New module.
61433         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61434         m4/intmax_t.m4.
61435         (Depends-on): Add stdint.
61436         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61437         m4/uintmax_t.m4.
61438         (Depends-on): Add stdint.
61439         * modules/unlink-busy: New module.
61440         * modules/utimecmp (Depends-on): Add stdint.
61441         * modules/uptime: New module.
61442         * modules/winsz-ioctl: New module.
61443         * modules/winsz-termios: New module.
61444         * modules/xnanosleep (Depends-on): Add nanosleep.
61445         * modules/ullong_max: Remove.
61446         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61447         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61448         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61449         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61450         (Depends-on): Add inttypes.
61451         (lib_SOURCES): Add xstrtol.h.
61452         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61453         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61454         * MODULES.html.sh: Move 'assert' into the assert section.
61455         Move 'dummy' into the linking section.
61456         Remove ullong_max.
61457         Add section for compatibility checks for POSIX:2001 functions,
61458         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61459         winsz-ioctl, and winsz-termios into it.
61460         Add lchmod.
61461         Add top-level Misc section and put host-os, perl, and uptime
61462         into it.
61463
61464 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61467         now assume the stdint module.  Do not include inttypes.h.
61468         * lib/fsusage.h: Likewise.
61469         * lib/getndelim2.c: Likewise.
61470         * lib/human.h: Likewise.
61471         * lib/inttostr.h: Likewise.
61472         * lib/obstack.c: Likewise.
61473         * lib/regex_internal.h: Likewise.
61474         * lib/tempname.c: Likewise.
61475         * lib/utimecmp.c: Likewise.
61476         * lib/xstrtol.h: Likewise.
61477
61478         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61479
61480         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61481         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61482         * lib/xtime.h: Likewise.
61483
61484 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * modules/openat (Files): Add lib/fchmodat.c.
61487         Fixes problem reported by Jay Youngman.
61488
61489 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61492         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61493
61494 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61495             Bruno Haible  <bruno@clisp.org>
61496
61497         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61498         and is a script that invokes bison. Tighten the code. Add comments.
61499
61500 2006-08-18  Jim Meyering  <jim@meyering.net>
61501
61502         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61503         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61504         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61505         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61506
61507 2006-08-18  Bruno Haible  <bruno@clisp.org>
61508
61509         * modules/bison-i18n: New file.
61510         * MODULES.html.sh (Internationalization functions): Add it.
61511
61512 2006-08-18  Bruno Haible  <bruno@clisp.org>
61513
61514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61515         sys/statvfs.h. When getmntinfo was found, check its declaration and
61516         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61517
61518 2006-08-18  Bruno Haible  <bruno@clisp.org>
61519
61520         * m4/bison-i18n.m4: New file, from bison.
61521
61522 2006-08-18  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61525         (ME_DUMMY): Treat "kernfs" as a dummy.
61526         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61527
61528 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         Update from coreutils.
61531
61532         2006-08-15  Jim Meyering  <jim@meyering.net>
61533
61534         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61535
61536         2006-01-17  Jim Meyering  <jim@meyering.net>
61537
61538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61539
61540         2006-01-11  Jim Meyering  <jim@meyering.net>
61541
61542         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61543         Check for the lchmod function.
61544
61545 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         Update from coreutils.
61548
61549         * lib/__fpending.h: Add copyright notice.
61550         * lib/fprintftime.h: Likewise.
61551         * lib/savedir.c: Use (C) in copyright notice.
61552         * lib/savedir.h: Likewise.
61553
61554         2006-08-15  Jim Meyering  <jim@meyering.net>
61555
61556         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61557         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61558         in support of the EXPECTED_ERRNO macro.
61559         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61560         definitions.  Instead, define the appropriate symbols and include
61561         "at-func.c".
61562         * lib/mkdirat.c (mkdirat): Likewise.
61563         * lib/fchmodat.c (fchmodat): Likewise.
61564         (ENOSYS): Remove definition.
61565         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61566         it.  Don't include "unistd--.h" -- it wasn't ever used.
61567
61568         2006-01-17  Jim Meyering  <jim@meyering.net>
61569
61570         Rewrite fts.c not to change the current working directory,
61571         by using openat, fstatat, fdopendir, etc..
61572
61573         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61574         (HAVE_OPENAT_SUPPORT): Define.
61575         [_LIBC] (fchdir): Don't undef or define; no longer used.
61576         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61577         Now, this `function' always succeeds, and consumes its file descriptor
61578         parameter -- so callers must not close such FDs.  Update callers.
61579         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61580         (diropen): Add parameter, SP.  Adjust all callers.
61581         Implement using diropen_fd, rather than open.
61582         (fts_open): Initialize new member, fts_cwd_fd.
61583         Remove fts_rft-setting code.
61584         (fts_close): Close fts_cwd_fd, if necessary.
61585         (__opendir2): Define in terms of opendir or opendirat,
61586         depending on whether the FST_NOCHDIR flag is set.
61587         (fts_build): Since fts_safe_changedir consumes its FD, and since
61588         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61589         and close the dup'd file descriptor upon failure.
61590         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61591         (fts_safe_changedir): Tweak semantics to reflect that this function
61592         now calls cwd_advance_fd and hence consumes its FD argument.
61593         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61594         [struct FTS] (fts_rft): Remove now-unused member.
61595         [struct FTS] (fts_cycle.state): Improve comment.
61596
61597         * lib/openat.c (openat_needs_fchdir): New function.
61598         * lib/openat.h (openat_needs_fchdir): Declare it.
61599
61600 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61603         Problem and fix reported by Pádraig Brady in
61604         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61605
61606 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61609
61610 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * lib/memcoll.c (memcoll): Optimize for the common case where the
61613         arguments are bytewise equal.
61614
61615 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         * doc/regexprops-generic.texi: Add a copyright notice.
61618
61619 2006-08-15  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/tmpdir (License): Change to LGPL.
61622
61623 2006-08-15  Bruno Haible  <bruno@clisp.org>
61624
61625         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61626         module.
61627
61628 2006-08-14  Simon Josefsson  <jas@extundo.com>
61629
61630         * config/srclist.txt: Add gnupload.
61631
61632 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         Change copyright notice from LGPL 2 to GPL 2, since that's the
61635         standard form used in the gnulib repository.
61636         * tests/test-lock.c: Likewise.
61637         * tests/test-stdint.c: Likewise.
61638         * tests/test-tls.c: Likewise.
61639
61640         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61641         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61642         Add copyright notice.
61643
61644         * check-module: Add copyright notice.  Output a copyright
61645         notice if "--version" is specified.
61646         * modules/COPYING: New file.
61647         * tests/test-getaddrinfo.c: Add copyright notice.
61648         * tests/test-verify.c: Likewise.
61649
61650 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         Change copyright notice from LGPL 2 to GPL 2, since that's the
61653         standard form used in the gnulib repository.
61654         * lib/lock.c: LGPL -> GPL.
61655         * lib/lock.h: Likewise.
61656         * lib/strnlen1.c: Likewise.
61657         * lib/strnlen1.h: Likewise.
61658         * lib/tls.c: Likewise.
61659         * lib/tls.h: Likewise.
61660         * lib/tmpdir.c: Likewise.
61661
61662         * lib/TODO: Remove; this belongs only in coreutils.
61663
61664 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         Add copyright notices to long-enough files that lack them, since
61667         otherwise the files aren't clearly free.  Use the same notice that
61668         getdate.texi already uses.
61669         * doc/alloca-opt.texi: Add copyright notice.
61670         * doc/alloca.texi: Likewise.
61671         * doc/ctime.texi: Likewise.
61672         * doc/functions.texi: Likewise.
61673         * doc/gcd.texi: Likewise.
61674         * doc/gnulib-tool.texi: Likewise.
61675         * doc/inet_ntoa.texi: Likewise.
61676         * doc/visibility.texi: Likewise.
61677
61678         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61679         * doc/quote.texi: Add copyright notice.
61680
61681         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61682         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61683         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61684         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61685         is now obsolete, and give a pointer to the Sun list.
61686         Add copyright notice.
61687
61688 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * config/srclistvars.sh: Add copyright notice.
61691
61692 2006-08-14  Eric Blake  <ebb9@byu.net>
61693
61694         Import the following change from libc:
61695
61696         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61697
61698         Upstream bug 2997.
61699         * lib/misc/error.c: Add space between program name and message if file
61700         name is missing.
61701
61702 2006-08-12  Karl Berry  <karl@gnu.org>
61703
61704         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61705         remove, these originate in gnulib now.
61706
61707 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61708
61709         * doc/Makefile (standards.info standards.html standards.dvi):
61710         Also depend on make-stds.texi.
61711
61712 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61715         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61716
61717         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61718         in wchar_t.  Problem reported by Eric Blake.
61719
61720         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61721         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61722         Also, help the compiler to keep LEN in a register.
61723
61724 2006-08-11  Eric Blake  <ebb9@byu.net>
61725
61726         * users.txt: Sort.  Add tar.
61727
61728 2006-08-11  Bruno Haible  <bruno@clisp.org>
61729
61730         * users.txt: New file.
61731
61732 2006-08-11  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61735         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61736
61737 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * modules/snprintf (Depends-on): Remove minmax.
61740         (Maintainer): Add self and Bruno.
61741
61742 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61745         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61746         (EOVERFLOW): Define if the system does not.
61747         Do not include "minmax.h"; it wasn't used.
61748         (snprintf): Don't assume size_t promotes to an unsigned type.
61749         Fix bug when generated string was too long for the buffer: the
61750         buffer's contents are supposed to be the initial prefix of the
61751         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61752         exceeds INT_MAX; do the check ourselves.
61753
61754         Import the following changes from libc:
61755
61756         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61757
61758         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61759         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61760         set wc to the byte which couldn't be converted.
61761         (re_string_reconstruct): Don't clear valid_raw_len before calling
61762         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61763         tip_context using re_string_context_at.
61764
61765         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61766
61767         * lib/posix/regex.h: g++ still cannot handled [restrict].
61768
61769         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61770
61771         * lib/posix/regex.h: Remove special handling for VMS.
61772
61773 2006-08-10  Jim Meyering  <jim@meyering.net>
61774
61775         * modules/same-inode: New module.
61776         * modules/dev-ino: New module.
61777         * modules/cycle-check: Depend on these modules, rather than simply
61778         including their .h files.
61779         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61780         required via m4/cycle-check.m4.
61781         * modules/same: Depend on new same-inode module, rather than
61782         including same-inode.h.
61783         * modules/chdir-safer: New file.
61784
61785         * modules/chown (Depends-on): Add stat-macros.
61786
61787 2006-08-10  Jim Meyering  <jim@meyering.net>
61788
61789         * m4/cycle-check.m4: New file.
61790         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61791         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61792
61793 2006-08-10  Eric Blake  <ebb9@byu.net>
61794
61795         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61796         in from original proposal.
61797
61798 2006-08-10  Eric Blake  <ebb9@byu.net>
61799         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61800
61801         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61802         namespace.
61803
61804 2006-08-10  Bruno Haible  <bruno@clisp.org>
61805
61806         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61807         as well.
61808
61809 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         Sync from coreutils.
61812
61813         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61814
61815         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61816         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61817
61818 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61819
61820         * modules/restrict: Remove; no longer needed now that we assume
61821         Autoconf 2.59 or later.
61822         * MODULES.html.sh: Remove 'restrict'.
61823         * modules/argp (Depends-on): Remove 'restrict'.
61824         * modules/base64 (Depends-on): Likewise.
61825         * modules/gc (Depends-on): Likewise.
61826         * modules/getaddrinfo (Depends-on): Likewise.
61827         * modules/glob (Depends-on): Likewise.
61828         * modules/inet_ntop (Depends-on): Likewise.
61829         * modules/inet_pton (Depends-on): Likewise.
61830         * modules/memxor (Depends-on): Likewise.
61831         * modules/regex (Depends-on): Likewise.
61832         * modules/strtok_r (Depends-on): Likewise.
61833         * modules/time_r (Depends-on): Likewise.
61834
61835 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61838         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61839         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61840         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61841         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61842         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61843         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61844         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61845
61846         Merge from coreutils.
61847         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61848         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61850         * m4/time_r.m4 (gl_TIME_R): Likewise.
61851
61852 2006-08-09  Karl Berry  <karl@gnu.org>
61853
61854         * config/srclist.txt: no more gettext-tools, per Bruno.
61855
61856 2006-08-08  Eric Blake  <ebb9@byu.net>
61857
61858         * modules/verror: New module.
61859         * MODULES.html.sh: Document it.
61860
61861 2006-08-08  Eric Blake  <ebb9@byu.net>
61862
61863         * lib/verror.h, lib/verror.c: New files.
61864
61865 2006-08-08  Eric Blake  <ebb9@byu.net>
61866
61867         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61868         verror_at_line output complies with GNU Coding Standards even when
61869         file is NULL.
61870
61871 2006-08-07  Bruno Haible  <bruno@clisp.org>
61872
61873         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61874         versions of AIX.
61875         Reported by Ralf Wildenhues.
61876
61877 2006-08-07  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61880         in an AC_DEFUN. Needed so that the autoconf snippets can use
61881         AC_REQUIRE.
61882
61883 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61884
61885         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61886         Initialize pkgdata_DATA.
61887         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61888         overriding it.
61889
61890 2006-08-06  Eric Blake  <ebb9@byu.net>
61891
61892         * lib/error.h: Fold in some upstream changes from glibc.
61893         * lib/error.c: Likewise.
61894
61895 2006-08-04  Bruno Haible  <bruno@clisp.org>
61896
61897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61898         Make the mostlyclean-local rule depend on mostlyclean-generic.
61899         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61900
61901 2006-07-31  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61904         <stdlib.h>, <string.h>.
61905
61906 2006-07-30  Bruno Haible  <bruno@clisp.org>
61907
61908         * modules/readlink (License): Change to LGPL.
61909
61910 2006-07-30  Bruno Haible  <bruno@clisp.org>
61911
61912         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61913         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61914         set PKGDATADIR to point to it.
61915
61916 2006-07-30  Bruno Haible  <bruno@clisp.org>
61917
61918         * modules/csharpexec (configure.ac): Comment out macro invocation.
61919         * modules/javaexec (configure.ac): Likewise.
61920         * modules/javacomp-script (configure.ac): Likewise.
61921
61922         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61923
61924 2006-07-30  Bruno Haible  <bruno@clisp.org>
61925
61926         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61927         linked-list.
61928
61929 2006-07-30  Bruno Haible  <bruno@clisp.org>
61930
61931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61932
61933 2006-07-30  Bruno Haible  <bruno@clisp.org>
61934
61935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61936         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61937         get removed.
61938
61939 2006-07-29  Bruno Haible  <bruno@clisp.org>
61940
61941         Make it possible for gnulib-tool to work with locally modified or
61942         augmented gnulib repositories.
61943         * gnulib-tool (func_usage): Document --local-dir option.
61944         (local_gnulib_dir): New variable.
61945         Handle --local-dir option.
61946         (func_lookup_file): New function.
61947         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61948         (func_get_description, func_get_filelist, func_get_description,
61949         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61950         func_get_automake_snippet, func_get_include_directive,
61951         func_get_license, func_get_maintainer): Use func_lookup_file.
61952         (func_import, func_create_testdir): Use func_lookup_file.
61953
61954 2006-07-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * modules/setenv (Depends-on): Add unistd.
61957
61958 2006-07-29  Bruno Haible  <bruno@clisp.org>
61959
61960         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61961
61962 2006-07-29  Bruno Haible  <bruno@clisp.org>
61963
61964         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61965
61966 2006-07-29  Bruno Haible  <bruno@clisp.org>
61967
61968         * gnulib-tool (import, update): If there is no Makefile.am, look at
61969         aclocal.m4, instead of bailing out.
61970
61971 2006-07-29  Bruno Haible  <bruno@clisp.org>
61972
61973         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61974         Categorize the options by when they are useful.
61975
61976 2006-07-29  Bruno Haible  <bruno@clisp.org>
61977
61978         * gnulib-tool (func_usage): Document option --no-libtool.
61979         Handle option --no-libtool.
61980         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61981         for changed semantics of $libtool variable.
61982         (func_import): Likewise. If libtool is not used, show this through
61983         an option --no-libtool.
61984         (func_create_testdir): Update.
61985
61986 2006-07-29  Bruno Haible  <bruno@clisp.org>
61987
61988         * gnulib-tool (func_import): Extend error message about missing
61989         --doc-base.
61990
61991 2006-07-29  Bruno Haible  <bruno@clisp.org>
61992
61993         * gnulib-tool (func_import): Don't create the $docbase directory if
61994         there is no file to store there.
61995
61996 2006-07-29  Bruno Haible  <bruno@clisp.org>
61997
61998         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61999         relevant, look for configure.ac there, not in the current directory.
62000         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62001
62002 2006-07-29  Bruno Haible  <bruno@clisp.org>
62003
62004         * gnulib-tool (SORT): New variable.
62005         (func_usage): Undocument --assume-autoconf option.
62006         Remove --assume-autoconf option handling.
62007         (autoconf_minversion): Determine from the contents of configure.ac.
62008         (func_import): Remove autoconf_minversion handling.
62009         Suggested by Eric Blake.
62010
62011 2006-07-29  Bruno Haible  <bruno@clisp.org>
62012
62013         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62014
62015 2006-07-29  Bruno Haible  <bruno@clisp.org>
62016
62017         * config/srclist.txt (*setenv.[ch]): Remove rules.
62018
62019 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62020
62021         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62022
62023 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62024
62025         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62026         arpa/inet.h.
62027
62028 2006-07-28  Simon Josefsson  <jas@extundo.com>
62029
62030         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62031         * modules/inet_pton (Depends-on): Likewise.
62032
62033 2006-07-28  Simon Josefsson  <jas@extundo.com>
62034
62035         * m4/netinet_in_h.m4: New file.
62036
62037 2006-07-28  Simon Josefsson  <jas@extundo.com>
62038
62039         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62040         #include's.
62041
62042 2006-07-28  Simon Josefsson  <jas@extundo.com>
62043
62044         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62045         #include's.
62046
62047 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62048
62049         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62050         setgid on directories only if they set these bits.
62051         * lib/modechange.h: Remove obsolete comment about masks.
62052
62053 2006-07-28  Eric Blake  <ebb9@byu.net>
62054
62055         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62056         macro expansion.
62057
62058 2006-07-28  Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62061
62062 2006-07-28  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62065
62066 2006-07-28  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62069         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62070         Define fallbacks.
62071         Avoids link error on FreeBSD 4.x.
62072         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62073
62074         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62075         encoding.
62076         * lib/mbswidth.c (iswcntrl): Likewise.
62077
62078 2006-07-27  Bruno Haible  <bruno@clisp.org>
62079
62080         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62081         test.
62082
62083 2006-07-27  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62086         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62087         defined.
62088
62089 2006-07-26  Eric Blake  <ebb9@byu.net>
62090
62091         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62092
62093 2006-07-26  Eric Blake  <ebb9@byu.net>
62094
62095         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62096         like mingw that lack mkstemp.
62097         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62098         avoid compilation warning on mingw.
62099
62100 2006-07-26  Bruno Haible  <bruno@clisp.org>
62101
62102         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62103         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62104         INT_FAST*_MIN, INTPTR_MIN.
62105
62106 2006-07-25  Bruno Haible  <bruno@clisp.org>
62107
62108         * modules/version-etc (Depends-on): Add stdarg.
62109
62110 2006-07-25  Bruno Haible  <bruno@clisp.org>
62111
62112         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62113         complex commands.
62114
62115 2006-07-25  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62118         defined in <stdarg.h> or config.h.
62119
62120 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62123         (gl_STDIO_SAFER): Remove.
62124
62125 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * MODULES.html.sh (File stream based Input/Output):
62128         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62129         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62130         * modules/fopen-safer, modules/tmpfile-safer: New files.
62131         * modules/stdio-safer: Remove.
62132
62133 2006-07-24  Bruno Haible  <bruno@clisp.org>
62134
62135         * modules/tmpdir: New file.
62136         * MODULES.html.sh (File system functions): Add it.
62137
62138 2006-07-24  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62141         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62142
62143 2006-07-24  Bruno Haible  <bruno@clisp.org>
62144
62145         * modules/clean-temp: New file.
62146
62147 2006-07-24  Bruno Haible  <bruno@clisp.org>
62148
62149         * m4/tmpdir.m4: New file, from GNU gettext.
62150
62151 2006-07-24  Bruno Haible  <bruno@clisp.org>
62152
62153         * lib/tmpdir.h: New file, from GNU gettext.
62154         * lib/tmpdir.c: New file, from GNU gettext.
62155
62156 2006-07-24  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/clean-temp.h: New file, from GNU gettext.
62159         * lib/clean-temp.c: New file, from GNU gettext.
62160
62161 2006-07-23  Eric Blake  <ebb9@byu.net>
62162
62163         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62164         (Depends-on): Add binary-io.
62165
62166 2006-07-23  Eric Blake  <ebb9@byu.net>
62167
62168         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62169
62170 2006-07-23  Eric Blake  <ebb9@byu.net>
62171
62172         * lib/tmpfile-safer.c: New file.
62173         * lib/stdio-safer.h (fopen_safer): Add prototype.
62174         * lib/stdio--.h (tmpfile): Make safer.
62175
62176 2006-07-23  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62179         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62180         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62181         gl_linked_remove_at): Use it.
62182
62183 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62184         and Simon Josefsson <jas@extundo.com>
62185
62186         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62187
62188         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62189
62190 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62191
62192         * modules/close-stream: New file.
62193         * modules/closeout (Description): Make it clear that it exits
62194         with a diagnostic on error.
62195         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62196         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62197
62198 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * m4/close-stream.m4: New file.
62201
62202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         * lib/close-stream.c, lib/close-stream.h: New files.
62205
62206 2006-07-22  Bruno Haible  <bruno@clisp.org>
62207
62208         Merge from GNU gettext 0.15.
62209
62210         2006-05-01  Bruno Haible  <bruno@clisp.org>
62211
62212                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62213
62214         2006-07-22  Bruno Haible  <bruno@clisp.org>
62215
62216                 * modules/javaversion: New file.
62217                 * MODULES.html.sh (Java): Add javaversion.
62218
62219         2006-03-12  Bruno Haible  <bruno@clisp.org>
62220
62221                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62222
62223         2005-12-04  Bruno Haible  <bruno@clisp.org>
62224
62225                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62226                 (untested).
62227
62228         2006-06-21  Bruno Haible  <bruno@clisp.org>
62229
62230                 Avoid warnings from recent versions of mcs.
62231                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62232                 -o, -L, -r any more. Use options documented since mcs-1.0
62233                 instead. Similarly for -g.
62234
62235         2005-12-04  Bruno Haible  <bruno@clisp.org>
62236
62237                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62238                 .resources, not .resource.
62239
62240         2005-07-09  Bruno Haible  <bruno@clisp.org>
62241
62242                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62243                 add a .dll suffix.
62244                 Reported by Mark Junker <mjscod@gmx.de>.
62245
62246         2006-07-22  Bruno Haible  <bruno@clisp.org>
62247
62248                 * modules/gettext: Upgrade to gettext-0.15.
62249                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62250                 m4/visibility.m4.
62251                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62252
62253 2006-07-22  Bruno Haible  <bruno@clisp.org>
62254
62255         Merge from GNU gettext 0.15.
62256
62257         2006-03-25  Bruno Haible  <bruno@clisp.org>
62258
62259                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62260
62261         2006-07-21  Bruno Haible  <bruno@clisp.org>
62262
62263                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62264                 "1.1".
62265
62266         2006-05-09  Bruno Haible  <bruno@clisp.org>
62267
62268                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62269                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62270                 for the conftestver execution.
62271
62272         2006-05-01  Bruno Haible  <bruno@clisp.org>
62273
62274                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62275                 optional target-version argument. Verify that the compiler
62276                 groks source of the specified source-version, or add -source
62277                 option as necessary. Verify that the compiler produces
62278                 bytecode in the specified target-version, or add -target and
62279                 -source options as necessary. Make the result of the test
62280                 available as variable CONF_JAVAC. Also log error output in
62281                 config.log.
62282
62283         2006-03-11  Bruno Haible  <bruno@clisp.org>
62284
62285                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62286
62287         2006-05-09  Bruno Haible  <bruno@clisp.org>
62288
62289                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62290                 CLASSPATH_SEPARATOR to a semicolon.
62291
62292         2006-03-12  Bruno Haible  <bruno@clisp.org>
62293
62294                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62295                 available as variable CONF_JAVA, for subsequent autoconf
62296                 tests. Also log error output in config.log.
62297
62298         2006-07-19  Bruno Haible  <bruno@clisp.org>
62299
62300                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62301                 that getline works on glibc2 systems. Needed to avoid trouble
62302                 in relocatable.c.
62303                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62304
62305         2005-12-04  Bruno Haible  <bruno@clisp.org>
62306
62307                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62308                 launcher (untested).
62309
62310         2005-12-04  Bruno Haible  <bruno@clisp.org>
62311
62312                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62313
62314         2006-07-22  Bruno Haible  <bruno@clisp.org>
62315
62316                 * gettext.m4: Update from GNU gettext-0.15.
62317                 * nls.m4: Likewise.
62318                 * po.m4: Likewise.
62319                 * inttypes-pri.m4: Likewise.
62320                 * inttypes-h.m4: Renamed from inttypes.m4.
62321                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62322
62323 2006-07-22  Bruno Haible  <bruno@clisp.org>
62324
62325         Merge from GNU gettext 0.15.
62326
62327         2005-07-05  Bruno Haible  <bruno@clisp.org>
62328
62329                 * printf-args.c (printf_fetchargs): Work around broken
62330                 definition of wint_t on mingw.
62331
62332         2005-02-12  Bruno Haible  <bruno@clisp.org>
62333
62334                 * xallocsa.h: Add extern "C" for C++.
62335
62336         2006-05-17  Bruno Haible  <bruno@clisp.org>
62337
62338                 Cygwin portability.
62339                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62340
62341         2006-04-30  Bruno Haible  <bruno@clisp.org>
62342
62343                 * progreloc.c: Include <mach-o/dyld.h> if available.
62344                 (find_executable): Use _NSGetExecutablePath when possible.
62345
62346         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62347
62348                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62349                 function.
62350
62351         2005-12-29  Bruno Haible  <bruno@clisp.org>
62352
62353                 * progreloc.c (set_program_name_and_installdir): Fix
62354                 compilation error.
62355
62356         2005-12-04  Bruno Haible  <bruno@clisp.org>
62357
62358                 Cygwin portability.
62359                 * progreloc.c: Include <windows.h> also on Cygwin.
62360                 (find_executable): Add support for Cygwin.
62361                 (set_program_name_and_installdir): Handle also platforms with
62362                 nonempty EXEEXT.
62363
62364         2006-07-11  Bruno Haible  <bruno@clisp.org>
62365
62366                 * javacomp.c: Fix a comment.
62367                 Reported by Jim Meyering.
62368
62369         2006-04-30  Bruno Haible  <bruno@clisp.org>
62370
62371                 * javacomp.h (compile_java_class): Add source_version,
62372                 target_version arguments.
62373                 * javacomp.c: Rewritten to choose only a compiler that
62374                 respects the specified source_version and target_version.
62375
62376         2006-06-27  Bruno Haible  <bruno@clisp.org>
62377
62378                 Assume correct S_ISDIR macro.
62379                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62380
62381         2006-07-22  Bruno Haible  <bruno@clisp.org>
62382
62383                 * javaversion.h: New file, from GNU gettext.
62384                 * javaversion.c: New file, from GNU gettext.
62385                 * javaversion.java: New file, from GNU gettext.
62386                 * javaversion.class: New file, from GNU gettext.
62387
62388         2006-05-17  Bruno Haible  <bruno@clisp.org>
62389
62390                 Cygwin portability.
62391                 * javaexec.c (execute_java_class): Test for jview program
62392                 also on Cygwin.
62393
62394         2006-04-09  Bruno Haible  <bruno@clisp.org>
62395
62396                 * fatal-signal.c: Don't include string.h.
62397                 (at_fatal_signal): Use a copying loop instead of memcpy.
62398
62399         2005-12-04  Bruno Haible  <bruno@clisp.org>
62400
62401                 * csharpexec.c: Add support for 'clix' launcher (untested).
62402                 (execute_csharp_using_sscli): New function.
62403                 (execute_csharp_program): Call it.
62404
62405         2006-06-21  Bruno Haible  <bruno@clisp.org>
62406
62407                 Avoid warnings from recent versions of mcs.
62408                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62409                 -o, -L, -r any more. Use options documented since mcs-1.0
62410                 instead. Similarly for -g.
62411
62412         2005-07-09  Bruno Haible  <bruno@clisp.org>
62413
62414                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62415                 add a .dll suffix.
62416                 Reported by Mark Junker <mjscod@gmx.de>.
62417
62418         2006-06-17  Bruno Haible  <bruno@clisp.org>
62419
62420                 * config.charset: Update for NetBSD 3.0.
62421
62422         2006-05-17  Bruno Haible  <bruno@clisp.org>
62423
62424                 Cygwin portability.
62425                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62426
62427         2006-05-16  Bruno Haible  <bruno@clisp.org>
62428
62429                 * localcharset.c [CYGWIN]: Include <windows.h>.
62430                 (get_charset_aliases): For Cygwin, return the same CPxxx
62431                 aliases list as under WIN32.
62432                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62433                 the environment variables. Fall back to GetACP().
62434
62435         2006-04-05  Bruno Haible  <bruno@clisp.org>
62436
62437                 * config.charset: Update Juan Manuel Guerrero's address.
62438
62439         2005-02-12  Bruno Haible  <bruno@clisp.org>
62440
62441                 * allocsa.h: Add extern "C" for C++.
62442
62443         2005-02-10  Bruno Haible  <bruno@clisp.org>
62444
62445                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62446                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62447
62448         2006-07-22  Bruno Haible  <bruno@clisp.org>
62449
62450                 * gettext.h: Update to GNU gettext-0.15.
62451
62452 2006-07-22  Bruno Haible  <bruno@clisp.org>
62453
62454         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62455         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62456         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62457
62458 2006-07-21  Eric Blake  <ebb9@byu.net>
62459
62460         * modules/stdlib-safer: New file.
62461         * MODULES.html.sh (File stream based Input/Output): Add
62462         stdlib-safer.
62463
62464 2006-07-21  Eric Blake  <ebb9@byu.net>
62465
62466         * lib/stdlib-safer.h: New file from coreutils, required by
62467         stdlib--.h.
62468
62469 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62472
62473 2006-07-20  Bruno Haible  <bruno@clisp.org>
62474
62475         * gnulib-tool: Recognize new option --assume-autoconf.
62476         (autoconf_minversion): New variable.
62477         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62478
62479 2006-07-20  Bruno Haible  <bruno@clisp.org>
62480
62481         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62482
62483 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62484
62485         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62486         Reindent and repaginate.
62487
62488 2006-07-19  Derek Price  <derek@ximbiot.com>
62489
62490         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62491         Correct grammar.
62492
62493 2006-07-17  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/list: New file.
62496         * modules/array-list: New file.
62497         * modules/carray-list, modules/carray-list-tests: New files.
62498         * modules/linked-list, modules/linked-list-tests: New files.
62499         * modules/avltree-list, modules/avltree-list-tests: New files.
62500         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62501         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62502         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62503         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62504         * modules/oset: New file.
62505         * modules/array-oset: New file.
62506         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62507         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62508         * tests/test-carray_list.c: New file.
62509         * tests/test-linked_list.c: New file.
62510         * tests/test-avltree_list.c: New file.
62511         * tests/test-rbtree_list.c: New file.
62512         * tests/test-linkedhash_list.c: New file.
62513         * tests/test-avltreehash_list.c: New file.
62514         * tests/test-rbtreehash_list.c: New file.
62515         * tests/test-avltree_oset.c: New file.
62516         * tests/test-rbtree_oset.c: New file.
62517         * MODULES.html.sh (Container data structures): New section.
62518
62519 2006-07-17  Bruno Haible  <bruno@clisp.org>
62520
62521         * m4/gl_list.m4: New file.
62522
62523 2006-07-17  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/gl_list.h: New file.
62526         * lib/gl_list.c: New file.
62527         * lib/gl_array_list.h: New file.
62528         * lib/gl_array_list.c: New file.
62529         * lib/gl_carray_list.h: New file.
62530         * lib/gl_carray_list.c: New file.
62531         * lib/gl_linked_list.h: New file.
62532         * lib/gl_linked_list.c: New file.
62533         * lib/gl_anylinked_list1.h: New file.
62534         * lib/gl_anylinked_list2.h: New file.
62535         * lib/gl_avltree_list.h: New file.
62536         * lib/gl_avltree_list.c: New file.
62537         * lib/gl_anyavltree_list1.h: New file.
62538         * lib/gl_anyavltree_list2.h: New file.
62539         * lib/gl_rbtree_list.h: New file.
62540         * lib/gl_rbtree_list.c: New file.
62541         * lib/gl_anyrbtree_list1.h: New file.
62542         * lib/gl_anyrbtree_list2.h: New file.
62543         * lib/gl_anytree_list1.h: New file.
62544         * lib/gl_anytree_list2.h: New file.
62545         * lib/gl_linkedhash_list.h: New file.
62546         * lib/gl_linkedhash_list.c: New file.
62547         * lib/gl_anyhash_list1.h: New file.
62548         * lib/gl_anyhash_list2.h: New file.
62549         * lib/gl_avltreehash_list.h: New file.
62550         * lib/gl_avltreehash_list.c: New file.
62551         * lib/gl_rbtreehash_list.h: New file.
62552         * lib/gl_rbtreehash_list.c: New file.
62553         * lib/gl_anytreehash_list1.h: New file.
62554         * lib/gl_anytreehash_list2.h: New file.
62555
62556         * lib/gl_oset.h: New file.
62557         * lib/gl_oset.c: New file.
62558         * lib/gl_array_oset.h: New file.
62559         * lib/gl_array_oset.c: New file.
62560         * lib/gl_avltree_oset.h: New file.
62561         * lib/gl_avltree_oset.c: New file.
62562         * lib/gl_rbtree_oset.h: New file.
62563         * lib/gl_rbtree_oset.c: New file.
62564         * lib/gl_anytree_oset.h: New file.
62565
62566 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * m4/mkancesdirs.m4: New file.
62569         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62570         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62571         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62572         it.
62573
62574 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62577         * lib/mkancesdirs.h: New files.
62578         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62579         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62580         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62581         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62582         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62583         callers changed.  Revamp internals significantly, by not
62584         attempting to create directories that are temporarily more
62585         permissive than the final results.  Do not attempt to use
62586         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62587         This removes some race conditions, fixes some bugs, and simplifies
62588         things.  Use new dirchownmod function to do owner and mode changes.
62589         * lib/mkdir-p.h: Likewise.
62590         * lib/modechange.c (octal_to_mode): New function.
62591         (struct mode_change): New member mentioned.
62592         (make_node_op_equals): New arg mentioned.  All callers changed.
62593         (mode_compile): Keep track of which mode bits the user has explicitly
62594         mentioned.
62595         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62596         New arg PMODE_BITS, to keep track of which mode bits the user
62597         mentioned; it treats S_ISUID and S_ISGID speciall.
62598         All callers changed.
62599         * lib/modechange.h: Likewise.
62600
62601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * MODULES.html.sh: Add mkancestors.
62604         * modules/mkancesdirs: New module.
62605         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62606         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62607         The chdir-safer and afs files are now orphans; I'll remove them
62608         unless someone speaks up.
62609         Add lib/dirchownmod.c, lib/dirchownmod.h.
62610         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62611         Add lchown, mkancesdirs.
62612         (Maintainer): Add self.
62613
62614 2006-07-15  Karl Berry  <karl@gnu.org>
62615
62616         * gnulib-tool: help message wording/arrangement.
62617
62618 2006-07-14  Simon Josefsson  <jas@extundo.com>
62619
62620         * doc/gnulib.texi (Libtool and Windows): New section.
62621
62622 2006-07-12  Simon Josefsson  <jas@extundo.com>
62623
62624         * modules/gendocs (License): Fix license, approved by Karl.
62625
62626 2006-07-12  Eric Blake  <ebb9@byu.net>
62627
62628         * MODULES.html.sh: Add gendocs.
62629
62630 2006-07-11  Eric Blake  <ebb9@byu.net>
62631
62632         * modules/fdl: New module, to install doc/fdl.texi.
62633         * MODULES.html.sh: Add new section for documentation modules.
62634         * gnulib-tool: Avoid space-tab.
62635         (--doc-base): New option, to manage files from doc.
62636
62637 2006-07-11  Eric Blake  <ebb9@byu.net>
62638
62639         * m4/absolute-header.m4: Fix comments to match recent change.
62640
62641 2006-07-11  Eric Blake  <ebb9@byu.net>
62642
62643         * gnulib-tool: List --doc-base before --tests-base.
62644
62645 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62646
62647         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62648
62649 2006-07-11  Bruno Haible  <bruno@clisp.org>
62650
62651         * README: Mention where to put documentation.
62652
62653 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62654
62655         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62656
62657 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62660         to stdint.m4.
62661
62662 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62663
62664         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62665         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62666         "no/such/file/stdint.h" when there is no such file, so that
62667         the resulting C code can be parsed by dodgy compilers.
62668         Problems reported by Bob Proulx.
62669
62670 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62671
62672         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62673         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62674         macros into the GNU _D_EXACT_NAMLEN.
62675         * lib/savedir.c:  Likewise.
62676         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62677
62678 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62679         and Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62682         * m4/savedir.m4:
62683         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62684         macros into the GNU _D_EXACT_NAMLEN.
62685
62686 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62689         around the absolute name, to work around a problem with the HP-UX
62690         11.23 native C compiler, reported by Bob Proulx.
62691
62692 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * doc/maintain.texi, make-stds.texi: Sync from
62695         <http://savannah.gnu.org/projects/gnustandards>.
62696
62697 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62698
62699         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62700
62701 2006-07-09  Jim Meyering  <jim@meyering.net>
62702
62703         * m4/glob.m4: Remove a doubled word in a comment.
62704
62705 2006-07-09  Jim Meyering  <jim@meyering.net>
62706
62707         * lib/argp-pv.c: Remove a doubled word in a comment.
62708         * lib/check-version.c (check_version): Likewise.
62709         * lib/javacomp.c (compile_java_class): Likewise.
62710
62711 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62714         for the benefit of people using Autoconf 2.60.  If you want to
62715         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62716         (or m4/onceonly.m4, if pre-2.57) manually.
62717
62718 2006-07-08  Jim Meyering  <jim@meyering.net>
62719
62720         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62721         comment.
62722         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62723         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62724         comment.
62725
62726 2006-07-08  Jim Meyering  <jim@meyering.net>
62727
62728         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62729
62730 2006-07-07  Simon Josefsson  <jas@extundo.com>
62731
62732         * tests/test-crc.c: Change expected crc value, the test vector
62733         were probably computed using the old broken crc.c?
62734
62735 2006-07-06  Simon Josefsson  <jas@extundo.com>
62736
62737         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62738         now the canonical place for the M4 file).
62739
62740         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62741         from the sys_socket dependency now.
62742
62743         * modules/inet_pton (Files): Ditto.
62744
62745         * modules/inet_ntop (Files): Ditto.
62746
62747 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62748
62749         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62750         not gl_PREREQ_GETUSERSHELL.
62751
62752 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62753
62754         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62755         with only one argument, for Autoconf 2.60.
62756         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62757         expand to nothing, so add a shell command to avoid syntax error.
62758         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62759
62760 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62761
62762         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62763
62764 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62767         no longer needed.  Check for isblank decl.
62768         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62769         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62770         of existence.
62771
62772 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         * lib/getloadavg.c: Use __VMS, not VMS.
62775         * lib/getopt.c: Likewise.
62776         * lib/getpagesize.h: Likewise.
62777         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62778         and probably does not work.
62779
62780 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * lib/.cppi-disable: Add wcwidth.
62783         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62784         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62785         (ISGRAPH): Remove.  All uses changed to isgraph.
62786         (FOLD) [!defined _LIBC]: Remove special case.
62787         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62788         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62789         HAVE_ISBLANK.
62790         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62791         case.
62792
62793 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62794
62795         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62796         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62797         brackets.  Other minor changes to suppress some compiler
62798         warnings.
62799
62800 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62801         and Paul Eggert  <eggert@cs.ucla.edu>
62802
62803         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62804         of invoking obsolescent AC_HEADER_DIRENT macro.
62805         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62806         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62807         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62809         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62810         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62811         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62812         * m4/readdir.m4: Remove; no longer needed.
62813
62814 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62815         and Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62818         Don't worry about this obsolete case any more.
62819         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62820         directories.
62821         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62822         worry about this obsolete case any more.
62823         * lib/fts.c: Likewise.
62824         * lib/getcwd.c: Likewise.
62825         * lib/glob.h: Likewise.
62826         * lib/savedir.c: Likewise.
62827
62828 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62831         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62833         needed.
62834         All uses removed.
62835         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62836         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62837         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62838         needed.
62839         * m4/getdate.m4 (gl_GETDATE): Likewise.
62840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62841         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62842         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62843         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62844         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62846         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62847         needed.
62848
62849 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * lib/memcasecmp.c: Include <limits.h>.
62852         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62853         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62854         Don't assume isdigit succeeds only on '0' through '9'.
62855
62856 2006-07-05  Eric Blake  <ebb9@byu.net>
62857
62858         * modules/getaddrinfo (Depends-on): Add snprintf.
62859
62860 2006-07-05  Eric Blake  <ebb9@byu.net>
62861
62862         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62863         to avoid 'header present but could not be compiled' on cygwin.
62864
62865 2006-07-05  Eric Blake  <ebb9@byu.net>
62866
62867         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62868         missing from netdb.h.
62869         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62870
62871 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62872
62873         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62874         no longer needed.
62875         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62876         * m4/getdate.m4 (gl_GETDATE): Likewise.
62877         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62878         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62879         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62880         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62881         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62882
62883 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62884
62885         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62886         All uses of is_space replaced by isspace.
62887         * lib/exit.h: Don't talk about STDC_HEADERS.
62888         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62889         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62890         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62891         replaced by isprint etc.
62892         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62893         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62894         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62895         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62896         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62897         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62898
62899 2006-07-05  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62902         the function exists, before testing against AIX.
62903         Reported by Martin Lambers <marlam@marlam.de>.
62904
62905 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62908         From Mark D. Baushke.
62909
62910 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62911
62912         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62913         to the absolute name, not just one, to bypass Sun C 5.8's
62914         "warning: #include of /usr/include/... may be non-portable".
62915
62916 2006-07-04  Eric Blake  <ebb9@byu.net>
62917
62918         * modules/dirname-tests: New test module.
62919         * tests/test-dirname.c: New file, replacing dirname.c
62920         TEST_DIRNAME section that was recently deleted.
62921
62922 2006-07-04  Bruno Haible  <bruno@clisp.org>
62923
62924         Assume ANSI C header files and <ctype.h> functions.
62925         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62926         (mbsnwidth): Use isprint, iscntrl instead.
62927
62928 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         Merge from coreutils.
62931         * MODULES.html.sh: Add xstrtold.
62932         * modules/xstrtold: New file.
62933         * modules/cycle-check (Files): Add lib/same-inode.h.
62934         * modules/dirname (Files): Add m4/double-slash-root.m4.
62935         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62936         * modules/mkdir-p (Files): Add lib/same-inode.h.
62937         * modules/same (Files): Add lib/same-inode.h.
62938
62939 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62940
62941         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62942         This is to keep the terminology clean; POSIX talks about
62943         "absolute pathnames", not "full pathnames", but the GNU
62944         Coding Standards say to use "path" for something else;
62945         so use "absolute" to keep both sides happy.
62946         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62947         Set gl_absolute_header, not gl_full_header_path.
62948         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62949         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62950         All uses changed.
62951
62952         Merge from coreutils.
62953
62954         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62955
62956         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62957         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62958         want to require the building of c-strtod.o.
62959         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62960         needs -lm directly.
62961         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62962
62963         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62966         --as-needed option if available.  Problem reported by Albert Chin in
62967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62968         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62969         cc merely issues a bunch of annoying warnings for --as-needed
62970         (this problem was reported by Bob Proulx).  Also, try linking with
62971         -lm to detect a bug in binutils 2.16 (this problem was reported
62972         by Ralf Wildenhues).
62973
62974         2006-06-18  Jim Meyering  <jim@meyering.net>
62975
62976         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62977         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62978         macro.
62979         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62980         also check for glibc-2.4's abort-inducing bug.
62981
62982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62983         Low-probability clean-up should be to use rmdir to get rid of
62984         the just-created directory, not unlink.
62985
62986         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62987         configure fail, and request a bug report to inform us about it.
62988         Add a comment that, barring reports to the contrary, in 2007 we'll
62989         assume ftruncate is universally available.
62990
62991         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62994
62995         2006-03-12  Jim Meyering  <jim@meyering.net>
62996
62997         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62998         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62999         * m4/same.m4 (gl_SAME): Likewise.
63000         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63001
63002         2006-03-11  Eric Blake  <ebb9@byu.net>
63003
63004         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63005         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63006         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63007         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63008
63009 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63010
63011         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63012         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63013         reported by Mark D. Baushke, one in
63014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63015
63016         Merge from coreutils.
63017
63018         * lib/.cppi-disable: Add stdint_.h.
63019         * lib/.cvsignore: Add stdint.h.
63020
63021         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63022
63023         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63024         both double and long double versions.
63025         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63026         * lib/xstrtold.c: New file.
63027         * lib/xstrtod.h (xstrtold): New decl.
63028
63029         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * lib/filemode.c (setst): Remove.
63032         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63033         (arguably) clearer, and the generated code is a bit smaller on my
63034         Debian GNU/Linux stable x86 host.
63035
63036         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63039         Assume that filemode.h includes sys/types.h and sys/stat.h.
63040         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63041         (ftypelet): Reorder to put common cases first, for efficiency.
63042         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63043         to do 'M'.
63044         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63045         of 10, for compatibility with FreeBSD.  All callers changed.
63046         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63047         types that can't be deduced solely from st_mode.  First arg is now a
63048         const pointer.
63049         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63050         (strmode): Renamed from mode_string.
63051         (filemodestring): New decl.
63052         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63053         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63054         needed.
63055         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63056
63057         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63060         fsusage.h now does that.  Include fsusage.h first, to test interface.
63061         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63062         at most one method (the old code could have generated decls that
63063         didn't conform to C89, not that this was ever exercised).
63064         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63065
63066         2006-03-19  Jim Meyering  <jim@meyering.net>
63067
63068         Work even in a chroot where d_ino values for entries in "/"
63069         don't match the stat.st_ino values for the same names.
63070         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63071         number, iterate through all entries again, using lstat instead.
63072         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63073         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63074
63075         * lib/getcwd.c (__getcwd): Clarify a comment.
63076         Use memcpy in place of a call to strcpy.
63077
63078         2006-03-12  Jim Meyering  <jim@meyering.net>
63079
63080         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63081         matches that of the current directory (which we're about to chdir ".."
63082         out of), then save the dev-ino of the parent, instead.
63083
63084         * lib/same-inode.h (SAME_INODE): New file/macro.
63085         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63086         Include "same-inode.h", instead.
63087         * lib/same.c: Likewise.
63088         * lib/cycle-check.h: Include "same-inode.h".
63089         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63090         * lib/cycle-check.c (SAME_INODE): Remove definition.
63091         * lib/root-dev-ino.h: Include "same-inode.h".
63092
63093         2006-03-11  Eric Blake  <ebb9@byu.net>
63094
63095         * lib/same.c (same_name): s/base_name/last_component/
63096         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63097         * lib/filenamecat.c (file_name_concat): Likewise.
63098
63099         2006-03-11  Eric Blake  <ebb9@byu.net>,
63100                     Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63103         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63104         drive prefix.
63105         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63106         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63107         (last_component): New method.
63108         * lib/dirname.c (dir_len): Determine when drive letters need a
63109         subsequent slash.  Preserve // when it is special.
63110         (dir_name): Don't append dot when drive letter is absolute.
63111         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63112         * lib/basename.c (base_name): New semantics - malloc the result.
63113         Preserve // when it is special.  Preserve relative files that look
63114         like drive letters.
63115         (base_len): Preserve // when it is special.
63116         (last_component): New method, similar to old base_name semantics.
63117         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63118         base_name.  Strip redundant slashes from ///.
63119
63120 2006-07-03  Jim Meyering  <jim@meyering.net>
63121
63122         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63123         macro is used before the first cycle_check call.
63124
63125 2006-07-03  Eric Blake  <ebb9@byu.net>
63126
63127         * modules/dirname (Depends-on): Add xstrndup.
63128
63129 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63132         test cases, so that config.log is a bit easier to follow.
63133
63134 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63137         both are 64 bits, since this seems to be the tradition, and this
63138         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63139         we ever run into a host that prefers long long to long in this
63140         case, we'll need another configure-time test.  Problem reported by
63141         Jim Meyering.
63142
63143 2006-07-02  Eric Blake  <ebb9@byu.net>
63144
63145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63146
63147 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         * modules/inttypes (Depends-on): No longer depends on stdint.
63150         * modules/stdint (Description): Say more about assumptions.
63151         Say that the fast types might differ.  Say macros are used.
63152         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63153         (Makefile.am): Revise list of substituted symbols to match
63154         new stdint.m4.
63155         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63156         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63157         * tests/test-stdint.c (verify_same_types)
63158         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63159         the code conforms to C99/C89.
63160         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63161         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63162
63163 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63166         but fix a bug, by requiring at least 64 bits.
63167         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63168         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63169         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63170         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63171
63172         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63173         changes.  Make 2.59 a prerequisite.  Check and substitute for
63174         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63175         inttypes.h.  Do not use special include files; just use the
63176         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63177         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63178         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63179         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63180         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63181         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63182         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63183         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63184         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63185         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63186         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63187         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63188         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63189         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63190         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63191         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63192         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63193         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63194         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63195         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63196         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63197         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63198         not check for things that C99 does not require, e.g., int8_t.  If
63199         a test isn't needed unless <stdint.h> isn't working, and is
63200         unlikely to be needed for any other reason, then don't do it
63201         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63202         size_t, since we assume C89 freestanding at least.  Do not check
63203         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63204         the right thing even if the types are not defined.  Instead use:
63205         (gl_STDINT_TYPE_PROPERTIES): New macro.
63206         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63207         testing whether <sys/types.h> clashes, as Autoconf does this for
63208         us now.  All uses removed.
63209         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63210         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63211         (gl_CHECK_TYPE_SAME):
63212         Remove; no longer needed.
63213         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63214         exists, since we'll return 0 anyway in that case.
63215         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63216
63217 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63220         possible collision with system files.
63221         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63222         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63223         WCHAR_MIN and WCHAR_MAX in this case.
63224         (<stddef.h>): Do not include; no longer needed.
63225         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63226         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63227         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63228         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63229         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63230         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63231         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63232         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63233         !defined(__c99))]: Include in this case too, since it's harmless
63234         now.
63235         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63236         dangerous to do so.
63237         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63238         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63239         (_STDINT_MIN, _STDINT_MAX): New macros.
63240         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63241         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63242         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63243         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63244         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63245         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63246         macros, not typedefs; this simplifies things quite a bit.
63247         Use long int for all types narrower than int64_t.
63248         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63249         Define in terms of long long int or int64_t or long int,
63250         not int64_t or int32_t.  This saves some compile-time testing.
63251         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63252         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63253         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63254         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63255         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63256         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63257         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63258         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63259         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63260         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63261         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63262         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63263         undef any previous version and define our own version, for
63264         simplicity and consistency with the new macros for types.
63265         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63266         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63267         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63268         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63269         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63270         @WINT_T_SUFFIX@ to keep things simple here.
63271         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63272         Simplify by assuming typical 8/16/32/64 host, since we're
63273         already doing that elsewhere anyway.
63274         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63275         and assume long long int is 64 bits if available.  This
63276         speeds up 'configure'.
63277
63278 2006-07-01  Eric Blake  <ebb9@byu.net>
63279
63280         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63281         Reported by Andreas Buening.
63282
63283 2006-07-01  Eric Blake  <ebb9@byu.net>
63284
63285         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63286
63287 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63288
63289         * lib/getaddrinfo.c: fixed typo
63290
63291 2006-06-29  Jim Meyering  <jim@meyering.net>
63292
63293         * modules/strftime (Maintainer): Add my name, since with the
63294         FPRINTFTIME changes strftime.c has forked from glibc.
63295
63296 2006-06-29  Eric Blake  <ebb9@byu.net>
63297
63298         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63299
63300 2006-06-29  Eric Blake  <ebb9@byu.net>
63301
63302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63303
63304 2006-06-29  Eric Blake  <ebb9@byu.net>
63305
63306         * lib/stat_.h: New file.
63307
63308 2006-06-29  Eric Blake  <ebb9@byu.net>
63309
63310         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63311         unused static function.
63312
63313 2006-06-29  Eric Blake  <ebb9@byu.net>
63314
63315         * doc/functions.texi (Function Portability): Document missing lstat
63316         on mingw.
63317
63318 2006-06-29  Eric Blake  <ebb9@byu.net>
63319
63320         * MODULES.html.sh: Add sys_stat.
63321         * modules/sys_stat: New module.
63322         * modules/mkstemp (Depends-on): Add sys_stat.
63323
63324 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63325
63326         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63327
63328 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63329
63330         * m4/c-bs-a.m4: Removed.
63331
63332 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63333
63334         * lib/strftime.c: Assume strftime() exists.
63335
63336 2006-06-29  Derek Price  <derek@ximbiot.com>
63337
63338         * modules/c-bs-a: Removed - \a is C89.
63339         * MODULES.html.sh: Remove c-bs-a.
63340
63341 2006-06-29  Bruno Haible  <bruno@clisp.org>
63342
63343         * modules/wcwidth (License): Change to LGPL.
63344
63345 2006-06-28  Simon Josefsson  <jas@extundo.com>
63346
63347         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63348         on _WIN32.
63349
63350         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63351         getnameinfo.
63352
63353 2006-06-28  Simon Josefsson  <jas@extundo.com>
63354
63355         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63356
63357 2006-06-28  Simon Josefsson  <jas@extundo.com>
63358
63359         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63360         functions there.  It will succeed on Windows XP, but on Windows
63361         2000 and (presumably) earlier, it will fail, and use the internal
63362         re-implementation.
63363         (use_win32_p): New function.
63364         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63365         Support AI_NUMERICSERV to disable getservbyname.
63366         (getnameinfo): New function, only supports
63367         NI_NUMERICHOST|NI_NUMERICSERV for now.
63368
63369         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63370         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63371         getnameinfo.
63372
63373 2006-06-28  Eric Blake  <ebb9@byu.net>
63374
63375         * modules/wcwidth: New file.
63376         * modules/mbchar (Depends-on): Add wcwidth.
63377         * modules/mbswidth (Depends-on): Add wcwidth.
63378         * MODULES.html.sh: Add wcwidth.
63379
63380 2006-06-28  Eric Blake  <ebb9@byu.net>
63381
63382         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63384
63385 2006-06-28  Eric Blake  <ebb9@byu.net>
63386
63387         * lib/xvasprintf.h: Fix comments.
63388
63389 2006-06-28  Eric Blake  <ebb9@byu.net>
63390
63391         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63392         * lib/mbswidth.c (wcwidth): Move from here...
63393         * lib/wcwidth.h: ...to this new file.
63394
63395 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63396
63397         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63398
63399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63400         it's obsolete.
63401         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63402
63403 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63404
63405         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63406         Autoconf 2.60 says this stuff was obsolete.
63407
63408 2006-06-28  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63411
63412 2006-06-28  Bruno Haible  <bruno@clisp.org>
63413
63414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63415         gt_TYPE_WCHAR_T.
63416
63417 2006-06-28  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63420         declaration for wcwidth.
63421         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63422
63423 2006-06-28  Bruno Haible  <bruno@clisp.org>
63424
63425         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63426         (mkdir): Define using _mkdir.
63427
63428 2006-06-28  Bruno Haible  <bruno@clisp.org>
63429
63430         * lib/getaddrinfo.h: Fix POSIX URL.
63431         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63432         _WIN32.
63433         (use_win32_p): Make static.
63434         (getaddrinfo): Reject service name if it is empty or does not consist
63435         solely of decimal digits, or if its value is > 65535.
63436         (getnameinfo): Remove useless casts.
63437
63438 2006-06-27  Simon Josefsson  <jas@extundo.com>
63439
63440         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63441         Eggert and Martin Lambers.
63442
63443 2006-06-27  Simon Josefsson  <jas@extundo.com>
63444
63445         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63446         Eggert and Martin Lambers.
63447
63448 2006-06-27  Bruno Haible  <bruno@clisp.org>
63449
63450         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63451         result to 0, not to empty.
63452         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63453
63454 2006-06-27  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63457
63458 2006-06-26  Simon Josefsson  <jas@extundo.com>
63459
63460         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63461         present.
63462
63463 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63466         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63468
63469 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63470
63471         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63472
63473 2006-06-26  Bruno Haible  <bruno@clisp.org>
63474
63475         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63476
63477 2006-06-26  Bruno Haible  <bruno@clisp.org>
63478
63479         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63480
63481 2006-06-26  Bruno Haible  <bruno@clisp.org>
63482
63483         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63484         SGI C compiler in pre-C99 mode.
63485         Suggested by Mark D. Baushke and Larry Jones.
63486
63487 2006-06-26  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63490         WCHAR_MAX.
63491         Reported by Mark D. Baushke and Larry Jones.
63492
63493 2006-06-26  Bruno Haible  <bruno@clisp.org>
63494
63495         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63496         in pre-C99 mode.
63497         Suggested by Mark D. Baushke and Larry Jones.
63498
63499 2006-06-23  Simon Josefsson  <jas@extundo.com>
63500             Bruno Haible  <bruno@clisp.org>
63501
63502         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63503         Emit mostlyclean-local rule.
63504         (func_emit_tests_Makefile_am): Likewise.
63505         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63506
63507 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63508
63509         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63510
63511 2006-06-23  Bruno Haible  <bruno@clisp.org>
63512
63513         * tests/test-stdint.c: Update to match ISO C 99 Technical
63514         Corrigendum 1.
63515
63516 2006-06-23  Bruno Haible  <bruno@clisp.org>
63517
63518         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63519
63520 2006-06-23  Bruno Haible  <bruno@clisp.org>
63521
63522         * lib/stdint_.h: Treat IRIX like OpenBSD.
63523
63524 2006-06-23  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63527         ISO C 99 Technical Corrigendum 1.
63528
63529 2006-06-22  Simon Josefsson  <jas@extundo.com>
63530
63531         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63532         MinGW.
63533
63534 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63537         needed.  Some compiler complained about some of them.  Problem reported
63538         by Larry Jones in
63539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63540
63541 2006-06-21  Simon Josefsson  <jas@extundo.com>
63542
63543         * tests/test-getaddrinfo.c: New file.
63544
63545         * modules/getaddrinfo-tests: New file.
63546
63547         * MODULES.html.sh: Add inet_pton.
63548
63549         * modules/inet_pton: New file.
63550
63551 2006-06-21  Simon Josefsson  <jas@extundo.com>
63552
63553         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63554         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63555         of using the (limited) gnulib implementation on Windows XP.
63556
63557         * m4/inet_pton.m4: New file.
63558
63559 2006-06-21  Simon Josefsson  <jas@extundo.com>
63560
63561         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63562         variable.
63563
63564         * lib/socket_.h: Don't define WINVER.
63565
63566         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63567         slightly modified to work in gnulib.
63568
63569 2006-06-21  Simon Josefsson  <jas@extundo.com>
63570
63571         * doc/gnulib.texi (Windows sockets): Add.
63572
63573 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * lib/read-file.c (fread_file): Start with buffer allocation of
63576         0 bytes rather than 1 byte; this simplifies the code.
63577         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63578         code to free buffer and save/restore errno.
63579         (internal_read_file): Remove unused local.
63580
63581 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63584         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63585         Problem reported by Denis Excoffier in
63586         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63587
63588 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63589
63590         * modules/sys_socket, modules/socklen: Include sys/types since
63591         FreeBSD 4.x's sys/socket.h needs it.
63592
63593 2006-06-19  Simon Josefsson  <jas@extundo.com>
63594
63595         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63596
63597 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63598
63599         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63600
63601 2006-06-19  Bruno Haible  <bruno@clisp.org>
63602
63603         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63604         and FULL_PATH_INTTYPES_H in angle brackets.
63605         Reported by Mark D. Baushke <mdb@gnu.org>.
63606
63607 2006-06-17  Eric Blake  <ebb9@byu.net>
63608
63609         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63610         errno.
63611
63612 2006-06-17  Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63615         <sys/inttypes.h>.
63616
63617 2006-06-17  Bruno Haible  <bruno@clisp.org>
63618
63619         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63620         whether errno is declared. Assume <errno.h> declares errno.
63621
63622 2006-06-17  Bruno Haible  <bruno@clisp.org>
63623
63624         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63625
63626 2006-06-17  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63629         problem on Solaris 2.5.1.
63630
63631 2006-06-16  Eric Blake  <ebb9@byu.net>
63632
63633         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63634         * lib/unicodeio.c [!defined errno]: Likewise.
63635         * lib/strtol.c [!defined errno]: Likewise.
63636         * lib/strtod.c [!defined errno]: Likewise.
63637
63638 2006-06-15  Eric Blake  <ebb9@byu.net>
63639
63640         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63641
63642 2006-06-15  Eric Blake  <ebb9@byu.net>
63643
63644         * config/srclist.txt (ssize_t.m4): Lose sync.
63645
63646 2006-06-15  Bruno Haible  <bruno@clisp.org>
63647
63648         * modules/stdint (Files): Include m4/full-header-path.m4,
63649         m4/size_max.m4, m4/wchar_t.m4.
63650         (Makefile.am): Many more substitutions.
63651         * modules/stdint-tests: New file.
63652         * tests/test-stdint.c: New file.
63653
63654 2006-06-15  Bruno Haible  <bruno@clisp.org>
63655
63656         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63657         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63658         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63659         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63660         gl_CHECK_TYPE_SAME): New macros.
63661
63662 2006-06-15  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63665
63666 2006-06-15  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/stdint_.h: Rewritten to be fully auto-configured.
63669         Fixes bug on HP-UX/IA64.
63670
63671 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63672
63673         * lib/getdate.y (__attribute__): Don't define if already defined.
63674         Problem reported by Larry Jones.
63675         * lib/utimens.c (__attribute__): Likewise.
63676
63677 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63680         reported by Andreas Schwab.
63681
63682 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63683             Bruno Haible  <bruno@clisp.org>
63684
63685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63686         check for the declaration of strnlen and a run test that exposes the
63687         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63688         rpl_strndup.
63689
63690 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63691             Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63694
63695 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63696
63697         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63698         compile test, for Tru64 4.0D.
63699
63700 2006-05-28  Karl Berry  <karl@gnu.org>
63701
63702         * config/srclist.txt (printf-args.c): lose sync.
63703
63704 2006-05-26  Martin Lambers  <marlam@marlam.de>
63705
63706         * lib/getpass.c: Updates the test for the native W32 API, and adds
63707         missing includes, thus fixing compilation warnings.
63708
63709 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63710
63711         * lib/exclude.c (exclude_fnmatch): New function.
63712         (excluded_file_name): Call exclude_fnmatch.
63713         * lib/exclude.h (excluded_file_name): New prototype
63714
63715 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         * lib/tempname.c (small_open, large_open): New macros.
63718         (__open, __open64) [!_LIBC]: Remove.
63719         (__gen_tempname): Use small_open and large_open instead of __open
63720         and __open64.  This fixes a portability bug on HP-UX 11.11i
63721         reported by Simon Wing-Tang in
63722         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63723
63724 2006-05-24  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63727         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63728         Reported by Thorsten Maerz <torte@netztorte.de> via
63729         Aaron Stone <aaron@serendipity.cx>.
63730
63731 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63734         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63735         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63736         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63737         not really conditional on the cache.
63738         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63739
63740 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63741
63742         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63743         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63744         (my_usleep): Don't mishandle maximum value.
63745
63746 2006-05-19  Jim Meyering  <jim@meyering.net>
63747
63748         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63749
63750 2006-05-17  Bruno Haible  <bruno@clisp.org>
63751
63752         Cygwin portability.
63753         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63754
63755 2006-05-17  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/stdint_.h: Fix recognition of Cygwin.
63758
63759 2006-05-15  Bruno Haible  <bruno@clisp.org>
63760
63761         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63762         on libtool patch by Ralf Wildenhues.
63763
63764 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63767         test for C99 conformance; (bool) 0.5 is an integer constant
63768         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63769         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63770
63771 2006-05-11  Simon Josefsson  <jas@extundo.com>
63772
63773         * m4/xvasprintf.m4: Fix obvious typo.
63774
63775 2006-05-11  Jim Meyering  <jim@meyering.net>
63776
63777         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63778         James Lemley.
63779
63780 2006-05-10  Simon Josefsson  <jas@extundo.com>
63781
63782         * lib/md4.c: Typo fix, update copyright years.
63783         (K1, K2): Don't use L because it turn computations into 64-bit on
63784         64-bit platforms.
63785
63786 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63789         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63790         unwanted sign propagation, e.g., on hosts with 64-bit int.
63791         There still are some problems with reeelly weird theoretical hosts
63792         (e.g., 33-bit int) but it's not worth worrying about now.
63793         * lib/sha1.c (rol): Likewise.
63794         (K1, K2, K3, K4): Remove unnecessary L suffix.
63795
63796 2006-05-10  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/des.c: Cast to avoid warnings.
63799
63800 2006-05-09  Bruno Haible  <bruno@clisp.org>
63801
63802         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63803         (Depends-on): Depend also on xsize, stdarg.
63804         (configure.ac): Add gl_XVASPRINTF.
63805
63806 2006-05-09  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/xvasprintf.m4: New file.
63809
63810 2006-05-09  Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63813         (EOVERFLOW): Define fallback value.
63814         (xstrcat): New function.
63815         (xvasprintf): Recognize the special case of a string concatenation.
63816
63817 2006-05-08  Eric Blake  <ebb9@byu.net>
63818
63819         * gnulib-tool (func_version): Base copyright year on CVS date.
63820         (func_emit_copyright_notice): New function.
63821         (func_emit_lib_Makefile_am): Use it.
63822         (func_emit_tests_Makefile_am): Likewise.
63823         (func_import): Likewise.
63824
63825 2006-05-08  Bruno Haible  <bruno@clisp.org>
63826
63827         * modules/stdarg: New file.
63828         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63829
63830 2006-05-08  Bruno Haible  <bruno@clisp.org>
63831
63832         * m4/stdarg.m4: New file, from GNU gettext.
63833
63834 2006-05-08  Bruno Haible  <bruno@clisp.org>
63835
63836         * config/srclist.txt (build-aux/config.rpath): different from latest
63837         release.
63838
63839 2006-05-08  Bruno Haible  <bruno@clisp.org>
63840
63841         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63842
63843 2006-05-05  Jim Meyering  <jim@meyering.net>
63844
63845         * m4/warning.m4: New file, derived from bison's file by the same name.
63846
63847 2006-05-03  Bruno Haible  <bruno@clisp.org>
63848
63849         * lib/stdint_.h: Shorter URL.
63850         * lib/inttypes.h: Likewise.
63851
63852 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63853
63854         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63855
63856 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         * lib/verify.h: Document the internals better.  Most of this change
63859         was written by Bruno Haible.
63860
63861 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * doc/verify.texi: New file, partly based on a proposal by
63864         Bruno Haible.
63865
63866 2006-05-02  Bruno Haible  <bruno@clisp.org>
63867
63868         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63869         test from here...
63870         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63871
63872 2006-04-29  Bruno Haible  <bruno@clisp.org>
63873
63874         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63875         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63876
63877 2006-04-29  Bruno Haible  <bruno@clisp.org>
63878
63879         * gnulib-tool: Make --update option actually work.
63880
63881 2006-04-29  Bruno Haible  <bruno@clisp.org>
63882
63883         * doc/gcd.texi: New file.
63884         * doc/gnulib.texi: Include it.
63885
63886 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * lib/getdate.y (get_date): When adding relative date, start with the
63889         initial time, not with the result of the first mktime call.
63890
63891 2006-04-25  Bruno Haible  <bruno@clisp.org>
63892
63893         * gnulib-tool (func_import): Output the include directives in three
63894         blocks, sorted separately.
63895         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63896
63897 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63900         to define main with arguments, for C++.  Reported by Eric Blake.
63901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63902         Prefer 'int main ()' to 'int main (void)', for C++.
63903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63905         for 'main', for C99 and C++.
63906
63907 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63910         Don't assume that exit status -1 is valid.
63911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63912         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63913         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63914         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63915         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63916         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63917         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63918         functions can be used without declaring them, or that you can
63919         exit with status -1.
63920         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63921
63922 2006-04-24  Karl Berry  <karl@gnu.org>
63923
63924         * config/srclist.txt (longdouble.m4): sync lost.
63925
63926 2006-04-24  Eric Blake  <ebb9@byu.net>
63927
63928         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63929
63930 2006-04-24  Bruno Haible  <bruno@clisp.org>
63931
63932         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63933         poll() implementation in AIX.
63934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63935
63936 2006-04-24  Bruno Haible  <bruno@clisp.org>
63937
63938         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63939         assigned exactly once.
63940
63941 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63942             Bruno Haible  <bruno@clisp.org>
63943
63944         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63945         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63946         for AM_CPPFLAGS.
63947
63948 2006-04-23  Bruno Haible  <bruno@clisp.org>
63949
63950         * modules/copy-file: Depend on unistd.
63951         * modules/execute: Likewise.
63952         * modules/fatal-signal: Likewise.
63953         * modules/findprog: Likewise.
63954         * modules/mkdtemp : Likewise.
63955         * modules/pipe: Likewise.
63956         * modules/wait-process: Likewise.
63957
63958 2006-04-23  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63961         condition was already detected.
63962         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63963
63964 2006-04-23  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/copy-file.c: Include <unistd.h> unconditionally.
63967         * lib/execute.c: Likewise.
63968         * lib/fatal-signal.c: Likewise.
63969         * lib/findprog.c: Likewise.
63970         * lib/mkdtemp.c: Likewise.
63971         * lib/pipe.h: Likewise.
63972         * lib/pipe.c: Likewise.
63973         * lib/wait-process.h: Likewise.
63974
63975 2006-04-23  Bruno Haible  <bruno@clisp.org>
63976
63977         * gnulib-tool (func_usage): Fix --import description. Document
63978         --update.
63979         (func_import): Create temporary file in a temporary directory, if
63980         --dry-run is specified. Silence errors from 'grep' when there are no
63981         m4 files in $m4dir.
63982         (func_create_testdir): Silence errors from 'grep' when there are no
63983         m4 files in $m4dir.
63984         Reported by Karl Berry <karl@freefriends.org>.
63985
63986 2006-04-20  Bruno Haible  <bruno@clisp.org>
63987
63988         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63989         one argument, so that the code will be portable to Autoconf 2.60.
63990         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63991         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63992         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63993
63994 2006-04-19  Derek Price  <derek@ximbiot.com>
63995             Eric Blake  <ebb9@byu.net>
63996
63997         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63998         rather than "/full/path.h".  Update comment to match.  Shorten &
63999         generalize m4_translit call via AS_TR_CPP.
64000
64001 2006-04-19  Derek Price  <derek@ximbiot.com>
64002             Eric Blake  <ebb9@byu.net>
64003
64004         * lib/inttypes.h: Correct grammar in comment.
64005
64006 2006-04-18  Derek Price  <derek@ximbiot.com>
64007             Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * modules/inttypes: New file.
64010         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64011
64012 2006-04-18  Derek Price  <derek@ximbiot.com>
64013             Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64016         New files.
64017
64018 2006-04-18  Derek Price  <derek@ximbiot.com>
64019             Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/inttypes.h: New file.
64022         * lib/strtoimax.c: Assume <inttypes.h>.
64023
64024 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64025
64026         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64027         isn't mounted.  Problem reported by Kir Kolyshkin.
64028
64029 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64032         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64033         Derek R. Price.
64034         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64035         implementation.
64036
64037 2006-04-12  Eric Blake  <ebb9@byu.net>
64038
64039         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64040         is now done automatically by the corresponding Autoconf macro.
64041
64042 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64045         time_r.h.
64046
64047 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64048
64049         Merge regex changes from libc, removing some of our
64050         POSIX-conformance changes that were rejected and redoing them in a
64051         less-intrusive way.
64052
64053         * lib/regcomp.c (re_compile_internal, init_dfa):
64054         Length arg is now size_t, not Idx.  All uses changed.
64055         (peek_token): Forward decl now says internal_function.
64056         (__re_error_msgid, __re_error_msgid_idx):
64057         Now static rather than extern with attribute_hidden.
64058         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64059         For some reason libc prefers K&R style defns for external functions.
64060         (regerror) [!defined _LIBC]: Likewise.
64061         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64062         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64063         (build_range_exp, build_collating_symbol):
64064         Use K&R-style defn.
64065         (re_compile_fastmap): Use '\0' to memset, not 0.
64066         (utf8_sb_map): Make the calculations more obvious.
64067         (init_dfa, parse_bracket_exp, build_charclass_op):
64068         Call calloc and cast result, as glibc does.
64069         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64070         (build_range_exp, build_collating_symbol):
64071         Now internal functions.
64072
64073         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64074
64075         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64076         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64077         Don't depend on VMS; depend on __VMS instead, for POSIX
64078         namespace cleanness.
64079         (regoff_t): Define to ssize_t, not long int.
64080
64081         Remove the REG_ macros named below.  Instead, make the old names
64082         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64083         __USE_GNU_REGEX.
64084         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64085         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64086         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64087         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64088         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64089         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64090         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64091         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64092         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64093         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64094         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64095         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64096         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64097         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64098         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64099         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64100         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64101         (REG_NREGS):
64102         Remove.  All uses replaced by the old RE_* names.
64103         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64104         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64105         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64106         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64107         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64108         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64109         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64110         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64111         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64112         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64113         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64114         Don't bother having these macros be independent of each others'
64115         values, since they no longer exist in the POSIX name space.
64116
64117         Rename the following member names back to their old names,
64118         unless !__USE_GNU_REGEX.  All uses changed back.
64119         (buffer): Renamed from re_buffer.
64120         (allocated): Renamed from re_allocated.
64121         (used): Renamed from re_used.
64122         (syntax): Renamed from re_syntax.
64123         (fastmap): Renamed from re_fastmap.
64124         (translate): Renamed from re_translate.
64125         (can_be_null): Renamed from re_can_be_null.
64126         (regs_allocated): Renamed from re_regs_allocated.
64127         (fastmap_accurate): Renamed from re_fastmap_accurate.
64128         (no_sub): Renamed from re_no_sub.
64129         (not_bol): Renamed from re_not_bol.
64130         (not_eol): Renamed from re_not_eol.
64131         (newline_anchor): Renamed from re_newline_anchor.
64132         (num_regs): Renamed from rm_num_regs.
64133         (start): Renamed from rm_start.
64134         (end): Renamed from rm_end.
64135
64136         (free_state): Move up a bit.
64137
64138         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64139         #define to be empty.
64140         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64141         when that is what is intended.
64142         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64143         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64144         (MAX): New macro.
64145         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64146         All uses changed back to re_malloc, etc.  It's now the caller's
64147         responsibility to check for overflow; all callers changed.
64148         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64149         (re_x2nrealloc): Remove.
64150         (free_state): Remove decl.
64151
64152         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64153         (re_set_registers, re_exec):
64154         Use K&R-style defn.
64155
64156         2006-01-31  Roland McGrath  <roland@redhat.com>
64157
64158         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64159         Reported by Mike Frysinger <vapier@gentoo.org>.
64160
64161         2006-01-15  Andreas Jaeger  <aj@suse.de>
64162
64163         [BZ #1950]
64164         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64165         build_wcs_upper_buffer change.
64166         (build_wcs_upper_buffer): Change return type.
64167
64168         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64169
64170         * lib/regex_internal.h: Include <stdint.h> if available.
64171
64172         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64173
64174         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64175
64176         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64177
64178         * lib/regcomp.c: Adjust for changed secondary hash function.
64179
64180         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64181
64182         * lib/regex.h: Pretty printing.
64183         Clean up namespace a bit.
64184
64185         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64186
64187         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64188         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64189
64190         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64191                     Ulrich Drepper  <drepper@redhat.com>
64192
64193         [BZ #1302]
64194         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64195         changed.
64196         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64197
64198         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64199
64200         [BZ #281]
64201         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64202         * lib/regcomp.c: Remove unnecessary uses of
64203         unsigned RE_TRANSLATE_TYPE.
64204         * lib/regex_internal.h: Likewise.
64205         * lib/regex_internal.c: Likewise.
64206         * lib/regexec.c: Likewise.
64207         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64208
64209         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64210
64211         * lib/regexec.c (find_recover_state): Remove unnecessary
64212         initialization.
64213         (transit_state_bkref): Make DFA a const pointer.
64214         (get_subexp): Likewise.
64215         (check_arrival): Likewise.
64216         (update_cur_sifted_state): Likewise.
64217         (re_search_internal): Likewise.
64218         (prune_impossible_nodes): Likewise.
64219         (acquire_init_state_context): Likewise.
64220         (proceed_next_node): Likewise.
64221         (set_regs): Likewise.
64222         (free_fail_stack_return): Likewise.
64223         (check_arrival_expand_ecl): Mark DFA parameter as const.
64224         (check_arrival_expand_ecl_sub): Likewise.
64225         (check_subexp_limits): Likewise.
64226         (sub_epsilon_src_nodes):  Likewise.
64227         (add_epsilon_src_nodes):  Likewise.
64228         (merge_state_array): Likewise.
64229         (update_regs): Likewise.
64230         (build_trtable): Likewise.
64231         (sift_states_backward): Mark MCTX parameter as const.
64232         (build_sifted_states): Likewise.
64233         (update_cur_sifted_state): Likewise.
64234         (sift_states_mkref): Likewise.
64235         (check_arrival_expand_ecl): Mark eclosure as const.
64236         (check_dst_limits_calc_pos_1): Likewise.
64237         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64238         pointer.
64239
64240         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64241
64242         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64243         (transit_state_sb): Likewise.
64244         (transit_state_mb): Likewise.
64245         (sift_states_iter_mb): Likewise.
64246         (check_arrival_add_next_nodes): Likewise.
64247         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64248         [_LIBC] (re_search_2_stub): Use mempcpy.
64249
64250         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64251         mbrtowc for very simple UTF-8 case.
64252
64253         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64254         a pointer-to-const.
64255         (re_acquire_state_context): Likewise.
64256         * lib/regex_internal.h: Adjust prototypes.
64257
64258         * lib/regex.c: Prevent using C++ compilers.
64259
64260         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64261         (re_acquire_state_context): Likewise.
64262
64263 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         * modules/regex (Depends-on): Add ssize_t.
64266
64267 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64270         translation table.
64271
64272 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64273
64274         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64275
64276 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64277             Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64280         <sys/types.h> and <inttypes.h>.
64281
64282 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64283
64284         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64285         `__error_t_defined', so argp.h will not typedef the former.
64286
64287 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64288
64289         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64290         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64291         glibc names.  Even if glibc is changed to conform to POSIX, the
64292         traditional names will be available anyway, since regex depends on
64293         the extensions module.  Also, fix a longstanding typo in the
64294         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64295         reported by Emanuele Giaquinta.  Also, change sense of cached
64296         variable, so that the message makes sense.
64297
64298 2006-03-24  Simon Josefsson  <jas@extundo.com>
64299
64300         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64301         including some doc fixes.
64302         (base64_encode_alloc): Fix +1 bug on allocation failures.
64303
64304 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64305
64306         * lib/base64.c (base64_encode): Do not read past end of array with
64307         unsanitized input on systems with CHAR_BIT > 8.
64308
64309 2006-03-24  Eric Blake  <ebb9@byu.net>
64310
64311         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64312
64313 2006-03-22  Karl Berry  <karl@gnu.org>
64314
64315         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64316         * config/srclistvars.sh (COREUTILS): new var.
64317
64318 2006-03-17  Jim Meyering  <jim@meyering.net>
64319
64320         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64321         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64322
64323 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64326         no longer needs it.  Instead, check that regoff_t is as least
64327         as wide as ptrdiff_t.
64328
64329         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64330         so that our regex.h stays compatible with the installed regex.
64331         This is helpful for installers who configure --without-included-regex.
64332         Problem reported by Emanuele Giaquinta.
64333
64334 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64335
64336         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64337         Typedef to long int, not to off_, as POSIX will likely change
64338         in that direction.
64339
64340 2006-03-15  Eric Blake  <ebb9@byu.net>
64341
64342         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64343
64344 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64345
64346         * lib/argp-help.c (validate_uparams): Fix typo
64347         * lib/argp-parse.c (argp_default_options): Consistently begin help
64348         messages with a lowercase letter.
64349
64350 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64353         overrun buffers and shouldn't be used (much as gets shouldn't be
64354         used).
64355         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64356
64357 2006-03-08  Simon Josefsson  <jas@extundo.com>
64358
64359         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64360         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64361
64362 2006-03-08  Simon Josefsson  <jas@extundo.com>
64363
64364         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64365         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64366
64367 2006-03-08  Simon Josefsson  <jas@extundo.com>
64368
64369         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64370         signal that configure disabled the device.
64371
64372 2006-03-08  Simon Josefsson  <jas@extundo.com>
64373
64374         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64375         languages.
64376
64377 2006-03-07  Simon Josefsson  <jas@extundo.com>
64378
64379         * modules/getopt (Depends-on): Add unistd.
64380
64381         * modules/unistd: New file.
64382
64383 2006-03-07  Simon Josefsson  <jas@extundo.com>
64384
64385         * modules/gc-random: New file.
64386
64387 2006-03-07  Simon Josefsson  <jas@extundo.com>
64388
64389         * m4/unistd_h.m4: New file.
64390
64391 2006-03-07  Simon Josefsson  <jas@extundo.com>
64392
64393         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64394         test to be side-effect free by storing the result in the cache
64395         variable gl_cv_lib_readline, and moving the assignment of
64396         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64397         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64398
64399 2006-03-07  Simon Josefsson  <jas@extundo.com>
64400
64401         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64402         error on missing devices (the functions will return an error).
64403
64404         * m4/gc.m4: Move random stuff to gc-random.m4
64405
64406 2006-03-07  Simon Josefsson  <jas@extundo.com>
64407
64408         * lib/unistd_.h: New file.
64409
64410 2006-03-07  Simon Josefsson  <jas@extundo.com>
64411
64412         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64413
64414 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64417         Problem reported by Juan Manuel Guerrero.
64418
64419 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64422         the unistd module.
64423         * lib/getlogin_r.c: Likewise.
64424         * lib/getlogin_r.h: Likewise.
64425         * lib/glob.c: Likewise.
64426         * lib/pagealign_alloc.c: Likewise.
64427         * lib/unistd_.h: Remove; no longer needed.
64428
64429 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64432         Add unistd.
64433         * modules/c-stack (Depends-on): Add unistd.
64434         * modules/getlogin_r: Likewise.
64435         * modules/glob: Likewise.
64436         * modules/pagealign_alloc: Likewise.
64437         * modules/unistd (Files): Remove lib/unistd_.h.
64438         (EXTRA_DIST): Remove.
64439         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64440         need unistd_.h.
64441         (MOSTLYCLEANFILES): Remove unistd.h-t.
64442
64443 2006-03-03  Simon Josefsson  <jas@extundo.com>
64444
64445         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64446
64447 2006-03-03  Simon Josefsson  <jas@extundo.com>
64448
64449         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64450         libidn and bison.
64451
64452 2006-03-03  Simon Josefsson  <jas@extundo.com>
64453
64454         * build-aux/maint.mk: Add indent target.
64455
64456 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64457
64458         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64459         our replacement poll.h in any case, to avoid a differing
64460         declaration from a system header.  Seen on AIX.
64461
64462 2006-03-01  Simon Josefsson  <jas@extundo.com>
64463
64464         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64465         <kasal@ucw.cz>.
64466
64467 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         * modules/gettime (Depends-on): Add extensions module.
64470         * modules/nanosleep (Depends-on): Likewise.
64471         * modules/settime (Depends-on): Likewise.
64472
64473 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64476         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64477         pedantically.
64478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64479         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64480
64481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64482         not "==".  Reported by Ralf Wildenhues.
64483
64484 2006-03-01  Karl Berry  <karl@gnu.org>
64485
64486         * doc/Copyright/request-*: new files, synced from gnuorg.
64487
64488 2006-03-01  Karl Berry  <karl@gnu.org>
64489
64490         * config/srclist.txt (Copyright/*): new entries.
64491
64492 2006-02-28  Simon Josefsson  <jas@extundo.com>
64493
64494         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64495
64496 2006-02-27  Simon Josefsson  <jas@extundo.com>
64497
64498         * lib/base64.h: Indent #define's.  From Jim Meyering
64499         <jim@meyering.net>.
64500
64501 2006-02-27  Jim Meyering  <jim@meyering.net>
64502
64503         Revert the change of 2006-02-24, so these files can continue
64504         to be sync'd from gettext.
64505         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64506         of `config.h'.
64507
64508 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * modules/intprops: New file.
64511         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64512         Add intprops.
64513         * modules/getloadavg (Files): Remove lib/intprops.h.
64514         (Depends-on): Add intprops.
64515         * modules/human: Likewise.
64516         * modules/inttostr: Likewise.
64517         * modules/openat: Likewise.
64518         * modules/sig2str: Likewise.
64519         * modules/userspec: Likewise.
64520         * modules/utimecmp: Likewise.
64521         * modules/xnanosleep: Likewise.
64522         * modules/xstrtol: Likewise.
64523
64524 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64525
64526         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64527         * modules/lock-tests (TESTS): Use $(EXEEXT).
64528         * modules/tls-tests: Likewise.
64529         * modules/argp-tests: Likewise.
64530         (check_PROGRAMS): New var, replacing...
64531         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64532
64533 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64534
64535         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64536         `config.h'.
64537
64538 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64541
64542 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64543
64544         Sync from coreutils.
64545         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64546         gl_CHDIR_SAFER.
64547
64548 2006-02-22  Jim Meyering  <jim@meyering.net>
64549
64550         Sync from coreutils.
64551         * m4/chdir-safer.m4: New file.
64552
64553 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64554
64555         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64556         AT_FDCWD exceeds INT_MAX.
64557         * lib/openat.h (AT_FDCWD): Likewise.
64558
64559 2006-02-17  Eric Blake  <address@hidden>
64560
64561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64562
64563 2006-02-16  Simon Josefsson  <jas@extundo.com>
64564
64565         * modules/getaddrinfo (Depends-on): Add sys_socket.
64566
64567 2006-02-15  Simon Josefsson  <jas@extundo.com>
64568
64569         * build-aux/maint.mk: Add dsyntax-check rule.
64570
64571 2006-02-15  Eric Blake  <ebb9@byu.net>
64572
64573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64574         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64575         'present but cannot compile' warnings on cygwin.
64576         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64577         use ws2tcpip.h if sys/socket.h works.
64578         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64579         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64580
64581 2006-02-14  Simon Josefsson  <jas@extundo.com>
64582
64583         * modules/maintainer-makefile (Files): Rename.
64584
64585         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64586         and (the local) Makefile.cfg to maint-cfg.mk.
64587
64588         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64589         to the latter.
64590
64591         * modules/maintainer-makefile: New module.
64592
64593         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64594         severaly stripped to make it possible to build it up from scratch
64595         with reliable tests.
64596
64597         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64598         fixes to permit overriding the default actions when configure and
64599         makefile are not available.
64600
64601 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         Sync from coreutils.
64604         * modules/lstat (Depends-on): Don't depend on xalloc.
64605         (License): Change from GPL to LGPL, since this is now simply a
64606         replacement for a libc function.
64607
64608 2006-02-14  Jim Meyering  <jim@meyering.net>
64609
64610         Sync from coreutils.
64611
64612         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64613         failure on deficient systems, and simplify gnulib lgpl dependencies.
64614         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64615         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64616
64617         * lib/xalloc-die.c: Remove unused definition of N_.
64618
64619 2006-02-14  Jim Meyering  <jim@meyering.net>
64620
64621         Sync from coreutils.
64622         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64623         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64624         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64625         double-quote uses of that variable, to accommodate the rare case in
64626         which getmntent is available in none of the libraries checked.  This
64627         happens at least on FreeBSD 5.0.
64628
64629 2006-02-13  Simon Josefsson  <jas@extundo.com>
64630
64631         * gnulib-tool (Usage): Fix --import, from
64632         karl@freefriends.org (Karl Berry).
64633
64634 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64635
64636         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64637
64638 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64639
64640         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64641         "autoupdate" on 2005-12-12.
64642
64643 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * modules/closeout (Depends-on): Remove atexit.
64646
64647 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64650         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64651
64652 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64655         __EXTENSIONS__ if this causes compilation to fail.  Problem
64656         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64657         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64658
64659 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64662         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64663         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64664         All uses changed.
64665
64666 2006-01-26  Simon Josefsson  <jas@extundo.com>
64667
64668         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64669         prototype is visible on mingw32.
64670
64671         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64672         for mingw32.
64673
64674         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64675         mingw32).
64676
64677 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64680         attempt to open for write; this always fails, at least on POSIX
64681         hosts.  This reinstates the 2006-01-09 change, which was
64682         inadvertently removed.
64683
64684 2006-01-26  Bruno Haible  <bruno@clisp.org>
64685
64686         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64687         Reported by Paul Eggert.
64688
64689 2006-01-26  Bruno Haible  <bruno@clisp.org>
64690             Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/stdbool_.h (_Bool)
64693         [(! (defined __cplusplus || defined __BEOS__)
64694           && !defined __GNUC__
64695           && !(defined __HP_cc || defined __xlc__
64696                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64697                || defined __sgi))]:
64698         #define to signed char in these cases too; this simplifies
64699         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64700         etc., separately) and makes it more conservative.
64701
64702 2006-01-25  Simon Josefsson  <jas@extundo.com>
64703
64704         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64705         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64706         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64707
64708 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64709
64710         * lib/argp-namefrob.h: Bugfix. Remove stray #
64711
64712 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64715         so that we test the test.
64716         Check for yet another HP-UX cc bug involving *bool |= bool.
64717
64718 2006-01-25  Karl Berry  <karl@gnu.org>
64719
64720         * config/srclist.txt (vasnprintf.c): sync lost.
64721
64722 2006-01-25  Jim Meyering  <jim@meyering.net>
64723
64724         Sync from the stable (b5) branch of coreutils:
64725
64726         * lib/fts.c (fts_children): Don't let close() clobber errno from
64727         failed fchdir().
64728
64729         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64730         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64731         a dangling symlink.  That can also happen at least for ELOOP.
64732         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64733         FYI, this bug predates the inclusion of fts.c in coreutils.
64734
64735         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64736         in their own block, so pre-c99 compilers don't object.
64737
64738         Avoid the double-free (first in fts_read, second in fts_close) that
64739         would occur when an `active' directory is made inaccessible (e.g.,
64740         via chmod a-x) during a traversal.
64741         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64742         before returning.  Reproduce this failure by
64743         mkdir -p a/b; cd a; chmod a-x . b
64744         Reported by Stavros Passas.
64745
64746 2006-01-25  Jim Meyering  <jim@meyering.net>
64747
64748         * lib/fileblocks.c: Remove more useless parentheses.
64749         * lib/readutmp.h: Likewise.
64750
64751 2006-01-25  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64754         warnings.
64755         Reported by Paul Eggert.
64756
64757 2006-01-25  Bruno Haible  <bruno@clisp.org>
64758
64759         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64760         rid of a trap command. For Solaris sh.
64761         Reported by Mark D. Baushke <mdb@gnu.org>.
64762
64763 2006-01-24  Simon Josefsson  <jas@extundo.com>
64764
64765         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64766         Bruno.
64767
64768 2006-01-24  Karl Berry  <karl@gnu.org>
64769
64770         * config/srclist.txt (argp-namefrob.h): sync lost.
64771
64772 2006-01-24  Jim Meyering  <jim@meyering.net>
64773
64774         * modules/openat (Files): Add lib/intprops.h.
64775         From Mark D. Baushke.
64776
64777 2006-01-24  Jim Meyering  <jim@meyering.net>
64778
64779         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64780         Reported by Mark D. Baushke.
64781
64782 2006-01-24  Jim Meyering  <jim@meyering.net>
64783
64784         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64785
64786 2006-01-24  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/strnlen (Maintainer): Change from glibc to all.
64789
64790 2006-01-24  Bruno Haible  <bruno@clisp.org>
64791
64792         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64793         Patch by Paul Eggert.
64794
64795 2006-01-24  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64798         already has it.
64799         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64800         2005-11-26.
64801
64802         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64803         'signed char' to avoid problems with the built-in _Bool type.
64804         Reported by Paul Eggert on 2005-11-26.
64805
64806 2006-01-24  Bruno Haible  <bruno@clisp.org>
64807
64808         * gnulib-tool (func_import): Avoid constructing complicated sed
64809         expressions inside backquote.
64810         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64811
64812 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64813
64814         These changes imported from libc.
64815         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64816         test and two separate function calls.
64817         * lib/strndup.c (__strndup): Add libc_hidden_def.
64818
64819 2006-01-23  Simon Josefsson  <jas@extundo.com>
64820
64821         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64822         Remove the test_*_SOURCES variable: automake infers it by default.
64823         * modules/tls-tests: Likewise.
64824
64825 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         Work around porting bugs reported by Dieter in
64828         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64829         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64830         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64831         Include "getopt.h" first, to check interface.
64832         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64833         !HAVE_DECL_GETENV.
64834         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64835         (__strndup): Revert to K&R-style function dfns, the glibc style.
64836         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64837         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64838         Include strnlen.h first, to get prototype properly.
64839         (strnlen): Renamed from __strnlen.
64840         Remove weak alias.
64841
64842 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64845
64846 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * config/srclist.txt: Adjust to reflect glibc reorganization.
64849         This affects only comments.
64850
64851 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64852
64853          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64854          Reported by Bruce Korb <bkorb@gnu.org>.
64855
64856 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64859         to pacify gcc -Wswitch-default.
64860
64861 2006-01-22  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64864         temporary buffer for sprintf, take into account the precision also
64865         for 'd', 'i', 'u', 'o', 'x', 'X'.
64866
64867 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64868
64869         * modules/argp-tests: New module
64870         * tests/test-argp.c: New file
64871         * tests/test-argp-2.sh: New file
64872
64873 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64874
64875         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64876         (__argp_base_name): Removed
64877         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64878         typo.
64879         (__argp_base_name): Provide macro definition or extern declaration
64880         depending on the configuration
64881
64882 2006-01-20  Simon Josefsson  <jas@extundo.com>
64883
64884         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64885
64886 2006-01-20  Simon Josefsson  <jas@extundo.com>
64887
64888         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64889
64890 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64893         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64894         Suggested by Bruno Haible.
64895
64896 2006-01-20  Karl Berry  <karl@gnu.org>
64897
64898         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64899         until changes propagate, I guess.
64900
64901 2006-01-19  Simon Josefsson  <jas@extundo.com>
64902
64903         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64904
64905 2006-01-19  Simon Josefsson  <jas@extundo.com>
64906
64907         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64908
64909 2006-01-19  Simon Josefsson  <jas@extundo.com>
64910
64911         * gnulib-tool: Set check_PROGRAMS.
64912
64913         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64914         modules/des-tests, modules/gc-arcfour-tests,
64915         modules/gc-arctwo-tests, modules/gc-des-tests,
64916         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64917         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64918         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64919         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64920         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64921         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64922         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64923         test_*_SOURCES.
64924
64925 2006-01-18  Simon Josefsson  <jas@extundo.com>
64926
64927         * modules/socklen (Depends-on): Depend on sys_socket.
64928
64929 2006-01-18  Simon Josefsson  <jas@extundo.com>
64930
64931         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64932         modules/des-tests, modules/gc-arcfour-tests,
64933         modules/gc-arctwo-tests, modules/gc-des-tests,
64934         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64935         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64936         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64937         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64938         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64939         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64940         $(EXEEXT) to automake TESTS variable, for mingw32.
64941
64942 2006-01-17  Simon Josefsson  <jas@extundo.com>
64943
64944         * modules/socklen (Include): Need sys/socket.h.
64945
64946 2006-01-17  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/ssize_t (Include): Add <sys/types.h>.
64949
64950 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64951
64952         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64953         it's not portable and it doesn't work with cross-compiles.
64954         Problem reported by Bruno Haible.  Fix missing-$ typo in
64955         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64956         -zignore from being used with Sun's C compiler.
64957
64958 2006-01-12  Simon Josefsson  <jas@extundo.com>
64959
64960         * lib/base64.c: Fix warning, reported by Bruno Haible
64961         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64962
64963 2006-01-12  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/ldd: New file.
64966         * build-aux/ldd.sh.in: New file.
64967         * MODULES.html.sh (Support for building libraries and executables): Add
64968         ldd.
64969
64970 2006-01-12  Bruno Haible  <bruno@clisp.org>
64971
64972         * m4/ldd.m4: New file.
64973
64974 2006-01-12  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64977         endless loop while replacing $auxdir with build-aux.
64978
64979 2006-01-11  Simon Josefsson  <jas@extundo.com>
64980
64981         * lib/stdint_.h (SIZE_MAX): Add missing (.
64982
64983 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         Sync from coreutils.
64986         * lib/md5.c: Fix commentary typos.
64987         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64988         * lib/md5.h (__attribute__): Remove; unused.
64989         * lib/sha1.c: Fix commentary to match md5 better.
64990         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64991         so that we don't need to worry about alignment.  All uses changed.
64992         This merges the 2005-10-28 md5 change into sha1.
64993
64994 2006-01-11  Jim Meyering  <jim@meyering.net>
64995
64996         Sync from coreutils.
64997         * lib/md5.c (OP): Fix spacing.
64998
64999 2006-01-11  Bruno Haible  <bruno@clisp.org>
65000
65001         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65002         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65003         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65004
65005 2006-01-11  Bruno Haible  <bruno@clisp.org>
65006
65007         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65008         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65009         the "early" section as well.
65010
65011 2006-01-11  Bruno Haible  <bruno@clisp.org>
65012
65013         Avoid "ar: no archive members specified" error on MacOS X.
65014         * gnulib-tool (func_modules_add_dummy): New function.
65015         (func_import, func_create_testdir): Invoke it.
65016
65017 2006-01-11  Bruno Haible  <bruno@clisp.org>
65018
65019         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65020         with $auxdir in AC_CONFIG_FILES statements.
65021
65022 2006-01-11  Bruno Haible  <bruno@clisp.org>
65023
65024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65025         Initialize also noinst_HEADERS to empty.
65026
65027 2006-01-11  Bruno Haible  <bruno@clisp.org>
65028
65029         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65030         variables.
65031         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65032         autoreconf.
65033
65034 2006-01-11  Bruno Haible  <bruno@clisp.org>
65035
65036         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65037         overridable by the user.
65038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65039
65040 2006-01-10  Simon Josefsson  <jas@extundo.com>
65041
65042         * modules/sys_socket: New file.
65043
65044 2006-01-10  Simon Josefsson  <jas@extundo.com>
65045
65046         * m4/sys_socket_h.m4: New file.
65047
65048 2006-01-10  Simon Josefsson  <jas@extundo.com>
65049
65050         * lib/socket_.h: New file.
65051
65052 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         * modules/readutmp (Maintainer): Add myself.
65055
65056 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65059         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65060         People who are still concerned with buggy memcmp implementations
65061         can invoke gl_FUNC_MEMCMP themselves.
65062
65063 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65064
65065         * lib/regex_internal.h (BITSET_WORD_BITS):
65066         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65067         preprocessor mishandles large unsigned values as if they were signed.
65068         Problem reported by Claudio Fontana in
65069         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65070
65071 2006-01-10  Jim Meyering  <jim@meyering.net>
65072
65073         Avoid the double-free (first in fts_read, second in fts_close) that
65074         would occur when an `active' directory is made inaccessible (e.g.,
65075         via chmod a-x) during a traversal.
65076         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65077         before returning.  Reproduce this failure by
65078         mkdir -p a/b; cd a; chmod a-x . b
65079         Reported by Stavros Passas.
65080
65081         Sync from coreutils.
65082         * lib/sha1.c: Tweak grammar in a comment.
65083
65084 2006-01-10  Jim Meyering  <jim@meyering.net>
65085
65086         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65087         Patch by Joerg Sonnenberger.
65088
65089 2006-01-10  Bruno Haible  <bruno@clisp.org>
65090
65091         * modules/readutmp: Depend on module free.
65092         * modules/strtok_r: Depend on module restrict.
65093
65094 2006-01-10  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/gettext (configure.ac): Add an invocation of
65097         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65098
65099 2006-01-10  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65102         Reported by Werner Lemberg <wl@gnu.org>.
65103
65104 2006-01-10  Bruno Haible  <bruno@clisp.org>
65105
65106         * lib/localcharset.c: Update from GNU gettext.
65107
65108 2006-01-10  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/argp.h (__const): Remove macro. Use const instead.
65111         * lib/argp-fmtstream.h (__const): Likewise.
65112         * lib/glob_.h (__const): Remove macro.
65113         * lib/glob-libc.h: Use const instead of __const.
65114
65115 2006-01-10  Bruno Haible  <bruno@clisp.org>
65116
65117         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65118         variable.
65119         Needed to avoid an automake error regarding the 'gettext' module.
65120
65121 2006-01-09  Simon Josefsson  <jas@extundo.com>
65122
65123         * modules/inet_ntop (Depends-on): Add restrict.
65124
65125 2006-01-09  Simon Josefsson  <jas@extundo.com>
65126
65127         * modules/gc-rijndael-tests (License): Put under LGPL.
65128
65129         * modules/gc-des-tests (License): Likewise.
65130
65131         * modules/gc-arcfour-tests (License): Likewise.
65132
65133         * modules/gc-arctwo-tests (License): Likewise.
65134
65135         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65136
65137         * modules/gc-hmac-sha1-tests (Files): Likewise.
65138
65139         * modules/gc-hmac-md5-tests (License): Likewise.
65140
65141         * modules/gc-sha1-tests (License): Likewise.
65142
65143         * modules/gc-md5-tests (License): Likewise.
65144
65145         * modules/gc-md4-tests (License): Likewise.
65146
65147         * modules/gc-md2-tests (License): Likewise.
65148
65149         * modules/gc-tests (License): Likewise.
65150
65151         * modules/des-tests (License): Likewise.
65152
65153         * modules/md4-tests (License): Likewise.
65154
65155         * modules/md2-tests (License): Likewise.
65156
65157 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65158
65159         Sync from coreutils:
65160
65161         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65162         * modules/lib-ignore: New file.
65163         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65164         chdir-safer.m4, lchmod.m4.
65165         * modules/openat: Add mkdirat.c, openat-priv.h.
65166
65167 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         Sync from coreutils.
65170         * m4/lib-ignore.m4: New file.
65171         * m4/lchmod.m4: New file.
65172
65173 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         Sync from coreutils.
65176         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65177         for write access: POSIX says that must fail.
65178         * lib/fts.c (diropen): Likewise.
65179         * lib/save-cwd.c (save_cwd): Likewise.
65180         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65181         well, for minor improvements on hosts that lack O_DIRECTORY.
65182         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65183         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65184         Fall back on chown if open failed with EACCES.
65185
65186         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65187         Report an error at compile-time if only a 1-second nominal clock
65188         resolution is found.
65189
65190         * lib/lchmod.h: New file.
65191         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65192         (make_dir_parents): Use lchown rather than chown, and
65193         lchmod rather than chmod.
65194
65195         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65196         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65197         "proc" reported by n0dalus.
65198
65199         * lib/mountlist.c: Include <limits.h>.
65200         (dev_from_mount_options)
65201         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65202         New function.  It no longer assumes "dev=" has the System V meaning
65203         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65204         (read_file_system_list)
65205         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65206         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65207         dev= in that case.
65208
65209         * lib/posixtm.h (PDS_PRE_2000): New macro.
65210         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65211         allow_century.  All usages changed.  Reject dates outside the range
65212         1969-1999 if PDS_PRE_2000 is used.
65213
65214 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65215
65216         Sync from coreutils.
65217         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65218         (Time of day items): Mention the possibility of leap seconds.
65219         Problem reported by Dr. David Alan Gilbert.
65220
65221 2006-01-09  Jim Meyering  <jim@meyering.net>
65222
65223         Sync from coreutils.
65224
65225         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65226
65227         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65228
65229         * lib/modechange.c (mode_compile): Reject an invalid mode string
65230         that starts with an octal digit.  From Andreas Gruenbacher.
65231
65232         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65233         and dup to open_safer and dup_safer, respectively.
65234         (openat_permissive): Fix typo in comment.
65235
65236         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65237         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65238         (_): Remove; no longer needed.
65239         (openat): Renamed from rpl_openat; no need for rpl_openat
65240         since openat.h renames openat for us.
65241         Replace most of the body with a call to openat_permissive,
65242         to avoid duplicate code.
65243         Port to (probably hypothetical) environments were mode_t is
65244         wider than int.
65245         (openat_permissive): Require mode arg, so that we can check
65246         types better.  Put it just after flags.  Change cwd failure
65247         indicator from pointer-to-bool to pointer-to-errno-value.
65248         All callers changed.
65249         Invoke openat_save_fail and/or openat_restore_fail if
65250         cwd_errno is null, so that openat can call us.
65251         (openat_permissive, fdopendir, fstatat, unlinkat):
65252         Simplify errno handling to avoid some duplicate code,
65253         as it's OK to set errno on success.
65254         * lib/openat.h: Revamp code so that function macros depend on
65255         __OPENAT_PREFIX only, not also on AT_FDCWD.
65256         (openat_ro): Remove.  Caller changed to use openat_permissive.
65257         (openat_permissive): Now a macro, if not a function.
65258         (openat_restore_fail, openat_save_fail): Now always functions,
65259         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65260
65261         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65262         and openat.c.
65263         * lib/mkdirat.c: Include openat-priv.h.
65264         Remove definitions of macros defined therein.
65265         * lib/openat.c: Likewise.
65266
65267         * lib/mkdirat.c (mkdirat): New file and function.
65268         * lib/openat.h (mkdirat): Declare.
65269
65270         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65271
65272         * lib/openat.h (openat_permissive): Declare.
65273         (openat_ro): Define.
65274
65275         * lib/openat.c (EXPECTED_ERRNO): New macro.
65276         (openat_permissive): New function -- used in remove.c rewrite.
65277         (all functions): Set errno just before returning, only if there
65278         was an actual failure.
65279         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65280
65281         Emulate openat-family functions using Linux's procfs, if possible.
65282         Idea and some code based on Ulrich Drepper's glibc changes.
65283
65284         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65285         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65286         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65287         before falling back on save_cwd and restore_cwd.
65288         (fdopendir, fstatat, unlinkat): Likewise.
65289
65290         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65291         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65292
65293         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65294         as second argument to va_arg.  Otherwise, some versions of gcc
65295         warn that `if this code is reached, the program will abort'.
65296
65297 2006-01-09  Jim Meyering  <jim@meyering.net>
65298
65299         Sync from coreutils.
65300         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65301         Require openat-priv.h.
65302
65303 2006-01-09  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/strnlen (Include): Use strnlen.h.
65306
65307 2006-01-09  Bruno Haible  <bruno@clisp.org>
65308
65309         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65310
65311 2006-01-09  Bruno Haible  <bruno@clisp.org>
65312
65313         * lib/sysexit_.h (EX_OK): New macro.
65314         Suggested by Martin Lambers <marlam@marlam.de>.
65315
65316 2006-01-09  Bruno Haible  <bruno@clisp.org>
65317
65318         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65319         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65320
65321 2006-01-09  Bruno Haible  <bruno@clisp.org>
65322
65323         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65324         numbers.
65325
65326 2006-01-09  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65329         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65330         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65331         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65332
65333 2006-01-09  Bruno Haible  <bruno@clisp.org>
65334
65335         * build-aux/javacomp.sh.in: New file, moved from lib/.
65336         * modules/javacomp-script (Files): Update.
65337         (configure.ac): Add AC_CONFIG_FILES invocation.
65338         (EXTRA_DIST): Remove variable.
65339
65340         * build-aux/javaexec.sh.in: New file, moved from lib/.
65341         * modules/javaexec (Files): Update.
65342         (configure.ac): Add AC_CONFIG_FILES invocation.
65343         (EXTRA_DIST): Remove javaexec.sh.in.
65344
65345         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65346         * modules/csharpcomp-script (Files): Update.
65347         (configure.ac): Add AC_CONFIG_FILES invocation.
65348         (EXTRA_DIST): Remove variable.
65349
65350         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65351         * modules/csharpexec (Files): Update.
65352         (configure.ac): Add AC_CONFIG_FILES invocation.
65353         (EXTRA_DIST): Remove csharpexec.sh.in.
65354
65355 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65356
65357         Sync from coreutils.
65358
65359         Add POSIX ACL support
65360         * lib/acl.h (copy_acl, set_acl): Add declarations.
65361         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65362         systems other than Linux.
65363         (chmod_or_fchmod): New function: use fchmod when possible,
65364         and chmod otherwise.
65365         (file_has_acl): Add a POSIX ACL implementation, with a
65366         Linux-specific subcase.
65367         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65368         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65369         acls are unsupported.
65370         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65371         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65372         are unsupported.
65373
65374 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65375
65376         Sync from coreutils.
65377         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65378
65379 2006-01-07  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65382         gl_EARLY.
65383
65384 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65387         Problem reported for Mingw by Mark Junker.
65388
65389 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65390
65391         * README: Gnulib normally doesn't generate a tarball.
65392
65393 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65396         long int, not int, for nanosecond counts, so that people who are
65397         used to POSIX struct timespec won't be surprised.  Reported by Jim
65398         Meyering.
65399
65400 2005-12-28  Bruno Haible  <bruno@clisp.org>
65401
65402         * build-aux/config.rpath: Update from GNU gettext.
65403
65404 2005-12-16  Jim Meyering  <jim@meyering.net>
65405
65406         * modules/fprintftime: New module.
65407         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65408
65409 2005-12-16  Jim Meyering  <jim@meyering.net>
65410
65411         * m4/fprintftime.m4: New file.
65412
65413 2005-12-16  Jim Meyering  <jim@meyering.net>
65414
65415         * lib/fprintftime.c, lib/fprintftime.h: New files.
65416
65417 2005-12-15  Simon Josefsson  <jas@extundo.com>
65418
65419         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65420         new m4/socklen.m4.
65421
65422 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65423
65424         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65425         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65426
65427 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65428
65429         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65430         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65431         struct uparams is valid. Fall back to the default values if it is
65432         not.
65433
65434 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65435
65436         * modules/argp (Files): Add argp-pin.c
65437         (Depends-on): dirname
65438         (lib_SOURCES): Add argp-pin.c
65439
65440 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65441
65442         * m4/argp.m4:  Check if program_invocation_name and
65443         program_invocation_short_name are declared and define appropriate
65444         macros if they are not.
65445
65446 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65447
65448         * lib/argp-help.c (__argp_base_name): New function
65449         (__argp_short_program_name): Rewrite using __argp_base_name
65450         * lib/argp-namefrob.h: Define program_invocation_name and
65451         program_invocation_short_name if requested
65452         (__argp_base_name): Add prototype
65453         * lib/argp-parse.c (argp_def): Use gettext wrappers
65454         (argp_default_parser): Use __argp_base_name
65455         * lib/argp-pin.c: New file. Defines program_invocation_name and
65456         program_invocation_short_name on systems that lack them.
65457
65458 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65461         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65462         porting problem reported by Georg Schwarz in
65463         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65464
65465 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65466
65467         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65468         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65469         porting problem reported by Georg Schwarz in
65470         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65471
65472 2005-12-05  Bruno Haible  <bruno@clisp.org>
65473
65474         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65475         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65476         Reported by Mark Junker <mjscod@gmx.de>.
65477
65478 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65481         Use implementation from Albert Chin, with some
65482         comments/corrections by Stepan Kasal and myself.
65483
65484 2005-12-02  Bruno Haible  <bruno@clisp.org>
65485
65486         * gnulib-tool (func_import): Accept GPLed build tool modules when
65487         --lgpl is given.
65488         * modules/csharpcomp-script: New file.
65489         * modules/csharpcomp: Depend on it.
65490         * modules/javacomp-script: New file.
65491         * modules/javacomp: Depend on it.
65492         Suggested by Simon Josefsson.
65493
65494 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65495
65496         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65497         statement, to work around an HP-UX 10.20 compiler bug reported by
65498         Peter O'Gorman.
65499
65500 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         * modules/savedir (Depends-on): Add openat.
65503
65504 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65507         (uintmax_t) [defined uintmax_t]: Do not declare.
65508         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65509         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65510         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65511         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65512         sake of portability to weird hosts that C allows (though we don't
65513         know of any practical examples).
65514
65515         * lib/savedir.h (fdsavedir): New decl.
65516         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65517         contains most of the former guts of savedir.
65518         (savedir): Use savedirstream.
65519         Include "openat.h".
65520
65521 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * modules/obstack (Files): Add m4/ulonglong.m4.
65524         Problem reported by Davide Angelocola.
65525
65526 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65529         coreutils no longer futzes with rounding modes.
65530
65531 2005-11-14  Jim Meyering  <jim@meyering.net>
65532
65533         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65534         replacement of mkstemp.
65535
65536 2005-11-10  Simon Josefsson  <jas@extundo.com>
65537
65538         * lib/readline.c: Remove EOL.
65539
65540 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * modules/gethrxtime (Depends-on): Add gettime.
65543
65544 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65545
65546         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65547         or gettimeofday; no longer needed.
65548
65549 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65552         time business.
65553         (gethrxtime) [! (HAVE_NANOUPTIME
65554         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65555         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65556         our own approximation.
65557
65558 2005-11-08  Eric Blake  <ebb9@byu.net>
65559
65560         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65561
65562 2005-11-08  Eric Blake  <ebb9@byu.net>
65563
65564         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65565
65566 2005-11-04  Bruno Haible  <bruno@clisp.org>
65567
65568         * gnulib-tool: Implement --update mode.
65569
65570 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         Fix porting problem reported by Theodoros V. Kalamatianos.
65573         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65574         Don't assume that futimes failing means we must fail.
65575
65576 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65579         variables to suggest the intended function of the PATH_MAX check.
65580
65581 2005-10-30  Kean Johnston  <jkj@sco.com>
65582
65583         Trivial changes to support SCO systems.
65584         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65585         as PATH_MAX.
65586         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65587         where __ptr is null when no I/O is pending.
65588
65589 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65592         leave errno alone.  Problem reported by Dmitry V. Levin.
65593
65594 2005-10-28  Simon Josefsson  <jas@extundo.com>
65595
65596         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65597         Test more.
65598
65599         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65600
65601         * modules/md2, modules/md2-tests: New files.
65602
65603 2005-10-28  Simon Josefsson  <jas@extundo.com>
65604
65605         * m4/inet_ntop.m4: More tests.
65606
65607         * m4/gc-md2.m4, md2.m4: New file.
65608
65609 2005-10-28  Simon Josefsson  <jas@extundo.com>
65610
65611         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65612         "restrict" keywords, as per POSIX.  Protect the function
65613         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65614         Don't use K&R prototypes.  Check the sprintf return values.
65615         Re-define EAFNOSUPPORT if not present.  Indent.
65616
65617         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65618         suggested by Bruno Haible <bruno@clisp.org>.
65619
65620         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65621
65622         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65623
65624         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65625         libgcrypt).
65626
65627         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65628
65629         * lib/md2.h, lib/md2.c: New files.
65630
65631 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65634         errno alone.  Problem reported by Frederic Jolliton.
65635
65636 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65637
65638         * modules/verify (License): Change from GPL to LGPL.  This is a
65639         tiny module and there are apparently near-equivalents that are
65640         under the BSD license.
65641
65642 2005-10-24  Simon Josefsson  <jas@extundo.com>
65643
65644         * modules/sha1: Relicense to LGPL.
65645
65646 2005-10-24  Simon Josefsson  <jas@extundo.com>
65647
65648         * lib/md4.h: Shrink buffer size, now that we changed the type.
65649
65650 2005-10-23  Simon Josefsson  <jas@extundo.com>
65651
65652         * gnulib-tool (func_import): Fix --tests-base.
65653
65654 2005-10-22  Simon Josefsson  <jas@extundo.com>
65655
65656         * modules/arcfour (Depends-on): Need stdint.
65657
65658 2005-10-22  Simon Josefsson  <jas@extundo.com>
65659
65660         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65661         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65662
65663 2005-10-22  Simon Josefsson  <jas@extundo.com>
65664
65665         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65666         suggested by Bruno Haible <bruno@clisp.org>.
65667
65668 2005-10-22  Simon Josefsson  <jas@extundo.com>
65669
65670         * lib/crc.h: Include stddef.h, for size_t.
65671
65672 2005-10-22  Simon Josefsson  <jas@extundo.com>
65673
65674         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65675         arcfour_context struct (simplify test vector testing in GNU
65676         Shishi).
65677
65678 2005-10-21  Simon Josefsson  <jas@extundo.com>
65679
65680         * modules/des, modules/des-tests: New files.
65681
65682         * modules/gc-des, modules/gc-des-tests: New files.
65683
65684         * tests/test-des.c, tests/test-gc-des.c: New file.
65685
65686 2005-10-21  Simon Josefsson  <jas@extundo.com>
65687
65688         * modules/arctwo, modules/arctwo-tests: New files.
65689
65690         * tests/test-arctwo.c: New file.
65691
65692         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65693
65694         * tests/test-gc-arctwo.c: New file.
65695
65696 2005-10-21  Simon Josefsson  <jas@extundo.com>
65697
65698         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65699         Bruno Haible <bruno@clisp.org>.
65700
65701         * m4/gc-des.m4: New file.
65702
65703 2005-10-21  Simon Josefsson  <jas@extundo.com>
65704
65705         * m4/arctwo.m4: New file.
65706
65707         * m4/gc-arctwo.m4: New file.
65708
65709 2005-10-21  Simon Josefsson  <jas@extundo.com>
65710
65711         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65712         block.
65713
65714 2005-10-21  Simon Josefsson  <jas@extundo.com>
65715
65716         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65717         <bruno@clisp.org>.
65718
65719         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65720
65721         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65722         Bruno Haible <bruno@clisp.org>.
65723
65724         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65725         <bruno@clisp.org>.
65726
65727 2005-10-21  Simon Josefsson  <jas@extundo.com>
65728
65729         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65730
65731 2005-10-21  Simon Josefsson  <jas@extundo.com>
65732
65733         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65734
65735 2005-10-21  Simon Josefsson  <jas@extundo.com>
65736
65737         * lib/des.h, lib/des.c: New files.
65738
65739         * lib/gc-gnulib.c: Support DES.c
65740
65741 2005-10-21  Simon Josefsson  <jas@extundo.com>
65742
65743         * lib/arctwo.h, lib/arctwo.c: New files.
65744
65745         * lib/gc-gnulib.c: Support ARCTWO.
65746
65747 2005-10-21  Simon Josefsson  <jas@extundo.com>
65748
65749         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65750         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65751
65752 2005-10-21  Simon Josefsson  <jas@extundo.com>
65753
65754         * gnulib-tool (func_import, func_create_testdir): Define automake
65755         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65756         Makefile.am snippet),
65757         suggested by Bruno Haible <bruno@clisp.org>.
65758
65759         * modules/gc (Makefile.am): Use it.
65760
65761 2005-10-21  Bruno Haible  <bruno@clisp.org>
65762
65763         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65764         patch.
65765
65766 2005-10-19  Simon Josefsson  <jas@extundo.com>
65767
65768         * tests/test-gc-rijndael.c: New file.
65769
65770         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65771
65772 2005-10-19  Simon Josefsson  <jas@extundo.com>
65773
65774         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65775         interface too.
65776
65777 2005-10-19  Simon Josefsson  <jas@extundo.com>
65778
65779         * tests/test-gc-arcfour.c: New file.
65780
65781         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65782
65783 2005-10-19  Simon Josefsson  <jas@extundo.com>
65784
65785         * modules/gc-md4, modules/gc-md4-tests: New file.
65786
65787         * tests/test-gc-md4.c: New file.
65788
65789 2005-10-19  Simon Josefsson  <jas@extundo.com>
65790
65791         * m4/gc-md4.m4: New file.
65792
65793 2005-10-19  Simon Josefsson  <jas@extundo.com>
65794
65795         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65796         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65797         <kasal@ucw.cz>.
65798
65799 2005-10-19  Simon Josefsson  <jas@extundo.com>
65800
65801         * m4/gc-arcfour.m4: New file.
65802
65803         * m4/gc-rijndael.m4: New file.
65804
65805 2005-10-19  Simon Josefsson  <jas@extundo.com>
65806
65807         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65808
65809 2005-10-19  Simon Josefsson  <jas@extundo.com>
65810
65811         * lib/gc-gnulib.c: Support ARCFOUR.
65812
65813 2005-10-19  Simon Josefsson  <jas@extundo.com>
65814
65815         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65816         support.
65817
65818         * lib/gc.h: Add ECB enum type.
65819
65820         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65821
65822 2005-10-18  Simon Josefsson  <jas@extundo.com>
65823
65824         * tests/test-md5.c: New file.
65825
65826         * modules/md5-tests: New file.
65827
65828 2005-10-18  Simon Josefsson  <jas@extundo.com>
65829
65830         * tests/test-md4.c: New file.
65831
65832         * modules/md4, modules/md4-tests: New files.
65833
65834 2005-10-18  Simon Josefsson  <jas@extundo.com>
65835
65836         * m4/md4.m4: New file.
65837
65838 2005-10-18  Simon Josefsson  <jas@extundo.com>
65839
65840         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65841
65842 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65843
65844         * gnulib-tool (func_create_testdir): Omit the second check whether
65845         BUILT_SOURCES in nonempty.
65846
65847 2005-10-17  Simon Josefsson  <jas@extundo.com>
65848
65849         * tests/test-rijndael.c: New file.
65850
65851 2005-10-17  Simon Josefsson  <jas@extundo.com>
65852
65853         * modules/sha1: Depend on stdint instead of md5.
65854
65855         * modules/md5: Depend on stdint, remove uint32_t.
65856
65857 2005-10-17  Simon Josefsson  <jas@extundo.com>
65858
65859         * modules/gc-sha1-tests: New file.
65860
65861         * tests/test-gc-sha1.c: New file.
65862
65863 2005-10-17  Simon Josefsson  <jas@extundo.com>
65864
65865         * m4/md5.m4: Remove call to uint32_t.m4.
65866
65867 2005-10-17  Simon Josefsson  <jas@extundo.com>
65868
65869         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65870
65871         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65872         md5.h.
65873
65874         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65875
65876         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65877
65878 2005-10-17  Simon Josefsson  <jas@extundo.com>
65879
65880         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65881
65882 2005-10-17  Simon Josefsson  <jas@extundo.com>
65883
65884         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65885
65886 2005-10-17  Simon Josefsson  <jas@extundo.com>
65887
65888         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65889
65890         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65891
65892 2005-10-17  Bruno Haible  <bruno@clisp.org>
65893
65894         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65895         that it can also be used in a test.
65896
65897 2005-10-16  Bruno Haible  <bruno@clisp.org>
65898
65899         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65900         TESTS_ENVIRONMENT, so that individual tests can augment it.
65901
65902         * gnulib-tool (func_create_testdir): Use an intermediate target for
65903         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65904         macros, like $(ALLOCA_H), which cannot be passed through the command
65905         line.
65906
65907 2005-10-15  Simon Josefsson  <jas@extundo.com>
65908
65909         * modules/rijndael-tests: New file.
65910
65911         * modules/rijndael: New file.
65912
65913 2005-10-15  Simon Josefsson  <jas@extundo.com>
65914
65915         * m4/rijndael.m4: New file.
65916
65917 2005-10-15  Simon Josefsson  <jas@extundo.com>
65918
65919         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65920
65921         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65922
65923 2005-10-14  Simon Josefsson  <jas@extundo.com>
65924
65925         * tests/test-arcfour.c: New file.
65926
65927         * modules/arcfour, modules/arcfour-tests: New files.
65928
65929 2005-10-14  Simon Josefsson  <jas@extundo.com>
65930
65931         * m4/arcfour.m4: New file.
65932
65933 2005-10-14  Simon Josefsson  <jas@extundo.com>
65934
65935         * lib/arcfour.h, lib/arcfour.c: New files.
65936
65937 2005-10-14  Roland McGrath  <roland@redhat.com>
65938
65939         Import from libc.  [BZ #1331]
65940         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65941         macro argument.
65942         Reported by Matej Vela <vela@debian.org>.
65943
65944 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65947         include <wchar.h>; no longer needed.
65948
65949 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65952
65953 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65954         and  Ulrich Drepper  <drepper@redhat.com>
65955
65956         Import from libc.
65957         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65958         instead of inline stream orientation test and two separate
65959         function calls.  Pay no attention to USE_IN_LIBIO.
65960
65961 2005-10-13  Simon Josefsson  <jas@extundo.com>
65962
65963         * modules/gc-hmac-md5-tests: New file.
65964
65965         * tests/test-gc-hmac-sha1.c: New file.
65966
65967         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65968
65969         * modules/gc-hmac-md5-tests: New file.
65970
65971         * tests/test-gc-md5.c: New file.
65972
65973         * modules/gc-md5-tests: New file.
65974
65975 2005-10-13  Simon Josefsson  <jas@extundo.com>
65976
65977         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65978         Move memory allocation outside of loop.
65979
65980 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65983         intermediate directory is in a read-only file system.  Problem
65984         reported by Eric Blake.
65985
65986 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65987
65988         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65989
65990 2005-10-12  Simon Josefsson  <jas@extundo.com>
65991
65992         * tests/test-hmac-sha1.c: New file.
65993
65994         * modules/hmac-sha1-tests: New file.
65995
65996         * modules/hmac-sha1: New file.
65997
65998 2005-10-12  Simon Josefsson  <jas@extundo.com>
65999
66000         * modules/gc-sha1: New file.
66001
66002 2005-10-12  Simon Josefsson  <jas@extundo.com>
66003
66004         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66005
66006         * tests/test-gc-pbkdf2-sha1.c: New file.
66007
66008 2005-10-12  Simon Josefsson  <jas@extundo.com>
66009
66010         * modules/gc-md5, modules/gc-hmac-md5: New files.
66011
66012         * modules/gc (Files): Remove md5, memxor and hmac files.
66013
66014 2005-10-12  Simon Josefsson  <jas@extundo.com>
66015
66016         * m4/gc-pbkdf2-sha1.m4: New file.
66017
66018         * m4/gc-hmac-sha1.m4: New file.
66019
66020         * m4/gc-sha1: New file.
66021
66022         * m4/hmac-sha1.m4: New file.
66023
66024 2005-10-12  Simon Josefsson  <jas@extundo.com>
66025
66026         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66027
66028         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66029
66030 2005-10-12  Simon Josefsson  <jas@extundo.com>
66031
66032         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66033         suggested by Bruno Haible <bruno@clisp.org>.
66034
66035 2005-10-12  Simon Josefsson  <jas@extundo.com>
66036
66037         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66038
66039 2005-10-12  Simon Josefsson  <jas@extundo.com>
66040
66041         * lib/gc-pbkdf2-sha1.c: New file.
66042
66043         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66044
66045 2005-10-12  Simon Josefsson  <jas@extundo.com>
66046
66047         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66048
66049         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66050
66051 2005-10-12  Simon Josefsson  <jas@extundo.com>
66052
66053         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66054         GC_USE_HMAC_MD5, respectively.
66055
66056         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66057         (gc_md5): Fix typo.
66058
66059         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66060
66061         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66062
66063         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66064
66065 2005-10-12  Bruno Haible  <bruno@clisp.org>
66066
66067         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66068         Reported by Stepan Kasal <kasal@ucw.cz>.
66069
66070 2005-10-11  Simon Josefsson  <jas@extundo.com>
66071
66072         * tests/test-crc.c: New file.
66073
66074         * modules/crc, modules/crc-tests: New files.
66075
66076 2005-10-11  Simon Josefsson  <jas@extundo.com>
66077
66078         * m4/crc.m4: New file.
66079
66080 2005-10-11  Simon Josefsson  <jas@extundo.com>
66081
66082         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66083
66084         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66085
66086         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66087
66088 2005-10-11  Simon Josefsson  <jas@extundo.com>
66089
66090         * lib/crc.h, lib/crc.c: New files.
66091
66092         * lib/gc.h (gc_hash_buffer): Add doc.
66093
66094 2005-10-11  Bruno Haible  <bruno@clisp.org>
66095
66096         * modules/c-strcasestr: New file.
66097         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66098
66099 2005-10-11  Bruno Haible  <bruno@clisp.org>
66100
66101         * modules/c-strcase: New file.
66102         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66103
66104 2005-10-11  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/strcasecmp.c: Include limits.h.
66107         (strcasecmp): Avoid integer overflow on exotic platforms.
66108         * lib/strncasecmp.c: Include limits.h.
66109         (strncasecmp): Avoid integer overflow on exotic platforms.
66110         Reported by Paul Eggert.
66111
66112 2005-10-11  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/c-strcasestr.h: New file, from GNU gettext.
66115         * lib/c-strcasestr.c: New file, from GNU gettext.
66116
66117 2005-10-11  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/c-strcase.h: New file, from GNU gettext.
66120         * lib/c-strcasecmp.c: New file, from GNU gettext.
66121         * lib/c-strncasecmp.c: New file, from GNU gettext.
66122
66123 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66124
66125         * modules/mempcpy (License): GPL -> LGPL.
66126         * modules/strchrnul (License): Likewise.
66127         * modules/sysexits (License): Likewise.
66128
66129 2005-10-08  Simon Josefsson  <jas@extundo.com>
66130
66131         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66132
66133 2005-10-07  Simon Josefsson  <jas@extundo.com>
66134
66135         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66136
66137 2005-10-06  Simon Josefsson  <jas@extundo.com>
66138
66139         * tests/test-hmac-md5.c: New file.
66140
66141         * modules/hmac-md5-tests: New file.
66142
66143         * modules/hmac-md5: New file.
66144
66145 2005-10-06  Simon Josefsson  <jas@extundo.com>
66146
66147         * m4/hmac-md5.m4: New file.
66148
66149         * m4/memxor.m4: Require gl_C_RESTRICT.
66150
66151 2005-10-06  Simon Josefsson  <jas@extundo.com>
66152
66153         * lib/memxor.c (memxor): Avoid casts and warnings.
66154
66155 2005-10-06  Simon Josefsson  <jas@extundo.com>
66156
66157         * lib/hmac-md5.c: New file.
66158
66159         * lib/hmac.h: New file.
66160
66161 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66164         promotes to int, not unsigned int, to catch the AIX 5.3
66165         compiler bug.
66166
66167 2005-10-05  Simon Josefsson  <jas@extundo.com>
66168
66169         * modules/memxor: New file.
66170
66171         * modules/iconv (Files): Move config.rpath to havelib, it is used
66172         there.
66173
66174         * modules/havelib (Files): Add config.rpath.
66175
66176 2005-10-05  Simon Josefsson  <jas@extundo.com>
66177
66178         * m4/memxor.m4: New file.
66179
66180 2005-10-05  Simon Josefsson  <jas@extundo.com>
66181
66182         * lib/memxor.c (memxor): Fix compiler error.
66183
66184         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66185         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66186
66187         * lib/memxor.h, lib/memxor.c: New files.
66188
66189         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66190         we assume all systems have it, suggested by Jim Meyering
66191         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66192         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66193         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66194         same reasons.
66195
66196 2005-10-05  Simon Josefsson  <jas@extundo.com>
66197
66198         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66199
66200 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66203         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66204         needed, since the source code now assumes these .h files.
66205
66206 2005-10-05  Derek Price  <derek@ximbiot.com>
66207
66208         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66209
66210 2005-10-05  Bruno Haible  <bruno@clisp.org>
66211
66212         * modules/stdint (License): Change to LGPL.
66213
66214 2005-10-04  Simon Josefsson  <jas@extundo.com>
66215
66216         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66217         D. Baushke" <mdb@gnu.org>.
66218
66219 2005-10-04  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/verify.h (verify_true): Provide alternative definition for C++.
66222
66223 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66226         (SSIZE_MAX): New macro, if not already defined.
66227         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66228         than 2 GiB.
66229
66230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         Sync from coreutils.
66233         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66234         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66235         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66236         ULLONG_MAX doesn't work with 2.7.2.1.
66237
66238 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66241         From Ben Pfaff.
66242
66243         * modules/exclude (Depends-on): Depend on verify.
66244         * modules/strtoimax (Depends-on): Likewise.
66245         * modules/utimecmp (Depends-on): Likewise.
66246
66247 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * lib/exclude.c: Include verify.h.
66250         (verify): Remove.  All callers changed to use verify.h's version.
66251         * lib/strtoimax.c: Likewise.
66252         * lib/utimecmp.c: Likewis.e
66253
66254         Sync from coreutils.
66255         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66256         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66257         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66258         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66259         bother returning ENOSYS if settimeofday or stime fails; just let
66260         them return whatever errno they want to return.
66261         * lib/utimens.c: Include unistd.h, for dup2.
66262         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66263         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66264
66265 2005-10-02  Jim Meyering  <jim@meyering.net>
66266
66267         Sync from coreutils.
66268         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66269         from glibc-2.2.5 that fails for read-only files.
66270
66271 2005-10-02  Jim Meyering  <jim@meyering.net>
66272
66273         Sync from coreutils.
66274         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66275         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66276         `#if HAVE_CONFIG_H'.
66277         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66278         Remove AT_FDCWD test.
66279         Do not consume the fd unless successful.
66280         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66281         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66282         block, so that we don't even try to compile it if settimeofday is
66283         available.  This works around a compilation failure on OSF1 V5.1,
66284         due to stime requiring a `long int*' while tv_sec is `int'.
66285
66286 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66287
66288         Sync from coreutils.
66289         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66290         against `yes', rather than just testing for nonempty.
66291
66292 2005-10-01  Simon Josefsson  <jas@extundo.com>
66293
66294         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66295         and Darwin.
66296
66297         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66298         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66299         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66300         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66301         Check if struct addrinfo is declared.
66302
66303 2005-10-01  Simon Josefsson  <jas@extundo.com>
66304
66305         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66306         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66307         AI_* and EAI_* definitions.  Protect function declarations.
66308
66309 2005-10-01  Jim Meyering  <jim@meyering.net>
66310
66311         Sync from coreutils.
66312
66313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66314         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66315         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66317         in the inet and nsl libraries.  Required on Solaris 5.7.
66318
66319 2005-10-01  Jim Meyering  <jim@meyering.net>
66320
66321         Sync from coreutils.
66322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66323         in the inet and nsl libraries.  Required on Solaris 5.7.
66324
66325 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66326
66327         * lib/getdelim.c (getdelim): Remove unused variables.
66328
66329 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66330
66331         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66332         so that the code works even with ancient cpp.  Portability problem
66333         with GCC 2.7.2.1 reported by Thomas M.Ott.
66334
66335 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * modules/regex (Depends-on): Add strcase.
66338
66339         * modules/gethostname (Licence): Change from GPL to LGPL, since
66340         gethostname.c is a trivial implementation of a standard library
66341         function.
66342         * modules/poll (License): Change from GPL to LGPL, since it's
66343         derived from LGPL code.
66344
66345 2005-09-27  Jim Meyering  <jim@meyering.net>
66346
66347         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66348         HAVE_CONFIG_H.
66349
66350         * lib/intprops.h (signed_type_or_expr__): Define.
66351         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66352         for unsigned types.
66353
66354 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66355
66356         * lib/verify.h (verify_expr): Remove, replacing with:
66357         (verify_true): New macro that returns true instead of void.
66358         (verify_type__): Remove.
66359         (verify): Use verify_true rather than verify_type__.
66360
66361 2005-09-26  Bruno Haible  <bruno@clisp.org>
66362
66363         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66364         is necessary.
66365         (lib_SOURCES): Remove mbchar.c.
66366         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66367         (Files): Add m4/mbrtowc.m4.
66368         * modules/mbiter: Likewise.
66369         * modules/mbuiter: Likewise.
66370
66371 2005-09-26  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66374         compile mbchar.c if they are not both present.
66375         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66376         * m4/mbiter.m4 (gl_MBITER): Likewise.
66377         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66378         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66379         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66380
66381 2005-09-25  Jim Meyering  <jim@meyering.net>
66382
66383         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66384         also uses socklen_t.
66385
66386 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * lib/utimens.c (ENOSYS): Define if not already defined.
66389         (futimens): Support having a null PATH if the file descriptor
66390         is nonnegative.
66391
66392         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66393         Remove.
66394         (__attribute): Define to empty unless GCC 3.1 or later.
66395         This works around a core dump on OpenBSD 3.4, which has GCC
66396         2.95.3, which dumps core when given __attribute__(()).  It also
66397         simplifies other tests, since we really don't want to bother with
66398         worrying about which ancient version of GCC supported what.
66399         Original problem reported by Yoann Vandoorselaere, with part of
66400         the fix suggested by Derek Price.
66401
66402 2005-09-24  Jim Meyering  <jim@meyering.net>
66403
66404         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66405         so we can once again use a positive bitfield width of 1 -- now we
66406         don't have to explain why we were using a bitfield width of 2.
66407
66408 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66411         and similarly for the other external symbols.  Problem reported
66412         by James Gallager.
66413
66414         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66415         bug reported by Jim Meyering.
66416
66417         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66419         not needed, since socklen is a prerequisite module.
66420
66421 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66422
66423         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66424         Problem reported by Eric Blake.
66425         (getaddrinfo): Initialize se so that it's not garbage.
66426         Redo internal storage allocation so that it doesn't make unportable
66427         assumptions about alignment.
66428         Fix a memory leak.
66429
66430         * lib/utimens.c (futimens): Use futimesat if available.
66431         Prefer it to futimes since it doesn't have the futimes bug.
66432
66433         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66434         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66435         Instead, declare a function that returns a pointer to an array,
66436         and use verify_type__ to declare the size of the array.
66437         Problem and germ of a solution reported by Bruno Haible.
66438         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66439         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66440
66441 2005-09-23  Jim Meyering  <jim@meyering.net>
66442
66443         Sync from coreutils.
66444         Correct build failure (socklen_t not defined) on at least
66445         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66447
66448 2005-09-23  Jim Meyering  <jim@meyering.net>
66449
66450         * modules/getaddrinfo (Depends-on): Add socklen.
66451
66452 2005-09-23  Bruno Haible  <bruno@clisp.org>
66453
66454         * tests/test-verify.c: New file.
66455
66456 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         Sync from coreutils.
66459
66460         * modules/argmatch (Depends-on): Add verify.
66461         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66462         unistd-safer.
66463         * modules/save-cwd (Depends-on): Likewise.
66464
66465         * modules/openat (Files): Add lib/openat-die.c.
66466         (Depends-on): Remove error, exitfail.
66467         Add dirname.
66468
66469         * modules/verify: New file.
66470         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66471         with "verify" module.
66472
66473 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         Sync from coreutils.
66476
66477         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66478         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66479         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66480         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66481         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66482         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66483         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66484         Don't bother checking for string.h, stdlib.h, unistd.h.
66485         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66486         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66487         module's job.
66488         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66489         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66490
66491         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66492         (gl_GETDATE): Use it.
66493
66494         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66495
66496 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         Sync from coreutils.
66499
66500         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66501         stat-time.h.
66502         * lib/argmatch.h: Include verify.h
66503         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66504         (ARGMATCH_ASSERT): Remove; unused.
66505         * lib/canonicalize.c: Assume STDC_HEADERS.
66506         * lib/exclude.c: Include "strcase.h".
66507         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66508         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66509         and stdio-safer.h.
66510         (getusershell): Call fopen, not fopen_safer.
66511         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66512         Do not include unistd-safer.h.
66513         (save_cwd): Don't call fd_safer; no longer needed
66514         now that we include fcntl--.h.
66515
66516         * lib/getdate.y (relative_time): New type.
66517         (RELATIVE_TIME_0): New constant.
66518         (parser_control): Use relative_time instead of doing it ourselves.
66519         (%union): Add new relative_time rel member.
66520         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66521         Now typeless.
66522         (relunit, relunit_snumber): Now of type rel.
66523         (zone, rel, relunit, get_date): Adjust to above changes.
66524
66525         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66526         Do not include unistd-safer.h.
66527         (getloadavg): Don't call fd_safer; no longer needed
66528         now that we include fcntl--.h.
66529
66530         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66531         (make_dir_parents): Treat ENOSYS like EEXIST.
66532
66533         Improve quality of diagnostics on restore_cwd failure.
66534         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66535         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66536         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66537         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66538         each time through the loop.  Do not diagnose restore_cwd failure;
66539         that is the caller's job (and perhaps the caller does not care).
66540
66541         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66542         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66543         If the file already exists but is not a directory, don't bother
66544         to try to make its parents.
66545         Close potential file descriptor leak if we can't chdir("/") (!).
66546         Don't always return true if chdir($PWD) fails; return true only
66547         if the requested action was done successfully (except for the
66548         chdir($PWD)).
66549         Don't log final directory unless we actually made it.
66550         Refactor to avoid duplicate code to fix up permissions.
66551         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66552
66553         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66554         to make it a bit faster and (I hope) clearer.
66555         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66556         Fix bug in formats like %2N.
66557
66558         * lib/verify.h: New file.
66559
66560 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         Sync from coreutils.
66563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66564
66565 2005-09-22  Jim Meyering  <jim@meyering.net>
66566
66567         Sync from coreutils.
66568
66569         * m4/lstat.m4 (gl_FUNC_LSTAT):
66570         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66571         Remove obsolete comment.
66572         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66573         * m4/xstrtod.m4: Likewise.
66574
66575         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66576
66577 2005-09-22  Jim Meyering  <jim@meyering.net>
66578
66579         Sync from coreutils.
66580
66581         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66582
66583         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66584         the .tm_year member, since otherwise gcc-4.0 would now warn about
66585         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66586
66587         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66588         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66589
66590         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66591         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66592         when run in a time zone for which daylight savings time is in effect
66593         for the starting date.
66594
66595         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66596         stop us from restricting permissions of just-created absolute-named
66597         directories.
66598         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66599         to restore initial working directory.
66600         * lib/mkdir-p.c (make_dir_parents): New parameter:
66601         different_working_dir, to tell caller if/when we change the working
66602         directory and are unable to return to the initial one.
66603         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66604         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66605         `return false'.  This fixes a bug introduced on 2004-07-30.
66606
66607         * lib/openat.c (fdopendir): Be sure to close the supplied
66608         file descriptor before returning.  This makes our replacement
66609         implementation a little closer to Solaris's, where fdopendir
66610         ties the file descriptor to the returned DIR* pointer.
66611         * lib/openat.c (unlinkat): New function.
66612         * lib/openat.h (unlinkat): Add prototype.
66613         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66614         (openat_restore_fail): Rename from openat_restore_die.
66615         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66616
66617         Provide an alternative to exiting immediately upon save_cwd or
66618         restore_cwd failure.  Now, an application can arrange e.g.,
66619         to perform a longjump in that case.
66620         * lib/openat.c: Include dirname.h.
66621         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66622         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66623         and openat_restore_die rather than calling error directly.
66624         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66625
66626         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66627         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66628         define.
66629
66630         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66631         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66632                             int utc, int nanoseconds);
66633         Background:
66634         date should not have to allocate a megabyte of virtual memory to
66635         handle a format argument like +%1048575T.  When implemented with
66636         strftime, it must allocate such a buffer, use strftime to fill it
66637         in, print it, then free it.
66638         With fprintftime, it simply prints everything and exits.
66639         With no need for memory allocation, that's one fewer way to fail.
66640         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66641         optional field width, not before, so we accept %9:z, not %:9z.
66642         (my_strftime): Be sure to use L_('x') for literals.
66643
66644         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66645         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66646         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66647         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66648         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66649         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66650         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66651         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66652         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66653         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66654         * lib/xgethostname.c, lib/xreadlink.c:
66655         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66656
66657         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66658         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66659         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66660         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66661         and don't include <sys/file.h>).
66662
66663 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66664
66665         Sync from coreutils.
66666
66667         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66668         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66669         [!LDAV_DONE]: Avoid unused variable warning.
66670
66671 2005-09-21  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/unicodeio.h (unicode_to_mb): New declaration.
66674
66675 2005-09-20  Derek Price  <derek@ximbiot.com>
66676
66677         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66678         getaddrinfo.h.
66679
66680 2005-09-20  Bruno Haible  <bruno@clisp.org>
66681
66682         * gnulib-tool: Remove trailing slashes from the values specified for
66683         --source-base, --m4-base, --tests-base, --aux-dir.
66684         Suggested by Simon Josefsson <jas@extundo.com>.
66685
66686 2005-09-20  Bruno Haible  <bruno@clisp.org>
66687
66688         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66689         func_modules_to_filelist, func_import, func_create_testdir): Make all
66690         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66691         change when gnulib-tool is invoked in a different locale.
66692
66693 2005-09-19  Simon Josefsson  <jas@extundo.com>
66694
66695         * m4/socklen.m4: Fix typo.
66696
66697 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66698
66699         Use a consistent style for including <config.h>.
66700         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66701         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66702         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66703         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66704         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66705         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66706         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66707         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66708         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66709         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66710         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66711         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66712         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66713         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66714         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66715         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66716         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66717         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66718         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66719         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66720         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66721         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66722         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66723         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66724         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66725         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66726         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66727         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66728         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66729         lib/xstrtoumax.c, lib/yesno.c:
66730         Standardize inclusion of config.h.
66731         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66732         lib/inttostr.h:  Removed inclusion of config.h from header files.
66733         * lib/inttostr.c:  Adjusted in-tree users.
66734         * lib/timespec.h: Remove superfluous warning to include config.h.
66735         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66736         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66737         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66738         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66739         config.h with HAVE_CONFIG_H.
66740
66741 2005-09-19  Jim Meyering  <jim@meyering.net>
66742
66743         * modules/pathmax (License): Change to LGPL.
66744
66745 2005-09-19  Derek Price  <derek@ximbiot.com>
66746
66747         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66748
66749 2005-09-19  Bruno Haible  <bruno@clisp.org>
66750
66751         * gnulib-tool (import): Provide default for --tests-base.
66752
66753 2005-09-19  Bruno Haible  <bruno@clisp.org>
66754
66755         * doc/quote.texi: New file, extracted from gnulib.texi.
66756         * doc/ctime.texi: New file, extracted from gnulib.texi.
66757         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66758         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66759         * doc/gnulib.texi: Include them.
66760
66761 2005-09-18  Bruno Haible  <bruno@clisp.org>
66762
66763         Portability fix.
66764         * gnulib-tool (func_readlink): New function.
66765         (func_ln_if_changed): Use it.
66766
66767 2005-09-18  Bruno Haible  <bruno@clisp.org>
66768
66769         * gnulib-tool: Support --with-tests also with --import.
66770         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66771         (func_import): Use variables $testsbase and $inctests. Emit a
66772         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66773         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66774         SUBDIRS += $testsdir.
66775         (func_create_testdir): Update.
66776
66777 2005-09-18  Bruno Haible  <bruno@clisp.org>
66778
66779         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66780         instead of $dry_run.
66781         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66782         (func_ln_if_changed): Don't handle dry-run here.
66783         (func_import): In dry-run mode, detect more precisely which actions
66784         would be performed, and don't use "...ing" verbs.
66785
66786 2005-09-18  Bruno Haible  <bruno@clisp.org>
66787
66788         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66789         (func_import): Use join on two temporary files instead of three nested
66790         loops, in order to determine which files are new or old.
66791
66792 2005-09-18  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (func_import): Comment out code that spits out the
66795         new files with --dry-run.
66796
66797 2005-09-18  Bruno Haible  <bruno@clisp.org>
66798
66799         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66800
66801 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         * lib/stat-time.h: New file.
66804         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66805         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66806         in a different way.
66807         (timespec_cmp): New function.
66808         * lib/utimecmp.c: Include stat-time.h.
66809         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66810         members exist, not on the obsolescent ST_MTIM_NSEC.
66811         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66812
66813 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66814
66815         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66816
66817 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * MODULES.html.sh (File system functions): Add stat-time.
66820         * modules/stat-time: New file.
66821         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66822         is now done in a different way, by the stat-time module.
66823         * modules/utimecmp (Depends-on): Add stat-time.
66824
66825 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * m4/st_mtim.m4: Remove.  Superseded by...
66828         * m4/stat-time.m4: New file.
66829         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66830         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66831
66832 2005-09-15  Derek Price  <derek@ximbiot.com>
66833
66834         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66835
66836 2005-09-15  Derek Price  <derek@ximbiot.com>
66837
66838         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66839         * lib/regex_internal.c: Ditto, using this...
66840         (__GNUC_PREREQ): ...new macro.
66841         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66842         using...
66843         (__GNUC_PREREQ): ...this new macro.
66844
66845         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66846
66847 2005-09-15  Derek Price  <derek@ximbiot.com>
66848             Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66851         changes, consolidating in...
66852         * lib/regex_internal.h: ...this file.
66853
66854 2005-09-13  Jim Meyering  <jim@meyering.net>
66855
66856         * lib/canon-host.c: Filter through gnu indent and reword comments
66857         slightly.
66858         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66859
66860 2005-09-13  Derek Price  <derek@ximbiot.com>
66861
66862         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66863         failure.
66864         Reported by Jim Meyering  <jim@meyering.net>.
66865
66866 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66867
66868         * lib/base64.c: Typo.
66869         (base64_encode): Put b64str in initialized data section.
66870
66871 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66872
66873         Merge glibc and coreutils changes into gnulib, plus a few
66874         extra fixes.
66875         * lib/md5.c: Use #error rather than a string.
66876         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66877         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66878         (__attribute__): Define to empty for non recent-GCC.
66879         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66880         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66881         Renamed from their non-__ counterparts, with new macros replacing
66882         them if not _LIBC.  Add __THROW attribute.
66883         (rol): Remove.
66884         (struct md5_ctx): Align buffer if using GCC.
66885         * lib/sha1.h (struct sha1_ctx): Likewise.
66886         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66887         The old name was backwards.
66888         (NOTSWAP): Remove; not used.
66889         (rol): New macro, moved here from md5.h.
66890         (sha1_process_block): Remove a FIXME that doesn't make sense.
66891
66892 2005-09-12  Derek Price  <derek@ximbiot.com>
66893
66894         Return usable errors from canon-host.
66895         * lib/canon-host.h: New file.
66896         * lib/canon-host.c (canon_host): Wrap...
66897         (canon_host_r): ...this new function, which now relies exclusively on
66898         getaddrinfo.
66899         (ch_strerror): New function.
66900         (last_cherror): New global.
66901         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66902         interface.
66903         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66904         void *.
66905         (freeaddrinfo): Free ai->ai_canonname when set.
66906
66907 2005-09-12  Derek Price  <derek@ximbiot.com>
66908
66909         Make canon-host require getaddrinfo.
66910         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66911         AC_LIBSOURCE canon-host.h.  Call...
66912         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66913         gl_GETADDRINFO.
66914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66915
66916 2005-09-12  Derek Price  <derek@ximbiot.com>
66917
66918         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66919         LGPL.
66920         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66921
66922 2005-09-12  Derek Price  <derek@ximbiot.com>
66923
66924         * lib/gai_strerror.c: Include config.h when available.  Include
66925         getaddrinfo.h before other headers to test interface.
66926         Reported by Larry Jones <lawrence.jones@ugs.com>.
66927
66928 2005-09-12  Derek Price  <derek@ximbiot.com>
66929             Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * modules/glob (Files): Add glob-libc.h.
66932
66933 2005-09-12  Derek Price  <derek@ximbiot.com>
66934             Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66937         glob_.h, glob-libc.h.
66938         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66939
66940 2005-09-12  Derek Price  <derek@ximbiot.com>
66941             Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66944         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66945         protecting things that should be done only in gnulib contexts.
66946         * lib/glob_.h: New file, containing only the glob things needed for
66947         gnulib.
66948         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66949         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66950         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66951         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66952         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66953         and to respect the namespace rules better.
66954
66955 2005-09-08  Simon Josefsson  <jas@extundo.com>
66956
66957         * modules/socklen: New file.
66958
66959 2005-09-08  Simon Josefsson  <jas@extundo.com>
66960
66961         * m4/socklen.m4: New file.
66962
66963 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66964
66965         * modules/utimens (Files): Add m4/utimbuf.m4, since
66966         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66967         Reported by Sergey Poznyakoff.
66968
66969 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66970
66971         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66972         definitions, since that's the preferred style in glibc.
66973         Fix a minor spacing issue, and update copyright notice to match
66974         glibc's.
66975
66976 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66979
66980 2005-09-06  Simon Josefsson  <jas@extundo.com>
66981
66982         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66983         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66984
66985 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66988         warning.
66989
66990 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * config/srclist.txt: Add glibc bug 1302.
66993
66994 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         Change bitset word type from unsigned int to unsigned long int,
66997         as this has better performance on typical 64-bit hosts.
66998         Port bitset code to hosts with unusual word sizes.
66999         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67000         (build_collating_symbol):
67001         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67002         argument is a bitset.  This is merely a style issue, but it makes
67003         it clearer that an entire array is expected.
67004         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67005         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67006         Port to the case where bitset_word is not the same as unsigned int.
67007         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67008         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67009         Likewise.
67010         * lib/regexec.c (check_dst_limits_calc_pos_1,
67011         check_subexp_matching_top):
67012         (build_trtable, group_nodes_into_DFAstates):
67013         Likewise.
67014         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67015         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67016         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67017         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67018         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67019         * lib/regcomp.c (optimize_subexps, lower_subexp):
67020         Work even if bitset_word has holes in its bitwise representation.
67021         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67022         * lib/regexec.c (check_dst_limits_calc_pos_1,
67023         check_subexp_matching_top):
67024         Likewise.
67025         * lib/regex_internal.c (re_string_reconstruct):
67026         Don't assume UCHAR_MAX == 255.
67027         * lib/regex_internal.h (bitset_set_all): Likewise.
67028         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67029         All uses changed.
67030         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67031         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67032         All uses changed.
67033         (BITSET_WORD_MAX): New macro.
67034         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67035         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67036         (bitset_empty, bitset_copy):
67037         Prefer sizeof (bitset) to multiplying it out ourselves.
67038         (bitset_not_merge): Remove; unused.
67039         (bitset_contain): Return bool, not unsigned int with one bit on.
67040         All callers changed.
67041         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67042         alignment than re_node_set; do this by defining a new internal
67043         type struct dests_alloc and using it to allocate memory.
67044
67045 2005-09-05  Bruno Haible  <bruno@clisp.org>
67046
67047         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67048         links.
67049
67050 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67051
67052         * modules/size_max (Makefile.am): Add size_max.h
67053
67054 2005-09-04  Derek Price  <derek@ximbiot.com>
67055
67056         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67057
67058 2005-09-03  Simon Josefsson  <jas@extundo.com>
67059
67060         * gnulib-tool: Fix typo.
67061
67062 2005-09-03  Simon Josefsson  <jas@extundo.com>
67063
67064         * config/srclist.txt: Add glibc bug 1293.
67065
67066 2005-09-03  Derek Price  <derek@ximbiot.com>
67067
67068         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67069         From Larry Jones <lawrence.jones@ugs.com>.
67070
67071 2005-09-02  Simon Josefsson  <jas@extundo.com>
67072
67073         * modules/socklen: New file.
67074
67075 2005-09-02  Simon Josefsson  <jas@extundo.com>
67076
67077         * modules/havelib: New module.
67078
67079         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67080         Use havelib.
67081
67082 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         Check for arithmetic overflow when calculating sizes, to prevent
67085         some buffer-overflow issues.  These patches are conservative, in the
67086         sense that when I couldn't determine whether an overflow was possible,
67087         I inserted a run-time check.
67088         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67089         macros.
67090         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67091         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67092         (re_xnrealloc, re_x2nrealloc): New inline functions.
67093         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67094         parse_bracket_exp):
67095         (build_equiv_class, build_charclass): Check for arithmetic overflow
67096         in size expression calculations.
67097         * lib/regex_internal.c (re_string_realloc_buffers):
67098         (build_wcs_upper_buffer, re_node_set_add_intersect):
67099         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67100         (re_dfa_add_node, register_state): Likewise.
67101         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67102         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67103         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67104         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67105
67106 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67109         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67110
67111 2005-09-02  Bruno Haible  <bruno@clisp.org>
67112
67113         Support for lib vs. lib64 distinction on biarch platforms.
67114         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67115         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67117
67118 2005-09-02  Bruno Haible  <bruno@clisp.org>
67119
67120         * gnulib-tool (import): In the other first-use case, provide defaults
67121         as well.
67122
67123 2005-09-02  Bruno Haible  <bruno@clisp.org>
67124
67125         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67126         patches not yet found in the latest gettext release.
67127
67128 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67131         to avoid a collision with bits/local_lim.h in glibc.
67132         All uses changed.  Problem reported by Dmitry V. Levin in
67133         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67134
67135         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67136         bugs in int versus size_t comparisons.
67137         (re_string_context_at): Fix bug where the code assumed that
67138         Idx is signed.
67139
67140         Use bool where appropriate.
67141         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67142         All callers changed.
67143         (calc_eclosure_iter): Likewise, for ROOT arg.
67144         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67145         (build_charclass_op): Likewise, for NON_MATCH arg.
67146         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67147         (re_string_construct_common): Likewise, for ICASE arg.
67148         * lib/regexec.c (re_search_2_stub, re_search_stub):
67149         Likewise, for RET_LEN arg.
67150         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67151         (set_regs): Likewise, for FL_BACKTRACK arg.
67152         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67153         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67154         (calc_eclosure_iter, parse_bracket_exp):
67155         Use bool for internal variables that are booleans.
67156         * lib/regexec.c (re_search_internal, check_matching,
67157         proceed_next_node):
67158         (set_regs, build_sifted_states, sift_states_bkref):
67159         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67160         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67161         (find_collation_sequence_value):
67162         Likewise.
67163         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67164         (re_node_set_compare):
67165         Return bool, not int. All callers changed.
67166         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67167         (build_trtable, check_node_accept): Likewise.
67168         * lib/regex_internal.h: Include stdbool.h.
67169
67170         Fix bugs uncovered when converting to bool.
67171         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67172         failure instead of charging ahead blindly.
67173         * lib/regex_internal.c (register_state): Likewise.
67174         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67175         for freeing internal storage.
67176         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67177         bitset pieces used as boolean, to avoid undefined behavior
67178         on hosts that do int overflow checking.
67179
67180 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * config/srclist.txt: Add glibc bugs 1285-1287.
67183
67184 2005-09-01  Jim Meyering  <jim@meyering.net>
67185
67186         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67187         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67188         Require gl_STAT_MACROS, too.
67189
67190 2005-09-01  Bruno Haible  <bruno@clisp.org>
67191
67192         * gnulib-tool (import): In the first-use case, provide defaults.
67193
67194 2005-09-01  Bruno Haible  <bruno@clisp.org>
67195
67196         * gnulib-tool (func_import): Remove the .tmp files.
67197
67198 2005-09-01  Bruno Haible  <bruno@clisp.org>
67199
67200         * gnulib-tool (func_import): Fix handling of symbolic links.
67201
67202 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67205         old glibc regex code mishandles strings longer than 2**31 bytes.
67206         This patch fixes this when the regex code is used in gnulib
67207         (i.e., outside glibc).
67208
67209         This patch should not affect the use of the regex code inside
67210         glibc.  No doubt this problem also needs to be handled for glibc
67211         as well, but the result will be an incompatible change to the
67212         glibc ABI, and the old ABI will have to be supported too.  That
67213         can be the the subject for another patch.
67214
67215         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67216         governing whether the rest of this patch is active.  By default,
67217         the macro is disabled and the patch has no effect.
67218         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67219         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67220         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67221         (re_match_2, re_set_registers): Use the new types.
67222         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67223         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67224         New macros.
67225         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67226         (re_string_context_at, bin_tree_t, re_dfastate_t):
67227         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67228         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67229         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67230         (re_string_char_size_at, re_string_wchar_at):
67231         (re_string_elem_size_at):
67232         Use the new types and macros to port to 64-bit hosts.
67233         Use unsigned types for internal values, so that the code
67234         mostly works even for arrays larger than SSIZE_MAX.
67235         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67236         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67237         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67238         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67239         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67240         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67241         (calc_inveclosure, parse_dup_op, build_range_exp):
67242         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67243         (fetch_number, create_token_tree, mark_opt_subexp):
67244         Likewise.
67245         * lib/regex_internal.c (re_string_construct_common,
67246         create_ci_newstate):
67247         (create_cd_newstate, re_string_allocate, re_string_construct):
67248         (re_string_realloc_buffers, build_wcs_upper_buffer):
67249         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67250         (re_string_reconstruct, re_string_peek_byte_case):
67251         (re_string_fetch_byte_case, re_string_context_at):
67252         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67253         (re_node_set_init_copy, re_node_set_add_intersect):
67254         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67255         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67256         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67257         (re_acquire_state, re_acquire_state_context, register_state):
67258         Likewise.
67259         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67260         search_cur_bkref_entry):
67261         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67262         (re_search_internal, re_search_2_stub, re_search_stub)
67263         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67264         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67265         (update_cur_sifted_state, check_dst_limits):
67266         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67267         (check_subexp_limits, sift_states_bkref, merge_state_array):
67268         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67269         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67270         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67271         (expand_bkref_cache, check_node_accept_bytes):
67272         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67273         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67274         (acquire_init_state_context, check_halt_node_context):
67275         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67276         (sift_states_backward, clean_state_log_if_needed):
67277         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67278         (find_recover_state, transit_state_sb, transit_state_mb):
67279         (transit_state_bkref, build_trtable, match_ctx_clean):
67280         Likewise.
67281         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67282         to work around an assumption that REG_MISSING is negative.
67283
67284         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67285         (seek_collating_symbol_entry) [defined _LIBC]:
67286         (lookup_collation_sequence_value) [defined _LIBC]:
67287         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67288         Use prototypes rather than old-style function definitions.
67289         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67290         (transit_state_sb) [0]:
67291         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67292
67293         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67294         rm_eo.
67295
67296         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67297         (optimize_subexps, lower_subexp):
67298         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67299         since the signed shift might overflow.  Use 1u<<31 instead.
67300         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67301         Likewise.
67302         * lib/regexec.c (check_dst_limits_calc_pos_1,
67303         check_subexp_matching_top): Likewise.
67304
67305         * lib/regcomp.c (optimize_subexps, lower_subexp):
67306         Use CHAR_BIT rather than 8, for clarity.
67307         * lib/regexec.c (check_dst_limits_calc_pos_1):
67308         (check_subexp_matching_top): Likewise.
67309         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67310         have to worry about portability issues when shifting it left.
67311         Remove no-longer-needed test for table_size > 0.
67312         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67313         in a word, as the resulting behavior is undefined.
67314         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67315         in one case, a <= should have been an <, and in another case the
67316         whole test was missing.
67317         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67318         the standard name CHAR_BIT.
67319         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67320         this is not true on one's complement and signed-magnitude hosts.
67321
67322         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67323         next_last_offset.
67324         (struct re_dfa_t): Remove unused member states_alloc.
67325         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67326
67327 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67330         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67331         and large-file glibc and in 32-bit large-file Solaris.
67332
67333 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67334
67335         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67336         lengths fit in regoff_t; this isn't true if regoff_t is the same
67337         width as size_t.
67338         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67339         (= START + RANGE) instead of RANGE.  This avoids overflow
67340         problems when regoff_t is the same width as size_t.
67341         All callers changed.
67342         (re_search_2_stub): Check for overflow when adding the
67343         sizes of the two strings.
67344         (re_search_stub): Check for overflow when adding START
67345         to RANGE; if it occurs, substitute the extreme value.
67346
67347 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67350
67351 2005-08-31  Jim Meyering  <jim@meyering.net>
67352
67353         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67354         a pointer-to-const.
67355         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67356         (register_state): Likewise.
67357         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67358         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67359         (group_nodes_into_DFAstates): Likewise.
67360
67361 2005-08-31  Jim Meyering  <jim@meyering.net>
67362
67363         * check-module: Add a FIXME comment.
67364
67365 2005-08-31  Eric Blake  <ebb9@byu.net>
67366
67367         * modules/unistd-safer (Files): Add unistd--.h.
67368         * modules/stdio-safer (Files): Add stdio--.h.
67369
67370 2005-08-31  Derek Price  <derek@ximbiot.com>
67371
67372         * lib/getdelim.c (getdelim): Return EOF on EOF.
67373         Reported by Larry Jones <lawrence.jones@ugs.com>.
67374
67375 2005-08-31  Bruno Haible  <bruno@clisp.org>
67376
67377         Avoid unnecessary diffs in the generated lib/Makefile.am.
67378         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67379         the generated files.
67380         (func_import): Don't set cmd.
67381
67382 2005-08-31  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/strstr.c: Include <stddef.h>, for NULL.
67385         * lib/strcasestr.c: Likewise.
67386         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67387
67388 2005-08-31  Bruno Haible  <bruno@clisp.org>
67389
67390         * gnulib-tool: New option --macro-prefix.
67391         (func_import): Use macro_prefix.
67392         (import): Handle option --macro-prefix.
67393
67394 2005-08-31  Bruno Haible  <bruno@clisp.org>
67395
67396         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67397         Also use new variables cached_lgpl, cached_libtool.
67398
67399 2005-08-31  Bruno Haible  <bruno@clisp.org>
67400
67401         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67402         always instantiating them.
67403
67404 2005-08-31  Bruno Haible  <bruno@clisp.org>
67405
67406         * gnulib-tool (func_import): Read the previous cached settings
67407         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67408         earlier added by gnulib but are now dropped. Warn when a gnulib file
67409         overwrites a non-gnulib file.
67410
67411 2005-08-31  Bruno Haible  <bruno@clisp.org>
67412
67413         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67414         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67415         projects that don't keep autogenerated files in CVS. Put into
67416         actioncmd only the specified modules, not the transitive closure.
67417
67418 2005-08-31  Bruno Haible  <bruno@clisp.org>
67419
67420         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67421         Create directories that shall be filled.
67422         (import): Don't look for gl_* macros in configure.ac. Recurse across
67423         all directories containing a gnulib-cache.m4 files, if meaningful.
67424
67425 2005-08-31  Bruno Haible  <bruno@clisp.org>
67426
67427         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67428         (import): Set seen_libtool when we see gl_LIBTOOL.
67429
67430 2005-08-31  Bruno Haible  <bruno@clisp.org>
67431
67432         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67433         declaration macro definitions from generated gnulib.m4.
67434
67435 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67436
67437         * lib/iconvme.h: Add prototype for iconv_alloc.
67438
67439 2005-08-29  Simon Josefsson  <jas@extundo.com>
67440
67441         * lib/iconvme.c: Fix errno.
67442
67443 2005-08-29  Bruno Haible  <bruno@clisp.org>
67444
67445         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67446         that it works when the directory contains spaces.
67447
67448 2005-08-29  Bruno Haible  <bruno@clisp.org>
67449
67450         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67451
67452 2005-08-29  Bruno Haible  <bruno@clisp.org>
67453
67454         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67455         Emit more advice.
67456
67457 2005-08-29  Bruno Haible  <bruno@clisp.org>
67458         and Stepan Kasal  <kasal@ucw.cz>
67459
67460         * check-module: If more parameters are given, check each of them
67461         separately; add more exceptions, as noted by Jim Meyering.
67462         (check_module): New procedure.
67463         (%exempt_header): Now contains all exceptions.
67464
67465 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67466
67467         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67468
67469 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67470
67471         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67472
67473 2005-08-28  Bruno Haible  <bruno@clisp.org>
67474
67475         * m4/gnulib-tool.m4: New file.
67476
67477 2005-08-27  Jim Meyering  <jim@meyering.net>
67478
67479         * modules/unistd-safer (Files): Add pipe-safer.c.
67480         * modules/fcntl-safer (Files): Add creat-safer.c.
67481
67482 2005-08-27  Jim Meyering  <jim@meyering.net>
67483
67484         * m4/stdlib-safer.m4: New file.  From coreutils.
67485         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67487         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67488         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67489         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67490
67491 2005-08-27  Jim Meyering  <jim@meyering.net>
67492
67493         * lib/fopen-safer.c: Merge minor changes from coreutils.
67494         * lib/dup-safer.c: Likewise.
67495         * lib/fd-safer.c: Likewise.
67496
67497         Merge from coreutils.
67498         * lib/stdio--.h: New file.
67499         * lib/stdlib--.h: New file.
67500         * lib/mkstemp-safer.c: New file.
67501
67502         GNU tar needs these.
67503         * lib/pipe-safer.c: New file.
67504         * lib/creat-safer.c: New file.
67505         * lib/fcntl--.h (creat): Define to creat_safer.
67506         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67507         * lib/unistd--.h (pipe): Define to pipe_safer.
67508         * lib/unistd-safer.h: Declare pipe_safer.
67509
67510 2005-08-26  Simon Josefsson  <jas@extundo.com>
67511
67512         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67513         Haible <bruno@clisp.org>.
67514
67515 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * lib/regex_internal.h: Remove all references to
67518         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67519         or better.
67520         (bitset_not, bitset_merge, bitset_not_merge):
67521         (bitset_mask, re_string_allocate, re_string_construct):
67522         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67523         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67524         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67525         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67526         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67527         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67528         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67529         (re_acquire_state_context):
67530         Remove unnecessary forward decls.
67531         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67532         Put __attribute at function definition,
67533         now that the function decl has been removed.
67534         * lib/regex_internal.c (re_string_peek_byte_case):
67535         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67536         Likewise.
67537
67538 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67539
67540         * m4/regex.m4: Add AC_PREREQ(2.50).
67541         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67542
67543 2005-08-25  Simon Josefsson  <jas@extundo.com>
67544
67545         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67546         __fsetlocking.
67547
67548 2005-08-25  Simon Josefsson  <jas@extundo.com>
67549
67550         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67551         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67552         GLIBC specific code.
67553
67554 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67555
67556         Make regex safe for g++.  This fixes one real bug (an "err"
67557         that should have been "*err").  g++ problem reported by
67558         Sam Steingold.
67559         * lib/regex_internal.h (re_calloc): New macro, consistent with
67560         re_malloc etc.  All callers of calloc changed to use re_calloc.
67561         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67562         not int.  All callers changed.
67563         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67564         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67565         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67566         (find_recover_state): Change "err" to "*err"; this fixes what
67567         appears to be a real bug.
67568         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67569         versus int.
67570
67571 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * modules/regex (Depends-on): Add malloc, since the code
67574         assumes that !malloc(0) means failure.
67575
67576 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67579
67580         alloca modernization/simplification for regex.
67581         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67582         needs to be at the start of the file, and can be moved into
67583         regex_internal.h and simplified.
67584         * lib/regex_internal.h: Include <alloca.h>.
67585         (__libc_use_alloca) [!defined _LIBC]: New macro.
67586         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67587         now works outside glibc.
67588
67589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         * config/srclist.txt: Add glibc bugs 1241, 1245.
67592
67593 2005-08-25  Jim Meyering  <jim@meyering.net>
67594
67595         * lib/open-safer.c: Include <config.h>.
67596         Otherwise, we'd lose LARGEFILE support in any file using
67597         e.g. "fcntl--.h"
67598
67599 2005-08-25  Bruno Haible  <bruno@clisp.org>
67600
67601         * m4/minmax.m4: Require autoconf 2.52.
67602         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67603         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67604         alternatives of translit over the alphabet.
67605         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67606
67607 2005-08-24  Simon Josefsson  <jas@extundo.com>
67608
67609         * tests/test-getpass.c: New file.
67610
67611 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67614         for GNU regex features.
67615
67616 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67619         * lib/regex.h (regerror): Likewise.
67620
67621         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67622         requires this.  (The code never needed it.)
67623
67624         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67625         All uses of recently-renamed identifiers changed to use the new,
67626         POSIX-compliant names.  The code will build and run just fine
67627         without these changes, but it's better to eat our own dog food
67628         and use the standard-conforming names.
67629
67630         * lib/regex.h: Fix a multitude of POSIX name space violations.
67631         These changes have an effect only for programs that define
67632         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67633         do not change anything for programs compiled in the normal way.
67634         Also, there is no effect on the ABI.
67635
67636         (_REGEX_SOURCE): New macro.
67637         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67638         defined and _GNU_SOURCE is not; this fixes a name space violation.
67639
67640         Rename the following macros to obey POSIX requirements.
67641         The old names are still visible as macros if _REGEX_SOURCE is defined.
67642         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67643         RE_BACKSLASH_ESCAPE_IN_LISTS.
67644         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67645         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67646         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67647         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67648         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67649         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67650         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67651         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67652         (REG_INTERVALS): renamed from RE_INTERVALS.
67653         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67654         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67655         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67656         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67657         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67658         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67659         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67660         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67661         RE_UNMATCHED_RIGHT_PAREN_ORD.
67662         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67663         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67664         (REG_DEBUG): renamed from RE_DEBUG.
67665         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67666         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67667         unusual, since we can't clash with the POSIX REG_ICASE.
67668         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67669         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67670         (REG_NO_SUB): renamed from RE_NO_SUB.
67671         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67672         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67673         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67674         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67675         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67676         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67677         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67678         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67679         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67680         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67681         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67682         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67683         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67684         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67685         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67686         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67687         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67688         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67689         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67690         (REG_FIXED): Renamed from REGS_FIXED.
67691         (REG_NREGS): Renamed from RE_NREGS.
67692
67693         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67694         of other REG_* macros, since POSIX says the user is allowed to
67695         #undef these macros selectively.
67696
67697         (reg_errcode_t): Update comment stating what other tables need
67698         to be consistent.
67699
67700         Rename the following enum values to obey POSIX requirements.
67701         The old names are still visible as macros.
67702         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67703         is not defined, since GNU is supposed to be a superset of POSIX as
67704         much as possible, and since we want reg_errcode_t to be a signed
67705         type for implementation consistency.
67706         (_REG_NOERROR): Renamed from REG_NOERROR.
67707         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67708         (_REG_BADPAT): Renamed from REG_BADPAT.
67709         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67710         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67711         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67712         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67713         (_REG_EBRACK): Renamed from REG_EBRACK.
67714         (_REG_EPAREN): Renamed from REG_EPAREN.
67715         (_REG_EBRACE): Renamed from REG_EBRACE.
67716         (_REG_BADBR): Renamed from REG_BADBR.
67717         (_REG_ERANGE): Renamed from REG_ERANGE.
67718         (_REG_ESPACE): Renamed from REG_ESPACE.
67719         (_REG_BADRPT): Renamed from REG_BADRPT.
67720         (_REG_EEND): Renamed from REG_EEND.
67721         (_REG_ESIZE): Renamed from REG_ESIZE.
67722         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67723         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67724         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67725         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67726         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67727
67728         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67729         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67730         changed.  But support the old name if the new one is not defined
67731         and if _REGEX_SOURCE.
67732
67733         Change the following member names in struct re_pattern_buffer.
67734         The old names are still supported if !_REGEX_SOURCE.
67735         The new names are always supported, regardless of _REGEX_SOURCE.
67736         (re_buffer): Renamed from buffer.
67737         (re_allocated): Renamed from allocated.
67738         (re_used): Renamed from used.
67739         (re_syntax): Renamed from syntax.
67740         (re_fastmap): Renamed from fastmap.
67741         (re_translate): Renamed from translate.
67742         (re_can_be_null): Renamed from can_be_null.
67743         (re_regs_allocated): Renamed from regs_allocated.
67744         (re_fastmap_accurate): Renamed from fastmap_accurate.
67745         (re_no_sub): Renamed from no_sub.
67746         (re_not_bol): Renamed from not_bol.
67747         (re_not_eol): Renamed from not_eol.
67748         (re_newline_anchor): Renamed from newline_anchor.
67749
67750         Change the following member names in struct re_registers.
67751         The old names are still supported if !_REGEX_SOURCE.
67752         The new names are always supported, regardless of _REGEX_SOURCE.
67753         (rm_num_regs): Renamed from num_regs.
67754         (rm_start): Renamed from start.
67755         (rm_end): Renamed from end.
67756
67757         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67758         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67759         Prepend __ to parameter names.
67760
67761         Undo yesterday's changes.
67762
67763 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67766         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67767         lib/regex.c.
67768
67769 2005-08-24  Jim Meyering  <jim@meyering.net>
67770
67771         Sync from coreutils.
67772         * m4/fcntl-safer.m4: New file.
67773
67774         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67775         and object files for this module.
67776
67777 2005-08-24  Jim Meyering  <jim@meyering.net>
67778
67779         Sync from coreutils.
67780         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67781
67782 2005-08-24  Jim Meyering  <jim@meyering.net>
67783
67784         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67785         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67786
67787 2005-08-24  Jim Meyering  <jim@meyering.net>
67788
67789         * modules/fcntl-safer: New module.
67790         * modules/fts (Depends-on): Add fcntl-safer.
67791         * MODULES.html.sh (File descriptor based Input/Output):
67792         Add fcntl-safer.
67793
67794 2005-08-24  Bruno Haible  <bruno@clisp.org>
67795
67796         Support for unit test modules.
67797         * modules/README: Mention tests modules.
67798         * modules/TEMPLATE-TESTS: New file.
67799         * gnulib-tool: New options --extract-tests-module, --with-tests and
67800         --tests-base (unused for the moment).
67801         (testsbase, inctests): New variables.
67802         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67803         (func_verify_module): Exclude TEMPLATE-TESTS.
67804         (func_verify_nontests_module, func_verify_tests_module): New functions.
67805         (func_get_dependencies): Add implicit dependency for tests modules.
67806         (func_get_tests_module): New function.
67807         (func_modules_transitive_closure): When --with-tests was specified,
67808         include the unit tests as well, unless explicitly avoided.
67809         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67810         (func_emit_tests_Makefile_am): New function.
67811         (func_create_testdir): When --with-tests was specified, emit a
67812         tests/ directory.
67813         * MODULES.html.sh (Future developments): Update.
67814
67815 2005-08-24  Bruno Haible  <bruno@clisp.org>
67816
67817         * modules/tls-tests: New file.
67818         * tests/test-tls.c: New file, from GNU gettext.
67819
67820 2005-08-24  Bruno Haible  <bruno@clisp.org>
67821
67822         * modules/lock-tests: New file.
67823         * tests/test-lock.c: New file, from GNU gettext.
67824
67825 2005-08-24  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/lock.h: Add multiple inclusion guard.
67828         * lib/tls.h: Add multiple inclusion guard.
67829
67830 2005-08-24  Bruno Haible  <bruno@clisp.org>
67831
67832         * gnulib-tool: Add support for the --aux-dir option to
67833         --create-testdir, --create-megatestdir, --test, --megatest.
67834         (func_create_testdir, func_create_megatestdir): Optionally emit a
67835         AC_CONFIG_AUX_DIR directive.
67836         (create-testdir, create-megatestdir, test, megatest): Provide a
67837         default value for $auxdir.
67838
67839 2005-08-24  Bruno Haible  <bruno@clisp.org>
67840
67841         * gnulib-tool (import): Use compound statement instead of subshell
67842         where possible.
67843
67844 2005-08-24  Bruno Haible  <bruno@clisp.org>
67845
67846         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67847
67848 2005-08-24  Bruno Haible  <bruno@clisp.org>
67849
67850         * gnulib-tool (func_version): Update.
67851
67852 2005-08-24  Bruno Haible  <bruno@clisp.org>
67853
67854         * gnulib-tool (func_import, func_create_testdir,
67855         func_create_megatestdir): Quote all autoconf macro arguments.
67856
67857 2005-08-24  Bruno Haible  <bruno@clisp.org>
67858
67859         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67860         option --force, because --force causes the aclocal.m4 of each
67861         subdirectory to be newer than the corresponding config.h.in.
67862
67863 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67866         All contents moved to gl_REGEX.
67867         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67868         assume that it does.
67869
67870 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * lib/regex.h (REG_NOSYS)
67873         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67874         Define, since POSIX requires it as of 2001.
67875         (_REG_ENOSYS)
67876         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67877         New private symbol, used to keep the enum signed in all cases.
67878         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67879         Youngman in
67880         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67881
67882         * lib/regex_internal.c (re_string_skip_chars, register_state):
67883         (calc_state_hash):
67884         Remove forward decls; no longer needed now that we use prototypes.
67885         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67886         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67887         (clean_state_log_if_needed): Likewise.
67888
67889 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * config/srclist.txt: Add glibc bugs 1231-1233.
67892
67893 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         Fix problems reported by Sam Steingold in
67896         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67897         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67898         assumed that reg_errcode_t is a signed type, which is not
67899         necessarily true if _XOPEN_SOURCE is not defined.
67900         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67901         since some compilers warn about it otherwise.
67902
67903 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67906         (init_word_char, create_initial_state, duplicate_node_closure):
67907         (fetch_token, peek_token_bracket, build_range_exp):
67908         (build_collating_symbol): Remove forward decls; no longer needed
67909         now that we use prototypes.
67910
67911         * lib/regcomp.c:
67912         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67913         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67914         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67915         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67916         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67917         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67918         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67919         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67920         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67921         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67922         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67923         (build_charclass, build_charclass_op, fetch_number, create_tree):
67924         (create_token_tree, mark_opt_subexp, duplicate_tree):
67925         Use prototypes rather than old-style definitions.
67926
67927         * lib/regex_internal.c:
67928         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67929         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67930         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67931         (re_string_reconstruct, re_string_peek_byte_case):
67932         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67933         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67934         (re_node_set_init_copy, re_node_set_add_intersect):
67935         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67936         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67937         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67938         (re_acquire_state, re_acquire_state_context, register_state):
67939         (create_ci_newstate, create_cd_newstate, free_state):
67940         Likewise.
67941         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67942         re_search_2):
67943         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67944         (re_search_internal, prune_impossible_nodes):
67945         (acquire_init_state_context, check_matching, static):
67946         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67947         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67948         (update_regs, sift_states_backward, build_sifted_states):
67949         (clean_state_log_if_needed, merge_state_array):
67950         (update_cur_sifted_state, add_epsilon_src_nodes):
67951         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67952         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67953         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67954         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67955         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67956         (check_arrival, check_arrival_add_next_nodes):
67957         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67958         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67959         (check_node_accept_bytes, check_node_accept, extend_buffers):
67960         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67961         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67962         (sift_ctx_init):
67963         Likewise.
67964
67965         * lib/regex_internal.h:
67966         (re_string_allocate, re_string_construct, re_string_reconstruct):
67967         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67968         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67969         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67970         (re_string_context_at, re_string_peek_byte_case):
67971         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67972         is defined, since we now use prototypes always.
67973
67974         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67975         C89 or better.  All uses removed.
67976
67977 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67978
67979         * config/srclist.txt: Add glibc bugs 1220-1227.
67980
67981 2005-08-20  Jim Meyering  <jim@meyering.net>
67982
67983         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67984         of unused local, dfa.
67985
67986 2005-08-20  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67989
67990 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67993         (re_node_set_insert_last, re_dfa_add_node):
67994         Rename local variables to avoid GCC shadowing warnings.
67995
67996 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67999         [defined lint]: Suppress bogus uninitialized-variable warnings.
68000
68001         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68002         and let the caller return REG_ESPACE if out of space.  This
68003         removes an uninitialied-variable warning with GCC 4.0.1, and also
68004         avoids taking the address of a local variable.  All callers
68005         changed.
68006
68007 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68010         $LIBCSRC/posix/regexec.c.
68011         Add glibc bug 1217 for regcomp.c.
68012
68013 2005-08-19  Jim Meyering  <jim@meyering.net>
68014
68015         * lib/regexec.c (proceed_next_node): Redo local variables to
68016         avoid GCC shadowing warnings.
68017
68018 2005-08-18  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/strstr.c (strstr): Fix return value in multibyte case.
68021         * lib/strcasestr.c (strcasestr): Likewise.
68022
68023 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68026
68027 2005-08-17  Jim Meyering  <jim@meyering.net>
68028
68029         Make the %s format (seconds since the epoch) work for a negative
68030         number and when used with a zero-padded field width, e.g. %015s.
68031
68032         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68033         label so that it precedes the code to set `digits'.  Otherwise,
68034         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68035         print `00-22'.  Now, it prints `-0022', as it should.
68036
68037 2005-08-17  Bruno Haible  <bruno@clisp.org>
68038
68039         * modules/strstr (Files): Add m4/mbrtowc.m4.
68040         (Depends-on): Add mbuiter.
68041
68042 2005-08-17  Bruno Haible  <bruno@clisp.org>
68043
68044         * modules/strcasestr: New file.
68045         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68046         strcasestr.
68047
68048 2005-08-17  Bruno Haible  <bruno@clisp.org>
68049
68050         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68051
68052 2005-08-17  Bruno Haible  <bruno@clisp.org>
68053
68054         * modules/mbuiter: New file.
68055         * MODULES.html.sh (Extended multibyte and wide character utilities):
68056         Add mbuiter.
68057
68058 2005-08-17  Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68061         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68062
68063 2005-08-17  Bruno Haible  <bruno@clisp.org>
68064
68065         * m4/strcasestr.m4: New file.
68066
68067 2005-08-17  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68070         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68071
68072 2005-08-17  Bruno Haible  <bruno@clisp.org>
68073
68074         * lib/strcasestr.h: New file.
68075         * lib/strcasestr.c: New file.
68076
68077 2005-08-17  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/strcasecmp.c: Use mbuiter.h.
68080
68081 2005-08-17  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/mbuiter.h: New file.
68084
68085 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68088         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68089         and gl_GETOPT are both invoked via different paths (as happens
68090         with GNU tar CVS because it uses both argp and getopt), the former
68091         wins.
68092
68093 2005-08-16  Bruno Haible  <bruno@clisp.org>
68094
68095         * modules/tls: New file.
68096         * MODULES.html.sh (Multithreading): Add tls.
68097
68098 2005-08-16  Bruno Haible  <bruno@clisp.org>
68099
68100         * modules/strnlen1: New file.
68101         * MODULES.html.sh (String handling): Add strnlen1.
68102
68103 2005-08-16  Bruno Haible  <bruno@clisp.org>
68104
68105         * modules/strcase (Files): Add m4/mbrtowc.m4.
68106         (Depends-on): Add strnlen1, mbchar.
68107
68108 2005-08-16  Bruno Haible  <bruno@clisp.org>
68109
68110         * modules/mbiter: New file.
68111         * MODULES.html.sh (Extended multibyte and wide character utilities):
68112         Add mbiter.
68113
68114 2005-08-16  Bruno Haible  <bruno@clisp.org>
68115
68116         * modules/mbfile: New file.
68117         * MODULES.html.sh (Extended multibyte and wide character utilities):
68118         Add mbfile.
68119
68120 2005-08-16  Bruno Haible  <bruno@clisp.org>
68121
68122         * modules/mbchar: New file.
68123         * MODULES.html.sh (Extended multibyte and wide character utilities):
68124         New section.
68125
68126 2005-08-16  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/tls.m4: New file, from GNU gettext.
68129
68130 2005-08-16  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68133         always.
68134         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68135
68136 2005-08-16  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/mbiter.m4: New file.
68139
68140 2005-08-16  Bruno Haible  <bruno@clisp.org>
68141
68142         * m4/mbfile.m4: New file.
68143
68144 2005-08-16  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/mbchar.m4: New file.
68147
68148 2005-08-16  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/tls.h: New file, from GNU gettext.
68151         * lib/tls.c: New file, from GNU gettext.
68152
68153 2005-08-16  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/strnlen1.h: New file.
68156         * lib/strnlen1.c: New file.
68157
68158 2005-08-16  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68161         (mbi_init): Update.
68162         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68163         NUL byte, not after it.
68164
68165 2005-08-16  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/strcase.h (strcasecmp): Add note in comments.
68168         * lib/strncasecmp.c: Use code from strcasecmp.c.
68169         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68170         (strcasecmp): Work correctly in multibyte locales.
68171
68172 2005-08-16  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/mbiter.h: New file.
68175
68176 2005-08-16  Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/mbfile.h: New file.
68179
68180 2005-08-16  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/mbchar.h: New file.
68183         * lib/mbchar.c: New file.
68184
68185 2005-08-16  Bruno Haible  <bruno@clisp.org>
68186
68187         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68188         the valid ones. Makes the comparison operations transitive:
68189         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68190         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68191
68192 2005-08-15  Simon Josefsson  <jas@extundo.com>
68193
68194         * modules/ssize_t (License): Change to 'unlimited'.
68195
68196         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68197
68198 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68201         Add comments for each pending glibc patch.
68202
68203 2005-08-15  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68206         __cplusplus is defined.
68207
68208 2005-08-14  Jim Meyering  <jim@meyering.net>
68209
68210         Sync from coreutils.
68211
68212         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68213         Use the hash-table-based cycle-detection code not just when
68214         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68215         Reported by James Youngman in
68216         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68217         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68218         FTS_TIGHT_CYCLE_CHECK.
68219         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68220         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68221         once again.
68222         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68223         * lib/fts.c (fd_safer): Remove decl.
68224         Include fcntl--.h rather than unistd-safer.h
68225         (fts_safe_changedir): Don't call fd_safer; no longer needed
68226         now that we include fcntl--.h.
68227
68228 2005-08-12  Simon Josefsson  <jas@extundo.com>
68229
68230         * modules/getndelim2: Use ssize_t module.
68231         * modules/getnline: Likewise.
68232         * modules/safe-read: Likewise.
68233         * modules/xreadlink: Likewise.
68234
68235         * modules/ssize_t: New file.
68236
68237 2005-08-12  Simon Josefsson  <jas@extundo.com>
68238
68239         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68240
68241 2005-08-12  Simon Josefsson  <jas@extundo.com>
68242
68243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68244         ssize_t.
68245
68246 2005-08-12  Simon Josefsson  <jas@extundo.com>
68247
68248         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68249         readline, getdelim and check_version.
68250         (Support for systems lacking ISO C 99: Sizes of integer types):
68251         Add size_max.
68252
68253 2005-08-12  Bruno Haible  <bruno@clisp.org>
68254
68255         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68256
68257 2005-08-11  Simon Josefsson  <jas@extundo.com>
68258
68259         * modules/readline: New file.
68260
68261         * modules/strnlen (Files): Add strnlen.h.
68262
68263 2005-08-11  Simon Josefsson  <jas@extundo.com>
68264
68265         * m4/readline.m4: New file.
68266
68267 2005-08-11  Simon Josefsson  <jas@extundo.com>
68268
68269         * lib/readline.h, readline.c: New file.
68270
68271 2005-08-11  Simon Josefsson  <jas@extundo.com>
68272
68273         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68274         gl_AVOID.
68275
68276 2005-08-11  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68279
68280 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68281
68282         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68283
68284 2005-08-10  Simon Josefsson  <jas@extundo.com>
68285
68286         * tests/test-iconvme.c: New file.
68287
68288 2005-08-10  Simon Josefsson  <jas@extundo.com>
68289
68290         * m4/strnlen.m4: New file.
68291
68292         * m4/strndup.m4: Don't check for strnlen declaration, done in
68293         strnlen.m4.
68294
68295 2005-08-10  Simon Josefsson  <jas@extundo.com>
68296
68297         * lib/strndup.c: Use strnlen.h.
68298
68299         * lib/strnlen.h: New file.
68300
68301 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68302
68303         * README: Typos.
68304
68305 2005-08-02  Simon Josefsson  <jas@extundo.com>
68306
68307         * modules/readline: New file.
68308
68309 2005-08-02  Simon Josefsson  <jas@extundo.com>
68310
68311         * modules/getdelim: New file.
68312
68313         * modules/getline: Rewrite, don't use getndelim2.
68314
68315 2005-08-02  Simon Josefsson  <jas@extundo.com>
68316
68317         * m4/getline.m4: Separate out getdelim stuff into separate module.
68318
68319         * m4/getdelim.m4: New file.
68320
68321 2005-08-02  Simon Josefsson  <jas@extundo.com>
68322
68323         * lib/getline.h, getline.c: Rewrite.
68324
68325         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68326
68327 2005-07-31  Bruno Haible  <bruno@clisp.org>
68328
68329         * lib/lock.h (gl_lock_initializer): New macro.
68330         (gl_lock_define_initialized): Use it.
68331         (gl_rwlock_initializer): New macro.
68332         (gl_rwlock_define_initialized): Use it.
68333         (gl_recursive_lock_initializer): New macro.
68334         (gl_recursive_lock_define_initialized): Use it.
68335
68336 2005-07-30  Karl Berry  <karl@gnu.org>
68337
68338         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68339         Report from Ben Pfaff, regarding getopt.
68340
68341 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68344         normal way.
68345         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68346         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68347         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68348         (gl_GETOPT): Use the new macros.  Most of the implementation
68349         is moved to the new macros.  This is for programs like Emacs
68350         that don't want all the functionality of gl_GETOPT.
68351
68352 2005-07-26  Bruno Haible  <bruno@clisp.org>
68353
68354         * m4/lock.m4: Update from GNU gettext.
68355
68356 2005-07-26  Bruno Haible  <bruno@clisp.org>
68357
68358         * lib/lock.h: Update from GNU gettext.
68359         * lib/lock.c: Update from GNU gettext.
68360
68361 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68364         obsolescent AC_TRY_RUN.  Include the default includes files, for
68365         'exit'.
68366
68367 2005-07-24  Bruno Haible  <bruno@clisp.org>
68368
68369         * modules/visibility: New file.
68370         * MODULES.html.sh (Misc): Add visibility.
68371
68372 2005-07-24  Bruno Haible  <bruno@clisp.org>
68373
68374         * m4/visibility.m4: New file.
68375
68376 2005-07-24  Bruno Haible  <bruno@clisp.org>
68377
68378         * doc/visibility.texi: New file.
68379
68380 2005-07-22  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68383         $(ALLOCA_H), redundant through BUILT_SOURCES.
68384         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68385         redundant through BUILT_SOURCES.
68386         * modules/byteswap (Makefile.am): Remove explicit dependency on
68387         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68388         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68389         $(FNMATCH_H), redundant through BUILT_SOURCES.
68390         * modules/getopt (Makefile.am): Remove explicit dependency on
68391         $(GETOPT_H), redundant through BUILT_SOURCES.
68392         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68393         redundant through BUILT_SOURCES.
68394         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68395         redundant through BUILT_SOURCES.
68396         * modules/stdbool (Makefile.am): Remove explicit dependency on
68397         $(STDBOOL_H), redundant through BUILT_SOURCES.
68398         * modules/stdint (Makefile.am): Remove explicit dependency on
68399         $(STDINT_H), redundant through BUILT_SOURCES.
68400         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68401         Remove explicit dependency on $(SYSEXITS_H).
68402         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68403
68404 2005-07-18  Simon Josefsson  <jas@extundo.com>
68405
68406         * lib/check-version.c (check_version): Accept identical versions too.
68407
68408 2005-07-18  Bruno Haible  <bruno@clisp.org>
68409
68410         * modules/lock: New file.
68411         * MODULES.html.sh (Multithreading): New section.
68412
68413 2005-07-18  Bruno Haible  <bruno@clisp.org>
68414
68415         * m4/lock.m4: New file, from GNU gettext.
68416
68417 2005-07-18  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/lock.h: New file, from GNU gettext.
68420         * lib/lock.c: New file, from GNU gettext.
68421
68422 2005-07-18  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/lock.h (gl_once_t): New type.
68425         (gl_once_define, gl_once): New macros.
68426         * lib/lock.c (fresh_once): New variable.
68427         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68428         functions.
68429
68430 2005-07-16  Simon Josefsson  <jas@extundo.com>
68431
68432         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68433         workaround, suggested by Bruno.
68434
68435 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * modules/xalloc (Depends-on): Add xalloc-die.
68438         * modules/xvasprintf (Depends-on): Add xalloc-die.
68439
68440 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68443         with a minor change.
68444
68445 2005-07-15  Bruno Haible  <bruno@clisp.org>
68446
68447         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68448         When using lib/poll.c, define poll as rpl_poll.
68449
68450 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * modules/argp (Depends-on): Remove unlocked-io.
68453
68454 2005-07-14  Derek Price  <derek@ximbiot.com>
68455
68456         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68457         for glob symlink bug.
68458
68459 2005-07-14  Bruno Haible  <bruno@clisp.org>
68460
68461         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68462         Instead, test for *_unlocked function declarations directly.
68463
68464 2005-07-11  Simon Josefsson  <jas@extundo.com>
68465
68466         * modules/size_max: New file.
68467
68468         * modules/xsize: Depend on size_max module for size_max.m4.
68469
68470 2005-07-11  Simon Josefsson  <jas@extundo.com>
68471
68472         * lib/size_max.h: New file.
68473
68474 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68477         copyright symbol and the year.
68478         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68479         (version_etc_va): Use parameterized copyright notice.
68480         Reword to conform to the current GNU coding standards.
68481
68482 2005-07-11  Karl Berry  <karl@gnu.org>
68483
68484         * doc/gnulib.texi (Quoting): new node.
68485         (Initial import): more info, from Patrice.
68486
68487 2005-07-11  Bruno Haible  <bruno@clisp.org>
68488
68489         * gnulib-tool (func_usage): Document option --avoid.
68490         (Command line options): Handle --avoid.
68491         (func_acceptable): New function.
68492         (func_modules_transitive_closure): Use it.
68493
68494 2005-07-11  Bruno Haible  <bruno@clisp.org>
68495
68496         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68497         Reported by Jim Meyering.
68498
68499 2005-07-10  Bruno Haible  <bruno@clisp.org>
68500
68501         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68502         Needed when size_t is smaller than 'unsigned int'.
68503         Reported by Paul Eggert.
68504
68505 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68506
68507         * modules/argp (Depends-on): Add unlocked-io
68508
68509 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68510
68511         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68512         block of defines.
68513
68514 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68515
68516         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68517         fix now.
68518
68519 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68520         and Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68523         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68524
68525 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * modules/regex (Files): Add lib/regex_internal.c,
68528         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68529         (Depends-on): Add extensions.
68530         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68531
68532 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68535         pathconf.
68536         * m4/same.m4 (gl_SAME): Likewise.
68537         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68538
68539         * m4/regex.m4: Adjust to new libc regex implementation.
68540         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68541         all the .c and .h parts of (the new) regex.
68542         Quote the m4 stuff better.
68543         Check for RE_ICASE bug of old gnulib.
68544         Check for REG_STARTEND of recent libc.
68545         Rename local variables from jm_* to gl_*.
68546         Quote operand of "test -f".
68547         Say "recent enough" version of libc, not "version 2".
68548         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68549         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68550         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68551         Remove check for btowc, isascii.
68552         Require AM_LANGINFO_CODESET.
68553
68554 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * lib/regex.c, regex.h: Sync from libc.
68557         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68558         * lib/regexec.c:
68559         New files, synced from libc, except that regex_internal.h
68560         currently has a small porting fix.
68561
68562 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68565         regex_internal.c, regexec.c.
68566         Add regex_internal.h too, but as a comment, since the libc version
68567         is currently broken in gnulib mode.
68568
68569 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         Support programs like Emacs that use gnulib but not gettext.
68572         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68573         * modules/gettext-h: New file.
68574         * modules/gettext (Files): Remove lib/gettext.h.
68575         (Depends-on): Add gettext-h.
68576         (Makefile.am): Remove lib_SOURCES.
68577         * modules/argmatch, modules/c-stack, modules/closeout:
68578         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68579         * modules/execute, modules/file-type, modules/getaddrinfo:
68580         * modules/getopt, modules/human, modules/javacomp:
68581         * modules/javaexec, modules/mkdir-p, modules/obstack:
68582         * modules/openat, modules/pagealign_alloc, modules/pipe:
68583         * modules/quotearg, modules/regex, modules/rpmatch:
68584         * modules/unicodeio, modules/userspec, modules/version-etc:
68585         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68586         * modules/xsetenv:
68587         Depend on gettext-h, not gettext.
68588
68589 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * gnulib-tool (func_import): Add support for 'public domain' license.
68592         * modules/alloca, modules/atexit, modules/memmove:
68593         Now public domain, not GPL.
68594         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68595         * modules/realloc, modules/strerror, modules/strtod:
68596         Now LGPL, not GPL.
68597
68598 2005-07-05  Bruno Haible  <bruno@clisp.org>
68599
68600         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68601         autoconf CVS. Needed for mingw.
68602
68603 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         Remove the dependency of the strftime module on the tzset module.
68606         * modules/strftime (Depends-on): Remove dependency on tzset.
68607
68608 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         Remove the dependency of the strftime module on the tzset module.
68611         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68612         gl_FUNC_TZSET_CLOBBER.
68613
68614 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         Remove the dependency of the strftime module on the tzset module.
68617         * lib/strftime.c (my_strftime)
68618         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68619         Copy the input structure, to work around some of the bug with
68620         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68621         Solaris releases, you should also use the tzset module, but we won't
68622         require it as a dependency any more since we don't want LGPLed code
68623         to depend on GPLed code.
68624
68625 2005-07-02  Jim Meyering  <jim@meyering.net>
68626
68627         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68628         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68629         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68630         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68631
68632 2005-07-02  Jim Meyering  <jim@meyering.net>
68633
68634         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68635
68636 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68639         declares only 'struct timespec;' (!).
68640
68641 2005-07-01  Jim Meyering  <jim@meyering.net>
68642
68643         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68644         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68645         * lib/save-cwd.c, tempname.c:
68646         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68647         and don't include <sys/file.h>).
68648
68649 2005-06-29  Jim Meyering  <jim@meyering.net>
68650
68651         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68652         type name.  Use the variable name instead.
68653         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68654         Likewise.
68655
68656 2005-06-28  Simon Josefsson  <jas@extundo.com>
68657
68658         * modules/check-version (Files): Add check-version.m4.
68659
68660 2005-06-28  Simon Josefsson  <jas@extundo.com>
68661
68662         * m4/check-version.m4: New file, suggested by Jim Meyering
68663         <jim@meyering.net>.
68664
68665 2005-06-28  Simon Josefsson  <jas@extundo.com>
68666
68667         * lib/check-version.h, lib/check-version.c: New files.
68668
68669 2005-06-28  Simon Josefsson  <jas@extundo.com>
68670
68671         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68672         collision with global variable.  Better indentation.  Don't
68673         increment buffer pointer beyond buffer end.  Based on comments
68674         from Paul Eggert <eggert@cs.ucla.edu>.
68675
68676         * lib/base64.h: Indent.
68677
68678 2005-06-28  Simon Josefsson  <jas@extundo.com>
68679
68680         * doc/gnulib.texi (Library version handling): New section.
68681
68682 2005-06-28  Jim Meyering  <jim@meyering.net>
68683
68684         * check-module (find_included_lib_files): Hard-code another
68685         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68686         but modules/fts-lgpl (correctly) does not list those files.
68687
68688         * modules/canonicalize (Files): Add lib/pathmax.h.
68689
68690 2005-06-25  Simon Josefsson  <jas@extundo.com>
68691
68692         * modules/check-version: New file.
68693
68694 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68697         initializer of struct addrinfo, as an indication that we don't
68698         care how many members the structure has.
68699
68700 2005-06-24  Derek Price  <derek@ximbiot.com>
68701         and Bruno Haible  <bruno@clisp.org>
68702
68703         Remove stat module & update lstat.
68704         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68705         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68706         * m4/stat.m4: Remove this file.
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         * lib/stat.c: Remove this file...
68713         (slash_aware_lstat): ...moving this content and its support...
68714         * lib/lstat.c (rpl_lstat): ...into here.
68715         * lib/lstat.h: New file.
68716
68717 2005-06-24  Derek Price  <derek@ximbiot.com>
68718         and Bruno Haible  <bruno@clisp.org>
68719
68720         Remove stat module & update lstat.
68721         * config/srclist.txt (libc sources): Remove stat.
68722
68723 2005-06-24  Derek Price  <derek@ximbiot.com>
68724         and Bruno Haible  <bruno@clisp.org>
68725
68726         Remove stat module & update lstat.
68727         * MODULES.html.sh (stat): Remove.
68728         * MODULES.html: Regenerated.
68729         * modules/lstat (Description): Correct function name.
68730         (Files): Add "lstat.h".
68731         (Depends-on): Remove stat, add xalloc, stat-macros.
68732         * modules/stat: Remove this file.
68733         (Include): Add "lstat.h", remove <sys/stat.h>.
68734
68735 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68738         (ranged_convert): Don't save conversion in a temporary struct.
68739         This causes a warning with GCC 4.0.0, and anyway in the typical
68740         case it's not worth the extra 100 bytes or so of code.
68741         (ranged_convert, __mktime_internal): When calling a function via a
68742         pointer P, use P () rather than (*P) (), as we now assume C89 or
68743         better.
68744
68745 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68748         "who -r" failed to give output.  Problem reported by Tim Waugh.
68749
68750         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68751         (xcalloc): Use it to avoid needless tests.
68752         Problem reported by Jim Meyering.
68753
68754 2005-06-20  Derek Price  <derek@ximbiot.com>
68755
68756         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68757         unnecessary for Autoconfs > 2.59c.
68758
68759 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68760
68761         * lib/argp.h (__option_is_short): Check upper limit of
68762         __key. Isprint() requires its argument to have the value
68763         of an unsigned char or EOF.
68764
68765 2005-06-16  Jim Meyering  <jim@meyering.net>
68766
68767         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68768         when either N or S is zero.
68769
68770 2005-06-16  Derek Price  <derek@ximbiot.com>
68771
68772         * m4/bison.m4: Declare YACC & YFLAGS precious.
68773
68774 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68777         multibyte string or pattern, fall back on unibyte matching.
68778         Problem reported by James Youngman.
68779
68780 2005-06-08  Bruno Haible  <bruno@clisp.org>
68781
68782         * modules/csharpcomp: New file.
68783         * MODULES.html.sh (C#): Add csharpcomp.
68784
68785 2005-06-08  Bruno Haible  <bruno@clisp.org>
68786
68787         * m4/csharpcomp.m4: New file, from GNU gettext.
68788
68789 2005-06-08  Bruno Haible  <bruno@clisp.org>
68790
68791         * lib/csharpcomp.h: New file, from GNU gettext.
68792         * lib/csharpcomp.c: New file, from GNU gettext.
68793         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68794
68795 2005-06-08  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68798         warning on mingw.
68799
68800 2005-06-07  Derek Price  <derek@ximbiot.com>
68801
68802         Sync from CVS.
68803         * lib/glob_.h: Indent nested #ifdef.
68804
68805 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         Sync from coreutils.
68808         Use "file name" when talking about file names, instead of "filename"
68809         or "path", as per the GNU coding standards.
68810         * lib/mkdir-p.c: Renamed from makepath.c.
68811         (make_dir_parents): Renamed from make_path.  All callers changed.
68812         * lib/mkdir-p.h: Likewise.  All includers changed.
68813         * lib/filenamecat.c: Renamed from path-concat.c.
68814         (file_name_concat): Renamed from path_concat.  All callers changed.
68815         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68816         * lib/filenamecat.h: Likewise.  All includers changed.
68817         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68818         in comments or local variable names.
68819         * lib/basename.c: Likewise.
68820         * lib/canonicalize.c, canonicalize.h: Likewise.
68821         * lib/dirname.c, dirname.h: Likewise.
68822         * lib/euidaccess.c: Likewise.
68823         * lib/exclude.c: Likewise
68824         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68825         * lib/fsusage.c, fsuage.h: Likewise.
68826         * lib/fts.c, fts_.h: Likewise.
68827         * lib/getcwd.c: Likewise.
68828         * lib/getloadavg.c: Likewise.
68829         * lib/mkstemp.c: Likewise.
68830         * lib/mountlist.c, mountlist.h: Likewise.
68831         * lib/openat.c, openat.h: Likewise.
68832         * lib/readlink-stub.c: Likewise.
68833         * lib/readutmp.c, readutmp.h: Likewise.
68834         * lib/rename.c: Likewise.
68835         * lib/rmdir.c: Likewise.
68836         * lib/same.c: Likewise.
68837         * lib/savedir.c: Likewise.
68838         * lib/stripslash.c: Likewise.
68839         * lib/tempname.c: Likewise.
68840         * lib/xreadlink.c: Likewise.
68841         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68842         All uses changed.
68843         * lib/exclude.h: Likewise.
68844
68845         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68846         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68847         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68848         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68849         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68850         files have been getting away with it for years (MORE/BSD 4.3
68851         is extinct now).
68852         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68853         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68854
68855         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68856         Define to 256, not 255, as per modern POSIX.
68857
68858 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         Sync from coreutils.
68861         Use "file name" when talking about file names, instead of "filename"
68862         or "path", as per the GNU coding standards.
68863         * MODULES.html.sh: mkdir-p renamed from makepath.
68864         filenamecat renamed from path-concat.
68865         * modules/filenamecat: Renamed from modules/path-concat.
68866         (Files): filenamecat.h and filenamecat.c renamed from
68867         path-concat.h and path-concat.c.
68868         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68869         (Include): filenamecat.h, not path-concat.h.
68870         * modules/mkdir-p: Renamed from modules/makepath.
68871         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68872         makepath.c.
68873         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68874         (Include): mkdir-p.h, not makepath.h.
68875
68876 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         Sync from coreutils.
68879         * m4/mkdir-p.m4: Renamed from makepath.m4.
68880         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68881         Rename files from makepath.c to mkdir-p.c, and from
68882         makepath.h to mkdir-p.h.
68883         * m4/filenamecat.m4: Renamed from path-concat.m4.
68884         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68885         Rename files from path-concat.c to filenamecat.c,
68886         and from path-concat.h to filenamecat.h.
68887         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68888         "file name" in local variables or comments.
68889         * m4/rename.m4: Likewise.
68890
68891 2005-06-01  Bruno Haible  <bruno@clisp.org>
68892
68893         * modules/csharpexec: New file.
68894         * MODULES.html.sh (C#): New section.
68895
68896 2005-06-01  Bruno Haible  <bruno@clisp.org>
68897
68898         * m4/csharp.m4: New file, from GNU gettext.
68899         * m4/csharpexec.m4: New file, from GNU gettext.
68900
68901 2005-06-01  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/csharpexec.h: New file, from GNU gettext.
68904         * lib/csharpexec.c: New file, from GNU gettext.
68905         * lib/csharpexec.sh.in: New file, from GNU gettext.
68906
68907 2005-05-31  Derek Price  <derek@ximbiot.com>
68908             Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         Sync from cvs.
68911         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68912
68913 2005-05-31  Derek Price  <derek@ximbiot.com>
68914             Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         Sync from cvs.
68917         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68918
68919 2005-05-29  Derek Price  <derek@ximbiot.com>
68920
68921         * config/srclist.txt (glob_.h, glob.c): Add these files.
68922
68923 2005-05-29  Derek Price  <derek@ximbiot.com>
68924
68925         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68926         * modules/glob: New file.
68927         * modules/getlogin_r: Add link to POSIX spec in description.
68928
68929 2005-05-29  Derek Price  <derek@ximbiot.com>
68930             Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * m4/glob.m4: New file.
68933
68934 2005-05-29  Derek Price  <derek@ximbiot.com>
68935             Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/glob_.h, lib/glob.c: New files.
68938
68939 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68942         * modules/fts-lgpl (Depends-on): Remove gettext.
68943
68944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68947         and don't require gt_INTTYPES_PRI.
68948
68949 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68952
68953         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68954         the configuration hassle isn't worth it.
68955         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68956         (LONGEST_MODIFIER, PRIuMAX): Remove.
68957
68958 2005-05-27  Bruno Haible  <bruno@clisp.org>
68959
68960         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68961
68962 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68963
68964         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68965         _POSIX_PTHREAD_SEMANTICS for Solaris.
68966
68967 2005-05-25  Derek Price  <derek@ximbiot.com>
68968
68969         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68970
68971 2005-05-25  Derek Price  <derek@ximbiot.com>
68972             Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68975         * lib/getlogin_r.c, getlogin_r.h: New files.
68976
68977 2005-05-25  Bruno Haible  <bruno@clisp.org>
68978             Derek Price  <derek@ximbiot.com>
68979
68980         * lib/getlogin_r.h: Simplify API documentation.
68981
68982 2005-05-23  Derek Price  <derek@ximbiot.com>
68983
68984         * modules/minmax (Files): Add m4/minmax.m4.
68985         (configure.ac): Add gl_MINMAX.
68986
68987 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68990         so that unistd-safer.h (GPL'ed code) need not be included.
68991
68992 2005-05-22  Bruno Haible  <bruno@clisp.org>
68993
68994         * m4/minmax.m4: New file.
68995         Based on a patch by Derek Price <derek@ximbiot.com>.
68996
68997 2005-05-22  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69000         (INT64_MIN): Fix definition.
69001         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69002
69003         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69004         NEED_SIGNED_INT_TYPES.
69005
69006         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69007         HAVE_SYSTEM_INTTYPES.
69008
69009 2005-05-22  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69012         Also include <sys/param.h> if it defines MIN, MAX.
69013         Based on a patch by Derek Price <derek@ximbiot.com>.
69014
69015 2005-05-21  Jim Meyering  <jim@meyering.net>
69016
69017         * modules/fts (Files): Add m4/inttypes-pri.m4.
69018         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69019
69020 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         New fts module.
69023         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69024         (setup_dir, free_dir): New functions.
69025         (enter_dir, leave_dir): Define trivial
69026         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69027         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69028         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69029         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69030         Move to fts-cycle.c.
69031         (fts_open): Use setup_dir.
69032         (fts_close): Use free_dir.
69033         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69034         This adds a label and some gotos, but the alternatives were messier.
69035         Check for memory allocation failure when entering a dir.
69036         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69037         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69038         (FTS): New member fts_cycle, that is a union that contains the
69039         old active_dir_ht and cycle_state.  All uses changed to mention
69040         fts_cycle.ht and fts_cycle.state.
69041         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69042         fts.c, with the following changes:
69043         (setup_dir, free_dir): New functions.
69044         (enter_dir): Now returns bool.  Return true if successful, false
69045         if memory exhausted.  All callers changed.
69046         Do not bother partly cleaning up on
69047         memory allocation failure; that is free_dir's job.
69048         However, free ad if hash_insert fails, to avoid memory leak.
69049         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69050         fts->fts_options to see which union member to use.
69051
69052 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69055         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69056
69057 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69060
69061 2005-05-20  Jim Meyering  <jim@meyering.net>
69062
69063         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69064         Now a macro, to pacify GCC.
69065
69066 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69067
69068         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69069         of -1.
69070
69071 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69072
69073         * lib/chown.c (rpl_chown): Return -1 on failure.
69074
69075 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69078         Don't check for stddef.h.
69079         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69080         don't use its results.
69081         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69082         since we include them unconditionally.  Don't require
69083         AM_STDBOOL_H, since stdbool is a prerequisite.
69084         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69085         since we assume C89 or better.
69086         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69087         as we don't use their results.
69088         Don't check for fchdir, memmove, memset, strrchr, as we use
69089         them unconditionally.
69090         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69091         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69092
69093 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69096         Include <stddef.h> unconditionally, since we assume C89 now.
69097         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69098         * lib/fts.c: Include fts_.h first, to check interface.
69099         Do not include intprops.h; no longer needed.
69100         Include cycle-check.h and hash.h, since fts_.h no longer does.
69101         Remove unnecessary casts of closedir to void.
69102         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69103         decide whether to decrement nlinks.
69104         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69105         (FTS): Use struct hash_table * instead of Hash_table, so that
69106         we no longer need to include hash.h here.
69107
69108 2005-05-18  Jim Meyering  <jim@meyering.net>
69109
69110         * modules/dirfd (License): Change to LGPL.  Most of the code
69111         is already in the public domain.
69112
69113 2005-05-18  Jim Meyering  <jim@meyering.net>
69114
69115         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69116         Reported by Yoann Vandoorselaere.
69117
69118 2005-05-17  Jim Meyering  <jim@meyering.net>
69119
69120         * m4/fts.m4: New file, from coreutils.
69121
69122 2005-05-17  Jim Meyering  <jim@meyering.net>
69123
69124         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69125
69126 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         Sync from coreutils.
69129         * m4/unlinkdir.m4: New file.
69130
69131 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         Sync from coreutils.
69134         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69135         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69136         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69137         White space changes only.
69138         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69139         special.
69140         * lib/yesno.c: Include getline.h, not ctype.h.
69141         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69142         Use getline to remove arbitrary restriction on response length.
69143
69144 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69145
69146         * config/srclist-update: Spell out "Street" in FSF postal
69147         mail address; this is the style the FSF seems to prefer.
69148
69149         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69150         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69151         this updates FSF postal mail address.
69152
69153         Sync from coreutils.
69154         * modules/unlinkdir: New file.
69155         * modules/yesno (Depends-on): Add getline.
69156         * MODULES.html.sh (File system functions): Add unlinkdir.
69157
69158 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69161         lib/strsep.h:
69162         Change the initial comment to refer to GPL, not LGPL.
69163         gnulib-tool will change it to LGPL as needed.
69164
69165         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69166         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69167         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69168         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69169         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69170         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69171         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69172         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69173         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69174         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69175         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69176         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69177         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69178         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69179         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69180         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69181         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69182         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69183         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69184         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69185         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69186         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69187         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69188         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69189         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69190         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69191         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69192         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69193         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69194         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69195         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69196         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69197         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69198         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69199         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69200         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69201         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69202         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69203         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69204         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69205         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69206         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69207         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69208         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69209         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69210         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69211         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69212         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69213         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69214         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69215         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69216         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69217         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69218         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69219         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69220         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69221         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69222         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69223         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69224         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69225         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69226         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69227         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69228         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69229         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69230         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69231         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69232         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69233         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69234         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69235         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69236         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69237         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69238         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69239         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69240         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69241         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69242         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69243         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69244         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69245         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69246         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69247         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69248         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69249         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69250         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69251         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69252         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69253         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69254         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69255         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69256         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69257         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69258         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69259         lib/yesno.c, lib/yesno.h:
69260         Update FSF postal mail address.
69261
69262 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69263
69264         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69265         tests/test-memmem.c, tests/test-stpncpy.c:
69266         Update FSF postal mail address.
69267
69268 2005-05-13  Bruno Haible  <bruno@clisp.org>
69269
69270         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69271         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69272         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69273         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69274         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69275         Add support for 64-bit integers in the MSVC compiler.
69276
69277 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69278
69279         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69280
69281 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69282
69283         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69284
69285 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * doc/getdate.texi (General date syntax): Don't say that date
69288         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69289         Problem reported by Nic Ferrier.
69290
69291 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69292
69293         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69294         specified in ai_socktype. Fix invalid ai_protocol
69295         check. ai_protocol is usually set to 0 or depending on
69296         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69297         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69298         ai_socktype / ai_protocol in the returned addrinfo structure.
69299
69300 2005-05-10  Simon Josefsson  <jas@extundo.com>
69301
69302         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69303         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69304
69305 2005-05-10  Karl Berry  <karl@gnu.org>
69306
69307         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69308         (from http://www.gnu.org/licenses).
69309         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69310         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69311         fdl.texi suffices.
69312
69313 2005-05-10  Karl Berry  <karl@gnu.org>
69314
69315         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69316         (COPYING.DOC): remove.
69317
69318         * config/srclist-update: new FSF address.
69319
69320 2005-05-10  Derek Price  <derek@ximbiot.com>
69321
69322         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69323         possible.
69324
69325 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69326             Bruno Haible  <bruno@clisp.org>
69327
69328         * modules/inet_ntop: New file.
69329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69330         inet_ntop.
69331
69332 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69333             Bruno Haible  <bruno@clisp.org>
69334
69335         * m4/inet_ntop.m4: New file.
69336
69337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69338             Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/inet_ntop.h: New file.
69341         * lib/inet_ntop.c: New file, from glibc with modifications.
69342
69343 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         * modules/time_r (License): Change to LGPL.
69346         * modules/extensions (License): Change to LGPL.  Actually,
69347         the license is more permissive than that, but currently gnulib-tool
69348         doesn't know how to handle more-permissive licenses.
69349
69350         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69351         Problem reported by Dave Love.
69352
69353 2005-05-08  Jim Meyering  <jim@meyering.net>
69354
69355         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69356         blank.
69357
69358 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         * modules/argmatch (Depends-on): Add stdbool.
69361         * modules/backupfile (Depends-on): Likewise.
69362         * modules/chdir-long (Depends-on): Likewise.
69363         * modules/closeout (Depends-on): Likewise.
69364         * modules/cycle-check (Depends-on): Likewise.
69365         * modules/dirname (Depends-on): Likewise.
69366         * modules/fnmatch (Depends-on): Likewise.
69367         * modules/fsusage (Depends-on): Likewise.
69368         * modules/fwriteerror (Depends-on): Likewise.
69369         * modules/getcwd (Depends-on): Likewise.
69370         * modules/getloadavg (Depends-on): Likewise.
69371         * modules/hard-locale (Depends-on): Likewise.
69372         * modules/makepath (Depends-on): Likewise.
69373         * modules/mountlist (Depends-on): Likewise.
69374         * modules/nanosleep (Depends-on): Likewise.
69375         * modules/posixtm (Depends-on): Likewise.
69376         * modules/quotearg (Depends-on): Likewise.
69377         * modules/readtokens (Depends-on): Likewise.
69378         * modules/readtokens0 (Depends-on): Likewise.
69379         * modules/readutmp (Depends-on): Likewise.
69380         * modules/save-cwd (Depends-on): Likewise.
69381         * modules/strftime (Depends-on): Likewise.
69382         * modules/userspec (Depends-on): Likewise.
69383         * modules/utimecmp (Depends-on): Likewise.
69384         * modules/xgetcwd (Depends-on): Likewise.
69385         * modules/xnanosleep (Depends-on): Likewise.
69386         * modules/xstrtod (Depends-on): Likewise.
69387         * modules/yesno (Depends-on): Likewise.
69388
69389 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69392         needless checks.
69393
69394 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         Merge from coreutils.  Among other things,
69397         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69398         * lib/fd-safer.c: New file.
69399         * lib/fcntl-safer.h, open-safer.c: Remove.
69400         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69401         * lib/dup-safer.c: Include unistd-safer.h first.
69402         Don't include errno.h.
69403         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69404         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69405         * lib/file-type.c: Rely on file-type.h change.
69406         * lib/getloadavg.c: Include unistd-safer.h.
69407         (getloadavg): Use safer open.
69408         * lib/getusershell.c: Include "stdio-safer.h".
69409         (getusershell): Use safer fopen.
69410         * lib/long-options.c (long_options): Use NULL rather than 0.
69411         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69412         'free'.
69413         * lib/modechange.c: Likewise.
69414         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69415         (MODE_DONE): New constant.
69416         (struct mode_change): Remove 'next' member.
69417         (make_node_op_equals): New function; like the old one of the
69418         same name, except it allocates an array.
69419         (mode_compile, mode_create_from_ref): Use it.
69420         (mode_compile): Allocate result as an array, not a linked list.
69421         Parse octal string ourself, so that we catch mistakes like "+0".
69422         (mode_adjust): Arg is an array, not a linked list.
69423         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69424         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69425         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69426         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69427         Remove.  This is now stat-macros.h's job.
69428         (talloc): Remove.  All callers replaced by xalloc, so that
69429         our invokers don't have to worry about reporting memory failures.
69430         (make_node_op_equals): Remove.
69431         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69432         New constants.
69433         (struct mode_change): Moved here from modechange.h.
69434         (mode_append_entry): Remove.
69435         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69436         apps to have incorrect behavior.  Use simpler algorithm for head
69437         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69438         Detect more invalid usages rather than having somewhat-random behavior.
69439         Don't insert an "a=" action, as that leads to incorrect behavior.
69440         (mode_compile, mode_create_from_ref): Return NULL on error instead
69441         of an enum, since now there's only one way to have an error.  All
69442         callers changed.
69443         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69444         at the correct time.  Simplify calculation of "+u" and its ilk.
69445         Don't mishandle "+X".
69446         (mode_free): Remove "register" and localize decls.
69447         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69448         (struct mode_change): Move to modechange.c; callers don't
69449         need to see this stuff.
69450         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69451         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69452         (mode_change, mode_adjust): Reflect the new signatures noted above.
69453         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69454         that might redefine system include files.
69455         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69456         (my_usleep): Use NULL rather than (void *) 0.
69457         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69458         Use siginterrupt to specify that system calls should be interrupted.
69459         (rpl_nanosleep): Move initialization of suspended closer to call of
69460         my_usleep.
69461         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69462         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69463         (desirable_utmp_entry): New function.
69464         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69465         using x2nrealloc, to simplify logic.
69466         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69467         size calculation.  Do not assume utmp file is a regular file.
69468         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69469         (READ_UTMP_CHECK_PIDS): New constant.
69470         * lib/save-cwd.c: Include unistd-safer.h.
69471         (save_cwd): Use fd_safer.
69472         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69473         [!_LIBC] Include "stat-macros.h" instead.
69474         * lib/unistd-safer.h (fd_safer): New decl.
69475
69476 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * modules/getloadavg (Depends-on): Add unistd-safer.
69479         * modules/getusershell (Depends-on): Add stdio-safer.
69480         * modules/lstat (Depends-on): Remove xalloc.
69481         * modules/mkstemp (Depends-on): Add stat-macros.
69482         * modules/modechange (Depends-on): Remove xstrtol.
69483         Add stat-macros, xalloc.
69484         * modules/save-cwd (Depends-on): Add unistd-safer.
69485         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69486         * modules/unistd-safer (Files): Add lib/fd-safer.c
69487         (Makefile.am): Remove lib_SOURCES.
69488
69489         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69490         Remove fcntl-safer; unistd-safer supersedes it.
69491
69492 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69495         AC_HEADER_STAT.
69496         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69497         (gl_PREREQ_CHOWN): Remove.
69498         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69499         it.  Don't require AC_HEADER_STAT.
69500         (gl_PREREQ_LSTAT): Remove.
69501         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69502         Don't require AC_HEADER_STAT.
69503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69504         (gl_PREREQ_RMDIR): Remove.
69505         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69506         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69507         the stat-macros module a prerequisite.
69508         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69509         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69510         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69511         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69512         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69513         variable names.
69514         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69515         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69516         variable prefixes.
69517         * m4/fcntl-safer.m4: Remove.
69518         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69519         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69520         Invoke gl_PREREQ_FD_SAFER.
69521         (gl_PREREQ_FD_SAFER): New macro.
69522         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69523         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69524         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69525         Remove duplicate call to AC_LIBOBJ(readutmp).
69526         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69527
69528         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69529         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69530
69531 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * MODULES.html.sh (Misc): Add byteswap.
69534
69535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69536
69537         * modules/getcwd (Depends-on): Add extensions.
69538         * modules/openat (Depends-on): Likewise.
69539
69540 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69541
69542         * modules/byteswap: New file.
69543
69544 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69545
69546         * m4/byteswap.m4: New file.
69547
69548 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69549
69550         * lib/byteswap_.h: New file.
69551
69552 2005-04-25  Karl Berry  <karl@gnu.org>
69553
69554         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69555
69556 2005-04-25  Albert Chin  <china@thewrittenword.com>
69557
69558         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69559         Toolkit C bug.
69560
69561 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69562
69563         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69564         (func_ln_if_changed): Remove forcibly for no error message
69565         in case file does not exist.
69566
69567 2005-04-19  Simon Josefsson  <jas@extundo.com>
69568
69569         * gnulib-tool (Options): Make --symlink mean --symbolic.
69570
69571 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69572
69573         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69574
69575 2005-04-16  Simon Josefsson  <jas@extundo.com>
69576
69577         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69578
69579 2005-04-15  Simon Josefsson  <jas@extundo.com>
69580
69581         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69582
69583 2005-04-15  Simon Josefsson  <jas@extundo.com>
69584
69585         * gnulib-tool: Rename --symlink to --symbolic.
69586
69587 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69588
69589         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69590         symbolic links to files instead of copying/moving.  Add --aux-dir,
69591         specifying directory relative --dir where auxiliary build tools
69592         are placed.
69593
69594 2005-04-14  Bruno Haible  <bruno@clisp.org>
69595
69596         * modules/allocsa (License): Change to LGPL.
69597         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69598
69599 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69602         that "UTC +1 second" continues to work.  Problem reported
69603         by Dmitry V. Levin.
69604         (relunit_snumber): New rule.
69605         (relunit): Use it.
69606
69607 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * lib/getdate.y (universal_time_zone_table): New constant.
69610         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69611         universal_time_zone_table.
69612         (lookup_zone): Prefer universal_time_zone_table to
69613         local_time_zone_table, so that "GMT" time stamps are allowed in
69614         London during the summer.  Problem reported by Ian Abbott.
69615
69616 2005-04-12  Jim Meyering  <jim@meyering.net>
69617
69618         * lib/human.c (humblock): Set *options even when returning due to
69619         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69620         warning from gcc-4.
69621
69622 2005-04-09  Jim Meyering  <jim@meyering.net>
69623
69624         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69625         -Wuninitialized: initialize tm0.tm_year.
69626
69627 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69630         count, since there's no maximum.  All uses changed.
69631         Add member dsts_seen.
69632         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69633         not being INT_MAX.
69634         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69635         Use pc_rels_seen to decide whther a date is absolute.
69636
69637         * lib/getdate.y (number): Don't overwrite year.
69638         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69639         check.
69640
69641 2005-04-02  Simon Josefsson  <jas@extundo.com>
69642
69643         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69644         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69645
69646 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69647
69648         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69649         where no absolute path name can be longer than PATH_MAX.
69650
69651 2005-03-27  Jim Meyering  <jim@meyering.net>
69652
69653         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69654
69655 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69658         "one's complement" -> "ones' complement" in comment, as per Knuth.
69659         "value of type" -> "type or expression" in comment.
69660         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69661
69662 2005-03-26  Jim Meyering  <jim@meyering.net>
69663
69664         Comment nits.
69665         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69666         Correct typos: s/or/of/.
69667
69668 2005-03-26  Jim Meyering  <jim@meyering.net>
69669
69670         * modules/check-include-files: Move to ../ and rename to...
69671         * check-module: ...this.
69672
69673 2005-03-25  Jim Meyering  <jim@meyering.net>
69674
69675         * modules/xvasprintf (Files): Add xalloc.h.
69676
69677 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * modules/gettext (Files): config/config.rpath ->
69680         build-aux/config.rpath
69681         * modules/iconv (Files): Likewise.
69682         Problem reported by Oskar Liljeblad.
69683
69684 2005-03-23  Jim Meyering  <jim@meyering.net>
69685
69686         * modules/check-include-files: New script to check for
69687         missing dependencies, multiple includes, etc.
69688
69689         * modules/c-strtold (Depends-on): Add xalloc.
69690         * modules/c-strtod (Depends-on): Add xalloc.
69691         * modules/hash (Depends-on): Add xalloc.
69692         (Files): Remove lib/xalloc.h.
69693
69694         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69695         * modules/userspec (Files): Add lib/inttostr.h.
69696
69697 2005-03-23  Jim Meyering  <jim@meyering.net>
69698
69699         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69700
69701 2005-03-22  Jim Meyering  <jim@meyering.net>
69702
69703         * modules/stat-macros: New module.
69704         * modules/canonicalize, modules/euidaccess, modules/file-type,
69705         * modules/filemode, modules/lchown, modules/makepath,
69706         * modules/rmdir, modules/stat: Depend on new stat-macros module
69707         rather than listing lib/stat-macros.h manually.
69708         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69709
69710 2005-03-22  Jim Meyering  <jim@meyering.net>
69711
69712         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69713
69714 2005-03-22  Bruno Haible  <bruno@clisp.org>
69715
69716         * config/srclist.txt: Replace target directory 'config' with
69717         'build-aux'.
69718         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69719         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69720         ../build-aux/.
69721
69722 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * modules/chdir-long (Depends-on): Add mempcpy.
69725
69726         * modules/acl, modules/backupfile, modules/c-strtod,
69727         modules/c-strtold, modules/canon-host, modules/canonicalize,
69728         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69729         modules/exclude, modules/exitfail, modules/file-type,
69730         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69731         modules/getdate, modules/getline, modules/getpagesize,
69732         modules/getpass, modules/getugroups, modules/group-member,
69733         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69734         modules/inttostr, modules/long-options, modules/makepath,
69735         modules/md5, modules/memcasecmp, modules/memcoll,
69736         modules/modechange, modules/mountlist, modules/path-concat,
69737         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69738         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69739         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69740         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69741         modules/strftime, modules/strndup, modules/strverscmp,
69742         modules/timespec, modules/unlocked-io, modules/userspec,
69743         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69744         modules/yesno:
69745         Remove lib_SOURCES line from Makefile.am section, as this is now
69746         done automatically by the corresponding Autoconf macro.
69747
69748 2005-03-21  Jim Meyering  <jim@meyering.net>
69749
69750         Changes imported from coreutils.
69751
69752         * lib/cycle-check.c: Don't include xalloc.h.
69753
69754         * lib/path-concat.c: Don't include assert.h.
69755         (path_concat): Remove assertion that would have triggered
69756         for ABASE starting with more than one slash.
69757         Reported by Andreas Schwab.
69758
69759         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69760         properly when ABASE is an absolute file name.
69761         Correct the description of this function.
69762         Include <assert.h>.
69763         Add an assertion and a test driver.
69764         This fixes a bug introduced on 2004-07-02.
69765         Andreas Schwab reported the resulting failure of cp --parents:
69766         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69767
69768 2005-03-21  Jim Meyering  <jim@meyering.net>
69769
69770         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69771         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69772
69773 2005-03-21  Jim Meyering  <jim@meyering.net>
69774         and  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69777         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69778         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69779         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69780         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69781         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69782         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69783         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69784         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69785         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69786         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69787         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69788         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69789         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69790         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69791         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69792         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69793         for these modules.
69794
69795 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69798         (which shouldn't happen), generate nothing instead of returning 0
69799         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69800
69801 2005-03-16  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69804         HAVE_LONGLONG_64BIT.
69805
69806 2005-03-16  Bruno Haible  <bruno@clisp.org>
69807
69808         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69809         HAVE_LONGLONG_64BIT.
69810
69811 2005-03-16  Bruno Haible  <bruno@clisp.org>
69812
69813         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69814         HAVE_LONGLONG_64BIT.
69815
69816 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69819         reliably distinguish strftime failure from empty output on POSIX
69820         hosts.
69821
69822 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69825         (iconv_string): Don't guess a size-zero buffer, as that might cause
69826         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69827         result would be 'too large', where 'too large' is (heuristically)
69828         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69829         overflow concerns.  This will prevent some unwanted malloc failures
69830         when the inputs are very large.
69831
69832 2005-03-15  Karl Berry  <karl@gnu.org>
69833
69834         * config/srclist.txt (config.rpath): from gettext.
69835         * config/config.rpath: update.
69836
69837 2005-03-15  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69840         to 'negate'.
69841
69842         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69843         variable.
69844
69845         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69846         results.
69847
69848 2005-03-14  Simon Josefsson  <jas@extundo.com>
69849
69850         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69851         <fx@gnu.org>.
69852
69853 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69856         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69857         intprops.h.
69858         * lib/strtol.c: Likewise.
69859
69860 2005-03-14  Jim Meyering  <jim@meyering.net>
69861
69862         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69863         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69864         to be nonzero so that we (and caller) can detect the difference
69865         between a valid zero-length expansion and an error return, even
69866         when the underlying strftime fails before writing anything into
69867         that location.
69868
69869 2005-03-14  Bruno Haible  <bruno@clisp.org>
69870
69871         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69872         Update from GNU gettext 0.14.3.
69873
69874 2005-03-10  Jim Meyering  <jim@meyering.net>
69875
69876         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69877
69878 2005-03-10  Jim Meyering  <jim@meyering.net>
69879
69880         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69881         so that this module works on systems without fchdir.
69882
69883 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         Factor int-properties macros into a single file, except for
69886         glibc-related files.
69887         * lib/intprops.h: New file.
69888         * lib/getloadavg.c: Include it instead of limits.h.
69889         (INT_STRLEN_BOUND): Remove.
69890         * lib/human.c: Include intprops.h.
69891         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69892         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69893         302/1000.
69894         * lib/inttostr.h: Include intprops.h instead of limits.h.
69895         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69896         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69897         for consistency with intprops.h.
69898         (time_t_is_integer, twos_complement_arithmetic): Use them.
69899         * lib/sig2str.h: Include <signal.h>, intprops.h.
69900         (INT_STRLEN_BOUND): Remove.
69901         * lib/strftime.c (TYPE_SIGNED): Remove.
69902         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69903         * lib/strtol.c: Adjust comments to match intprops.h.
69904         * lib/userspec.c: Include intprops.h.
69905         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69906         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69907         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69908         instead of rolling our own expressions.
69909         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69910
69911         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69912         instead of int.
69913         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69914         the right thing even if adding 1900 would overflow.  Similarly
69915         for tm_mon + 1 and tm_yday + 1.
69916         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69917         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69918         (DO_SIGNED_NUMBER): New macro.
69919         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69920
69921 2005-03-07  Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69924
69925 2005-03-07  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69928
69929 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69930
69931         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69932         (func_import): Only replace files via --import when they have actually
69933         changed.
69934
69935 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69936
69937         * m4/mmap-anon.m4: New file.
69938         * m4/pagealign_alloc.m4: New file.
69939
69940 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69941             Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/pagealign_alloc: New file.
69944         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69945
69946 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69947             Bruno Haible  <bruno@clisp.org>
69948
69949         * lib/pagealign_alloc.h: New file.
69950         * lib/pagealign_alloc.c: New file.
69951
69952 2005-03-03  Bruno Haible  <bruno@clisp.org>
69953
69954         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69955         Use an all-permissive copyright notice, recommended by RMS.
69956
69957 2005-03-02  Bruno Haible  <bruno@clisp.org>
69958
69959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69960         of AIX, the replacement has to be done only after <string.h> is
69961         included, therefore not in config.h. stpncpy.h does the replacement,
69962         and stpncpy.c uses it.
69963
69964 2005-03-02  Bruno Haible  <bruno@clisp.org>
69965
69966         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69967         stpncpy.c uses it.
69968
69969 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69972         The workaround isn't strictly needed for POSIX conformance, and
69973         it's too much of a pain to configure and maintain.  We'll ask
69974         people to fix their kernels instead.
69975         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69976         (NANOSLEEP_BUG_WORKAROUND): Remove.
69977         (xnanosleep): Remove the workaround.
69978
69979 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69982         Reported by Derek Price.
69983         (Include): Add "timespec.h".
69984
69985         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69986
69987 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69990         to detect nanosleep bug.
69991
69992 2005-03-01  Bruno Haible  <bruno@clisp.org>
69993
69994         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69995
69996 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * modules/gethrxtime: New file.
69999         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70000         (Depends-on): Add gethrxtime.
70001         (configure.ac): Add gl_XNANOSLEEP.
70002         (Makefile.am): Remove lib_SOURCES line.
70003
70004 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70007         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70008
70009 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70012         * lib/timespec.h (gettime): Return void, since it always
70013         succeeds now.  All uses changed.
70014         * lib/gettime.c (gettime): Likewise.
70015         [HAVE_NANOTIME]: Prefer nanotime.
70016         Assume gettimeofday succeeds, as POSIX requires.
70017         Assime time () succeeds, since other code already does.
70018         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70019         (timespec_subtract): Remove.
70020         (NANOSLEEP_BUG_WORKAROUND): New constant.
70021         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70022         things considerably.  Use it only on GNU/Linux hosts, since the
70023         workaround shouldn't be needed elsewhere.
70024
70025 2005-02-24  Bruno Haible  <bruno@clisp.org>
70026
70027         * modules/gettext (Files): Add m4/glibc2.m4.
70028
70029 2005-02-24  Bruno Haible  <bruno@clisp.org>
70030
70031         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70032         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70033         * m4/progtest.m4:
70034         Update from GNU gettext 0.14.2.
70035         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70036
70037 2005-02-24  Bruno Haible  <bruno@clisp.org>
70038
70039         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70040         * lib/config.charset: Update from GNU gettext 0.14.2.
70041
70042 2005-02-24  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/gettext.h: Update from GNU gettext 0.14.2.
70045
70046 2005-02-23  Simon Josefsson  <jas@extundo.com>
70047
70048         * m4/iconvme.m4: New file.
70049
70050 2005-02-23  Jim Meyering  <jim@meyering.net>
70051
70052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70053         change.
70054         Thanks to Bruno Haible for catching it.
70055
70056 2005-02-22  Simon Josefsson  <jas@extundo.com>
70057
70058         * modules/iconvme: New file.
70059
70060         * MODULES.html.sh: Add iconvme.
70061
70062 2005-02-22  Simon Josefsson  <jas@extundo.com>
70063
70064         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70065
70066 2005-02-22  Simon Josefsson  <jas@extundo.com>
70067
70068         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70069
70070 2005-02-22  Jim Meyering  <jim@meyering.net>
70071
70072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70073         s/ifndef/ifdef/.
70074
70075 2005-02-20  Neil Conway  <neilc@samurai.com>
70076
70077         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70078         returned by OSX/Darwin if the specified buffer is not large
70079         enough for the hostname.
70080
70081 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70082
70083         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70084         pass it to _help, otherwise the latter coredumps trying to
70085         dereference state.root_argp.
70086
70087 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * modules/chdir-long (Depends-on): Add memrchr.
70090         * modules/memrchr (Files): Add lib/memrchr.h.
70091         (Include): "memrchr.h".
70092
70093 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70094
70095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70096
70097 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/memrchr.h: New file.
70100         * lib/chdir-long.c: Include it.
70101         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70102         Don't bother including stddef.h.
70103
70104 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70107         inclusion.
70108         Include <sys/types.h>, for dev_t.
70109         (ME_DUMMY, ME_REMOTE): Move from here....
70110         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70111         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70112         Dmitry V. Levin.
70113         Include mountlist.h first, to test the interface.
70114
70115 2005-01-29  Bruno Haible  <bruno@clisp.org>
70116
70117         * lib/progname.c (program_name): Initialize.
70118         Needed when linking statically on MacOS X.
70119
70120 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         Sync from coreutils.
70123         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70124         (Depends-on): Add c-strtod.
70125         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70126
70127 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         Sync from coreutils.
70130         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70131
70132         Remove files that are specific to coreutils.
70133         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70134
70135 2005-01-28  Bruno Haible  <bruno@clisp.org>
70136
70137         * modules/javacomp: New file.
70138         * MODULES.html.sh (Java): Add javacomp.
70139
70140 2005-01-28  Bruno Haible  <bruno@clisp.org>
70141
70142         * m4/javacomp.m4: New file, from GNU gettext.
70143
70144 2005-01-28  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/javacomp.sh.in: New file, from GNU gettext.
70147         * lib/javacomp.h: New file, from GNU gettext.
70148         * lib/javacomp.c: New file, from GNU gettext.
70149
70150 2005-01-26  Simon Josefsson  <jas@extundo.com>
70151
70152         * lib/gai_strerror.c: Use GPL in header.
70153
70154 2005-01-26  Bruno Haible  <bruno@clisp.org>
70155
70156         * modules/javaexec: New file.
70157         * MODULES.html.sh (Java): Add javaexec.
70158
70159 2005-01-26  Bruno Haible  <bruno@clisp.org>
70160
70161         * m4/javaexec.m4: New file, from GNU gettext.
70162
70163 2005-01-26  Bruno Haible  <bruno@clisp.org>
70164
70165         * lib/javaexec.sh.in: New file, from GNU gettext.
70166         * lib/javaexec.h: New file, from GNU gettext.
70167         * lib/javaexec.c: New file, from GNU gettext.
70168
70169 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70170
70171         * modules/lchown (Depends-on): Remove lchown.h
70172
70173 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70174
70175         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70176         must be defined if the header file was not found, in order
70177         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70178
70179 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70180
70181         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70182         initializers for struct pentry_state.
70183         (__argp_error): Check return value of __asprintf
70184         (__argp_failure): Translate error message
70185
70186         * lib/argp-parse.c: Removed braces around the expansion of N_()
70187
70188 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70191         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70192         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70193         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70194         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70195         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70196         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70197         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70198         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70199         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70200         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70201         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70202         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70203         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70204         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70205         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70206         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70207         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70208         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70209         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70210         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70211         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70212         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70213         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70214         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70215         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70216         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70217         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70218         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70219         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70220         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70221         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70222         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70223         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70224         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70225         Use an all-permissive copyright notice, recommended by RMS.
70226
70227 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70228
70229         * modules/chdir-long (Depends-on): Remove mempcpy.
70230
70231 2005-01-21  Jim Meyering  <jim@meyering.net>
70232
70233         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70234         same value as for Solaris 9.
70235
70236         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70237         component length.  This included changing the parameter to be
70238         of type `char *' rather than `char const *'.
70239         * lib/chdir-long.h (chdir_long): Update prototype.
70240
70241         * lib/openat.c (fdopendir, fstatat): New functions.
70242         * lib/openat.h: Include headers required for use of DIR and struct
70243         stat.
70244         [AT_SYMLINK_NOFOLLOW]: Define.
70245         (fdopendir, fstatat): Add prototypes.
70246
70247 2005-01-21  Bruno Haible  <bruno@clisp.org>
70248
70249         * modules/classpath: New file.
70250         * MODULES.html.sh (Java): Add classpath.
70251
70252 2005-01-21  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/classpath.h: New file, from GNU gettext.
70255         * lib/classpath.c: New file, from GNU gettext.
70256
70257 2005-01-20  Simon Josefsson  <jas@extundo.com>
70258
70259         * modules/version-etc-fsf: New file.
70260
70261 2005-01-20  Simon Josefsson  <jas@extundo.com>
70262
70263         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70264         * lib/version-etc.c: Remove version_etc_copyright.
70265         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70266         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70267
70268 2005-01-20  Simon Josefsson  <jas@extundo.com>
70269
70270         * lib/base64.h (isbase64): Add.
70271
70272         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70273         using a unsigned prototype, don't inline.
70274         (base64_decode): Use it.
70275
70276 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70279         it.
70280
70281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/save-cwd.c (save_cwd): Remove code to support the case
70284         where fchdir is missing or flaky.
70285
70286 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70289
70290 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70293         AC_LIBSOURCES now does this.
70294         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70295         with new ullong_max module.
70296
70297 2005-01-19  Bruno Haible  <bruno@clisp.org>
70298
70299         * modules/sh-quote: New file.
70300         * MODULES.html.sh (Executing programs): Add sh-quote.
70301
70302 2005-01-19  Bruno Haible  <bruno@clisp.org>
70303
70304         * lib/sh-quote.h: New file, from GNU gettext.
70305         * lib/sh-quote.c: New file, from GNU gettext.
70306
70307 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         Merge from coreutils.
70310         * m4/ullong_max.m4: New file.
70311         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70312         (gl_MACROS): Assume localeconv exists.
70313
70314 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         Merge changes from coreutils, as described below in several
70317         changelogs dated today.
70318
70319         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70320         (O_DIRECTORY): Remove; not needed here, since "." must be
70321         a directory.  All uses removed.
70322         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70323         universal on Suns, and we also need to test for IRIX.
70324         Revamp code to use 'if' rather than '#if'.
70325         Avoid unnecessary comparison of cwd->desc to 0.
70326
70327         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70328         for known valid error numbers rather than observed invalid ones.
70329
70330 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * modules/ullong_max: New file.
70333
70334         * modules/chdir-long, modules/openat: New files.
70335         * modules/save-cwd (Depends-on): Depend on chdir-long.
70336         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70337
70338 2005-01-18  Jim Meyering  <jim@meyering.net>
70339
70340         Merge from coreutils.
70341         * m4/chdir-long.m4, m4/openat.m4: New files.
70342         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70343         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70344         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70345         is sane and DOES follow symlinks.  Besides, testing 20 different
70346         systems found no broken chown implementations.
70347         Prompted by a change in rsync's copy of this macro.
70348         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70349
70350         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70351
70352         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70353         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70354         NULL-means-set-to-current-time semantics.
70355         Remove temporary file immediately, rather than waiting
70356         for configure's at-exit trap code to do it.
70357
70358 2005-01-18  Jim Meyering  <jim@meyering.net>
70359
70360         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70361
70362         * lib/utimens.c (futimens): Account for the fact that futimes
70363         can also fail with errno == ENOSYS or errno == ENOENT.
70364         Patch from Dmitry V. Levin.
70365
70366         Change the name of the robust chdir function from chdir to chdir_long.
70367         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70368         (restore_cwd): Use chdir_long, not chdir.
70369         * lib/chdir-long.c: Renamed from chdir.c.
70370         * lib/chdir-long.h: Renamed from chdir.h.
70371         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70372         Hurd.
70373
70374 2005-01-18  Bruno Haible  <bruno@clisp.org>
70375
70376         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70377         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70378         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70379         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70380         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70381         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70382         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70383         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70384         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70385         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70386         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70387         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70388         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70389         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70390         Use an all-permissive copyright notice, recommended by RMS.
70391
70392 2005-01-18  Bob Proulx  <bob@proulx.com>
70393
70394         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70395         simplify offsetof() macro construct to avoid compile failure with
70396         native HP-UX 11.0 ANSI C compiler.
70397
70398 2005-01-17  Bruno Haible  <bruno@clisp.org>
70399
70400         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70401         redundant because stpncpy.m4 takes care of it.
70402
70403 2005-01-17  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70406
70407 2005-01-17  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70410         used.
70411
70412 2005-01-17  Bruno Haible  <bruno@clisp.org>
70413
70414         * lib/fwriteerror.h (fwriteerror): Change specification to include
70415         fclose.
70416         * lib/fwriteerror.c: Include <stdbool.h>.
70417         (fwriteerror): At the end, close the file stream. Record whether
70418         stdout was already closed.
70419
70420 2005-01-17  Bruno Haible  <bruno@clisp.org>
70421
70422         * lib/execute.c (environ): Declare if needed.
70423         * lib/pipe.c (environ): Likewise.
70424         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70425
70426 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70427
70428         * modules/argp: Depend on vsnprintf
70429
70430 2005-01-10  Jim Meyering  <jim@meyering.net>
70431
70432         * modules/closeout (Depends-on): Add atexit.
70433
70434 2005-01-06  Bruno Haible  <bruno@clisp.org>
70435
70436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70437
70438 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70441         definitions to be after all include files, to avoid collisions.
70442         Problem reported by Bob Proulx.
70443
70444 2005-01-04  Jim Meyering  <jim@meyering.net>
70445
70446         Changes imported from coreutils.
70447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70448         as the mkstemp template, use a temporary directory and an
70449         8.3-friendly template to avoid trouble on systems like DJGPP.
70450         Reported by Juan M. Guerrero via Stepan Kasal.
70451         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70452         close. Remove the temporary directory right away, rather than waiting
70453         for configure's at-exit trap code to do it.
70454         Suggestion from Stepan Kasal.
70455
70456 2005-01-01  Simon Josefsson  <jas@extundo.com>
70457
70458         * gnulib-tool: Print #include directives when --import'ing.
70459
70460 2004-12-28  Simon Josefsson  <jas@extundo.com>
70461
70462         * tests/test-base64.c: Include required header files.  Remove
70463         unused variables.
70464
70465 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * modules/error (Depends-on): Remove gettext.
70468
70469 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70472         not needed.  This removes a dependency on the gettext module.
70473         [defined _LIBC]: Do not include <libintl.h>; not needed.
70474
70475 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70478         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70479
70480 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70483         HAVE_DECL_STRTOLD.
70484
70485 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         * modules/getdate (Depends-on): Remove alloca-opt.
70488
70489 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70492
70493 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * lib/argp-parse.c: Include <stddef.h>.
70496         (alignof, alignto): New macros.
70497         (parser_init): Don't assume that void * is aligned sufficiently
70498         for struct option.
70499
70500         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70501         need to extend the stack.
70502         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70503         large.
70504
70505 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70506
70507         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70508
70509 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70512         (2004-10-24) change.  Apparently this was a false alarm.
70513
70514         * modules/getdate: Depend on alloca-opt, not alloca.
70515
70516 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70519         Remove now-obsolete comment about AIX.
70520         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70521         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70522         (YYMAXDEPTH): New macro.
70523
70524 2004-12-18  Simon Josefsson  <jas@extundo.com>
70525
70526         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70527
70528 2004-12-18  Bruno Haible  <bruno@clisp.org>
70529
70530         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70531
70532 2004-12-18  Bruno Haible  <bruno@clisp.org>
70533
70534         * lib/fatal-signal.c (fatal_signals): Make non-const.
70535         (init_fatal_signals): New function.
70536         (uninstall_handlers, install_handlers): Ignore signals that were set to
70537         SIG_IGN.
70538         (at_fatal_signal): Call init_fatal_signals.
70539         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70540         SIG_IGN.
70541         Reported by Paul Eggert.
70542
70543 2004-12-18  Bruno Haible  <bruno@clisp.org>
70544
70545         * doc/alloca.texi: New file.
70546         * doc/alloca-opt.texi: New file.
70547
70548 2004-12-17  Jim Meyering  <jim@meyering.net>
70549
70550         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70551         Otherwise, install-sh could exit with improper exit status when
70552         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70553
70554 2004-12-16  Simon Josefsson  <jas@extundo.com>
70555
70556         * tests/test-base64.c: Add license.
70557
70558 2004-12-15  Stepan Kasal  <address@hidden>
70559
70560         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70561
70562 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * modules/getcwd (Files): Add m4/d-ino.m4.
70565         Suggested by Mark D. Baushke.
70566
70567 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * lib/getdate.y (textint): New member "negative".
70570         (time_zone_hhmm): New function.
70571         Expect 14 shift-reduce conflicts, not 13.
70572         (o_colon_minutes): New rule.
70573         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70574         (yylex): Set the "negative" member of signed numbers.
70575
70576 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70577
70578         * doc/getdate.texi (Time of day items, Time zone items):
70579         Describe new formats +00:00, UTC+00:00.
70580
70581 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70584         spurious "-l"s.  Problem reported by Stepan Kasal.
70585
70586 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70589         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70590
70591 2004-12-04  Simon Josefsson  <jas@extundo.com>
70592
70593         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70594         Vandoorselaere <yoann@prelude-ids.org>.
70595
70596 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         Changes imported from coreutils.
70599         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70600         exist.
70601         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70602
70603 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         Changes imported from coreutils.
70606         * lib/hard-locale.c: Assume <locale.h> exists.
70607         Include "strdup.h".
70608         (GLIBC_VERSION): New macro.
70609         (hard_locale): Assume setlocale exists.
70610         Rewrite to avoid #ifdef.
70611         Use strdup rather than malloc + strcpy.
70612         * lib/human.c: Assume <locale.h> exists.
70613         (human_readable): Assume localeconv exists.
70614
70615 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * modules/hard-locale (Depends-on): Add strdup.
70618
70619 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70620
70621         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70622         convert T2, not T.  (Imported from libc.)
70623
70624 2004-11-30  Simon Josefsson  <jas@extundo.com>
70625
70626         * modules/restrict (License): Change to LGPL.
70627
70628 2004-11-30  Simon Josefsson  <jas@extundo.com>
70629
70630         * m4/restrict.m4: Add copyright and copying conditions.
70631
70632 2004-11-30  Simon Josefsson  <jas@extundo.com>
70633
70634         * m4/base64.m4: New file.
70635
70636 2004-11-30  Simon Josefsson  <jas@extundo.com>
70637
70638         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70639         base64.
70640
70641         * tests/test-base64.c: New file.
70642
70643         * modules/base64: New file.
70644
70645 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70648         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70649
70650         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70651
70652 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70655         (__getcwd.c): Don't restore errno; glibc doesn't.
70656         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70657         first, falling back to our code only if its results look suspicious.
70658         Ensure that the resulting buffer is only as large as necessary.
70659
70660         * lib/readutmp.c: Include readutmp.h first.
70661         Include <errno.h>, since readutmp.h no longer does that.
70662         * lib/readutmp.h: Don't include <errno.h>,
70663         <sys/param.h>, <time.h>; not needed to establish interface.
70664         (errno): Remove decl.
70665         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70666         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70667         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70668
70669 2004-11-28  Simon Josefsson  <jas@extundo.com>
70670
70671         * lib/base64.h, base64.c: New file.
70672
70673 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70676
70677 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70678
70679         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70680         (Depends-on): Remove pathmax, same.  Add mempcpy.
70681         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70682         (Makefile.am): Append getcwd.h to lib_SOURCES.
70683         (Include): Add getcwd.h.
70684         (Maintainer): Change from Jim Meyering to "all, glibc",
70685         since getdate now uses intended-for-glibc code.
70686         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70687         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70688
70689 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70692         HP's ANSI C compiler.
70693         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70694         Declaring int functions causes warnings on some modern systems and
70695         shouldn't be needed to compile on ancient ones.
70696         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70697         defined.
70698
70699         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70700         with the following changes.
70701         (__set_errno): Parenthesize properly.
70702         Include <stdbool.h>.
70703         (MIN, MAX, MATCHING_INO): New macros.
70704         (__getcwd): Define with prototype, not K&R form.
70705         Use heuristics to allocate default buffer on stack if possible.
70706         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70707         behavior, and to avoid the PATH_MAX limit when computing
70708         ../../../../...
70709         Use MATCHING_INO to compare inode number to file.
70710         Check for arithmetic overflow in size calculations.
70711         Fix bug in reallocation of dot array that caused getcwd to fail
70712         on directories nested deeper than 75.
70713         Be more careful about saving errno on error.
70714         Do not use realloc; use only free+malloc, as this is a bit
70715         more flexible and avoids a needless copy operation.
70716         Do not inspect st_dev and st_ino for symbolic links; POSIX
70717         doesn't specify the latter.
70718         Check for closedir errors.
70719         Avoid needless casts.
70720         Use "#ifdef weak_alias" around weak_alias, to be like other
70721         glibc code.
70722         The following changes to getcwd.c have effect only when used in
70723         gnulib; they have no effect inside glibc proper.
70724         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70725         as alloca isn't used.
70726         (alloca, __alloca): Likewise.
70727         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70728         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70729         unconditionally, as gnulib assumes C89 or better.
70730         Do not include <sys/param.h>.
70731         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70732         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70733         better.
70734         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70735         Include <dirent.h> in a way that is compatible with modern Autoconf.
70736         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70737         New macros, if not already defined.
70738         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70739         Use "_LIBC", not "defined _LIBC", for consistency.
70740         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70741         a mempcpy module.
70742         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70743         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70744         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70745         credit only to Jim Meyering and adjust the copyright dates.
70746         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70747         <stdlib.h>, <unistd.h>, "pathmax.h".
70748         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70749         (INITIAL_BUFFER_SIZE): Remove.
70750         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70751
70752 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70753
70754         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70755         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70756         Use the _ONCE methods, for efficiency.
70757         Check for fcntl.h.  In test program, include <errno.h>
70758         and <fcntl.h> if available.  Remove old K&R cruft from
70759         test program.  Check for common errors in GNU/Linux,
70760         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70761         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70762         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70763         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70764         name accordingly.
70765         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70766         accommodate new getcwd.c.
70767         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70768         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70769         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70770         that's all we need now.
70771
70772 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70773
70774         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70775         argp-parse.c depends on getopt internals, that means we should
70776         always use our getopt, to be on the safe side.
70777         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70778         order not to spoil the result of an eventual previous invocation
70779         of gl_GETOPT_SUBSTITUTE.
70780
70781 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70782
70783         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70784         redefinition warnings. To avoid them, include the defines
70785         in `#if !defined __need_getopt ... #endif'. The only place
70786         where __getopt_argv_const is used is in definitions
70787         of getopt_long and getopt_long_only below, which are as well
70788         protected by `#ifndef __need_getopt'.
70789         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70790         __need_getopt after including <stdio.h> and <unistd.h> These
70791         headers might have defined it.
70792
70793 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70796
70797 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70800         (futimens): New function, which uses futimes if available.
70801         (futimens, utimens): Support timespec==NULL, with same semantics
70802         as utime and utimens.
70803         * lib/utimens.h (futimens): New decl.
70804
70805 2004-11-23  Jim Meyering  <jim@meyering.net>
70806
70807         * lib/getopt_.h: Remove trailing blanks.
70808
70809 2004-11-23  Jim Meyering  <jim@meyering.net>
70810
70811         * lib/__fpending.c: Add comment.
70812
70813 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70814
70815         * modules/canonicalize (Depends-on): Add xreadlink.
70816         Problem reported by James Youngman.
70817
70818 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70821         New macros.
70822         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70823         optopt): Use them instead of invoking ## directly; otherwise, the
70824         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70825
70826 2004-11-19  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/strtok_r.c: Move comments from here...
70829         * lib/strtok_r.h: ... to here.
70830
70831 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70834         implementations that mishandle size_t overflow.
70835
70836 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70839         might fail.  Problem reported by Yoann Vandoorselaere.
70840         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70841         implementations that mishandle size_t overflow.
70842
70843 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * modules/canon-host (Depends-on): Add strdup.
70846
70847 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70850
70851 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * lib/canon-host.c: Include "strdup.h".
70854         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70855         Use strdup instead of malloc/strcpy to duplicate strings.
70856
70857         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70858         (human_space_before_unit): New constant.
70859         * lib/human.c (human_readable): Support it.
70860
70861         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70862         (xgetcwd): Set errno correctly when failing.
70863         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70864         the failure is actually due to a PATH_MAX problem.
70865
70866         Further getopt changes to make it more likely that glibc will
70867         buy the changes back.
70868         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70869         (getopt): Use it, so to preserve glibc semantic
70870         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70871         when compiling for libc.
70872         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70873         (getopt_long, getopt_long_only): Use it.
70874
70875         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70876         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70877         (getopt): Argv is now char * const *, as per standard.
70878         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70879         not char *__getopt_argv_const *.
70880         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70881         _getopt_long_only_r): Likewise.
70882         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70883         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70884         _getopt_long_r, _getopt_long_only_r): Likewise.
70885         * lib/getopt_.h (__getopt_argv_const): Remove.
70886         (getopt): Argv is now char * const *, as per standard.
70887
70888         * lib/getdate.y (tORDINAL): New token.
70889         (day, relunit): Allow it for relative times.
70890         (relative_time_table): Use tORDINAL for ordinals.
70891
70892 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70895         Document that "second" isn't allowed as an ordinal number.
70896
70897 2004-11-16  Jim Meyering  <jim@meyering.net>
70898
70899         * modules/closeout (Depends-on): Add fpending.
70900
70901 2004-11-15  Jim Meyering  <jim@meyering.net>
70902
70903         * lib/closeout.c: Include "__fpending.h" once again.
70904         Include <stdbool.h>.
70905         (close_stdout): Don't fail just because stdout was closed initially,
70906         since some programs don't write to stdout in the normal course of
70907         operation (other than --version and --help), and we don't want this
70908         function to make e.g. `touch file >&-' fail.
70909         But do fail if it was closed and someone has tried to write to it.
70910         E.g., `printf foo >&-' must fail.
70911
70912 2004-11-13  Jim Meyering  <jim@meyering.net>
70913
70914         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70915
70916 2004-11-12  Simon Josefsson  <jas@extundo.com>
70917
70918         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70919         small doc fix is still pending.
70920
70921 2004-11-11  Simon Josefsson  <jas@extundo.com>
70922
70923         * modules/strtok_r: New file.
70924
70925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70926         strtok_r.
70927
70928 2004-11-11  Simon Josefsson  <jas@extundo.com>
70929
70930         * m4/strtok_r.m4: New file.
70931
70932         * m4/getopt.m4: Replace opterr.
70933
70934 2004-11-11  Simon Josefsson  <jas@extundo.com>
70935
70936         * lib/strtok_r.h, strtok_r.c: New file.
70937
70938 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70941         of replacing opterr, getopt, etc.  This should handle the
70942         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70943
70944 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70947         we can stop lying to compilers about the constness of argv when we
70948         are compiled outside glibc.
70949         (getopt, getopt_long, getopt_long_only): Use it.
70950         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70951         _getopt_internal, getopt): Likewise.
70952         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70953         _getopt_long_only_r): Likewise.
70954         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70955         _getopt_long_r, _getopt_long_only_r): Likewise.
70956
70957         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70958         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70959         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70960         the other external symbols.
70961         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70962         declaration, since the above renaming now works around collisions.
70963
70964 2004-11-11  Jim Meyering  <jim@meyering.net>
70965
70966         * lib/linebreak.c: Remove trailing blanks.
70967         * lib/alloca_.h: Likewise.
70968         * lib/acosl.c: Likewise.
70969         * lib/euidaccess.c: Likewise.
70970         * lib/allocsa.h: Likewise.
70971
70972 2004-11-10  Simon Josefsson  <jas@extundo.com>
70973
70974         * m4/getaddrinfo.m4: New file.
70975
70976 2004-11-10  Simon Josefsson  <jas@extundo.com>
70977
70978         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70979
70980 2004-11-10  Simon Josefsson  <jas@extundo.com>
70981
70982         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70983         getaddrinfo.
70984
70985         * modules/getaddrinfo: New file.
70986
70987 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70990
70991 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * lib/mktime.c (SHR): New macro, which is a portable
70994         substitute for >> that should work even on Crays.
70995         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70996         Problem reported by Mark D. Baushke in
70997         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70998         * lib/getdate.y (SHR): Likewise.
70999         (tm_diff): Use it.
71000         * lib/strftime.c (SHR): Likewise.
71001         (tm_diff): Use it.
71002         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71003         quote_these_too, so that right shifts are well defined.  All uses
71004         changed.
71005
71006 2004-11-10  Jim Meyering  <jim@meyering.net>
71007
71008         Ensure that no close failure goes unreported.
71009         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71010         return early when it seems there's nothing to flush.
71011         Don't include __fpending.h.
71012
71013 2004-11-10  Jim Meyering  <jim@meyering.net>
71014
71015         * modules/closeout (Depends-on): Remove fpending.
71016
71017 2004-11-10  Jim Meyering  <jim@meyering.net>
71018
71019         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71020
71021 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71024         gl_FUNC_STRFTIME.
71025         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71026         and AC_REQUIRE when possible, to avoid duplicate checks.
71027         Check for <wchar.h>.
71028
71029 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71032
71033 2004-11-09  Bruno Haible  <bruno@clisp.org>
71034
71035         * m4/sockpfaf.m4: New file.
71036
71037 2004-11-05  Bruno Haible  <bruno@clisp.org>
71038
71039         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71040         Reported by Mark D. Baushke <mdb@cvshome.org>.
71041
71042 2004-11-04  Bruno Haible  <bruno@clisp.org>
71043
71044         2004-09-11  Bruno Haible  <bruno@clisp.org>
71045                 * allocsa.valgrind: New file.
71046         2004-02-06  Bruno Haible  <bruno@clisp.org>
71047                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71048                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71049                 Reported by Christopher Seip <chris.seip@hp.com>.
71050
71051 2004-11-04  Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71054         (Makefile.am): Distribute it.
71055
71056 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71059         with errno == ERANGE if the buffer is too small.
71060         Problem reported by Mark D. Baushke.
71061
71062 2004-11-03  Albert Chin  <china@thewrittenword.com>
71063             Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71066         equivalent, substitute $ac_type for equivalent type rather than
71067         blindly using uint32_t *always* which won't work if uint32_t is not
71068         available.  Define _UINT32_T to work around typedef of uint32_t if
71069         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71070         2.5.1.
71071
71072 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * m4/jm-macros.m4: Sync from coreutils.
71075         (gl_MACROS): Check for mbrlen, for pathchk.
71076         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71077
71078 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         * lib/xreadlink.c (MAXSIZE): New macro.
71081         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71082         size does not exceed MAXSIZE.  Avoid cast.
71083         As suggested by Mark D. Baushke in
71084         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71085         if readlink fails with buffer size just under MAXSIZE, try again
71086         with MAXSIZE.
71087
71088 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71091
71092 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71093         and  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71096         (get_date): Overparenthesize to avoid GCC warning.
71097
71098 2004-11-02  Bruno Haible  <bruno@clisp.org>
71099
71100         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71101         returns void.
71102
71103 2004-11-02  Bruno Haible  <bruno@clisp.org>
71104
71105         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71106         function returns void.
71107
71108 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71111         fflush_unlocked, flockfile, funlockfile, funlockfile,
71112         fputs_unlocked, putc_unlocked.
71113
71114 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71117         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71118         already declared.
71119
71120 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * modules/getdate (Files): Add doc/getdate.texi.
71123         (Depends-on): Add setenv, xalloc.
71124
71125 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/getdate.y: Add support for TZ="foo" within a date string.
71128         Fix some bugs near time_t boundaries.  Reject dates with
71129         out-of-range components, e.g., "Sept 31".
71130         Include <stdlib.h>, "setenv.h", "xalloc.h".
71131         (ISDIGIT_LOCALE): Remove; unused.
71132         Note that the TZ and time functions used here are not reentrant.
71133         (mktime_ok, get_tz): New functions.
71134         (TZBUFSIZE): New constant.
71135         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71136         This requires that we sometimes generate our own TZ="XXX..." setting.
71137
71138 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * doc/getdate.texi: New file, from coreutils with modifications for
71141         the new TZ parsing.
71142
71143 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71144
71145         * lib/mktime.c (not_equal_tm): Remove redundant check.
71146
71147 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * modules/regex (lib_SOURCES): Add regex.c.
71150         Reported by James Youngman in
71151         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71152
71153 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * lib/getdate.y: Use Bison 1.875 features, and some minor
71156         code cleanups.  This change does not affect semantics.
71157         Don't include <stdlib.h>; no longer needed.
71158         Don't include unlocked-io.h; only the "#if TEST" code uses
71159         stdio, and performance isn't crucial there.
71160         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71161         Bison 1.875 features as described below.
71162         All uses of "PC." replaced by "pc->".
71163         (YYSTYPE): Add a forward declaration.
71164         (yylex, yyerror): Use full prototypes in forward decls.
71165         Use "%pure-parser" rather than obsolescent "%pure_parser".
71166         Use %parse-param and %lex-param instead of obsolescent
71167         YYPARSE_PARAM and YYLEX_PARAM.
71168         (meridian_table, month_and_day_table, time_units_table,
71169         relative_time_table, time_zone_table, military_table,
71170         lookup_zone, lookup_word, get_date):
71171         Use NULL instead of 0 where appropriate.
71172         (to_hour): Avoid abort (), to avoid a dependency on
71173         stdlib.h.
71174         (yyerror, yylex): Now accepts parser_control * arg.
71175         (main) [TEST]: Use '\0' rather than 0 for char.
71176
71177 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71180
71181 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71184         It's now the caller's responsibility to handle the case where
71185         !HAVE_GETPAGESIZE && !defined getpagesize.
71186
71187         * lib/mktime.c (leapyear): Arg is long int, not int.
71188
71189 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71192
71193 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71196         missing.  Problem reported by James Youngman.
71197
71198 2004-10-16  Simon Josefsson  <jas@extundo.com>
71199
71200         * gnulib-tool: Fix comments.  Fix parse problem.
71201         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71202
71203 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71206         implementation of getopt_long.  Problem reported by Alexander Taler in:
71207         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71208
71209 2004-10-15  Bruno Haible  <bruno@clisp.org>
71210
71211         * gnulib-tool: Untabify. Initialize supplied_libname.
71212         (func_usage): More homogenous output.
71213         (func_modules_transitive_closure, func_modules_to_filelist,
71214         func_emit_lib_Makefile_am): New functions.
71215         (func_import): New function, extracted from big case statement. Use
71216         func_get_license, func_modules_transitive_closure,
71217         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71218         opt_lgpl. Don't use test -a, as it's not portable.
71219         (func_create_testdir): Use func_modules_transitive_closure,
71220         func_modules_to_filelist, func_emit_lib_Makefile_am.
71221
71222 2004-10-15  Bruno Haible  <bruno@clisp.org>
71223
71224         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71225
71226 2004-10-15  Bruno Haible  <bruno@clisp.org>
71227
71228         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71229         the portions belonging to each module.
71230         Suggested by Derek Robert Price <derek@ximbiot.com>.
71231
71232 2004-10-12  Simon Josefsson  <jas@extundo.com>
71233
71234         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71235         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71236         to real functions.
71237
71238 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71239
71240         * modules/vsnprintf: New file.
71241
71242 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71243
71244         * m4/vsnprintf.m4: New file.
71245
71246 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71247
71248         * lib/vsnprintf.h: New file.
71249         * lib/vsnprintf.c: New file.
71250
71251 2004-10-11  Bruno Haible  <bruno@clisp.org>
71252
71253         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71254         vsnprintf.
71255
71256 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71257
71258         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71259
71260 2004-10-07  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71263         fits into the provided buffer.
71264
71265 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * lib/diacrit.c, diacrit.h: Add GPL notice.
71268
71269         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71270         notice.
71271         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71272         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71273         This avoids a potential constant-folding bug.
71274
71275 2004-10-05  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71278         for the declaration of strsep.
71279
71280 2004-10-05  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71283
71284 2004-10-04  Simon Josefsson  <jas@extundo.com>
71285
71286         * modules/memmem: New file.
71287         * tests/test-memmem.c: New file.
71288         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71289
71290 2004-10-04  Simon Josefsson  <jas@extundo.com>
71291
71292         * m4/memmem.m4: New file.
71293
71294 2004-10-04  Simon Josefsson  <jas@extundo.com>
71295
71296         * lib/memmem.h: New file.
71297         * lib/memmem.c: New file, taken from glibc.
71298
71299 2004-10-04  Simon Josefsson  <jas@extundo.com>
71300
71301         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71302         '#ifdef USE_UNLOCKED_IO'.
71303
71304 2004-10-04  Simon Josefsson  <jas@extundo.com>
71305
71306         * config/srclist.txt: Add memmem from glibc.
71307
71308 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71311
71312         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71313         modules/exclude, modules/getdate, modules/getline,
71314         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71315         modules/getusershell, modules/linebuffer, modules/md5,
71316         modules/mountlist, modules/posixtm, modules/readtokens,
71317         modules/readutmp, modules/regex, modules/sha1,
71318         modules/version-etc, modules/yesno:
71319         Remove dependency on unlocked-io.
71320
71321 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71324
71325         * m4/unlocked-io.m4: Add copyright notice.
71326         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71327
71328 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71331         * lib/xmalloc.c (xmemdup): Likewise.
71332         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71333         XFREE): Remove these long-obsolescent macros.
71334         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71335         * lib/xstrdup.c: Remove.
71336
71337         * lib/regex.c (re_comp): Cast gettext return value to char *,
71338         Problem reported by Martin Neitzel via Mark D. Baushke.
71339
71340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71343         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71344         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71345         regex.c, sha1.c, version-etc.c, yesno.c:
71346         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71347         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71348         the includer's responsibility.
71349
71350         Sync from coreutils.
71351
71352         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71353         points to the start of a string, as the C Standard says the
71354         resulting behavior is undefined.
71355
71356         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71357         simple -> simple_backups, numbered_existing ->
71358         numbered_existing_backups, numbered -> numbered_backups
71359         to avoid shadowing problems.  All uses changed.
71360         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71361         * lib/backupfile.c (check_extension, numbered_backup):
71362         Rename locals to avoid shadowing 'basename'.
71363         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71364         once.
71365
71366         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71367         * lib/.cvsignore: Add getopt.h.
71368
71369 2004-10-04  Bruno Haible  <bruno@clisp.org>
71370
71371         * modules/README: New file.
71372         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71373         not a module.
71374
71375 2004-10-02  Jim Meyering  <jim@meyering.net>
71376
71377         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71378
71379 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71380
71381         * modules/strsep: New file.
71382
71383 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71384
71385         * m4/strsep.m4: New file.
71386
71387 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71388
71389         * lib/strsep.h: New file.
71390         * lib/strsep.c: New file.
71391
71392 2004-10-01  Simon Josefsson  <jas@extundo.com>
71393
71394         * lib/snprintf.c (snprintf): Handle size==0.
71395
71396 2004-10-01  Simon Josefsson  <jas@extundo.com>
71397             Bruno Haible  <bruno@clisp.org>
71398
71399         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71400         (snprintf): Declare 'args'.
71401
71402 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/snprintf.c: Remove comments as to why each header is needed.
71405
71406 2004-10-01  Bruno Haible  <bruno@clisp.org>
71407
71408         * MODULES.html.sh: Add strsep.
71409
71410 2004-09-30  Simon Josefsson  <jas@extundo.com>
71411
71412         * modules/snprintf: New file.
71413
71414 2004-09-30  Simon Josefsson  <jas@extundo.com>
71415
71416         * m4/snprintf.m4: New file.
71417
71418 2004-09-30  Simon Josefsson  <jas@extundo.com>
71419
71420         * lib/snprintf.h, lib/snprintf.c: New files.
71421
71422 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71423
71424         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71425         (hol_entry_help): Never translate an empty string.
71426         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71427         * lib/argp.h (OPTION_NO_TRANS): New option.
71428
71429 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71430
71431         * modules/argp (Maintainer): Replace Simon Josefsson
71432         by Sergey Poznyakoff.
71433
71434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71437         changes merged back into glibc.
71438
71439 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71442
71443 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71444
71445         * lib/xvasprintf.c: Include xalloc.h.
71446         (xvasprintf): Use xalloc_die, not xmalloc_die.
71447
71448 2004-09-29  Bruno Haible  <bruno@clisp.org>
71449
71450         * modules/alloca-opt: New file, derived from modules/alloca.
71451         * modules/allocsa: Depend on alloca-opt instead of alloca.
71452         * modules/setenv: Likewise.
71453         * modules/vasnprintf: Likewise.
71454         * MODULES.html.sh: Add alloca-opt.
71455
71456 2004-09-28  Simon Josefsson  <jas@extundo.com>
71457
71458         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71459         LGPL, and to replace license template from GPL to LGPL.
71460
71461 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * modules/dummy: Change license to LGPL.
71464
71465 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71468
71469 2004-09-24  Simon Josefsson  <jas@extundo.com>
71470
71471         * modules/minmax (License): Change from GPL to LGPL.
71472
71473 2004-09-23  Simon Josefsson  <jas@extundo.com>
71474
71475         * gnulib-tool (--import): Typo.
71476
71477 2004-09-23  Simon Josefsson  <jas@extundo.com>
71478
71479         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71480
71481 2004-09-22  Bruno Haible  <bruno@clisp.org>
71482
71483         * modules/*: Add 'License' field.
71484         * gnulib-tool: Accept --extract-license option.
71485         (func_get_license): New function.
71486
71487 2004-09-21  Bruno Haible  <bruno@clisp.org>
71488
71489         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71490         Reported by Simon Josefsson.
71491
71492 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71495         gl_AC_TYPE_LONG_LONG.
71496
71497 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71500
71501 2004-09-18  Simon Josefsson  <jas@extundo.com>
71502         and  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71505         calls with autoreconf.  Define GL_LIB.
71506
71507 2004-09-14  Karl Berry  <karl@gnu.org>
71508
71509         * config/srclist.txt: unsync setenv.c, sigh.
71510
71511 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71514         Problem reported by Bruno Haible in:
71515         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71516
71517 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * config/srclist.txt: Comment out argp-pvh.c.
71520
71521 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71524         in case some system header has #define'd it.  Problem reported by
71525         Soeren D. Schulze in
71526         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71527
71528 2004-09-09  Karl Berry  <karl@gnu.org>
71529
71530         * regex.[ch]: delete from the root.  These were supposed to be
71531                 synced with emacs cvs, but this has not happened for about
71532                 a year, and anyway nothing else uses emacs regex.[ch].
71533                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71534                 lib/regex[.ch] is untouched.
71535
71536 2004-09-09  Bruno Haible  <bruno@clisp.org>
71537
71538         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71539
71540 2004-09-09  Bruno Haible  <bruno@clisp.org>
71541
71542         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71543         modifications.
71544         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71545
71546 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71547
71548         * modules/xvasprintf: New file.
71549         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71550
71551 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71552
71553         * lib/xvasprintf.h: New file.
71554         * lib/xvasprintf.c: New file.
71555         * lib/xasprintf.c: New file.
71556
71557 2004-09-08  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71560
71561 2004-09-08  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71564         length is > INT_MAX.
71565         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71566         more.
71567
71568 2004-09-08  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/stdint_.h: New file, taken from GNU clisp.
71571
71572 2004-09-08  Bruno Haible  <bruno@clisp.org>
71573             Oskar Liljeblad  <oskar@osk.mine.nu>
71574
71575         * modules/stdint: New file.
71576         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71577
71578 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         Import from coreutils.
71581         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71582         strings on unbounded length.  alloca's performance benefits aren't
71583         that important here.
71584         (V_STRDUP): Remove.
71585         (parse_with_separator): New function, with most of the internals
71586         of the old parse_user_spec.  Allow user to omit both user and group,
71587         for compatibility with FreeBSD.
71588         Clone only the user name, not the entire spec.
71589         Do not set *uid, *gid unless entirely successful.
71590         Avoid memory leak in some failing cases.
71591         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71592         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71593         (parse_user_spec): Rewrite to use parse_with_separator.
71594
71595 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * modules/userspec: Don't depend on alloca.
71598
71599 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71602
71603 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71606         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71607         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71608
71609 2004-08-16  Simon Josefsson  <jas@extundo.com>
71610
71611         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71612         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71613         Add --dry-run for --import.
71614         Let user provided command line parameters override configure.ac
71615         settings.
71616
71617 2004-08-12  Simon Josefsson  <jas@extundo.com>
71618
71619         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71620         as discussed with Paul Eggert in threads rooted at
71621         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71622         and
71623         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71624         Before, the test was empty, and relied on ELIDE_CODE in source
71625         code.)
71626         (gl_PREREQ_GETOPT): New macro.
71627         (gl_GETOPT): Use them.
71628
71629 2004-08-12  Simon Josefsson  <jas@extundo.com>
71630
71631         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71632         * lib/getopt_.h: Renamed from getopt.h.
71633
71634 2004-08-12  Simon Josefsson  <jas@extundo.com>
71635
71636         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71637         Change default library name from libfoo to libgnu.
71638         Now, if you have a configure.ac that says:
71639                 gl_SOURCE_BASE(gl)
71640                 gl_M4_BASE(gl/m4)
71641                 gl_MODULES(error getopt etcetera)
71642                 gl_INIT
71643         you can import all you need by running:
71644                 ../gnulib/gnulib-tool --import
71645
71646         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71647         (Makefile.am): Rewrite, use logic from argz.
71648         (Include): Use <getopt.h> instead of "getopt.h".
71649
71650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * modules/argp (Files): Add m4/unlocked-io.m4.
71653         (Depends-on): Add extensions.
71654
71655 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71658         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71659         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71660         Check for program_invocation_name, program_invocation_short_name,
71661         flockfile, funlockfile, features.h, _getopt_long_only_r.
71662
71663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71666         its complicated substitute.
71667         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71668         and program_invocation_name.
71669         (__argp_basename) [!_LIBC]: Remove; the only use was
71670         replaced by its body.
71671         (__argp_short_program_name): Change condition from
71672         !defined __argp_short_program_name to
71673         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71674         to match argp-namefrob.h.
71675         (__argp_failure): Don't assume strerror_r returns char *.
71676         * lib/argp-parse.c (N_): Define unconditionally.
71677         (argp_default_options): Fill out initializers with 0 to avoid
71678         gcc warnings.
71679
71680 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71683         getopt1.c.
71684
71685 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71686
71687         Merge from coreutils.
71688
71689         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71690
71691         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71692         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71693
71694 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         Merge from coreutils.
71697
71698         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71699         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71700         for Reliant Unix 5.43.
71701
71702         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71703         (union fooround): Use uintmax_t, not long int.
71704         The rest is a merge from libc:
71705         [defined _LIBC]: Include <shlib-compat.h>.
71706         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71707
71708         * lib/settime.c (settime): Recode to avoid warning with
71709         Sun Forte C 6U2.
71710
71711         * lib/strverscmp.c: Convert to UTF-8.
71712
71713 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71716         m4/uintmax_t.m4.
71717
71718 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * modules/xalloc-die: New file.
71721         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71722
71723         * modules/md5 (Files): Add m4/uint32_t.m4.
71724         * modules/sha1: Renamed from modules/sha.
71725         (Files):
71726         Rename lib/sha.h to lib/sha1.h.
71727         Rename lib/sha.c to lib/sha1.c.
71728         Rename m4/sha.m4 to m4/sha1.m4.
71729         (lib_SOURCES): Likewise.
71730         (configure.ac): Rename gl_SHA to gl_SHA1.
71731         (Include): sha.h -> sha1.h.
71732
71733 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71736         * m4/sha1.m4: Renamed from sha.m4.
71737         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71738
71739 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         * lib/obstack.h (obstack_empty_p):
71742         Don't assume that chunk->contents is suitably aligned.
71743         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71744         Likewise. Problem reported by Benno in
71745         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71746
71747         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71748         readable.  This could be improved further but it'd take some work.
71749
71750 2004-08-08  Simon Josefsson  <jas@extundo.com>
71751
71752         * modules/xgethostname (Depends-on): Remove exit and error (not
71753         used).
71754
71755         * modules/getpass-gnu: Add getpass.h.
71756         (Depends-on): Add stdbool.
71757         * modules/getpass: Add getpass.h.
71758
71759 2004-08-08  Simon Josefsson  <jas@extundo.com>
71760
71761         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71762         Check getpass declaration.
71763
71764 2004-08-08  Simon Josefsson  <jas@extundo.com>
71765
71766         * lib/xgethostname.c: Don't include error.h (not used).
71767
71768         * lib/getpass.h: Add.
71769         * lib/getpass.c: Include getpass.h first.
71770
71771 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         * lib/xalloc-die.c: New file.
71774         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71775         All uses removed.
71776         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71777         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71778         xalloc-die.c.
71779         (_, N_, xalloc_die): Move to xalloc-die.c.
71780         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71781         so that we needn't mess with xalloc_msg_memory_exhausted.
71782
71783         * lib/sha1.h: Renamed from sha.h.
71784         (SHA1_H): Renamed from _SHA_H.
71785         (sha1_ctx): Renamed from sha_ctx.
71786         (sha1_init_ctx): Renamed from sha_init_ctx.
71787         (sha1_process_block): Renamed from sha_process_block.
71788         (sha1_process_bytes): Renamed from sha_process_bytes.
71789         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71790         (sha1_read_ctx): Renamed from sha_read_ctx.
71791         (sha1_stream): Renamed from sha_stream.
71792         (sha1_buffer): Renamed from sha_buffer.
71793         * lib/sha1.c: Likewise; renamed from sha.c.
71794         Do not include <sys/types.h>.
71795         Include <stddef.h> rather than <stdlib.h>.
71796
71797 2004-08-08  Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71800         FILESYSTEM_PREFIX_LEN.
71801         * lib/progreloc.c: Likewise.
71802         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71803
71804 2004-08-06  Simon Josefsson  <jas@extundo.com>
71805
71806         * modules/progname (Depends-on): Don't depend on stdbool.
71807
71808 2004-08-06  Simon Josefsson  <jas@extundo.com>
71809
71810         * modules/getsubopt: New file.
71811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71812         getsubopt.
71813
71814 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         More merge from coreutils.
71817
71818         * m4/utimens.m4, m4/utimecmp.m4: New files.
71819         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71820         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71821         prereq.m4, sha.m4: Import changes from coreutils.
71822
71823 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         More merge from coreutils.
71826         * modules/raise, modules/readtokens0, modules/utimens:
71827         * modules/utimecmp, module/xnanosleep: New files.
71828         * modules/strftime: Add lib/strftime.h.
71829         Change include from <time.h> to "strftime.h".
71830         * modules/yesno: Add lib/yesno.h.
71831         * modules/backupfile: Remove lib/addext.c.
71832         * modules/euidaccess: Add stat-macros.h.
71833         * modules/canonicalize, modules/euidaccess,
71834         modules/filemode, modules/lchown, modules/makepath,
71835         modules/rmdir, modules/stat: Likewise.
71836
71837 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         Merge from tar.
71840         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71841         SIZE_MAX is a valid preprocessor constant.
71842         (__argp_basename): Change from "#ifndef _LIBC"
71843         to "#ifndef __argp_short_program_name", so that
71844         we don't compile these functions for tar.
71845
71846         More merges from coreutils.
71847         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71848         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71849         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71850         * lib/addext.c: Remove; no longer needed.
71851         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71852         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71853         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71854         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71855         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71856         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71857         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71858         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71859         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71860         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71861         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71862         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71863         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71864         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71865         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71866         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71867         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71868         Import changes from coreutils.
71869
71870 2004-08-05  Simon Josefsson  <jas@extundo.com>
71871
71872         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71873
71874 2004-08-05  Simon Josefsson  <jas@extundo.com>
71875
71876         * m4/getsubopt.m4: New file.
71877
71878 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         Merge from coreutils.
71881
71882         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71883         * m4/getcwd-path-max.m4: New files.
71884
71885         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71886         FILESYSTEM_PREFIX_LEN ->
71887         FILE_SYSTEM_PREFIX_LEN.
71888         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71889         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71890         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71891         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71892
71893         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71894         prerequisite modules now handle the DOS stuff.
71895         Don't check for unistd.h.
71896
71897 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         Merge from coreutils.
71900
71901         * lib/.gdb-history: Remove; this doesn't belong here.
71902
71903         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71904         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71905         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71906         * lib/getcwd.c: New files.
71907
71908         * lib/dirname.h: Include <stdbool.h>.
71909         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71910         for consistency with POSIX terminology.  All uses changed.
71911         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71912         (strip_trailing_slashes): Use bool for booleans.
71913         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71914
71915         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71916         sometimes returns a positive errno value even when it succeeds.
71917         (print_errno_message) [!LIBC]: Fall back on strerror if
71918         __strerror_r fails.
71919
71920         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71921         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71922         (longest_relative_suffix): New function.
71923         (path_concat): Use it.  Assume first argument is not NULL.
71924         Port to DOS.  Omit redundant separators.
71925         Report an error instead of returning NULL.
71926         Use mempcpy instead of memcpy.
71927         (xpath_concat): Remove: not declared or used.
71928
71929         * lib/same.h: Include <stdbool.h>
71930         (same_name): Return bool, not int.
71931         * lib/same.c (same_name): Likewise.
71932         (errno): Don't declare; we assume C89 or better now.
71933
71934         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71935         if not already defined.
71936
71937         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71938         * lib/dup-safer.c (errno): Likewise.
71939
71940 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         Merge from coreutils.
71943         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71944         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71945         * modules/path-concat: Don't depend on strdup.
71946
71947 2004-08-03  Simon Josefsson  <jas@extundo.com>
71948
71949         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71950         * lib/progname.h: Don't include stdbool.h.
71951
71952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71955         * MODULES.html.sh (func_all_modules): Remove fatal.
71956
71957 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71958
71959         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71960
71961 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71964         working.
71965
71966 2004-08-02  Simon Josefsson  <jas@extundo.com>
71967
71968         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71969         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71970         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71971
71972 2004-08-01  Simon Josefsson  <jas@extundo.com>
71973
71974         * lib/xgetdomainname.c: Include stdlib.h, for free().
71975
71976 2004-07-19  Bruno Haible  <bruno@clisp.org>
71977
71978         * MODULES.html.sh (func_all_modules): Add dummy.
71979
71980 2004-07-16  Simon Josefsson  <jas@extundo.com>
71981
71982         * modules/dummy: New file.
71983
71984 2004-07-16  Simon Josefsson  <jas@extundo.com>
71985
71986         * lib/dummy.c: New file.
71987
71988 2004-07-16  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/backupfile.h: Add extern "C" for C++.
71991         * lib/closeout.h: Likewise.
71992         * lib/copy-file.h: Likewise.
71993         * lib/findprog.h: Likewise.
71994         * lib/full-write.h: Likewise.
71995         * lib/pathname.h: Likewise.
71996         * lib/progname.h: Likewise.
71997         * lib/stpcpy.h: Likewise.
71998         * lib/stpncpy.h: Likewise.
71999         * lib/strcase.h: Likewise.
72000         * lib/strstr.h: Likewise.
72001         * lib/xalloc.h: Likewise.
72002
72003         * lib/mbswidth.h: Add extern "C" for C++.
72004         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72005
72006 2004-07-13  Robert Millan  <robertmh@gnu.org>
72007
72008         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72009
72010 2004-07-09  Simon Josefsson  <jas@extundo.com>
72011
72012         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72013         failed without this.)
72014
72015 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * modules/chown (Files): Add lib/fchown-stub.c, since
72018         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72019
72020 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * lib/fchown-stub.c: New file.
72023
72024 2004-06-24  Jim Meyering  <jim@meyering.net>
72025
72026         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72027
72028 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * modules/argz: Omit "#include".
72031
72032         * MODULES.html.sh (func_all_modules): Add calloc, to match
72033         2004-06-01 addition of calloc module.
72034
72035 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         * m4/argz.m4: New file, which is autoupdated from libtool.
72038
72039 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72042         libtool.
72043
72044 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * config/srclist-update: Don't insist on "USA." before the
72047         close-comment, as libtool omits the period and puts the */ on a
72048         separate line.
72049         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72050         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72051
72052 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72053
72054         * modules/argz: New file.
72055         * MODULES.html.sh (func_all_modules): Add argz.
72056
72057 2004-06-12  Jim Meyering  <jim@meyering.net>
72058         and  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * modules/hash (Files): Add lib/xalloc.h.
72061         * modules/pipe (Depends-on): Add wait-process.
72062         * modules/stat (Depends-on): Add xalloc.
72063         * modules/userspec (Files): Add lib/userspec.h.
72064         * modules/xstrto
72065
72066         Upgrade from gettext-0.13.
72067         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72068         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72069         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72070
72071 2004-06-10  Jim Meyering  <jim@meyering.net>
72072
72073         * lib/calloc.c: New file.
72074
72075 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         * lib/getdate.y (yylex): Allow space between sign and number.
72078         Problem reported by Dan Jacobson.
72079
72080 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         Merge from coreutils CVS.
72083
72084         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72085         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72086         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72087         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72088         xstrtol.m4: Fix copyright date and/or serial number.
72089
72090         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72091         See if we need an fchown replacement.
72092         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72093         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72094         and use the replacement function if we detect either defect.
72095
72096         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72097         gl_UTIMECMP.
72098
72099 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72100         and  Jim Meyering  <jim@meyering.net>
72101
72102         Merge from coreutils CVS.
72103
72104         * lib/stat-macros.h: New file, with contents from file-type.h
72105         and coreutils' system.h.
72106         * lib/file-type.c: Include "stat-macros.h".
72107         * lib/file-type.h (file_type): Move all macro definitions to new file,
72108         stat-macros.h.
72109
72110         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72111         Wrap old code with this conditional.
72112         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72113         function that does not dereference symlinks.
72114         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72115
72116         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72117         dependency problems.
72118         (xreadlink): Accept new arg SIZE, for efficiency.
72119         All decls and uses changed.
72120         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72121
72122         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72123         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72124
72125         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72126         sysexits.h.
72127
72128 2004-06-01  Jim Meyering  <jim@meyering.net>
72129
72130         * m4/calloc.m4: New file.
72131
72132 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72135         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72136         Also, fix a typo in a diagnostic.
72137
72138 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72141         or AC_FUNC_REALLOC.
72142
72143 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72144
72145         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72146         macros to be defined.
72147         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72148         the allocator returns NULL because the requested size is zero.
72149
72150 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72153         var.  Add comment explaining why libc still defines it.  This
72154         merges the following patch from glibc:
72155         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72156
72157 2004-05-20  Andreas Schwab  <schwab@suse.de>
72158
72159         * m4/free.m4: Replace free if it not known to work, not the other
72160         way round.
72161
72162 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72165         present in glibc since revision 1.1 of this file.
72166         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72167         obstack_alignment_mask, obstack_alloc, obstack_base,
72168         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72169         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72170         obstack_grow0, obstack_init, obstack_int_grow,
72171         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72172         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72173         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72174         nonexistent functions.
72175
72176 2004-05-18  Karl Berry  <karl@gnu.org>
72177
72178         * config/srclist.txt: break link for vasnprintf.c.
72179
72180 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         Port obstack to the AS/400, where pointers are 16 bytes wide and
72183         you cannot cast an integer to a valid pointer.  This patch is
72184         currently waiting to be integrated into glibc; see
72185         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72186
72187         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72188         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72189         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72190         (struct obstack): temp member is now a union of a pointer and
72191         an integer, instead of an integer.  All integer uses changed.
72192         This does not affect the physical layout of struct obstack,
72193         except on hosts (like the AS/400) where the size or alignment of
72194         void * is greater than that of ptrdiff_t.
72195         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72196         __STDC__)]: Store temporary in pointer member of union, not
72197         integer member.
72198         * lib/obstack.c: Include <stddef.h>, for offsetof.
72199         (struct fooalign): Remove; it doesn't need a name.
72200         (union fooround): Change double to long double, and add void *.
72201         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72202         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72203         not a macro.  Hence the values are always int; so remove all
72204         casts-to-int in uses.
72205
72206 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72209         we can get this patch merged into glibc.
72210
72211 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72212             Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * m4/argp: Depend on alloca.
72215
72216 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72217             Paul Eggert  <eggert@cs.ucla.edu>
72218
72219         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72220         freecoding.
72221
72222 2004-05-17  Bruno Haible  <bruno@clisp.org>
72223
72224         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72225         precision that consists of a '.' followed by an empty digit string.
72226         Patch by Tor Lillqvist <tml@iki.fi>.
72227
72228 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72231         for backward compatibility with older code.  We need our own
72232         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72233         it under some other name, and our alloca.h will define it.
72234
72235 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72236             Derek Price  <derek@ximbiot.com>
72237
72238         * lib/alloca.c: Include <alloca.h>, to get our interface.
72239         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72240         include <alloca.h> first.  Use C89 prototype for alloca; this
72241         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72242         Use #elif for simplicity, since we can assume C89 now.
72243         Don't try to source the system alloca.h since it will not be found
72244         and to prevent recursively including its replacement.
72245         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72246         * lib/regex.c: Likewise.
72247
72248 2004-05-16  Derek Price  <derek@ximbiot.com>
72249             Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         getline cleanup.  This changes the getndelim2 API: both order of
72252         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72253         no delimiter).
72254
72255         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72256         interface does that.
72257         (getline): Always use getdelim, so that we don't have two
72258         copies of this code.
72259         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72260         if available.
72261         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72262         (GETNDELIM2_MAXIMUM): New macro.
72263         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72264         instead of the old practice of delim2==0.  All callers changed.
72265         Return -1 on overflow, instead of returning junk.
72266         Do not set *linesize unless allocation succeeds.
72267         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72268         that we include sys/types.h.
72269         * lib/getnline.h: Likewise.
72270         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72271         (getndelim2): Reorder arguments.
72272         * lib/getnline.c (getnline, getndelim):
72273         Don't discard the NMAX argument.
72274         (getnline): Invoke getndelim, to avoid code duplication.
72275         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72276         of (size_t) -1 by callers of the getnline family.
72277
72278 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72281         Check for gettimeofday.
72282         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72283         Check for settimeofday, stime.
72284
72285 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72286
72287         * lib/nanosleep.c (suspended): Change its type from int to
72288         sig_atomic_t volatile.
72289         (first_call): Make it private to rpl_nanosleep, and have it
72290         be zero initially as that's a bit faster.
72291         (my_usleep): Round up fractional times instead of truncating them,
72292         as this is the usual meaning for 'sleep'.
72293
72294         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72295         doesn't work.
72296         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72297         (ENOSYS): Define if not defined.
72298         (settime): Fall back on stime if it exists and settimeofday fails.
72299         But don't bother with fallbacks if a method fails with errno == EPERM.
72300
72301 2004-05-11  Jim Meyering  <jim@meyering.net>
72302
72303         Prior to this change, the save_cwd caller required read access to the
72304         current directory on most systems (ones with the fchdir function).
72305
72306         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72307         fails, try write-only, and finally, resort to using xgetcwd.
72308
72309 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * lib/obstack.c, obstack.h: Import changes from libc.
72312
72313 2004-04-28  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72316         also implicitly appends .exe to executables.
72317         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72318         accepts Windows pathnames.
72319         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72320         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72321         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72322         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72323         Reported by Derek Robert Price <derek@ximbiot.com>.
72324
72325 2004-04-21  Karl Berry  <karl@gnu.org>
72326
72327         * config/srclist.txt (localcharset.c): break sync.
72328
72329 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72330
72331         * m4/host-os.m4: Add a copyright notice.
72332
72333 2004-04-20  Jim Meyering  <jim@meyering.net>
72334
72335         Change UTILS_ to gl_ in AC_DEFINE'd names.
72336         Change utils_- and jm_-prefixed variables, too.
72337         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72338         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72340
72341         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72342         Don't emit trailing blanks.
72343         Also rename jm_-prefixed variables to have gl_ prefix.
72344
72345         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72346         Also rename jm_-prefixed variables to have gl_ prefix.
72347
72348         * m4/jm-macros.m4: Reflect the renamings.
72349         * m4/prereq.m4: Likewise.
72350
72351 2004-04-20  Jim Meyering  <jim@meyering.net>
72352
72353         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72354         memory.
72355
72356 2004-04-20  Jim Meyering  <jim@meyering.net>
72357             Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72360         memory when realloc fails.
72361
72362 2004-04-19  Jim Meyering  <jim@meyering.net>
72363
72364         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72365         now that readutmp.c may call `free (0)'.
72366
72367 2004-04-19  Bruno Haible  <bruno@clisp.org>
72368
72369         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72370         * m4/inttypes_h.m4: Likewise.
72371         * m4/stdint_h.m4: Likewise.
72372         * m4/intmax_t.m4: Likewise.
72373         * m4/uintmax_t.m4: Likewise.
72374
72375 2004-04-18  Jim Meyering  <jim@meyering.net>
72376
72377         * m4/prereq.m4: Don't forbid jm_ prefix.
72378
72379         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72380         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72381         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72382         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72383         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72384         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72385         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72386         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72387         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72388         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72389         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72390         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72391         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72392         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72393         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72394         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72395         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72396         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72397         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72398
72399 2004-04-18  Jim Meyering  <jim@meyering.net>
72400
72401         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72402         failure, don't leak memory and do call END_UTMP_ENT.
72403
72404 2004-04-16  Jim Meyering  <jim@meyering.net>
72405
72406         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72407         coreutils' stat program.
72408         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72409
72410 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72411
72412         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72413         C89.
72414         (CHAR_BIT): Remove, since we assume C89.
72415         Include <stdint.h> if available, as per current Autoconf CVS advice.
72416
72417 2004-03-31  Jim Meyering  <jim@meyering.net>
72418
72419         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72420         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72421         * m4/xalloc.m4: Likewise.
72422
72423 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72424
72425         Merge from coreutils.
72426
72427         * m4/inttostr.m4: New file.
72428         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72429         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72430         Require gl_CLOCK_TIME.
72431         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72432
72433 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72434
72435         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72436         not bool, to be more consistent with Unix conventions.
72437         Suggested by Bruno Haible.
72438
72439         Merge from coreutils.
72440
72441         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72442         * lib/umaxtostr.c: New files.
72443
72444         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72445         the usual <time.h> dance.
72446         (get_date): Change signature to support fractional time stamps.
72447         All callers changed.
72448         * lib/getdate.y: Include "getdate.h" first, as we can now
72449         assume C89 and don't need to worry about 'const'.
72450         Similarly, include "unlocked-io.h" near start, not in middle.
72451         Include <limits.h>.
72452         (textint.value): Use long int rather than int.
72453         (textint.digits): Use size_t rather than int.
72454         (BILLION, LOG10_BILLION): New constants.
72455         (parser_control): New member rel_ns.  Members day_ordinal,
72456         time_zone, month, day, hour, minutes, rel_year, rel_month,
72457         rel_day, rel_hour, rel_minutes, rel_seconds
72458         are now long int, not int.  Member seconds is now struct timespec,
72459         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72460         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72461         not int.
72462         (%union.intval): Now long int, not int.
72463         New member timespec.
72464         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72465         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72466         (spec): Now is a timespec or an item list.
72467         (timespec, items): New nonterminals.
72468         (time, rel, relunit, number, get_date):
72469         Add support for fractional seconds.
72470         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72471         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72472         (to_hour): First arg is now long int, not int.
72473         (to_year): Returns long int, not int.
72474         Don't treat year -70 like 70.
72475         (tm_diff): Returns long int, not int.
72476         (lookup_word): Use bool instead of int when appropriate.
72477         (yylex): Use size_t for count, not int.
72478         Detect overflow when parsing large integer constants.
72479         Add support for fractions.
72480         (get_date): Make pointers 'const' if possible.
72481         Use more-portable code to detect integer overflow.
72482         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72483         Don't use ctime; it's not reliable if the year has >4 digits.
72484
72485         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72486         This is for compatibility with BSD.
72487
72488         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72489         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72490         From coreutils' system.h.
72491
72492         * lib/userspec.c: Don't include "posixver.h".
72493         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72494         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72495         compatible extension.  Simplify code by removing a boolean int
72496         that was always nonzero if a string was nonnull.
72497
72498 2004-03-30  Jim Meyering  <jim@meyering.net>
72499
72500         Merge from coreutils.
72501
72502         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72503         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72504         on some systems one must include <grp.h> before it.
72505         Reported by Christian Krackowizer.
72506
72507 2004-03-30  Jim Meyering  <jim@meyering.net>
72508
72509         Merge from coreutils.
72510
72511         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72512
72513         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72514         an empty input stream.
72515
72516         * lib/readtokens.c: Include <stdbool.h>.
72517         (readtoken): Use `size_t' rather than int/long.
72518         All callers adjusted.
72519         Use `bool' rather than `int' where appropriate.
72520         Use memset rather than an explicit loop.
72521         Use x2nrealloc rather than xrealloc.
72522         Allow the use of `\0' as a delimiter.
72523         (readtokens): Likewise.
72524         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72525
72526 2004-03-30  Jim Meyering  <jim@meyering.net>
72527
72528         * m4/realloc.m4: Remove file, since now it does no more than
72529         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72530         the `configure.ac' section of module/realloc.
72531         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72532
72533 2004-03-30  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72536         nonnull.
72537
72538 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72539
72540         Merge changes to getloadavg.c from coreutils and Emacs.
72541
72542         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72543         Define to an expression, not to the empty string.
72544         Include cloexec.h and xalloc.h.
72545         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72546         Use set_cloexec_flag rather than rolling our own.
72547         * lib/cloexec.c, lib/cloexec.h: New files.
72548
72549 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72550
72551         * m4/cloexec.m4: New file.
72552
72553 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72554
72555         * lib/getopt.h: Sync with libc CVS.
72556
72557 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72558             Bruno Haible  <bruno@clisp.org>
72559
72560         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72561         mbswidth.
72562
72563 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72564             Bruno Haible  <bruno@clisp.org>
72565
72566         * lib/mbswidth.h: Include <wchar.h> only if
72567         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72568         <wchar.h>.
72569         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72570
72571 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72572
72573         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72574         Sync with libc CVS.
72575         * lib/getopt_int.h: New file, also synced from libc.
72576
72577 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72578
72579         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72580         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72581         Bring back getopt.c, getopt.h, getopt1.c.
72582
72583 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72584
72585         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72586         All uses changed.  Check for sa_sigaction member; this fixes
72587         a bug first reported by Jason Andrade in
72588         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72589
72590 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72591
72592         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72593         '#if' expressions.  Unlike the code it replaces, it does not
72594         depend on (defined _SC_PAGESIZE).  However, it does depend on
72595         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72596         first reported by Jason Andrade in
72597         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72598
72599 2004-02-25  Simon Josefsson  <jas@extundo.com>
72600
72601         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72602
72603 2004-02-25  Simon Josefsson  <jas@extundo.com>
72604
72605         * lib/strdup.h: New file.
72606         * lib/strdup.c: Include it.
72607         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72608         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72609
72610 2004-02-23  Karl Berry  <karl@gnu.org>
72611
72612         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72613         (from fencepost.gnu.org:/gd/gnuorg).
72614
72615 2004-02-23  Karl Berry  <karl@gnu.org>
72616
72617         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72618         * config/srclist.txt: add maintain/standards documents.
72619
72620 2004-02-18  Bruno Haible  <bruno@clisp.org>
72621
72622         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72623         Reported by Derek Robert Price <derek@ximbiot.com>.
72624
72625 2004-02-16  Karl Berry  <karl@gnu.org>
72626
72627         * config/mkinstalldirs, install-sh: update from automake.
72628
72629 2004-02-06  Karl Berry  <karl@gnu.org>
72630
72631         * m4/po.m4: update from gettext 0.14.1.
72632
72633 2004-02-06  Karl Berry  <karl@gnu.org>
72634
72635         * lib/config.charset: update from gettext 0.14.1.
72636
72637 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72638
72639         Add comments and code, prompted by suggestions from Bruno Haible
72640         for sh-quote.
72641         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72642         describing the enum quoting_style values.
72643         * lib/quotearg.c (quotearg_alloc): New function.
72644         (quotearg_buffer_restyled): Treat lone { and } as special.
72645         Treat = as special.  Work around bug with older shells
72646         that "see" a '\' that is really the 2nd byte of a multibyte char.
72647         Quote empty string with shell_quoting_style.
72648
72649 2004-02-03  Bruno Haible  <bruno@clisp.org>
72650
72651         * m4/pipe.m4: New file, from GNU gettext.
72652
72653 2004-02-03  Bruno Haible  <bruno@clisp.org>
72654
72655         * lib/pipe.h: New file, from GNU gettext.
72656         * lib/pipe.c: New file, from GNU gettext.
72657
72658 2004-01-27  Bruno Haible  <bruno@clisp.org>
72659
72660         * m4/execute.m4: New file, from GNU gettext.
72661
72662 2004-01-27  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/execute.h: New file, from GNU gettext.
72665         * lib/execute.c: New file, from GNU gettext.
72666         * lib/w32spawn.h: New file, from GNU gettext.
72667
72668 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72669
72670         Merge from diffutils.
72671
72672         * lib/file-type.c (file_type): Add typed memory objects.
72673         * lib/file-type.h (S_TYPEISTMO): New macro.
72674
72675         * lib/c-stack.h (c_stack_action): Remove argv argument.
72676         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72677         (die): Don't calculate message unless segv_action returns.
72678         (get_stack_location, min_address_from_argv, max_address_from_argv,
72679         volatile stack_base, volatile_stack_size): Remove.
72680         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72681         that every segmentation violation is a stack overflow.  (Ouch!)
72682         See Debian bug 136249 (still outstanding) for more info about why
72683         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72684
72685 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72686
72687         Exit-status fix from coreutils.
72688
72689         Use exit_failure consistently in place of EXIT_FAILURE,
72690         so that program exit statuses are consistent on failure.
72691
72692         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72693         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72694         * lib/argmatch.h: Comment fix to match the above.
72695         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72696         Now a macro referring to exit_failure, instead of a separate
72697         variable.  Include "exitfail.h" to get it.
72698         * lib/xstrtol.h: Include "exitfail.h".
72699         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72700
72701         * lib/long-options.c (parse_long_options): Use prototype
72702         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72703         for clarity.
72704
72705 2004-01-21  Jim Meyering  <jim@meyering.net>
72706
72707         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72708         so as not to conflict with a different-sized __mktime_internal
72709         function in GNU libc.
72710         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72711         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72712
72713 2004-01-20  Karl Berry  <karl@gnu.org>
72714
72715         * config/config.guess: update from config.
72716
72717         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72718
72719 2004-01-20  Bruno Haible  <bruno@clisp.org>
72720
72721         Safer stack allocation.
72722         * lib/setenv.c: Include allocsa.h.
72723         (alloca): Remove fallback definition.
72724         (freea): Remove macro.
72725         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72726         instead of freea.
72727
72728 2004-01-20  Bruno Haible  <bruno@clisp.org>
72729
72730         * m4/eealloc.m4: New file, from GNU gettext.
72731
72732 2004-01-20  Bruno Haible  <bruno@clisp.org>
72733
72734         * m4/allocsa.m4: New file, from GNU gettext.
72735
72736 2004-01-20  Bruno Haible  <bruno@clisp.org>
72737
72738         * lib/xallocsa.h: New file, from GNU gettext.
72739         * lib/xallocsa.c: New file, from GNU gettext.
72740
72741 2004-01-20  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72744
72745 2004-01-20  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72748         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72749         specially.
72750
72751 2004-01-20  Bruno Haible  <bruno@clisp.org>
72752
72753         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72754         patch.
72755
72756 2004-01-20  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72759
72760 2004-01-20  Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/eealloc.h: New file.
72763
72764 2004-01-20  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/binary-io.h: Avoid warnings on Cygwin.
72767
72768 2004-01-20  Bruno Haible  <bruno@clisp.org>
72769
72770         * lib/allocsa.h: New file, from GNU gettext.
72771         * lib/allocsa.c: New file, from GNU gettext.
72772
72773 2004-01-18  Karl Berry  <karl@gnu.org>
72774
72775         * doc/gpl.texi, doc/lgpl.texi: new files.
72776
72777 2004-01-18  Karl Berry  <karl@gnu.org>
72778
72779         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72780         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72781
72782 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72783
72784         Merge from coreutils.
72785
72786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72787         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72788         (gl_DEFAULT_POSIX2_VERSION): Move
72789         the documentation from 'configure' into 'config.hin',
72790         so that 'configure --help' isn't burdened by it and
72791         we don't have to worry about its formatting there.
72792         Reword the documentation so that it's more succinct
72793         and can be run together into a single paragraph.
72794         * m4/same.m4 (gl_SAME): Check for pathconf.
72795
72796 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72797
72798         Merge from coreutils.
72799
72800         * lib/posixver.c: Include posixver.h.
72801
72802         * lib/same.c: Include <stdbool.h>, <limits.h>.
72803         (_POSIX_NAME_MAX): Define if not defined.
72804         (MIN): New macro.
72805         (same_name): If file names are silently truncated, report
72806         that the file names are the same if they are the same after
72807         the silent truncation.
72808
72809         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72810         conversion function.
72811         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72812         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72813         longer needed.
72814
72815 2004-01-15  Jim Meyering  <jim@meyering.net>
72816
72817         Merge from coreutils.
72818
72819         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72820         if no library is required.
72821         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72822         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72823         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72824         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72825         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72826         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72827         value, $ac_cv_search_crypt, if it's "none required".
72828         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72829         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72830         not gl_FUNC_GETLOADAVG.
72831         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72832         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72833
72834 2004-01-15  Jim Meyering  <jim@meyering.net>
72835
72836         Merge from coreutils.
72837
72838         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72839         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72840         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72841
72842         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72843         optional configure-time default.
72844
72845         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72846
72847         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72848
72849 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72850
72851         Merge from coreutils.
72852
72853         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72854         value, $ac_cv_search_nanosleep, if it's "none required".
72855
72856 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72857
72858         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72859         with like-named macro in fnmatch.c.
72860         (EXT): Use an internal constant instead.
72861
72862         Merge fnmatch patches from glibc.
72863         * lib/fnmatch.c (mbsinit): Remove define.
72864         Add libc_hidden_ver (__fnmatch, fnmatch).
72865         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72866         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72867
72868 2004-01-14  Karl Berry  <karl@gnu.org>
72869
72870         * config/install-sh: update from automake.
72871
72872 2004-01-13  Karl Berry  <karl@gnu.org>
72873
72874         * config/install-sh: update from automake.
72875
72876 2004-01-09  Karl Berry  <karl@gnu.org>
72877
72878         * config/install-sh: update from automake.
72879
72880 2004-01-05  Karl Berry  <karl@gnu.org>
72881
72882         * config/config.{sub,guess}: update from config.
72883
72884 2003-12-31  Karl Berry  <karl@gnu.org>
72885
72886         * config/depcomp: update from automake.
72887
72888 2003-12-14  Karl Berry  <karl@gnu.org>
72889
72890         * lib/config.charset: update from gettext-runtime.
72891
72892 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72893
72894         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72895         Bug reported by Alfred M. Szmidt.
72896
72897 2003-12-03  Bruno Haible  <bruno@clisp.org>
72898
72899         * m4/gettext.m4: Upgrade from gettext-0.13.
72900         * m4/po.m4: Upgrade from gettext-0.13.
72901         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72902         * m4/intmax.m4: New file, from gettext-0.13.
72903         * m4/printf-posix.m4: New file, from gettext-0.13.
72904
72905 2003-11-29  Karl Berry  <karl@gnu.org>
72906
72907         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72908
72909 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72910             Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/printf-parse.h: Don't include sys/types.h.
72913         (ARG_NONE): New macro.
72914         (char_directive): Change type of *arg_index fields to size_t.
72915         * lib/printf-parse.c: Don't include sys/types.h.
72916         (SSIZE_MAX): Remove macro.
72917         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72918         Remove unnecessary overflow check.
72919         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72920         fields.
72921
72922 2003-11-25  Bruno Haible  <bruno@clisp.org>
72923
72924         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72925
72926 2003-11-25  Bruno Haible  <bruno@clisp.org>
72927
72928         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72929         gt_TYPE_SSIZE_T.
72930
72931 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72932
72933         * modules/alloca: Remove dependency on xalloc.
72934
72935 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72936
72937         * lib/alloca.c: Remove dependency on xalloc module.
72938         (xalloc_die): Remove.
72939         (memory_full) [!defined emacs]: New macro.
72940         [!defined emacs]: Don't include xalloc.h.
72941         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72942         address arithmetic overflows.  Change datatypes a bit to avoid
72943         unnecessary casts.
72944
72945 2003-11-22  Jim Meyering  <jim@meyering.net>
72946
72947         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72948         s/size/size_t/.
72949
72950 2003-11-21  Karl Berry  <karl@gnu.org>
72951
72952         * config/config.{sub,guess}: update from config.
72953
72954 2003-11-18  Karl Berry  <karl@gnu.org>
72955
72956         * config/config.{sub,guess}: update from config.
72957
72958         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72959
72960 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72961
72962         * README: Mention that S+T cannot overflow if S is the size of
72963         an existing object and T is sufficiently small.
72964
72965 2003-11-17  Jim Meyering  <jim@meyering.net>
72966
72967         On systems without utime and without a utimes function capable of
72968         dealing with a NULL struct utimbuf* argument, this utime replacement
72969         could -- in unusual circumstances -- leak a file descriptor.
72970         * lib/utime.c: Include <unistd.h> and <errno.h>.
72971         (utime_null): Be sure to close `fd' and to preserve errno.
72972         Reported by Geoff Collyer via Arnold Robbins.
72973
72974 2003-11-17  Bruno Haible  <bruno@clisp.org>
72975
72976         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72977         (Depends-on): Add xsize.
72978
72979 2003-11-17  Bruno Haible  <bruno@clisp.org>
72980
72981         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72982
72983 2003-11-17  Bruno Haible  <bruno@clisp.org>
72984
72985         * lib/vasnprintf.c (alloca): Remove fallback definition.
72986         (freea): Remove definition.
72987         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72988         Reported by Paul Eggert.
72989
72990 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72991             Bruno Haible  <bruno@clisp.org>
72992
72993         Protect against address arithmetic overflow.
72994         * lib/printf-args.h: Include stddef.h.
72995         (arguments): Change type of field 'count' to size_t.
72996         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72997         'unsigned int' where appropriate.
72998         * lib/printf-parse.h: Include sys/types.h.
72999         (char_directive): Change type of *arg_index fields to ssize_t.
73000         (char_directives): Change type of fields 'count', max_*_length to
73001         size_t.
73002         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73003         (SSIZE_MAX): Define fallback value.
73004         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73005         instead of 'int' where appropriate. Check a_allocated, d_allocated
73006         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73007         * lib/vasnprintf.c: Include xsize.h.
73008         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73009         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73010         overflow. Avoid wraparound when converting a width or precision from
73011         decimal to binary.
73012
73013 2003-11-16  Bruno Haible  <bruno@clisp.org>
73014
73015         Update from GNU gettext.
73016         * lib/printf-parse.c: Generalize to it can be compiled for wide
73017         strings.
73018         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73019         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73020         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73021         SNPRINTF): New macros.
73022         Don't include <alloca.h> if the file is used inside libintl.
73023         (local_wcslen): New function, for Solaris 2.5.1.
73024         (VASNPRINTF): Use it instead of wcslen.
73025
73026 2003-11-16  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/xsize.h (xmax): New function.
73029         (xsum, xsum3, xsum4): Declare as "pure" functions.
73030
73031 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73032
73033         * modules/xalloc (Files): Undo latest change, since xalloc.h
73034         no longer needs SIZE_MAX or PTRDIFF_MAX.
73035
73036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73037
73038         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73039         gl_PTRDIFF_MAX.
73040
73041 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73042
73043         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73044         "return", to pacify some unknown compiler.  Problem reported
73045         by Joerg Schilling.
73046
73047 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73048
73049         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73050         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73051         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73052         heuristic is just as accurate as far as we know, and it removes a
73053         dependency on size_max.m4 and ptrdiff_max.m4.
73054
73055 2003-11-11  Bruno Haible  <bruno@clisp.org>
73056
73057         * modules/xsize (Files): Add m4/size_max.m4.
73058         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73059
73060 2003-11-11  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/size_max.m4: New file.
73063         * m4/ptrdiff_max.m4: New file.
73064         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73065         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73066         (gl_XALLOC): Invoke it.
73067
73068 2003-11-11  Bruno Haible  <bruno@clisp.org>
73069
73070         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73071         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73072         defined.
73073
73074 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73075
73076         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73077         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73078         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73079         From Bruno Haible.
73080         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73081         not (size_t) -1, since it's defined here.
73082
73083 2003-11-09  Karl Berry  <karl@gnu.org>
73084
73085         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73086
73087 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73088
73089         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73090         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73091         Reject sizes of exactly SIZE_MAX bytes.
73092         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73093         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73094
73095 2003-11-05  Bruno Haible  <bruno@clisp.org>
73096
73097         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73098         SIZE_MAX defined in <limits.h> on Solaris.
73099
73100 2003-11-04  Jim Meyering  <jim@meyering.net>
73101
73102         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73103         variable names, rather than @VAR@.
73104         * modules/poll: Likewise.
73105
73106 2003-11-04  Bruno Haible  <bruno@clisp.org>
73107
73108         * modules/xsize: New file.
73109         * modules/linebreak: Depend on xsize.
73110         * MODULES.html.sh (func_all_modules): Add xsize.
73111
73112 2003-11-04  Bruno Haible  <bruno@clisp.org>
73113
73114         * m4/xsize.m4: New file.
73115
73116 2003-11-04  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/xsize.h: New file.
73119         * lib/linebreak.c: Include xsize.h.
73120         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73121         argument for overflow.
73122         Suggested by Paul Eggert.
73123
73124 2003-11-03  Karl Berry  <karl@gnu.org>
73125
73126         * config/config.{guess,sub}: update from config.
73127
73128 2003-11-03  Jim Meyering  <jim@meyering.net>
73129
73130         * modules/userspec (lib_SOURCES): Add userspec.h.
73131         (Include): Add "userspec.h".
73132         Improve description.
73133
73134 2003-11-03  Jim Meyering  <jim@meyering.net>
73135
73136         * lib/userspec.c: Include "userspec.h".
73137         * lib/userspec.h: New file.
73138
73139 2003-11-03  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73142
73143 2003-11-03  Bruno Haible  <bruno@clisp.org>
73144
73145         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73146         available, to avoid (extremely rare) race condition.
73147         Suggested by Paul Eggert.
73148
73149 2003-11-02  Karl Berry  <karl@gnu.org>
73150
73151         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73152
73153 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73154
73155         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73156         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73157         (read_filesystem_list): Set and use me_type_malloced.
73158         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73159         whatever the type happens to be), for brevity and consistency.
73160         Check for size calculation overflow on Alphas running OSF/1.
73161
73162 2003-10-31  Jim Meyering  <jim@meyering.net>
73163
73164         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73165
73166         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73167
73168 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73169             Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73172         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73173
73174 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73177         netbsd*-gnu*.  Suggested by Robert Millan.
73178
73179 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73180
73181         * modules/group-member: Depend on stdbool.
73182
73183 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73184
73185         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73186
73187 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73188
73189         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73190         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73191         after the 'gnu' in these cases.  This fixes some bugs in the
73192         previous change, and is based on suggestions by Robert Millan.
73193
73194 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73195
73196         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73197         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73198         no longer needed.
73199         * lib/quotearg.c (quotearg_n_options): Use it.
73200         * lib/group-member.c: Include <stdbool.h>.
73201         (free_group_info): Arg is now const *; don't free arg.
73202         (get_group_info): Now returns bool and accepts struct group_info *,
73203         rather than returning a malloc'ed struct group_info *.
73204         All uses changed.  Check for overflow in internal size calculation.
73205
73206         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73207         rather than xmalloc/xrealloc.
73208         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73209         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73210         conformance bug: the old code used a pointer after freeing the
73211         storage that it addressed.
73212         * lib/hash.c (hash_initialize): Simplify the code by using
73213         xalloc_oversized rather than doing it by hand.
73214         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73215         the buffer preserved.  Use free and xmalloc instead.
73216         * lib/quotearg.c (quotearg_n_options): Likewise.
73217         Use a simpler test for size overflow.  Don't use xalloc_oversized
73218         because unsigned int might be wider than size_t (!); this suggests
73219         that we should switch from unsigned int to size_t for slot numbers.
73220
73221 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73222
73223         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73224         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73225         NetBSD kernels.  Requested by Richard Stallman.
73226
73227 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73228
73229         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73230         to allocate the returned structure.  Do not allocate a subarray,
73231         as x2nrealloc will do that.
73232         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73233         instead of xnrealloc.
73234         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73235
73236 2003-10-27  Bruno Haible  <bruno@clisp.org>
73237
73238         * lib/stdbool_.h: Better support for BeOS.
73239
73240 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73241
73242         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73243         now uses inline.
73244
73245 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73246
73247         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73248         callers that want to do their own size-overflow checking.  Include
73249         <stdbool.h>, since xalloc_oversized returns bool.
73250         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73251         to use xalloc_oversized.
73252
73253         Add two functions x2realloc, x2nrealloc, for programs that grow
73254         arrays dynamically by doubling their sizes.
73255         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73256         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73257         New functions.
73258
73259         Port to C99 semantics for 'inline' of external functions.
73260         Bug reported by Bruno Haible.
73261         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73262         with the old contents of xnmalloc.
73263         (xnmalloc, xmalloc): Use it.
73264         (xnrealloc_inline): New static inline function,
73265         with the old contents of xnrealloc.
73266         (xnrealloc, xrealloc): Use it.
73267
73268         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73269         that.
73270
73271 2003-10-26  Karl Berry  <karl@gnu.org>
73272
73273         * config/srclist.txt (COPYING.DOC): no longer available from
73274         /gd/gnuorg; don't know where the ultimate source is.
73275
73276 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73277
73278         Fix several address-calculation bugs in the hash modules,
73279         plus some minor code cleanup.
73280
73281         * lib/hash.h: Include <stdbool.h>, for bool.
73282         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73283         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73284         hash_get_n_entries, hash_get_max_bucket_length,
73285         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73286         hash_rehash): Use size_t rather than unsigned.
73287         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73288         hash_get_n_buckets_used, hash_get_n_entries,
73289         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73290         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73291         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73292         Likewise.
73293         (SIZE_MAX): Define if not defined.
73294         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73295         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73296         hash_print):
73297         Use const * when possible.
73298         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73299         (check_tuning): Fix bug: if tuning parameters were very close to
73300         0 or 1, rounding errors could have caused subscript violations.
73301         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73302         (hash_initialize): Add 'fail:' label
73303         to free table and return NULL, and use it to simplify code.
73304         Use calloc rather than clearing the storage ourself.
73305         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73306         buffer size calculations.
73307         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73308         Include <stddef.h>, for size_t.
73309         * lib/hash-pjw.c (hash_pjw): Likewise.
73310         Switch to method described by Bruno Haible.
73311         Include <limits.h>, for CHAR_BIT.
73312         (SIZE_BITS): New macro.
73313
73314 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73315
73316         * m4/getline.m4 (AM_FUNC_GETLINE):
73317         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73318         hosts.  Problem reported by Derek Robert Price in
73319         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73320         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73321         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73322
73323 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73324
73325         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73326         ceiling the allocation at NMAX bytes rather than silently
73327         discarding input bytes before NMAX is reached.  This makes
73328         a difference only if NMAX exceeds SIZE_MAX / 2.
73329
73330         * lib/obstack.c: Merge from glibc.
73331         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73332         Add libc_hidden_def (_obstack_newchunk).
73333         (_obstack_free) [! defined _LIBC]: Remove.
73334         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73335         a clone of the function body.
73336         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73337         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73338
73339         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73340         glibc.
73341         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73342         arg to memcpy.
73343
73344         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73345         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73346         Don't use lvalue casts, as GCC plans to remove support for them
73347         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73348         was also present in the non-GCC version, indicating that this
73349         code had always been buggy and had never been widely used.
73350         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73351         Use the fast variant of each macro, rather than copying the
73352         definiens of the fast variant; that way, we'll be more likely to
73353         catch future bugs in the fast variants.
73354
73355 2003-10-20  Bruno Haible  <bruno@clisp.org>
73356
73357         * modules/wait-process: New file.
73358         * MODULES.html.sh (func_all_modules): Add wait-process.
73359
73360 2003-10-20  Bruno Haible  <bruno@clisp.org>
73361
73362         * m4/wait-process.m4: New file.
73363
73364 2003-10-20  Bruno Haible  <bruno@clisp.org>
73365
73366         * lib/wait-process.h: New file, from GNU gettext.
73367         * lib/wait-process.c: New file, from GNU gettext.
73368
73369 2003-10-19  Jim Meyering  <jim@meyering.net>
73370
73371         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73372         HPUX 10.20.
73373
73374 2003-10-18  Karl Berry  <karl@gnu.org>
73375
73376         * config/config.guess: update from config.
73377
73378 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73379
73380         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73381         (getgroups): First arg is int, not size_t.
73382         Don't let 'free' mangle errno.
73383
73384 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73385
73386         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73387
73388 2003-10-16  Karl Berry  <karl@gnu.org>
73389
73390         * config/config.{guess,sub}: update from config.
73391
73392 2003-10-16  Jim Meyering  <jim@meyering.net>
73393
73394         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73395         memcpy.
73396
73397 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73398
73399         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73400         (SIZE_MAX): Remove.
73401         (new_exclude, add_exclude_file): Initial size no longer needs to
73402         be a power of 2.
73403         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73404         our own address arithmetic overflow checking.
73405
73406         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73407         (fnmatch): Do not alloca more than 2000 wide characters;
73408         instead, use malloc for large buffers.
73409         Check for address arithmetic overflow, and return -1
73410         with errno set to ENOMEM in that case.
73411         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73412         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73413         instead, return -1.  Check for address arithmetic overflow.
73414
73415 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73416
73417         Handle invalid suffixes and overflow independently, so that
73418         callers can treat them independently as needed.  Fix some bugs in
73419         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73420         suffix for a human-readable blocksize.  The major caller-visible
73421         change is the addition of a new
73422         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73423         that both overflow and suffix chars were found.
73424
73425         * lib/human.c (humblock): Don't check separately for invalid suffix
73426         char; that is xstrtoumax's job (now that its bug is fixed).
73427         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73428         INTMAX_MAX]: New macros.
73429         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73430         TYPE_MAXIMUM): New macros.
73431         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73432         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73433         if overflow occurs, as it's what __strtol does and it's more useful
73434         in practice.
73435         (__xstrtol): If __strtol reports some error other than ERANGE,
73436         reflect it to the caller as LONGINT_INVALID.  If it reports
73437         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73438         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73439         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73440         value.
73441         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73442         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73443         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73444         [defined UINTMAX_MAX]: New macros.
73445
73446 2003-10-14  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73449
73450 2003-10-14  Bruno Haible  <bruno@clisp.org>
73451
73452         * m4/sig_atomic_t: New file, from GNU gettext.
73453         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73454
73455 2003-10-14  Bruno Haible  <bruno@clisp.org>
73456
73457         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73458         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73459         Also use volatile where needed.
73460
73461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73462
73463         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73464         Change maintainer from Bruno Haible to 'all'.
73465
73466 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73467
73468         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73469
73470 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73471
73472         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73473         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73474         and define in terms of the other primitives.
73475         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73476         (SIZE_MAX): Define if not already defined.
73477         (array_size_overflow): New function.
73478         (xalloc_die): Abort instead of exiting if 'error' returns.
73479         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73480         (xmalloc, xrealloc): Use them.
73481         (xcalloc): Check for address arithmetic overflow.
73482         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73483         a bit faster than strcpy.
73484
73485 2003-10-10  Simon Josefsson  <jas@extundo.com>
73486
73487         * modules/argp (Depends-on): Add restrict and strcase.
73488
73489 2003-10-10  Simon Josefsson  <jas@extundo.com>
73490
73491         * m4/argp.m4: Add AC_C_INLINE.
73492
73493 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73494
73495         Merge getpass from libc, plus a few fixes.
73496
73497         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73498         Include <stdbool.h>.
73499         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73500         __fsetlocking to empty.
73501         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73502         do include <bits/libc-lock.h>.
73503         Do not include <fcntl.h>; not needed.
73504         [_LIBC]: Include <wchar.h>.
73505         (NOTCANCEL_MODE): New macro.
73506         (flockfile, funlockfile) [_LIBC]: New macros.
73507         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73508         [!_LIBC]: New macros.
73509         (call_fclose): New function.
73510         (getpass): Use it.  Save tty stream separately; this simplifies the
73511         code and makes it more reliable if stdin happens to equal stdout.
73512         Invoke __fsetlocking on tty.
73513         Handle thread cancellation if needed.
73514         Namespace cleanup (use __tcgetattr, __getline).
73515         Use bool for Booleans.
73516         [USE_IN_LIBIO]: Handle wide streams.
73517         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73518         stream might go where.
73519
73520         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73521         doesn't have to include <stdio.h> before us.
73522         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73523         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73524         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73525         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73526         if not declared, so that we can use getpass.c code from libc without
73527         rewriting it.
73528         (flockfile, ftrylockfile, funlockfile): New macros.
73529
73530 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73531
73532         * modules/getpass: Depend on stdbool.
73533
73534 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73535
73536         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73537
73538 2003-10-07  Karl Berry  <karl@gnu.org>
73539
73540         * config/config.{guess,sub}: update from config.
73541
73542 2003-10-06  Jim Meyering  <jim@meyering.net>
73543             Bruno Haible  <bruno@clisp.org>
73544
73545         This lets translators provide better translations for the
73546         "Written by ..." part of --version output.
73547         * lib/version-etc.h: Include stdarg.h.
73548         (version_etc_copyright): Declare as readonly.
73549         (version_etc): Make this function variadic with a NULL-terminated list
73550         of author name strings.
73551         (version_etc_va): New declaration.
73552         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73553         (version_etc_copyright): Declare as readonly.
73554         (version_etc_va): New function. Provide a different translatable string
73555         for each possible number of authors < 10. Abbreviate when there are 10
73556         authors or more.
73557         (version_etc): Make this function variadic. Call version_etc_va.
73558         Suggestion from Gary V. Vaughan.
73559
73560         * lib/long-options.h (parse_long_options): Change prototype: the
73561         authors string is moved to the end and becomes variadic.
73562         * lib/long-options.c: Include stdarg.h.
73563         (parse_long_options): Make this function variadic, too.
73564         Call version_etc_va, not version_etc.
73565
73566 2003-10-06  Bruno Haible  <bruno@clisp.org>
73567
73568         * modules/version-etc-2: Remove file.
73569         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73570
73571 2003-10-06  Bruno Haible  <bruno@clisp.org>
73572
73573         * modules/fatal-signal: New file.
73574         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73575
73576 2003-10-06  Bruno Haible  <bruno@clisp.org>
73577
73578         * m4/fatal-signal.m4: New file.
73579         * m4/signalblocking.m4: New file, from GNU gettext.
73580
73581 2003-10-06  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/version-etc-2.h: Remove file.
73584         * lib/version-etc-2.c: Remove file.
73585
73586 2003-10-06  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/fatal-signal.h: New file, from GNU gettext.
73589         * lib/fatal-signal.c: New file, from GNU gettext.
73590
73591 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73592
73593         * README: Rework advice for preventing empty .o files.
73594         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73595         not <sys/types.h>.
73596
73597 2003-10-04  Karl Berry  <karl@gnu.org>
73598
73599         * lib/argp*: update from libc.
73600
73601 2003-10-04  Karl Berry  <karl@gnu.org>
73602
73603         * config/config.{guess,sub}: update from config.
73604
73605 2003-10-02  Bruno Haible  <bruno@clisp.org>
73606
73607         * modules/lchown (Include): Add lchown.h.
73608         * modules/time_r (Include): Use "..." syntax.
73609         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73610
73611 2003-10-01  Simon Josefsson  <jas@extundo.com>
73612
73613         * MODULES.html.sh (func_all_modules): Move gethostname from section
73614         'based on' to section 'lacking' POSIX:2001.
73615
73616 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73617
73618         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73619         to output mode on the same stream.
73620
73621 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73622
73623         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73624         Fix arg typo in previous patch.
73625
73626 2003-09-28  Jim Meyering  <jim@meyering.net>
73627
73628         * lib/error.c: Correct cpp indentation.
73629
73630 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73631
73632         * modules/free: New file.
73633
73634 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73635
73636         * m4/free.m4: New file.
73637
73638 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73639
73640         * lib/minmax.h (MIN, MAX)
73641         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73642         Omit the special code that used __typeof__, since we worry that
73643         it could be more trouble than it's worth.  See:
73644         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73645         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73646
73647         * lib/free.c: New file.
73648
73649 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73650
73651         Trivial fixes to Makefile.am parts of module listings.
73652         * modules/strstr: Append strstr.h to lib_SOURCES.
73653         * modules/strcase: Likewise, for strcase.h.
73654
73655 2003-09-27  Karl Berry  <karl@gnu.org>
73656
73657         * config/mkinstalldirs: update from automake.
73658
73659 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73660
73661         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73662         (error_tail): Do not loop, reallocating temporary buffer, since
73663         the output cannot contain more wide characters than the input
73664         contains bytes, the size must be big enough already.  This avoids
73665         one potential size overflow calculation.  Check for size overflow
73666         when calculating temporary buffer size.  Free temporary buffer
73667         when done, if it was allocated with malloc; this plugs a memory
73668         leak.  Remove casts from void * to pointers, that are no longer
73669         needed now that we're assuming C89 or better.
73670
73671         Merge error changes from glibc.
73672
73673         * lib/error.c, error.h: Update copyright notice header to match glibc.
73674         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73675         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73676         Disable cancellation while printing error.
73677         * lib/error.h: Prepend __ to parameter names.
73678
73679 2003-09-26  Jim Meyering  <jim@meyering.net>
73680
73681         * lib/error.c (error_tail): Move some declarations
73682         into inner scope where the local variables are used.
73683
73684 2003-09-26  Bruno Haible  <bruno@clisp.org>
73685
73686         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73687         stpncpy().
73688         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73689
73690 2003-09-26  Bruno Haible  <bruno@clisp.org>
73691
73692         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73693         (stpncpy): Define as alias for gnu_stpncpy.
73694         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73695
73696 2003-09-25  Simon Josefsson  <jas@extundo.com>
73697
73698         * lib/xgetdomainname.h: New file.
73699         * lib/xgetdomainname.c: New file.
73700
73701 2003-09-25  Simon Josefsson  <jas@extundo.com>
73702             Bruno Haible  <bruno@clisp.org>
73703
73704         * modules/getdomainname: New file.
73705         * modules/xgetdomainname: New file.
73706         * MODULES.html.sh (func_all_modules): Add getdomainname,
73707         xgetdomainname.
73708
73709 2003-09-25  Simon Josefsson  <jas@extundo.com>
73710             Bruno Haible  <bruno@clisp.org>
73711
73712         * m4/getdomainname.m4: New file.
73713
73714 2003-09-25  Simon Josefsson  <jas@extundo.com>
73715             Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/getdomainname.h: New file.
73718         * lib/getdomainname.c: New file.
73719
73720 2003-09-25  Karl Berry  <karl@gnu.org>
73721
73722         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73723
73724 2003-09-25  Karl Berry  <karl@gnu.org>
73725
73726         * config/install-sh: update from automake.
73727
73728 2003-09-25  Bruno Haible  <bruno@clisp.org>
73729
73730         * modules/version-etc-2: New file, from modules/version-etc with
73731         modifications.
73732         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73733
73734 2003-09-25  Bruno Haible  <bruno@clisp.org>
73735
73736         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73737         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73738
73739 2003-09-24  Simon Josefsson  <jas@extundo.com>
73740
73741         * modules/xgethostname: Add xgethostname.h.
73742
73743 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73744
73745         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73746         the buffer associated with the argument.  Bug reported by
73747         Simon Josefsson.
73748
73749 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73750
73751         * README: Document assumptions that 'int' is at least 32 bits
73752         wide, that integer arithmetic is 2's complement without overflow,
73753         that there are no holes in integer values, that adding sizes of
73754         two nonoverlapping objects can't overflow, and that all-bits-zero
73755         yields scalar zero.  Fix spelling and capitalization typos.
73756
73757 2003-09-19  Karl Berry  <karl@gnu.org>
73758
73759         * lib/argp.h: update from libc.
73760
73761 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73762
73763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73764         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73765         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73766
73767 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73768
73769         * gnulib-tool: Use "test -h", not "test -L", for portability
73770         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73771         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73772         (sed_extract_prog): Issue s commands one-by-one, rather than
73773         using \| in one s command.
73774
73775 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73776
73777         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73778         input error, instead of returning NULL the next time we are called
73779         (and therefore losing track of errno).
73780
73781 2003-09-16  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool (func_create_testdir): Warn about duplicated
73784         dependencies.
73785
73786 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73787
73788         * modules/argmatch, modules/fatal, modules/obstack,
73789         modules/xalloc, modules/xgethostname: Sort dependencies by
73790         importance, not alphabetically.
73791
73792 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73793
73794         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73795         fails, so that the caller gets the proper errno.
73796
73797         * lib/readutmp.c (read_utmp): Likewise.
73798         Check for fstat error.  Close stream and free storage
73799         when failing.
73800
73801 2003-09-14  Karl Berry  <karl@gnu.org>
73802
73803         * config/srclist.txt (strdup.c): disable for c89 changes.
73804
73805 2003-09-14  Jim Meyering  <jim@meyering.net>
73806
73807         * lib/getloadavg.c: Correct cpp indentation.
73808         * lib/strdup.c: Likewise.
73809         * lib/vasnprintf.c: Likewise.
73810
73811 2003-09-14  Bruno Haible  <bruno@clisp.org>
73812
73813         * modules/fwriteerror: New file.
73814         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73815
73816 2003-09-14  Bruno Haible  <bruno@clisp.org>
73817
73818         * lib/fwriteerror.h: New file.
73819         * lib/fwriteerror.c: New file.
73820
73821 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73822
73823         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73824         modules/xgethostname, modules/xalloc: Depend on exit.
73825
73826 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73827
73828         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73829
73830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73831         and AC_MINIX, too, so that their extensions are available.
73832
73833         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73834         This macro has been superseded by gl_BACKUPFILE.
73835
73836         More patches to assume C89 or better.
73837
73838         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73839
73840         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73841         unconditionally.
73842         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73844         Include <string.h>, <stdlib.h> unconditionally.
73845         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73846         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73847         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73848         headers or for string.h.
73849         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73850         or strtoul.
73851
73852         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73853         headers.
73854         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73855         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73856         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73857         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73859         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73860         memcpy, memset.
73861         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73862         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73863         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73864         strtol.
73865         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73866         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73867         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73868         strtoul.
73869
73870 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73871
73872         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73873         * lib/obstack.c [!defined _LIBC]: Likewise.
73874         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73875         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73876         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73877
73878         More changes to assume C89 or better.
73879
73880         * lib/error.c (error_tail): Assume vprintf.
73881
73882         * lib/argmatch.c (getenv): Remove decl.
73883         * lib/progreloc.c (get_full_program_name): Define via prototype.
73884         * lib/setenv.c (clearenv): Likewise.
73885         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73886         needed.
73887         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73888         (malloc, memcpy): Remove decls.
73889         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73890         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73891         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73892         (memcpy): Remove macro.
73893         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73894         (__P): Remove.  All uses removed.
73895         (PTR): Remove.  All uses changed to void *.
73896         (CHAR_BIT, NULL): Remove.
73897         (spaces, zeros, memset_space, memset_zero)
73898         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73899         Remove.
73900         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73901         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73902         Define with prototype.
73903         Remove now-unnecessary prototype decl.
73904         (extra_args_spec): Assume ANSI C.  All uses changed.
73905         (extra_args_spec_iso): Remove.
73906         (my_strftime, emacs_strftimeu): Define via prototype.
73907         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73908         unconditionally.
73909         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73910         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73911         (strtoul, strtol): Remove decls.
73912         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73913         LONG_MAX): Remove.
73914         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73915         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73916         (LOCALE_PARAM_PROTO): New macro.
73917         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73918         (INTERNAL (strtol), strtol): Define with a prototype.
73919         (PARAMS): Remove.  All uses removed.
73920         * lib/tempname.c: Include <string.h> unconditionally.
73921         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73922         * lib/xgethostname.c (main): Define with a prototype.
73923         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73924         Include <stdlib.h> unconditionally.
73925         (calloc, malloc, realloc, free): Remove decls.
73926         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73927         Include <stdlib.h> unconditionally.  Sort include file names.
73928         (strtod): Remove.
73929         (xstrtod): Define with a prototype.
73930         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73931         (strtol, strtoul): Remove decls.
73932
73933 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73934
73935         More patches to assume C89 or better.
73936         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73937         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73938         string.h, memchr, STDC_HEADERS.
73939
73940 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73941
73942         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73943         Include <stdlib.h>, <string.h> unconditionally.
73944         Remove now-unnecessary cast to char *.
73945         * lib/strnlen.c: Include <string.h> unconditionally.
73946         * lib/yesno.c (yesno): Define with a prototype.
73947
73948 2003-09-11  Bruno Haible  <bruno@clisp.org>
73949
73950         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73951
73952 2003-09-10  Jim Meyering  <jim@meyering.net>
73953
73954         * lib/error.c: Correct indentation of cpp directives.
73955
73956 2003-09-10  Bruno Haible  <bruno@clisp.org>
73957
73958         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73959         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73960         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73961         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73962         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73963         <stdlib.h> and <string.h> checks.
73964         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73965         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73966
73967 2003-09-10  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/strcspn.c: Include <string.h> unconditionally.
73970         * lib/strpbrk.c: Include <string.h> unconditionally.
73971         * lib/strstr.c: Include <string.h> unconditionally.
73972         * lib/unicodeio.c: Include <string.h> unconditionally.
73973         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73974         * lib/unsetenv.c: Likewise.
73975         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73976         * lib/yesno.c: Include <stdlib.h> unconditionally.
73977         (rpmatch): Add prototype.
73978
73979 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73980
73981         More patches to assume C89 or better.
73982         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73983         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73984         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73985         or for string.h.
73986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73987         stdlib.h.
73988         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73989         C headers.
73990         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73991         string.h.
73992         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73993         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73994         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73995         or for string.h.
73996         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73997         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73998         C headers.
73999         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74000         memcpy.
74001         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74002         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74003         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74004         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74005         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74006         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74007         string.h, free.
74008         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74009         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74010         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74011         C headers, or for string.h.
74012         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74013         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74014         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74015         headers, memory.h, stdlib.h, string.h, strings.h.
74016         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74017         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74018         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74019         strchr.
74020         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74021         headers, memory.h, string.h.
74022         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74023         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74024         free.
74025         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74026         headers.
74027         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74028         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74029         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74030         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74031         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74032
74033 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74034
74035         More K&R removal.
74036
74037         * lib/acosl.c (main): Use a prototype.
74038         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74039         tanl.c: Likewise.
74040
74041         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74042
74043         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74044         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74045         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74046         with a prototype.
74047         * lib/getopt.c (const): Remove macro.
74048         Include <string.h> unconditionally.
74049         (my_index): Remove; all uses changed to strchr.
74050         (strlen): Remove decl.
74051         (exchange): Remove forward decl; no longer needed.
74052         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74053         Define with prototype.
74054         * lib/getopt1.c (const): Remove macro.
74055         (getopt_long, getopt_long_only, main): Define with prototype.
74056
74057         * lib/getugroups.c: Include <string.h> unconditionally.
74058
74059         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74060         (getusershell, setusershell, endusershell, readname, main):
74061         Define with prototypes.
74062
74063         * lib/group-member.c: Include group-member.h first.
74064         Include <stdlib.h> unconditionally.
74065
74066         * lib/hard-locale.c: Include hard-locale.h first.
74067         Include <stdlib.h>, <string.h> unconditionally.
74068
74069         * lib/hash.c (free, malloc): Remove decls.
74070         Include <stdlib.h> unconditionally.
74071
74072         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74073         (getenv): Do not declare.
74074
74075         * lib/idcache.c: Include <string.h> unconditionally.
74076
74077         * lib/long-options.c: Include long-options.h first, to test interface.
74078         Include <stdlib.h> unconditionally.
74079
74080         * lib/makepath.c: Include makepath.h first, to test interface.
74081         Include <stdlib.h> and <string.h> unconditionally.
74082
74083         * lib/linebuffer.c: Include <stdlib.h>.
74084         (free): Remove decl.
74085
74086         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74087         stddef.h. rpl_malloc returns void *, not char *.
74088         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74089         prototype.
74090
74091         * lib/md5.h: Include <limits.h> unconditionally.
74092         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74093         (__P): Remove; all uses removed.
74094         * lib/md5.c: Include "md5.h" first.
74095         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74096         md5_buffer, md5_process_bytes, md5_process_block):
74097         Define with prototypes.
74098         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74099         * lib/sha.c: Include "sha.h" first.
74100         Include <stdlib.h>, <string.h> unconditionally.
74101
74102         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74103         * lib/memcmp.c (__ptr_t): Likewise.
74104         * lib/memrchr.c (__ptr_t): Likewise.
74105         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74106         Include <string.h> unconditionally.
74107         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74108         * lib/memchr.c: Include <stdlib.h> unconditionally.
74109         * lib/memchr.c (LONG_MAX): Remove.
74110         * lib/memrchr.c (LONG_MAX): Likewise.
74111         * lib/memchr.c (__memchr): Define via a prototype.
74112         * lib/memrchr.c (__memrchr): Likewise.
74113         * lib/memcmp.c (__P): Remove, and remove all uses.
74114         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74115         Remove forward decls; no longer needed.
74116         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74117         Use types required by C89 in prototype.
74118
74119         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74120         * lib/savedir.c: Likewise.
74121         * lib/mkdir.c (free): Remove decl.
74122         * lib/rmdir.c (rmdir): Define with a prototype.
74123         * lib/savedir.c: Include savedir.h first, to test interface.
74124
74125         * lib/mktime.c (STDC_HEADERS): Remove.
74126         Include <stdlib.h>, <string.h> unconditionally.
74127
74128         * lib/modechange.c: Include <stdlib.h> unconditionally.
74129         (malloc): Remove decl.
74130
74131         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74132         (free): Remove decl.
74133
74134         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74135         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74136         (This type really should be intptr_t, but that's a C99ism.)
74137         (_obstack_memcpy): Remove: all uses changed to memcpy.
74138         Include <string.h> unconditionally.
74139         (struct obstack): Assume __STDC__ for types of members
74140         chunkfun, freefun, extra_arg.
74141         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74142         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74143         obstack_begin, obstack_specify_allocation,
74144         obstack_specify_allocation_with_arg, obstack_chunkfun,
74145         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74146         Remove unprototyped decls and the macros that use them.
74147         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74148         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74149         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74150         (defined __STDC__ && __STDC__)]:
74151         Remove nonprototyped code.
74152         Include <stdlib.h> unconditionally.
74153         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74154         _obstack_allocated_p, _obstack_free, obstack_free,
74155         _obstack_memory_used, print_and_abort):
74156         Define using prototypes.
74157         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74158         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74159         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74160         obstack_next_free, obstack_object_size, obstack_room) [0]:
74161         Remove unused, unprototyped code.
74162
74163         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74164
74165         * lib/physmem.c (physmem_total, physmem_available, main): Define
74166         with prototypes.
74167
74168         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74169         (main): Define with a prototype.
74170
74171         * lib/posixver.c (getenv): Remove decl.
74172
74173         * lib/putenv.c (malloc): Returns void *, not char *.
74174         Include <string.h> unconditionally.
74175         (strchr, memcpy, NULL): Do not define.
74176
74177         * lib/readtokens.c: Include readtokens.h first, to test interface.
74178         Include <stdlib.h>, <string.h> unconditionally.
74179         (init_tokenbuffer): Define with a prototype.
74180
74181         * lib/regex.c (PARAMS): Remove.  All uses removed.
74182         All uses of _RE_ARGS removed, too.
74183         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74184         unconditionally.
74185         (bzero): Assume memset exists.
74186         (memcmp, memcpy, NULL): Remove.
74187         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74188         char, or assignments to local vars of type signed char.
74189         (init_syntax_once, PREFIX(extract_number_and_incr),
74190         PREFIX(print_partial_compiled_pattern),
74191         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74192         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74193         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74194         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74195         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74196         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74197         wcs_compile_range, byte_compile_range, truncate_wchar,
74198         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74199         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74200         count_mbs_length, wcs_re_match_2_internal,
74201         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74202         PREFIX(alt_match_null_string_p),
74203         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74204         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74205         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74206         now-unnecessary declaration, if any.
74207         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74208         regcomp, regexec):
74209         Remove now-unnecessary casts among pointer types.
74210         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74211
74212         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74213         (free): Remove decl.
74214
74215         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74216
74217         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74218         (free): Remove decl.
74219
74220         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74221         * lib/xgetcwd.c: Likewise.
74222
74223         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74224         (free): Remove decl.
74225
74226         * lib/strchrnul.c (strchrnul): Define with a prototype.
74227         Fix bug: c_in was not converted to char before searching.
74228
74229         The following changes are not K&R related:
74230
74231         * lib/group-member.h: Include <sys/types.h>, so that this file is
74232         self-contained.
74233         * lib/makepath.h: Likewise.
74234
74235         * lib/getusershell.c (readname, default_index, line_size, readname):
74236         Use size_t, not int, for sizes.
74237         (readname): If the size overflows, report an error instead of
74238         looping forever.
74239
74240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74241
74242         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74243         libc.
74244
74245 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74246
74247         * README: New section: portability guidelines.
74248
74249 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74250
74251         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74252         C89 spec.
74253
74254 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74255
74256         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74257
74258 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74259
74260         Assume C89 or better; remove K&R cruft.
74261         A few of these changes were first proposed by Derek Robert Price
74262         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74263
74264         * lib/addext.c: Include <string.h> unconditionally.
74265         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74266         Don't declare getenv or malloc.
74267
74268         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74269         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74270         (NULL): Remove.
74271         (find_stack_direction, alloca): Use prototypes.
74272
74273         * lib/atexit.c (atexit): Define using a prototype.
74274
74275         * lib/basename.c, dirname.c, stripslash.c:
74276         Include <string.h> unconditionally.
74277
74278         * lib/bcopy.c: Include <stddef.h>.
74279         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74280
74281         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74282
74283         * lib/error.h (error, error_at_line, error_print_progname)
74284         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74285         * lib/error.c: Include error.h first, to check interface.
74286         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74287         (VA_START): Remove; all uses changeed to va_start.
74288         (exit, strerror): Remove decls.
74289         (error_print_progname): Prototype uncondionally.
74290         Don't include <errno.h>; no longer needed.
74291         (private_strerror): Remove.
74292         (error_tail): Always define.
74293         (error, error_at_line): Assume C89 or better; always use prototypes.
74294         * lib/fatal.c: Include "fatal.h" first, to test interface.
74295         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74296         (VA_START): Remove; all uses changed to va_start.
74297         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74298         this case.
74299         (exit): Remove decl.
74300         (fatal): Prototype unconditionally.  Assume va_start works.
74301         Abort at end, to pacify gcc.
74302
74303         * lib/euidaccess.c (main): Define with a prototype.
74304
74305         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74306
74307         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74308
74309         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74310         prototypes.
74311         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74312         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74313         (getenv): Remove decl.
74314         (fnmatch): Define using a prototype.
74315         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74316         (FCT): Define using a prototype.
74317
74318         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74319
74320         * lib/gethostname.c: Include <stddef.h>.
74321         (gethostname): Define with prototype.  Length is size_t, not int.
74322
74323 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74324
74325         Assume C89 or better; remove K&R cruft.
74326         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74327         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74328         string.h, getenv, malloc.
74329         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74330         headers.
74331         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74332         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74333         do not check for strerror.
74334         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74335         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74336         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74337         do not check for doprnt or vprintf.
74338         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74339         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74340
74341 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74342
74343         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74344         getversion.c should have been removed then, but was accidentally
74345         preserved.
74346
74347         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74348         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74349
74350 2003-09-08  Karl Berry  <karl@gnu.org>
74351
74352         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74353                 config, forget about prep.
74354
74355         * config/depcomp, missing: update from automake.
74356
74357 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74358
74359         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74360         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74361
74362 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74363
74364         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74365         copy_tm_result.  Bug reported by Simon Josefsson in
74366         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74367
74368 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74369
74370         * m4/time_r.m4: New file.
74371         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74372         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74373         is. Check for timegm declaration.
74374         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74375         Do not check for gmtime_r.
74376         Replace mktime if __mktime_internal does not exist and if mktime
74377         hasn't been replaced already.
74378
74379 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74380
74381         * lib/time_r.c, lib/time_r.h: New files.
74382
74383         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74384         __localtime_r.
74385         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74386         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74387
74388         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74389         __gmtime_r.
74390         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74391         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74392         Include <time_r.h>.
74393
74394         * lib/timegm.c: Switch to glibc implementation, with the following
74395         changes:
74396         [defined HAVE_CONFIG_H]: Include <config.h>.
74397         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74398         (__mktime_internal) [!defined _LIBC]: New decl.
74399         (__gmtime_r) [!defined _LIBC]: New macro and function.
74400         (timegm): Use a prototype, since gnulib assumes C89.
74401         Do not bother declaring tmp to be const, as it's not really usefu.
74402         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74403         (timegm): Declare only if HAVE_DECL_TIMEGM.
74404
74405 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74406
74407         * MODULES.html.sh (func_all_modules): Add time_r.
74408         * modules/time_r: New file.
74409         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74410         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74411
74412 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74413
74414         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74415         Bug reported by Lute Kamstra in
74416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74417
74418         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74419         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74420         course with correspondingly smaller numbers for tomorrow and
74421         yesterday.  From Tadayoshi Funaba.  Originally installed into
74422         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74423         coreutils merge?).
74424
74425 2003-08-31  Simon Josefsson  <jas@extundo.com>
74426
74427         * modules/timegm: New file.
74428         * MODULES.html.sh (func_all_modules): Add timegm.
74429
74430 2003-08-31  Simon Josefsson  <jas@extundo.com>
74431
74432         * m4/timegm.m4: New file.
74433
74434 2003-08-31  Simon Josefsson  <jas@extundo.com>
74435
74436         * lib/timegm.h: New file.
74437         * lib/timegm.c: New file.  Based on
74438         wget-1.8.2/src/http.c:mktime_from_utc.
74439
74440 2003-08-31  Karl Berry  <karl@gnu.org>
74441
74442         * lib/argp.h: update from libc.
74443
74444 2003-08-28  Bruno Haible  <bruno@clisp.org>
74445
74446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74447         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74448         followed by '#define fnmatch fnmatch_posix' gives an error.
74449
74450 2003-08-28  Bruno Haible  <bruno@clisp.org>
74451
74452         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74453         warning on QNX, which defines O_BINARY to 000000.
74454
74455 2003-08-27  Jim Meyering  <jim@meyering.net>
74456
74457         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74458         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74459         would fail after 32.  Reported by Danny Levinson.  Details here:
74460         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74461
74462 2003-08-24  Bruno Haible  <bruno@clisp.org>
74463
74464         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74465         MSVC7 <stdio.h> is included later.
74466
74467 2003-08-22  Simon Josefsson  <jas@extundo.com>
74468
74469         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74470
74471 2003-08-20  Karl Berry  <karl@gnu.org>
74472
74473         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74474
74475 2003-08-20  Bruno Haible  <bruno@clisp.org>
74476
74477         * modules/progname: New file.
74478         * MODULES.html.sh (func_all_modules): Add progname.
74479
74480 2003-08-20  Bruno Haible  <bruno@clisp.org>
74481
74482         * lib/progname.h: New file, from GNU gettext.
74483         * lib/progname.c: New file, from GNU gettext.
74484         * lib/progreloc.c: New file, from GNU gettext.
74485
74486 2003-08-19  Jim Meyering  <jim@meyering.net>
74487
74488         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74489         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74490
74491 2003-08-19  Bruno Haible  <bruno@clisp.org>
74492
74493         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74494         more.
74495
74496 2003-08-19  Bruno Haible  <bruno@clisp.org>
74497
74498         * lib/xstrdup.c: Assume <string.h> exists.
74499
74500 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74501
74502         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74503         in makefile rules.
74504
74505 2003-08-18  Jim Meyering  <jim@meyering.net>
74506
74507         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74508         * m4/lib-ld.m4: Likewise.
74509
74510 2003-08-18  Jim Meyering  <jim@meyering.net>
74511
74512         * lib/setenv.h: Indent nested cpp directive.
74513         * lib/vasnprintf.c: Remove trailing blanks.
74514
74515 2003-08-17  Simon Josefsson  <jas@extundo.com>
74516
74517         * modules/xstrndup: New file.
74518         * MODULES.html.sh (func_all_modules): Add xstrndup.
74519
74520 2003-08-17  Simon Josefsson  <jas@extundo.com>
74521
74522         * modules/argp: Fix autoconf macro name. Add more dependencies.
74523
74524 2003-08-17  Simon Josefsson  <jas@extundo.com>
74525
74526         * m4/xstrndup.m4: New file.
74527
74528 2003-08-17  Simon Josefsson  <jas@extundo.com>
74529
74530         * m4/argp.m4: New file.
74531
74532 2003-08-17  Simon Josefsson  <jas@extundo.com>
74533             Bruno Haible  <bruno@clisp.org>
74534
74535         * lib/xstrndup.h: New file.
74536         * lib/xstrndup.c: New file.
74537
74538 2003-08-17  Bruno Haible  <bruno@clisp.org>
74539
74540         * modules/strndup (Files, Include): Add lib/strndup.h.
74541
74542 2003-08-17  Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/euidaccess (Files): Add lib/euidaccess.h.
74545
74546 2003-08-17  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/strndup.h: New file.
74549
74550 2003-08-17  Bruno Haible  <bruno@clisp.org>
74551
74552         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74553         like AC_GNU_SOURCE.
74554         * modules/extensions (configure.ac): Comment out the invocation of
74555         gl_USE_SYSTEM_EXTENSIONS.
74556
74557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74558
74559         Merges from coreutils, etc.
74560         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74561         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74562         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74563         fixing a typo.
74564         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74565         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74566
74567 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74568
74569         Document merge from coreutils.
74570         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74571         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74572         * modules/utime: Add m4/utimes-null.m4.
74573
74574 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74575
74576         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74577         space, undoing this 2003-08-12 change:
74578         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74579
74580 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74581
74582         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74583         strtoul.c from libc, undoing this 2003-08-12 change:
74584         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74585
74586 2003-08-16  Jim Meyering  <jim@meyering.net>
74587
74588         Merges from coreutils.
74589         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74590         prefix.  Adjust cache variables similarly.  Create 500 rather than
74591         just 300 files, to exercise bug on Darwin6.5, too.
74592         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74593         $missing_dir.
74594         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74595         AM_SYS_POSIX_TERMIOS.
74596         Reported by mkc@mathdogs.com.
74597         Also change use of $am_cv_sys_posix_termios
74598         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74599         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74600         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74601         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74602         in /proc/mounts until it finds one with matching device number.  This
74603         is unnecessary when the FILE argument *is* a mount point.  No stat call
74604         is necessary in that case.  So, disable the statvfs-testing code on
74605         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74606         as RedHat bug# 84846.
74607         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74608         to 1MB, so as not to render systems with no stack size limit (e.g.,
74609         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74610         Include <unistd.h>.  On some systems,
74611         it is required for the definition of _SC_PAGESIZE.
74612
74613 2003-08-16  Jim Meyering  <jim@meyering.net>
74614
74615         Merge from coreutils.
74616         * lib/xstrtoimax.c: #else #if -> #elif.
74617         * lib/xstrtoumax.c: Likewise.
74618
74619 2003-08-16  Jim Meyering  <jim@meyering.net>
74620
74621         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74622         * m4/utimes.m4: Removed.
74623         * m4/utimes-null.m4: Renamed from utimes.m4.
74624
74625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74626         to 1MB, so as not to render systems with no stack size limit (e.g.,
74627         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74628         Include <unistd.h>.  On some systems,
74629         it is required for the definition of _SC_PAGESIZE.
74630
74631 2003-08-16  Jim Meyering  <jim@meyering.net>
74632         and Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         Merges from coreutils, etc.
74635
74636         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74637         using the latest version from cvs.  This avoids problems with #line
74638         directives using a vendor (Sun) compiler.
74639         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74640         Don't set GETGROUPS_LIB here; now it's
74641         done via getgroups.m4's wrapper function.
74642         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74643         rather than just in sh-util/configure.in, so that the
74644         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74645         same.
74646         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74647         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74648         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74649         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74650         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74651         Remove code that is now done by the newly-required macros.
74652         Append $(EXEEXT) to DF_PROG.
74653         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74654         Do not invoke or require the following here,
74655         since prereq.m4 or some gnulib .m4 now does this for us:
74656         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74657         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74658         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74659         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74660         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74661         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74662         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74663         AC_FUNC_OBSTACK.
74664         Do not replace the following functions, as this is now the job
74665         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74666         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74667         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74668         atexit getpass, strdup, getpagesize.
74669         Replace 'raise'.
74670         Do not check for the following functions, as this is now the job
74671         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74672         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74673         setregid.
74674         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74675         Check for sys/sysctl.h.
74676         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74677         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74678         of checking for ssize_t ourselves.
74679
74680         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74681         Require every macro that gnulib/modules/* suggests for us.
74682         (jm_PREREQ_ADDEXT): New macro.
74683         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74684         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74685
74686         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74687         (gl_PHYSMEM): Use it.
74688         Also check for `table' function.
74689         Check for new headers and functions.
74690         Add check for sys/sysmp.h.
74691         With suggestions from Kaveh Ghazi.
74692         Ignore headers that are present but cannot be compiled.  This
74693         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74694         C 5.4.
74695
74696 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74697
74698         Document merge from coreutils.
74699         * modules/userspec: Depend on posixver.
74700         * modules/strftime: Depend on tzset.
74701
74702 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74703
74704         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74705         rather than tab, after '#' in shell-script copyright notices.
74706         Suggested by Bruno Haible.
74707
74708 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74709
74710         * config/srclist-update: Use three spaces, rather than tab, after '#'
74711         in shell-script copyright notices.  Suggested by Bruno Haible.
74712         Remove unnecessary parenthesization in regular expression.
74713
74714 2003-08-15  Jim Meyering  <jim@meyering.net>
74715
74716         Merge from coreutils.
74717         * lib/xgethostname.c: Include <stdlib.h>.
74718         (xghostname): Don't exit for anything other than memory-related
74719         failure; just return NULL.
74720         * lib/userspec.c: Include "posixver.h".
74721         (parse_user_spec): Accept `.' as a separator only
74722         in pre-POSIX-200112 mode.
74723         * lib/strtoimax.c: Use #elif rather than #else #if.
74724         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74725         Remove function, now that we can rely on a working tzset function.
74726         [!_LIBC]: Ensure that the required autoconf test has been run.
74727         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74728         Use underlying_strftime for %r.
74729         * lib/sha.c: Merge in some clean-up and optimization changes from
74730         glibc.
74731         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74732         Ensure that it is a multiple of 64.
74733         Rearrange loop exit tests so as to avoid performing an
74734         additional fread after encountering an error or EOF.
74735         * lib/realloc.c: Update copyright date.
74736
74737 2003-08-15  Jim Meyering  <jim@meyering.net>
74738         and Paul Eggert  <eggert@twinsun.com>
74739
74740         Merge from coreutils.
74741         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74742         member but strut utmpx does not.  Needed for AIX 4.3.3.
74743         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74744
74745 2003-08-15  Jim Meyering  <jim@meyering.net>
74746         and Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         Merges from coreutils, etc.
74749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74750         Require gl_FUNC_TZSET_CLOBBER.
74751         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74752         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74753         members.
74754
74755 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74756
74757         Help the merge from coreutils.
74758         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74759         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74760         * m4/tzset.m4: Use it too.
74761
74762 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74763
74764         * modules/tzset: New file.
74765
74766 2003-08-14  Jim Meyering  <jim@meyering.net>
74767
74768         Merges from coreutils.
74769         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74770         variable names, rather than @FNMATCH_H@.
74771         * modules/alloca: Likewise for $(ALLOCA_H).
74772
74773         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74774         the three copies of the literal target, `fnmatch.h'.
74775         * modules/alloca (alloca.h): Likewise.
74776
74777 2003-08-14  Jim Meyering  <jim@meyering.net>
74778
74779         Merge from coreutils.
74780         * m4/tzset.m4: New file.
74781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74782         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74783         otherwise, AIX 5.1 systems would end up using the latter.
74784         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74785         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74786         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74787         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74788
74789 2003-08-14  Jim Meyering  <jim@meyering.net>
74790
74791         Merge from coreutils.
74792         * lib/obstack.h: Whitespace changes.
74793         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74794         and xcalloc return values.
74795         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74796         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74797         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74798         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74799         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74800         error from mntctl.
74801         Use mntctl's return value to drive the entry-processing loop, since
74802         we can't rely on the value of the vmt_length member in the last
74803         entry.  On some systems doing so could result in exhausting
74804         virtual memory.  Based in part on a patch from Mike Jetzer.
74805
74806 2003-08-14  Jim Meyering  <jim@meyering.net>
74807         and Paul Eggert  <eggert@twinsun.com>
74808
74809         Merges from coreutils, plus other fixes.
74810         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74811         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74812         for credits and details.  Thanks to Kaveh Ghazi for helping
74813         to keep these files in sync.
74814         (ARRAY_SIZE): Define it.
74815         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74816         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74817         (memcasecmp): Don't assume size_t fits in unsigned int.
74818         Remove casts and duplicate code.
74819         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74820         (memcpy): Remove definition.
74821         Merge in some clean-up and optimization changes from glibc.
74822         [BLOCKSIZE]: Move definition to top of file.
74823         Ensure that it is a multiple of 64.
74824         Rearrange loop exit tests so as to avoid performing an
74825         additional fread after encountering an error or EOF.
74826         * lib/md5.h (md5_uintptr): Define.
74827         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74828         return to the initial working directory.  Preserve errno
74829         for caller.
74830         * lib/idcache.c: Include "xalloc.h".
74831         (xmalloc, xrealloc): Remove decls.
74832         (getuser): Remove casts no longer required in C89.
74833         * lib/human.c: Include stdio.h, for sprintf.
74834         * lib/group-member.c: Include "xalloc.h".
74835         (xmalloc, xrealloc): Remove decls.
74836         (get_group_info): Remove casts no longer required in C89.
74837         * lib/getusershell.c (readname): Remove casts no longer required in
74838         C89.
74839         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74840         * lib/getline.c: Whitespace fix, from coreutils.
74841
74842 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74843
74844         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74845         Check for isascii.
74846
74847         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74848         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74849         Undo previous (whitespace-only) change.
74850
74851 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74852
74853         * lib/exclude.c: Include <ctype.h>
74854         (IN_CTYPE_DOMAIN): New macro.
74855         (is_space): New fn.
74856         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74857         and empty lines.
74858
74859         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74860         Undo previous (whitespace-only) change.
74861
74862 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74863
74864         * config/srclist-update: Change update back to the old behavior,
74865         leaving whitespace alone.  Use one 'sed' command rather than a
74866         pipeline.
74867         (fixlicense): Now a variable, not a function.
74868         (remove_trailing_blanks): Remove.
74869         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74870         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74871         Undo previous (whitespace-only) change.
74872
74873 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74874
74875         Merge from coreutils.
74876         * modules/euidaccess: Add lib_SOURCES, include for new
74877         file euidaccess.h
74878
74879 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74880
74881         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74882         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74883         Normalize leading white space and remove trailing white space.
74884
74885         Merge from coreutils
74886         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74887
74888         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74889         0.12.1.  These files are now being upgraded automatically by
74890         ../config/srclist-update.
74891
74892 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74893
74894         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74895         Normalize leading white space and remove trailing white space.
74896         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74897         notice, as per ../config/srclist-update.
74898
74899         Merge from coreutils.
74900         * lib/euidaccess.h: New file.
74901         * lib/euidaccess.c: Include it.
74902         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74903         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74904         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74905
74906 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74907
74908         * config/srclist-update: Add copyright notice.
74909         (remove_id_lines, remove_trailing_blanks): New constants.
74910         (fixfile): Use them to normalize spacing a bit in copied files.
74911         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74912         Normalize leading white space and remove trailing white space.
74913
74914         * config/texinfo.tex: Sync with texinfo.
74915
74916         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74917         strtoul.c from libc, to merge coreutils whitespace changes.
74918
74919         * config/srclist.txt: Get the following m4 files from gettext:
74920         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74921         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74922         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74923         wint_t.m4.
74924
74925 2003-08-12  Karl Berry  <karl@gnu.org>
74926
74927         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74928         been made.
74929
74930 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74931
74932         * modules/gnu-source, m4/gnu-source.m4:
74933         Remove; we're assuming Autoconf 2.54 or later now.
74934         Suggested by Bruno Haible.
74935         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74936
74937 2003-08-11  Bruno Haible  <bruno@clisp.org>
74938
74939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74940
74941 2003-08-11  Bruno Haible  <bruno@clisp.org>
74942
74943         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74944         (vasnprintf): Use it instead of wcslen.
74945
74946 2003-08-11  Bruno Haible  <bruno@clisp.org>
74947
74948         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74949         value to ensure that _Bool promotes to int. Use #define for _Bool when
74950         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74951
74952 2003-08-10  Karl Berry  <karl@gnu.org>
74953
74954         * lib/regex.h: update from libc (whitespace fix).
74955
74956 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74957
74958         Merge some files from coreutils.  These changes were
74959         originally made by Jim Meyering.
74960         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74961         many older Unixes require this.
74962         * lib/alloca.c (alloca): Remove cast to argument of free;
74963         no longer needed in C89.
74964         * lib/alloca_.h, regex.h: Fix white space to match
74965         what GNU indent does.
74966
74967 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74968
74969         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74970         apparently Emacs's Unicode mode got confused before my 2003-08-05
74971         checkin.
74972
74973 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74974
74975         * m4/extensions.m4: New file.
74976         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74977         Require gl_USE_SYSTEM_EXTENSIONS.
74978         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74979         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74980
74981 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74982
74983         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74984         * modules/extensions, modules/gnu-source: New files.
74985         * modules/timespec, modules/unlocked-io: Depend on extensions.
74986
74987 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74988
74989         * modules/restrict: New file.
74990         * MODULES.html.sh (func_all_modules): Add restrict.
74991         * modules/regex: Depend on restrict.
74992
74993 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74994
74995         * m4/restrict.m4: New file.
74996         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74997
74998 2003-08-07  Bruno Haible  <bruno@clisp.org>
74999
75000         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75001         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75002
75003 2003-08-07  Bruno Haible  <bruno@clisp.org>
75004
75005         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75006         makes the module 'getndelim2' compatible with the module 'getline'.
75007
75008 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75009
75010         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75011         byte with "\201" to avoid glitches when editing that source file
75012         with multi-gnome-terminal.
75013
75014 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75015
75016         * lib/bumpalloc.h: Remove.
75017
75018 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75019
75020         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75021         * modules/bumpalloc: Remove.
75022
75023 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75024
75025         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75026         GNU coding style.
75027
75028         Merge from coreutils.
75029         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75030         1. From glibc.
75031         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75032         from Karl Berry, implemented by Jim Meyering.
75033         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75034         from Dmitry V. Levin.
75035         Remove anachronistic cast of xrealloc.
75036         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75037         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75038         type. Otherwise, it wouldn't compile with at least /bin/cc on
75039         ymp-cray-unicos9.0.2.X.
75040         Combine two mostly-identical uses of alloca into one.
75041         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75042
75043 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75044
75045         [From Emacs.]
75046
75047         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75048         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75049         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75050         obsolete NLIST_NAME_UNION.
75051         [__GNU__]: Undef BSD and FSCALE.
75052         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75053
75054 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75057         an enum type, so that it's guaranteed to promote to int.  See:
75058         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75059
75060 2003-08-03  Karl Berry  <karl@gnu.org>
75061
75062         * config/depcomp: update from automake.
75063
75064 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75065
75066         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75067         (strerror): Don't assume that a printable int fits in 14 bytes.
75068
75069 2003-07-31  Bruno Haible  <bruno@clisp.org>
75070
75071         * modules/getpass-gnu: New file.
75072         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75073
75074 2003-07-31  Bruno Haible  <bruno@clisp.org>
75075
75076         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75077
75078 2003-07-24  Karl Berry  <karl@gnu.org>
75079
75080         * config/missing: update from automake.
75081
75082 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75083             Bruno Haible  <bruno@clisp.org>
75084
75085         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75086         * lib/getline.c (getline, getdelim): Likewise.
75087         Remove _GNU_SOURCE define; now it's defined in config.h through
75088         m4/getline.m4.
75089
75090 2003-07-23  Karl Berry  <karl@gnu.org>
75091
75092         * config/config.sub: update from prep.
75093
75094 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75095
75096         * modules/xalloc (Depends-on): Add exitfail.
75097         * modules/xmemcoll: Likewise.
75098
75099 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75100
75101         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75102         over-parenthesization in macros.
75103
75104         Sync with coreutils.
75105
75106         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75107         required by C99.
75108
75109         Use `exit_failure' for xalloc and xmemcoll instead of their own
75110         private exit-failure variables.
75111         * lib/xalloc.h (xalloc_exit_failure): Remove.
75112         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75113         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75114         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75115         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75116         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75117
75118 2003-07-20  Jim Meyering  <jim@meyering.net>
75119
75120         * modules/closeout (Depends-on): Add exitfail.
75121         Suggestion from Bruno Haible.
75122
75123 2003-07-19  Karl Berry  <karl@gnu.org>
75124
75125         * config/config.sub: update from prep.
75126
75127 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75128
75129         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75130         Remove.
75131         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75132         to test that it can stand by itself.  Include "exitfail.h".
75133         Clients should set exit_failure instead.
75134         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75135
75136 2003-07-18  Bruno Haible  <bruno@clisp.org>
75137
75138         * modules/getndelim2: New file.
75139         * modules/getline: Share files with module getndelim2.
75140         * modules/getnline: Depend on getndelim2 instead of sharing files with
75141         it. Add getnline.c to lib_SOURCES.
75142         * MODULES.html.sh (func_all_modules): Add getndelim2.
75143
75144 2003-07-18  Bruno Haible  <bruno@clisp.org>
75145
75146         * m4/getndelim2.m4: New file.
75147         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75148         invoke gl_PREREQ_GETNDELIM2.
75149         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75150         gl_PREREQ_GETNDELIM2.
75151         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75152         gl_GETNDELIM2.
75153
75154 2003-07-18  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/getndelim2.h: New file.
75157         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75158         getndelim2.h.
75159         (getndelim2): Make non-static. Change return type to ssize_t.
75160         * lib/getline.h: Change argument names.
75161         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75162         * lib/getnline.c: Include getndelim2.h.
75163
75164 2003-07-18  Andreas Schwab  <schwab@suse.de>
75165
75166         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75167
75168 2003-07-17  Karl Berry  <karl@gnu.org>
75169
75170         * config/config.sub: update from prep.
75171
75172 2003-07-17  Bruno Haible  <bruno@clisp.org>
75173
75174         * modules/getnline: New file.
75175         * modules/getline: Add lib/getndelim2.c to source file list.
75176         * MODULES.html.sh (func_all_modules): Add getnline.
75177
75178 2003-07-17  Bruno Haible  <bruno@clisp.org>
75179
75180         * m4/getnline.m4: New file.
75181
75182 2003-07-17  Bruno Haible  <bruno@clisp.org>
75183
75184         * m4/Makefile.am.in: Remove file.
75185         * m4/Makefile.am: Remove file.
75186         * m4/Makefile.in: Remove file.
75187
75188 2003-07-17  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/getnline.h: New file.
75191         * lib/getnline.c: New file.
75192         * lib/getndelim2.c: New file, extracted from getline.c.
75193         (getndelim2): Renamed from getdelim2, with added nmax argument.
75194         * lib/getline.c: Include getndelim2.c.
75195         (getdelim2): Moved out to getndelim2.c.
75196         (getline, getdelim): Update.
75197
75198 2003-07-17  Bruno Haible  <bruno@clisp.org>
75199
75200         * lib/Makefile.am: Remove file.
75201         * lib/Makefile.in: Remove file.
75202
75203 2003-07-17  Bruno Haible  <bruno@clisp.org>
75204
75205         * configure.in: Remove file.
75206         * Makefile.in: Remove file.
75207
75208 2003-07-17  Bruno Haible  <bruno@clisp.org>
75209
75210         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75211
75212 2003-07-16  Karl Berry  <karl@gnu.org>
75213
75214         * config/srclist-update: was running fixlicense twice, which caused
75215                 texinfo.tex to be nullified for some reason.  Simplify,
75216                 $gplsrc is no longer needed as far as I can see?
75217
75218 2003-07-16  Jim Meyering  <jim@meyering.net>
75219
75220         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75221
75222 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75223
75224         * config/srclist.txt: Get the following files from gettext-runtime/intl
75225         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75226         ref-del.sin.  From Bruno Haible.
75227         * config/srclist-update (fixfile): Change grep pattern again, since the
75228         previous fix didn't work (there was another trailing $).  Use
75229         '[$]' to escape the $s.
75230
75231 2003-07-15  Karl Berry  <karl@gnu.org>
75232
75233         * lib/vasnprintf.c: update from gettext.
75234
75235 2003-07-15  Karl Berry  <karl@gnu.org>
75236
75237         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75238         gets expanded when surrounded by '$'.
75239
75240 2003-07-15  Jim Meyering  <jim@meyering.net>
75241
75242         * modules/save-cwd: Don't depend on error.  From Derek Price.
75243
75244 2003-07-15  Jim Meyering  <jim@meyering.net>
75245
75246         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75247
75248 2003-07-14  Simon Josefsson  <jas@extundo.com>
75249
75250         * modules/mempcpy: New file.
75251         * MODULES.html.sh (func_all_modules): Add mempcpy.
75252
75253 2003-07-14  Simon Josefsson  <jas@extundo.com>
75254
75255         * m4/mempcpy.m4: New file.
75256
75257 2003-07-14  Simon Josefsson  <jas@extundo.com>
75258
75259         * lib/mempcpy.h: New file.
75260         * lib/mempcpy.c: New file.
75261
75262 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75263
75264         * modules/getdate, modules/posixtm: Depend on mktime.
75265
75266 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75267
75268         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75269         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75270         unicodeio.c, unicodeio.h, unlocked-io.h:
75271         Switch from LGPL to GPL.
75272
75273 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75274
75275         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75276         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75277         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75278         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75279         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75280         updated automatically by ../config/srclist-update.  This changes
75281         their license from LPGL to GPL.
75282
75283 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75284
75285         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75286         assumed to refer to the root of the most recent stable gettext version.
75287         * config/srclistvars.sh: Add defaults for eggert.
75288         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75289         Match "This program" as well as "The program".  This is needed
75290         for gettext.
75291
75292 2003-07-14  Jim Meyering  <jim@meyering.net>
75293
75294         Don't emit diagnostics.  Let callers do that.
75295         * lib/save-cwd.c: Don't include "error.h".
75296         (save_cwd): Don't call error.  Ensure that errno is valid
75297         when returning nonzero.
75298
75299         * lib/save-cwd.h (restore_cwd): Update prototype.
75300         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75301         Simplify.  Don't call error upon failure.  Let callers do that.
75302         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75303         when auditing is enabled.  But don't bother updating the #if.
75304
75305 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75306
75307         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75308         it breaks C++ compilation.
75309         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75310
75311 2003-07-10  Simon Josefsson  <jas@extundo.com>
75312
75313         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75314
75315 2003-07-10  Jim Meyering  <jim@meyering.net>
75316
75317         * m4/clock_time.m4: Remove trailing blank.
75318         * m4/intmax_t.m4: Likewise.
75319
75320 2003-07-10  Jim Meyering  <jim@meyering.net>
75321
75322         * lib/vasnprintf.c: Remove trailing blanks.
75323         Make cpp indentation consistent.
75324
75325 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75326
75327         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75328         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75329         Switch from LGPL to GPL.
75330
75331 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75332
75333         * config/srclist.txt: Sort sublists.  Add
75334         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75335         that differ from gnulib for one reason or another; we'd like this list
75336         to be smaller but for now let's document what we have.
75337
75338 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75339
75340         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75341         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75342         and sweeter "eval x=$x".
75343         * config/srclist.txt: Get lib/argp* from glibc.
75344
75345 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75346
75347         * lib/mktime.c: Fix some boundary cases and remove need for floating
75348         point.
75349
75350         Issue a compile-time diagnostic if time_t is floating point, or if
75351         two's complement arithmetic is not in effect, or if arithmetic
75352         right shift does not propagate the sign.  These assumptions were
75353         all in the original code but they weren't checked.
75354
75355         (TIME_T_MIDPOINT, verify): New macros.
75356         (__isleap): Remove; it has integer overflow problems.
75357         (leapyear): New function, without those problems.
75358         (ydhms_tm_diff): Remove; splitting into two parts.
75359         (ydhms_diff): New function, containing the arithmetic part of
75360         the old ydhms_tm_diff function.  Issue a compile-time
75361         diagnostic if we are not using C99 integer division.
75362         Avoid casts when possible.
75363         (guess_time_tm): New function, containing the checking part of
75364         the old ydhms_tm_diff function.  Return the new value, rather than
75365         the difference between it and the old.  Accept a new argument T
75366         so that *T specifies the old value.  Check for overflow in the result.
75367
75368         (__mktime_internal): Use a time_t offset, not a long int offset.
75369         This undoes the 2003-06-04 change, which is no longer needed now
75370         that we have better overflow checking.
75371         (localtime_offset): Likewise.
75372
75373         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75374         and long are 64-bit but int is only 32-bit.
75375         (ydhms_diff): Use long int to store year1 and yday1.
75376         Issue a compile-time diagnostic if long int is not wide enough.
75377
75378         (__mktime_internal): Use long int to store adjusted year and yday.
75379         Use plain C rather than preprocessor commands, if that doesn't
75380         affect efficiency.
75381         Check for overflow (and try to repair) after each probe
75382         rather than checking only at the very end.  This avoids some bugs
75383         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75384         does not equal GMT offset at maximum time).
75385         Use integer to check for overflow rather than floating point; this
75386         is more portable to non-IEEE hosts, and is a tad faster.
75387         When we detect that we are oscillating between two values,
75388         don't check whether tm_isdst has the requested value, since
75389         we already know the answer.  When tm_isdst has the wrong value,
75390         use a different heuristic to find the right one, based on the
75391         extreme values actually observed in practice in tz2003a,
75392         rather than the (overly optimistic) "previous 3 calendar quarters".
75393
75394         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75395         "T const" to accommodate glibc style.
75396         (check_result): Use less-confusing report format.  "long" -> "long int.
75397         (main): Likewise.
75398         Don't loop if the iteration overflows time_t.
75399         Allow a negative step in the iteration.
75400
75401 2003-07-06  Karl Berry  <karl@gnu.org>
75402
75403         * config/depcomp: update from automake.
75404         * config/config.sub: update from prep.
75405
75406 2003-07-03  Karl Berry  <karl@gnu.org>
75407
75408         * config/config.guess: update from prep.
75409
75410 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75411
75412         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75413         xreadlink.c now includes it unconditionally.
75414
75415 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75416
75417         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75418         having it depend on HAVE_SYS_TYPES_H.
75419
75420 2003-07-01  Bruno Haible  <bruno@clisp.org>
75421
75422         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75423         <sys/types.h> should be sufficient.
75424         Reported by Paul Eggert.
75425
75426 2003-06-26  Karl Berry  <karl@gnu.org>
75427
75428         * config/depcomp: update from automake.
75429
75430 2003-06-26  Bruno Haible  <bruno@clisp.org>
75431
75432         * modules/human: Depend on module stdbool.
75433
75434 2003-06-25  Bruno Haible  <bruno@clisp.org>
75435
75436         * modules/readlink: New file.
75437         * modules/xreadlink: Depend on it.
75438         * MODULES.html.sh (func_all_modules): Add readlink.
75439
75440 2003-06-25  Bruno Haible  <bruno@clisp.org>
75441
75442         * m4/readlink.m4: New file.
75443
75444 2003-06-25  Bruno Haible  <bruno@clisp.org>
75445
75446         * lib/readlink.c: New file.
75447
75448 2003-06-22  Karl Berry  <karl@gnu.org>
75449
75450         * config/srclist.txt: update mkinstalldirs from automake.
75451         * config/mkinstalldirs: update.
75452
75453 2003-06-22  Bruno Haible  <bruno@clisp.org>
75454
75455         Portability to mingw32.
75456         * m4/ssize_t.m4: New file, from GNU gettext.
75457         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75458         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75459
75460 2003-06-22  Bruno Haible  <bruno@clisp.org>
75461
75462         * modules/safe-read: Add m4/ssize_t.m4.
75463         * modules/xreadlink: Add m4/ssize_t.m4.
75464
75465 2003-06-20  Bruno Haible  <bruno@clisp.org>
75466
75467         Assume C89, so PARAMS isn't needed.
75468         * lib/unicodeio.h (PARAMS): Remove.
75469         * lib/unicodeio.c: Don't use PARAMS.
75470
75471 2003-06-18  Karl Berry  <karl@gnu.org>
75472
75473         * config/config.{guess,sub}: update from prep.
75474
75475 2003-06-18  Jim Meyering  <jim@meyering.net>
75476
75477         Merge changes from coreutils.
75478         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75479         Remove explicit declarations of xmalloc and realloc.
75480         Include xalloc.h.
75481         (read_utmp): Remove anachronistic cast of xmalloc.
75482
75483 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75484
75485         Assume C89, so PARAMS isn't needed.
75486         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75487         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75488         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75489         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75490         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75491         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75492         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75493         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75494         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75495         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75496         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75497         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75498         no longer needed. Anyway, config.h should always be included before any
75499         other file.
75500
75501 2003-06-11  Simon Josefsson  <jas@extundo.com>
75502
75503         * modules/sysexits: New file.
75504         * MODULES.html.sh (func_all_modules): Add sysexits.
75505
75506 2003-06-11  Simon Josefsson  <jas@extundo.com>
75507
75508         * lib/sysexit_.h: New file.
75509
75510 2003-06-11  Derek Price  <derek@ximbiot.com>
75511
75512         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75513         necessary.
75514
75515 2003-06-11  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/sysexits.m4: New file.
75518
75519 2003-06-10  Simon Josefsson  <jas@extundo.com>
75520
75521         * lib/argp.h: New file, from glibc.
75522         * lib/argp-ba.c: New file, from glibc.
75523         * lib/argp-eexst.c: New file, from glibc.
75524         * lib/argp-fmtstream.c: New file, from glibc.
75525         * lib/argp-fmtstream.h: New file, from glibc.
75526         * lib/argp-fs-xinl.c: New file, from glibc.
75527         * lib/argp-help.c: New file, from glibc.
75528         * lib/argp-namefrob.h: New file, from glibc.
75529         * lib/argp-parse.c: New file, from glibc.
75530         * lib/argp-pv.c: New file, from glibc.
75531         * lib/argp-pvh.c: New file, from glibc.
75532         * lib/argp-xinl.c: New file, from glibc.
75533
75534 2003-06-10  Simon Josefsson  <jas@extundo.com>
75535
75536         * modules/strchrnul: New file.
75537
75538 2003-06-10  Simon Josefsson  <jas@extundo.com>
75539
75540         * modules/argp: New file.
75541
75542 2003-06-10  Simon Josefsson  <jas@extundo.com>
75543
75544         * m4/strchrnul.m4: New file.
75545
75546 2003-06-10  Simon Josefsson  <jas@extundo.com>
75547
75548         * lib/strchrnul.h: New file.
75549         * lib/strchrnul.c: New file.
75550
75551 2003-06-10  Bruno Haible  <bruno@clisp.org>
75552
75553         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75554
75555 2003-06-07  Karl Berry  <karl@gnu.org>
75556
75557         * config/config.{guess,sub}: update from prep.
75558
75559 2003-06-07  Jim Meyering  <jim@meyering.net>
75560
75561         * modules/strtod: Use $(...) notation, not @...@ for
75562         AC_REPLACE'd variables.
75563         * modules/localcharset: Likewise.
75564
75565 2003-06-07  Jim Meyering  <jim@meyering.net>
75566
75567         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75568         in place of my name in the copyright comment.
75569         Remove definition and uses of __P.
75570
75571         From coreutils.
75572         * lib/stat.c: Don't declare xmalloc explicitly.
75573         Instead, include "xalloc.h".
75574         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75575         xrealloc, and xcalloc return values.
75576         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75577         Improve comment.
75578         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75579
75580 2003-06-07  Bruno Haible  <bruno@clisp.org>
75581
75582         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75583         avoid AC_CONFIG_LINKS.
75584         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75585         fnmatch.h, to avoid AC_CONFIG_LINKS.
75586         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75587
75588 2003-06-07  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75591         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75592         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75593         directory.
75594         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75595         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75596         directory.
75597
75598 2003-06-06  Jim Meyering  <jim@meyering.net>
75599
75600         Merge from coreutils.
75601         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75602         Consolidate declarations and initializations of *_base* locals.
75603
75604         Merge from coreutils.
75605         This avoids a core dump on systems without GNU putenv,
75606         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75607         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75608         (unsetenv): New static function, from GNU libc.
75609         (rpl_putenv): Use it.
75610
75611         * lib/modechange.c: Remove trailing blanks.
75612
75613         Merge from coreutils.
75614         * lib/fsusage.c: Remove declaration of statfs.
75615         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75616
75617         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75618
75619 2003-06-06  Jim Meyering  <jim@meyering.net>
75620
75621         * lib/stdbool_.h: Renamed from stdbool.h.in.
75622
75623 2003-06-06  Jim Meyering  <jim@meyering.net>
75624             Bruno Haible  <bruno@clisp.org>
75625
75626         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75627         Adjust Makefile.am snippet not to redirect directly to target.
75628         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75629
75630 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75631
75632         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75633         mismatch, look in future quarters as well as past.  This fixes a
75634         bug when processing fall-backwards gaps immediately after a long
75635         period of daylight-saving time.
75636
75637         * lib/mktime.c: Assume freestanding C89 or better.
75638         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75639         (__P): Remove; not used.
75640         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75641         (mktime, not_equal_tm, print_tm, check_result,
75642         main): Use prototypes.  Use const * where appropriate.
75643         (main): Fix typo in testing code that uncovered by above changes.
75644         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75645
75646 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75649         locale.h, localeconv.  This merges changes from coreutils.
75650
75651         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75652         It can be removed after the next Autoconf is released.
75653         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75654         needed.
75655
75656 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75657
75658         * lib/mktime.c: Fix Debian bug 177940
75659         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75660         (localtime_offset): Now long int, not time_t, because we want it
75661         to be guaranteed to be signed.  All uses changed.
75662         (__mktime_internal): If overflow would occur when adding offset,
75663         don't add it.
75664
75665         Merge 'human' changes from coreutils.  Rewrite to support
75666         locale-specific notations like thousands separators.
75667         * lib/human.c: Simplify authorship notice.
75668         Include human.h immediately after config.h.
75669         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75670         <limits.h>: Do not include, since human.h does.
75671         (SIZE_MAX, UINTMAX_MAX): New macros.
75672         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75673         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75674         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75675         (power_letter): Renamed from suffixes.
75676         (generate_suffix_backwards): Remove.
75677         (adjust_value): Now takes int style (because of human.h changes)
75678         and long double value (for greater precision on some platforms).
75679         (group_number): New function.
75680         (human_readable): Use it.  Use integer options, not enum.
75681         Put the options before the sizes in the arg list.
75682         Support all the new options.
75683         The old human_readable function has been removed;
75684         use inttostr.h instead.
75685         (human_readable, default_block_size, humblock):
75686         Use uintmax_t, not int, for block sizes.
75687         (human_readable_inexact, block_size_types): Remove.
75688         (block_size_opts): New constant.
75689         (human_options): Renamed from human_block_size, with new signature
75690         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75691         * lib/human.h: Add copyright and authorship notice.
75692         Include <limits.h> and <stdbool.h> unconditionally.
75693         (PARAMS): Remove.  All uses removed.
75694         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75695         (enum human_inexact_style): Remove tag; now a nameless enum.
75696         (human_floor, human_ceiling, human_round_to_even): Now have
75697         values 2, 0, 1 rather than -1, 1, 0.
75698         (human_group_digits, human_suppress_point_zero, human_autoscale,
75699         human_base_1024, human_SI, human_B): New constants.
75700         (human_readable_inexact, human_block_size): Remove.
75701         (human_readable): Size args are now uintmax_t, not int.
75702         (human_options): New decl.
75703
75704         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75705         unnecessary now that we assume C89 or better.  This change
75706         imported from coreutils.
75707
75708         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75709         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75710         in the 2003-05-30 sync from glibc.
75711
75712         .h files should stand alone, but we shouldn't include <sys/types.h>
75713         if we can get away with just <stddef.h>.
75714
75715         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75716         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75717         rather than <sys/types.h>, as we merely need size_t.
75718         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75719         to get size_t.
75720         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75721         Include <stdio.h>, to get FILE.
75722         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75723         memcasecmp.h has included <stddef.h> and all we need is size_t.
75724         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75725         our interface, instead of including <sys/types.h>
75726
75727 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75728
75729         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75730         now, as glibc mktime is buggy on non-glibc systems.
75731
75732 2003-06-03  Karl Berry  <karl@gnu.org>
75733
75734         * config/config.sub: update from prep.
75735
75736 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75737
75738         [from coreutils]
75739         Fix some minor time-related bugs with POSIX time arguments.
75740         Some valid time stamps were being rejected (notably -1, and
75741         time stamps before 1900 on 64-bit hosts).  And some invalid
75742         time stamps were being accepted, e.g. September 31.
75743
75744         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75745         that we can return (time_t) -1 successfully.
75746         * lib/posixtm.c: Likewise.
75747         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75748         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75749         (t): Remove static var.
75750         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75751         of static var.  All uses changed.
75752         (year): Do not reject years before 1900; they can occur with
75753         64-bit time_t.
75754         (posix_time_parse): Do not check for out-of-range components;
75755         that is now the caller's responsibility, since our checks were
75756         only approximations.
75757         (posixtime): Use mktime to check for out-of-range components,
75758         since it knows them exactly.
75759         If mktime returns (time_t) -1, check whether an error actually occurred
75760         by invoking localtime on -1.
75761         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75762         posixtime failures better.
75763         Improve the test data (in comments only).
75764
75765 2003-06-02  Karl Berry  <karl@gnu.org>
75766
75767         * config/mkinstalldirs (version): new variable.
75768         (--version): new option.
75769         (usage): improve message.
75770
75771 2003-05-30  Karl Berry  <karl@gnu.org>
75772
75773         * lib/mktime.c: update from libc.
75774
75775 2003-05-30  Bruno Haible  <bruno@clisp.org>
75776
75777         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75778         * config/config.rpath: Upgrade to gettext-0.12.1.
75779
75780 2003-05-30  Bruno Haible  <bruno@clisp.org>
75781
75782         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75783         * m4/nls.m4: New file, from gettext-0.12.1.
75784         * m4/po.m4: New file, from gettext-0.12.1.
75785         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75786
75787 2003-05-30  Bruno Haible  <bruno@clisp.org>
75788
75789         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75790         * lib/localcharset.h: Likewise.
75791         * lib/localcharset.c: Likewise.
75792
75793 2003-05-29  Karl Berry  <karl@gnu.org>
75794
75795         * config/config.rpath: update from gettext.
75796
75797 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75798
75799         Assume the headers required for C89 freestanding compilers.
75800         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75801         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75802         * m4/human.m4 (gl_HUMAN): Likewise.
75803         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75804         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75805         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75806         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75807         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75808         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75809
75810 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75811
75812         Assume the headers required for C89 freestanding compilers.
75813         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75814         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75815         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75816         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75817         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75818         define, since <limits.h> is guaranteed to do that.
75819         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75820         * lib/exclude.c: Include <stdbool.h> unconditionally.
75821         * lib/tempname.c: Include <stddef.h> unconditionally.
75822         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75823         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75824         <stddef.h> does that.
75825         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75826         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75827         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75828         needed.
75829         * lib/xstrtol.c: Likewise.
75830         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75831         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75832
75833         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75834         warnings on some platforms.
75835
75836         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75837         arbitrarily.
75838
75839 2003-05-26  Jim Meyering  <jim@meyering.net>
75840
75841         Merge in a change from coreutils:
75842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75843         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75844         that condition, rather than `-1' which is slightly misleading.
75845         Change the name of the cache variable to have the gl_ prefix.
75846         Prompted by a patch from Richard Dawe for DJGPP.
75847
75848 2003-05-24  Karl Berry  <karl@gnu.org>
75849
75850         * config/config.guess: update from prep.
75851
75852 2003-05-22  Karl Berry  <karl@gnu.org>
75853
75854         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75855
75856 2003-05-20  Karl Berry  <karl@gnu.org>
75857
75858         * config/config.guess: update from prep.
75859
75860 2003-05-18  Karl Berry  <karl@gnu.org>
75861
75862         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75863         might actually be set by the user.
75864
75865         * config/depcomp, install-sh, mdate-sh: update from automake.
75866
75867 2003-05-17  Bruno Haible  <bruno@clisp.org>
75868
75869         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75870         invalid expansion for AC_EGREP_CPP.
75871         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75872         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75873         Suggested by Akim Demaille <akim@epita.fr> in
75874         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75875
75876 2003-05-12  Jim Meyering  <jim@meyering.net>
75877
75878         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75879         the space-padded-by-default conversion specifiers, %e, %k, %l.
75880
75881 2003-05-12  Bruno Haible  <bruno@clisp.org>
75882
75883         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75884         the string is longer than 4 KB.
75885
75886 2003-05-11  Karl Berry  <karl@gnu.org>
75887
75888         * config/config.{guess,sub}: update from prep.
75889
75890 2003-05-09  Bruno Haible  <bruno@clisp.org>
75891
75892         * modules/error: Add m4/strerror_r.m4 to file list.
75893
75894 2003-05-03  Bruno Haible  <bruno@clisp.org>
75895
75896         Upgrade to Unicode-4.0.
75897         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75898         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75899         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75900         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75901         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75902         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75903         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75904         Change width of U+E0100..U+E01EF from 1 to 0.
75905
75906 2003-04-25  Jim Meyering  <jim@meyering.net>
75907
75908         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75909         of type size_t, not int.
75910
75911 2003-04-25  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/copy-file.c: Include <stddef.h>, for size_t.
75914
75915 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75916
75917         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75918         code which expansion is under static control.  Patch imported from
75919         Akim Demaille's patch to Bison; see
75920         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75921
75922 2003-04-14  Bruno Haible  <bruno@clisp.org>
75923
75924         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75925
75926 2003-04-11  Jim Meyering  <jim@meyering.net>
75927
75928         Merge changes from Coreutils.
75929
75930         2003-03-22  Jim Meyering  <jim@meyering.net>
75931
75932         * lib/strftime.c (widen): Cast alloca return value to proper type.
75933
75934         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75935
75936         From GNU libc.
75937         * lib/strftime.c (my_strftime): Handle very large width
75938         specifications for numeric values correctly.  Improve checks for
75939         overflow.
75940
75941         2003-01-19  Jim Meyering  <jim@meyering.net>
75942
75943         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75944         definitions.
75945         (nl_get_alt_digit) [! defined my_strftime]: Define.
75946         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75947         _nl_get_alt_digit and _nl_get_walt_digit.
75948
75949         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75950         libc. These changes have no effect outside of _LIBC.
75951
75952 2003-04-10  Bruno Haible  <bruno@clisp.org>
75953
75954         * modules/findprog: New file.
75955         * MODULES.html.sh (func_all_modules): Add it.
75956
75957 2003-04-10  Bruno Haible  <bruno@clisp.org>
75958
75959         * m4/findprog.m4: New file.
75960         * m4/eaccess.m4: New file.
75961
75962 2003-04-10  Bruno Haible  <bruno@clisp.org>
75963
75964         * lib/findprog.h: New file, from GNU gettext.
75965         * lib/findprog.c: New file, from GNU gettext.
75966
75967 2003-04-05  Jim Meyering  <jim@meyering.net>
75968
75969         Merge changes from Coreutils.
75970
75971         * lib/exclude.h (PARAMS): Remove definition and uses.
75972         * lib/exclude.c: Remove uses of `PARAMS'.
75973
75974         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75975         Add test-cases for DOS filenames. Declare program_name.
75976         (main): Set up program_name.  Patch by Rich Dawe.
75977
75978         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75979         error from mntctl.
75980         Use mntctl's return value to drive the entry-processing loop, since
75981         we can't rely on the value of the vmt_length member in the last
75982         entry.  On some systems doing so could result in exhausting
75983         virtual memory.  Based in part on a patch from Mike Jetzer.
75984
75985 2003-04-04  Bruno Haible  <bruno@clisp.org>
75986
75987         * modules/linebreak: New file.
75988         * MODULES.html.sh (func_all_modules): Add it.
75989
75990 2003-04-04  Bruno Haible  <bruno@clisp.org>
75991
75992         * m4/linebreak.m4: New file.
75993
75994 2003-04-04  Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/linebreak.h: New file, from GNU gettext.
75997         * lib/linebreak.c: New file, from GNU gettext with slight
75998         modifications.
75999         * lib/lbrkprop.h: New file, from GNU gettext.
76000
76001 2003-04-03  Bruno Haible  <bruno@clisp.org>
76002
76003         * modules/utf8-ucs4: New file.
76004         * modules/utf16-ucs4: New file.
76005         * modules/ucs4-utf8: New file.
76006         * modules/ucs4-utf16: New file.
76007         * MODULES.html.sh (func_all_modules): Add them.
76008
76009 2003-04-03  Bruno Haible  <bruno@clisp.org>
76010
76011         * m4/utf-ucs4.m4: New file.
76012         * m4/ucs4-utf.m4: New file.
76013
76014 2003-04-03  Bruno Haible  <bruno@clisp.org>
76015
76016         * lib/utf8-ucs4.h: New file, from GNU gettext.
76017         * lib/utf16-ucs4.h: New file, from GNU gettext.
76018         * lib/ucs4-utf8.h: New file, from GNU gettext.
76019         * lib/ucs4-utf16.h: New file, from GNU gettext.
76020
76021 2003-04-02  Bruno Haible  <bruno@clisp.org>
76022
76023         * modules/binary-io: New file.
76024         * MODULES.html.sh (func_all_modules): Add it.
76025
76026 2003-04-02  Bruno Haible  <bruno@clisp.org>
76027
76028         * lib/binary-io.h: New file, from GNU gettext.
76029
76030 2003-04-01  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/pathname: New file.
76033         * MODULES.html.sh (func_all_modules): Add it.
76034
76035 2003-04-01  Bruno Haible  <bruno@clisp.org>
76036
76037         * lib/pathname.h: New file, from GNU gettext.
76038         * lib/concatpath.c: New file, from GNU gettext.
76039
76040 2003-03-30  Bruno Haible  <bruno@clisp.org>
76041
76042         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76043
76044 2003-03-30  Bruno Haible  <bruno@clisp.org>
76045
76046         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76047         function chown() doesn't exist.
76048
76049 2003-03-28  Bruno Haible  <bruno@clisp.org>
76050
76051         * modules/copy-file: New file.
76052         * MODULES.html.sh (func_all_modules): Add it.
76053
76054 2003-03-28  Bruno Haible  <bruno@clisp.org>
76055
76056         * m4/copy-file.m4: New file.
76057
76058 2003-03-28  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/copy-file.h: New file, from GNU gettext.
76061         * lib/copy-file.c: New file, from GNU gettext.
76062
76063 2003-03-18  Jim Meyering  <jim@meyering.net>
76064
76065         * lib/quote.c (quote_n): Fix typo in comment.
76066
76067 2003-03-18  Bruno Haible  <bruno@clisp.org>
76068
76069         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76070         checking.
76071         * m4/onceonly_2_57.m4: Likewise.
76072
76073 2003-03-17  Bruno Haible  <bruno@clisp.org>
76074
76075         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76076         (m4_quote): Remove macro.
76077         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76078
76079 2003-03-14  Jim Meyering  <jim@meyering.net>
76080
76081         Merge changes from Coreutils.
76082         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76083         to be const, in order to avoid warnings.
76084         (obstack_room): Likewise.
76085         (obstack_empty_p): Likewise.
76086
76087 2003-03-14  Bruno Haible  <bruno@clisp.org>
76088
76089         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76090         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76091
76092 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76093
76094         Merge changes from Bison.
76095         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76096         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76097         when compiling Bison 1.875's `bitset bset = obstack_alloc
76098         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76099         * lib/hash.c: Include <stdbool.h> unconditionally.
76100
76101 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76102
76103         * m4/onceonly.m4 (m4_quote): New macro.
76104         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76105         Quote AC_FOREACH variable-expansions properly.
76106
76107 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76108
76109         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76110
76111 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76112
76113         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76114         Reported by Bruce Becker; see:
76115         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76116
76117 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76118             Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76121         Reported by John Hughes, see
76122         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76123
76124 2003-02-20  Bruno Haible  <bruno@clisp.org>
76125
76126         * MODULES.html.sh (func_all_modules): Add poll.
76127
76128 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76129
76130         * modules/poll: New file.
76131
76132 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76133
76134         * lib/poll_.h: New file.
76135         * lib/poll.c: New file.
76136
76137 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76138
76139         * m4/poll.m4: New file.
76140
76141 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76142
76143         * modules/mathl: New file.
76144
76145 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76146
76147         * lib/mathl.h: New file.
76148         * lib/acosl.c: New file.
76149         * lib/asinl.c: New file.
76150         * lib/atanl.c: New file.
76151         * lib/ceill.c: New file.
76152         * lib/cosl.c: New file.
76153         * lib/expl.c: New file.
76154         * lib/floorl.c: New file.
76155         * lib/frexpl.c: New file.
76156         * lib/ldexpl.c: New file.
76157         * lib/logl.c: New file.
76158         * lib/sincosl.c: New file.
76159         * lib/sinl.c: New file.
76160         * lib/sqrtl.c: New file.
76161         * lib/tanl.c: New file.
76162         * lib/trigl.c: New file.
76163         * lib/trigl.h: New file.
76164
76165 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76166
76167         * m4/mathl.m4: New file.
76168
76169 2003-02-18  Bruno Haible  <bruno@clisp.org>
76170
76171         * MODULES.html.sh (func_all_modules): Add mathl.
76172
76173 2003-02-17  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/mkdtemp: New module.
76176         * MODULES.html.sh (func_all_modules): Add it.
76177
76178 2003-02-17  Bruno Haible  <bruno@clisp.org>
76179
76180         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76181
76182 2003-02-17  Bruno Haible  <bruno@clisp.org>
76183
76184         * lib/mkdtemp.h: New file, from GNU gettext.
76185         * lib/mkdtemp.c: New file, from GNU gettext.
76186
76187 2003-02-02  Jim Meyering  <jim@meyering.net>
76188
76189         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76190         e.g. glibc-2.2.93.
76191
76192 2003-01-31  Bruno Haible  <bruno@clisp.org>
76193
76194         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76195         'rpl_rename'.
76196         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76197         'rpl_strnlen'.
76198         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76199         'rpl_strtod'.
76200         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76201         'rpl_utime'.
76202
76203 2003-01-31  Bruno Haible  <bruno@clisp.org>
76204
76205         * lib/rename.c: #undef rename before defining rpl_rename.
76206         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76207
76208 2003-01-30  Bruno Haible  <bruno@clisp.org>
76209
76210         * modules/vasnprintf, modules/vasprintf: New modules.
76211         * MODULES.html.sh (func_all_modules): Add them.
76212
76213 2003-01-30  Bruno Haible  <bruno@clisp.org>
76214
76215         * m4/signed.m4: New file, from GNU gettext.
76216         * m4/longdouble.m4: New file, from GNU gettext.
76217         * m4/wchar_t.m4: New file, from GNU gettext.
76218         * m4/wint_t.m4: New file, from GNU gettext.
76219         * m4/vasnprintf.m4: New file.
76220         * m4/vasprintf.m4: New file.
76221
76222 2003-01-30  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/printf-args.h: New file, from GNU gettext.
76225         * lib/printf-args.c: New file, from GNU gettext.
76226         * lib/printf-parse.h: New file, from GNU gettext.
76227         * lib/printf-parse.c: New file, from GNU gettext.
76228         * lib/vasnprintf.h: New file, from GNU gettext.
76229         * lib/vasnprintf.c: New file, from GNU gettext.
76230         * lib/asnprintf.c: New file, from GNU gettext.
76231         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76232         * lib/vasprintf.c: New file, from GNU gettext.
76233         * lib/asprintf.c: New file, from GNU gettext.
76234
76235 2003-01-29  Bruno Haible  <bruno@clisp.org>
76236
76237         * modules/stpncpy: New module.
76238         * MODULES.html.sh (func_all_modules): Add it.
76239
76240 2003-01-29  Bruno Haible  <bruno@clisp.org>
76241
76242         * m4/stpncpy.m4: New file.
76243
76244 2003-01-29  Bruno Haible  <bruno@clisp.org>
76245
76246         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76247         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76248
76249 2003-01-28  Bruno Haible  <bruno@clisp.org>
76250
76251         * modules/c-ctype: New module.
76252         * MODULES.html.sh (func_all_modules): Add it.
76253
76254 2003-01-28  Bruno Haible  <bruno@clisp.org>
76255
76256         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76257         Paul Eggert.
76258         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76259         Paul Eggert.
76260
76261 2003-01-27  Bruno Haible  <bruno@clisp.org>
76262
76263         * modules/xsetenv: New module.
76264         * MODULES.html.sh (func_all_modules): Add it.
76265
76266 2003-01-27  Bruno Haible  <bruno@clisp.org>
76267
76268         * lib/xsetenv.h: New file, from GNU gettext.
76269         * lib/xsetenv.c: New file, from GNU gettext.
76270
76271 2003-01-23  Jim Meyering  <jim@meyering.net>
76272
76273         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76274         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76275
76276 2003-01-23  Bruno Haible  <bruno@clisp.org>
76277
76278         * modules/minmax: New module.
76279         * MODULES.html.sh (func_all_modules): Add it.
76280
76281 2003-01-23  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76284         Eggert.
76285
76286 2003-01-22  Bruno Haible  <bruno@clisp.org>
76287
76288         * modules/exit: New module.
76289         * MODULES.html.sh (func_all_modules): Add it.
76290
76291 2003-01-22  Bruno Haible  <bruno@clisp.org>
76292
76293         * lib/exit.h: New file, from GNU gettext.
76294
76295 2003-01-19  Bruno Haible  <bruno@clisp.org>
76296
76297         * gnulib-tool: Recognize option --extract-maintainer.
76298         (func_get_maintainer): New function.
76299         * modules/*: Add Maintainer entry.
76300
76301 2003-01-16  Jim Meyering  <jim@meyering.net>
76302
76303         * m4/regex.m4: The `regex' struct is both input and output.
76304         Initialize it before each use.  Patch by Tim Waugh.
76305
76306 2003-01-16  Bruno Haible  <bruno@clisp.org>
76307
76308         * MODULES.html.sh: Add a table of contents. Add the module name as
76309         leftmost column. Add hyperlinks.
76310
76311 2003-01-15  Bruno Haible  <bruno@clisp.org>
76312
76313         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76314
76315 2003-01-15  Bruno Haible  <bruno@clisp.org>
76316
76317         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76318         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76319         suffix.
76320
76321 2003-01-15  Bruno Haible  <bruno@clisp.org>
76322
76323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76324
76325 2003-01-15  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76328         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76329
76330 2003-01-14  Jim Meyering  <jim@meyering.net>
76331
76332         * lib/same.c (same_name): Tweak a comment.
76333
76334 2003-01-14  Bruno Haible  <bruno@clisp.org>
76335
76336         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76337         when a string comparison is sufficient.
76338
76339 2003-01-14  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76342         'unsigned int'.
76343
76344 2003-01-14  Bruno Haible  <bruno@clisp.org>
76345
76346         * lib/hash-pjw.c: Add comment about low quality of this function.
76347
76348 2003-01-13  Bruno Haible  <bruno@clisp.org>
76349
76350         * modules/stpcpy: Distribute lib/stpcpy.h.
76351         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76352
76353 2003-01-13  Bruno Haible  <bruno@clisp.org>
76354
76355         * modules/*: Add a description.
76356         * modules/strpbrk: Fix Makefile.am snippet.
76357         * modules/strtoimax: Fix dependencies.
76358         * modules/strtoumax: Likewise.
76359
76360 2003-01-13  Bruno Haible  <bruno@clisp.org>
76361
76362         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76363         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76364         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76365
76366 2003-01-13  Bruno Haible  <bruno@clisp.org>
76367
76368         * gnulib-tool (func_create_testdir): Store config/* files in the main
76369         directory.
76370         * config.rpath: Move to ...
76371         * config/config.rpath: ... here.
76372         * modules/gettext: Contains config/config.rpath, not config.rpath.
76373         * modules/iconv: Likewise.
76374
76375 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76376
76377         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76378         to avoid collisions with libcurses and libreadline.
76379
76380         * m4/getstr.m4: Remove.
76381         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76389         * lib/getstr.h, getstr.c: Remove.
76390         * lib/getline.c: Include "getline.h", to check interface.
76391         Move body of old getstr.c here: this defines MIN_CHUNK and
76392         declares getdelim2, which is renamed from getstr.
76393         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76394
76395         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76396         All uses changed.
76397         * lib/linebuffer.h: Likewise.
76398         (readline): Remove backward-compatibility macro.
76399
76400 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76401
76402         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76403         to avoid collisions with libcurses and libreadline.
76404         * getstr: Remove.
76405         * MODULES.html.sh: Remove getstr.
76406         * modules/getline: Depend on unlocked-io, not getstr.
76407
76408 2003-01-12  Jim Meyering  <jim@meyering.net>
76409
76410         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76411
76412 2003-01-10  Bruno Haible  <bruno@clisp.org>
76413
76414         * modules/alloca: Change Makefile.am requirements. Simplify Include
76415         requirements. Add lib/alloca_.h to file list.
76416
76417 2003-01-10  Bruno Haible  <bruno@clisp.org>
76418
76419         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76420
76421 2003-01-10  Bruno Haible  <bruno@clisp.org>
76422
76423         * lib/alloca_.h: New file.
76424         * lib/getdate.y: Unconditionally include alloca.h.
76425         * lib/makepath.c: Likewise.
76426         * lib/setenv.c: Likewise.
76427         * lib/userspec.c: Likewise.
76428
76429 2003-01-09  Karl Berry  <karl@gnu.org>
76430
76431         * MODULES.html.sh: include `dirname $0` in PATH, to find
76432         gnulib-tool.
76433
76434 2003-01-09  Bruno Haible  <bruno@clisp.org>
76435
76436         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76437         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76438
76439 2003-01-09  Bruno Haible  <bruno@clisp.org>
76440
76441         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76442
76443 2003-01-09  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/stdbool.h.in: New file.
76446
76447 2003-01-09  Bruno Haible  <bruno@clisp.org>
76448
76449         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76450         * MODULES.html.sh: Likewise.
76451
76452 2003-01-08  Jim Meyering  <jim@meyering.net>
76453
76454         * lib/full-write.c: Undefine and define-away `const' after inclusion
76455         of errno.h, not before.  Suggestion from Bruno Haible.
76456
76457 2003-01-08  Bruno Haible  <bruno@clisp.org>
76458
76459         * modules/full-read: Depend on full-write.
76460
76461 2003-01-08  Bruno Haible  <bruno@clisp.org>
76462
76463         * lib/safe-read.c: Include specification header first, to ensure its
76464         selfcontainedness.
76465         * lib/full-write.c: Likewise.
76466
76467 2003-01-07  Jim Meyering  <jim@meyering.net>
76468
76469         * lib/full-write.c: Rework so that it may serve to define full_read,
76470         too.
76471         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76472
76473 2003-01-07  Bruno Haible  <bruno@clisp.org>
76474
76475         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76476         <inttypes.h>.
76477         * lib/xstrtol.h: Likewise.
76478         * lib/xstrtoimax.c: Likewise.
76479         * lib/xstrtoumax.c: Likewise.
76480         * lib/human.h: Likewise.
76481
76482         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76483         on systems that have <inttypes.h> but not <stdint.h>.
76484
76485 2003-01-07  Bruno Haible  <bruno@clisp.org>
76486
76487         * MODULES.html.sh: Add copyright notice.
76488         (missed_files): Omit CVS directory entries.
76489         (func_module): Make it work with sed-3.02.
76490         * MODULES.txt: Remove file.
76491
76492 2003-01-06  Jim Meyering  <jim@meyering.net>
76493
76494         * lib/version-etc.c: Update year in translatable copyright string.
76495
76496 2003-01-03  Karl Berry  <karl@gnu.org>
76497
76498         * config/config.{guess,sub}: update from prep.
76499
76500 2003-01-02  Karl Berry  <karl@gnu.org>
76501
76502         * doc/COPYING.DOC: belatedly updated to 1.2.
76503
76504 2003-01-01  Karl Berry  <karl@gnu.org>
76505
76506         * gnulib-tool (func_verify_module): report module name $module in
76507         error message, not $1.
76508         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76509         be created, only if it doesn't exist.
76510         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76511
76512 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76513
76514         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76515
76516 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76517
76518         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76519         memcmp if strcoll doesn't work.
76520
76521 2002-12-31  Bruno Haible  <bruno@clisp.org>
76522
76523         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76524         nonempty.
76525
76526 2002-12-31  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/memcoll.c (STRCOLL): New macro.
76529         (memcoll): Use it.
76530
76531 2002-12-31  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/localcharset.h: New file.
76534         * lib/localcharset.c: Include it.
76535         * lib/unicodeio.c: Likewise.
76536
76537 2002-12-31  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76540         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76541
76542 2002-12-31  Bruno Haible  <bruno@clisp.org>
76543
76544         * lib/getline.h: Include <stddef.h>, for size_t.
76545
76546         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76547         * lib/unicodeio.c: Don't include <stddef.h>.
76548
76549 2002-12-31  Bruno Haible  <bruno@clisp.org>
76550
76551         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76552         HAVE_TM_ZONE.
76553
76554 2002-12-24  Karl Berry  <karl@gnu.org>
76555
76556         * config/config.guess: update from prep.
76557
76558 2002-12-24  Bruno Haible  <bruno@clisp.org>
76559
76560         General infrasructure.
76561         * m4/README: Rewritten.
76562         * m4/onceonly.m4: New file.
76563         * m4/onceonly_2_57.m4: New file.
76564
76565         Module atexit.
76566         * m4/atexit.m4: New file.
76567
76568         Module strtod.
76569         * m4/strtod.m4: New file.
76570
76571         Module strtol.
76572         * m4/strtol.m4: New file.
76573
76574         Module strtoul.
76575         * m4/strtoul.m4: New file.
76576
76577         Module memchr.
76578         * m4/memchr.m4: New file.
76579
76580         Module memcmp.
76581         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76582         (jm_FUNC_MEMCMP): Invoke it.
76583
76584         Module memcpy.
76585         * m4/memcpy.m4: New file.
76586
76587         Module memmove.
76588         * m4/memmove.m4: New file.
76589
76590         Module memset.
76591         * m4/memset.m4: New file.
76592
76593         Module strcspn.
76594         * m4/strcspn.m4: New file.
76595
76596         Module strpbrk.
76597         * m4/strpbrk.m4: New file.
76598
76599         Module strstr.
76600         * m4/strstr.m4: New file.
76601
76602         Module strerror.
76603         * m4/strerror.m4: New file.
76604
76605         Module mktime.
76606         * m4/mktime.m4: Renamed from jm-mktime.m4.
76607         (gl_PREREQ_MKTIME): New macro.
76608         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76609
76610         Module malloc.
76611         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76612         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76613         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76614
76615         Module realloc.
76616         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76617         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76618         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76619
76620         Module strftime.
76621         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76622         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76623         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76624         gl_TM_GMTOFF.
76625         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76626
76627         Module xalloc.
76628         * m4/xalloc.m4: New file.
76629
76630         Module alloca.
76631         * m4/alloca.m4: New file.
76632
76633         Module putenv.
76634         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76635         (jm_FUNC_PUTENV): Invoke it.
76636
76637         Module setenv.
76638         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76639         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76640         when invoked twice.
76641         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76642         gt_FUNC_SETENV.
76643
76644         Module memrchr.
76645         * m4/memrchr.m4: New file.
76646
76647         Module stpcpy.
76648         * m4/stpcpy.m4: New file.
76649
76650         Module strcase.
76651         * m4/strcase.m4: New file.
76652
76653         Module strdup.
76654         * m4/strdup.m4: New file.
76655
76656         Module strnlen.
76657         * m4/strnlen.m4: New file.
76658
76659         Module strndup.
76660         * m4/strndup.m4: New file.
76661
76662         Module xstrtod.
76663         * m4/xstrtod.m4: New file.
76664
76665         Module xstrtol.
76666         * m4/xstrtol.m4: New file.
76667
76668         Module getdate.
76669         * m4/getdate.m4: New file.
76670
76671         Module unlocked-io.
76672         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76673         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76674         * m4/jm-glibc-io.m4n: Remove file.
76675
76676         Module long-options.
76677         * m4/long-options.m4: New file.
76678
76679         Module md5.
76680         * m4/md5.m4: New file.
76681
76682         Module sha.
76683         * m4/sha.m4: New file.
76684
76685         Module getstr.
76686         * m4/getstr.m4: New file.
76687
76688         Module getline.
76689         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76690         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76691         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76692         simply getline. Infoke gl_PREREQ_GETLINE.
76693
76694         Module obstack.
76695         * m4/obstack.m4: New file.
76696
76697         Module hash.
76698         * m4/hash.m4: New file.
76699
76700         Module readtokens.
76701         * m4/readtokens.m4: New file.
76702
76703         Module strverscmp.
76704         * m4/strverscmp.m4: New file.
76705
76706         Module stdbool.
76707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76708         OSF/1.
76709
76710         Module strtoll.
76711         * m4/strtoll.m4: New file.
76712
76713         Module strtoull.
76714         * m4/strtoull.m4: New file.
76715
76716         Module strtoimax.
76717         * m4/strtoimax.m4: New file.
76718
76719         Module strtoumax.
76720         * m4/strtoumax.m4: New file.
76721
76722         Module xstrtoimax.
76723         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76724         jm_AC_PREREQ_XSTRTOIMAX.
76725         Moved the strtol prerequisites to strtol.m4.
76726         Moved the strtoll prerequisites to strtoll.m4.
76727         Moved the strtoimax prerequisites to strtoimax.m4.
76728
76729         Module xstrtoumax.
76730         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76731         jm_AC_PREREQ_XSTRTOUMAX.
76732         Moved the strtoul prerequisites to strtoul.m4.
76733         Moved the strtoull prerequisites to strtoull.m4.
76734         Moved the strtoumax prerequisites to strtoumax.m4.
76735
76736         Module chown.
76737         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76738         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76739
76740         Module dup2.
76741         * m4/dup2.m4: New file.
76742
76743         Module ftruncate.
76744         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76745         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76746
76747         Module getgroups.
76748         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76749         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76750
76751         Module gettimeofday.
76752         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76753         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76754         gl_PREREQ_GETTIMEOFDAY.
76755
76756         Module mkdir.
76757         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76758         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76759
76760         Module mkstemp.
76761         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76762         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76763         jm_AC_TYPE_UINTMAX_T.
76764         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76765
76766         Module stat.
76767         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76768         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76769
76770         Module lstat.
76771         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76772         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76773
76774         Module timespec.
76775         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76776         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76777         * m4/st_mtim.m4: Indentation.
76778
76779         Module nanosleep.
76780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76781         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76782         gl_PREREQ_NANOSLEEP.
76783
76784         Module regex.
76785         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76786         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76787         (gl_REGEX): New macro.
76788
76789         Module rename.
76790         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76791         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76792
76793         Module rmdir.
76794         * m4/rmdir.m4: New file.
76795
76796         Module utime.
76797         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76798         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76799         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76800
76801         Module dirname.
76802         * m4/dirname.m4: New file.
76803
76804         Module getopt.
76805         * m4/getopt.m4: New file.
76806
76807         Module unistd-safer.
76808         * m4/unistd-safer.m4: New file.
76809
76810         Module fnmatch.
76811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76812         declaration.
76813         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76814         (gl_FUNC_FNMATCH_POSIX): New macro.
76815         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76816         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76817         simply fnmatch.
76818
76819         Module exclude.
76820         * m4/exclude.m4: New file.
76821
76822         Module human.
76823         * m4/human.m4: New file.
76824
76825         Module acl.
76826         * m4/acl.m4: Nop.
76827
76828         Module backupfile.
76829         * m4/backupfile.m4: New file.
76830         * m4/d-ino.m4: Indentation.
76831
76832         Module fsusage.
76833         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76834         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76835         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76836
76837         Module dirfd.
76838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76839         requirements.
76840
76841         Module euidaccess.
76842         * m4/euidaccess.m4: New file.
76843
76844         Module file-type.
76845         * m4/file-type.m4: New file.
76846
76847         Module fileblocks.
76848         * m4/fileblocks.m4: New file.
76849
76850         Module filemode.
76851         * m4/filemode.m4: New file.
76852
76853         Module isdir.
76854         * m4/isdir.m4: New file.
76855
76856         Module lchown.
76857         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76858         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76859
76860         Module makepath.
76861         * m4/makepath.m4: New file.
76862
76863         Module modechange.
76864         * m4/modechange.m4: New file.
76865
76866         Module mountlist.
76867         * m4/mountlist.m4: New file.
76868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76869         Indentation.
76870
76871         Module path-concat.
76872         * m4/path-concat.m4: New file.
76873
76874         Module pathmax.
76875         * m4/pathmax.m4: New file.
76876
76877         Module same.
76878         * m4/same.m4: New file.
76879
76880         Module save-cwd.
76881         * m4/save-cwd.m4: New file.
76882
76883         Module savedir.
76884         * m4/savedir.m4: New file.
76885
76886         Module xgetcwd.
76887         * m4/xgetcwd.m4: New file.
76888         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76889
76890         Module xreadlink.
76891         * m4/xreadlink.m4: New file.
76892
76893         Module safe-read.
76894         * m4/safe-read.m4: New file.
76895
76896         Module safe-write.
76897         * m4/safe-write.m4: New file.
76898
76899         Module closeout.
76900         * m4/closeout.m4: New file.
76901
76902         Module stdio-safer.
76903         * m4/stdio-safer.m4: New file.
76904
76905         Module getpass.
76906         * m4/getpass.m4: New file.
76907
76908         Module getugroups.
76909         * m4/getugroups.m4: New file.
76910
76911         Module group-member.
76912         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76913         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76914
76915         Module idcache.
76916         * m4/idcache.m4: New file.
76917
76918         Module userspec.
76919         * m4/userspec.m4: New file.
76920
76921         Module gettime.
76922         * m4/clock_time.m4: New file.
76923         * m4/gettime.m4: New file.
76924
76925         Module settime.
76926         * m4/settime.m4: New file.
76927
76928         Module posixtm.
76929         * m4/posixtm.m4: New file.
76930
76931         Module gethostname.
76932         * m4/gethostname.m4: New file.
76933
76934         Module canon-host.
76935         * m4/canon-host.m4: New file.
76936
76937         Module gettext.
76938         * m4/codeset.m4: New file, from gettext-0.11.5.
76939         * m4/gettext.m4: New file, from gettext-0.11.5.
76940         * m4/glibc21.m4: New file, from gettext-0.11.5.
76941         * m4/iconv.m4: New file, from gettext-0.11.5.
76942         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76943         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76944         * m4/inttypes.m4: New file, from gettext-0.11.5.
76945         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76946         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76947         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76948         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76949         * m4/lib-link.m4: New file, from gettext-0.11.5.
76950         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76951         * m4/progtest.m4: New file, from gettext-0.11.5.
76952         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76953         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76954         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76955
76956         Module localcharset.
76957         * m4/localcharset.m4: New file.
76958
76959         Module hard-locale.
76960         * m4/hard-locale.m4: New file.
76961
76962         Module mbswidth.
76963         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76964         onceonly macros.
76965         * m4/mbrtowc.m4: Add comment.
76966
76967         Module memcasecmp.
76968         * m4/memcasecmp.m4: New file.
76969
76970         Module memcoll.
76971         * m4/memcoll.m4: New file.
76972
76973         Module unicodeio.
76974         * m4/unicodeio.m4: New file.
76975
76976         Module rpmatch.
76977         * m4/rpmatch.m4: New file.
76978
76979         Module yesno.
76980         * m4/yesno.m4: New file.
76981
76982         Module exitfail.
76983         * m4/exitfail.m4: New file.
76984
76985         Module c-stack.
76986         * m4/c-stack.m4 (gl_C_STACK): New macro.
76987         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76988
76989         Module error.
76990         * m4/error.m4 (gl_ERROR): New macro.
76991         (jm_PREREQ_ERROR): Use onceonly macros.
76992
76993         Module fatal.
76994         * m4/fatal.m4: New file.
76995
76996         Module getloadavg.
76997         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76998         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76999
77000         Module getpagesize.
77001         * m4/getpagesize.m4: New file.
77002
77003         Module getusershell.
77004         * m4/getusershell.m4: New file.
77005
77006         Module physmem.
77007         * m4/physmem.m4: New file.
77008
77009         Module posixver.
77010         * m4/posixver.m4: New file.
77011
77012         Module quotearg.
77013         * m4/quotearg.m4: New file.
77014
77015         Module quote.
77016         * m4/quote.m4: New file.
77017
77018         Module readutmp.
77019         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77020
77021         Module sig2str.
77022         * m4/sig2str.m4: New file.
77023
77024         Other.
77025         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77026         ulonglong.m4.
77027         * m4/intmax_t.m4: New file.
77028         * m4/d-type.m4: Indentation.
77029         * m4/jm-macros.m4: Update.
77030         * m4/prereq.m4 (jm_PREREQ): Update.
77031         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77032         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77033         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77034         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77035         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77036         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77037         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77038         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77039         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77040         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77041         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77042         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77043         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77044         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77045         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77046         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77047         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77048         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77049         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77050
77051 2002-12-24  Bruno Haible  <bruno@clisp.org>
77052
77053         * MODULES.txt: Update according to m4/ changes.
77054
77055         Module gettext.
77056         * config.rpath: New file, from gettext-0.11.5.
77057
77058         * modules/*: New module descriptions.
77059         * gnulib-tool: New file.
77060         * MODULES.html.sh: New file.
77061
77062 2002-12-21  Karl Berry  <karl@gnu.org>
77063
77064         * doc/fdl.texi: update to version 1.2.
77065
77066 2002-12-19  Karl Berry  <karl@gnu.org>
77067
77068         * config/config.guess: update from prep.
77069
77070 2002-12-18  Bruno Haible  <bruno@clisp.org>
77071
77072         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77073         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77074
77075 2002-12-17  Bruno Haible  <bruno@clisp.org>
77076
77077         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77078         stdlib.h, string.h.
77079
77080 2002-12-17  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/canon-host.c (strdup): Remove unused declaration.
77083
77084         * lib/fsusage.c: Include full_read.h.
77085         (get_fs_usage): Use full_read instead of safe_read.
77086
77087         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77088
77089 2002-12-12  Karl Berry  <karl@gnu.org>
77090
77091         * config/config.guess: update from prep.
77092
77093 2002-12-11  Bruno Haible  <bruno@clisp.org>
77094
77095         * m4/setenv.m4: New file, from gettext-0.11.5.
77096
77097 2002-12-11  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77100         not unsetenv().
77101         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77102         modifications:
77103
77104         2002-12-11  Bruno Haible  <bruno@clisp.org>
77105
77106                 * setenv.c (alloca): Fall back to malloc.
77107                 (freea): New macro.
77108                 (setenv): Use freea() to free memory allocated with alloca().
77109
77110         2002-11-13  Bruno Haible  <bruno@clisp.org>
77111
77112                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77113                 function declarations.
77114                 * unsetenv.c (unsetenv): Likewise.
77115
77116         2002-03-04  Bruno Haible  <bruno@clisp.org>
77117
77118                 Portability to AIX 4.3.3.
77119                 * unsetenv.c: New file, extracted from setenv.c.
77120                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77121
77122         2001-12-20  Bruno Haible  <bruno@clisp.org>
77123
77124                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77125                 use malloc instead. For SunOS 4.
77126
77127         2001-12-11  Bruno Haible  <bruno@clisp.org>
77128
77129                 * setenv.c: Declare alloca.
77130                 (compar_fn_t): New typedef.
77131                 (KNOWN_VALUE, STORE_VALUE): Use it.
77132
77133         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77134         setenv.h.
77135
77136 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77137
77138         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77139         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77140         Choose values that are less likely to collide with system fnmatch
77141         options.
77142         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77143         defined (e.g., a pure POSIX system).
77144         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77145         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77146
77147 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77148
77149         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77150         a pain in practice to deal with generated m4 files.  This change
77151         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77152
77153         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77154         and jm-glibc-io.m4, as they are no longer a special case.
77155         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77156         kludge and the auto-generation stuff.  Check only whether the
77157         functions are declared, not whether they exist, since older hosts
77158         that don't declare the functions can't use the optimization anyway.
77159
77160 2002-12-06  Jim Meyering  <jim@meyering.net>
77161
77162         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77163
77164         Merge in changes from libc's misc/error.c, in preparation
77165         for the merge of gnulib's changes back into libc.
77166
77167         * lib/error.c (_): Define only if not already defined.
77168         Move definition to follow all #include directives.
77169         Include unlocked-io.h only if !_LIBC.
77170         [_LIBC]: Include <libio/libioP.h>.
77171         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77172         (fflush): Tweak definition to use INTUSE.
77173         (putc): Define.
77174
77175 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77176
77177         * lib/alloca.c [defined emacs]: Include "lisp.h".
77178         (xalloc_die) [defined emacs]: New macro.
77179         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77180         [! defined emacs]: Include <xalloc.h>.
77181         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77182         (pointer): Typedef to POINTER_TYPE *.
77183         (malloc): Remove decl; we now always use xmalloc.
77184         (alloca): Use old-style definition, since Emacs needs this.
77185         Check for arithmetic overflow when computing combined size.
77186
77187 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77188
77189         Do not generate unlocked-io.h automatically, since it's easier to
77190         maintain it by hand.
77191
77192         * lib/unlocked-io.h: New file, from GNU diffutils,
77193         but with proper copyright notice and attribution.
77194         * lib/gen-uio: Remove.
77195         * lib/Makefile.am: Add copyright notice.
77196         (libfetish_a_SOURCES): Add unlocked-io.h.
77197         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77198         (DISTCLEANFILES, io_functions): Remove macros.
77199         (EXTRA_DIST): Remove gen_uio.
77200         (unlocked-io.h): Remove rule.
77201
77202 2002-12-04  Jim Meyering  <jim@meyering.net>
77203
77204         Reflect the fact that stat.c and lstat.c are no longer generated.
77205         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77206         (DISTCLEANFILES): Likewise.
77207         (EXTRA_DIST): Likewise.
77208         (all_local): Don't depend on stat.c or lstat.c.
77209         (stat.c, lstat.c): Remove rules.
77210         (EXTRA_DIST): Remove xstat.in.
77211
77212         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77213         * lib/stat.c: New file.  Contents mostly from xstat.in.
77214         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77215         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77216
77217         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77218         too.
77219         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77220
77221 2002-12-03  Jim Meyering  <jim@meyering.net>
77222
77223         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77224         but not semantics, to minimize the differences between these two files.
77225         (safe_read): Change comment to mention SAFE_READ_ERROR.
77226
77227         * lib/safe-read.c (IS_EINTR): Define.
77228         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77229
77230 2002-12-02  Jim Meyering  <jim@meyering.net>
77231
77232         * lib/safe-read.c (EINTR): Define.
77233         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77234         (INT_MAX): Provide fallback.
77235         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77236
77237         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77238
77239 2002-12-02  Bruno Haible  <bruno@clisp.org>
77240
77241         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77242         Define, taken from safe-read.c.
77243         (INT_MAX): Provide fallback.
77244         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77245         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77246
77247         * lib/safe-read.c (EINTR): Remove definition.
77248         (safe_read): Don't use EINTR if it is absent.
77249
77250 2002-12-01  Jim Meyering  <jim@meyering.net>
77251
77252         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77253         zero.
77254         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77255
77256 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77257
77258         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77259         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77260         with `if (! (value < limit)) abort ();', for readability.
77261
77262 2002-11-26  Karl Berry  <karl@gnu.org>
77263
77264         * lib/strdup.c: copy from libc again, with jim's ok.
77265         * lib/.cppi-disable: re-add strdup.c
77266
77267 2002-11-25  Karl Berry  <karl@gnu.org>
77268
77269         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77270         instead of "strtol.c".
77271
77272 2002-11-25  Karl Berry  <karl@gnu.org>
77273
77274         * config/install-sh: update from automake for variable quoting, $0 in
77275         error msgs, etc.
77276
77277         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77278         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77279         entry.
77280
77281 2002-11-25  Jim Meyering  <jim@meyering.net>
77282
77283         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77284
77285 2002-11-24  Karl Berry  <karl@gnu.org>
77286
77287         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77288         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77289
77290 2002-11-24  Jim Meyering  <jim@meyering.net>
77291
77292         Update from coreutils:
77293
77294         * lib/mktime.c: Merge in changes from libc.
77295
77296         Avoid a link-time failure on some Linux systems.
77297         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77298         (otherwise).
77299         (__mon_yday): Declare with the STATIC attribute.
77300         (__mktime_internal): Likewise.
77301         Based on a report from Greg Schafer.
77302
77303 2002-11-23  Jim Meyering  <jim@meyering.net>
77304
77305         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77306         Use `unsigned', not `int', as type of index.
77307
77308         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77309
77310         * lib/fsusage.c: Remove unneeded parentheses around operands of
77311         `defined'.
77312
77313 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77314
77315         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77316         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77317         so that we can be included first.
77318         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77319         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77320         No need to include stddef.h or sys/types.h any more.
77321         Surround local include files with "", not "<>".
77322         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77323         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77324         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77325         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77326         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77327         (ISPRINT): Remove; no longer needed now that we assume C89.
77328
77329         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77330         Preserve errno.
77331
77332         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77333         quotearg_char): Use SIZE_MAX rather than
77334         (size_t) -1 when we are talking about "infinity".
77335
77336         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77337
77338 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77339
77340         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77341         hint that one should use `if (! x) abort ();' rather than `assert
77342         (x);', and anyway it's one less thing to worry about configuring.
77343         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77344         hash_rehash, hash_insert): Use abort rather than assert.
77345
77346 2002-11-22  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/safe-read.h: Assume C89. Add comments.
77349         (safe_read): Change return type to size_t.
77350         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77351         byte counts > SSIZE_MAX correctly.
77352         * lib/safe-write.h: New file.
77353         * lib/safe-write.c: New file.
77354         * lib/full-read.h: New file.
77355         * lib/full-read.c: New file.
77356         * lib/full-write.h: Assume C89. Add comments.
77357         * lib/full-write.c: Include safe-write.h.
77358         (full_write): Rewritten to use safe_write.
77359         Suggested by Jim Meyering and Paul Eggert.
77360
77361 2002-11-21  Jim Meyering  <jim@meyering.net>
77362
77363         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77364
77365         Merge in changes from the coreutils.
77366
77367         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77368         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77369         <stdint.h>.
77370         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77371         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77372         int.  Work more efficiently if X is the same width as uintmax_t.
77373         Do not compare X to -1, to avoid bogus compiler warning.
77374         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77375         Don't assume that f_frsize and f_bsize are the same type.
77376
77377         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77378         warning on FreeBSD.
77379
77380         * lib/makepath.c (make_path): Restore umask *before* creating the final
77381         component.
77382         (make_path): Minor reformatting.
77383
77384         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77385         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77386         HAVE_MALLOC/HAVE_REALLOC.
77387
77388         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77389         dummy ones.  At least on GNU/Linux systems, `auto' means something
77390         else.
77391         From Michael Stone.
77392
77393 2002-11-21  Bruno Haible  <bruno@clisp.org>
77394
77395         Remove case insensitive option matching.
77396         * lib/argmatch.h (argcasematch): Remove declaration.
77397         (ARGCASEMATCH): Remove macro.
77398         (__xargmatch_internal): Remove case_sensitive argument.
77399         (XARGMATCH): Update.
77400         (XARGCASEMATCH): Remove macro.
77401         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77402         case_sensitive argument.
77403         (argcasematch): Remove function.
77404         (__xargmatch_internal): Remove case_sensitive argument.
77405         (main): Use XARGMATCH instead of XARGCASEMATCH.
77406
77407         * lib/xmalloc.c: Change compile-time error message. Add comment about
77408         required autoconf version.
77409
77410 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77411
77412         Merge argmatch cleanups from Bison.  Assume C89.
77413
77414         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77415         Include stdlib.h, for EXIT_FAILURE.
77416         Always include <string.h>, since we assume C89.
77417         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77418         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77419         Include <stddef.h> instead, since it's all we need for size_t.
77420         (PARAMS): Remove.  All uses removed.
77421         (ARRAY_CARDINALITY): Do not bother to #undef.
77422         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77423         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77424         Remove unnecessary parentheses.
77425         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77426         Insert necessary parentheses.
77427         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77428         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77429
77430 2002-11-19  Bruno Haible  <bruno@clisp.org>
77431
77432         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77433         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77434
77435         * lib/mbswidth.h (PARAMS): Remove macro.
77436         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77437         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77438
77439         * lib/gcd.h (PARAMS): Remove macro.
77440         (gcd): Use ANSI C function declarations.
77441         * lib/gcd.c (gcd): Likewise.
77442
77443 2002-11-15  Bruno Haible  <bruno@clisp.org>
77444
77445         * lib/strcspn.c: Include <stddef.h>.
77446         (strcspn): Use ANSI C function declaration. Change return type to
77447         size_t. Use NULL.
77448         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77449         (strpbrk): Use NULL.
77450         * lib/strpbrk.h (PARAMS): Remove macro.
77451         (strpbrk): Use ANSI C function declaration.
77452         * lib/strstr.c: Don't include <sys/types.h>.
77453         * lib/strstr.h (PARAMS): Remove macro.
77454         (strstr): Use ANSI C function declarations.
77455
77456 2002-11-14  Karl Berry  <karl@gnu.org>
77457
77458         * config/mkinstalldirs: `do' on separate line, instead of
77459         `for var; do'.
77460
77461 2002-11-06  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77464         * lib/gcd.c (gcd): Likewise.
77465
77466 2002-11-05  Bruno Haible  <bruno@clisp.org>
77467
77468         * lib/gcd.h: New file, from gettext-0.11.5.
77469         * lib/gcd.c: New file, from gettext-0.11.5.
77470
77471 2002-11-05  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77474         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77475         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77476         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77477
77478         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77479         <libintl.h>.
77480         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77481         <libintl.h>.
77482
77483         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77484         * lib/human.c: Include gettext.h instead of <libintl.h>.
77485         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77486         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77487         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77488         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77489         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77490         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77491         (textdomain): Remove definition.
77492         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77493
77494         * lib/long-options.c: Remove include of <libintl.h> and definition of
77495         _.
77496         * lib/same.c: Remove include of <libintl.h> and definition of _.
77497
77498 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77499
77500         * lib/config.charset: A few additions for Solaris.
77501
77502 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77503
77504         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77505         * lib/localcharset.c (locale_charset): Declare as extern "C".
77506
77507 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77508
77509         * lib/config.charset: msdos in uk_UA uses CP1125.
77510
77511 2002-11-04  Bruno Haible  <bruno@clisp.org>
77512
77513         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77514         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77515         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77516         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77517         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77518
77519 2002-11-04  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/localcharset.c (locale_charset): Don't return an empty string.
77522
77523 2002-11-04  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77526         aliases.
77527
77528 2002-11-04  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/config.charset: Update for newest glibc. Add canonical names
77531         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77532
77533 2002-11-04  Bruno Haible  <bruno@clisp.org>
77534
77535         * lib/config.charset: Add support for NetBSD.
77536
77537 2002-11-04  Bruno Haible  <bruno@clisp.org>
77538
77539         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77540
77541 2002-11-01  Bruno Haible  <bruno@clisp.org>
77542
77543         * configure.in: Add AC_CONFIG_AUX_DIR call.
77544         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77545         test/Makefile.
77546         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77547
77548 2002-09-28  Karl Berry  <karl@gnu.org>
77549
77550         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77551         installed automake until the next release, since changes have been
77552         made.
77553
77554 2002-09-25  Karl Berry  <karl@gnu.org>
77555
77556         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77557         * lib/getopt*: copy from libc/posix.
77558         * lib/gettext.h: copy from gettext.
77559         * lib/.cppi-disable: add strdup.c, gettext.h.
77560
77561 2002-09-25  Karl Berry  <karl@gnu.org>
77562
77563         * config/srclist.txt: enable gettext.h check.
77564         * config/config.{guess,sub}: update from prep.
77565         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77566                 from automake 1.6.3.
77567         See srclist*.
77568
77569 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77570
77571         * regex.c (PATFETCH): Remove the translating fetch.
77572         (PATFETCH_RAW): Rename to PATFETCH.
77573         (set_image_of_range): New fun.
77574         (SET_RANGE_TABLE_WORK_AREA): Use it.
77575         (regex_compile): Don't translate the pattern chars so eagerly.
77576         Only do it when inserting an `exactn' bytecode or when handling
77577         a char-range.
77578         (mutually_exclusive_p): Avoid empty statement.
77579
77580 2002-07-06  Jim Meyering  <meyering@lucent.com>
77581
77582         * m4/README: Don't mention Makefile.am.in.
77583         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77584
77585 2002-07-01  Jim Meyering  <meyering@lucent.com>
77586
77587         * lib/c-stack.c: Include sys/time.h.
77588         From Volker Borchert.
77589
77590 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77591
77592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77593
77594 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77595
77596         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77597         New macro.  Use it uniformly instead of
77598         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77599         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77600         reported by Vin Shelton.
77601
77602 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77603
77604         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77605         Do not assume SA_SIGINFO behavior.
77606         Bug reported by Jim Meyering on NetBSD 1.5.2.
77607
77608 2002-06-22  Jim Meyering  <meyering@lucent.com>
77609
77610         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77612
77613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77614         now that configure.ac uses AC_GNU_SOURCE.
77615         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77616         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77617
77618         Update to latest tools.  Suggestions from Paul Eggert.
77619         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77620         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77621         * m4/fnmatch.m4: Likewise.
77622         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77623         to AC_HEADER_STDBOOL
77624
77625 2002-06-22  Jim Meyering  <meyering@lucent.com>
77626
77627         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77628         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77629
77630 2002-06-22  Jim Meyering  <meyering@lucent.com>
77631
77632         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77633
77634         * lib/exitfail.c, exitfail.h: Likewise.
77635         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77636
77637         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77638         of fnmatch.h.
77639         (EXTRA_DIST): Add fnmatch_loop.c.
77640         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77641
77642         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77643         * lib/fnmatch.c: Update from diffutils-2.8.2.
77644         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77645         * lib/fnmatch.h: Remove file.
77646
77647 2002-06-21  Jim Meyering  <meyering@lucent.com>
77648
77649         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77650         * m4/mbrtowc.m4: Likewise.
77651
77652         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77653         * m4/mbswidth.m4: Reflect name change:
77654         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77655         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77656
77657         * m4/lib-link.m4: Update from gettext-0.11.2.
77658         * m4/gettext.m4: Likewise.
77659
77660         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77661         From Alfred M. Szmidt.
77662
77663 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77664
77665         * lib/file-type.h: Report an error if neither S_ISREG nor
77666         S_IFREG is defined, instead of using a test specific to glibc
77667         2.2.  This should be safe, since POSIX requires S_ISREG and
77668         Unix Version 7 had S_IFREG.  We don't need to check for
77669         <sys/types.h> since we don't use any symbols that it defines.
77670
77671 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77672
77673         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77674         $@-t, so that each temporary file name is unique and valid in the first
77675         8 characters, for operation under DOS.
77676
77677 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77678
77679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77680
77681 2002-06-15  Jim Meyering  <meyering@lucent.com>
77682
77683         Work even with DJGPP 2.03, which lacks support for symlinks.
77684         From Richard Dawe.
77685         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77686         is defined.
77687         * lib/lchown.c (S_ISLNK): Likewise.
77688
77689 2002-06-15  Jim Meyering  <meyering@lucent.com>
77690
77691         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77692         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77693         have been included before this file.
77694
77695 2002-06-14  Jim Meyering  <meyering@lucent.com>
77696
77697         * lib/file-type.h: Use the version from diffutils-2.8.2.
77698         * lib/file-type.c: Likewise.
77699
77700 2002-06-07  Jim Meyering  <meyering@lucent.com>
77701
77702         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77703         They're needed at least for NetBSD 1.5.2.
77704         ($statxfs_includes): Include those same headers.
77705         ($statxfs_includes): Include sys/vfs.h if available.
77706         ($statxfs_includes): Likewise for sys/statvfs.h.
77707         Check for the following members in both structs statfs and statvfs:
77708         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77709
77710 2002-06-01  Jim Meyering  <meyering@lucent.com>
77711
77712         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77713         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77714
77715 2002-05-28  Jim Meyering  <meyering@lucent.com>
77716
77717         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77718         Reported by Volker Borchert.
77719
77720 2002-05-27  Jim Meyering  <meyering@lucent.com>
77721
77722         Fix a problem seen only on nonconforming systems whereby ls.c's
77723         use of localtime, and then of gettimeofday would cause trouble:
77724         the localtime call used to initialize rpl_gettimeofday's save
77725         mechanism would clobber ls's current local time information so
77726         that in any long listing the first file would always be listed
77727         with date 1970-01-01.  Analysis by Volker Borchert.
77728
77729         * lib/gettimeofday.c (localtime): Undefine.
77730         (rpl_localtime): New function.
77731
77732 2002-05-27  Jim Meyering  <meyering@lucent.com>
77733
77734         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77735         localtime.
77736
77737         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77738         use the replacement function; it wouldn't resolve at link time.
77739         Reported by Volker Borchert.
77740
77741 2002-05-22  Jim Meyering  <meyering@lucent.com>
77742
77743         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77744         file-type.h.
77745         * lib/file-type.h: New file.
77746         * lib/file-type.c (file_type): New file/function.  Extracted from
77747         diffutils.
77748
77749 2002-04-30  Jim Meyering  <meyering@lucent.com>
77750
77751         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77752
77753 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77754
77755         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77756
77757 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77758
77759         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77760         Do not check for alloca.h (no longer used) or stdbool.h (was never
77761         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77762
77763 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77764
77765         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77766
77767 2002-04-29  Jim Meyering  <meyering@lucent.com>
77768
77769         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77770         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77771         Use AC_FUNC_STRNLEN here instead.
77772
77773         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77774         With autoconf-2.53a, it's part of AC_PROG_CC.
77775
77776 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77777
77778         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77779         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77780
77781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77782
77783         * lib/sig2str.h, lib/sig2str.c: New files.
77784         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77785
77786 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77787
77788         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77789         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77790         of 127, since 64 is the largest conceivable number for ancient
77791         nonstandard hosts.
77792         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77793
77794 2002-04-28  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77797
77798 2002-04-24  Jim Meyering  <meyering@lucent.com>
77799
77800         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77801         (jm_PREREQ): Use it.
77802
77803         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77804         mach/mach.h fcntl.h.
77805         Check for this function: setlocale.
77806
77807 2002-04-24  Jim Meyering  <meyering@lucent.com>
77808
77809         * lib/gettext.h: New file, from Gettext.
77810         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77811         (libfetish_a_SOURCES): Add gettext.h.
77812
77813 2002-04-16  Jim Meyering  <meyering@lucent.com>
77814
77815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77816         ut_pid, ut_id, ut_exit.
77817
77818 2002-04-16  Jim Meyering  <meyering@lucent.com>
77819
77820         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77821         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77822         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77823
77824 2002-04-12  Jim Meyering  <meyering@lucent.com>
77825
77826         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77827         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77828         existence of the getmntinfo function.  Needed for Darwin 5.3.
77829
77830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77831         This is necessary at least on Darwin 5.3.
77832
77833         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77834         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77835         strnlen.o in the library, and that makes some versions of ranlib
77836         object.
77837
77838 2002-04-12  Jim Meyering  <meyering@lucent.com>
77839
77840         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77841
77842 2002-04-09  Jim Meyering  <meyering@lucent.com>
77843
77844         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77845         to be more precise.  Rather than saying we're checking whether the
77846         function `works', say what we're testing.
77847         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77848         Reported by Bruno Haible.
77849
77850 2002-03-10  Jim Meyering  <meyering@lucent.com>
77851
77852         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77853         Suggestion from Santiago Vila.
77854
77855 2002-03-08  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/rename.c: Mention that this wrapper is needed also on
77858         mips-dec-ultrix4.4 systems.
77859
77860 2002-03-02  Jim Meyering  <meyering@lucent.com>
77861
77862         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77863         not HAVE_CLOCK_SETTIME.
77864
77865 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77866
77867         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77868         Check for clock_settime.
77869
77870 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77871
77872         * lib/nanosleep.h: Rename to....
77873         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77874
77875         * lib/gettime.c: New file.
77876         * lib/settime.c: New file.
77877         * lib/stime.c: Remove.
77878
77879         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77880         timespec.h.  Remove nanosleep.h.
77881
77882 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77883
77884         * m4/acl.m4: New file.
77885         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77886         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77887
77888 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77889
77890         * lib/acl.c, lib/acl.h: New files.
77891         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77892
77893 2002-02-24  Jim Meyering  <meyering@lucent.com>
77894
77895         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77896         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77897         cause trouble.  Reported by Nelson Beebe.
77898
77899 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77900
77901         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77902         compilers that don't know that xalloc_die never returns.
77903
77904 2002-02-20  Jim Meyering  <meyering@lucent.com>
77905
77906         * lib/getdate.c: Regenerate using bison-1.33.
77907
77908 2002-02-17  Jim Meyering  <meyering@lucent.com>
77909
77910         * config/config.guess (main): Don't use `head -1'; it's no longer
77911         portable. Use `sed 1q' instead.
77912
77913 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77914
77915         * m4/codeset.m4: Upgrade to gettext-0.11.
77916         * m4/gettext.m4: Upgrade to gettext-0.11.
77917         * m4/glibc21.m4: Upgrade to gettext-0.11.
77918         * m4/iconv.m4: Upgrade to gettext-0.11.
77919         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77920         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77921         * m4/lib-ld.m4: New file, from gettext-0.11.
77922         * m4/lib-link.m4: New file, from gettext-0.11.
77923         * m4/lib-prefix.m4: New file, from gettext-0.11.
77924         * m4/progtest.m4: Upgrade to gettext-0.11.
77925
77926 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77927
77928         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77929         (jm_PREREQ): Use it.
77930
77931 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77932
77933         * lib/posixver.c, lib/posixver.h: New files.
77934         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77935
77936 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77937             Bruno Haible  <bruno@clisp.org>
77938
77939         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77940         (fwrite_success_callback): New declaration.
77941         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77942         print_unicode_char. Call failure callback instead of error.
77943         (fwrite_success_callback): New function.
77944         (exit_failure_callback): New function.
77945         (fallback_failure_callback): New function.
77946         (print_unicode_char): Call unicode_to_mb.
77947
77948 2002-01-26  Jim Meyering  <meyering@lucent.com>
77949
77950         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77951         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77952
77953 2002-01-26  Jim Meyering  <meyering@lucent.com>
77954
77955         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77956
77957 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77958
77959         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77960
77961 2002-01-22  Jim Meyering  <meyering@lucent.com>
77962
77963         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77964         Otherwise, some versions of automake would omit the rule that makes
77965         Makefile from Makefile.in.
77966
77967 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77968
77969         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77970         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77971         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77972         (memcoll): Set errno to zero if there is no error.
77973
77974         * lib/quotearg.c (quotearg_buffer_restyled):
77975         Fix bug with quoting buffers containing NUL when backslashing escapes.
77976         This bug was exposed by the other changes in this patch.
77977         (quotearg_n_options): New arg ARGSIZE.
77978         All callers changed.
77979         (quoting_options_from_style): New function.
77980         (quotearg_n_style): Use it.
77981         (quotearg_n_style_mem): New function.
77982
77983         * lib/quotearg.h (quotearg_n_style_mem): New function.
77984
77985 2002-01-19  Jim Meyering  <meyering@lucent.com>
77986
77987         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77988         Remove useless quotes: DF_PROG="df".
77989         * m4/strnlen.m4: New file.
77990
77991 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77992
77993         * lib/backupfile.c (ISDIGIT): Comment fix.
77994         * lib/getdate.y (ISDIGIT): Likewise.
77995         * lib/posixtm.c (ISDIGIT, year): Likewise.
77996         * lib/strverscmp.c (ISDIGIT): Likewise.
77997         * lib/userspec.c (ISDIGIT): Likewise.
77998
77999 2002-01-16  Jim Meyering  <meyering@lucent.com>
78000
78001         * lib/getdate.y: Add three semicolons, each just before a closing
78002         brace. Bison (as of version 1.31) no longer papers over that mistake.
78003
78004 2002-01-05  Jim Meyering  <meyering@lucent.com>
78005
78006         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78007
78008 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78009
78010         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78011         not silently exit merely because the output buffer happens to
78012         have nothing pending.
78013
78014 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78015
78016         See the big note in ../ChangeLog.
78017         * lib/human.c (suffixes): Prefer K to k for 1024.
78018         (generate_suffix_backwards): New function.
78019         (human_readable_inexact): Use it.
78020         * lib/xstrtol.c (__xstrtol): If there is no number but there
78021         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78022         Accept 'K' as well as 'k'.
78023
78024 2001-12-15  Jim Meyering  <meyering@lucent.com>
78025
78026         * lib/regex.h (__restrict_arr): Update from libc.
78027
78028         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78029         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78030         (STREQ): Define.
78031
78032 2001-12-14  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78035         Suggestion from Bruno Haible.
78036
78037 2001-12-10  Jim Meyering  <meyering@lucent.com>
78038
78039         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78040         xrealloc, Instead, include "xalloc.h".
78041         (initbuffer): Don't cast xmalloc return value to char*.
78042         (readline): Reword comment.
78043         Don't cast xrealloc return value to char*
78044         Return NULL, not 0.
78045
78046 2001-12-09  Jim Meyering  <meyering@lucent.com>
78047
78048         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78049         about `signed and unsigned type in conditional expression'.
78050         * lib/posixtm.c (posix_time_parse): Likewise.
78051
78052         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78053
78054         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78055         to avoid a pedantic warning.
78056
78057         * lib/getstr.c: Don't include assert.h.
78058         (getstr): Remove warning-evoking assertions.
78059         Return -1 if offset parameter is out of bounds.
78060         Change the type of a local from int to size_t.
78061
78062         * lib/strftime.c (my_strftime_localtime_r): Include this function
78063         definition in the `#if ! HAVE_TM_GMTOFF' block.
78064
78065         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78066         Include xalloc.h instead.
78067
78068 2001-12-02  Jim Meyering  <meyering@lucent.com>
78069
78070         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78071         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78072         included.
78073
78074         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78075         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78076
78077 2001-11-30  Akim Demaille  <akim@epita.fr>
78078
78079         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78080         before being defined.
78081
78082 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78083
78084         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78085         First arg is int, not unsigned.
78086         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78087         (SIZE_MAX, UINT_MAX): New macros.
78088         (quotearg_n_options): Abort if N is negative.
78089         Avoid overflow check on hosts where size_t is 64 bits and int
78090         is 32 bits, as overflow is impossible there.
78091         Fix off-by-one typo that caused unnecessary reallocation.
78092
78093 2001-11-27  Jim Meyering  <meyering@lucent.com>
78094
78095         * lib/tempname.c: Merge with version from libc.
78096         * lib/regex.c: Likewise.
78097
78098         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78099         systems for which STDC_HEADERS is 0, it was not included, resulting in
78100         a warning about an integer-to-pointer conversion problem with getenv.
78101         Reported by Volker Borchert.
78102
78103 2001-11-26  Jim Meyering  <meyering@lucent.com>
78104
78105         * lib/gtod.h: Remove file.
78106         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78107         * lib/gettimeofday.c: Don't include gtod.h.
78108         (GTOD_init): Remove function.
78109         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78110         Suggestion from Volker Borchert.
78111
78112 2001-11-23  Jim Meyering  <meyering@lucent.com>
78113
78114         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78115         it.
78116         * lib/hash.c (struct hash_table): Define it here instead.
78117
78118 2001-11-22  Jim Meyering  <meyering@lucent.com>
78119
78120         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78121
78122 2001-11-20  Jim Meyering  <meyering@lucent.com>
78123
78124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78125         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78126
78127 2001-11-19  Jim Meyering  <meyering@lucent.com>
78128
78129         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78130         directory.  Use "conftestXXXXXX" as the template.
78131         Suggestion from Paul Eggert.
78132
78133         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78134         immediately, so the test doesn't mistakenly hit the max-open-files
78135         limit.
78136
78137 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78138
78139         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78140         (TEMPORARIES): New macro.
78141         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78142         removes an artificial limitation (e.g. HP-UX 10.20, where
78143         TMP_MAX is 17576).
78144
78145 2001-11-18  Jim Meyering  <meyering@lucent.com>
78146
78147         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78148
78149 2001-11-18  Jim Meyering  <meyering@lucent.com>
78150
78151         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78152         on SunOS 4.
78153
78154         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78155         files will be created before anything else.
78156
78157 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78158
78159         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78160         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78161
78162 2001-11-17  Jim Meyering  <meyering@lucent.com>
78163
78164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78165         Prompted by a report from Bob Proulx.
78166
78167         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78168         Instead, require UTILS_FUNC_MKSTEMP.
78169
78170 2001-11-17  Jim Meyering  <meyering@lucent.com>
78171
78172         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78173         Now, that's done as part of AC_FUNC_STRTOD.
78174
78175 2001-11-17  Jim Meyering  <meyering@lucent.com>
78176
78177         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78178         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78179         rather than group writable.  Patch by Juan F. Codagnone.
78180
78181         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78182         xrealloc, Instead, include "xalloc.h".
78183
78184         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78185         Remove explicit declarations of xmalloc, xrealloc,
78186         and xstrdup.  Instead, include "xalloc.h".
78187
78188         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78189         unlocked-io.h.
78190         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78191         Likewise.
78192         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78193
78194         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78195         Reported by Padraig Brady.
78196
78197         * lib/mkstemp.c: #undef mkstemp.
78198         Include config.h.
78199         (rpl_mkstemp): Rename from mkstemp.
78200         Protoize.
78201
78202 2001-11-16  Jim Meyering  <meyering@lucent.com>
78203
78204         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78205         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78206         determine the amount of total physical memory, use pstat_getstatic.
78207         HPUX-11 doesn't define _SC_PHYS_PAGES.
78208         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78209         If sysconf couldn't be used to determine the amount of available
78210         physical memory, use both pstat_getstatic and pstat_getdynamic.
78211         Based on a patch from Bob Proulx.
78212
78213 2001-11-10  Jim Meyering  <meyering@lucent.com>
78214
78215         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78216         (jm_PREREQ): Use it.
78217
78218 2001-11-09  Jim Meyering  <meyering@lucent.com>
78219
78220         * m4/jm-macros.m4: Require autoconf-2.52f.
78221         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78222         Use these AC_-prefixed names, not the AM_-prefixed ones.
78223
78224         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78225
78226 2001-11-05  Jim Meyering  <meyering@lucent.com>
78227
78228         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78229
78230 2001-11-04  Jim Meyering  <meyering@lucent.com>
78231
78232         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78233         $DEFS.
78234
78235 2001-11-03  Jim Meyering  <meyering@lucent.com>
78236
78237         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78238         of AC_DEFUN.
78239
78240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78241         know the name of the variable in the macro definition.
78242
78243 2001-11-03  Jim Meyering  <meyering@lucent.com>
78244
78245         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78246         in argmatch_to_argument call.
78247
78248         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78249         argument.
78250
78251         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78252         e.g., a fault due to an attempt to free a NULL pointer.
78253
78254 2001-11-01  Jim Meyering  <meyering@lucent.com>
78255
78256         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78257         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78258
78259 2001-11-01  Jim Meyering  <meyering@lucent.com>
78260
78261         * lib/dirfd.c, lib/dirfd.h: New files.
78262         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78263
78264         * lib/hash.c (hash_print) [TESTING]: Clean up.
78265
78266 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78267
78268         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78269         to avoid a warning if -Wall.
78270
78271 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78272
78273         * README: New file
78274         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78275         (per RMS's instructions, this is now the canonical source)
78276         * lgpl/, gpl/: New directories.
78277
78278 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78279
78280         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78281
78282 2001-10-21  Jim Meyering  <meyering@lucent.com>
78283
78284         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78285         this code would end up calling gettext even in packages built
78286         with --disable-nls.
78287         * lib/getopt.c (_): Likewise.
78288         * lib/regex.c (_): Likewise.
78289
78290 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78291
78292         * m4/error.m4 (jm_PREREQ_ERROR):
78293         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78294         AC_FUNC_STRERROR_R does that.
78295         Check for strerror declaration.
78296
78297         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78298         are supposed to have them these days.
78299         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78300         Merge changes from latest Autoconf CVS.
78301         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78302         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78303         POSIX decided to standardize on the int flavor of strerror_r.
78304
78305 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78306
78307         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78308         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78309         Use strerror_r that is only a macro, even if it is not a function.
78310         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78311         (private_strerror): Use prototypes, not old-style function definition.
78312         (print_errno_message): New function.
78313         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78314         char*-flavored one.
78315         (error_tail, error, error_at_line): Use it.
78316
78317 2001-10-11  Jim Meyering  <meyering@lucent.com>
78318
78319         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78320         and quote_n (1, ... to avoid clobbering a buffer.
78321
78322 2001-10-05  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78325         hash-pjw.h.
78326         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78327         * lib/hash-pjw.h: New file.
78328
78329 2001-09-30  Jim Meyering  <meyering@lucent.com>
78330
78331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78332         `struct fsstat' has the `f_fstypename' member.
78333         Use that to define FS_TYPE, which is now used to make
78334         the getfsstat link test tighter.
78335
78336 2001-09-30  Jim Meyering  <meyering@lucent.com>
78337
78338         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78339         Include <sys/ucred.h>, for Apple Darwin.
78340         Include sys/mount.h and sys/fs_types.h only if available.
78341         (FS_TYPE): Define.
78342         (read_filesystem_list): Use FS_TYPE.
78343
78344 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78345
78346         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78347         a boolean context.
78348
78349 2001-09-29  Jim Meyering  <meyering@lucent.com>
78350
78351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78352         [one-argument getmntent function]): Include stdio.h before mntent.h.
78353         SunOS 4.1.x needs it for the declaration of `FILE'.
78354         Patch by Volker Borchert.
78355
78356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78357         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78358         sys/fs_types.h, and make the link-test for getfsstat guard #include
78359         directives with appropriate #if HAVE_*_H tests so that we can
78360         detect getfsstat on Apple Darwin1.3.7 systems.
78361         Reported by Nelson Beebe.
78362         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78363
78364 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78365
78366         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78367         #defines strtoimax.  Also treat the other strto* functions
78368         like strtoimax.
78369
78370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78371         Check for strtoul and strtoumax,
78372         as those declarations are made even in the signed case.
78373         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78374         Likewise, for strtol and strtoimax.
78375
78376 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78377
78378         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78379         #defines strtoimax.  Also treat the other strto* functions
78380         like strtoimax.
78381
78382         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78383         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78384         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78385
78386 2001-09-26  Jim Meyering  <meyering@lucent.com>
78387
78388         Most macros in unlocked-io.h had the wrong number of arguments.
78389         * lib/gen-uio: New script.
78390         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78391         * lib/unlocked-io.hin: Remove file.
78392         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78393         rather than trying to embed it here.
78394         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78395         Reported by Padraig Brady.
78396
78397 2001-09-25  Volker Borchert  <bt@teknon.de>
78398
78399         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78400         `result'.
78401
78402 2001-09-24  Jim Meyering  <meyering@lucent.com>
78403
78404         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78405
78406 2001-09-23  Jim Meyering  <meyering@lucent.com>
78407
78408         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78409         instead of the mere test for existence of mntent.h.  The latter
78410         would get a false-positive on AIX 3.4 systems.
78411         In the outer getmntent if-block, don't die if neither of the getmntent
78412         tests succeeds.  Instead, just fall through and continue with the
78413         remaining tests.
78414
78415 2001-09-23  Jim Meyering  <meyering@lucent.com>
78416
78417         * lib/mountlist.c: Remove useless parentheses in #if directives.
78418         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78419         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78420
78421 2001-09-22  Jim Meyering  <meyering@lucent.com>
78422
78423         * m4/gettext.m4: New file.  From gettext.
78424         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78425         * m4/progtest.m4: Likewise
78426         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78427         * m4/glibc21.m4: Likewise.
78428
78429         * m4/libintl.m4: Remove.  No longer used.
78430
78431 2001-09-22  Jim Meyering  <meyering@lucent.com>
78432
78433         * lib/localcharset.c: Update from latest gettext.
78434         * lib/config.charset: Likewise.
78435
78436 2001-09-20  Jim Meyering  <meyering@lucent.com>
78437
78438         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78439         strtoimax.
78440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78441         strtoumax.
78442
78443 2001-09-20  Jim Meyering  <meyering@lucent.com>
78444
78445         * lib/xstrtol.c (strtoimax): Guard declaration with
78446         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78447         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78448         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78449         (strtoumax): Likewise, for completeness (it wasn't necessary).
78450
78451 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78452
78453         * lib/strtoimax.c (HAVE_LONG_LONG):
78454         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78455         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78456         to work around bug in IBM C compiler.
78457
78458 2001-09-17  Jim Meyering  <meyering@lucent.com>
78459
78460         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78461         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78462         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78463         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78464         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78465         whenever the right hand side need not be expanded by the shell.
78466
78467 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78468
78469         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78470         library.  It's not correct, as some older glibcs are buggy.
78471         fnmatch wasn't fixed until glibc 2.2.
78472
78473         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78474         special shell magic here.
78475
78476 2001-09-16  Jim Meyering  <meyering@lucent.com>
78477
78478         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78479         * m4/jm-macros.m4: Require it.
78480
78481 2001-09-16  Jim Meyering  <meyering@lucent.com>
78482
78483         * lib/mkdir.c: New file.
78484
78485 2001-09-15  Jim Meyering  <meyering@lucent.com>
78486
78487         * m4/jm-macros.m4: Check for help2man.
78488
78489 2001-09-11  Jim Meyering  <meyering@lucent.com>
78490
78491         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78492         The body, by Paul Eggert, was moved here from configure.in.
78493         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78494
78495 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78496
78497         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78498         (jm_PREREQ): Use it.
78499
78500 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78501
78502         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78503         Use ssize_t, not int, to store result of readlink.
78504         Check for ssize_t overflow as well as size_t overflow,
78505         as POSIX says the result of readlink is implementation-defined
78506         when ssize_t overflows.
78507         Remove unnecessary cast to char*.
78508         Use free+malloc instead of realloc, as the storage doesn't need
78509         to be preserved and it's clearer and can be more efficient that way.
78510         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78511         * lib/xreadlink.h (xreadlink): Update prototype.
78512
78513 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78514
78515         * lib/xgetcwd.c: Revert some of the previous change; intead,
78516         fix the HAVE_GETCWD_NULL code to behave more like the
78517         !HAVE_GETCWD_NULL code used to.
78518
78519         Include "xalloc.h".
78520         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78521         invoke xalloc_die.
78522
78523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78524
78525         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78526         sys/param.h, as pathmax.h includes them.
78527
78528 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78529
78530         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78531         (jm_PREREQ_XGETCWD): New macro.
78532
78533         * m4/getcwd.m4: New file.
78534
78535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78536
78537         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78538         like the HAVE_GETCWD_NULL code.
78539         Include pathmax.h if not HAVE_GETCWD.
78540         Do not include xalloc.h.
78541         (INITIAL_BUFFER_SIZE): New symbol.
78542         Do not use xmalloc / xrealloc, since the caller is responsible for
78543         handling errors.  Preserve errno around `free' during failure.
78544         Do not overrun buffer when using getwd.
78545
78546 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78547
78548         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78549         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78550         getcwd (NULL, 0).
78551
78552 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78553
78554         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78555         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78556         spotted by Jim Meyering.
78557
78558 2001-09-03  Jim Meyering  <meyering@lucent.com>
78559
78560         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78561         failure.
78562
78563 2001-09-02  Jim Meyering  <meyering@lucent.com>
78564
78565         * lib/error.c: Update from GNU libc.
78566
78567 2001-09-01  Jim Meyering  <meyering@lucent.com>
78568
78569         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78570         Used by df.
78571
78572 2001-09-01  Jim Meyering  <meyering@lucent.com>
78573
78574         * lib/xreadlink.c: New file.
78575         * lib/xreadlink.h: New file.
78576         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78577         xreadlink.h.
78578
78579         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78580         doesn't conflict with sparc Solaris 7's definition in
78581         /usr/include/sys/int_types.h.
78582
78583         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78584         files.
78585         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78586         and strncasecmp as r-values.  Unixware didn't have declarations.
78587
78588 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78589
78590         * lib/xstrtol.h: Add copyright notice.
78591         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78592         LONGINT_INVALID_SUFFIX_CHAR.
78593
78594 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78595
78596         * lib/xstrtol.c (strtoimax): New decl.
78597
78598 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78599
78600         * lib/xgetcwd.c: Don't include pathmax.h.
78601         Include stdlib.h and unistd.h if available.
78602         Include xalloc.h.
78603         (xmalloc, xstrdup, free): Remove decls.
78604         (xgetcwd): Don't assume sizes fit in unsigned.
78605         Check for overflow when computing sizes.
78606         Simplify reallocation code.
78607
78608 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78609
78610         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78611         a directory's st_size can have an arbitrary value, so the old
78612         usage could waste an arbitrary amount of memory.  All uses
78613         changed.
78614         * lib/savedir.h: Update prototype.
78615
78616 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78617
78618         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78619
78620         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78621         old strtoimax.c.
78622
78623         Also, make the following further changes to make this file's
78624         configuration more similar to that of strtol.c:
78625         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78626         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78627         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78628         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78629         changed to signed values.
78630
78631         And make the following changes as well:
78632         Fix copyright notice, as 1999 was missing.
78633         (verify): New macro.
78634         (strtoimax): Check sizes at compile-time, not run-time.
78635         Prefer strtol to strtoll if both work.
78636         (main): Remove; it was not that useful and was a pain to maintain.
78637
78638         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78639
78640 2001-08-31  Jim Meyering  <meyering@lucent.com>
78641
78642         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78643         Use an initial, malloc'd, buffer of length 128 rather than
78644         a statically allocated one of length 1024.
78645
78646 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78647
78648         Simplify code, partly by assuming autoconf 2.52 semantics.
78649
78650         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78651
78652         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78653         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78654         All uses removed.
78655         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78656         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78657         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78658         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78659         jm_AC_HEADER_INTTYPES_H.
78660         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78661
78662         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78663
78664         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78665         Quote first arg of AC_DEFUN.
78666         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78667         since they are needed to parse the include file even if we need
78668         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78669         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78670         but with opposite signedness.
78671
78672 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78673
78674         Merge 'exclude' changes from tar 1.13.22.
78675         This fixes one or two unlikely storage allocation overflow bugs,
78676         but doesn't change user-visible behavior otherwise.
78677
78678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78679
78680         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78681         (jm_PREREQ_EXCLUDE): New macro.
78682
78683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78684
78685         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78686         tm to be declared.
78687
78688 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78689
78690         * lib/hash.c: Remove '2001' from copyright notice.
78691
78692 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78693
78694         * lib/full-write.h: New file.
78695         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78696         * lib/full-write.c: Correct credits, as cccp.c no longer
78697         exists and anyway it was so heavily changed from the old cccp
78698         code as to be unrecognizable.  Include full-write.h.
78699         (full_write): Return size_t, with short writes meaning failure.
78700         All callers changed.  This fixes a bug with large buffers
78701         on 64-bit hosts.
78702         * lib/utime.c: Include full-write.h.
78703
78704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78705
78706         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78707         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78708         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78709         Include if available.
78710         (<xalloc.h>): Include
78711         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78712         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78713         collide with FNM macros.
78714         (struct patopts): New struct.
78715         (struct exclude): Use it, as exclude patterns now come with options.
78716         (new_exclude): Support above changes.
78717         (new_exclude, add_exclude_file):
78718         Initial size must now be a power of two to simplify overflow checking.
78719         (free_exclude, fnmatch_no_wildcards): New function.
78720         (excluded_filename): No longer requires options arg, as the options
78721         are determined by add_exclude.  Now returns bool, not int.
78722         (excluded_filename, add_exclude):
78723         Add support for the fancy new exclusion options.
78724         (add_exclude, add_exclude_file): Now takes int options arg.
78725         Check for arithmetic overflow when computing sizes.
78726         (add_exclude_file): xrealloc might modify errno, so don't
78727         realloc until after errno might be used.
78728
78729         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78730         New macros.
78731         (free_exclude): New decl.
78732         (add_exclude, add_exclude_file): Now takes int options arg.
78733         (excluded_filename): No longer requires options arg, as the options
78734         are determined by add_exclude.  Now returns bool, not int.
78735
78736 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78737
78738         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78739
78740 2001-08-27  Jim Meyering  <meyering@lucent.com>
78741
78742         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78743
78744         * lib/version-etc.c (N_): Remove definition.
78745         Revert most of last change.
78746         Instead, simply don't mark the `Copyright...' string for translation.
78747         Based on advice from Paul Eggert.
78748
78749         * lib/strtoxmax.c: Tweak comment.
78750
78751 2001-08-26  Jim Meyering  <meyering@lucent.com>
78752
78753         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78754
78755         * m4/xstrtoimax.m4: New file.
78756         * m4/xstrtoumax.m4: Add comments explaining why we
78757         AC_REPLACE_FUNCS(strtol).
78758
78759 2001-08-26  Jim Meyering  <meyering@lucent.com>
78760
78761         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78762         of copyright with `%s' so translators don't get an untranslated
78763         message in 2002.
78764         (COPYRIGHT_YEAR): Define.
78765         (version_etc): Use fprintf rather than fputs.
78766         Suggestion from Ulrich Drepper.
78767
78768         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78769
78770         * lib/strtoll.c: New file, from GNU libc.
78771         * lib/xstrtoimax.c: New file.
78772
78773         * lib/xstrtol.h: Add xstrtoimax.
78774         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78775         * lib/strtoimax.c: New file.  Likewise, but first define
78776         STRTOUXMAX_SIGNED.
78777
78778         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78779         ...
78780         * lib/strtoxmax.c: ... then renamed to this.
78781
78782 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78783
78784         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78785         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78786         (jm_AC_TYPE_INTMAX_T): New macro.
78787         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78788
78789         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78790
78791         * m4/longlong.m4: Renamed from ulonglong.m4.
78792         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78793         * m4/uintmax_t.m4: Removed.
78794
78795 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78796
78797         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78798         Port to Solaris 8, where 'sed' requires a space after the 'r'
78799         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78800         Redirect output to $tmp just once.
78801
78802 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78803
78804         * lib/addext.c (<errno.h>): Include.
78805         (errno): Declare if not defined.
78806         (addext): Work correctly when pathconf returns -1 and leaves
78807         errno alone because there is no limit.  Also, work even if
78808         pathconf returns a value greater than SIZE_MAX.
78809
78810 2001-08-12  Jim Meyering  <meyering@lucent.com>
78811
78812         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78813         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78814         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78815         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78816         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78817         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78818         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78819         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78820         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78821         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78822         utime.m4, utimes.m4, xstrtoumax.m4:
78823         Quote the first argument in each use of AC_DEFUN.
78824
78825 2001-08-12  Jim Meyering  <meyering@lucent.com>
78826
78827         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78828         Simply `return getcwd (NULL, 0);'.
78829         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78830         Use 1300 as initial value for length, not PATH_MAX.
78831
78832         * lib/pathmax.h: Clean up cpp syntax.
78833
78834 2001-08-12  Jim Meyering  <meyering@lucent.com>
78835
78836         * lib/gettimeofday.c: New file.
78837         * lib/gtod.h: New file.
78838         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78839
78840 2001-08-05  Jim Meyering  <meyering@lucent.com>
78841
78842         * m4/jm-macros.m4: Require autoconf-2.52.
78843
78844 2001-08-04  Jim Meyering  <meyering@lucent.com>
78845
78846         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78847         stmt, to get in sync with glibc.
78848
78849 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78850
78851         The following changes are from gettext 0.10.39 as maintained by
78852         Bruno Haible.
78853
78854         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78855         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78856         with inverted sense.  All uses changed.
78857
78858         * lib/mbswidth.c: Don't include <limits.h>.
78859         Include <stdlib.h> and <string.h> unconditionally.
78860         (iswcntrl, mbsinit, ISCNTRL): New macros.
78861         (mbsnwidth): Use K&R style function declarations.
78862         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78863         can optimize it when MB_CUR_MAX == 1.
78864         The width of control characters is zero, not 1.
78865
78866 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78867
78868         The following changes are from gettext 0.10.39 as maintained by
78869         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78870
78871         * m4/codeset.m4: Upgrade to serial AM1.
78872         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78873         all uses changed.  Quote first arg of AC_DEFUN.
78874         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78875
78876         * m4/iconv.m4: Upgrade to serial AM2.
78877         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78878         Add --with-libconv-prefix.
78879         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78880         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78881         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78882         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78883         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78884
78885         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78886         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78887         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78888         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78889         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78890         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78891         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78892         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78893         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78894
78895         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78896         string.h any more.
78897
78898         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78899         not the default value.
78900
78901         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78902         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78903         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78904         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78905         Also check for iswcntrl, used for wcwidth fallback.
78906         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78907         to Autoconf 2.13.
78908
78909 2001-08-03  Jim Meyering  <meyering@lucent.com>
78910
78911         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78912         as it was in the original.  Reported by Paul Eggert.
78913
78914 2001-07-16  Jim Meyering  <meyering@lucent.com>
78915
78916         * m4/gettimeofday.m4: New file.
78917         Prompted by a report from Bernhard Baehr.
78918
78919 2001-07-15  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78922         stuff. Now it's in ../Makefile.cfg.
78923
78924 2001-07-15  Jim Meyering  <meyering@lucent.com>
78925
78926         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78927         (BUILT_SOURCES): Add unlocked-io.h.
78928         (io_functions): Define.
78929         (unlocked-io.h): New rule.
78930         (DISTCLEANFILES): Add unlocked-io.h.
78931         (all-local): Depend on unlocked-io.h, to ensure it is created.
78932
78933         * lib/unlocked-io.hin: New file
78934
78935         * lib/regex.c: Update from glibc.
78936
78937 2001-07-05  Jim Meyering  <meyering@lucent.com>
78938
78939         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78940         recommendation.
78941         (libfetish_a_SOURCES): Put all .h files here instead.
78942         Remove a thus-exposed (better checks in automake) duplicate and
78943         two unnecessary .h files.
78944
78945 2001-07-04  Jim Meyering  <meyering@lucent.com>
78946
78947         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78948         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78949         distcheck failure.
78950
78951 2001-07-02  Jim Meyering  <meyering@lucent.com>
78952
78953         The following changes were prompted by suggestions from Bruno Haible.
78954
78955         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78956         is now generated.
78957         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78958         definition of EXTRA_DIST.
78959         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78960         ensure that the generated file is created/updated whenever the list
78961         of $(unlocked_functions) is changed.
78962         (jm-glibc-io.m4): New rule.
78963         (unlocked-io.h): New rule -- currently unused.
78964
78965 2001-06-24  Jim Meyering  <meyering@lucent.com>
78966
78967         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78968         unmatched right bracket, rather than kludging it with an extra,
78969         falsely-matching quote in a comment.  Patch by Akim Demaille.
78970
78971 2001-06-11  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/regex.c: Update from GNU libc.
78974
78975 2001-05-27  Jim Meyering  <meyering@lucent.com>
78976
78977         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78978         Check for ut_type in struct utmp.
78979
78980 2001-05-27  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/readutmp.h (UT_TYPE): Define.
78983
78984 2001-05-24  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/argmatch.c: Include "quote.h".
78987         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78988         quote function.  Reported by Göran Uddeborg.
78989
78990 2001-05-22  Jim Meyering  <meyering@lucent.com>
78991
78992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78993         now that we use the package-supplied version unconditionally.
78994         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78995
78996 2001-05-21  Jim Meyering  <meyering@lucent.com>
78997
78998         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78999         shell syntax errors.
79000
79001 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79002
79003         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79004
79005 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79006
79007         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79008         Don't bother to check library strftime, since
79009         we'll be using our own my_strftime function anyway.
79010         Define my_strftime instead of strftime.
79011
79012 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79013
79014         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79015         which is not yet declared.
79016
79017 2001-05-15  Jim Meyering  <meyering@lucent.com>
79018
79019         * m4/regex.m4: Use proper quoting so brackets appear in the test
79020         program.
79021         Reported by, and with help from, Bruno Haible.
79022
79023 2001-05-13  Jim Meyering  <meyering@lucent.com>
79024
79025         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79026         undefined.
79027
79028 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79029
79030         dirname code cleanup.  base_name now behaves more compatibly
79031         with POSIX basename when given file names that have trailing
79032         slashes, and similarly for dir_name.  Add new primitives
79033         base_len and dir_len.  Put the directory-name-related decls
79034         into dirname.h.
79035
79036         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79037         * lib/backupfile.c (base_name): Likewise.
79038         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79039         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79040         * lib/makepath.c (strip_trailing_slashes): Likewise.
79041         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79042         ISSLASH): Likewise.
79043         * lib/rename.c (strip_trailing_slashes): Likewise.
79044         * lib/same.c (base_name): Likewise.
79045         * lib/stripslash.c (ISSLASH): Likewise.
79046
79047         * lib/addext.c: Include <dirname.h> after size_t is defined.
79048         * lib/backupfile.c: Likewise.
79049
79050         * lib/addext.c (addext): Use base_len to trim redundant
79051         trailing slashes instead of doing it ourselves.
79052         But do not trim the last slash if it is not redundant.
79053
79054         * lib/backupfile.c (find_backup_file_name,
79055         max_backup_version): Use base_len instead of rolling it ourselves.
79056         Handle the case of "" and (on DOS) "C:" correctly.
79057
79058         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79059         needed. Include <string.h>, <dirname.h>.
79060         (base_name): Allow file names ending in slashes, other than names
79061         that are all slashes.  In this case, return the basename followed
79062         by the slashes.  This is more general, and can be used in places
79063         where the original base_name purposely had an assertion failure.
79064         (base_len): New function.
79065
79066         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79067         Do not include <assert.h>; no longer needed.
79068         Include xalloc.h.
79069         (memrchr): Remove decl.
79070         (dir_name_r): Remove.
79071         (dir_len): Renamed from dirlen.  All callers changed.
79072         Rewrite in terms of base_name, for simplicity and consistency.
79073         (dir_name): Never return NULL.  All callers changed.
79074         Do not include <stdlib.h> in test program; no longer needed.
79075         return 0; is fine for test program.
79076
79077         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79078         New macros.
79079         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79080
79081         * lib/path-concat.c (path_concat): Use base_len to compute
79082         base length, not strlen; this means we cannot rely on memcpy
79083         to null-terminate.
79084
79085         * lib/same.c (STREQ): Remove.
79086         (same_name): Handle the case where the basename ends in trailing '/'.
79087
79088         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79089         a slash was stripped.  Do not strip the last slash after a
79090         file system prefix.
79091
79092 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79093
79094         * lib/Makefile.am (libfetish_a_SOURCES):
79095         Add strftime.c, since we now compile it on all hosts.
79096
79097         * lib/strftime.c (my_strftime):
79098         Define to nstrftime if emacs, but only if my_strftime is not defined.
79099         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79100         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79101         Add one more extra argument: a nanoseconds value.
79102         All uses changed.
79103         (ns): New macro.
79104         (my_strftime function): Add %N format.
79105         (emacs_strftimeu): Renamed from emacs_strftime,
79106         with extra ut argument.
79107
79108 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79109
79110         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79111
79112 2001-04-21  Jim Meyering  <meyering@lucent.com>
79113
79114         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79115         doesn't interfere.
79116
79117 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79118
79119         * m4/ftruncate.m4: Check for chsize.
79120         Link with ftruncate.o unconditionally if ftruncate is missing.
79121         This was required when cross-compiling to i586-mingw32msvc.
79122
79123 2001-04-08  Jim Meyering  <meyering@lucent.com>
79124
79125         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79126         recomputed; that's necessary when the offset spans a DST transition.
79127         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79128
79129 2001-04-02  Jim Meyering  <meyering@lucent.com>
79130
79131         * lib/regex.h, regex.c: Update from GNU libc.
79132
79133 2001-03-24  Jim Meyering  <meyering@lucent.com>
79134
79135         * m4/jm-macros.m4: Require autoconf-2.49d.
79136
79137 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79138
79139         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79140
79141 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79142
79143         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79144
79145 2001-03-17  Jim Meyering  <meyering@lucent.com>
79146
79147         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79148         now that the version in autoconf is equivalent.
79149         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79150
79151         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79152         Suggestion from Akim Demaille.
79153
79154         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79155         (jm_PREREQ_TEMPNAME): New function.
79156
79157 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/tempname.c (uint64_t): Define to uintmax_t if
79160         not defined, and if UINT64_MAX is not defined.
79161         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79162         Reported by John David Anglin.
79163
79164 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79165
79166         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79167         resolve alias if codeset is empty.
79168         * lib/config.charset (BeOS): Use wildcard syntax.
79169
79170 2001-03-13  Jim Meyering  <meyering@lucent.com>
79171
79172         * lib/path-concat.c (path_concat)
79173         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79174         concatenating e.g., `C:' and `foo'.
79175         From Bruno Haible.
79176
79177 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79178
79179         * lib/localcharset.c (locale_charset): Don't use
79180         setlocale(LC_CTYPE,NULL). Don't return NULL.
79181         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79182
79183 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79184
79185         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79186         support for DOS/DJGPP.
79187
79188 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79189
79190         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79191         lacks mkstemp.  Compile our own tempname.c if we compile our own
79192         mkstemp.c, as mkstemp relies on tempname.
79193
79194 2001-03-01  Jim Meyering  <meyering@lucent.com>
79195
79196         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79197         AH_VERBATIM really does output its argument verbatim.
79198
79199 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79200
79201         * lib/Makefile.am (libfetish_a_SOURCES):
79202         Add dup-safer.c, fopen-safer.c.
79203         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79204
79205         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79206         * lib/unistd-safer.h: New files.
79207
79208 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79209
79210         The mkstemp replacement is taken from glibc 2.2.2, with some
79211         portability fixes for use outside glibc, as follows:
79212
79213         * lib/tempname.c (struct_stat64): New macro.
79214         (direxists, __gen_tempname): Use it.
79215         This avoids a portability problem with Solaris 8.
79216
79217         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79218         (<stddef.h>, <stdint.h>, <string.h>):
79219         Include only if STDC_HEADERS || _LIBC.
79220         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79221         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79222         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79223         (__set_errno): Define this macro if <errno.h> doesn't.
79224         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79225         Define these macros if <stdio.h> doesn't.
79226         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79227         Define these macros if <sys/stat.h>
79228         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79229         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79230         __xstat64): Define if not _LIBC.
79231         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79232         (__gen_tempname): Invoke gettimeofday only if
79233         HAVE_GETTIMEOFDAY || _LIBC;
79234         otherwise, fall back on plain "time".
79235         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79236
79237         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79238
79239         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79240
79241 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79242
79243         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79244
79245 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79246
79247         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79248         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79249         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79250         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79251
79252 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79253
79254         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79255         Remove workaround macros for hosts that have mbrtowc but not
79256         mbstate_t, as we now insist on proper declarations for both
79257         before using mbrtowc.
79258
79259 2001-02-17  Jim Meyering  <meyering@lucent.com>
79260
79261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79262         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79263         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79264         UnixWare 7.1.1.
79265
79266         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79267         rather than AC_CACHE_VAL.
79268
79269 2001-02-17  Jim Meyering  <meyering@lucent.com>
79270
79271         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79272         around included file name.
79273
79274         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79275
79276         * lib/strftime.c: Update from GNU libc (the only changes were to
79277         comments).
79278
79279 2001-02-17  Jim Meyering  <meyering@lucent.com>
79280
79281         * lib/regex.c: Update from libc.
79282
79283 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79284
79285         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79286         clash.
79287
79288 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79289
79290         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79291         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79292         Reported by Mark Hounschell via Paul Eggert.
79293
79294 2001-02-07  Jim Meyering  <meyering@lucent.com>
79295
79296         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79297
79298 2001-02-05  Jim Meyering  <meyering@lucent.com>
79299
79300         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79301         it includes the patch required for `large file' support with at least
79302         HP-UX's 10.20 /bin/cc.
79303
79304 2001-02-03  Jim Meyering  <meyering@lucent.com>
79305
79306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79307         AS_IF, now that it works once again (mysteriously).
79308         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79309
79310 2001-01-30  Jim Meyering  <meyering@lucent.com>
79311
79312         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79313         * m4/chown.m4: Rename conftestchown to conftest.chown.
79314         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79315         s/conftestdir2/conftest.d2/.
79316         * m4/utimes.m4: s/conftestdata/conftest.data/
79317         Inspired by Pavel Roskin's change in autoconf.
79318
79319 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79320
79321         * lib/config.charset: Update for FreeBSD 4.2.
79322
79323 2001-01-27  Jim Meyering  <meyering@lucent.com>
79324
79325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79326         a use of AS_IF.
79327         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79328
79329 2001-01-26  Jim Meyering  <meyering@lucent.com>
79330
79331         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79332         quotearg.c includes it.
79333
79334 2001-01-26  Jim Meyering  <meyering@lucent.com>
79335
79336         * lib/quotearg.c: Include stddef.h.
79337         * lib/quote.c: Include stddef.h.
79338         Reported by Axel Kittenberger.
79339
79340         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79341         line in double quotes so that it evokes a better diagnostic.
79342         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79343         Reported by Axel Kittenberger.
79344
79345 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79346
79347         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79348         as if it was a `charset'.
79349
79350 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79351
79352         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79353         has const.
79354
79355 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79356
79357         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79358         to avoid a warning.  Add back 'const' to inptr.
79359
79360 2001-01-20  Jim Meyering  <meyering@lucent.com>
79361
79362         Be sure that headers are checked before used in code compiled
79363         for the type checks.
79364         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79365         In place of that, invoke jm_CHECK_ALL_TYPES.
79366         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79367         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79368         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79369         The check for ssize_t was mistakenly run before the test for unistd.h.
79370
79371         The configure-time check for stdbool.h was missing.
79372         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79373         (jm_PREREQ_HASH): New function.
79374
79375 2001-01-17  Jim Meyering  <meyering@lucent.com>
79376
79377         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79378         for autoconf-2.49c.
79379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79380
79381 2001-01-16  Jim Meyering  <meyering@lucent.com>
79382
79383         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79384         From Bruno Haible.
79385
79386 2001-01-14  Jim Meyering  <meyering@lucent.com>
79387
79388         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79389         foo and bar.  Create conftestdir/ in the script, not in the C code.
79390         Remove directories in the script, not in the C code.
79391         Remove conftestdir{,2} before trying to create the directory.
79392         Make the entire configure script fail if the mkdir fails.
79393
79394 2001-01-14  Jim Meyering  <meyering@lucent.com>
79395
79396         * lib/rename.c: New file.  From Volker Borchert.
79397         Include stdlib.h, string.h or strings.h, and xalloc.h.
79398         Use strip_trailing_slashes rather than open-coding it.
79399
79400 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79401
79402         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79403
79404 2001-01-03  Jim Meyering  <meyering@lucent.com>
79405
79406         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79407         of local `inptr' to avoid warning with some system declarations of
79408         iconv.
79409
79410 2001-01-02  Volker Borchert  <bt@teknon.de>
79411
79412         * m4/rename.m4: New file.
79413         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79414
79415 2001-01-01  Jim Meyering  <meyering@lucent.com>
79416
79417         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79418         even on systems with utmpx.h.  It's necessary for the declaration of
79419         utmp's ut_user member.  Reported by Andreas Jaeger.
79420
79421         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79422         available. They are required for the declarations of getgrgid and
79423         getpwuid resp.
79424         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79425         Reported by Andreas Jaeger.
79426
79427 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79428
79429         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79430         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79431         so `make install' also works in VPATH builds.
79432
79433 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79434
79435         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79436         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79437         can be used in subdirectories.
79438
79439 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79440
79441         * lib/modechange.c: Do not assume that mode_t uses the
79442         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79443         the other-execute bit of FOO even if S_IXOTH != 1.
79444
79445         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79446         WOTH, XOTH, ALLM): New macros.
79447         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79448          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79449         Use them.
79450         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79451         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79452         (mode_compile):
79453         No need to use uintmax_t; unsigned long is long enough.
79454         Don't bother to get suffix since we don't use it.
79455
79456 2000-12-26  Jim Meyering  <meyering@lucent.com>
79457
79458         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79459         better with autoheader.
79460
79461 2000-12-24  Jim Meyering  <meyering@lucent.com>
79462
79463         * lib/hash.c (is_prime): Return explicit boolean values.
79464         (hash_get_first): Return NULL to appease Irix5.6's 89.
79465         Reported by Nelson Beebe.
79466
79467 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79468
79469         * lib/localcharset.c (locale_charset): Add support for Win32.
79470
79471 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79472
79473         * lib/physmem.h, lib/physmem.c: New files.
79474
79475         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79476         (noinst_HEADERS): Add physmem.h.
79477
79478         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79479         't' for compatibility with Solaris 8 sort.
79480
79481 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79482
79483         * lib/config.charset: Add support for BeOS.
79484
79485 2000-12-17  Jim Meyering  <meyering@lucent.com>
79486
79487         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79488         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79489
79490 2000-12-16  Jim Meyering  <meyering@lucent.com>
79491
79492         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79493         N and M) would have treated it like `chown N:N FILE'.
79494
79495         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79496
79497 2000-12-16  Jim Meyering  <meyering@lucent.com>
79498
79499         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79500         SHELLS_FILE to a file name that's useful on djgpp systems.
79501         Include stdlib.h.
79502         (ADDITIONAL_DEFAULT_SHELLS): Define.
79503         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79504         Based mostly on a patch from Prashant TR.
79505
79506 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79507
79508         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79509         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79510         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79511
79512 2000-12-08  Andreas Schwab  <schwab@suse.de>
79513
79514         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79515         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79516
79517 2000-12-07  Jim Meyering  <meyering@lucent.com>
79518
79519         * lib/stripslash.c (ISSLASH): Define.
79520         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79521         `/'.
79522         From Prashant TR.
79523
79524         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79525         (dir_name_r): Declare this function as static.
79526         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79527         manifest itself on a name containing a mix of slashes and
79528         backslashes.
79529         Make this function work with names starting with a DOS-style
79530         drive letter and colon prefix.
79531         (dir_name): Append `.' if necessary.
79532         Based mostly on patches from Prashant TR and Eli Zaretskii.
79533
79534         * lib/dirname.h (dir_name_r): Remove prototype.
79535
79536 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79537
79538         * m4/off_t-format.m4: Remove this file.
79539         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79540
79541 2000-12-06  Jim Meyering  <meyering@lucent.com>
79542
79543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79544         replacement strtoull, we may well need the replacement strtoul, too.
79545         Check for declarations of strtoul and strtoull.
79546         Check for strtol.  Mainly as a cue to cause automake to include
79547         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79548         Check for limits.h -- strtol.c needs it.
79549
79550 2000-12-05  Jim Meyering  <meyering@lucent.com>
79551
79552         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79553
79554 2000-12-04  Jim Meyering  <meyering@lucent.com>
79555
79556         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79557         Also include memory.h, stdlib.h, unistd.h if appropriate.
79558         Reported by Andreas Jaeger (conflicting declaration of malloc).
79559
79560 2000-12-02  Jim Meyering  <meyering@lucent.com>
79561
79562         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79563         * m4/jm-macros.m4 (jm_MACROS): require it.
79564
79565 2000-12-02  Jim Meyering  <meyering@lucent.com>
79566
79567         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79568
79569 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79570
79571         * lib/memrchr.c: Include <config.h> before any system include file.
79572
79573 2000-11-30  Jim Meyering  <meyering@lucent.com>
79574
79575         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79576
79577 2000-11-30  Jim Meyering  <meyering@lucent.com>
79578
79579         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79580
79581 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79582
79583         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79584
79585 2000-11-26  Jim Meyering  <meyering@lucent.com>
79586
79587         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79588
79589 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79590
79591         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79592         size of (size_t) -1; it's not portable.
79593
79594 2000-11-17  Jim Meyering  <meyering@lucent.com>
79595
79596         * lib/strstr.c: Update from GNU libc.
79597
79598 2000-11-17  Akim Demaille  <akim@epita.fr>
79599
79600         * lib/obstack.h: Formatting changes.
79601         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79602         prevent type checking.
79603         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79604         cast the value to (void *): assigning a `foo *' to a `void *'
79605         variable is valid.
79606         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79607
79608 2000-11-16  Jim Meyering  <meyering@lucent.com>
79609
79610         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79611
79612 2000-11-11  Jim Meyering  <meyering@lucent.com>
79613
79614         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79615
79616 2000-11-10  Jim Meyering  <meyering@lucent.com>
79617
79618         * lib/obstack.h: Update from GNU libc.
79619         * lib/obstack.c: Likewise.
79620
79621 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79622
79623         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79624
79625 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79626
79627         * lib/getusershell.c (setusershell): Use rewind rather than
79628         fseek/fseeko, to avoid configuration hassles with fseeko.
79629         Don't bother opening SHELLS_FILE if shellstream is NULL;
79630         it's not necessary.
79631
79632 2000-11-05  Jim Meyering  <meyering@lucent.com>
79633
79634         * lib/makepath.h (make_dir): Declare.
79635         * lib/makepath.c (make_dir): Remove `static' attribute.
79636         Tweak a comment.
79637
79638 2000-11-04  Jim Meyering  <meyering@lucent.com>
79639
79640         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79641
79642 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79643
79644         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79645         last one in a bucket, advance to the next bucket.
79646
79647 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79648
79649         * lib/fnmatch.c: Do not comment out all the code if we are using
79650         the GNU C library, because in some cases we are replacing buggy
79651         code in the GNU C library itself.
79652
79653 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79654
79655         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79656         (regex_compile): Catch bogus \(\1\).
79657
79658 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79659
79660         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79661         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79662         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79663
79664 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79665
79666         * lib/error.h, getline.h, modechange.h:
79667         Remove "2000" from Copyright line, as the file hasn't been
79668         changed this year other than in the copyright notice.
79669
79670         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79671         was changed this year.
79672
79673 2000-10-29  Jim Meyering  <meyering@lucent.com>
79674
79675         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79676         renaming.
79677         * m4/ls-mntd-fs.m4: Likewise
79678
79679 2000-10-29  Jim Meyering  <meyering@lucent.com>
79680
79681         * lib/xstat.in: Fix grammar in comment.
79682
79683 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79684
79685         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79686         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79687         doesn't define __restrict_arr.
79688
79689 2000-10-28  Jim Meyering  <meyering@lucent.com>
79690
79691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79692         (jm_PREREQ_MEMCHR): New function.
79693
79694 2000-10-28  Jim Meyering  <meyering@lucent.com>
79695
79696         * lib/memchr.c: Update from libc.
79697         Adjust for portability:
79698         [HAVE_STDLIB_H]: Include stdlib.h.
79699         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79700         Undef __memchr, too.
79701         [!weak_alias]: Define __memchr to memchr.
79702
79703         * lib/regex.c: Update from libc.
79704         * lib/regex.h: Likewise.
79705         * lib/getopt1.c: Likewise.
79706         * lib/memcmp.c: Likewise.
79707
79708         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79709         Avoid using fseek, when possible -- it's broken by design.
79710         Patch by Ulrich Drepper.
79711
79712 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79713
79714         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79715         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79716         Giving in to popular pressure to shut up the compiler with casts.
79717
79718 2000-10-26  Jim Meyering  <meyering@lucent.com>
79719
79720         * lib/strftime.c: Update from libc.
79721
79722 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79723
79724         * regex.c: More `unsigned char' -> `re_char' changes.
79725         Also change several `int' into `re_wchar_t'.
79726         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79727         (PUSH_FAILURE_POINTER): Don't cast any more.
79728         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79729         We want GCC to complain, since this piece of code makes
79730         re_match non-reentrant, which *should* be fixed.
79731         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79732         (EXTEND_BUFFER): Use RETALLOC.
79733         (SET_LIST_BIT): Don't cast.
79734         (re_wchar_t): New type.
79735         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79736         that those two functions will always properly return.
79737         (IMMEDIATE_QUIT_CHECK): Cast to void.
79738         (analyse_first): Use recursion rather than an explicit stack.
79739         (re_compile_fastmap): Can't fail anymore.
79740         (re_search_2): Don't check re_compile_fastmap for failure.
79741         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79742         Now also sets the new value (passed in a new argument).
79743         (re_match_2_internal): Use it.
79744         Also, use a new var `reg' of type size_t when looping through regs
79745         rather than reuse the inappropriate `mcnt'.
79746
79747 2000-10-25  Jim Meyering  <meyering@lucent.com>
79748
79749         * lib/obstack.c: Update from libc.
79750
79751 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79752
79753         * regex.c (regex_compile): Change the way of handling a range from
79754         a char less than 256 to a char not less than 256.
79755
79756 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79757
79758         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79759         NT-Emacs only.
79760         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79761         so that re_search functions only quit when callers expect them to.
79762
79763 2000-10-23  Jim Meyering  <meyering@lucent.com>
79764
79765         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79766         wrong.  That set_locale call must not have any side effects.
79767         From Paul Eggert.
79768
79769 2000-10-22  Jim Meyering  <meyering@lucent.com>
79770
79771         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79772         [CYCLIC]: Remove now-unused definition.
79773
79774         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79775         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79776         Suggestion from Ulrich Drepper.
79777
79778 2000-10-21  Jim Meyering  <meyering@lucent.com>
79779
79780         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79781         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79783
79784 2000-10-21  Jim Meyering  <meyering@lucent.com>
79785
79786         * lib/dirname.c (memrchr): Declare if necessary.
79787         (dir_name): Remove the restriction that there be no
79788         trailing slashes.  Now, this code skips past them, effectively
79789         ignoring them.
79790         [TEST_DIRNAME] (main): New unit tests.
79791
79792         * lib/memrchr.c: New file from GNU libc.
79793         Undef __memrchr, too.
79794         [!weak_alias]: Define __memrchr to memrchr.
79795         Guard weak_alias use with `#ifdef weak_alias'.
79796
79797 2000-10-21  Jim Meyering  <meyering@lucent.com>
79798
79799         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79800         (dir_name): Use dir_name_r.
79801         * lib/dirname.h (dir_name_r): Declare it.
79802
79803 2000-10-17  Jim Meyering  <meyering@lucent.com>
79804
79805         * lib/quote.h (PARAMS): Define and use.
79806         Reported by Akim Demaille.
79807
79808         * lib/getopt.c: Update from libc.
79809
79810 2000-10-16  Jim Meyering  <meyering@lucent.com>
79811
79812         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79813         setlocale.
79814         From Jan Fedak.
79815
79816 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79817
79818         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79819
79820 2000-09-25  Jim Meyering  <meyering@lucent.com>
79821
79822         * lib/md5.h (rol): Define (from GnuPG).
79823
79824         * lib/sha.c: Give credit (GnuPG) where due.
79825         (M): Use rol rather than open-coding it.
79826         Add a FIXME comment.
79827
79828 2000-09-21  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79831         Reported by Michael Stone.
79832
79833 2000-09-20  Jim Meyering  <meyering@lucent.com>
79834
79835         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79836         (noinst_HEADERS): Add sha.h.
79837         Based on code from Scott G. Miller and from GnuPG.
79838
79839 2000-09-18  Jim Meyering  <meyering@lucent.com>
79840
79841         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79842         LIBS. Otherwise, everyone ends up linking with -lelf for some
79843         configurations.
79844         Reported by Mike Stone.
79845
79846 2000-09-15  Jim Meyering  <meyering@lucent.com>
79847
79848         * lib/regex.c: Update from libc.
79849
79850 2000-09-10  Jim Meyering  <meyering@lucent.com>
79851
79852         * lib/getopt.c (_getopt_internal): Update from glibc.
79853
79854 2000-09-09  Jim Meyering  <meyering@lucent.com>
79855
79856         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79857         think it should be used as a general replacement for isascii.
79858         * lib/fnmatch.c: Likewise.
79859         * lib/mbswidth.c: Likewise
79860         * lib/regex.c: Likewise.
79861
79862         Don't use atoi.
79863         * lib/userspec.c: Include sys/param.h and limits.h.
79864         Include xstrtol.h.
79865         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79866         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79867         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79868         UID, GID.  Check range.
79869
79870 2000-09-06  Jim Meyering  <meyering@lucent.com>
79871
79872         * lib/getopt.c (_getopt_internal): Update from glibc.
79873
79874 2000-08-30  Jim Meyering  <meyering@lucent.com>
79875
79876         * lib/strftime.c: Merge in changes from GNU libc.
79877
79878 2000-08-26  Jim Meyering  <meyering@lucent.com>
79879
79880         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79881         * m4/fpending.m4: New file.
79882
79883 2000-08-26  Jim Meyering  <meyering@lucent.com>
79884
79885         * lib/closeout.c: Include "__fpending.h".
79886         (close_stdout_status): Return right away if there's nothing to flush.
79887
79888         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79889         * lib/__fpending.c: New file.
79890         * lib/__fpending.h: New file.
79891
79892 2000-08-20  Jim Meyering  <meyering@lucent.com>
79893
79894         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79895         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79896         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79897
79898 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79899
79900         Improve fileutils installation on systems where running
79901         programs (like install) can't be unlinked.
79902         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79903         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79904
79905 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79906
79907         Standardize on "memory exhausted" instead of "Memory exhausted"
79908         or "virtual memory exhausted".
79909         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79910         "virtual memory exhausted".
79911         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79912         our own message.
79913         * lib/userspec.c (parse_user_spec): Likewise.
79914         * lib/bumpalloc.h: comment fix
79915         * lib/same.c, userspec.c: Include xalloc.h.
79916
79917         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79918         not char *const and pointing to a constant array.
79919         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79920         (xrealloc): Comment fix.
79921
79922         * lib/userspec.c (parse_user_spec):
79923         Don't translate a message until just before returning,
79924         to avoid unnecessary translation.
79925
79926 2000-08-07  Jim Meyering  <meyering@lucent.com>
79927
79928         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79929         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79930         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79931         getgroups.c, gethostname.c, getopt.h, group-member.c,
79932         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79933         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79934         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79935         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79936         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79937         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79938         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79939         yesno.c: Back out Copyright date changes for each file with no change
79940         this year.  This eases coordination with other programs using the same
79941         source code modules.  From Paul Eggert.
79942
79943 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79944
79945         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79946         not char, for compatibility with glibc 2.1.3 strftime.c.
79947
79948 2000-08-03  Greg McGary  <greg@mcgary.org>
79949
79950         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79951         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79952         (EXTEND_BUFFER): Use them.
79953
79954 2000-08-01  Jim Meyering  <meyering@lucent.com>
79955
79956         * lib/dirname.c (ISSLASH): Define.
79957         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79958         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79959         both `\' and `/' may be use as path separators.
79960         Based on a patch from Prashant TR.
79961
79962 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79963
79964         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79965         slot vector a constant, since it might get modified.
79966
79967 2000-07-31  Jim Meyering  <meyering@lucent.com>
79968
79969         * lib/xmalloc.c: Use `virtual memory exhausted', not
79970         `Memory exhausted'.
79971         * lib/obstack.c (print_and_abort): Likewise.
79972
79973 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79974
79975         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79976         buffer, so that the caller can always quote one small
79977         component of a "memory exhausted" message in slot 0.
79978         From a suggestion by Jim Meyering.
79979
79980 2000-07-30  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/makepath.c (make_path): Quote the other instance, too.
79983
79984         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79985         (STATIC_BUF_SIZE): Define.
79986         (quotearg_n_options): Use only statically allocated storage when
79987         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79988         than STATIC_BUF_SIZE.
79989
79990 2000-07-29  Jim Meyering  <meyering@lucent.com>
79991
79992         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79993         * lib/dirname.c (dir_name): Likewise.
79994
79995         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79996         `/'.
79997
79998         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79999         (dir_name): Assert that there are no trailing slashes.
80000
80001 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80002
80003         * lib/mbswidth.h (mbswidth): Add a flags argument.
80004         (mbswidth): New declaration.
80005         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80006         * lib/mbswidth.c (mbswidth): Add a flags argument.
80007         (mbsnwidth): New function.
80008
80009 2000-07-24  Jim Meyering  <meyering@lucent.com>
80010
80011         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80012
80013 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80014
80015         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80016
80017 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80018
80019         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80020         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80021         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80022         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80023         invoke multibyte primitives.
80024
80025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80026
80027         * lib/quotearg.c:
80028         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80029         so that mbstate_t is always defined.
80030
80031         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80032         be 1 in at least one GCC installation, and this configuration
80033         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80034         performance on hosts that have mbrtowc but have only unibyte
80035         locales, but I assume these hosts are rare.
80036
80037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80038
80039         * lib/mbswidth.c (_XOPEN_SOURCE):
80040         Don't define; this causes problems on Solaris 7.
80041         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80042
80043 2000-07-23  Jim Meyering  <meyering@lucent.com>
80044
80045         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80046         too: getgrgid, getpwuid, getuid.
80047
80048 2000-07-23  Jim Meyering  <meyering@lucent.com>
80049
80050         * lib/basename.c (base_name): Add an assertion.
80051
80052 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80053
80054         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80055         shadow its mbsinit function.
80056
80057 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80058
80059         * lib/mbswidth.h: New file.
80060         * lib/mbswidth.c: New file.
80061         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80062         (noinst_HEADERS): Add mbswidth.h.
80063
80064 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80065
80066         * lib/config.charset: Add support for FreeBSD. Improve support for
80067         HP-UX and IRIX 6.
80068
80069 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80070
80071         * m4/mbswidth.m4: New file.
80072         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80073
80074 2000-07-15  Jim Meyering  <meyering@lucent.com>
80075
80076         * lib/makepath.c: Include quote.h.
80077         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80078         corresponding argument in a `quote (...)' call.
80079         Give better diagnostics.
80080
80081         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80082         (noinst_HEADERS): Add quote.h.
80083
80084         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80085         from tar's src/misc.c.
80086         * lib/quote.h: New file.  Prototypes for same.
80087
80088 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80089
80090         From a suggestion by Bruno Haible.
80091         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80092         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80093         to decide whether to define the BeOS workaround macro;
80094         this adjusts to the change to AC_MBSTATE_T.
80095
80096 2000-07-14  Jim Meyering  <meyering@lucent.com>
80097
80098         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80099         jm_AC_TYPE_UINTMAX_T.
80100
80101 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80104
80105         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80106         quotearg_buffer_restyled): Add support for
80107         clocale_quoting_style.  Undo previous change to
80108         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80109         and "{RIGHT QUOTATION MARK}" msgids.
80110
80111 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80112
80113         From a suggestion by Bruno Haible.
80114         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80115         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80116         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80117         and mbstate_t, to a single-part test that simply defines mbstate_t.
80118         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80119         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80120
80121 2000-07-10  Jim Meyering  <meyering@lucent.com>
80122
80123         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80124
80125         * m4/gnu-source.m4: Output to confdefs.h directly.
80126         Suggestion from Akim Demaille.
80127
80128 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80129
80130         The old behavior of quoting `like this' doesn't look good with
80131         newer, ISO-style fonts.  See:
80132         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80133
80134         Instead, quote "like this" by default.  Let the translator
80135         tailor the locale-specific quoting behavior by providing
80136         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80137
80138         * lib/quotearg.c (N_): New macro.
80139         (gettext_default): New function.
80140         (quotearg_buffer_restyled): Use
80141         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80142         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80143
80144 2000-07-09  Jim Meyering  <meyering@lucent.com>
80145
80146         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80147         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80148
80149         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80151
80152 2000-07-09  Jim Meyering  <meyering@lucent.com>
80153
80154         * lib/Most files: Update copyright dates to include 2000.
80155
80156 2000-07-08  Jim Meyering  <meyering@lucent.com>
80157
80158         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80159         if not defined.
80160         (xgethostname): Remove now-unnecessary #ifdef.
80161         Move declaration of `err' into loop where it's used.
80162
80163 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80164         and Bruno Haible  <haible@clisp.cons.org>
80165
80166         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80167         only if the test for an object-type mbstate_t fails.  This
80168         prevents us from mistakenly reporting that mbstate_t is a
80169         system object type after we "#define mbstate_t int" to work
80170         around its lack.
80171
80172 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80173         and Bruno Haible  <haible@clisp.cons.org>
80174
80175         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80176
80177 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80178
80179         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80180         to strerror_r.
80181         Include <ctype.h> for use of isalpha.
80182
80183 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80184
80185         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80186         by allocating a larger buffer. Test the gethostname return value for
80187         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80188         returns an error and ENAMETOOLONG isn't defined.
80189
80190 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80191
80192         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80193         dimension.
80194
80195 2000-07-04  Jim Meyering  <meyering@lucent.com>
80196
80197         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80198         of the deprecated AC_CHECKING.
80199
80200 2000-07-04  Jim Meyering  <meyering@lucent.com>
80201
80202         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80203         Reported by Bruno Haible.
80204
80205 2000-07-04  Jim Meyering  <meyering@lucent.com>
80206
80207         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80208         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80209         lacks mbrtowc.
80210
80211 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80212
80213         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80214         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80215
80216 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80217         and Bruno Haible  <haible@clisp.cons.org>
80218
80219         * lib/quotearg.c (mbrtowc):
80220         Assign to *pwc, and return 1 only if result is nonzero.
80221         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80222
80223 2000-07-03  Jim Meyering  <meyering@lucent.com>
80224
80225         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80226
80227 2000-07-03  Jim Meyering  <meyering@lucent.com>
80228
80229         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80230         This is necessary to get a definition of e.g., UTMP_FILE on
80231         HP-UX 10.20.
80232         From Bob Proulx.
80233
80234 2000-07-02  Jim Meyering  <meyering@lucent.com>
80235
80236         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80237
80238         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80239         AC_LIBOBJ(function_name).
80240         * m4/chown.m4: Likewise.
80241         * m4/fnmatch.m4: Likewise.
80242         * m4/ftruncate.m4: Likewise.
80243         * m4/getgroups.m4: Likewise.
80244         * m4/getline.m4: Likewise.
80245         * m4/group-member.m4: Likewise.
80246         * m4/jm-macros.m4: Likewise.
80247         * m4/lstat.m4: Likewise.
80248         * m4/malloc.m4: Likewise.
80249         * m4/memcmp.m4: Likewise.
80250         * m4/nanosleep.m4: Likewise.
80251         * m4/putenv.m4: Likewise.
80252         * m4/realloc.m4: Likewise.
80253         * m4/regex.m4: Likewise.
80254         * m4/stat.m4: Likewise.
80255         * m4/strftime.m4: Likewise.
80256
80257 2000-07-02  Jim Meyering  <meyering@lucent.com>
80258
80259         * lib/quotearg.c (mbstate_t): Don't define here.
80260
80261 2000-07-02  Jim Meyering  <meyering@lucent.com>
80262
80263         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80264
80265 2000-07-01  Jim Meyering  <meyering@lucent.com>
80266
80267         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80268
80269 2000-07-01  Jim Meyering  <meyering@lucent.com>
80270
80271         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80272         problem.
80273
80274 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80275
80276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80277         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80278
80279 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80280
80281         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80282         per change in ../m4/ls-mntd-fs.m4.
80283         (read_filesystem_list): Ignore symbolic links.
80284
80285 2000-06-29  Jim Meyering  <meyering@lucent.com>
80286
80287         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80288         for declaration of strcmp.
80289
80290         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80291
80292         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80293         Avoid warning by casting result to `char *' to remove `const'.
80294
80295 2000-06-28  Jim Meyering  <meyering@lucent.com>
80296
80297         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80298         included by quotearg.c, for which we perform this test.  From
80299         Bruno Haible.
80300
80301 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80302
80303         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80304         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80305         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80306
80307 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80308
80309         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80310
80311 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80312
80313         savedir now sets errno on failure and invokes xmalloc to get memory.
80314         Fix a couple of other minor bugs while we're at it.
80315
80316         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80317         (NAMLEN): Remove macro.
80318         (malloc, realloc): Remove decls.
80319         (stpcpy): Likewise.
80320         ("xalloc.h"): Include.
80321         (NAME_SIZE_DEFAULT): New macro.
80322         (savedir): Use xmalloc / xrealloc to allocate memory.
80323         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80324         Skip "" directory entries.
80325         Use strlen to calculate directory entry length, since the old method
80326         is rarely used these days and isn't worth supporting.
80327         Don't use a pointer after freeing it.
80328         Check for integer overflow when calculating allocation size.
80329         Use memcpy to copy entries, instead of stpcpy.
80330         Set errno properly when returning NULL.
80331         Check for readdir error.
80332
80333 2000-06-26  Jim Meyering  <meyering@lucent.com>
80334
80335         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80336
80337 2000-06-25  Jim Meyering  <meyering@lucent.com>
80338
80339         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80340         Linux header bug when _XOPEN_SOURCE is defined to 500.
80341
80342 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80343
80344         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80345         deficiency.
80346
80347 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80348
80349         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80350         Include xalloc.h.
80351         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80352
80353 2000-06-24  Jim Meyering  <meyering@lucent.com>
80354
80355         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80356         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80357         for which strerror does return char*, but which lacks a conveniently
80358         accessible declaration of the function.  If the compile-test says
80359         strerror_r doesn't work, then resort to a `run'-test that works on
80360         BeOS and segfaults on DEC Unix.
80361
80362 2000-06-24  Jim Meyering  <meyering@lucent.com>
80363
80364         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80365
80366 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80367
80368         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80370
80371 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80372
80373         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80374         (mbrtowc, mbstate_t): Define substitutes if
80375         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80376         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80377         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80378
80379 2000-06-23  Jim Meyering  <meyering@lucent.com>
80380
80381         * m4/afs.m4: Add missing AC_MSG_RESULT.
80382         Reported by Bruno Haible.
80383
80384         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80385         Suggestion from Bruno Haible.
80386
80387 2000-06-23  Jim Meyering  <meyering@lucent.com>
80388
80389         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80390
80391 2000-06-21  Jim Meyering  <meyering@lucent.com>
80392
80393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80394
80395 2000-06-21  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80398         (noinst_HEADERS): Add getstr.h.
80399
80400         * lib/getline.c (getstr): Move into a separate file.
80401         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80402         the following changes: new parameter, delim2; both delim[12]
80403         parameters have type `int', not `char'.  The latter would lose
80404         with 8-bit delimiters.
80405         * lib/getstr.h: New file.
80406
80407 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80408
80409         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80410         than 1024, return a memory chunk of least possible size, instead
80411         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80412         Use free/xmalloc instead of xrealloc to avoid copying for very long
80413         paths.
80414
80415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80416
80417         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80418         the empty string.
80419
80420 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80421
80422         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80423         address, not strdup.  Include <stdlib.h> and don't declare free().
80424
80425 2000-06-19  Jim Meyering  <meyering@lucent.com>
80426
80427         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80428
80429 2000-06-18  Jim Meyering  <meyering@lucent.com>
80430
80431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80432
80433         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80434         `checking whether...' message to be consistent with that of the
80435         lstat test.
80436
80437 2000-06-18  Jim Meyering  <meyering@lucent.com>
80438
80439         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80440         Besides, these days every porting target provides a mkdir function.
80441
80442         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80443         needed. (this snippet comes from src/system.h).
80444
80445 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80446
80447         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80448
80449 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80450
80451         * lib/human.c (adjust_value): New function.
80452         (human_readable_inexact): Apply rounding style even when
80453         printing approximate values.
80454
80455 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80456
80457         * lib/human.c (human_readable_inexact): Allow an input block
80458         size that is not a multiple of the output block size, and vice versa.
80459         Reported by Piergiorgio Sartor.
80460
80461 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80462
80463         * lib/getdate.y (get_date): Apply relative times after time
80464         zone indicator, not before.  Reported by Todd A. Jacobs.
80465
80466 2000-06-13  Jim Meyering  <meyering@lucent.com>
80467
80468         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80469
80470         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80471
80472 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80473
80474         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80475
80476 2000-06-12  Jim Meyering  <meyering@lucent.com>
80477
80478         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80479         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80480         optional argument.
80481         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80482         the optional argument, `lib'.
80483
80484 2000-06-08  Jim Meyering  <meyering@lucent.com>
80485
80486         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80487
80488 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80489
80490         Rewrite largefile configuration so that we don't need to run
80491         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80492         AC_CANONICAL_HOST in configure.in -- jmm]
80493
80494         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80495         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80496         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80497         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80498         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80499         All uses changed.
80500         Instead of inspecting the output of getconf, try to compile the
80501         test program without and with the macro definition.
80502         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80503         for getconf.  Instead, check for the needed flags by compiling
80504         test programs.
80505
80506 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80507
80508         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80509
80510 2000-06-04  Jim Meyering  <meyering@lucent.com>
80511
80512         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80513         SunOS 4.1.4 for which gid_t is an unsigned type.
80514
80515 2000-06-03  Jim Meyering  <meyering@lucent.com>
80516
80517         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80518         now that autoconf requires that.
80519
80520         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80521         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80522         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80523
80524 2000-06-03  Jim Meyering  <meyering@lucent.com>
80525
80526         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80527
80528 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80529
80530         * m4/glibc21.m4: New file.
80531         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80532
80533 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80534
80535         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80536         newer, don't install charset.alias.
80537         * lib/config.charset: Change the Linux/glibc rules so they become empty
80538         on glibc-2.1 or newer.
80539
80540 2000-06-02  Jim Meyering  <meyering@lucent.com>
80541
80542         * lib/mountlist.c: Back out last change.  Instead, do this...
80543         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80544         me_dummy member using the same `ignore'-testing code.
80545         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80546         fs_type strings.
80547         From Mark D. Roth.
80548
80549 2000-05-29  Jim Meyering  <meyering@lucent.com>
80550
80551         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80552         mounts with the `ignore' attribute.  Based on a patch from
80553         Mark D. Roth.
80554
80555 2000-05-28  Jim Meyering  <meyering@lucent.com>
80556
80557         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80558         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80559         * m4/stat.m4: Likewise.
80560         * m4/lstat.m4: Likewise.
80561         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80562
80563         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80564         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80565
80566 2000-05-26  Jim Meyering  <meyering@lucent.com>
80567
80568         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80569
80570 2000-05-24  Jim Meyering  <meyering@lucent.com>
80571
80572         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80573         autoconf requires that.
80574         * m4/lib-check.m4: Likewise.
80575         * m4/jm-macros.m4: Likewise.
80576         * m4/strftime.m4: Likewise.
80577
80578         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80579         AC_CHECK_DECLS, now that autoconf requires that.
80580
80581 2000-05-22  Jim Meyering  <meyering@lucent.com>
80582
80583         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80584         * m4/lstat.m4: Likewise.
80585
80586 2000-05-22  Jim Meyering  <meyering@lucent.com>
80587
80588         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80589
80590 2000-05-20  Jim Meyering  <meyering@lucent.com>
80591
80592         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80593         (jm_PREREQ): Use it.
80594
80595 2000-05-18  Jim Meyering  <meyering@lucent.com>
80596
80597         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80598         back, too, since it may have been modified by allocate_entry.
80599         (hash_delete): Rewrite to use neither the assignment operator
80600         nor the comma operator in an if-expression.
80601
80602 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80603
80604         * lib/closeout.c:
80605         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80606         Remove; no longer needed.
80607         "quotearg.h": Add include.
80608         (file_name): Do not bother to explicitly initialize to NULL; it's less
80609         efficient on some hosts.
80610         (close_stdout_status): Remove test as to whether stdout was already
80611         closed; it breaks for the case "echo x | sort >&-".
80612         Quote file name colons.
80613         Do not assume that _("write error") lacks format strings.
80614
80615 2000-05-15  Jim Meyering  <meyering@lucent.com>
80616
80617         * lib/version-etc.c (version_etc_copyright): Update the copyright
80618         string used in all --version output.
80619
80620 2000-05-14  Jim Meyering  <meyering@lucent.com>
80621
80622         * lib/closeout.c (close_stdout_set_file_name): New function.
80623         (close_stdout_status): Use new file-scoped global.
80624         Return right away if fstat says the stdout file descriptor is invalid.
80625         * lib/closeout.h (close_stdout_set_file_name): Declare.
80626
80627 2000-05-10  Jim Meyering  <meyering@lucent.com>
80628
80629         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80630         (close_stdout_set_status): New function.
80631         * lib/closeout.h (close_stdout_set_status): Declare.
80632
80633 2000-05-09  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/gettext.m4: Rename this...
80636         * m4/libintl.m4: ...to this.
80637
80638 2000-05-08  Jim Meyering  <meyering@lucent.com>
80639
80640         * lib/long-options.c: Don't include closeout.h.
80641         (parse_long_options): Don't call close_stdout for --version.
80642
80643 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80644
80645         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80646         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80647         2.1.3 bug.  This avoids a clash when files like regex.c define
80648         _GNU_SOURCE.
80649
80650 2000-05-06  Jim Meyering  <meyering@lucent.com>
80651
80652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80653         (AC_REPLACE_FUNCS): Add strnlen.
80654
80655         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80656         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80657
80658         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80659         AC_SEARCH_LIBS call for nanosleep.
80660         (LIB_NANOSLEEP): Set and AC_SUBST.
80661
80662 2000-05-06  Jim Meyering  <meyering@lucent.com>
80663
80664         * lib/strnlen.c: Undefine __strnlen and strnlen.
80665         [!weak_alias]: Define __strnlen to strnlen.
80666
80667         * lib/atexit.c: New file, from libiberty.
80668
80669 2000-05-06  Jim Meyering  <meyering@lucent.com>
80670
80671         * lib/closeout.c (close_stdout_status): Also check for errors on the
80672         stderr stream.
80673
80674 2000-05-05  Jim Meyering  <meyering@lucent.com>
80675
80676         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80677         AC_SEARCH_LIBS call for clock_gettime.
80678         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80679
80680         * m4/search-libs.m4: Update from autoconf.
80681
80682         su doesn't work on Solaris 2.6.
80683         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80684         <shadow.h>.  Reported by Dragos Harabor.
80685
80686 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80687
80688         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80689         memcpy instead of xmalloc, xrealloc, path_concat.
80690         (locale_charset): Treat empty environment variables as absent.
80691         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80692
80693 2000-05-04  Jim Meyering  <meyering@lucent.com>
80694
80695         * lib/getopt.c: Update from glibc.
80696         * lib/obstack.c: Likewise.
80697         * lib/obstack.h: Likewise.
80698         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80699         file
80700
80701         * lib/regex.h: Likewise.
80702         * lib/strndup.c: Likewise.
80703         * lib/strnlen.c: New file, from glibc.
80704
80705 2000-05-03  Jim Meyering  <meyering@lucent.com>
80706
80707         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80708
80709 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80710
80711         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80712         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80713         compile-time test, rather than inspecting host and OS, to
80714         decide whether to define _LARGEFILE_SOURCE.
80715
80716 2000-05-01  Jim Meyering  <meyering@lucent.com>
80717
80718         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80719
80720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80721         Based on a patch from Bruno Haible.
80722
80723 2000-05-01  Jim Meyering  <meyering@lucent.com>
80724
80725         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80726
80727 2000-04-29  Jim Meyering  <meyering@lucent.com>
80728
80729         * lib/path-concat.c: Declare strdup only if it's not defined.
80730         * lib/canon-host.c: Likewise.
80731
80732 2000-04-28  Jim Meyering  <meyering@lucent.com>
80733
80734         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80735         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80736         is included first, then limits.h is included by locale.h by libintl.h.
80737         From John David Anglin.
80738
80739 2000-04-25  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/makepath.c (S_IRWXUGO): Define.
80742         (make_path): Always perform explicit chmod if MODE specifies any
80743         of the `special' permission bits.  Prompted by a bug report against
80744         install from Mate Wierdl and Joost van Baal.
80745
80746 2000-04-18  Jim Meyering  <meyering@lucent.com>
80747
80748         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80749         (jm_PREREQ): Use it.
80750
80751 2000-04-18  Jim Meyering  <meyering@lucent.com>
80752
80753         * lib/README: New file.
80754
80755         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80756         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80757
80758 2000-04-17  Jim Meyering  <meyering@lucent.com>
80759
80760         Get it right :-)
80761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80762         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80763         Suggestion from Akim Demaille.
80764
80765 2000-04-17  Jim Meyering  <meyering@lucent.com>
80766
80767         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80768         the definition of it to rpl_strftime also defined-away the system's
80769         declaration.
80770
80771 2000-04-15  Jim Meyering  <meyering@lucent.com>
80772
80773         Use `C' to denote so-called `contiguous' files, the same way
80774         that tar does.
80775         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80776         (ftypelet): Use S_ISCTG.
80777         From Michael Deutschmann.
80778
80779 2000-04-14  Jim Meyering  <meyering@lucent.com>
80780
80781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80782         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80783         clobbered.
80784
80785 2000-04-14  Jim Meyering  <meyering@lucent.com>
80786
80787         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80788
80789 2000-04-13  Jim Meyering  <meyering@lucent.com>
80790
80791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80792         AH_VERBATIM to insert required #ifndef into config.h.in.
80793         Suggestion from Akim Demaille.
80794
80795 2000-04-12  Jim Meyering  <meyering@lucent.com>
80796
80797         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80798         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80799         Christian Krackowizer.
80800
80801         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80802         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80803         (AC_SYS_LARGEFILE): Require.
80804         (AM_C_PROTOTYPES): Require.
80805
80806 2000-04-08  Jim Meyering  <meyering@lucent.com>
80807
80808         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80809         names don't conflict.  Reported by Eli Zaretskii.
80810
80811 2000-04-07  Jim Meyering  <meyering@lucent.com>
80812
80813         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80814         sys/types.h, to work around system header problems on AIX 3.2.5.
80815         From Bruno Haible.
80816
80817 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80818
80819         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80820         bug.  Deal with the different error behavior of Irix iconv.
80821
80822 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80823
80824         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80825         IRIX if the installer said otherwise.
80826
80827 2000-04-05  Jim Meyering  <meyering@lucent.com>
80828
80829         Portability tweaks required for ultrix4.3.
80830         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80831         (jm_CHECK_DECLS): Add getutent to the list of functions.
80832         (_jm_DECL_HEADERS): Add utmpx.h.
80833         From John David Anglin.
80834
80835         * m4/strftime.m4: Back out the 2000-04-02 change.
80836         Instead of that change, simply undefine putenv in the test program.
80837
80838 2000-04-05  Jim Meyering  <meyering@lucent.com>
80839
80840         Portability tweaks required for ultrix4.3.
80841         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80842         getutent.
80843         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80844         * lib/canon-host.c: Declare strdup.
80845         * lib/path-concat.c: Likewise.
80846         From John David Anglin.
80847
80848 2000-04-04  Jim Meyering  <meyering@lucent.com>
80849
80850         Be more DOS 8.3-friendly.
80851         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80852         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80853         * lib/Makefile.am: Reflect renaming.
80854         Reported by Eli Zaretskii.
80855
80856         Use a temporary file name that won't clash with `charset.alias'
80857         in the DOS 8.3 name space.
80858         * lib/Makefile.am (charset_tmp): Define.
80859         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80860         (uninstall-local): Likewise.
80861         Reported by Eli Zaretskii.
80862
80863 2000-04-03  Jim Meyering  <meyering@lucent.com>
80864
80865         * m4/gettext.m4: Fix typo in comment.
80866
80867         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80868         textutils/configure.in).  Suggestion from Paul Eggert.
80869         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80870
80871 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80872
80873         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80874         variable in the shell rather than using putenv, which isn't
80875         portable.  This avoids the configure-time inter-test dependency
80876         on the potentially-renamed putenv function.
80877
80878 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80879
80880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80881         before checking struct stat.st_blksize, so that
80882         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80883
80884 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80885
80886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80887         since strftime.c uses HAVE_STRFTIME to decide whether to use
80888         the underlying strftime.
80889
80890 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80891
80892         * lib/time/strftime.c (my_strftime): Make sure we call the system
80893         strftime, not ourselves, when invoking the underlying strftime.
80894
80895 2000-03-24  Jim Meyering  <meyering@lucent.com>
80896
80897         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80898         (charset_alias): Define.
80899         (install-exec-local): Factor out common code.
80900         (uninstall-local): Split lines longer than 80.
80901         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80902         (SUFFIXES): Define.
80903         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80904         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80905
80906 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80907
80908         * lib/config.charset: Output a line containing "Packages using this
80909         file".
80910         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80911         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80912         ref-del.sed): New rules.
80913
80914 2000-03-17  Jim Meyering  <meyering@lucent.com>
80915
80916         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80917         Otherwise, include <strings.h>
80918
80919 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80920
80921         * lib/unicodeio.c (utf8_wctomb): New function.
80922         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80923         format instead of in UCS-4 with platform dependent endianness.
80924
80925 2000-03-10  Jim Meyering  <meyering@lucent.com>
80926
80927         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80928         From Marco Franzen.
80929
80930 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80931
80932         * lib/savedir.c (savedir): Work even if directory size is
80933         negative; this can happen with some screwy NFS configurations.
80934
80935 2000-03-06  Jim Meyering  <meyering@lucent.com>
80936
80937         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80938         if it's NULL (because we ran out of memory).  From Bruno Haible.
80939
80940 2000-03-05  Jim Meyering  <meyering@lucent.com>
80941
80942         * lib/localcharset.c ("path-concat.h"): Include.
80943         (get_charset_aliases): Use path_concat instead of ANSI string
80944         concatenation.
80945
80946         * lib/unicodeio.h (PARAMS): Define.
80947         Use it to guard prototype.
80948
80949 2000-03-04  Jim Meyering  <meyering@lucent.com>
80950
80951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80952         for lib/localcharset.c.
80953
80954 2000-03-04  Jim Meyering  <meyering@lucent.com>
80955
80956         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80957         installing into it.
80958         (uninstall-local): Uncomment this rule so `make distcheck' works
80959         once again.
80960
80961         * lib/unicodeio.c (<errno.h>): Include it.
80962         (errno): Declare if not defined.
80963
80964         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80965
80966         * lib/config.charset: New version, incorporating remarks from a linux
80967         i18n mailing list.  From Bruno Haible.
80968
80969 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80970
80971         * m4/codeset.m4: New file.
80972         * m4/iconv.m4: New file.
80973         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80974
80975 2000-03-03  Jim Meyering  <meyering@lucent.com>
80976
80977         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80978
80979 2000-03-02  Jim Meyering  <meyering@lucent.com>
80980
80981         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80982         the messages come out on separate lines.
80983
80984         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80985         rather than jm_CHECK_DECLARATIONS.
80986         * m4/decl.m4: Remove now-unused file.
80987
80988         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80989         geteuid.
80990
80991 2000-03-02  Jim Meyering  <meyering@lucent.com>
80992
80993         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80994
80995 2000-03-01  Jim Meyering  <meyering@lucent.com>
80996
80997         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80998         * lib/unicodeio.c: Likewise.
80999
81000 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81001
81002         * lib/config.charset: New file.
81003         * lib/localcharset.c: New file.
81004         * lib/unicodeio.h, lib/unicodeio.c: New files.
81005         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81006         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81007         (noinst_HEADERS): Add unicodeio.h.
81008         (all-local, install-exec-local, charset.alias): New targets.
81009
81010 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81011
81012         * lib/quotearg.c (ALERT_CHAR): New macro.
81013         (quotearg_buffer_restyled): Use it.
81014
81015 2000-02-27  Jim Meyering  <meyering@lucent.com>
81016
81017         * m4/check-decl.m4: Add getenv to the list.
81018
81019 2000-02-27  Jim Meyering  <meyering@lucent.com>
81020
81021         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81022         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81023
81024         * lib/backupfile.c: Guard inclusion of stdlib.h with
81025         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81026         Declare malloc if needed.
81027
81028         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81029         `#ifndef HAVE_DECL..'
81030         now that autoconf always defines the HAVE_DECL_ symbols.
81031         * lib/human.c: Likewise.
81032         * lib/same.c: Likewise.
81033         * lib/strtoumax.c: Likewise.
81034
81035         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81036         declaration check was not run.
81037         * lib/hash.c: Likewise.
81038         * lib/human.c: Likewise.
81039         * lib/same.c: Likewise.
81040         * lib/strtoumax.c: Likewise.
81041
81042         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81043         `.', then first look up the entire `.'-containing string as a login
81044         name.
81045
81046 2000-02-23  Jim Meyering  <meyering@lucent.com>
81047
81048         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81049         in place of my hack.
81050
81051 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81052
81053         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81054         (textint): New typedef.
81055         (parser_control): Member year changed from int to textint.
81056         All uses changed.
81057         (YYSTYPE): Removed; replaced by %union with int and textint members.
81058         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81059         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81060         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81061         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81062         (date, number, to_year): Use width of number in digits, not its value,
81063         to determine whether it's a 2-digit year, or a 2-digit time.
81064         (yylex): Store number of digits of numeric tokens.
81065         Reported by John Kendall.
81066
81067         (parser_control): Changed from struct parser_control to typedef (for
81068         consistency).  All uses changed.
81069
81070         (tID): Removed; not used.
81071         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81072
81073 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81074
81075         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81076         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81077
81078 2000-02-12  Jim Meyering  <meyering@lucent.com>
81079
81080         * lib/userspec.c (ISDIGIT): Define it.
81081         (isdigit): Remove definition.
81082         (is_number): Use ISDIGIT, not isdigit.
81083         <libintl.h>: Include.
81084         (_ and N_): Define.
81085         (parse_user_spec): Mark translatable strings.
81086
81087 2000-02-10  Jim Meyering  <meyering@lucent.com>
81088
81089         With these changes, nanosleep.[ch] are finally enough like the other
81090         lib/* replacement files to compile on a few more losing systems.
81091
81092         * lib/nanosleep.h: Don't include config.h.
81093         Remove prototype from declaration of nanosleep.
81094         (PARAMS): Remove now-unneeded definition.
81095         * lib/nanosleep.c: #undef nanosleep.
81096         (rpl_nanosleep): Rename from nanosleep.
81097
81098 2000-02-10  Jim Meyering  <meyering@lucent.com>
81099
81100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81101         gnu_nanosleep to rpl_nanosleep.
81102
81103 2000-02-09  Jim Meyering  <meyering@lucent.com>
81104
81105         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81106         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81107
81108 2000-02-08  Akim Demaille  <akim@epita.fr>
81109
81110         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81111         `[' and `]' and remove uses of `changequote'.
81112         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81113         (AC_SYS_LARGEFILE): Likewise.
81114         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81115         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81116         of changequote.
81117         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81118         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81119         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81120         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81121
81122 2000-02-05  Jim Meyering  <meyering@lucent.com>
81123
81124         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81125         Remove explicit use of AC_HEADER_TIME.  It is required by
81126         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81127         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81128         in autoconf whereby the expansion of the latter ended up preceding
81129         the expansion of its prerequisite, AC_HEADER_TIME.
81130         Reported by Volker Borchert.
81131
81132 2000-02-03  Jim Meyering  <meyering@lucent.com>
81133
81134         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81135
81136 2000-02-03  Jim Meyering  <meyering@lucent.com>
81137
81138         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81139         rather than with `#if HAVE_UTMPNAME'.
81140
81141 2000-02-02  Jim Meyering  <meyering@lucent.com>
81142
81143         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81144         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81145         Reported by Eli Zaretskii.
81146
81147 2000-02-01  Jim Meyering  <meyering@lucent.com>
81148
81149         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81150
81151 2000-01-31  Jim Meyering  <meyering@lucent.com>
81152
81153         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81154         functions.  Add the time.h and sys/time.h headers along with the
81155         AC_REQUIRE'ment of AC_HEADER_TIME.
81156
81157 2000-01-31  Jim Meyering  <meyering@lucent.com>
81158
81159         * lib/nanosleep.h (nanosleep): Guard declaration with
81160         `#if ! HAVE_DECL_NANOSLEEP'.
81161         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81162         the declaration in that vendor's sys/timers.h.
81163         Reported by Christian Krackowizer.
81164
81165         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81166         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81167         (ISPRINT): Likewise.
81168         Reported by Tom Tromey.
81169
81170 2000-01-30  Jim Meyering  <meyering@lucent.com>
81171
81172         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81173
81174         * m4/prereq.m4 (utmp_includes): Define.
81175         Check for ut_user and ut_name members in both struct utmpx
81176         and struct utmp.
81177
81178 2000-01-30  Jim Meyering  <meyering@lucent.com>
81179
81180         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81181         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81182         header files where only utmpx.ut_user is declared.
81183
81184         * lib/readutmp.h (UT_USER): Define.
81185
81186 2000-01-29  Jim Meyering  <meyering@lucent.com>
81187
81188         * m4/lib-check.m4: New file containing library-related checks from
81189         fileutils and sh-utils (textutils had none).
81190
81191 2000-01-28  Jim Meyering  <meyering@lucent.com>
81192
81193         * m4/perl.m4: Change format of warning message to look more like that
81194         from the missing script.  Suggestion from François Pinard.
81195
81196 2000-01-25  Jim Meyering  <meyering@lucent.com>
81197
81198         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81199         well as time.h in the compile check.
81200         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81201         Fix typo in cross-compiling case: s/yes/no/.
81202
81203 2000-01-23  Jim Meyering  <meyering@lucent.com>
81204
81205         * m4/jm-macros.m4: Move df-related tests here from
81206         fileutils/configure.in
81207
81208         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81209         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81210
81211         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81212         s/space/ac_fsusage_space/.
81213         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81214
81215         * m4/ftruncate.m4: New file (derived from part of
81216         fileutils/configure.in).
81217         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81218         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81219
81220         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81221         AC_SUBST these here, rather than just in sh-util/configure.in, so
81222         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81223         all the same.
81224         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81225         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81226         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81227         (AC_SUBST(POW_LIBM)): Likewise.
81228         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81229
81230 2000-01-23  Jim Meyering  <meyering@lucent.com>
81231
81232         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81233         obstack.c.
81234
81235 2000-01-22  Jim Meyering  <meyering@lucent.com>
81236
81237         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81238
81239         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81240
81241         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81242         configure.in
81243         (AC_CHECK_HEADERS): Likewise for sh-utils.
81244         (AC_CHECK_HEADERS): Likewise for textutils.
81245         Merge the three lists of headers.
81246
81247         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81248         from fileutils' configure.in.
81249
81250         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81251         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81252         check-decl.m4.
81253
81254         * m4/check-decl.m4: Use #if rather than #ifdef.
81255         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81256         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81257         (_jm_DECL_HEADERS): Define new function.
81258         (jm_CHECK_DECLARATIONS): Require it.
81259
81260 2000-01-22  Jim Meyering  <meyering@lucent.com>
81261
81262         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81263         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81264         Required for some AIX systems.  Reported by Christian Krackowizer.
81265         [TESTING] (main): New function.
81266
81267         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81268         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81269         letters.
81270
81271         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81272         iswprint.
81273
81274         * lib/strverscmp.c (ISDIGIT): Define.
81275         (strverscmp): Use ISDIGIT, not isdigit.
81276
81277 2000-01-19  Jim Meyering  <meyering@lucent.com>
81278
81279         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81280         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81281         defines `struct timespec' in <sys/time.h>
81282
81283         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81284         Thanks to Akim for explaining.
81285
81286 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81287
81288         * lib/nanosleep.c (nanosleep):
81289         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81290         POSIX.1 doesn't require SA_INTERRUPT and some systems
81291         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81292         it's been part of POSIX.1 since day 1 (in 1988).
81293
81294 2000-01-17  Jim Meyering  <meyering@lucent.com>
81295
81296         * lib/interlock: Remove unused file.  Reported by François Pinard.
81297
81298 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81299
81300         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81301         alert, backslash, formfeed, and vertical tab unnecessarily in
81302         shell quoting style.
81303
81304 2000-01-16  Jim Meyering  <meyering@lucent.com>
81305
81306         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81307         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81308         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81309         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81310
81311 2000-01-16  Jim Meyering  <meyering@lucent.com>
81312
81313         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81314         because the latter didn't work.
81315
81316 2000-01-15  Jim Meyering  <meyering@lucent.com>
81317
81318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81319         (AC_REPLACE_FUNCS): Add memcpy and memset.
81320         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81321         Add strpbrk.
81322         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81323
81324 2000-01-12  Jim Meyering  <meyering@lucent.com>
81325
81326         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81327         (jm_PREREQ): Use it.
81328         (jm_PREREQ_READUTMP): New macro.
81329         (jm_PREREQ): Use it.
81330
81331 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81332
81333         Quote multibyte characters correctly.
81334         * m4/c-bs-a.m4: New file.
81335         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81336         (jm_PREREQ): Use it.
81337
81338 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/uintmax_t.m4: Port to autoconf 2.13.
81341
81342 2000-01-08  Jim Meyering  <meyering@ascend.com>
81343
81344         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81345         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81346
81347 2000-01-04  Jim Meyering  <meyering@ascend.com>
81348
81349         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81350         jm_STRUCT_DIRENT_D_TYPE.
81351         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81352         jm_STRUCT_DIRENT_D_INO.
81353         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81354         jm_STRUCT_UTIMBUF.
81355         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81356         renamings.
81357         * m4/utime.m4: Likewise.
81358
81359         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81360         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81361
81362 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81363
81364         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81365         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81366
81367 2000-01-02  Jim Meyering  <meyering@ascend.com>
81368
81369         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81370         remember if this is necessary.
81371
81372 1999-12-26  Jim Meyering  <meyering@ascend.com>
81373
81374         * m4/jm-macros.m4: Use it here.
81375         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81376
81377 1999-12-23  Jim Meyering  <meyering@ascend.com>
81378
81379         * m4/jm-macros.m4: Check for clock_gettime (moved from
81380         fileutils/configure.in)
81381         Check for gettimeofday.
81382
81383 1999-12-20  Jim Meyering  <meyering@ascend.com>
81384
81385         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81386         autoconf-2.14a-1999-12-20.
81387
81388 1999-12-19  Jim Meyering  <meyering@ascend.com>
81389
81390         * m4/lstat-slash.m4: New file.
81391         * m4/jm-macros.m4: Use the new macro:
81392         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81393
81394 1999-12-07  Jim Meyering  <meyering@ascend.com>
81395
81396         * m4/perl.m4: Require that File::Compare be available, too.
81397         Too many systems seem to lack it.
81398
81399         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81400         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81401
81402 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81403
81404         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81405         problem with the QNX 4.25 shell, which doesn't propagate exit
81406         status of failed commands inside shell assignments.
81407
81408 1999-11-17  Jim Meyering  <meyering@ascend.com>
81409
81410         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81411
81412 1999-11-07  Jim Meyering  <meyering@ascend.com>
81413
81414         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81415
81416 1999-11-06  Jim Meyering  <meyering@ascend.com>
81417
81418         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81419         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81420
81421 1999-11-05  Jim Meyering  <meyering@ascend.com>
81422
81423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81424         configure.in of textutils, fileutils, and sh-utils into this one
81425         (shared between those packages) file.
81426         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81427         AC_STRUCT_ST_BLKSIZE.
81428
81429 1999-11-03  Jim Meyering  <meyering@ascend.com>
81430
81431         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81432         of AC_CHECK_TYPE checks includes unistd.h.
81433         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81434         Suggestion from Akim Demaille.
81435
81436 1999-10-30  Jim Meyering  <meyering@ascend.com>
81437
81438         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81439         m4-quoted string.
81440         * m4/ls-mntd-fs.m4: Likewise.
81441         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81442         * m4/jm-winsz1.m4: Likewise.
81443
81444         * m4/const.m4: Remove file, since the fix made it into the experimental
81445         version of autoconf.
81446         * m4/mktime.m4: Likewise.
81447
81448         * m4/check-type.m4: Remove file, now that the latest version of
81449         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81450
81451         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81452         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81453         AC_CHECK_TYPE.
81454
81455 1999-10-04  Jim Meyering  <meyering@ascend.com>
81456
81457         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81458
81459 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81460
81461         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81462         2.95.1 bug with HP-UX 10.20.
81463
81464 1999-09-17  Jim Meyering  <meyering@ascend.com>
81465
81466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81467         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81468         due to missing strdup (against sh-utils-2.0).
81469
81470 1999-08-29  Jim Meyering  <meyering@ascend.com>
81471
81472         * m4/jm-macros.m4: Require jm_BISON.
81473         * m4/bison.m4: New file.
81474
81475 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81476
81477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81478         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81479
81480 1999-08-05  Jim Meyering  <meyering@ascend.com>
81481
81482         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81483         to avoid conflicts with `conftest' on 8+3 filesystems.
81484         Suggestion from Eli Zaretskii.
81485
81486 1999-08-04  Jim Meyering  <meyering@ascend.com>
81487
81488         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81489         fileutils and sh-utils (textutils's getline test was inadequate).
81490         (AM_FUNC_GETLINE): Run this test.
81491         (AC_CHECK_FUNCS): Check for getdelim.
81492         Reported by Bob Proulx.
81493
81494 1999-08-02  Jim Meyering  <meyering@ascend.com>
81495
81496         * m4/jm-macros.m4: Add a comment.
81497
81498 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81499
81500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81501         <inttypes.h> defines strtoumax as a macro (and not as a
81502         function).
81503
81504 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81505
81506         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81507         that we can shift, multiply and divide unsigned long long
81508         values; Ultrix cc can't do it.
81509
81510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81511
81512         * m4/mktime.m4: New file, which is a preview of what should appear
81513         in the next public autoconf release.
81514
81515 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81516
81517         * m4/lfs.m4: Remove this file.
81518         * m4/largefile.m4: New file.  It contains the old contents of
81519         lfs.m4, except that all names with prefix AC_LFS have been
81520         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81521         compatible with future autoconf versions.  Also, some minor m4
81522         quoting problems have been fixed.
81523
81524 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81525
81526         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81527         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81528         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81529         and simplify the shell code.
81530
81531 1999-08-01  Jim Meyering  <meyering@ascend.com>
81532
81533         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81534         m4.
81535
81536 1999-07-20  Jim Meyering  <meyering@ascend.com>
81537
81538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81539
81540 1999-07-15  Jim Meyering  <meyering@ascend.com>
81541
81542         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81543
81544 1999-05-22  Jim Meyering  <meyering@ascend.com>
81545
81546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81547
81548 1999-05-20  Jim Meyering  <meyering@ascend.com>
81549
81550         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81551         Add a colon after each `then' in case $4 is empty.
81552
81553 1999-05-16  Jim Meyering  <meyering@ascend.com>
81554
81555         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81556
81557 1999-05-10  Jim Meyering  <meyering@ascend.com>
81558
81559         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81560
81561         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81562         AC_FUNC_MKTIME.
81563
81564 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81565
81566         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81567
81568 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81569
81570         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81571         not CPPFLAGS, so that linking works correctly in IRIX.
81572
81573 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81574
81575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81576
81577 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81578
81579         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81580         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81582         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81583         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81584
81585         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81586
81587 1999-04-20  Jim Meyering  <meyering@ascend.com>
81588
81589         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81590         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81591         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81592
81593 1999-04-18  Jim Meyering  <meyering@ascend.com>
81594
81595         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81596         * m4/jm-macros.m4: Use it.
81597
81598 1999-04-06  Jim Meyering  <meyering@ascend.com>
81599
81600         * m4/strftime.m4: Remove test for %f.
81601
81602 1999-03-29  Jim Meyering  <meyering@ascend.com>
81603
81604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81605         superset of the AC_TYPE_* checks in the textutils, fileutils,
81606         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81607         AC_TYPE_PID_T.
81608
81609 1999-03-28  Jim Meyering  <meyering@ascend.com>
81610
81611         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81612         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81613         replaced e.g., in the *.sh files of the sh-utils.
81614
81615 1999-03-20  Jim Meyering  <meyering@ascend.com>
81616
81617         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81618         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81619         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81620
81621 1999-03-19  Jim Meyering  <meyering@ascend.com>
81622
81623         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81624
81625 1999-03-12  Jim Meyering  <meyering@ascend.com>
81626
81627         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81628
81629 1999-03-07  Jim Meyering  <meyering@ascend.com>
81630
81631         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81632         declared.
81633
81634 1999-02-17  Jim Meyering  <meyering@ascend.com>
81635
81636         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81637         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81638
81639 1999-02-07  Jim Meyering  <meyering@ascend.com>
81640
81641         * m4/group-member.m4: New file -- extracted from sh-utils'
81642         configure.in.
81643
81644         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81645         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81646
81647 1999-02-06  Jim Meyering  <meyering@ascend.com>
81648
81649         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81650         * m4/fnmatch.m4: Likewise.
81651         * m4/getgroups.m4: Likewise.
81652         * m4/lstat.m4: Likewise.
81653         * m4/malloc.m4: Likewise.
81654         * m4/putenv.m4: Likewise.
81655         * m4/realloc.m4: Likewise.
81656         * m4/regex.m4: Likewise.
81657         * m4/stat.m4: Likewise.
81658         * m4/strftime.m4: Likewise.
81659         Suggestion from Alain Magloire.
81660
81661         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81662         * m4/fnmatch.m4: Likewise.
81663         * m4/getgroups.m4: Likewise.
81664         * m4/getline.m4: Likewise.
81665         * m4/lstat.m4: Likewise.
81666         * m4/malloc.m4: Likewise.
81667         * m4/memcmp.m4: Likewise.
81668         * m4/putenv.m4: Likewise.
81669         * m4/realloc.m4: Likewise.
81670         * m4/regex.m4: Likewise.
81671         * m4/stat.m4: Likewise.
81672         * m4/strftime.m4: Likewise.
81673         Suggestion from Alain Magloire.
81674
81675         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81676         an argument.
81677
81678         * m4/regex.m4: Add a run-time Test for proper operation of
81679         re_compile_pattern.
81680
81681 1999-01-31  Jim Meyering  <meyering@ascend.com>
81682
81683         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81684
81685 1999-01-30  Jim Meyering  <meyering@ascend.com>
81686
81687         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81688
81689         * m4/jm-mktime.m4: Make this a wrapper around the official
81690         AM_FUNC_MKTIME rather than my private copy, now that the official one
81691         is up to date.
81692         * m4/mktime.m4: Remove file.
81693
81694         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81695         * m4/uptime.m4: Likewise.
81696         * m4/uintmax_t.m4: Likewise.
81697
81698 1999-01-28  Jim Meyering  <meyering@ascend.com>
81699
81700         * m4/jm-macros.m4: Use jm_AFS.
81701         * m4/afs.m4: New file (from fileutils' configure.in).
81702
81703         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81704         * m4/chown.m4: Likewise.
81705         * m4/d-ino.m4: Likewise.
81706         * m4/d-type.m4: Likewise.
81707         * m4/fnmatch.m4: Likewise.
81708         * m4/getgroups.m4: Likewise.
81709         * m4/gettext.m4: Likewise.
81710         * m4/jm-mktime.m4: Likewise.
81711         * m4/jm-winsz2.m4: Likewise.
81712         * m4/lcmessage.m4: Likewise.
81713         * m4/ls-mntd-fs.m4: Likewise.
81714         * m4/malloc.m4: Likewise.
81715         * m4/memcmp.m4: Likewise.
81716         * m4/putenv.m4: Likewise.
81717         * m4/realloc.m4: Likewise.
81718         * m4/st_mtim.m4: Likewise.
81719         * m4/strftime.m4: Likewise.
81720
81721 1999-01-16  Jim Meyering  <meyering@ascend.com>
81722
81723         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81724         (ARGMATCH_DIE_DECL): Define.
81725
81726 1999-01-12  Jim Meyering  <meyering@ascend.com>
81727
81728         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81729         Reported by Lars Hecking.
81730
81731 1999-01-10  Jim Meyering  <meyering@ascend.com>
81732
81733         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81734         gross kludge.
81735         * m4/inttypes_h.m4: Likewise.
81736         * m4/lstat.m4: Likewise.
81737         * m4/malloc.m4: Likewise.
81738         * m4/readdir.m4: Likewise.
81739         * m4/realloc.m4: Likewise.
81740         * m4/st_dm_mode.m4: Likewise.
81741         * m4/stat.m4: Likewise.
81742         * m4/utimbuf.m4: Likewise.
81743         * m4/utimes.m4: Likewise.
81744
81745         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81746         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81747         comments in config.h.in are meaningful.
81748
81749         * m4/jm-macros.m4: Require autoconf-2.13 here.
81750
81751         * m4/regex.m4: By default, don't use the included regex.c on systems
81752         with glibc 2.  Suggestion from Uli Drepper.
81753
81754 1999-01-02  Jim Meyering  <meyering@ascend.com>
81755
81756         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81757
81758 1998-12-18  Jim Meyering  <meyering@ascend.com>
81759
81760         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81761         Based on a suggestion from Lars Hecking.
81762
81763 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81764
81765         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81766
81767 1998-11-16  Jim Meyering  <meyering@ascend.com>
81768
81769         * m4/lfs.m4: Double-quote the `uname...` expression.
81770
81771 1998-11-14  Jim Meyering  <meyering@ascend.com>
81772
81773         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81774         * m4/stat.m4: Likewise.
81775
81776 1998-11-03  Jim Meyering  <meyering@ascend.com>
81777
81778         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81779         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81780
81781 1998-10-18  Jim Meyering  <meyering@ascend.com>
81782
81783         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81784
81785 1998-10-17  Jim Meyering  <meyering@ascend.com>
81786
81787         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81788         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81789         calls for those previously hard-coded headers.  Instead, take a new
81790         parameter.
81791         (jm_CHECK_DECLARATIONS): Reflect interface change.
81792         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81793         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81794
81795         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81796
81797 1998-10-14  Jim Meyering  <meyering@ascend.com>
81798
81799         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81800         instead of "TZ=America/Vancouver".  From Paul Eggert.
81801
81802 1998-10-11  Jim Meyering  <meyering@ascend.com>
81803
81804         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81805         This adds a test for a recently added compatibility fix for mktime.c.
81806         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81807
81808 1998-09-27  Jim Meyering  <meyering@ascend.com>
81809
81810         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81811
81812         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81813         ../configure.in, including a change from Gordon Matzigkeit to allow
81814         cross-compiling for the Hurd.
81815
81816         * m4/glibc.m4: New file/macro to test for the GNU C Library
81817         versions 1 and 2.  From Gordon Matzigkeit.
81818         Indent.
81819
81820 1998-09-21  Jim Meyering  <meyering@ascend.com>
81821
81822         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81823
81824 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81825
81826         Port nanosecond-resolution times to UnixWare 2.1.2 and
81827         pedantic Solaris 2.6.
81828
81829         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81830         AC_STRUCT_ST_MTIM.
81831         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81832         Generate name of ns member, instead of just 1 or undef.
81833         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81834
81835 1998-08-15  Jim Meyering  <meyering@ascend.com>
81836
81837         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81838         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81839         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81840         instead of jm_TYPE_SSIZE_T.
81841
81842 1998-08-12  Jim Meyering  <meyering@ascend.com>
81843
81844         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81845
81846 1998-08-02  Jim Meyering  <meyering@ascend.com>
81847
81848         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81849         in acconfig.h manually.
81850
81851 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81852
81853         * m4/st_mtim.m4: New file.
81854
81855 1998-07-28  Jim Meyering  <meyering@ascend.com>
81856
81857         * m4/utimes.m4: Undef stat.
81858
81859 1998-07-25  Jim Meyering  <meyering@ascend.com>
81860
81861         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81862         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81863
81864 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81865
81866         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81867         uid and gid actually remain unchanged.
81868
81869 1998-07-07  Jim Meyering  <meyering@ascend.com>
81870
81871         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81872
81873 1998-07-04  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81876         to prove that this macro can be used in packages without regex.c.
81877
81878 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81879
81880         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81881         is to be used.
81882
81883 1998-07-03  Jim Meyering  <meyering@ascend.com>
81884
81885         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81886
81887         * m4/gettext.m4: New file -- from gettext-0.10.35.
81888         * m4/lcmessage.m4: Likewise.
81889         * m4/progtest.m4: Likewise.
81890
81891         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81892         * m4/jm-macros.m4: Require the new macro.
81893
81894 1998-06-29  Jim Meyering  <meyering@ascend.com>
81895
81896         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81897         for the definition of NGROUPS (used in a system header included
81898         by sys/mount.h).
81899
81900 1998-06-28  Jim Meyering  <meyering@ascend.com>
81901
81902         * m4/ls-mntd-fs.m4: New file.
81903         * m4/fstypename.m4: New file.
81904
81905         * m4/jm-macros.m4: Require the new macro.
81906         * m4/jm-glibc-io.m4: New file.
81907
81908 1998-05-19  Jim Meyering  <meyering@ascend.com>
81909
81910         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81911         * m4/lchown.m4: New file.
81912
81913         * m4/Makefile.am.in: New file.
81914         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81915
81916 1998-05-14  Jim Meyering  <meyering@ascend.com>
81917
81918         * m4/Makefile.am (EXTRA_DIST): Add them.
81919         * m4/jm-macros.m4: New file.
81920         * m4/utimbuf.m4: New file.
81921
81922 1998-05-12  Jim Meyering  <meyering@ascend.com>
81923
81924         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81925
81926 1998-05-11  Jim Meyering  <meyering@ascend.com>
81927
81928         * m4/isc-posix.m4: New file.
81929
81930 1998-05-10  Jim Meyering  <meyering@ascend.com>
81931
81932         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81933
81934 1998-05-09  Jim Meyering  <meyering@ascend.com>
81935
81936         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81937         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81938         with automake.
81939
81940         * m4/ssize_t.m4: New file.
81941         * m4/mktime.m4: Remove file -- the new automake has this now.
81942
81943 1998-04-26  Jim Meyering  <meyering@ascend.com>
81944
81945         * m4/assert.m4: New file.
81946         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81947
81948 1998-04-05  Jim Meyering  <meyering@ascend.com>
81949
81950         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81951         (jm_PREREQ): Use it here.
81952
81953 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81954
81955         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81956         in acconfig.h.
81957
81958 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81959
81960         * m4/prereq.m4: New file.
81961         * m4/error.m4: New file.
81962         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81963
81964 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81965
81966         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81967         cache-check for the same variable -- that defeated the purpose of
81968         the test; the test program was never run.  This was a problem only
81969         on systems with losing getline functions -- HP-UX 10.20 is one.
81970         Reported by Bjorn Helgaas.
81971
81972 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81973
81974         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81975
81976 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81977
81978         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81979
81980         * m4/const.m4: New file.  Use an initializer in this declaration
81981         typedef int charset[2]; const charset x;
81982         Reported by Bob Glickstein.
81983
81984 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81985
81986         * m4/chown.m4: Fix reversed types on -1 args to chown.
81987         From Kaveh Ghazi.
81988
81989 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81990
81991         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81992         Add lseek and memchr.
81993
81994         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81995         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81996         have a 20-character limit on names.
81997
81998 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81999
82000         * m4/inttypes_h.m4: New file.
82001         * m4/uintmax_t.m4: New file.
82002         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82003
82004
82005         -----
82006
82007         Local Variables:
82008         coding: utf-8
82009         End:
82010
82011         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82012
82013         Copying and distribution of this file, with or without
82014         modification, are permitted provided the copyright notice
82015         and this notice are preserved.