fb057cf74a013d47759bc8020f57bfd40b996c40
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         tcgetsid: Move AC_LIBOBJ invocations to module description.
4         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5         and gl_PREREQ_TCGETSID invocations from here...
6         * modules/tcgetsid (configure.ac): ... to here.
7         (Depends-on): Update conditions.
8
9 2011-05-22  Bruno Haible  <bruno@clisp.org>
10
11         symlinkat: Move AC_LIBOBJ invocations to module description.
12         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13         here...
14         * modules/symlinkat (configure.ac): ... to here.
15
16 2011-05-22  Bruno Haible  <bruno@clisp.org>
17
18         symlink: Move AC_LIBOBJ invocations to module description.
19         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
20         here...
21         * modules/symlink (configure.ac): ... to here.
22
23 2011-05-22  Bruno Haible  <bruno@clisp.org>
24
25         strverscmp: Move AC_LIBOBJ invocations to module description.
26         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
27         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
28         from here...
29         * modules/strverscmp (configure.ac): ... to here.
30
31 2011-05-22  Bruno Haible  <bruno@clisp.org>
32
33         strtok_r: Move AC_LIBOBJ invocations to module description.
34         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
35         and gl_PREREQ_STRTOK_R invocations from here...
36         * modules/strtok_r (configure.ac): ... to here.
37         (Depends-on): Update conditions.
38
39 2011-05-22  Bruno Haible  <bruno@clisp.org>
40
41         strtoumax: Move AC_LIBOBJ invocations to module description.
42         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
43         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
44         from here...
45         * modules/strtoumax (configure.ac): ... to here.
46
47 2011-05-22  Bruno Haible  <bruno@clisp.org>
48
49         strtoimax: Move AC_LIBOBJ invocations to module description.
50         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52         from here...
53         * modules/strtoimax (configure.ac): ... to here.
54
55 2011-05-22  Bruno Haible  <bruno@clisp.org>
56
57         strtoull: Move AC_LIBOBJ invocations to module description.
58         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
59         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
60         from here...
61         * modules/strtoull (configure.ac): ... to here.
62
63 2011-05-22  Bruno Haible  <bruno@clisp.org>
64
65         strtoll: Move AC_LIBOBJ invocations to module description.
66         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
67         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
68         here...
69         * modules/strtoll (configure.ac): ... to here.
70
71 2011-05-22  Bruno Haible  <bruno@clisp.org>
72
73         strtoul: Move AC_LIBOBJ invocations to module description.
74         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
75         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
76         * modules/strtoul (configure.ac): ... to here.
77
78 2011-05-22  Bruno Haible  <bruno@clisp.org>
79
80         strtol: Move AC_LIBOBJ invocations to module description.
81         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
82         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
83         * modules/strtol (configure.ac): ... to here.
84
85 2011-05-22  Bruno Haible  <bruno@clisp.org>
86
87         strtod: Move AC_LIBOBJ invocations to module description.
88         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
89         invocations from here...
90         * modules/strtod (configure.ac): ... to here.
91
92 2011-05-22  Bruno Haible  <bruno@clisp.org>
93
94         strstr*: Move AC_LIBOBJ invocations to module description.
95         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
96         invocations from here...
97         * modules/strstr-simple (configure.ac): ... to here.
98         * modules/strstr (configure.ac): ... and here.
99
100 2011-05-22  Bruno Haible  <bruno@clisp.org>
101
102         strsignal: Move AC_LIBOBJ invocations to module description.
103         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
104         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
105         * modules/strsignal (configure.ac): ... to here.
106         (Depends-on): Update conditions.
107
108 2011-05-22  Bruno Haible  <bruno@clisp.org>
109
110         strsep: Move AC_LIBOBJ invocations to module description.
111         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
112         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
113         here...
114         * modules/strsep (configure.ac): ... to here.
115
116 2011-05-22  Bruno Haible  <bruno@clisp.org>
117
118         strptime: Move AC_LIBOBJ invocations to module description.
119         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
120         gl_PREREQ_STRPTIME invocations from here...
121         * modules/strptime (configure.ac): ... to here.
122
123 2011-05-22  Bruno Haible  <bruno@clisp.org>
124
125         strpbrk: Move AC_LIBOBJ invocations to module description.
126         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
128         here...
129         * modules/strpbrk (configure.ac): ... to here.
130
131 2011-05-22  Bruno Haible  <bruno@clisp.org>
132
133         strnlen: Move AC_LIBOBJ invocations to module description.
134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
135         invocations from here...
136         * modules/strnlen (configure.ac): ... to here.
137
138 2011-05-22  Bruno Haible  <bruno@clisp.org>
139
140         strndup: Move AC_LIBOBJ invocations to module description.
141         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
142         invocations from here...
143         * modules/strndup (configure.ac): ... to here.
144         (Depends-on): Update conditions.
145
146 2011-05-22  Bruno Haible  <bruno@clisp.org>
147
148         strncat: Move AC_LIBOBJ invocations to module description.
149         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
150         invocations from here...
151         * modules/strncat (configure.ac): ... to here.
152
153 2011-05-22  Bruno Haible  <bruno@clisp.org>
154
155         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
156         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
157         invocations from here...
158         * modules/strdup (configure.ac): ... to here.
159         * modules/strdup-posix (configure.ac): ... and here.
160
161 2011-05-22  Bruno Haible  <bruno@clisp.org>
162
163         strcspn: Move AC_LIBOBJ invocations to module description.
164         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
166         here...
167         * modules/strcspn (configure.ac): ... to here.
168
169 2011-05-22  Bruno Haible  <bruno@clisp.org>
170
171         strchrnul: Move AC_LIBOBJ invocations to module description.
172         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
173         gl_PREREQ_STRCHRNUL invocations from here...
174         * modules/strchrnul (configure.ac): ... to here.
175
176 2011-05-22  Bruno Haible  <bruno@clisp.org>
177
178         strcasestr*: Move AC_LIBOBJ invocations to module description.
179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
180         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
181         * modules/strcasestr-simple (configure.ac): ... to here.
182         * modules/strcasestr (configure.ac): ... and here.
183
184 2011-05-22  Bruno Haible  <bruno@clisp.org>
185
186         strcase: Move AC_LIBOBJ invocations to module description.
187         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
188         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
189         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
190         gl_PREREQ_STRNCASECMP invocations from here...
191         * modules/strcase (configure.ac): ... to here.
192
193 2011-05-22  Bruno Haible  <bruno@clisp.org>
194
195         stpncpy: Move AC_LIBOBJ invocations to module description.
196         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
197         here...
198         * modules/stpncpy (configure.ac): ... to here.
199
200 2011-05-22  Bruno Haible  <bruno@clisp.org>
201
202         stpcpy: Move AC_LIBOBJ invocations to module description.
203         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
205         here...
206         * modules/stpcpy (configure.ac): ... to here.
207
208 2011-05-21  Bruno Haible  <bruno@clisp.org>
209
210         stat: Move AC_LIBOBJ invocations to module description.
211         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
212         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
213         here...
214         * modules/stat (configure.ac): ... to here.
215
216 2011-05-21  Bruno Haible  <bruno@clisp.org>
217
218         sleep: Move AC_LIBOBJ invocations to module description.
219         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
220         * modules/sleep (configure.ac): ... to here.
221
222 2011-05-21  Bruno Haible  <bruno@clisp.org>
223
224         signbit: Move AC_LIBOBJ invocations to module description.
225         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
226         * modules/signbit (configure.ac): ... to here.
227
228 2011-05-21  Bruno Haible  <bruno@clisp.org>
229
230         sigprocmask: Move AC_LIBOBJ invocations to module description.
231         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
232         gl_PREREQ_SIGPROMASK invocations from here...
233         * modules/sigprocmask (configure.ac): ... to here.
234
235 2011-05-21  Bruno Haible  <bruno@clisp.org>
236
237         sigaction: Move AC_LIBOBJ invocations to module description.
238         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
239         gl_PREREQ_SIGACTION invocations from here...
240         * modules/sigaction (configure.ac): ... to here.
241
242 2011-05-21  Bruno Haible  <bruno@clisp.org>
243
244         sig2str: Move AC_LIBOBJ invocations to module description.
245         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
247         here...
248         * modules/sig2str (configure.ac): ... to here.
249
250 2011-05-21  Bruno Haible  <bruno@clisp.org>
251
252         setlocale: Move AC_LIBOBJ invocations to module description.
253         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
254         gl_PREREQ_SETLOCALE invocations from here...
255         * modules/setlocale (configure.ac): ... to here.
256
257 2011-05-21  Bruno Haible  <bruno@clisp.org>
258
259         unsetenv: Move AC_LIBOBJ invocations to module description.
260         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
261         and gl_PREREQ_UNSETENV invocations from here...
262         * modules/unsetenv (configure.ac): ... to here.
263         (Depends-on): Update.
264
265 2011-05-21  Bruno Haible  <bruno@clisp.org>
266
267         setenv: Move AC_LIBOBJ invocations to module description.
268         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
269         here...
270         * modules/setenv (configure.ac): ... to here.
271
272 2011-05-21  Bruno Haible  <bruno@clisp.org>
273
274         selinux-h: Move AC_LIBOBJ invocations to module description.
275         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
276         AC_LIBOBJ invocation from here...
277         * modules/selinux-h (configure.ac): ... to here.
278
279 2011-05-21  Bruno Haible  <bruno@clisp.org>
280
281         select: Respect rules for use of AC_LIBOBJ.
282         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
283         here...
284         * modules/select (configure.ac): ... to here.
285
286 2011-05-21  Bruno Haible  <bruno@clisp.org>
287
288         scandir: Move AC_LIBOBJ invocations to module description.
289         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
290         invocations from here...
291         * modules/scandir (configure.ac): ... to here.
292
293 2011-05-21  Bruno Haible  <bruno@clisp.org>
294
295         rpmatch: Move AC_LIBOBJ invocations to module description.
296         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
298         here...
299         * modules/rpmatch (configure.ac): ... to here.
300
301 2011-05-21  Bruno Haible  <bruno@clisp.org>
302
303         rmdir: Respect rules for use of AC_LIBOBJ.
304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
305         * modules/rmdir (configure.ac): ... to here.
306
307 2011-05-21  Bruno Haible  <bruno@clisp.org>
308
309         renameat: Move AC_LIBOBJ invocations to module description.
310         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
311         here...
312         * modules/renameat (configure.ac): ... to here.
313
314 2011-05-21  Bruno Haible  <bruno@clisp.org>
315
316         rename: Respect rules for use of AC_LIBOBJ.
317         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
318         here...
319         * modules/rename (configure.ac): ... to here.
320
321 2011-05-21  Bruno Haible  <bruno@clisp.org>
322
323         remove: Move AC_LIBOBJ invocations to module description.
324         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
325         here...
326         * modules/remove (configure.ac): ... to here.
327
328 2011-05-21  Bruno Haible  <bruno@clisp.org>
329
330         relocatable-lib: Move AC_LIBOBJ invocations to module description.
331         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
332         macro.
333         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
334         * modules/relocatable-lib (configure.ac): ... to here.
335         * modules/relocatable-prog-wrapper (configure.ac): Invoke
336         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
337
338 2011-05-21  Bruno Haible  <bruno@clisp.org>
339
340         relocatable-prog: Move AC_LIBOBJ invocations to module description.
341         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
342         here...
343         * modules/relocatable-prog (configure.ac): ... to here.
344
345 2011-05-21  Bruno Haible  <bruno@clisp.org>
346
347         regex: Move AC_LIBOBJ invocations to module description.
348         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
349         invocations from here...
350         * modules/regex (configure.ac): ... to here.
351
352 2011-05-21  Bruno Haible  <bruno@clisp.org>
353
354         realloc-*: Move AC_LIBOBJ invocations to module description.
355         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
356         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
357         AC_LIBOBJ invocations from here...
358         * modules/realloc-gnu (configure.ac): ... to here.
359         * modules/realloc-posix (configure.ac): ... and here.
360
361 2011-05-21  Bruno Haible  <bruno@clisp.org>
362
363         readutmp: Move AC_LIBOBJ invocations to module description.
364         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
365         * modules/readutmp (configure.ac): ... to here.
366
367 2011-05-21  Bruno Haible  <bruno@clisp.org>
368
369         readlinkat: Move AC_LIBOBJ invocations to module description.
370         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
371         here...
372         * modules/readlinkat (configure.ac): ... to here.
373
374 2011-05-21  Bruno Haible  <bruno@clisp.org>
375
376         readlink: Move AC_LIBOBJ invocations to module description.
377         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
378         gl_PREREQ_READLINK invocations from here...
379         * modules/readlink (configure.ac): ... to here.
380
381 2011-05-21  Bruno Haible  <bruno@clisp.org>
382
383         readline: Move AC_LIBOBJ invocations to module description.
384         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
385         gl_PREREQ_READLINE invocations from here...
386         * modules/readline (configure.ac): ... to here.
387
388 2011-05-21  Bruno Haible  <bruno@clisp.org>
389
390         read: Move AC_LIBOBJ invocations to module description.
391         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
392         * modules/read (configure.ac): ... to here.
393
394 2011-05-21  Bruno Haible  <bruno@clisp.org>
395
396         rawmemchr: Move AC_LIBOBJ invocations to module description.
397         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
399         from here...
400         * modules/rawmemchr (configure.ac): ... to here.
401
402 2011-05-21  Bruno Haible  <bruno@clisp.org>
403
404         random_r: Move AC_LIBOBJ invocations to module description.
405         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
406         gl_PREREQ_RANDOM_R invocations from here...
407         * modules/random_r (configure.ac): ... to here.
408
409 2011-05-21  Bruno Haible  <bruno@clisp.org>
410
411         pwrite: Move AC_LIBOBJ invocations to module description.
412         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
413         * modules/pwrite (configure.ac): ... to here.
414
415 2011-05-21  Bruno Haible  <bruno@clisp.org>
416
417         putenv: Move AC_LIBOBJ invocations to module description.
418         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
419         * modules/putenv (configure.ac): ... to here.
420
421 2011-05-21  Bruno Haible  <bruno@clisp.org>
422
423         login_tty: Move AC_LIBOBJ invocations to module description.
424         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
425         * modules/login_tty (configure.ac): ... to here.
426
427 2011-05-21  Bruno Haible  <bruno@clisp.org>
428
429         openpty: Move AC_LIBOBJ invocations to module description.
430         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
431         * modules/openpty (configure.ac): ... to here.
432
433 2011-05-21  Bruno Haible  <bruno@clisp.org>
434
435         forkpty: Move AC_LIBOBJ invocations to module description.
436         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
437         * modules/forkpty (configure.ac): ... to here.
438
439 2011-05-21  Bruno Haible  <bruno@clisp.org>
440
441         ptsname: Move AC_LIBOBJ invocations to module description.
442         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
443         invocations from here...
444         * modules/ptsname (configure.ac): ... to here.
445
446 2011-05-21  Bruno Haible  <bruno@clisp.org>
447
448         pread: Move AC_LIBOBJ invocations to module description.
449         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
450         * modules/pread (configure.ac): ... to here.
451
452 2011-05-21  Bruno Haible  <bruno@clisp.org>
453
454         posix_spawn*: Move AC_LIBOBJ invocations to module description.
455         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
456         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
457         * modules/posix_spawn (configure.ac): ... to here.
458         * modules/posix_spawnp (configure.ac): ... and here.
459
460 2011-05-21  Bruno Haible  <bruno@clisp.org>
461
462         popen: Move AC_LIBOBJ invocations to module description.
463         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
464         invocations from here...
465         * modules/popen (configure.ac): ... to here.
466
467 2011-05-21  Bruno Haible  <bruno@clisp.org>
468
469         poll: Move AC_LIBOBJ invocations to module description.
470         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
471         invocations from here...
472         * modules/poll (configure.ac): ... to here.
473
474 2011-05-21  Bruno Haible  <bruno@clisp.org>
475
476         pipe-posix: Move AC_LIBOBJ invocations to module description.
477         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
478         * modules/pipe-posix (configure.ac): ... to here.
479
480 2011-05-21  Bruno Haible  <bruno@clisp.org>
481
482         openat: Respect rules for use of AC_LIBOBJ.
483         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
484         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
485         * modules/openat (configure.ac): ... to here.
486
487 2011-05-21  Bruno Haible  <bruno@clisp.org>
488
489         obstack-printf*: Move AC_LIBOBJ invocations to module description.
490         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
491         invocation from here...
492         * modules/obstack-printf (configure.ac): ... to here.
493         * modules/obstack-printf-posix (configure.ac): ... and here.
494
495 2011-05-21  Bruno Haible  <bruno@clisp.org>
496
497         nl_langinfo: Move AC_LIBOBJ invocations to module description.
498         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
499         from here...
500         * modules/nl_langinfo (configure.ac): ... to here.
501
502 2011-05-21  Bruno Haible  <bruno@clisp.org>
503
504         nanosleep: Move AC_LIBOBJ invocations to module description.
505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
506         gl_PREREQ_NANOSLEEP invocations from here...
507         * modules/nanosleep (configure.ac): ... to here.
508
509 2011-05-21  Bruno Haible  <bruno@clisp.org>
510
511         mountlist: Move AC_LIBOBJ invocations to module description.
512         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
513         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
514         * modules/mountlist (configure.ac): ... to here.
515
516 2011-05-21  Bruno Haible  <bruno@clisp.org>
517
518         mktime: Respect rules for use of AC_LIBOBJ.
519         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
520         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
521         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
522         (gl_FUNC_MKTIME_INTERNAL): ... and here...
523         * modules/mktime (configure.ac): ... to here.
524         * modules/mktime-internal (configure.ac): ... and here.
525         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
526
527 2011-05-21  Bruno Haible  <bruno@clisp.org>
528
529         mkstemps: Move AC_LIBOBJ invocations to module description.
530         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
531         here...
532         * modules/mkstemps (configure.ac): ... to here.
533
534 2011-05-21  Bruno Haible  <bruno@clisp.org>
535
536         mkstemp: Move AC_LIBOBJ invocations to module description.
537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
538         gl_PREREQ_MKSTEMP invocations from here...
539         * modules/mkstemp (configure.ac): ... to here.
540
541 2011-05-21  Bruno Haible  <bruno@clisp.org>
542
543         mkostemps: Move AC_LIBOBJ invocations to module description.
544         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
545         here...
546         * modules/mkostemps (configure.ac): ... to here.
547
548 2011-05-21  Bruno Haible  <bruno@clisp.org>
549
550         mkostemp: Move AC_LIBOBJ invocations to module description.
551         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
552         gl_PREREQ_MKOSTEMP invocations from here...
553         * modules/mkostemp (configure.ac): ... to here.
554
555 2011-05-21  Bruno Haible  <bruno@clisp.org>
556
557         mknod: Move AC_LIBOBJ invocations to module description.
558         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
559         * modules/mknod (configure.ac): ... to here.
560
561 2011-05-21  Bruno Haible  <bruno@clisp.org>
562
563         mkfifoat: Move AC_LIBOBJ invocations to module description.
564         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
565         here...
566         * modules/mkfifoat (configure.ac): ... to here.
567
568 2011-05-21  Bruno Haible  <bruno@clisp.org>
569
570         mkfifo: Respect rules for use of AC_LIBOBJ.
571         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
572         here...
573         * modules/mkfifo (configure.ac): ... to here.
574
575 2011-05-21  Bruno Haible  <bruno@clisp.org>
576
577         mkdtemp: Move AC_LIBOBJ invocations to module description.
578         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
579         invocations from here...
580         * modules/mkdtemp (configure.ac): ... to here.
581
582 2011-05-21  Bruno Haible  <bruno@clisp.org>
583
584         mkdir: Move AC_LIBOBJ invocations to module description.
585         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
586         * modules/mkdir (configure.ac): ... to here.
587
588 2011-05-21  Bruno Haible  <bruno@clisp.org>
589
590         memset: Move AC_LIBOBJ invocations to module description.
591         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
593         here...
594         * modules/memset (configure.ac): ... to here.
595
596 2011-05-21  Bruno Haible  <bruno@clisp.org>
597
598         memrchr: Move AC_LIBOBJ invocations to module description.
599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
601         here...
602         * modules/memrchr (configure.ac): ... to here.
603
604 2011-05-21  Bruno Haible  <bruno@clisp.org>
605
606         mempcpy: Move AC_LIBOBJ invocations to module description.
607         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
609         here...
610         * modules/mempcpy (configure.ac): ... to here.
611
612 2011-05-21  Bruno Haible  <bruno@clisp.org>
613
614         memmove: Move AC_LIBOBJ invocations to module description.
615         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
617         here...
618         * modules/memmove (configure.ac): ... to here.
619
620 2011-05-21  Bruno Haible  <bruno@clisp.org>
621
622         memmem*: Move AC_LIBOBJ invocations to module description.
623         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
624         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
625         here...
626         (gl_FUNC_MEMMEM): ... and here...
627         * modules/memmem-simple (configure.ac): ... to here.
628         * modules/memmem (configure.ac): ... and here.
629
630 2011-05-21  Bruno Haible  <bruno@clisp.org>
631
632         memcpy: Move AC_LIBOBJ invocations to module description.
633         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
634         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
635         here...
636         * modules/memcpy (configure.ac): ... to here.
637
638 2011-05-21  Bruno Haible  <bruno@clisp.org>
639
640         memcmp: Simplify autoconf macro.
641         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
642         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
643         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
644
645 2011-05-21  Bruno Haible  <bruno@clisp.org>
646
647         memcmp: Move AC_LIBOBJ invocations to module description.
648         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
649         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
650         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
651         * modules/memcmp (configure.ac): ... to here.
652         (Depends-on): Update conditions.
653
654 2011-05-21  Bruno Haible  <bruno@clisp.org>
655
656         memchr: Respect rules for use of AC_LIBOBJ.
657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
658         invocations from here...
659         * modules/memchr (configure.ac): ... to here.
660
661 2011-05-21  Bruno Haible  <bruno@clisp.org>
662
663         mbtowc: Move AC_LIBOBJ invocations to module description.
664         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
665         invocations from here...
666         * modules/mbtowc (configure.ac): ... to here.
667
668 2011-05-21  Bruno Haible  <bruno@clisp.org>
669
670         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
671         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
672         gl_PREREQ_MBSRTOWCS invocations from here...
673         * modules/mbsrtowcs (configure.ac): ... to here.
674
675 2011-05-21  Bruno Haible  <bruno@clisp.org>
676
677         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
678         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
679         gl_PREREQ_MBSNRTOWCS invocations from here...
680         * modules/mbsnrtowcs (configure.ac): ... to here.
681
682 2011-05-21  Bruno Haible  <bruno@clisp.org>
683
684         mbsinit: Move AC_LIBOBJ invocations to module description.
685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
686         invocations from here...
687         * modules/mbsinit (configure.ac): ... to here.
688
689 2011-05-21  Bruno Haible  <bruno@clisp.org>
690
691         mbrlen: Move AC_LIBOBJ invocations to module description.
692         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
693         invocations from here...
694         * modules/mbrlen (configure.ac): ... to here.
695
696 2011-05-21  Bruno Haible  <bruno@clisp.org>
697
698         mbrtowc: Respect rules for use of AC_LIBOBJ.
699         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
700         invocations from here...
701         * modules/mbrtowc (configure.ac): ... to here.
702
703 2011-05-21  Bruno Haible  <bruno@clisp.org>
704
705         malloc-*: Move AC_LIBOBJ invocations to module description.
706         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
707         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
708         AC_LIBOBJ invocations from here...
709         * modules/malloc-gnu (configure.ac): ... to here.
710         * modules/malloc-posix (configure.ac): ... and here.
711
712 2011-05-21  Bruno Haible  <bruno@clisp.org>
713
714         lstat, openat: Respect rules for use of AC_LIBOBJ.
715         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
717         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
718         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
719         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
720         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
721         here.
722         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
723
724 2011-05-21  Bruno Haible  <bruno@clisp.org>
725
726         lseek: Move AC_LIBOBJ invocations to module description.
727         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
728         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
729         * modules/lseek (configure.ac): ... to here.
730
731 2011-05-21  Bruno Haible  <bruno@clisp.org>
732
733         linkat: Move AC_LIBOBJ invocations to module description.
734         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
735         here...
736         * modules/linkat (configure.ac): ... to here.
737
738 2011-05-21  Bruno Haible  <bruno@clisp.org>
739
740         link: Respect rules for use of AC_LIBOBJ.
741         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
742         * modules/link (configure.ac): ... to here.
743
744 2011-05-21  Bruno Haible  <bruno@clisp.org>
745
746         lchown: Move AC_LIBOBJ invocations to module description.
747         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
748         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
749         * modules/lchown (configure.ac): ... to here.
750
751 2011-05-21  Bruno Haible  <bruno@clisp.org>
752
753         iswctype: Move AC_LIBOBJ invocations to module description.
754         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
755         here...
756         * modules/iswctype (configure.ac): ... to here.
757
758 2011-05-21  Bruno Haible  <bruno@clisp.org>
759
760         iswblank: Move AC_LIBOBJ invocations to module description.
761         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
762         here...
763         * modules/iswblank (configure.ac): ... to here.
764
765 2011-05-21  Bruno Haible  <bruno@clisp.org>
766
767         atanl: Move AC_LIBOBJ invocations to module description.
768         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
769         * modules/atanl (configure.ac): ... to here.
770
771 2011-05-21  Bruno Haible  <bruno@clisp.org>
772
773         acosl: Move AC_LIBOBJ invocations to module description.
774         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
775         * modules/acosl (configure.ac): ... to here.
776
777 2011-05-21  Bruno Haible  <bruno@clisp.org>
778
779         asinl: Respect rules for use of AC_LIBOBJ.
780         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
781         * modules/asinl (configure.ac): ... to here.
782
783 2011-05-21  Bruno Haible  <bruno@clisp.org>
784
785         tanl: Move AC_LIBOBJ invocations to module description.
786         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
787         * modules/tanl (configure.ac): ... to here.
788
789 2011-05-21  Bruno Haible  <bruno@clisp.org>
790
791         cosl: Move AC_LIBOBJ invocations to module description.
792         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
793         * modules/cosl (configure.ac): ... to here.
794
795 2011-05-21  Bruno Haible  <bruno@clisp.org>
796
797         sinl: Move AC_LIBOBJ invocations to module description.
798         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
799         * modules/sinl (configure.ac): ... to here.
800
801 2011-05-21  Bruno Haible  <bruno@clisp.org>
802
803         logl: Move AC_LIBOBJ invocations to module description.
804         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
805         * modules/logl (configure.ac): ... to here.
806
807 2011-05-21  Bruno Haible  <bruno@clisp.org>
808
809         expl: Move AC_LIBOBJ invocations to module description.
810         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
811         * modules/expl (configure.ac): ... to here.
812
813 2011-05-21  Bruno Haible  <bruno@clisp.org>
814
815         roundl: Move AC_LIBOBJ invocations to module description.
816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
817         * modules/roundl (configure.ac): ... to here.
818
819 2011-05-21  Bruno Haible  <bruno@clisp.org>
820
821         round: Move AC_LIBOBJ invocations to module description.
822         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
823         * modules/round (configure.ac): ... to here.
824
825 2011-05-21  Bruno Haible  <bruno@clisp.org>
826
827         roundf: Move AC_LIBOBJ invocations to module description.
828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
829         * modules/roundf (configure.ac): ... to here.
830
831 2011-05-21  Bruno Haible  <bruno@clisp.org>
832
833         truncl: Move AC_LIBOBJ invocations to module description.
834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
835         * modules/truncl (configure.ac): ... to here.
836
837 2011-05-21  Bruno Haible  <bruno@clisp.org>
838
839         trunc: Move AC_LIBOBJ invocations to module description.
840         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
841         * modules/trunc (configure.ac): ... to here.
842
843 2011-05-21  Bruno Haible  <bruno@clisp.org>
844
845         truncf: Move AC_LIBOBJ invocations to module description.
846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
847         * modules/truncf (configure.ac): ... to here.
848
849 2011-05-21  Bruno Haible  <bruno@clisp.org>
850
851         ceill: Move AC_LIBOBJ invocations to module description.
852         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
853         * modules/ceill (configure.ac): ... to here.
854
855 2011-05-21  Bruno Haible  <bruno@clisp.org>
856
857         ceil: Move AC_LIBOBJ invocations to module description.
858         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
859         * modules/ceil (configure.ac): ... to here.
860
861 2011-05-21  Bruno Haible  <bruno@clisp.org>
862
863         ceilf: Move AC_LIBOBJ invocations to module description.
864         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
865         * modules/ceilf (configure.ac): ... to here.
866
867 2011-05-21  Bruno Haible  <bruno@clisp.org>
868
869         floorl: Respect rules for use of AC_LIBOBJ.
870         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
871         * modules/floorl (configure.ac): ... to here.
872
873 2011-05-21  Bruno Haible  <bruno@clisp.org>
874
875         floor: Respect rules for use of AC_LIBOBJ.
876         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
877         * modules/floor (configure.ac): ... to here.
878
879 2011-05-21  Bruno Haible  <bruno@clisp.org>
880
881         floorf: Move AC_LIBOBJ invocations to module description.
882         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
883         * modules/floorf (configure.ac): ... to here.
884
885 2011-05-20  Bruno Haible  <bruno@clisp.org>
886
887         sqrtl: Respect rules for use of AC_LIBOBJ.
888         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
889         * modules/sqrtl (configure.ac): ... to here.
890
891 2011-05-20  Bruno Haible  <bruno@clisp.org>
892
893         ldexpl: Respect rules for use of AC_LIBOBJ.
894         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
895         * modules/ldexpl (configure.ac): ... to here.
896
897 2011-05-20  Bruno Haible  <bruno@clisp.org>
898
899         frexpl*: Respect rules for use of AC_LIBOBJ.
900         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
901         invocation from here...
902         * modules/frexpl (configure.ac): ... to here.
903         * modules/frexpl-nolibm (configure.ac): ... and here.
904
905 2011-05-20  Bruno Haible  <bruno@clisp.org>
906
907         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
908         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
909         invocation from here...
910         * modules/frexp (configure.ac): ... to here.
911         * modules/frexp-nolibm (configure.ac): ... and here.
912
913 2011-05-20  Bruno Haible  <bruno@clisp.org>
914
915         isnan: Respect rules for use of AC_LIBOBJ.
916         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
917         invocations here.
918         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
919         REPLACE_ISNAN.
920         * modules/isnand (configure.ac): Likewise.
921         * modules/isnanl (configure.ac): Likewise.
922
923 2011-05-20  Bruno Haible  <bruno@clisp.org>
924
925         isnanl*: Respect rules for use of AC_LIBOBJ.
926         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
927         invocation from here...
928         * modules/isnanl (configure.ac): ... to here.
929         * modules/isnanl-nolibm (configure.ac): ... and here.
930
931 2011-05-20  Bruno Haible  <bruno@clisp.org>
932
933         isnand*: Move AC_LIBOBJ invocations to module description.
934         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
935         invocation from here...
936         * modules/isnand (configure.ac): ... to here.
937         * modules/isnand-nolibm (configure.ac): ... and here.
938
939 2011-05-20  Bruno Haible  <bruno@clisp.org>
940
941         isnanf*: Move AC_LIBOBJ invocations to module description.
942         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
943         invocation from here...
944         * modules/isnanf (configure.ac): ... to here.
945         * modules/isnanf-nolibm (configure.ac): ... and here.
946
947 2011-05-20  Bruno Haible  <bruno@clisp.org>
948
949         isnan*: Separate the AC_LIBOBJ invocations.
950         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
951         AC_LIBOBJ invocation.
952         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
953         here.
954         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
955         AC_LIBOBJ invocation.
956         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
957         here.
958         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
959         AC_LIBOBJ invocation.
960         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
961         here.
962         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
963
964 2011-05-08  Bruno Haible  <bruno@clisp.org>
965
966         isinf: Move AC_LIBOBJ invocations to module description.
967         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
968         * modules/isinf (configure.ac): ... to here.
969
970 2011-05-08  Bruno Haible  <bruno@clisp.org>
971
972         isfinite: Move AC_LIBOBJ invocations to module description.
973         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
974         * modules/isfinite (configure.ac): ... to here.
975
976 2011-05-08  Bruno Haible  <bruno@clisp.org>
977
978         isblank: Move AC_LIBOBJ invocations to module description.
979         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
980         here...
981         * modules/isblank (configure.ac): ... to here.
982
983 2011-05-08  Bruno Haible  <bruno@clisp.org>
984
985         isapipe: Move AC_LIBOBJ invocations to module description.
986         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
987         gl_PREREQ_ISAPIPE invocations from here...
988         * modules/isapipe (configure.ac): ... to here.
989         (Depends-on): Update condition.
990
991 2011-05-08  Bruno Haible  <bruno@clisp.org>
992
993         ioctl: Move AC_LIBOBJ invocations to module description.
994         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
995         invocations from here...
996         * modules/ioctl (configure.ac): ... to here.
997         (Depends-on): Update condition.
998
999 2011-05-08  Bruno Haible  <bruno@clisp.org>
1000
1001         imaxdiv: Move AC_LIBOBJ invocations to module description.
1002         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1003         invocations from here...
1004         * modules/imaxdiv (configure.ac): ... to here.
1005
1006 2011-05-08  Bruno Haible  <bruno@clisp.org>
1007
1008         imaxabs: Move AC_LIBOBJ invocations to module description.
1009         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1010         invocations from here...
1011         * modules/imaxabs (configure.ac): ... to here.
1012
1013 2011-05-08  Bruno Haible  <bruno@clisp.org>
1014
1015         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1017         AC_LIBOBJ invocations from here...
1018         * modules/getaddrinfo (configure.ac): ... to here.
1019         (Depends-on): Add conditions.
1020
1021 2011-05-08  Bruno Haible  <bruno@clisp.org>
1022
1023         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1024         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1025         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1026         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1027         (gl_PREREQ_INET_PTON): ... from here.
1028         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1029         gl_PREREQ_INET_PTON here.
1030         (Depends-on): Update condition.
1031
1032 2011-05-08  Bruno Haible  <bruno@clisp.org>
1033
1034         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1035         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1036         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1037         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1038         (gl_PREREQ_INET_NTOP): ... from here.
1039         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1040         gl_PREREQ_INET_NTOP here.
1041         (Depends-on): Update condition.
1042
1043 2011-05-08  Bruno Haible  <bruno@clisp.org>
1044
1045         iconv_open: Move AC_LIBOBJ invocations to module description.
1046         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1047         AC_LIBOBJ invocations from here...
1048         * modules/iconv_open (configure.ac): ... to here.
1049
1050 2011-05-08  Bruno Haible  <bruno@clisp.org>
1051
1052         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1053         If module 'iconv_open' is among the main modules and module
1054         'iconv_open-utf' is among the tests dependencies, then
1055         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1056         return the special iconv_t values. Therefore iconv() and iconv_close()
1057         must support these special iconv_t values, already in lib, not only in
1058         tests.
1059         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1061         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1062         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1063         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1064         (Depends-on): Add the dependencies of iconv_open-utf.
1065         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1066         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1067         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1068
1069 2011-05-08  Bruno Haible  <bruno@clisp.org>
1070
1071         group-member: Move AC_LIBOBJ invocations to module description.
1072         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1073         gl_PREREQ_GROUP_MEMBER invocations from here...
1074         * modules/group-member (configure.ac): ... to here.
1075
1076 2011-05-08  Bruno Haible  <bruno@clisp.org>
1077
1078         grantpt: Move AC_LIBOBJ invocations to module description.
1079         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1080         invocations from here...
1081         * modules/grantpt (configure.ac): ... to here.
1082
1083 2011-05-08  Bruno Haible  <bruno@clisp.org>
1084
1085         glob: Move AC_LIBOBJ invocations to module description.
1086         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1087         from here...
1088         * modules/glob (configure.ac): ... to here.
1089
1090 2011-05-08  Bruno Haible  <bruno@clisp.org>
1091
1092         getusershell: Move AC_LIBOBJ invocations to module description.
1093         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1094         Move AC_LIBOBJ invocation from here...
1095         * modules/getusershell (configure.ac): ... to here.
1096         (Depends-on): Update condition.
1097
1098 2011-05-08  Bruno Haible  <bruno@clisp.org>
1099
1100         gettimeofday: Move AC_LIBOBJ invocations to module description.
1101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1102         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1103         gl_PREREQ_GETTIMEOFDAY invocations from here...
1104         * modules/gettimeofday (configure.ac): ... to here.
1105
1106 2011-05-08  Bruno Haible  <bruno@clisp.org>
1107
1108         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1109         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1110         just gl_FUNC_TZSET.
1111         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1112         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1114         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1115
1116 2011-05-08  Bruno Haible  <bruno@clisp.org>
1117
1118         getsubopt: Move AC_LIBOBJ invocations to module description.
1119         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1120         gl_PREREQ_GETSUBOPT invocations from here...
1121         * modules/getsubopt (configure.ac): ... to here.
1122
1123 2011-05-08  Bruno Haible  <bruno@clisp.org>
1124
1125         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1126         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1127         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1128         * modules/getpass-gnu (configure.ac): ... to here.
1129
1130 2011-05-08  Bruno Haible  <bruno@clisp.org>
1131
1132         getpass: Move AC_LIBOBJ invocations to module description.
1133         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1134         gl_PREREQ_GETPASS invocations from here...
1135         * modules/getpass (configure.ac): ... to here.
1136
1137 2011-05-08  Bruno Haible  <bruno@clisp.org>
1138
1139         getpagesize: Move AC_LIBOBJ invocations to module description.
1140         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1141         from here...
1142         * modules/getpagesize (configure.ac): ... to here.
1143
1144 2011-05-08  Bruno Haible  <bruno@clisp.org>
1145
1146         getopt: Move AC_LIBOBJ invocations to module description.
1147         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1148         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1149         invocations from here...
1150         * modules/getopt-gnu (configure.ac): ... to here.
1151         * modules/getopt-posix (configure.ac): ... and here.
1152         (Depends-on): Update condition.
1153
1154 2011-05-08  Bruno Haible  <bruno@clisp.org>
1155
1156         getopt, argp: Respect rules for use of AC_LIBOBJ.
1157         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1158         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1159         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1160         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1161
1162 2011-05-08  Bruno Haible  <bruno@clisp.org>
1163
1164         getlogin_r: Move AC_LIBOBJ invocations to module description.
1165         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1166         gl_PREREQ_GETLOGIN_R invocations from here...
1167         * modules/getlogin_r (configure.ac): ... to here.
1168
1169 2011-05-08  Bruno Haible  <bruno@clisp.org>
1170
1171         getlogin: Move AC_LIBOBJ invocations to module description.
1172         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1173         here...
1174         * modules/getlogin (configure.ac): ... to here.
1175
1176 2011-05-08  Bruno Haible  <bruno@clisp.org>
1177
1178         getloadavg: Move AC_LIBOBJ invocations to module description.
1179         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1180         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1181         * modules/getloadavg (configure.ac): ... to here.
1182
1183 2011-05-08  Bruno Haible  <bruno@clisp.org>
1184
1185         gethrxtime: Move AC_LIBOBJ invocations to module description.
1186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1187         LIB_GETHRXTIME from here...
1188         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1189         invocations from here...
1190         * modules/gethrxtime (configure.ac): ... to here.
1191
1192 2011-05-08  Bruno Haible  <bruno@clisp.org>
1193
1194         gethostname: Move AC_LIBOBJ invocations to module description.
1195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1196         gl_PREREQ_GETHOSTNAME invocations from here...
1197         * modules/gethostname (configure.ac): ... to here.
1198
1199 2011-05-08  Bruno Haible  <bruno@clisp.org>
1200
1201         getgroups: Move AC_LIBOBJ invocations to module description.
1202         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1203         here...
1204         * modules/getgroups (configure.ac): ... to here.
1205
1206 2011-05-08  Bruno Haible  <bruno@clisp.org>
1207
1208         getdtablesize: Move AC_LIBOBJ invocations to module description.
1209         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1210         invocation from here...
1211         * modules/getdtablesize (configure.ac): ... to here.
1212
1213 2011-05-08  Bruno Haible  <bruno@clisp.org>
1214
1215         getdomainname: Move AC_LIBOBJ invocations to module description.
1216         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1217         gl_PREREQ_GETDOMAINNAME invocations from here...
1218         * modules/getdomainname (configure.ac): ... to here.
1219
1220 2011-05-08  Bruno Haible  <bruno@clisp.org>
1221
1222         getline: Move AC_LIBOBJ invocations to module description.
1223         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1224         invocations from here...
1225         * modules/getline (configure.ac): ... to here.
1226
1227 2011-05-08  Bruno Haible  <bruno@clisp.org>
1228
1229         getline: Simplify.
1230         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1231         It's already handled through the module dependency.
1232
1233 2011-05-08  Bruno Haible  <bruno@clisp.org>
1234
1235         getdelim: Move AC_LIBOBJ invocations to module description.
1236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1237         and gl_PREREQ_GETDELIM invocations from here...
1238         * modules/getdelim (configure.ac): ... to here.
1239         (Depends-on): Fix condition.
1240
1241 2011-05-08  Bruno Haible  <bruno@clisp.org>
1242
1243         getcwd: Move AC_LIBOBJ invocations to module description.
1244         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1245         invocations from here...
1246         * modules/getcwd (configure.ac): ... to here.
1247
1248 2011-05-08  Bruno Haible  <bruno@clisp.org>
1249
1250         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1251         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1252         here...
1253         * modules/getcwd-lgpl (configure.ac): ... to here.
1254
1255 2011-05-07  Bruno Haible  <bruno@clisp.org>
1256
1257         crypto/gc: Move AC_LIBOBJ invocations to module description.
1258         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1259         * modules/crypto/gc (configure.ac): ... to here.
1260
1261 2011-05-07  Bruno Haible  <bruno@clisp.org>
1262
1263         fwriting: Move AC_LIBOBJ invocations to module description.
1264         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1265         here...
1266         * modules/fwriting (configure.ac): ... to here.
1267
1268 2011-05-07  Bruno Haible  <bruno@clisp.org>
1269
1270         fwritable: Move AC_LIBOBJ invocations to module description.
1271         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1272         here...
1273         * modules/fwritable (configure.ac): ... to here.
1274
1275 2011-05-07  Bruno Haible  <bruno@clisp.org>
1276
1277         futimens: Move AC_LIBOBJ invocations to module description.
1278         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1279         here...
1280         * modules/futimens (configure.ac): ... to here.
1281
1282 2011-05-07  Bruno Haible  <bruno@clisp.org>
1283
1284         ftruncate: Move AC_LIBOBJ invocations to module description.
1285         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1286         gl_PREREQ_FTRUNCATE invocations from here...
1287         * modules/ftruncate (configure.ac): ... to here.
1288
1289 2011-05-07  Bruno Haible  <bruno@clisp.org>
1290
1291         fsync: Move AC_LIBOBJ invocations to module description.
1292         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1293         invocations from here...
1294         * modules/fsync (configure.ac): ... to here.
1295
1296 2011-05-07  Bruno Haible  <bruno@clisp.org>
1297
1298         fsusage: Move AC_LIBOBJ invocations to module description.
1299         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1300         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1301         * modules/fsusage (configure.ac): ... to here.
1302
1303 2011-05-07  Bruno Haible  <bruno@clisp.org>
1304
1305         freopen: Move AC_LIBOBJ invocations to module description.
1306         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1307         invocations from here...
1308         * modules/freopen (configure.ac): ... to here.
1309
1310 2011-05-07  Bruno Haible  <bruno@clisp.org>
1311
1312         free: Move AC_LIBOBJ invocations to module description.
1313         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1314         invocations from here...
1315         * modules/free (configure.ac): ... to here.
1316
1317 2011-05-07  Bruno Haible  <bruno@clisp.org>
1318
1319         freadable: Move AC_LIBOBJ invocations to module description.
1320         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1321         here...
1322         * modules/freadable (configure.ac): ... to here.
1323
1324 2011-05-07  Bruno Haible  <bruno@clisp.org>
1325
1326         fpurge: Move AC_LIBOBJ invocations to module description.
1327         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1328         invocations from here...
1329         * modules/fpurge (configure.ac): ... to here.
1330
1331 2011-05-07  Bruno Haible  <bruno@clisp.org>
1332
1333         fpending: Move AC_LIBOBJ invocations to module description.
1334         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1335         gl_FUNC_FPENDING.
1336         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1337         invocations from here...
1338         * modules/fpending (configure.ac): ... to here.
1339
1340 2011-05-07  Bruno Haible  <bruno@clisp.org>
1341
1342         fopen: Move AC_LIBOBJ invocations to module description.
1343         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1344         invocations from here...
1345         * modules/fopen (configure.ac): ... to here.
1346
1347 2011-05-07  Bruno Haible  <bruno@clisp.org>
1348
1349         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1351         gl_FUNC_FNMATCH_POSIX.
1352         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1353         invocations from here...
1354         * modules/fnmatch (configure.ac): ... to here.
1355         * modules/fnmatch-gnu (configure.ac): ... and here.
1356
1357 2011-05-07  Bruno Haible  <bruno@clisp.org>
1358
1359         flock: Move AC_LIBOBJ invocations to module description.
1360         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1361         invocations from here...
1362         * modules/flock (configure.ac): ... to here.
1363
1364 2011-05-07  Bruno Haible  <bruno@clisp.org>
1365
1366         fileblocks: Move AC_LIBOBJ invocations to module description.
1367         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1368         gl_PREREQ_FILEBLOCKS invocations from here...
1369         * modules/fileblocks (configure.ac): ... to here.
1370
1371 2011-05-06  Bruno Haible  <bruno@clisp.org>
1372
1373         fflush: Move AC_LIBOBJ invocations to module description.
1374         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1375         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1376         invocations from here...
1377         * modules/fflush (configure.ac): ... to here.
1378
1379 2011-05-06  Bruno Haible  <bruno@clisp.org>
1380
1381         fdopendir: Move AC_LIBOBJ invocations to module description.
1382         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1383         here...
1384         * modules/fdopendir (configure.ac): ... to here.
1385         (Depends-on): Improve conditions.
1386
1387 2011-05-06  Bruno Haible  <bruno@clisp.org>
1388
1389         _Exit: Move AC_LIBOBJ invocations to module description.
1390         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1391         invocations from here...
1392         * modules/_Exit (configure.ac): ... to here.
1393
1394 2011-05-21  Bruno Haible  <bruno@clisp.org>
1395
1396         euidaccess: Respect rules for use of AC_LIBOBJ.
1397         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1399         from here...
1400         * modules/euidaccess (configure.ac): ... to here.
1401
1402 2011-05-06  Bruno Haible  <bruno@clisp.org>
1403
1404         error: Move AC_LIBOBJ invocations to module description.
1405         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1406         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1407         invocations from here...
1408         * modules/error (configure.ac): ... to here.
1409
1410 2011-05-06  Bruno Haible  <bruno@clisp.org>
1411
1412         duplocale: Move AC_LIBOBJ invocations to module description.
1413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1414         gl_PREREQ_DUPLOCALE invocations from here...
1415         * modules/duplocale (configure.ac): ... to here.
1416
1417 2011-05-05  Bruno Haible  <bruno@clisp.org>
1418
1419         dirfd: Move AC_LIBOBJ invocations to module description.
1420         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1421         gl_FUNC_DIRFD.
1422         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1423         here...
1424         * modules/dirfd (configure.ac): ... to here.
1425         (Depends-on): Fix condition.
1426
1427 2011-05-05  Bruno Haible  <bruno@clisp.org>
1428
1429         chown: Respect rules for use of AC_LIBOBJ.
1430         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1431         * modules/chown (configure.ac): ... to here.
1432
1433 2011-05-05  Bruno Haible  <bruno@clisp.org>
1434
1435         chdir-long: Move AC_LIBOBJ invocations to module description.
1436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1437         gl_PREREQ_CHDIR_LONG invocations from here...
1438         * modules/chdir-long (configure.ac): ... to here.
1439
1440 2011-05-05  Bruno Haible  <bruno@clisp.org>
1441
1442         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1443         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1444         from here...
1445         * modules/canonicalize-lgpl (configure.ac): ... to here.
1446
1447 2011-05-05  Bruno Haible  <bruno@clisp.org>
1448
1449         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1450         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1451         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1452         REPLACE_CALLOC.
1453         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1454         * modules/calloc-gnu (configure.ac): Likewise.
1455
1456 2011-05-05  Bruno Haible  <bruno@clisp.org>
1457
1458         btowc: Move AC_LIBOBJ invocations to module description.
1459         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1460         invocations from here...
1461         * modules/btowc (configure.ac): ... to here.
1462
1463 2011-05-21  Bruno Haible  <bruno@clisp.org>
1464
1465         atexit: Move AC_LIBOBJ invocations to module description.
1466         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1467         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1468         here...
1469         * modules/atexit (configure.ac): ... to here.
1470
1471 2011-05-05  Bruno Haible  <bruno@clisp.org>
1472
1473         atoll: Move AC_LIBOBJ invocations to module description.
1474         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1475         invocations from here...
1476         * modules/atoll (configure.ac): ... to here.
1477
1478 2011-05-05  Bruno Haible  <bruno@clisp.org>
1479
1480         argz: Move AC_LIBOBJ invocations to module description.
1481         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1482         * modules/argz (configure.ac): ... to here.
1483
1484 2011-05-05  Bruno Haible  <bruno@clisp.org>
1485
1486         alphasort: Move AC_LIBOBJ invocations to module description.
1487         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1488         gl_PREREQ_ALPHASORT invocations from here...
1489         * modules/alphasort (configure.ac): ... to here.
1490
1491 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         verify: new macro verify_expr; verify_true deprecated
1494         * NEWS: Mention this.
1495         * doc/verify.texi (Compile-time Assertions): Document this.
1496         * lib/verify.h (verify_true): Deprecate.
1497         (verify_expr): New macro.
1498         * tests/test-verify.c (function): Test verify_expr.
1499
1500 2011-06-14  Jim Meyering  <meyering@redhat.com>
1501
1502         init.sh: give more portable redirection-related advice in a comment
1503         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1504         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1505         for lots of discussion.  Stefano Lattarini suggested the solution
1506         of putting "9>&2" after the command.  Reported by Bruno Haible.
1507
1508 2011-06-13  Bruno Haible  <bruno@clisp.org>
1509
1510         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1511         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1512         'none'.
1513
1514 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1515
1516         ftoastr: use strtof only if HAVE_STRTOF
1517         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1519         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1520         * modules/ftoastr (configure.ac): Check for strtof.
1521
1522 2011-06-13  Bruno Haible  <bruno@clisp.org>
1523
1524         gnulib-tool: Addendum to 2011-06-08 commit.
1525         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1526         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1527
1528 2011-06-13  Bruno Haible  <bruno@clisp.org>
1529
1530         fseeko: Provide a non-inline replacement of fseek().
1531         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1532         * modules/fseeko (Depends-on): Add fseek.
1533         * modules/fseek (License): Change to LGPLv2+.
1534
1535 2011-06-13  Bruno Haible  <bruno@clisp.org>
1536
1537         ftello: Provide a non-inline replacement of ftell().
1538         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1539         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1540         not have ftello() (such as on mingw).
1541         * modules/ftello (Depends-on): Add ftell.
1542         * modules/ftell (License): Change to LGPLv2+.
1543
1544 2011-05-07  Bruno Haible  <bruno@clisp.org>
1545
1546         ftell: Move AC_LIBOBJ invocations to module description.
1547         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1548         * modules/ftell (configure.ac): ... to here.
1549
1550 2011-05-07  Bruno Haible  <bruno@clisp.org>
1551
1552         ftello: Respect rules for use of AC_LIBOBJ.
1553         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1554         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1555         here...
1556         * modules/ftello (configure.ac): ... to here.
1557
1558 2011-05-07  Bruno Haible  <bruno@clisp.org>
1559
1560         fseeko: Simplify.
1561         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1562         (gl_FUNC_FSEEKO): Inline it here.
1563
1564 2011-05-07  Bruno Haible  <bruno@clisp.org>
1565
1566         fseek: Move AC_LIBOBJ invocations to module description.
1567         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1568         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1569         * modules/fseek (configure.ac): ... to here.
1570
1571 2011-05-07  Bruno Haible  <bruno@clisp.org>
1572
1573         fseek: Respect rules for use of AC_LIBOBJ.
1574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1575         here...
1576         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1577
1578 2011-05-07  Bruno Haible  <bruno@clisp.org>
1579
1580         fseeko: Respect rules for use of AC_LIBOBJ.
1581         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1582         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1583         here...
1584         * modules/fseeko (configure.ac): ... to here.
1585
1586 2011-06-13  Bruno Haible  <bruno@clisp.org>
1587
1588         gnulib-tool: Allow comments in the 'Depends-on' section.
1589         * doc/gnulib.texi (Module description): Mention comment syntax in the
1590         Depends-on section.
1591         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1592
1593 2011-06-13  Bruno Haible  <bruno@clisp.org>
1594
1595         file-set.h: guard __attibute__ use, now that it's not always defined
1596         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1597         versions that support it.  This fixes a coreutils build failure with
1598         the vendor cc on HP-UX 11.31.
1599
1600 2011-06-12  Bruno Haible  <bruno@clisp.org>
1601
1602         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1603         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1604         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1605         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1606         (acl, aclsort): New declarations.
1607         (aclv_nontrivial): New declaration.
1608         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1609         (file_has_acl): Read also the second kind of HP-UX ACLs.
1610         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1611         kind of HP-UX ACLs if the first kind fails.
1612         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1613         second kind of HP-UX ACLs.
1614         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1615         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1616         agree.
1617         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1618         hpuxjfs.
1619         Handle hpuxjfs.
1620         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1621         hpuxjfs.
1622         Handle hpuxjfs.
1623         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1624         (func_test_same_acls): Use both lsacl and getacl.
1625         Handle hpuxjfs.
1626         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1627         (func_test_same_acls): Use both lsacl and getacl.
1628         Handle hpuxjfs.
1629
1630 2011-06-12  Bruno Haible  <bruno@clisp.org>
1631
1632         acl: Complete the 2010-08-10 fix.
1633         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1634         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1635         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1636         explicitly.
1637         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1638         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1639
1640 2011-06-12  Bruno Haible  <bruno@clisp.org>
1641
1642         spawn-pipe tests: Comments.
1643         * tests/test-spawn-pipe-child.c (main): Update comment.
1644         Reported by James Youngman <jay@gnu.org>.
1645
1646 2011-06-11  James Youngman  <jay@gnu.org>
1647
1648         New module 'stat-size'.
1649         * modules/stat-size: New module.  Provides macros for accessing
1650         file size information in instances of struct stat.  Depends on the
1651         fileblocks module because it calls st_blocks.
1652         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1653         * doc/gnulib.texi: Include stat-size.texi.
1654         * doc/stat-size.texi: Documentation for this module.
1655         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1656         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1657         AC_STRUCT_ST_BLOCKS.
1658
1659 2011-06-09  Bruno Haible  <bruno@clisp.org>
1660
1661         thread: Support pthreads-win32.
1662         * lib/glthread/thread.h (gl_thread_self): Define differently on
1663         pthreads-win32.
1664         (gl_null_thread): New declaration.
1665         (gl_thread_self_pointer): New macro.
1666         * lib/glthread/thread.c (gl_null_thread): New constant.
1667         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1668         gl_thread_self.
1669         * tests/test-tls.c: Likewise.
1670         Suggested by Paul Eggert. Reported by Eric Blake.
1671
1672 2011-06-09  Bruno Haible  <bruno@clisp.org>
1673
1674         thread: Fix confusion between NULL and 0.
1675         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1676         Reported by Paul Eggert.
1677
1678 2011-06-09  Bruno Haible  <bruno@clisp.org>
1679
1680         spawn-pipe tests: Avoid test failure on HP-UX 11.
1681         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1682         is closed.
1683
1684 2011-06-09  Bruno Haible  <bruno@clisp.org>
1685
1686         acl tests: Fix compilation error on HP-UX 11.
1687         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1688
1689 2011-06-09  Bruno Haible  <bruno@clisp.org>
1690
1691         rmdir: Avoid test failure on HP-UX 10.20.
1692         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1693         EEXIST.
1694
1695 2011-06-08  Eric Blake  <eblake@redhat.com>
1696
1697         perror: fix test on mingw
1698         * modules/perror-tests (Depends-on): Add dup2.
1699
1700         strerror_r-posix: fix on MacOS
1701         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1703         logic bug.
1704         * lib/strerror_r.c (strerror_r): Fix the bug.
1705         * lib/strerror.c (strerror): Likewise.
1706         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1707         problem.
1708         * doc/posix-functions/strerror.texi (strerror): Likewise.
1709         * doc/posix-functions/perror.texi (perror): Likewise.
1710         * tests/test-strerror.c (main): Enhance test.
1711         * tests/test-strerror_r.c (main): Likewise.
1712
1713 2011-06-08  Bruno Haible  <bruno@clisp.org>
1714
1715         gnulib-tool: Better isolation between different gnulib-tool invocations.
1716         * gnulib-tool: New option --witness-c-macro.
1717         (witness_c_macro): New variable.
1718         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1719         AM_CPPFLAGS define it as a C macro.
1720         (func_emit_tests_Makefile_am): Likewise.
1721         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1722         read it from there.
1723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1724         m4_define, not AC_DEFUN.
1725         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1726         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1727         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1728         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1729         s|...|...|, to substitute the values of the GNULIB_* module indicator
1730         variables.
1731         * modules/dirent (Makefile.am): Likewise.
1732         * modules/fcntl-h (Makefile.am): Likewise.
1733         * modules/iconv-h (Makefile.am): Likewise.
1734         * modules/langinfo (Makefile.am): Likewise.
1735         * modules/locale (Makefile.am): Likewise.
1736         * modules/math (Makefile.am): Likewise.
1737         * modules/netdb (Makefile.am): Likewise.
1738         * modules/poll-h (Makefile.am): Likewise.
1739         * modules/pty (Makefile.am): Likewise.
1740         * modules/search (Makefile.am): Likewise.
1741         * modules/signal (Makefile.am): Likewise.
1742         * modules/spawn (Makefile.am): Likewise.
1743         * modules/stdio (Makefile.am): Likewise.
1744         * modules/stdlib (Makefile.am): Likewise.
1745         * modules/string (Makefile.am): Likewise.
1746         * modules/sys_ioctl (Makefile.am): Likewise.
1747         * modules/sys_select (Makefile.am): Likewise.
1748         * modules/sys_socket (Makefile.am): Likewise.
1749         * modules/sys_stat (Makefile.am): Likewise.
1750         * modules/sys_times (Makefile.am): Likewise.
1751         * modules/sys_utsname (Makefile.am): Likewise.
1752         * modules/sys_wait (Makefile.am): Likewise.
1753         * modules/termios (Makefile.am): Likewise.
1754         * modules/time (Makefile.am): Likewise.
1755         * modules/unistd (Makefile.am): Likewise.
1756         * modules/wchar (Makefile.am): Likewise.
1757
1758 2011-06-08  Eric Blake  <eblake@redhat.com>
1759
1760         strerror: simplify replacement
1761         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1762         * modules/strerror (configure.ac): No prereqs needed here...
1763         * modules/strerror-override (configure.ac): ...but this needs it.
1764         (Files): Add file for needed prereq macro.
1765
1766 2011-06-08  Bruno Haible  <bruno@clisp.org>
1767
1768         strerror_r-posix: Tweaks.
1769         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1770         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1772         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1773         (gl_FUNC_STRERROR_R): ... to here.
1774         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1775
1776 2011-06-07  Eric Blake  <eblake@redhat.com>
1777
1778         perror: document fixed bugs
1779         * doc/posix-functions/perror.texi (perror): Document recent
1780         patches.
1781
1782 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         stat-time: get_stat_birthtime failure is better-defined
1785         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1786         return a timestamp whose tv_sec and tv_nsec values are both -1.
1787         Previously, the spec said only that the tv_nsec value was negative.
1788         This upward-compatible change simplifies GNU tar a bit.
1789
1790 2011-06-07  Eric Blake  <eblake@redhat.com>
1791
1792         strerror_r-posix: work around cygwin 1.7.9
1793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1794         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1795         bug without replacing strerror_r.
1796         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1797         strerror_r is buggy, but without requiring strerror_r compilation.
1798         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1799
1800         test-perror: relax test to ignore cygwin bug
1801         * tests/test-perror2.c (main): Relax test on requiring detection
1802         of stream errors, and use unbuffered stream.
1803         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1804         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1805         * doc/posix-functions/fputc.texi (fputc): Likewise.
1806         * doc/posix-functions/fputs.texi (fputs): Likewise.
1807         * doc/posix-functions/fputws.texi (fputws): Likewise.
1808         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1809         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1810         * doc/posix-functions/getopt.texi (getopt): Likewise.
1811         * doc/posix-functions/perror.texi (perror): Likewise.
1812         * doc/posix-functions/printf.texi (printf): Likewise.
1813         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1814         * doc/posix-functions/psignal.texi (psignal): Likewise.
1815         * doc/posix-functions/putc.texi (putc): Likewise.
1816         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1817         Likewise.
1818         * doc/posix-functions/putchar.texi (putchar): Likewise.
1819         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1820         Likewise.
1821         * doc/posix-functions/puts.texi (puts): Likewise.
1822         * doc/posix-functions/putwc.texi (putwc): Likewise.
1823         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1824         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1825         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1826         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1827         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1828         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1829         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1830         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1831
1832 2011-05-22  Bruno Haible  <bruno@clisp.org>
1833
1834         strerror: Move AC_LIBOBJ invocations to module description.
1835         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1836         gl_PREREQ_STRERROR invocations from here...
1837         * modules/strerror (configure.ac): ... to here.
1838
1839 2011-05-21  Bruno Haible  <bruno@clisp.org>
1840
1841         perror: Use common idiom.
1842         * modules/perror (configure.ac): Reorder statements.
1843
1844 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1845
1846         tests: fix usage message in 'mktempd_'
1847         * tests/init.sh (mktempd_): In the usage message, use literal
1848         'mktempd_', not '$ME' (which is even undefined), as the name of
1849         the subroutine.
1850
1851 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1852
1853         tests init: new function 'fatal_', for hard errors
1854         Before this patch, the only way offered by tests/init.sh to
1855         properly signal a hard error was the `framework_failure_'
1856         function.  But the error message issued by that function,
1857         as its name would suggest, refers to a set-up failure in the
1858         testsuite, while hard errors can obviously also be due to
1859         other reasons.  The best way to fix this inconsistency is to
1860         introduce a new function with a more general error message.
1861         * tests/init.sh (fatal_): New function.
1862
1863 2011-06-06  Eric Blake  <eblake@redhat.com>
1864
1865         canonicalize-lgpl: use common idiom
1866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1867         over newer POSIX -Rf.
1868         Reported by Bruno Haible.
1869
1870         canonicalize-lgpl: work around AIX realpath bug
1871         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1872         * doc/posix-functions/realpath.texi (realpath): Document it.
1873         Reported by Bruno Haible.
1874
1875         strerror: work around FreeBSD bug
1876         * lib/strerror.c (strerror): Special case 0.
1877         Reported by Bruno Haible.
1878
1879         strerror-override: avoid bloating errno module
1880         * modules/errno (Files, configure.ac): Move replacement strings...
1881         * modules/strerror-override: ...to new module.
1882         * modules/strerror (Depends-on): Add strerror-override.
1883         * modules/strerror_r-posix (Depends-on): Likewise.
1884         * MODULES.html.sh: Document new module.
1885         Reported by Bruno Haible.
1886
1887 2011-06-06  Bruno Haible  <bruno@clisp.org>
1888
1889         spawn-pipe tests: Rename program.
1890         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1891         * tests/test-spawn-pipe-child.c: Update comment.
1892         * tests/test-spawn-pipe.sh: Update.
1893         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1894
1895         spawn-pipe tests: Link the child program only against libc.
1896         * tests/test-spawn-pipe-child.c: New file, extracted from
1897         tests/test-spawn-pipe.c.
1898         (main): Expect only one argument.
1899         (is_open): New function, copied from tests/test-pipe.c.
1900         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1901         (child_main): Remove function.
1902         (test_pipe): Pass only one argument to the child program.
1903         (main): Remove child process code. Expect the child program's name as
1904         first argument.
1905         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1906         argument.
1907         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1908         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1909         test-spawn-pipe-child against no libraries.
1910
1911 2011-06-06  Bruno Haible  <bruno@clisp.org>
1912
1913         careadlinkat: Avoid mismatch between ssize_t and int.
1914         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1915         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1916
1917 2011-06-06  Jim Meyering  <meyering@redhat.com>
1918
1919         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1920         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1921         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1922
1923 2011-06-05  Bruno Haible  <bruno@clisp.org>
1924
1925         ansi-c++-opt: Interoperability with libtool.
1926         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1927         set the variable to "no", not to ":".
1928         * NEWS: Mention the change.
1929
1930 2011-06-05  Bruno Haible  <bruno@clisp.org>
1931
1932         acl: Fix test failure on AIX 7.
1933         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1934         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1935
1936 2011-06-05  Bruno Haible  <bruno@clisp.org>
1937
1938         pipe-filter-ii: Fix test failure on AIX and IRIX.
1939         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1940         with EAGAIN, retry with a smaller buffer size.
1941
1942 2011-06-05  Bruno Haible  <bruno@clisp.org>
1943
1944         localename: Fix link dependencies.
1945         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1946         * modules/localename-tests (Makefile.am): Link test-localename with
1947         $(LIBTHREAD).
1948
1949 2011-06-05  Bruno Haible  <bruno@clisp.org>
1950
1951         error: Avoid gcc warning.
1952         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1953
1954 2011-06-05  Bruno Haible  <bruno@clisp.org>
1955
1956         unsetenv: Avoid gcc warning.
1957         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1958
1959 2011-06-05  Bruno Haible  <bruno@clisp.org>
1960
1961         setenv: Avoid gcc warning.
1962         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1963
1964 2011-06-05  Bruno Haible  <bruno@clisp.org>
1965
1966         sys_select: Ensure memset is declared also on AIX 7.
1967         * lib/sys_select.in.h: Include <string.h> also on AIX.
1968         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1969         self-contained also on AIX 7.1.
1970
1971 2011-06-04  Jim Meyering  <meyering@redhat.com>
1972
1973         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1974         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1975         function name, "error".
1976         (_gl_translatable_diag_func_re): New configurable variable.
1977
1978 2011-06-04  Bruno Haible  <bruno@clisp.org>
1979
1980         getopt: Avoid gcc warning.
1981         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1982
1983 2011-06-04  Bruno Haible  <bruno@clisp.org>
1984
1985         strerror_r: Fix comments.
1986         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1987         commit.
1988
1989 2011-06-04  Bruno Haible  <bruno@clisp.org>
1990
1991         perror: Fix compilation error.
1992         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1993         Undefine fprintf, not sprintf.
1994         * modules/perror (Depends-on): Remove intprops, verify.
1995
1996 2011-06-04  Bruno Haible  <bruno@clisp.org>
1997
1998         setlocale: Enable replacement on Cygwin 1.5.
1999         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2000         Cygwin 1.5.x.
2001         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2002         LC_CTYPE category also exists on Cygwin 1.5.x.
2003
2004 2011-06-04  Bruno Haible  <bruno@clisp.org>
2005
2006         strerror-override: Don't disable symbol renamings.
2007         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2008         * lib/strerror-override.c: Include config.h.
2009         (strerror_override): Don't undefine.
2010
2011 2011-06-03  Bruno Haible  <bruno@clisp.org>
2012
2013         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2014         * lib/localename.h: Update copyright header.
2015         * lib/localename.c: Likewise.
2016         * lib/relocatable.h: Likewise.
2017         * lib/relocatable.c: Likewise.
2018
2019 2011-06-02  Bruno Haible  <bruno@clisp.org>
2020
2021         doc: Fix a module name.
2022         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2023
2024 2011-06-02  Bruno Haible  <bruno@clisp.org>
2025
2026         pipe2: Remove dependency on 'nonblocking' module.
2027         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2028         O_NONBLOCK is defined by gnulib.
2029         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2030         is zero.
2031         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2032         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2033         defined by gnulib.
2034         (get_nonblocking_flag): New function.
2035         (main): Test O_NONBLOCK flag only if it is nonzero.
2036         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2037
2038 2011-06-03  Jim Meyering  <meyering@redhat.com>
2039
2040         maint: three new prohibit-header-without-use rules
2041         Prohibit use of cloexec.h, posixver.h, same.h without use.
2042         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2043         (sc_prohibit_posixver_without_use): Likewise.
2044         (sc_prohibit_same_without_use): Likewise.
2045
2046 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         allocator: 'die' routine is now given requested size
2049         * lib/allocator.h (struct allocator.die): New size arg.
2050         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2051         If the actual problem is an ssize_t limitation, not a size_t or
2052         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2053
2054 2011-06-01  Eric Blake  <eblake@redhat.com>
2055
2056         strerror: drop strerror_r dependency
2057         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2058         * lib/strerror-override.c (strerror_override): ...to new file.
2059         * lib/strerror-override.h: Add prototype.
2060         * lib/strerror-impl.h: Delete.
2061         * lib/strerror.c (strerror): New implementation.
2062         * modules/errno (Files): Add new files.
2063         (configure.ac): Compile new file as appropriate.
2064         * modules/strerror (Files): Drop unused file.
2065         (Depends-on): Drop strerror_r-posix.
2066         * MODULES.html.sh: Document strerror_r-posix.
2067         Requested by Sam Steingold.
2068
2069         perror: call strerror_r directly
2070         * modules/perror (Files): Drop strerror-impl.h.
2071         * lib/perror.c (perror): Use our own stack buffer, rather than
2072         calling a wrapper that uses static storage.
2073         * doc/posix-functions/perror.texi (perror): Document a limitation
2074         of our replacement.
2075
2076         strerror_r: fix includes for FreeBSD
2077         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2078         since we use abort on some platforms.
2079         Reported by Matthias Bolte.
2080
2081 2011-05-31  Bruno Haible  <bruno@clisp.org>
2082
2083         Fix link errors in tests: openat-die uses gettext-h.
2084         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2085         against $(LIBINTL).
2086         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2087         against $(LIBINTL).
2088         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2089         $(LIBINTL).
2090         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2091         against $(LIBINTL).
2092         * modules/linkat-tests (Makefile.am): Link test-linkat against
2093         $(LIBINTL).
2094         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2095         $(LIBINTL).
2096         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2097         against $(LIBINTL).
2098         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2099         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2100         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2101         $(LIBINTL).
2102         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2103         $(LIBINTL).
2104         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2105         $(LIBINTL).
2106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2107
2108 2011-05-31  Bruno Haible  <bruno@clisp.org>
2109
2110         Fix link errors in tests: wait-process uses gettext-h.
2111         * modules/nonblocking-pipe-tests (Makefile.am): Set
2112         test_nonblocking_pipe_main_LDADD.
2113         * modules/nonblocking-socket-tests (Makefile.am): Link
2114         test-nonblocking-socket-main against $(LIBINTL).
2115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2116
2117 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         assert-h: work around 'verify' incompatibility
2120         * lib/verify.h: Use @...@ directives, not ifdef.
2121         * modules/assert-h (assert.h): Implement the directives.
2122         (assert.h): Substitute the symbol-prefix more consistently.
2123
2124 2011-05-29  Jim Meyering  <meyering@redhat.com>
2125
2126         trim: remove three superfluous assignments
2127         * lib/trim.c (trim2): Remove three superfluous assignments
2128         and correct brace positioning.
2129
2130 2011-05-29  Bruno Haible  <bruno@clisp.org>
2131
2132         wctype-h: Avoid namespace pollution on Solaris 2.6.
2133         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2134         identifiers.
2135         * doc/posix-headers/wctype.texi: Mention the problem.
2136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2137
2138 2011-05-28  Jim Meyering  <meyering@redhat.com>
2139
2140         parse-datetime.y: accommodate -Wstrict-overflow
2141         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2142         placate -Wstrict-overflow.
2143
2144         trim: avoid a warning from -O2 -Wstrict-overflow
2145         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2146
2147 2011-05-29  Bruno Haible  <bruno@clisp.org>
2148
2149         gnulib-tool: Fix bug in yesterday's commit.
2150         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2151         twice.
2152
2153 2011-05-29  Bruno Haible  <bruno@clisp.org>
2154
2155         Allow multiple gnulib generated include files to be combined.
2156         * gnulib-tool (func_compute_include_guard_prefix): New function.
2157         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2158         ${gl_include_guard_prefix} references.
2159         (func_import, func_create_testdir): Invoke
2160         func_compute_include_guard_prefix.
2161         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2162         * lib/ctype.in.h: Likewise.
2163         * lib/dirent.in.h: Likewise.
2164         * lib/errno.in.h: Likewise.
2165         * lib/fcntl.in.h: Likewise.
2166         * lib/float.in.h: Likewise.
2167         * lib/getopt.in.h: Likewise.
2168         * lib/iconv.in.h: Likewise.
2169         * lib/langinfo.in.h: Likewise.
2170         * lib/locale.in.h: Likewise.
2171         * lib/math.in.h: Likewise.
2172         * lib/netdb.in.h: Likewise.
2173         * lib/netinet_in.in.h: Likewise.
2174         * lib/poll.in.h: Likewise.
2175         * lib/pthread.in.h: Likewise.
2176         * lib/pty.in.h: Likewise.
2177         * lib/sched.in.h: Likewise.
2178         * lib/se-selinux.in.h: Likewise.
2179         * lib/search.in.h: Likewise.
2180         * lib/signal.in.h: Likewise.
2181         * lib/spawn.in.h: Likewise.
2182         * lib/stdarg.in.h: Likewise.
2183         * lib/stddef.in.h: Likewise.
2184         * lib/stdint.in.h: Likewise.
2185         * lib/stdio.in.h: Likewise.
2186         * lib/stdlib.in.h: Likewise.
2187         * lib/string.in.h: Likewise.
2188         * lib/strings.in.h: Likewise.
2189         * lib/sys_file.in.h: Likewise.
2190         * lib/sys_ioctl.in.h: Likewise.
2191         * lib/sys_select.in.h: Likewise.
2192         * lib/sys_socket.in.h: Likewise.
2193         * lib/sys_stat.in.h: Likewise.
2194         * lib/sys_time.in.h: Likewise.
2195         * lib/sys_times.in.h: Likewise.
2196         * lib/sys_uio.in.h: Likewise.
2197         * lib/sys_utsname.in.h: Likewise.
2198         * lib/sys_wait.in.h: Likewise.
2199         * lib/sysexits.in.h: Likewise.
2200         * lib/termios.in.h: Likewise.
2201         * lib/time.in.h: Likewise.
2202         * lib/unistd.in.h: Likewise.
2203         * lib/wchar.in.h: Likewise.
2204         * lib/wctype.in.h: Likewise.
2205         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2206         * modules/ctype (Makefile.am): Likewise.
2207         * modules/dirent (Makefile.am): Likewise.
2208         * modules/errno (Makefile.am): Likewise.
2209         * modules/fcntl-h (Makefile.am): Likewise.
2210         * modules/float (Makefile.am): Likewise.
2211         * modules/getopt-posix (Makefile.am): Likewise.
2212         * modules/iconv-h (Makefile.am): Likewise.
2213         * modules/langinfo (Makefile.am): Likewise.
2214         * modules/locale (Makefile.am): Likewise.
2215         * modules/math (Makefile.am): Likewise.
2216         * modules/netdb (Makefile.am): Likewise.
2217         * modules/netinet_in (Makefile.am): Likewise.
2218         * modules/poll-h (Makefile.am): Likewise.
2219         * modules/pthread (Makefile.am): Likewise.
2220         * modules/pty (Makefile.am): Likewise.
2221         * modules/sched (Makefile.am): Likewise.
2222         * modules/search (Makefile.am): Likewise.
2223         * modules/selinux-h (Makefile.am): Likewise.
2224         * modules/signal (Makefile.am): Likewise.
2225         * modules/spawn (Makefile.am): Likewise.
2226         * modules/stdarg (Makefile.am): Likewise.
2227         * modules/stddef (Makefile.am): Likewise.
2228         * modules/stdint (Makefile.am): Likewise.
2229         * modules/stdio (Makefile.am): Likewise.
2230         * modules/stdlib (Makefile.am): Likewise.
2231         * modules/string (Makefile.am): Likewise.
2232         * modules/strings (Makefile.am): Likewise.
2233         * modules/sys_file (Makefile.am): Likewise.
2234         * modules/sys_ioctl (Makefile.am): Likewise.
2235         * modules/sys_select (Makefile.am): Likewise.
2236         * modules/sys_socket (Makefile.am): Likewise.
2237         * modules/sys_stat (Makefile.am): Likewise.
2238         * modules/sys_time (Makefile.am): Likewise.
2239         * modules/sys_times (Makefile.am): Likewise.
2240         * modules/sys_uio (Makefile.am): Likewise.
2241         * modules/sys_utsname (Makefile.am): Likewise.
2242         * modules/sys_wait (Makefile.am): Likewise.
2243         * modules/sysexits (Makefile.am): Likewise.
2244         * modules/termios (Makefile.am): Likewise.
2245         * modules/time (Makefile.am): Likewise.
2246         * modules/unistd (Makefile.am): Likewise.
2247         * modules/wchar (Makefile.am): Likewise.
2248         * modules/wctype-h (Makefile.am): Likewise.
2249         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2250
2251 2011-05-29  Bruno Haible  <bruno@clisp.org>
2252
2253         assert-h: Allow multiple gnulib generated replacements to coexist.
2254         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2255
2256 2011-05-29  Bruno Haible  <bruno@clisp.org>
2257
2258         argp: Allow coexistence with strerror_r-posix module.
2259         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2260         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2261         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2262         not the glibc signature.
2263
2264 2011-05-28  Bruno Haible  <bruno@clisp.org>
2265
2266         gnulib-tool: Alternative structure of testdirs, similar to --import.
2267         * gnulib-tool: New option --single-configure.
2268         (func_usage): Document it.
2269         (single_configure): New variable.
2270         (func_modules_transitive_closure_separately,
2271         func_modules_transitive_closure_separately,
2272         func_determine_use_libtests, func_modules_add_dummy_separately,
2273         func_modules_to_filelist_separately): New functions, extracted from
2274         func_import.
2275         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2276         (func_import): Use the new functions.
2277         (func_create_testdir): Set final_modules. Handle $single_configure =
2278         true case.
2279
2280 2011-05-28  Bruno Haible  <bruno@clisp.org>
2281
2282         getloadavg: Remove an unreliable safety check.
2283         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2284         getloadavg.c is in place.
2285         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2286         Reported by Sam Steingold <sds@gnu.org>.
2287
2288 2011-05-28  Bruno Haible  <bruno@clisp.org>
2289
2290         doc: Cleanup yet another file produced by texinfo.tex.
2291         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2292
2293 2011-05-28  Bruno Haible  <bruno@clisp.org>
2294
2295         Finish the conditional dependencies mechanism.
2296         * gnulib-tool: New option --no-conditional-dependencies.
2297         (func_usage): Document it. Don't mark --conditional-dependencies as
2298         experimental.
2299         (cond_dependencies): The possible values can now be true, false, empty.
2300         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2301         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2302         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2303
2304 2011-05-28  Bruno Haible  <bruno@clisp.org>
2305
2306         doc: Use a recent texinfo.tex.
2307         * doc/Makefile (tex_opts): New variable.
2308         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2309
2310 2011-05-28  Jim Meyering  <meyering@redhat.com>
2311
2312         intprops.h: adjust comment to match code change
2313         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2314         only once, it *may* have side effects.  Also fix an unrelated typo.
2315         (_GL_INT_SIGNED): Likewise.
2316
2317 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2318
2319         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2320
2321 2011-05-26  Bruno Haible  <bruno@clisp.org>
2322
2323         mbsrchr: Avoid collision with system function on Interix.
2324         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2325         Reported by Markus Duft <mduft@gentoo.org>.
2326
2327 2011-05-15  James Youngman  <jay@gnu.org>
2328
2329         getopt: for ambiguous options, enumerate the possibilities.
2330         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2331         the ambiguous options when an ambiguous prefix is given. This was
2332         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2333         glibc change was
2334         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2335
2336 2011-05-25  Eric Blake  <eblake@redhat.com>
2337
2338         getcwd: work around mingw bug
2339         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2340         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2341         Reported by Matthias Bolte.
2342
2343 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2344
2345         test-intprops: disable -Wtype-limits diagnostics
2346         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2347         diagnostics.  Otherwise, the integer overflow macros generate many
2348         diagnostics.  Reported by Jim Meyering in
2349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2350
2351         intprops: shorten, to pacify gcc -Woverlength-strings
2352         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2353         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2354         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2355         likely to run afoul of C compiler limits for string constant lengths.
2356         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2357
2358 2011-05-24  Eric Blake  <eblake@redhat.com>
2359
2360         docs: document recently fixed glibc printf bug
2361         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2362         * doc/posix-functions/printf.texi (printf): Likewise.
2363         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2364         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2365
2366         closein-tests: convert to init.sh
2367         * modules/closein-tests (Files): Add init.sh
2368         * tests/test-closein.sh Use it.
2369
2370         yesno-tests: convert to init.sh
2371         * modules/yesno-tests (Files): Add init.sh.
2372         * tests/test-yesno.sh: Use it.
2373
2374         atexit-tests: ensure reliable exit status
2375         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2376         Reported by Bruno Haible.
2377
2378 2011-05-24  Bruno Haible  <bruno@clisp.org>
2379
2380         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2382         gl_PREREQ_STRERROR_R invocations from here...
2383         * modules/strerror_r-posix (configure.ac): ... to here.
2384
2385 2011-05-24  Eric Blake  <eblake@redhat.com>
2386
2387         strerror_r: fix missing header
2388         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2389
2390         strerror_r: fix AIX test failures
2391         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2392         ERANGE failure.
2393
2394         strerror_r: fix Solaris test failures
2395         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2396         failures.
2397         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2398
2399         strerror_r: enforce POSIX recommendations
2400         * lib/strerror_r.c (safe_copy): New helper method.
2401         (strerror_r): Guarantee a non-empty string.
2402         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2403         recent POSIX rulings and to match our strerror guarantees.
2404         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2405
2406 2011-05-24  Jim Meyering  <meyering@redhat.com>
2407
2408         test-perror2.c: avoid warning about unused variable
2409         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2410
2411 2011-05-24  Eric Blake  <eblake@redhat.com>
2412
2413         perror: avoid spurious test failure on HP-UX
2414         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2415
2416         tests: fix logic bug in init.sh
2417         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2418         shell.
2419
2420 2011-05-24  Jim Meyering  <meyering@redhat.com>
2421
2422         utimensat: do not reference an out-of-scope buffer
2423         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2424         declared in an inner scope, yet "times" would be dereferenced outside
2425         the scope in which "ts" was valid.
2426         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2427         of ts[2] "out/up", so that the use of aliased "times" (via
2428         "times = ts;") does not end up referencing an out-of-scope "ts"
2429
2430         opendir-safer.c: don't clobber errno; don't close negative FD
2431         * lib/opendir-safer.c (opendir_safer):
2432         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2433         file descriptor, and more importantly, don't clobber the
2434         offending errno value with EINVAL.  Before, upon failure
2435         of dup_safer, we would pass the negative file descriptor to
2436         fdopendir, which would clobber errno.
2437
2438 2011-05-23  Bruno Haible  <bruno@clisp.org>
2439
2440         idcache: Fix module description.
2441         * modules/idcache (Include): Set to "idcache.h".
2442
2443 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2444
2445         gnulib-tool: fix portability problem with MacOS sed
2446         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2447         before the "}".  Problem reported by Leo in
2448         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2449         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2450         sed_extract_condition1, sed_extract_condition2.
2451
2452 2011-05-23  Bruno Haible  <bruno@clisp.org>
2453
2454         hash: Simplify autoconf macro.
2455         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2456
2457 2011-05-23  Bruno Haible  <bruno@clisp.org>
2458
2459         getugroups: Fix module description.
2460         * modules/getugroups (Include): Set to "getugroups.h".
2461
2462 2011-05-23  Bruno Haible  <bruno@clisp.org>
2463
2464         linkat: Simplify autoconf macro.
2465         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2466
2467 2011-05-23  Bruno Haible  <bruno@clisp.org>
2468             Eric Blake  <eblake@redhat.com>
2469
2470         linkat, renameat: Update dependencies.
2471         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2472         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2473         symlinkat.
2474
2475 2011-05-23  Jim Meyering  <meyering@redhat.com>
2476
2477         maint.mk: more tight_scope improvements
2478         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2479         (_gl_TS_headers): Define only in if-0'd block.
2480         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2481         sometimes we must *not* use it.  Adjust uses accordingly.
2482         (sc_tight_scope): Use much simpler grep-based test to determine
2483         whether we skip this rule.
2484
2485         maint.mk: generalize/improve the tight-scope rule
2486         * top/maint.mk: Emit a warning when the test is skipped.
2487         (_gl_TS_dir): Add $(srcdir)/ prefix.
2488         (_gl_TS_function_match): Simplify, rather than trying
2489         to enumerate common types.  Otherwise, it would fail to match an
2490         "extern unsigned char const *" declaration in idutils.
2491         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2492         a way to support use of that type of macro.
2493         (_gl_TS_var_match): Simplify regexp.
2494         (_gl_TS_obj_files): New configurable variable.
2495         (_gl_TS_headers): Likewise.
2496
2497 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         verify: fix bug when gnulib <assert.h> is also included
2500         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2501         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2502         Perhaps there's a better way, but this fixes the immediate problem.
2503         Problem reported by Bruno Haible in
2504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2505
2506 2011-05-22  Bruno Haible  <bruno@clisp.org>
2507
2508         xgetcwd: Simplify autoconf macro.
2509         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2510
2511 2011-05-22  Bruno Haible  <bruno@clisp.org>
2512
2513         New module 'mktime-internal'.
2514         * modules/mktime-internal: New file.
2515         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2516         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2517         mktime_internal as a C macro if libc has __mktime_internal.
2518         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2519         conditions.
2520         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2521
2522 2011-05-22  Bruno Haible  <bruno@clisp.org>
2523
2524         timegm: Correct mktime replacement statements.
2525         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2526         defining mktime as a C macro. This completes a 2009-07-28 commit.
2527
2528 2011-05-22  Bruno Haible  <bruno@clisp.org>
2529
2530         timegm: Simplify autoconf macro.
2531         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2532
2533 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2534
2535         clock-time: change to LGPLv2+.
2536         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2537         BSD-like but we have no mark for that; this is good enough for now.
2538
2539 2011-05-21  Bruno Haible  <bruno@clisp.org>
2540
2541         strerror_r: Fix comments.
2542         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2543
2544 2011-05-21  Bruno Haible  <bruno@clisp.org>
2545
2546         relocatable-prog-wrapper: Fix possible link error.
2547         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2548         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2549         (gl_FUNC_SETENV): ... to here.
2550         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2551         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2552
2553 2011-05-21  Bruno Haible  <bruno@clisp.org>
2554
2555         relocatable-prog-wrapper: Assume strerror() exists.
2556         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2557         m4/strerror.m4.
2558         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2559         * lib/relocwrapper.c: Remove mention of strerror module.
2560         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2562         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2563         C macro.
2564
2565 2011-05-21  Bruno Haible  <bruno@clisp.org>
2566
2567         select: Simplify replacement idiom.
2568         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2569         Win32 platforms.
2570         * lib/sys_select.in.h (select): Simplify accordingly.
2571         * modules/select (Depends-on): Likewise.
2572
2573 2011-05-21  Bruno Haible  <bruno@clisp.org>
2574
2575         mkdir-p: Simplify autoconf macro.
2576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2577         gl_FUNC_LCHOWN.
2578
2579 2011-05-21  Eric Blake  <eblake@redhat.com>
2580
2581         strerror_r: avoid clobbering strerror on cygwin
2582         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2583         fall back instead to sys_errlist.
2584         * modules/strerror (configure.ac): Add witness.
2585         * tests/test-strerror_r.c (main): Enhance test.
2586         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2587         * tests/test-perror2.c (main): Free memory before exit.
2588
2589 2011-05-21  Bruno Haible  <bruno@clisp.org>
2590
2591         mkdtemp: Use gnulib naming conventions.
2592         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2593         * modules/mkdtemp (configure.ac): Update.
2594
2595 2011-05-20  Eric Blake  <eblake@redhat.com>
2596
2597         strerror_r: avoid corrupting errno on Solaris
2598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2599         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2600
2601         strerror_r: avoid compiler warning
2602         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2603
2604         strerror_r: simplify AIX code
2605         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2606
2607         test-perror: avoid spurious failure on FreeBSD
2608         * modules/perror-tests (Depends-on): Add strerror, now that
2609         strerror_r no longer pulls it in.
2610
2611 2011-05-20  Bruno Haible  <bruno@clisp.org>
2612
2613         strerror_r-posix: Remove unused dependencies.
2614         * modules/strerror_r-posix (Depends-on): Remove strerror.
2615         Reported by Eric Blake.
2616
2617 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2618
2619         intprops: remove assumption about A|B representation
2620         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2621         is a valid integer if both A and B are.  Although this is true for
2622         all known practical hosts, the C standard doesn't guarantee it,
2623         and the code need not assume it.  Also, this change may work around
2624         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2626
2627 2011-05-20  Eric Blake  <eblake@redhat.com>
2628
2629         perror: work around FreeBSD bug
2630         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2631         is broken.  Move AC_LIBOBJ...
2632         * modules/perror (configure.ac): Here.
2633         * doc/posix-functions/perror.texi (perror): Document this.
2634         * tests/test-perror2.c (main): Enhance test.
2635
2636         test-perror: check for strerror interactions
2637         * tests/macros.h (STREQ): Add macro.
2638         * modules/perror-tests (Files): Add second test.
2639         * tests/test-perror2.c (main): New file.
2640         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2641
2642         test-perror: rewrite to use init script
2643         * modules/perror-tests (Files): Add init.sh.
2644         * tests/test-perror.sh: Use temporary directory.
2645
2646 2011-05-20  Jim Meyering  <meyering@redhat.com>
2647
2648         maint: replace misused "a" with "an"
2649         * doc/intprops.texi: "a integer"
2650         * doc/regex.texi: "a explanation"
2651         * lib/alignof.h: "a object"
2652         * lib/argmatch.h: "a explanation"
2653         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2654         * lib/stdint.in.h: "a integer"
2655         * lib/userspec.c: "a owner"
2656         * doc/gnulib.texi: Fix "a idea", and reword.
2657
2658 2011-05-19  Jim Meyering  <meyering@redhat.com>
2659
2660         maint: correct misuse of "a" and "an"
2661         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2662         * lib/argp-help.c: "an docum...": s/an/a/
2663         * lib/argp-parse.c: "An vector": s/An/A/
2664         * lib/execute.c: "an native": s/an/a/
2665         * lib/spawn-pipe.c: Likewise.
2666         * lib/gc.h: "an Gc_rc": s/an/a/
2667         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2668         * lib/fts.c: "an stat.st_dev": s/an/a/
2669
2670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2671
2672         intprops-tests: work around HP-UX 11.23 cc bug with constants
2673         * tests/test-intprops.c (VERIFY): New macro.
2674         (main): Use it, instead of verify, to work around the compiler bug; see
2675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2676
2677         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2678         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2679         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2680         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2681         (_GL_REMAINDER_OVERFLOW): Use it.
2682
2683         intprops-tests: revert unsigned part of previous change
2684         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2685         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2686         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2688
2689 2011-05-19  Bruno Haible  <bruno@clisp.org>
2690
2691         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2692         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2693         strerror_r() returned without filling the buffer.
2694         Reported by Eric Blake.
2695
2696 2011-05-19  Eric Blake  <eblake@redhat.com>
2697
2698         strerror_r: guarantee unchanged errno
2699         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2700         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2701         failure.
2702         * tests/test-strerror_r.c (main): Enhance test.
2703
2704 2011-05-19  Bruno Haible  <bruno@clisp.org>
2705
2706         strerror_r: Reorder #if blocks.
2707         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2708         for consistency with the previous commit.
2709
2710 2011-05-19  Bruno Haible  <bruno@clisp.org>
2711
2712         perror: Avoid clobbering the strerror buffer when possible.
2713         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2714         * lib/strerror.c: Include it.
2715         * modules/strerror (Files): Add lib/strerror-impl.h.
2716         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2717         (my_strerror): New function, defined through lib/strerror-impl.h.
2718         (perror): Use it instead of strerror.
2719         * modules/perror (Files): Add lib/strerror-impl.h.
2720         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2721
2722 2011-05-19  Eric Blake  <eblake@redhat.com>
2723
2724         strerror_r: fix on newer cygwin
2725         * lib/strerror_r.c (strerror_r): Cygwin now has
2726         __xpg_strerror_r, use it.
2727
2728 2011-05-19  Bruno Haible  <bruno@clisp.org>
2729
2730         strerror_r: Avoid clobbering the strerror buffer when possible.
2731         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2732         (sys_nerr, sys_errlist): New declarations.
2733         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2734         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2735         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2736
2737 2011-05-19  Bruno Haible  <bruno@clisp.org>
2738
2739         strerror_r: Fix test failure on mingw.
2740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2741         EXTEND_STRERROR_R.
2742         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2743         macros from errno.in.h instead.
2744
2745 2011-05-19  Eric Blake  <eblake@redhat.com>
2746
2747         strerror: relax test for Solaris
2748         * tests/test-strerror.c (main): Permit Solaris behavior.
2749         * tests/test-strerror_r.c (main): Likewise.
2750
2751         strerror: enforce POSIX ruling on strerror(0)
2752         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2754         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2755         * doc/posix-functions/strerror.texi (strerror): Document it.
2756         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2757         * tests/test-strerror.c (main): Strengthen test.
2758         * tests/test-strerror_r.c (main): Likewise.
2759
2760 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2761
2762         intprop-tests: port to older and more-pedantic compilers
2763         * modules/intprops-tests (Files): Add tests/macros.h.
2764         * tests/test-intprops.c: Include macros.h.
2765         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2766         it's no longer documented to expand to an integer constant expression.
2767         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2768         argument is floating point, as it's no longer documented to expand
2769         to an integer constant expression in that case.
2770         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2771         compiler bugs reported by Bruno Haible.  See
2772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2773         (U0, U1): New constants, to work around the same bugs.  Also,
2774         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2775
2776         intprops: work around C compiler bugs
2777         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2778         bug in Sun C 5.11 2010/08/13 and other compilers; see
2779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2780
2781         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2782         * doc/intprops.texi (Integer Type Determination): Fix
2783         documentation for TYPE_IS_INTEGER: it returns an constant
2784         expression, not an integer constant expression.  Fix doc for
2785         TYPE_SIGNED: it returns an integer constant expression only if its
2786         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2787         hardly worth documented that way....)
2788
2789 2011-05-18  Bruno Haible  <bruno@clisp.org>
2790
2791         strerror_r: Avoid clobbering the strerror buffer when possible.
2792         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2793         Handle gnulib defined errno values here. When strerror() returns NULL
2794         or an empty string, return EINVAL.
2795         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2796         gnulib defined errno values here.
2797         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2798
2799 2011-05-18  Eric Blake  <eblake@redhat.com>
2800
2801         fnmatch: avoid compiler warning
2802         * lib/fnmatch_loop.c (FCT): Use correct type.
2803         Reported by Matthias Bolte.
2804
2805 2011-05-13  Jim Meyering  <meyering@redhat.com>
2806
2807         maint.mk: three new prohibit_<HDR>_without_use rules
2808         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2809         (sc_prohibit_stdio-safer_without_use): Likewise.
2810         (sc_prohibit_xfreopen_without_use): Likewise.
2811
2812 2011-05-17  Jim Meyering  <meyering@redhat.com>
2813
2814         announce-gen: fail if the NEWS delta is empty
2815         If there's nothing noteworthy in NEWS, then either you forgot
2816         or you shouldn't be releasing.
2817         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2818
2819 2011-05-17  Pádraig Brady <P@draigBrady.com>
2820
2821         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2822         reserved symbols starting with double underscore from the check.
2823
2824 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         intprops: add doc
2827         * doc/intprops.texi: New file, documenting intprops.
2828         * doc/gnulib.texi (Particular Modules): Include it.
2829
2830         verify: add doc to gnulib manual and fix example
2831         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2832         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2833         (Compile-time Assertions): Fix example so it can't overflow.
2834
2835 2011-05-17  Jim Meyering  <meyering@redhat.com>
2836
2837         warnings.m4: don't usurp save_CPPFLAGS variable name
2838         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2839
2840         doc: fix typo
2841         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2842
2843 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2844             Bruno Haible  <bruno@clisp.org>
2845
2846         doc: Tweak recent change.
2847         * README (Portability guidelines): Tweak new text.
2848         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2849         Interix 6.1.
2850
2851 2011-05-16  Eric Blake  <eblake@redhat.com>
2852
2853         inttypes: avoid autoconf warning
2854         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2855         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2856
2857 2011-05-16  Sam Steingold <sds@gnu.org>
2858         and Eric Blake  <eblake@redhat.com>
2859
2860         vc-list-files: accept multiple directory operands
2861         * build-aux/vc-list-files: Iterate over all remaining operands.
2862
2863 2011-05-16  Bruno Haible  <bruno@clisp.org>
2864
2865         Fix confusion regarding deprecated modules.
2866         * modules/calloc (Status, Notice): Mark module as deprecated, not
2867         obsolete.
2868         * modules/fnmatch-posix (Status, Notice): Likewise.
2869         * modules/getdate (Status, Notice): Likewise.
2870         * modules/getopt (Status, Notice): Likewise.
2871         * modules/malloc (Status, Notice): Likewise.
2872         * modules/pipe (Status, Notice): Likewise.
2873         * modules/realloc (Status, Notice): Likewise.
2874         * modules/rename-dest-slash (Status, Notice): Likewise.
2875         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2876         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2877         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2878         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2879         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2880
2881 2011-05-16  Bruno Haible  <bruno@clisp.org>
2882
2883         doc: List the target platforms.
2884         * doc/gnulib-intro.texi (Target Platforms): New section.
2885         * doc/gnulib.texi (Introduction): Update menu.
2886         * README (Portability guidelines): Refer to the new section. Update
2887         statement about oldest supported environment. Remove rationale why
2888         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2889         unportable C89 function.
2890         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2891         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2892
2893 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2894
2895         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2896
2897 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2898
2899         intprops-tests: new module
2900         * modules/intprops-tests, tests/test-intprops.c: New files.
2901
2902         intprops: add safe, portable integer overflow checking
2903         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2904         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2905         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2906         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2907         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2908         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2909         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2910         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2911         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2912         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2913         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2914
2915 2011-05-12  James Youngman  <jay@gnu.org>
2916
2917         Add a test for glibc's Bugzilla bug #12378.
2918         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2919         doesn't allow the literal matching of a lone "[" (which is
2920         required by POSIX).
2921         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2922
2923 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2924
2925         Sync glibc change fixing Bugzilla bug #12378.
2926         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2927         beginning and fall back to matching as normal character if the
2928         string ends before the matching ']' is found.  This is what POSIX
2929         requires.
2930
2931 2011-05-13  Eric Blake  <eblake@redhat.com>
2932
2933         getcwd-lgpl: relax test for FreeBSD
2934         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2935         issue.
2936         * tests/test-getcwd-lgpl.c (main): Relax test.
2937         Reported by Matthias Bolte.
2938
2939 2011-05-11  Eric Blake  <eblake@redhat.com>
2940
2941         test-fflush: silence compiler warning
2942         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2943
2944 2011-05-11  Bruno Haible  <bruno@clisp.org>
2945
2946         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2947         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2948         * modules/canonicalize (Depends-on): Add 'nocrash'.
2949         * modules/canonicalize-lgpl (Depends-on): Likewise.
2950         * doc/posix-functions/realpath.texi: Update platforms list.
2951         Reported by Ryan Schmidt <ryandesign@macports.org>.
2952
2953 2011-05-11  Bruno Haible  <bruno@clisp.org>
2954
2955         group-member: Declare function in <unistd.h>.
2956         * lib/unistd.in.h (group_member): New declaration.
2957         * lib/group-member.h: Remove file.
2958         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2959         * tests/test-unistd-c++.cc: Check signature of group_member.
2960         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2961         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2962         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2963         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2964         HAVE_GROUP_MEMBER.
2965         * modules/group-member (Files): Remove lib/group-member.h.
2966         (Depends-on): Add unistd. Specify conditions.
2967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2968         (Include): Change to <unistd.h>.
2969         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2970         HAVE_GROUP_MEMBER.
2971         * NEWS: Mention the change.
2972         * lib/euidaccess.c: Don't include group-member.h.
2973
2974 2011-05-11  Bruno Haible  <bruno@clisp.org>
2975
2976         group-member: Document module.
2977         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2978         module.
2979
2980 2011-05-11  Bruno Haible  <bruno@clisp.org>
2981
2982         fclose: Fix mistake earlier today.
2983         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2984
2985 2011-05-11  Eric Blake  <eblake@redhat.com>
2986
2987         fclose: preserve fflush errors
2988         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2989         Reported by Jim Meyering.
2990
2991         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2992         * build-aux/bootstrap (check_versions): When no specific version
2993         is required, merely check that the app produces an exit status
2994         that indicates its existence.
2995
2996         maint.mk: drop redundant check
2997         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2998         the same but better.
2999
3000 2011-05-11  Bruno Haible  <bruno@clisp.org>
3001
3002         fclose: Fix possible link error.
3003         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3004         unregister_shadow_fd. Improve comments.
3005         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3006         Eric Blake.
3007
3008 2011-05-11  Jim Meyering  <meyering@redhat.com>
3009
3010         maint.mk: improve "can not" detection and generalize rule name
3011         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3012         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3013         Use the same technique as in sc_prohibit_doubled_word, so that
3014         we recognize "can not" also when the words are separated by a newline.
3015         Suggested by Eric Blake.
3016         (perl_filename_lineno_text_): Define.  Factored out of...
3017         (prohibit_doubled_word_): ...here.  Use the new definition.
3018         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3019         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3020         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3021
3022 2011-05-10  Eric Blake  <eblake@redhat.com>
3023
3024         fclose: avoid double close race when possible
3025         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3026         all but WINDOWS_SOCKETS.
3027
3028 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3029
3030         openat: correct new comment
3031         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3032
3033 2011-05-10  Jim Meyering  <meyering@redhat.com>
3034
3035         openat: add comments
3036         * lib/openat-proc.c (openat_proc_name): Add comments,
3037         mostly from Eric Blake.
3038
3039 2011-05-09  Eric Blake  <eblake@redhat.com>
3040
3041         openat: reduce syscalls in first probe of /proc
3042         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3043         be a directory.  Simplify the probe for .. bugs.
3044         * modules/openat (Depends-on): Drop same-inode.
3045         Reported by Bastien ROUCARIES.
3046
3047 2011-05-09  Jim Meyering  <meyering@redhat.com>
3048
3049         maint.mk: change semantics/name of tight_scope variables
3050         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3051         Rename variables to align with semantics that make them more useful.
3052
3053         maint.mk: tweak new rule's name not to impinge
3054         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3055         (sc_tight_scope): Use new rule name rather than $@-0.
3056
3057         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3058         * top/maint.mk (sc_tight_scope): New rule.
3059         (sc_tight_scope-0): New rule, ifdef'd out.
3060         (_gl_TS_dir): Default.
3061         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3062         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3063
3064 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3065
3066         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3067         Haible <bruno@clisp.org>.
3068
3069 2011-05-08  Bruno Haible  <bruno@clisp.org>
3070
3071         Comments.
3072         * m4/isnanf.m4: Add comment.
3073         * m4/isnanl.m4: Likewise.
3074
3075 2011-05-08  Bruno Haible  <bruno@clisp.org>
3076
3077         glob: Remove obsolete macro.
3078         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3079
3080 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3081
3082         intprops: Sun C 5.11 supports __typeof__
3083         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3084         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3085         which is new.
3086         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3087
3088         intprops: switch to usual gnulib indenting and naming
3089         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3090         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3091
3092         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3093
3094 2011-05-08  Jim Meyering  <meyering@redhat.com>
3095
3096         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3097         * top/maint.mk (release-prep): Use make's --no-print-directory
3098         option when generating the announcement.  This eliminates the
3099         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3100         generated announcement template.
3101
3102 2011-05-08  Bruno Haible  <bruno@clisp.org>
3103
3104         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3106         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3107
3108 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         ignore-value, verify: Omit include files from lib_SOURCES.
3111         * modules/ignore-value, modules/verify (Makefile.am):
3112         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3113         that leads Automake to duplicate use of am__objects_... variables
3114         in Makefile.in.  See
3115         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3116
3117 2011-05-07  Bruno Haible  <bruno@clisp.org>
3118
3119         fclose: Simplify autoconf macro.
3120         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3121         defined.
3122
3123 2011-05-07  Bruno Haible  <bruno@clisp.org>
3124
3125         canonicalize-lgpl: Fix autoconf macro ordering bug.
3126         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3127         gl_STDLIB_H_DEFAULTS.
3128
3129 2011-05-06  Eric Blake  <eblake@redhat.com>
3130
3131         maintainer-makefile: make sc_po_check easier to tune
3132         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3133         to probe for strings, such as an alternate location for gnulib.
3134
3135         fclose: guarantee behavior on seekable stdin
3136         * modules/fclose (Depends-on): Add fflush.
3137         * doc/posix-functions/fclose.texi (fclose): Document this.
3138         * tests/test-fclose.c (main): Make test for this unconditional.
3139
3140 2011-05-06  Bruno Haible  <bruno@clisp.org>
3141
3142         fflush, fpurge: Relicense under LGPLv2+.
3143         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3144         * modules/fpurge (License): Likewise.
3145         With permission from Eric Blake and Jim Meyering.
3146         Suggested by Eric Blake.
3147
3148 2011-05-06  Karl Berry  <karl@gnu.org>
3149
3150         * MODULES.html.sh (func_all_modules): remove exit.
3151
3152 2011-05-06  Jim Meyering  <meyering@redhat.com>
3153
3154         maint.mk: use info-gnu@ as the default only for a stable release
3155         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3156         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3157         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3159
3160 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3161
3162         assert-h: new module, which supports C1X-style static_assert
3163         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3164         * lib/verify.h: Revamp so that this can be copied into assert.h,
3165         while retaining the ability to use it standalone as before.
3166         Rename private identifiers so as not to encroach on the
3167         standard C namespace, since this is now used by assert.h.
3168         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3169         the old verify_true.
3170         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3171         the old verify_true.  Use _GL_VERIFY_TYPE.
3172         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3173         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3174         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3175         defined when this file is copied into the replacement assert.h.
3176         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3177         and _Static_assert is not built in.
3178         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3179         defined, and use the new macros mentioned above.
3180         * doc/posix-headers/assert.texi: Document this.
3181
3182 2011-05-05  Bruno Haible  <bruno@clisp.org>
3183
3184         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3185         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3186         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3187         gl_REPLACE_FCLOSE here.
3188         * modules/fflush (Depends-on): Remove fclose.
3189         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3190         combination with module 'fclose'.
3191
3192 2011-05-05  Bruno Haible  <bruno@clisp.org>
3193
3194         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3195         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3196         gl_FUNC_FFLUSH.
3197         (gl_FUNC_FFLUSH): Use it.
3198         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3199         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3200         gl_REPLACE_FSEEKO here.
3201
3202 2011-05-05  Bruno Haible  <bruno@clisp.org>
3203
3204         tzset: Relicense under LGPL.
3205         * modules/tzset (License): Change to LGPL.
3206         No agreement needed; it's a no-op.
3207
3208         strtoimax, strtoumax: Relicense under LGPL.
3209         * modules/strtoimax (License): Change to LGPL.
3210         * modules/strtoumax (License): Likewise.
3211         With permission from Jim Meyering, Paul Eggert:
3212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3214
3215         getgroups: Relicense under LGPL.
3216         * modules/getgroups (License): Change to LGPL.
3217         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3221
3222         nanosleep: Relicense under LGPL.
3223         * modules/nanosleep (License): Change to LGPL.
3224         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3225         Haible:
3226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3230
3231         futimens: Relicense under LGPL.
3232         * modules/futimens (License): Change to LGPL.
3233         With permission from Eric Blake:
3234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3235
3236         fflush: Relicense under LGPL.
3237         * modules/fflush (License): Change to LGPL.
3238         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3242
3243         tmpfile: Relicense under LGPL.
3244         * modules/tmpfile (License): Change to LGPL.
3245         With permission from Ben Pfaff:
3246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3247
3248         isfinite: Relicense under LGPL.
3249         * modules/isfinite (License): Change to LGPL.
3250         With permission from Ben Pfaff, Bruno Haible:
3251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3253
3254         acosl..tanl: Relicense under LGPL.
3255         * modules/acosl (License): Change to LGPL.
3256         * modules/asinl (License): Likewise.
3257         * modules/atanl (License): Likewise.
3258         * modules/cosl (License): Likewise.
3259         * modules/expl (License): Likewise.
3260         * modules/logl (License): Likewise.
3261         * modules/sinl (License): Likewise.
3262         * modules/sqrtl (License): Likewise.
3263         * modules/tanl (License): Likewise.
3264         Source code originally from glibc and Paolo Bonzini. Agreements:
3265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3267
3268 2011-05-05  Bruno Haible  <bruno@clisp.org>
3269
3270         signal: Define sighandler_t.
3271         * lib/signal.in.h (sighandler_t): New type.
3272         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3273         whether sighandler_t is defined.
3274         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3275         * modules/signal (Depends-on): Add extensions.
3276         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3277         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3278         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3279
3280 2011-05-05  Eric Blake  <eblake@redhat.com>
3281
3282         maint: remove useless REPLACE_*_H macros
3283         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3285         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3286         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3287         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3288         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3289         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3290         * m4/btowc.m4: Update callers.
3291         * m4/dirfd.m4: Likewise.
3292         * m4/duplocale.m4: Likewise.
3293         * m4/fchdir.m4: Likewise.
3294         * m4/fdopendir.m4: Likewise.
3295         * m4/inet_ntop.m4: Likewise.
3296         * m4/inet_pton.m4: Likewise.
3297         * m4/ioctl.m4: Likewise.
3298         * m4/mbrlen.m4: Likewise.
3299         * m4/mbrtowc.m4: Likewise.
3300         * m4/mbsinit.m4: Likewise.
3301         * m4/mbsnrtowcs.m4: Likewise.
3302         * m4/mbsrtowcs.m4: Likewise.
3303         * m4/poll.m4: Likewise.
3304         * m4/setlocale.m4: Likewise.
3305         * m4/wcrtomb.m4: Likewise.
3306         * m4/wcsnrtombs.m4: Likewise.
3307         * m4/wcsrtombs.m4: Likewise.
3308         * m4/wctob.m4: Likewise.
3309         * m4/wcwidth.m4: Likewise.
3310         * modules/posix_spawn: Likewise.
3311         * modules/posix_spawn_file_actions_addclose: Likewise.
3312         * modules/posix_spawn_file_actions_adddup2: Likewise.
3313         * modules/posix_spawn_file_actions_addopen: Likewise.
3314         * modules/posix_spawn_file_actions_destroy: Likewise.
3315         * modules/posix_spawn_file_actions_init: Likewise.
3316         * modules/posix_spawnattr_destroy: Likewise.
3317         * modules/posix_spawnattr_getflags: Likewise.
3318         * modules/posix_spawnattr_getpgroup: Likewise.
3319         * modules/posix_spawnattr_getschedparam: Likewise.
3320         * modules/posix_spawnattr_getschedpolicy: Likewise.
3321         * modules/posix_spawnattr_getsigdefault: Likewise.
3322         * modules/posix_spawnattr_getsigmask: Likewise.
3323         * modules/posix_spawnattr_init: Likewise.
3324         * modules/posix_spawnattr_setflags: Likewise.
3325         * modules/posix_spawnattr_setpgroup: Likewise.
3326         * modules/posix_spawnattr_setschedparam: Likewise.
3327         * modules/posix_spawnattr_setschedpolicy: Likewise.
3328         * modules/posix_spawnattr_setsigdefault: Likewise.
3329         * modules/posix_spawnattr_setsigmask: Likewise.
3330         * modules/posix_spawnp: Likewise.
3331
3332 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3333
3334         Add option to do-release-commit-and-tag to specify branch.
3335         * build-aux/do-release-commit-and-tag: Add --branch.
3336
3337 2011-05-03  Bruno Haible  <bruno@clisp.org>
3338
3339         Avoid unnecessary compilation units, through conditional dependencies.
3340         * modules/accept (Depends-on): Add conditions to the dependencies.
3341         * modules/acosl (Depends-on): Likewise.
3342         * modules/argz (Depends-on): Likewise.
3343         * modules/asinl (Depends-on): Likewise.
3344         * modules/atanl (Depends-on): Likewise.
3345         * modules/atoll (Depends-on): Likewise.
3346         * modules/bind (Depends-on): Likewise.
3347         * modules/btowc (Depends-on): Likewise.
3348         * modules/canonicalize-lgpl (Depends-on): Likewise.
3349         * modules/ceil (Depends-on): Likewise.
3350         * modules/ceilf (Depends-on): Likewise.
3351         * modules/ceill (Depends-on): Likewise.
3352         * modules/chdir-long (Depends-on): Likewise.
3353         * modules/chown (Depends-on): Likewise.
3354         * modules/close (Depends-on): Likewise.
3355         * modules/connect (Depends-on): Likewise.
3356         * modules/cosl (Depends-on): Likewise.
3357         * modules/dirfd (Depends-on): Likewise.
3358         * modules/dprintf (Depends-on): Likewise.
3359         * modules/dprintf-posix (Depends-on): Likewise.
3360         * modules/error (Depends-on): Likewise.
3361         * modules/euidaccess (Depends-on): Likewise.
3362         * modules/expl (Depends-on): Likewise.
3363         * modules/faccessat (Depends-on): Likewise.
3364         * modules/fchdir (Depends-on): Likewise.
3365         * modules/fclose (Depends-on): Likewise.
3366         * modules/fcntl (Depends-on): Likewise.
3367         * modules/fdopendir (Depends-on): Likewise.
3368         * modules/fflush (Depends-on): Likewise.
3369         * modules/floor (Depends-on): Likewise.
3370         * modules/floorf (Depends-on): Likewise.
3371         * modules/floorl (Depends-on): Likewise.
3372         * modules/fnmatch (Depends-on): Likewise.
3373         * modules/fopen (Depends-on): Likewise.
3374         * modules/fprintf-posix (Depends-on): Likewise.
3375         * modules/frexp (Depends-on): Likewise.
3376         * modules/frexp-nolibm (Depends-on): Likewise.
3377         * modules/frexpl (Depends-on): Likewise.
3378         * modules/frexpl-nolibm (Depends-on): Likewise.
3379         * modules/fseek (Depends-on): Likewise.
3380         * modules/fsusage (Depends-on): Likewise.
3381         * modules/ftell (Depends-on): Likewise.
3382         * modules/ftello (Depends-on): Likewise.
3383         * modules/futimens (Depends-on): Likewise.
3384         * modules/getcwd (Depends-on): Likewise.
3385         * modules/getcwd-lgpl (Depends-on): Likewise.
3386         * modules/getdelim (Depends-on): Likewise.
3387         * modules/getdomainname (Depends-on): Likewise.
3388         * modules/getgroups (Depends-on): Likewise.
3389         * modules/gethostname (Depends-on): Likewise.
3390         * modules/getline (Depends-on): Likewise.
3391         * modules/getlogin_r (Depends-on): Likewise.
3392         * modules/getopt-posix (Depends-on): Likewise.
3393         * modules/getpeername (Depends-on): Likewise.
3394         * modules/getsockname (Depends-on): Likewise.
3395         * modules/getsockopt (Depends-on): Likewise.
3396         * modules/getsubopt (Depends-on): Likewise.
3397         * modules/getusershell (Depends-on): Likewise.
3398         * modules/glob (Depends-on): Likewise.
3399         * modules/grantpt (Depends-on): Likewise.
3400         * modules/iconv_open (Depends-on): Likewise.
3401         * modules/iconv_open-utf (Depends-on): Likewise.
3402         * modules/inet_ntop (Depends-on): Likewise.
3403         * modules/inet_pton (Depends-on): Likewise.
3404         * modules/ioctl (Depends-on): Likewise.
3405         * modules/isapipe (Depends-on): Likewise.
3406         * modules/isfinite (Depends-on): Likewise.
3407         * modules/isinf (Depends-on): Likewise.
3408         * modules/lchown (Depends-on): Likewise.
3409         * modules/ldexpl (Depends-on): Likewise.
3410         * modules/link (Depends-on): Likewise.
3411         * modules/linkat (Depends-on): Likewise.
3412         * modules/listen (Depends-on): Likewise.
3413         * modules/logl (Depends-on): Likewise.
3414         * modules/lstat (Depends-on): Likewise.
3415         * modules/mbrlen (Depends-on): Likewise.
3416         * modules/mbrtowc (Depends-on): Likewise.
3417         * modules/mbsinit (Depends-on): Likewise.
3418         * modules/mbsnrtowcs (Depends-on): Likewise.
3419         * modules/mbsrtowcs (Depends-on): Likewise.
3420         * modules/mbtowc (Depends-on): Likewise.
3421         * modules/memcmp (Depends-on): Likewise.
3422         * modules/mkdir (Depends-on): Likewise.
3423         * modules/mkdtemp (Depends-on): Likewise.
3424         * modules/mkfifo (Depends-on): Likewise.
3425         * modules/mkfifoat (Depends-on): Likewise.
3426         * modules/mknod (Depends-on): Likewise.
3427         * modules/mkostemp (Depends-on): Likewise.
3428         * modules/mkostemps (Depends-on): Likewise.
3429         * modules/mkstemp (Depends-on): Likewise.
3430         * modules/mkstemps (Depends-on): Likewise.
3431         * modules/mktime (Depends-on): Likewise.
3432         * modules/nanosleep (Depends-on): Likewise.
3433         * modules/open (Depends-on): Likewise.
3434         * modules/openat (Depends-on): Likewise.
3435         * modules/perror (Depends-on): Likewise.
3436         * modules/poll (Depends-on): Likewise.
3437         * modules/popen (Depends-on): Likewise.
3438         * modules/posix_spawn (Depends-on): Likewise.
3439         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3440         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3441         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3442         * modules/posix_spawnp (Depends-on): Likewise.
3443         * modules/pread (Depends-on): Likewise.
3444         * modules/printf-posix (Depends-on): Likewise.
3445         * modules/ptsname (Depends-on): Likewise.
3446         * modules/putenv (Depends-on): Likewise.
3447         * modules/pwrite (Depends-on): Likewise.
3448         * modules/readline (Depends-on): Likewise.
3449         * modules/readlink (Depends-on): Likewise.
3450         * modules/readlinkat (Depends-on): Likewise.
3451         * modules/recv (Depends-on): Likewise.
3452         * modules/recvfrom (Depends-on): Likewise.
3453         * modules/regex (Depends-on): Likewise.
3454         * modules/remove (Depends-on): Likewise.
3455         * modules/rename (Depends-on): Likewise.
3456         * modules/renameat (Depends-on): Likewise.
3457         * modules/rmdir (Depends-on): Likewise.
3458         * modules/round (Depends-on): Likewise.
3459         * modules/roundf (Depends-on): Likewise.
3460         * modules/roundl (Depends-on): Likewise.
3461         * modules/rpmatch (Depends-on): Likewise.
3462         * modules/select (Depends-on): Likewise.
3463         * modules/send (Depends-on): Likewise.
3464         * modules/sendto (Depends-on): Likewise.
3465         * modules/setenv (Depends-on): Likewise.
3466         * modules/setlocale (Depends-on): Likewise.
3467         * modules/setsockopt (Depends-on): Likewise.
3468         * modules/shutdown (Depends-on): Likewise.
3469         * modules/sigaction (Depends-on): Likewise.
3470         * modules/signbit (Depends-on): Likewise.
3471         * modules/sigprocmask (Depends-on): Likewise.
3472         * modules/sinl (Depends-on): Likewise.
3473         * modules/sleep (Depends-on): Likewise.
3474         * modules/snprintf (Depends-on): Likewise.
3475         * modules/snprintf-posix (Depends-on): Likewise.
3476         * modules/socket (Depends-on): Likewise.
3477         * modules/sprintf-posix (Depends-on): Likewise.
3478         * modules/sqrtl (Depends-on): Likewise.
3479         * modules/stat (Depends-on): Likewise.
3480         * modules/strchrnul (Depends-on): Likewise.
3481         * modules/strdup-posix (Depends-on): Likewise.
3482         * modules/strerror (Depends-on): Likewise.
3483         * modules/strerror_r-posix (Depends-on): Likewise.
3484         * modules/strndup (Depends-on): Likewise.
3485         * modules/strnlen (Depends-on): Likewise.
3486         * modules/strptime (Depends-on): Likewise.
3487         * modules/strsep (Depends-on): Likewise.
3488         * modules/strsignal (Depends-on): Likewise.
3489         * modules/strstr-simple (Depends-on): Likewise.
3490         * modules/strtod (Depends-on): Likewise.
3491         * modules/strtoimax (Depends-on): Likewise.
3492         * modules/strtok_r (Depends-on): Likewise.
3493         * modules/strtoumax (Depends-on): Likewise.
3494         * modules/symlink (Depends-on): Likewise.
3495         * modules/symlinkat (Depends-on): Likewise.
3496         * modules/tanl (Depends-on): Likewise.
3497         * modules/tcgetsid (Depends-on): Likewise.
3498         * modules/tmpfile (Depends-on): Likewise.
3499         * modules/trunc (Depends-on): Likewise.
3500         * modules/truncf (Depends-on): Likewise.
3501         * modules/truncl (Depends-on): Likewise.
3502         * modules/uname (Depends-on): Likewise.
3503         * modules/unlink (Depends-on): Likewise.
3504         * modules/unlockpt (Depends-on): Likewise.
3505         * modules/unsetenv (Depends-on): Likewise.
3506         * modules/usleep (Depends-on): Likewise.
3507         * modules/utimensat (Depends-on): Likewise.
3508         * modules/vasprintf (Depends-on): Likewise.
3509         * modules/vdprintf (Depends-on): Likewise.
3510         * modules/vdprintf-posix (Depends-on): Likewise.
3511         * modules/vfprintf-posix (Depends-on): Likewise.
3512         * modules/vprintf-posix (Depends-on): Likewise.
3513         * modules/vsnprintf (Depends-on): Likewise.
3514         * modules/vsnprintf-posix (Depends-on): Likewise.
3515         * modules/vsprintf-posix (Depends-on): Likewise.
3516         * modules/wcrtomb (Depends-on): Likewise.
3517         * modules/wcscasecmp (Depends-on): Likewise.
3518         * modules/wcscspn (Depends-on): Likewise.
3519         * modules/wcsdup (Depends-on): Likewise.
3520         * modules/wcsncasecmp (Depends-on): Likewise.
3521         * modules/wcsnrtombs (Depends-on): Likewise.
3522         * modules/wcspbrk (Depends-on): Likewise.
3523         * modules/wcsrtombs (Depends-on): Likewise.
3524         * modules/wcsspn (Depends-on): Likewise.
3525         * modules/wcsstr (Depends-on): Likewise.
3526         * modules/wcstok (Depends-on): Likewise.
3527         * modules/wcswidth (Depends-on): Likewise.
3528         * modules/wctob (Depends-on): Likewise.
3529         * modules/wctomb (Depends-on): Likewise.
3530         * modules/wctype (Depends-on): Likewise.
3531         * modules/wcwidth (Depends-on): Likewise.
3532         * modules/write (Depends-on): Likewise.
3533
3534 2011-05-03  Bruno Haible  <bruno@clisp.org>
3535
3536         Support for conditional dependencies.
3537         * doc/gnulib.texi (Module description): Document the syntax of
3538         conditional dependencies.
3539         * gnulib-tool: New option --conditional-dependencies.
3540         (func_usage): Document it.
3541         (cond_dependencies): New variable.
3542         (func_get_automake_snippet_conditional,
3543         func_get_automake_snippet_unconditional): New functions, extracted from
3544         func_get_automake_snippet.
3545         (func_get_automake_snippet): Use them.
3546         (sed_first_32_chars): New variable.
3547         (func_module_shellfunc_name): New function.
3548         (func_module_shellvar_name): New function.
3549         (func_module_conditional_name): New function.
3550         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3551         func_cond_module_condition): New functions.
3552         (func_modules_transitive_closure): Add support for conditional
3553         dependencies.
3554         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3555         conditional automake snippet in an automake conditional.
3556         (func_emit_autoconf_snippets): Emit shell functions that contain the
3557         code for conditional modules.
3558         (func_import, func_create_testdir): Update specification.
3559
3560 2011-05-03  Eric Blake  <eblake@redhat.com>
3561
3562         test-getaddrinfo: report error information
3563         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3564
3565 2011-05-03  Jim Meyering  <meyering@redhat.com>
3566
3567         bootstrap: avoid build failure when $GZIP is set
3568         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3569         program name.  If defined at all, it is supposed to list gzip options.
3570         Reported by Alan Curry in http://debbugs.gnu.org/8609
3571
3572 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3573
3574         readme-release: new module with release instructions
3575         * modules/readme-release: New module.
3576         * top/README-release: New file, from coreutils, grep, diffutils.
3577         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3578
3579 2011-05-02  Eric Blake  <eblake@redhat.com>
3580
3581         fflush: also replace fclose when fixing fflush
3582         * modules/fflush (Depends-on): Add fclose.
3583         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3584         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3585         memstreams with no backing fd.
3586         * doc/posix-functions/fclose.texi (fclose): Document the use of
3587         fflush module to fix the bug.
3588         * tests/test-fclose.c (main): Relax test when fclose is used in
3589         isolation.
3590
3591         fclose: add some tests
3592         * modules/fclose-tests: New test module.
3593         * tests/test-fclose.c: New file.
3594         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3595
3596         fclose: reduced dependencies
3597         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3598         simpler lseek.
3599         * lib/fclose.c (rpl_fclose): Likewise.
3600         Reported by Simon Josefsson.
3601
3602         exit: drop remaining clients
3603         * modules/argmatch (Depends-on): Replace exit with stdlib.
3604         * modules/copy-file (Depends-on): Likewise.
3605         * modules/execute (Depends-on): Likewise.
3606         * modules/exitfail (Depends-on): Likewise.
3607         * modules/obstack (Depends-on): Likewise.
3608         * modules/pagealign_alloc (Depends-on): Likewise.
3609         * modules/pipe-filter-gi (Depends-on): Likewise.
3610         * modules/pipe-filter-ii (Depends-on): Likewise.
3611         * modules/savewd (Depends-on): Likewise.
3612         * modules/spawn-pipe (Depends-on): Likewise.
3613         * modules/wait-process (Depends-on): Likewise.
3614         * modules/xsetenv (Depends-on): Likewise.
3615         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3616         * modules/git-merge-changelog (Depends-on): Likewise.
3617         * modules/long-options (Depends-on): Likewise.
3618         * modules/pt_chown (Depends-on): Likewise.
3619         * modules/sysexits (Depends-on): Likewise.
3620
3621         freading: relax license from LGPLv3+ to LGPLv2+
3622         * modules/freading (License): Relax LGPL version.
3623
3624 2011-05-02  Bruno Haible  <bruno@clisp.org>
3625
3626         fchdir: Remove unused dependencies.
3627         * modules/fchdir (Depends-on): Remove include_next.
3628
3629 2011-05-02  Bruno Haible  <bruno@clisp.org>
3630
3631         gnulib-tool: Refactor.
3632         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3633         from func_emit_autoconf_snippets.
3634         (func_emit_autoconf_snippets): Use it.
3635
3636 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3637
3638         * NEWS: Document removal of 'exit'.
3639         * modules/exit: Remove file.
3640
3641 2011-05-01  Bruno Haible  <bruno@clisp.org>
3642
3643         Update DEPENDENCIES.
3644         * DEPENDENCIES (gettext): Recommend the newest release.
3645         Reported by Simon Josefsson.
3646
3647 2011-05-01  Bruno Haible  <bruno@clisp.org>
3648
3649         gnulib-tool: Reduce code duplication.
3650         * gnulib-tool (func_emit_autoconf_snippets): New function.
3651         (func_import, func_create_testdir): Use it.
3652
3653 2011-04-30  Eric Blake  <eblake@redhat.com>
3654
3655         fclose: don't fail on non-seekable input stream
3656         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3657         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3658         since fflush is allowed to fail in that case.
3659
3660 2011-04-30  Bruno Haible  <bruno@clisp.org>
3661
3662         dup3: cleanup
3663         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3664
3665 2011-04-30  Bruno Haible  <bruno@clisp.org>
3666
3667         netdb: Make it work in C++ mode.
3668         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3669         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3670         module.
3671         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3672         gl_MODULE_INDICATOR_FOR_TESTS.
3673         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3674         * modules/netdb-c++-tests: New file.
3675         * tests/test-netdb-c++.cc: New file.
3676
3677 2011-04-30  Bruno Haible  <bruno@clisp.org>
3678
3679         New modules 'vfscanf', 'vscanf'.
3680         * modules/vfscanf: New file.
3681         * modules/vscanf: New file.
3682         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3683         here.
3684         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3685         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3686
3687 2011-04-30  Bruno Haible  <bruno@clisp.org>
3688
3689         passfd: Add comments.
3690         * lib/passfd.c: Add comments about platforms.
3691
3692 2011-04-30  Bruno Haible  <bruno@clisp.org>
3693
3694         sys_uio: Make <sys/uio.h> self-contained.
3695         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3696         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3697
3698 2011-04-30  Bruno Haible  <bruno@clisp.org>
3699
3700         sys_socket: Ensure 'struct iovec' definition.
3701         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3702         <sys/socket.h>.
3703         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3704
3705 2011-04-30  Bruno Haible  <bruno@clisp.org>
3706
3707         sys_uio: Protect definition of 'struct iovec'.
3708         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3709         it as a C struct.
3710
3711 2011-04-30  Bruno Haible  <bruno@clisp.org>
3712
3713         manywarnings: fix indentation
3714         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3715
3716 2011-04-30  Pádraig Brady <P@draigBrady.com>
3717
3718         manywarnings: add -Wno-missing-field-initializers if needed.
3719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3720         option if it's needed to allow initialization with { 0, }
3721
3722 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3723
3724         announce-gen: cosmetic improvement
3725         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3726
3727 2011-04-29  Jim Meyering  <meyering@redhat.com>
3728
3729         vc-list-files: indent with spaces, not TABs
3730         * build-aux/vc-list-files: Convert leading TABs to spaces,
3731         to match the style of most other files in gnulib.
3732
3733         announce-gen: indent with spaces, not TABs
3734         * build-aux/announce-gen: Convert all TABs to spaces, to match
3735         the style of most other files in gnulib.
3736
3737 2011-04-29  Eric Blake  <eblake@redhat.com>
3738
3739         quotearg: avoid uninitialized variable use
3740         * lib/quotearg.c (quoting_options_from_style): Initialize
3741         remaining fields, and ensure that custom styles are only used via
3742         quoting_options rather than quoting_style.
3743
3744 2011-04-29  Jim Meyering  <meyering@redhat.com>
3745
3746         maint.mk: remove unused VC-tag variable
3747         * top/maint.mk (VC-tag): Remove unused variable.
3748
3749 2011-04-29  Bruno Haible  <bruno@clisp.org>
3750
3751         netdb: fix gai_strerror replacements
3752         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3753         * modules/netdb: Substitute it.
3754
3755 2011-04-29  Jim Meyering  <meyering@redhat.com>
3756
3757         test-getcwd.c: avoid new set-but-not-used warning
3758         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3759         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3760         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3761         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3762
3763         test-hash.c: avoid a new shadowing warning
3764         * tests/test-hash.c (main): Don't shadow "dup".
3765
3766 2011-04-28  Eric Blake  <eblake@redhat.com>
3767
3768         getaddrinfo: fix gai_strerror signature
3769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3770         and work around mingw with UNICODE defined.
3771         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3772         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3773         * modules/netdb (Makefile.am): Substitute it.
3774         * lib/netdb.in.h (gai_strerror): Declare replacement.
3775         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3776         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3777         the fix.
3778
3779         getsockopt: avoid compiler warning
3780         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3781         Reported by Matthias Bolte.
3782
3783         tests: drop unused link dependency
3784         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3785         * modules/dirent-safer-tests (Makefile.am): Likewise.
3786         * modules/fdopendir-tests (Makefile.am): Likewise.
3787         * modules/mkfifoat-tests (Makefile.am): Likewise.
3788         * modules/openat-safer-tests (Makefile.am): Likewise.
3789         * modules/openat-tests (Makefile.am): Likewise.
3790         * modules/readlinkat-tests (Makefile.am): Likewise.
3791         * modules/symlinkat-tests (Makefile.am): Likewise.
3792         * modules/linkat-tests (Makefile.am): Likewise.
3793         (Depends-on): Switch to filenamecat-lgpl.
3794         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3795         LIBINTL.
3796         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3797         * tests/test-linkat.c (main): Don't require xalloc.
3798
3799         hash, mgetgroups: drop xalloc dependency
3800         * lib/hash.c (includes): Adjust includes.
3801         * lib/mgetgroups.c (includes): Likewise.
3802         (xgetgroups): Move...
3803         * lib/xgetgroups.c: ...to new file.
3804         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3805         * modules/xgetgroups: New file, split from...
3806         * modules/mgetgroups: ...here.
3807         (Depends-on): Add xalloc-oversized.
3808         * modules/hash (Depends-on): Likewise.
3809         * modules/hash-tests (Depends-on): Drop xalloc.
3810         (test_hash_LDADD): Drop unused library.
3811         * tests/test-hash.c (main): Break xalloc dependency.
3812         (includes): Drop unused include.
3813
3814         xalloc-oversized: new module
3815         * modules/xalloc-oversized: New module.
3816         * modules/xalloc (Depends-on): Add it.
3817         * lib/xalloc.h (xalloc_oversized): Move...
3818         * lib/xalloc-oversized.h: ...into new file.
3819
3820         utimecmp: drop dependency on xmalloc
3821         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3822         due to memory pressure.
3823         * modules/utimecmp (Depends-on): Drop xalloc.
3824
3825 2011-04-27  Eric Blake  <eblake@redhat.com>
3826
3827         getcwd: fix mingw bugs
3828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3829         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3830         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3831
3832 2011-04-27  Bruno Haible  <bruno@clisp.org>
3833
3834         mkstemps: Ensure declaration on MacOS X 10.5.
3835         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3836         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3837         MacOS X.
3838
3839 2011-04-27  Bruno Haible  <bruno@clisp.org>
3840
3841         mkstemp: More documentation.
3842         * doc/posix-functions/mkstemp.texi: Document header file problem on
3843         MacOS X.
3844
3845 2011-04-27  Bruno Haible  <bruno@clisp.org>
3846
3847         mkstemp: Tweak configure message when cross-compiling.
3848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3849         result as a guess.
3850
3851 2011-04-27  Bruno Haible  <bruno@clisp.org>
3852
3853         clean-temp: Clarify what it does.
3854         * lib/clean-temp.h: Add more comments.
3855         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3856         module.
3857         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3858         * doc/glibc-functions/mkstemps.texi: Likewise.
3859         * doc/glibc-functions/mkostemps.texi: Likewise.
3860
3861 2011-04-27  Eric Blake  <eblake@redhat.com>
3862
3863         fchdir: avoid extra chdir and fix test
3864         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3865         getcwd-lgpl.
3866         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3867         have to be canonical.
3868         (canonicalize_file_name): Drop unused macro.
3869         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3870
3871         filenamecat-lgpl: fix licence
3872         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3873         when it was first created.
3874
3875         linkat, renameat: add missing dependency
3876         * modules/linkat (Depends-on): Require getcwd-lgpl.
3877         * modules/renameat (Depends-on): Likewise.
3878
3879         tests: reduce dependencies
3880         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3881         * tests/test-renameat.c (main): Likewise.
3882         * modules/linkat-tests (Depends-on): Relax dependency.
3883         * modules/renameat-tests (Depends-on): Likewise.
3884         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3885         dependency explicit.
3886
3887         save-cwd: reduce default dependency
3888         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3889         * lib/save-cwd.c: Update comments.
3890         * NEWS: Document the semantic change.
3891
3892         getcwd: enhance tests
3893         * tests/test-getcwd-lgpl.c: New file, taken from...
3894         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3895         repeat long path stress tests from m4 probe.
3896         * modules/getcwd-lgpl-tests: New module.
3897         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3898         * m4/getcwd-abort-bug.m4: Update comment.
3899         * m4/getcwd-path-max.m4: Likewise.
3900
3901         getcwd-lgpl: new module
3902         * modules/getcwd-lgpl: New module.
3903         * lib/getcwd-lgpl.c: New file.
3904         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3905         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3906         * modules/getcwd (configure.ac): Set C witness.
3907         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3908
3909         getcwd: tweak comments
3910         * m4/getcwd-abort-bug.m4: Fix comments.
3911         * m4/getcwd-path-max.m4: Likewise.
3912         * m4/getcwd.m4: Likewise.
3913
3914 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3915         and Eric Blake  <eblake@redhat.com>
3916
3917         mkstemp: replace if system version uses wrong permissions
3918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3919         read/write mode bits set in file created by mkstemp.
3920         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3921
3922 2011-04-27  Eric Blake  <eblake@redhat.com>
3923
3924         passfd: avoid compiler warning
3925         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3926         Reported by Laine Stump.
3927
3928 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3929
3930         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3931         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3932
3933 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3934         and Eric Blake  <eblake@redhat.com>
3935
3936         mkstemp: mention clean-temp module
3937         * lib/mkstemp.c: Add comment.
3938         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3939
3940 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3941
3942         inttypes: also provide default values for 32-bit tests
3943         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3944         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3945
3946 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3947
3948         strtoumax: remove dependency on strtoimax
3949         This is like the strtoull change of yesterday.
3950         * modules/strtoumax (Files): Add lib/strtoimax.c.
3951         (Depends-on): Remove strtoimax and add verify.
3952
3953         inttypes-incomplete: new module
3954         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3955         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3956         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3957         of gl_INTTYPES_H.
3958         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3959         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3960         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3961         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3962         * modules/strtoumax, modules/xstrtol (Depends-on):
3963         Depend on inttypes-incomplete, not inttypes.
3964         * modules/inttypes-incomplete: New module, containing the contents
3965         of the old modules/inttypes module, except that the Files: section
3966         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3967         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3968         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3969         (Depends-on): Depend only on inttypes-incomplete.
3970         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3971
3972         inttypes: omit now-redundant strtoimax and strtoumax work
3973         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3974         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3975
3976         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3977         This supports apps that need pointers to strtoimax and strtoumax,
3978         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3979         nonexistent functions.  See
3980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3981         et seq.
3982         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3984         a macro.
3985         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3986
3987 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3988
3989         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3990
3991 2011-04-25  Bruno Haible  <bruno@clisp.org>
3992
3993         strtol, strtoul: Mark modules as obsolete.
3994         * modules/strtol (Status, Notice): New sections.
3995         * modules/strtoul (Status, Notice): New sections.
3996
3997 2011-04-25  Bruno Haible  <bruno@clisp.org>
3998
3999         strtod: Remove check for strtod, unless supporting old platforms.
4000         * modules/strtod-obsolete: New file.
4001         * m4/strtod-obsolete.m4: New file.
4002         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4003         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4004         * modules/strtod (Depends-on): Add strtod-obsolete.
4005         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4006
4007 2011-04-25  Bruno Haible  <bruno@clisp.org>
4008
4009         strcase: Make module obsolete.
4010         * modules/strcase (Status, Notice): New sections.
4011
4012 2011-04-25  Bruno Haible  <bruno@clisp.org>
4013
4014         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4015         * modules/dup2-obsolete: New file.
4016         * m4/dup2-obsolete.m4: New file.
4017         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4018         gl_FUNC_DUP2_OBSOLETE is not also defined.
4019         * modules/dup2 (Depends-on): Add dup2-obsolete.
4020         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4021
4022 2011-04-25  Bruno Haible  <bruno@clisp.org>
4023
4024         strnlen: Avoid memchr related link error on old obsolete platforms.
4025         * modules/memchr-obsolete: New file.
4026         * m4/memchr-obsolete.m4: New file.
4027         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4028         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4029         * modules/memchr (Depends-on): Add memchr-obsolete.
4030         * modules/strnlen (Depends-on): Likewise.
4031         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4032
4033 2011-04-25  Jim Meyering  <meyering@redhat.com>
4034
4035         maint.mk: makefile_at_at_check extend and clean up
4036         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4037         in addition to */Makefile.am.
4038         Exempt legitimate uses of @VAR@ notation, e.g.,
4039         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4040         Remove obsolete coreutils-specific comment.
4041         Prompted by discussion here:
4042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4043
4044 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4045
4046         strtoul: remove dependency on strtol
4047         This is so that 'configure' need not check for strtol merely because
4048         the application needs strtoul.
4049         * modules/strtoul (Files): Add lib/strtol.c.
4050         (Depends-on): Remove strtol.
4051
4052         strtoull: remove dependency on strtoul
4053         This is like the strtoll change.
4054         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4055         (Depends-on): Remove strtoul.
4056
4057         strtoll: remove dependency on strtol
4058         This is so that 'configure' need not check for strtol merely because
4059         the application needs strtoll.
4060         * modules/strtoll (Files): Add lib/strtol.c.
4061         (Depends-on): Remove strtol.
4062
4063 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4064
4065         inttypes: Move some configure check to module 'imaxdiv'.
4066         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4067         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4068         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4069
4070 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         inttypes: Move some configure check to module 'imaxabs'.
4073         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4074         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4075         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4076
4077 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4078
4079         inttypes: Remove configure tests that are not needed since 2009-12-31.
4080         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4081         gl_cv_header_working_inttypes_h.
4082
4083 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4084
4085         * modules/strnlen (Depends-on): Remove memchr.
4086         The strnlen implementation doesn't need the memchr module's fixes; see
4087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4088
4089         strtol: remove dependency on wchar
4090         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4091         * modules/strtol (Depends-on): Remove wchar.
4092
4093 2011-04-21  Eric Blake  <eblake@redhat.com>
4094
4095         passfd: fix test regression on Linux
4096         * modules/passfd-tests (configure.ac): Correct socketpair check.
4097
4098         passfd: speed up configure and drop unused code
4099         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4100         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4101         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4102         Instead of probing at configure for unix_scm_rights_bsd44_way,
4103         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4104         check to a struct member probe.
4105         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4106         (sendfd, recvfd): Update preprocessor checks.
4107         * modules/passfd (Files): Reflect rename, and drop unused file.
4108         (Depends-on): Drop unused dependency.
4109
4110         passfd: allow compilation on mingw
4111         * modules/sys_socket (Depends-on): Add sys_uio.
4112         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4113         iovec and a minimal struct msghdr.
4114         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4115         * tests/test-sys_socket.c (main): Enhance test.
4116         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4117         guaranteed to provide what we need.
4118         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4119         * modules/passfd-tests (Depends-on): Add sys_wait.
4120         * tests/test-passfd.c (main): Skip test on mingw, for now.
4121         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4122         partial 'struct msghdr' implementation.
4123
4124         sys_uio: new module
4125         * modules/sys_uio: New module.
4126         * modules/sys_uio-tests: Likewise.
4127         * lib/sys_uio.in.h: New file.
4128         * m4/sys_uio_h.m4: Likewise.
4129         * tests/test-sys_uio.c: Likewise.
4130         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4131         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4132
4133 2011-04-20  Jim Meyering  <meyering@redhat.com>
4134
4135         useless-if-before-free: avoid false-positive
4136         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4137         disjunct so that it too requires a terminating ";".  Without that,
4138         this script would identify as useless one statement from gcc that
4139         was not:
4140           if (aligned_ptr)
4141             free (((void **) aligned_ptr) [-1]);
4142
4143 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4144
4145         doc: update users.txt.
4146         * users.txt: Add barcode.
4147
4148 2011-04-19  Bruno Haible  <bruno@clisp.org>
4149
4150         ioctl: Remove link dependency on native Windows.
4151         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4152         (gl_close_fn, gl_ioctl_fn): New types.
4153         (struct fd_hook): Renamed from struct close_hook. Change type of
4154         private_close_fn field. Add private_ioctl_fn field.
4155         (close_hook_fn): Add parameter for primary close method.
4156         (execute_close_hooks, execute_all_close_hooks): Likewise.
4157         (ioctl_hook_fn): New type.
4158         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4159         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4160         argument.
4161         (unregister_fd_hook): Renamed from unregister_close_hook.
4162         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4163         Don't include <unistd.h>.
4164         (close): Remove undef.
4165         (anchor): Update.
4166         (execute_close_hooks): Add argument for primary close method.
4167         (execute_all_close_hooks): Likewise.
4168         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4169         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4170         argument. Allow each argument to be NULL.
4171         (unregister_fd_hook): Renamed from unregister_close_hook.
4172         * lib/close.c (rpl_close): Pass 'close' function pointer to
4173         execute_all_close_hooks.
4174         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4175         (primary_ioctl): New function.
4176         (ioctl): Don't call ioctlsocket here. Instead, call
4177         execute_all_ioctl_hooks.
4178         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4179         close method.
4180         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4181         (fd_sockets_hook): Renamed from close_sockets_hook.
4182         (gl_sockets_startup, gl_sockets_cleanup): Update.
4183         * modules/fd-hook: Renamed from modules/close-hook. Update.
4184         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4185         * modules/sockets (Depends-on): Likewise.
4186         * modules/ioctl (Depends-on): Add fd-hook.
4187         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4188         GNULIB_SOCKET.
4189
4190 2011-04-19  Bruno Haible  <bruno@clisp.org>
4191
4192         Move the support of O_NONBLOCK in open() to the 'open' module.
4193         * modules/nonblocking (Depends-on): Remove 'open'.
4194         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4195         gl_cv_have_open_O_NONBLOCK.
4196         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4197         O_NONBLOCK support.
4198         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4199
4200 2011-04-17  Bruno Haible  <bruno@clisp.org>
4201
4202         pipe2: Simplify code.
4203         * lib/pipe2.c (pipe2): Reduce code duplication.
4204
4205 2011-04-17  Bruno Haible  <bruno@clisp.org>
4206
4207         nonblocking: Add comment.
4208         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4209
4210 2011-04-17  Bruno Haible  <bruno@clisp.org>
4211
4212         nonblocking: Add tests for sockets.
4213         * tests/test-nonblocking-socket.sh: New file.
4214         * tests/test-nonblocking-socket-main.c: New file.
4215         * tests/test-nonblocking-socket-child.c: New file.
4216         * tests/test-nonblocking-socket.h: New file.
4217         * tests/socket-server.h: New file.
4218         * tests/socket-client.h: New file.
4219         * modules/nonblocking-socket-tests: New file.
4220         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4221
4222 2011-04-17  Bruno Haible  <bruno@clisp.org>
4223
4224         nonblocking: Add tests for pipes.
4225         * tests/test-nonblocking-pipe.sh: New file.
4226         * tests/test-nonblocking-pipe-main.c: New file.
4227         * tests/test-nonblocking-pipe-child.c: New file.
4228         * tests/test-nonblocking-pipe.h: New file.
4229         * tests/test-nonblocking-writer.h: New file.
4230         * tests/test-nonblocking-reader.h: New file.
4231         * tests/test-nonblocking-misc.h: New file.
4232         * modules/nonblocking-pipe-tests: New file.
4233         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4234
4235 2011-04-16  Bruno Haible  <bruno@clisp.org>
4236
4237         gettext: Clarify the needed programmer actions.
4238         * modules/gettext (Notice): New field.
4239         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4240
4241 2011-04-16  Bruno Haible  <bruno@clisp.org>
4242
4243         strchrnul: Tweak last commit.
4244         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4245         bug.
4246         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4247         as in _GL_FUNCDECL_SYS.
4248         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4249         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4250
4251 2011-04-15  Eric Blake  <eblake@redhat.com>
4252
4253         strchrnul: work around cygwin bug
4254         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4255         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4257         * modules/string (Makefile.am): Substitute it.
4258         * lib/string.in.h (strchrnul): Use it.
4259
4260 2011-04-15  Bruno Haible  <bruno@clisp.org>
4261
4262         Don't require lib/stdio-write.c when only module 'stdio' is used.
4263         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4264         invocation.
4265         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4266
4267 2011-04-14  Bruno Haible  <bruno@clisp.org>
4268
4269         Support non-blocking pipe I/O in read() on native Windows.
4270         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4271         (read): New declaration.
4272         * lib/read.c: New file.
4273         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4274         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4275         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4276         vscanf): New declarations.
4277         * lib/stdio-read.c: New file.
4278         * m4/read.m4: New file.
4279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4280         REPLACE_READ.
4281         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4282         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4283         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4284         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4285         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4286         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4287         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4288         * modules/read: New file.
4289         * modules/nonblocking (Files): Add lib/stdio-read.c.
4290         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4291         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4292         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4293         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4294         * modules/pread (Depends-on): Add read.
4295         * modules/safe-read (Depends-on): Likewise.
4296         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4297         gets, scanf, vfscanf, vscanf): Verify signatures.
4298         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4299         problem with non-blocking pipes.
4300         * doc/posix-functions/fgetc.texi: Likewise.
4301         * doc/posix-functions/fgets.texi: Likewise.
4302         * doc/posix-functions/fread.texi: Likewise.
4303         * doc/posix-functions/fscanf.texi: Likewise.
4304         * doc/posix-functions/getc.texi: Likewise.
4305         * doc/posix-functions/getchar.texi: Likewise.
4306         * doc/posix-functions/gets.texi: Likewise.
4307         * doc/posix-functions/scanf.texi: Likewise.
4308         * doc/posix-functions/vfscanf.texi: Likewise.
4309         * doc/posix-functions/vscanf.texi: Likewise.
4310
4311 2011-04-14  Bruno Haible  <bruno@clisp.org>
4312
4313         Support non-blocking pipe I/O in write() on native Windows.
4314         * lib/write.c (rpl_write): Split a write request that failed merely
4315         because the byte count was larger than the pipe buffer's size.
4316         * doc/posix-functions/write.texi: Mention the problem with large byte
4317         counts.
4318
4319 2011-04-14  Bruno Haible  <bruno@clisp.org>
4320
4321         wchar: Ensure that wchar_t gets defined on uClibc.
4322         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4323         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4324
4325 2011-04-13  Bruno Haible  <bruno@clisp.org>
4326
4327         safe-write, full-read: Avoid unnecessary compilation units.
4328         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4329         (Depends-on): Remove safe-read. Add ssize_t.
4330         * modules/full-read (Files): Add lib/full-write.c.
4331         (Depends-on): Add full-write.
4332
4333 2011-04-13  Bruno Haible  <bruno@clisp.org>
4334
4335         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4336         * modules/pwrite (Depends-on): Add 'write'.
4337
4338 2011-04-13  Bruno Haible  <bruno@clisp.org>
4339
4340         Support non-blocking pipe I/O in write() on native Windows.
4341         * lib/unistd.in.h (write): Enable replacement also if
4342         GNULIB_UNISTD_H_NONBLOCKING is 1.
4343         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4344         (rpl_write): When failing to write on a non-blocking pipe, change
4345         errno from ENOSPC to EAGAIN.
4346         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4347         putchar, puts, vfprintf, vprintf): Enable replacement also if
4348         GNULIB_STDIO_H_NONBLOCKING is 1.
4349         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4350         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4351         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4352         CALL_WITH_SIGPIPE_EMULATION.
4353         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4354         * m4/nonblocking.m4: New file.
4355         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4356         for non-blocking I/O support.
4357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4358         GNULIB_UNISTD_H_NONBLOCKING.
4359         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4360         required for non-blocking I/O support.
4361         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4362         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4363         lib/stdio-write.c, m4/asm-underscore.m4.
4364         (Depends-on): Add stdio, unistd.
4365         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4366         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4367         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4368         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4369         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4370         problem with non-blocking pipes.
4371         * doc/posix-functions/fputc.texi: Likewise.
4372         * doc/posix-functions/fputs.texi: Likewise.
4373         * doc/posix-functions/fwrite.texi: Likewise.
4374         * doc/posix-functions/printf.texi: Likewise.
4375         * doc/posix-functions/putc.texi: Likewise.
4376         * doc/posix-functions/putchar.texi: Likewise.
4377         * doc/posix-functions/puts.texi: Likewise.
4378         * doc/posix-functions/vfprintf.texi: Likewise.
4379         * doc/posix-functions/vprintf.texi: Likewise.
4380         * doc/posix-functions/write.texi: Likewise.
4381
4382 2011-04-10  Jim Meyering  <meyering@redhat.com>
4383
4384         maint.mk: prohibit doubled words
4385         Detect them also when they're separated by a newline.
4386         There are 3 ways to customize it:
4387           - disable the test on a per file basis, as usual with rules using
4388             $(VC_LIST_EXCEPT)
4389           - replace the default doubled-word-selecting regexp (affects all files)
4390           - ignore a particular file-vs-doubled-word match
4391         I nearly used that last one to ignore the "is is" match in
4392         coreutils' NEWS file, since the text was "ls -is is ..."
4393         To do that, I would have added this line to cfg.mk:
4394           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4395         but it would have ignored any "is is" match in NEWS.
4396         Low probability, but still...
4397         Instead, I changed the text, slightly:
4398           -  ls -is is now consistent with ls -lis in ignoring values returned
4399           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4400         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4401         (prohibit_doubled_word_): Define.
4402         (sc_prohibit_doubled_word): New rule.
4403         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4404
4405 2011-04-10  Jim Meyering  <meyering@redhat.com>
4406
4407         maint: fix doubled-word typo in comment
4408         * m4/gethostname.m4: s/is is/it is/
4409         * m4/getdomainname.m4: Likewise.
4410
4411 2011-04-10  Jim Meyering  <meyering@redhat.com>
4412
4413         maint: remove doubled word: s/it it/it/
4414         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4415
4416 2011-04-10  Jim Meyering  <meyering@redhat.com>
4417
4418         maint.mk: remove useless semicolon and backslash
4419         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4420         semicolon and backslash.
4421
4422 2011-04-10  Bruno Haible  <bruno@clisp.org>
4423
4424         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4425         * modules/stdint-tests (Depends-on): Add wchar.
4426
4427 2011-04-10  Jim Meyering  <meyering@redhat.com>
4428
4429         maint: remove doubled words in comments, e.g., s/a a/a/
4430         * lib/strptime.c (day_of_the_week): s/the the/the/
4431         * tests/test-chown.h (test_chown): s/a a/a/
4432
4433         test-chown.h: correct a cast
4434         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4435         when the destination is a stat.st_gid.
4436
4437 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4438
4439         getaddrinfo: Fix test for sa_len member.
4440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4441         include <sys/types.h> before <sys/socket.h>.
4442
4443 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4444
4445         maint: change "can not" to "cannot"
4446         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4447         boundaries.
4448
4449 2011-04-09  Jim Meyering  <meyering@redhat.com>
4450
4451         maint: change "a a" to "a"
4452         * tests/test-lchown.h (test_lchown): s/a a/a/
4453
4454         maint.mk: prohibit \<the the\>
4455         * top/maint.mk (sc_prohibit_the_the): New rule.
4456
4457         maint: fix "the the" in comment
4458         * lib/count-one-bits.h: s/the the/the/
4459
4460         maint: change "can not" to "cannot"
4461         But do not change the occurrences in maintain.texi or in
4462         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4463         * doc/gnulib-tool.texi: s/can not/cannot/
4464         * doc/posix-functions/accept.texi (accept): Likewise.
4465         * doc/posix-functions/socket.texi (socket): Likewise.
4466         * lib/mbrtowc.c: Likewise.
4467
4468         maint.mk: prohibit use of "can not"
4469         * top/maint.mk (sc_prohibit_can_not): New rule.
4470         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4471
4472 2011-04-09  Bruno Haible  <bruno@clisp.org>
4473
4474         careadlinkat: Guard against misuse of careadlinkatcwd.
4475         * lib/careadlinkat.c: Include <stdlib.h>.
4476         (careadlinkatcwd): Check that the fd argument is as expected.
4477
4478 2011-04-09  Bruno Haible  <bruno@clisp.org>
4479
4480         careadlinkat: Use common coding style.
4481         * lib/careadlinkat.c: Move gnulib includes after system includes.
4482
4483 2011-04-09  Bruno Haible  <bruno@clisp.org>
4484
4485         careadlinkat: Clarify specification.
4486         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4487         (careadlinkatcwd): Add comment.
4488         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4489
4490 2011-04-09  Bruno Haible  <bruno@clisp.org>
4491
4492         areadlinkat: Avoid link error on many platforms.
4493         * modules/areadlinkat (Depends-on): Add areadlink.
4494
4495 2011-04-09  Bruno Haible  <bruno@clisp.org>
4496
4497         allocator, careadlinkat: Fix double-inclusion guard.
4498         * lib/allocator.h: Fix double-inclusion guard.
4499         * lib/careadlinkat.h: Likewise.
4500
4501 2011-04-09  Bruno Haible  <bruno@clisp.org>
4502
4503         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4504         * lib/relocwrapper.c: Update dependencies hierarchy.
4505         * build-aux/install-reloc: Update list of files to be compiled.
4506         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4507         lib/allocator.[hc].
4508
4509 2011-04-08  Eric Blake  <eblake@redhat.com>
4510
4511         strftime: silence gnulib-tool warning
4512         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4513
4514 2011-04-08  Bruno Haible  <bruno@clisp.org>
4515
4516         verify: Fix syntax error with GCC 4.6 in C++ mode.
4517         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4518         (HAVE_STATIC_ASSERT): New macro.
4519         (verify_true, verify): Use 'static_assert' if it is supported and
4520         '_Static_assert' is not supported.
4521
4522 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         allocator: New module.
4525         * modules/allocator, lib/allocator.c: New files.
4526         * lib/allocator.h (stdlib_allocator): New decl.
4527         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4528         Remove.  Do not include <stdlib.h>.
4529         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4530         * modules/careadlinkat (Files): Remove lib/allocator.h.
4531         (Depends-on): Add allocator.
4532
4533         stdlib: let modules use system malloc, realloc
4534         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4535         if !_GL_USE_STDLIB_ALLOC.
4536         (malloc, realloc): Limit this change to a smaller scope.
4537
4538         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4539         (malloc, realloc): Don't #undef; no longer needed.
4540         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4541         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4542         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4543         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4544         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4545         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4546         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4547         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4548
4549         careadlinkat: rename members to avoid problem
4550         * lib/allocator.h (struct allocator): Rename members from
4551         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4552         and realloc are #define'd.  Reported by Eric Blake in
4553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4554         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4555
4556 2011-04-08  Eric Blake  <eblake@redhat.com>
4557
4558         nonblocking: reduce dependency
4559         * tests/test-nonblocking.c: Only test sockets when in use.
4560         * modules/nonblocking-tests (Depends-on): Drop socket.
4561         (Makefile.am): Link even if sockets are not present.
4562         * modules/pipe2-tests (Makefile.am): Likewise.
4563         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4564
4565         pipe2: fix O_NONBLOCK support on mingw
4566         * modules/pipe2 (Depends-on): Add nonblocking.
4567         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4568         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4569         * tests/test-nonblocking.c (main): Likewise.
4570         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4571
4572         fcntl-h: fix O_ACCMODE on cygwin
4573         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4574         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4575
4576         pipe-filter: drop O_NONBLOCK workarounds
4577         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4578         * modules/pipe-filter-ii (Depends-on): Likewise.
4579         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4580
4581         nonblocking: provide O_NONBLOCK for mingw
4582         * modules/nonblocking (Depends-on): Add open.
4583         (configure.ac): Set new witness macro.
4584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4585         * modules/fcntl-h (Makefile.am): Substitute it.
4586         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4587         nonblocking module is in use.
4588         * lib/nonblocking.c: Adjust portability test.
4589         * lib/open.c (open): Don't let native open see gnulib flag.
4590         * tests/test-fcntl-h.c (main): Enhance test.
4591         * tests/test-open.h (test_open): Likewise.
4592         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4593
4594         careadlinkat: fix compilation error on mingw
4595         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4596         within struct allocator.
4597
4598 2011-04-06  Eric Blake  <eblake@redhat.com>
4599
4600         binary-io: relicense under LGPLv2+
4601         * modules/binary-io (License): Relax to LGPLv2+.
4602         Requested for libvirt, and required by pipe2.
4603
4604 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4605
4606         verify: use _Static_assert if available
4607         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4608         (verify_true, verify): Use it if available.  This generates better
4609         diagnostics with GCC 4.6.0 and later.
4610
4611 2011-04-05  Bruno Haible  <bruno@clisp.org>
4612
4613         Remove leftover generated .h files after config.status changed.
4614
4615         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4616         GL_GENERATE_ALLOCA_H.
4617         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4618         GL_GENERATE_ALLOCA_H evaluates to false.
4619
4620         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4621         GL_GENERATE_ARGZ_H.
4622         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4623         evaluates to false.
4624
4625         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4626         GL_GENERATE_BYTESWAP_H.
4627         * modules/byteswap (Makefile.am): Remove byteswap.h if
4628         GL_GENERATE_BYTESWAP_H evaluates to false.
4629
4630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4631         GL_GENERATE_ERRNO_H.
4632         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4633         evaluates to false.
4634
4635         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4636         GL_GENERATE_FLOAT_H.
4637         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4638         evaluates to false.
4639
4640         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4641         GL_GENERATE_FNMATCH_H.
4642         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4643         GL_GENERATE_FNMATCH_H evaluates to false.
4644
4645         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4646         GL_GENERATE_GLOB_H.
4647         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4648         evaluates to false.
4649
4650         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4651         automake conditional GL_GENERATE_ICONV_H.
4652         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4653         evaluates to false.
4654
4655         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4656         GL_GENERATE_NETINET_IN_H.
4657         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4658         GL_GENERATE_NETINET_IN_H evaluates to false.
4659
4660         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4661         conditional GL_GENERATE_PTHREAD_H.
4662         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4663         * modules/pthread (Makefile.am): Remove pthread.h if
4664         GL_GENERATE_PTHREAD_H evaluates to false.
4665
4666         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4667         GL_GENERATE_SCHED_H.
4668         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4669         evaluates to false.
4670
4671         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4672         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4673         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4674         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4675
4676         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4677         GL_GENERATE_STDARG_H.
4678         * modules/stdarg (Makefile.am): Remove stdarg.h if
4679         GL_GENERATE_STDARG_H evaluates to false.
4680
4681         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4682         GL_GENERATE_STDBOOL_H.
4683         * modules/stdbool (Makefile.am): Remove stdbool.h if
4684         GL_GENERATE_STDBOOL_H evaluates to false.
4685
4686         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4687         conditional GL_GENERATE_STDDEF_H.
4688         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4689         * modules/stddef (Makefile.am): Remove stddef.h if
4690         GL_GENERATE_STDDEF_H evaluates to false.
4691
4692         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4693         GL_GENERATE_STDINT_H.
4694         * modules/stdint (Makefile.am): Remove stdint.h if
4695         GL_GENERATE_STDINT_H evaluates to false.
4696
4697         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4698         GL_GENERATE_SYSEXITS_H.
4699         * modules/sysexits (Makefile.am): Remove sysexits.h if
4700         GL_GENERATE_SYSEXITS_H evaluates to false.
4701
4702         Reported by Karl Berry and Ralf Wildenhues.
4703
4704 2011-04-05  Bruno Haible  <bruno@clisp.org>
4705
4706         Ensure to rebuild generated .h files when config.status has changed.
4707         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4708         config.status.
4709         * modules/ctype (Makefile.am): Likewise.
4710         * modules/dirent (Makefile.am): Likewise.
4711         * modules/errno (Makefile.am): Likewise.
4712         * modules/fcntl-h (Makefile.am): Likewise.
4713         * modules/float (Makefile.am): Likewise.
4714         * modules/getopt-posix (Makefile.am): Likewise.
4715         * modules/glob (Makefile.am): Likewise.
4716         * modules/iconv-h (Makefile.am): Likewise.
4717         * modules/inttypes (Makefile.am): Likewise.
4718         * modules/langinfo (Makefile.am): Likewise.
4719         * modules/locale (Makefile.am): Likewise.
4720         * modules/math (Makefile.am): Likewise.
4721         * modules/netdb (Makefile.am): Likewise.
4722         * modules/netinet_in (Makefile.am): Likewise.
4723         * modules/poll-h (Makefile.am): Likewise.
4724         * modules/pthread (Makefile.am): Likewise.
4725         * modules/pty (Makefile.am): Likewise.
4726         * modules/sched (Makefile.am): Likewise.
4727         * modules/search (Makefile.am): Likewise.
4728         * modules/selinux-h (Makefile.am): Likewise.
4729         * modules/signal (Makefile.am): Likewise.
4730         * modules/spawn (Makefile.am): Likewise.
4731         * modules/stdarg (Makefile.am): Likewise.
4732         * modules/stdbool (Makefile.am): Likewise.
4733         * modules/stddef (Makefile.am): Likewise.
4734         * modules/stdint (Makefile.am): Likewise.
4735         * modules/stdio (Makefile.am): Likewise.
4736         * modules/stdlib (Makefile.am): Likewise.
4737         * modules/string (Makefile.am): Likewise.
4738         * modules/strings (Makefile.am): Likewise.
4739         * modules/sys_file (Makefile.am): Likewise.
4740         * modules/sys_ioctl (Makefile.am): Likewise.
4741         * modules/sys_select (Makefile.am): Likewise.
4742         * modules/sys_socket (Makefile.am): Likewise.
4743         * modules/sys_stat (Makefile.am): Likewise.
4744         * modules/sys_time (Makefile.am): Likewise.
4745         * modules/sys_times (Makefile.am): Likewise.
4746         * modules/sys_utsname (Makefile.am): Likewise.
4747         * modules/sys_wait (Makefile.am): Likewise.
4748         * modules/sysexits (Makefile.am): Likewise.
4749         * modules/termios (Makefile.am): Likewise.
4750         * modules/time (Makefile.am): Likewise.
4751         * modules/unistd (Makefile.am): Likewise.
4752         * modules/wchar (Makefile.am): Likewise.
4753         * modules/wctype-h (Makefile.am): Likewise.
4754         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4755
4756 2011-04-05  Bruno Haible  <bruno@clisp.org>
4757
4758         pipe2: Relicense under LGPLv2+.
4759         * modules/pipe2 (License): Change to LGPLv2+.
4760         Requested by Eric Blake, for libvirt.
4761
4762 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4763
4764         bootstrap: compute gnulib_extra_files after updating build_aux
4765         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4766         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4767
4768 2011-04-05  Eric Blake  <eblake@redhat.com>
4769
4770         bootstrap: preserve git whitelist item sorting
4771         * build-aux/bootstrap (sort_patterns): New function.
4772         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4773
4774 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4775
4776         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4777         sc_space_tab check.
4778
4779 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4780
4781         areadlink, areadlinkat: rewrite in terms of careadlinkat
4782         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4783         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4784         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4785         (malloc, realloc): Remove #undefs.
4786         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4787         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4788         readlink, ssize_t, stdint, unistd.
4789         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4790         areadlink, stdint.
4791
4792         careadlinkat: new module
4793         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4794         * modules/careadlinkat: New files, written by me with
4795         a review and feedback from Ben Pfaff in
4796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4797
4798 2011-04-01  Bruno Haible  <bruno@clisp.org>
4799
4800         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4801         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4802         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4803         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4804         Reported by Bruce Korb <bruce.korb@gmail.com>.
4805
4806 2011-04-01  Bruno Haible  <bruno@clisp.org>
4807
4808         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4809         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4810         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4811         * modules/wcpcpy (Depends-on): Add extensions.
4812         * modules/wcpncpy (Depends-on): Likewise.
4813         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4814         systems.
4815         * doc/posix-functions/wcpncpy.texi: Likewise.
4816         * doc/posix-functions/wcwidth.texi: Likewise.
4817
4818 2011-03-31  Eric Blake  <eblake@redhat.com>
4819
4820         nonblocking: fix mingw test failures
4821         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4822         non-blocking flag on regular file.
4823         (get_nonblocking_flag): Set errno on invalid fd.
4824         * tests/test-nonblocking.c (main): Avoid test failure on
4825         directories if fchdir is not active.
4826         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4827
4828 2011-03-31  Bruno Haible  <bruno@clisp.org>
4829
4830         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4831         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4832         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4833         Reported by Simon Josefsson <simon@josefsson.org>.
4834
4835 2011-03-31  Bruno Haible  <bruno@clisp.org>
4836         and Eric Blake  <eblake@redhat.com>
4837
4838         nonblocking: new module
4839         * modules/nonblocking: New module.
4840         * modules/nonblocking-tests: Likewise.
4841         * lib/nonblocking.h: New file.
4842         * lib/nonblocking.c: Likewise.
4843         * tests/test-nonblocking.c: New test.
4844         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4845
4846 2011-03-30  Bruno Haible  <bruno@clisp.org>
4847
4848         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4849         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4850         instead of 'printf' format for GCC >= 4.4.
4851         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4852         (fprintf, printf, vfprintf, vprintf): Declare with
4853         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4854         the system's vfprintf() function.
4855         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4856
4857 2011-03-30  Eric Blake  <eblake@redhat.com>
4858
4859         passfd: fix scoping bug
4860         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4861         before sendmsg/recvmsg.
4862
4863         passfd: standardize coding conventions
4864         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4865         can be learned at compile time.
4866         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4867         ifdefs.
4868         (sendfd, recvfd): Follow gnulib code conventions.
4869
4870         passfd: fix incorrect sendmsg arguments
4871         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4872         incorrect msg_controllen value.
4873         * modules/passfd-tests (Depends-on): Check for alarm.
4874         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4875         Reported by Bastien ROUCARIES.
4876
4877 2011-03-30  Bruno Haible  <bruno@clisp.org>
4878
4879         c-strcasestr: Relicense under LGPLv2+.
4880         * modules/c-strcasestr (License): Change to LGPLv2+.
4881         Requested by Eric Blake, for libvirt.
4882
4883 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4884
4885         * users.txt: Add libidn2.  Fix libtasn1 link.
4886
4887 2011-03-30  Jim Meyering  <meyering@redhat.com>
4888
4889         tests: readlink* ("",... fails with EINVAL on newer kernels
4890         readlink and readlinkat have typically failed with ENOENT for
4891         the invalid, empty file name,  "".  However, with the advent
4892         of linux-2.6.39, they fail with EINVAL.
4893         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4894         when operating on the empty file name.
4895         * tests/test-readlink.h (test_readlink): Likewise.
4896
4897 2011-03-29  Bruno Haible  <bruno@clisp.org>
4898
4899         Relicense some modules under LGPLv2+, for libidn2.
4900         * modules/array-mergesort (License): Change to LGPLv2+.
4901         * modules/c-strcaseeq (License): Likewise.
4902         * modules/striconveh (License): Likewise.
4903         * modules/striconveha (License): Likewise.
4904         * modules/uniconv/base (License): Likewise.
4905         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4906         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4907         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4908         * modules/unictype/base (License): Likewise.
4909         * modules/unictype/bidiclass-of (License): Likewise.
4910         * modules/unictype/category-M (License): Likewise.
4911         * modules/unictype/category-none (License): Likewise.
4912         * modules/unictype/category-of (License): Likewise.
4913         * modules/unictype/category-test (License): Likewise.
4914         * modules/unictype/category-test-withtable (License): Likewise.
4915         * modules/unictype/combining-class (License): Likewise.
4916         * modules/unictype/joiningtype-of (License): Likewise.
4917         * modules/unictype/scripts (License): Likewise.
4918         * modules/uninorm/base (License): Likewise.
4919         * modules/uninorm/canonical-decomposition (License): Likewise.
4920         * modules/uninorm/composition (License): Likewise.
4921         * modules/uninorm/decompose-internal (License): Likewise.
4922         * modules/uninorm/decomposition-table (License): Likewise.
4923         * modules/uninorm/nfc (License): Likewise.
4924         * modules/uninorm/nfd (License): Likewise.
4925         * modules/uninorm/u32-normalize (License): Likewise.
4926         * modules/unistr/base (License): Likewise.
4927         * modules/unistr/u32-cpy (License): Likewise.
4928         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4929         * modules/unistr/u32-to-u8 (License): Likewise.
4930         * modules/unistr/u32-uctomb (License): Likewise.
4931         * modules/unistr/u8-check (License): Likewise.
4932         * modules/unistr/u8-mblen (License): Likewise.
4933         * modules/unistr/u8-mbtouc (License): Likewise.
4934         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4935         * modules/unistr/u8-mbtoucr (License): Likewise.
4936         * modules/unistr/u8-prev (License): Likewise.
4937         * modules/unistr/u8-strlen (License): Likewise.
4938         * modules/unistr/u8-to-u32 (License): Likewise.
4939         * modules/unistr/u8-uctomb (License): Likewise.
4940         * modules/unitypes (License): Likewise.
4941         Requested by Simon Josefsson.
4942
4943 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4944
4945         lib-symbol-visibility: Add a notice.
4946         * modules/lib-symbol-visibility (Notice): New field.
4947
4948 2011-03-29  Bruno Haible  <bruno@clisp.org>
4949
4950         getaddrinfo: Doc fix.
4951         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4952         section "fixed in Gnulib".
4953
4954 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4955
4956         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4957         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4958
4959 2011-03-26  Bruno Haible  <bruno@clisp.org>
4960
4961         unictype/property-byname: Reduce the number of load-time relocations.
4962         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4963         (UC_PROPERTY_INDEX_*): New enumeration values.
4964         (uc_property_byname): Convert an index from the lookup table to an
4965         uc_property_t.
4966         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4967         values.
4968
4969 2011-03-26  Bruno Haible  <bruno@clisp.org>
4970
4971         unictype/property-byname: Allow omitted word separators and aliases.
4972         * lib/unictype/pr_byname.gperf: Add property names without word
4973         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4974         for 'space'.
4975
4976 2011-03-26  Bruno Haible  <bruno@clisp.org>
4977
4978         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4979         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4980         also hyphens to space.
4981         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4982         without spaces.
4983         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4984
4985 2011-03-26  Bruno Haible  <bruno@clisp.org>
4986
4987         unictype/joiningtype-byname: Recognize long names as well.
4988         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4989         a long name.
4990         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4991         unictype/joiningtype_byname.h.
4992         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4993         * lib/unictype/joiningtype_byname.gperf: New file.
4994         * modules/unictype/joiningtype-byname (Files): Add
4995         lib/unictype/joiningtype_byname.gperf.
4996         (Depends-on): Add gperf.
4997         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4998         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4999         long names.
5000
5001         Tests for module 'unictype/joiningtype-longname'.
5002         * modules/unictype/joiningtype-longname-tests: New file.
5003         * tests/unictype/test-joiningtype_longname.c: New file.
5004
5005         New module 'unictype/joiningtype-longname'.
5006         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5007         * lib/unictype/joiningtype_longname.c: New file.
5008         * modules/unictype/joiningtype-longname: New file.
5009         * modules/unictype/joiningtype-all (Depends-on): Add
5010         unictype/joiningtype-longname.
5011
5012 2011-03-26  Bruno Haible  <bruno@clisp.org>
5013
5014         unictype/bidiclass-byname: Recognize long names as well.
5015         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5016         name.
5017         * lib/unictype/bidi_byname.c: Include <string.h>,
5018         unictype/bidi_byname.h.
5019         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5020         * lib/unictype/bidi_byname.gperf: New file.
5021         * modules/unictype/bidiclass-byname (Files): Add
5022         lib/unictype/bidi_byname.gperf.
5023         (Depends-on): Add gperf.
5024         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5025         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5026         long names.
5027
5028         Tests for module 'unictype/bidiclass-longname'.
5029         * modules/unictype/bidiclass-longname-tests: New file.
5030         * tests/unictype/test-bidi_longname.c: New file.
5031
5032         New module 'unictype/bidiclass-longname'.
5033         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5034         * lib/unictype/bidi_longname.c: New file.
5035         * modules/unictype/bidiclass-longname: New file.
5036         * modules/unictype/bidiclass-all (Depends-on): Add
5037         unictype/bidiclass-longname.
5038
5039 2011-03-26  Bruno Haible  <bruno@clisp.org>
5040
5041         unictype/bidi*: Rename modules.
5042         * modules/unictype/bidiclass-all: Renamed from
5043         modules/unictype/bidicategory-all.
5044         * modules/unictype/bidiclass-name: Renamed from
5045         modules/unictype/bidiclass-name.
5046         (Description): Update.
5047         * modules/unictype/bidiclass-name-tests: Renamed from
5048         modules/unictype/bidicategory-name-tests.
5049         * modules/unictype/bidiclass-byname: Renamed from
5050         modules/unictype/bidicategory-byname.
5051         (Description): Update.
5052         * modules/unictype/bidiclass-byname-tests: Renamed from
5053         modules/unictype/bidicategory-byname-tests.
5054         * modules/unictype/bidiclass-of: Renamed from
5055         modules/unictype/bidicategory-of.
5056         (Description): Update.
5057         * modules/unictype/bidiclass-of-tests: Renamed from
5058         modules/unictype/bidicategory-of-tests.
5059         * modules/unictype/bidiclass-test: Renamed from
5060         modules/unictype/bidicategory-test.
5061         (Description): Update.
5062         * modules/unictype/bidiclass-test-tests: Renamed from
5063         modules/unictype/bidicategory-test-tests.
5064         * modules/unictype/bidicategory-all: New file, a simple redirection.
5065         * modules/unictype/bidicategory-name: Likewise.
5066         * modules/unictype/bidicategory-byname: Likewise.
5067         * modules/unictype/bidicategory-of: Likewise.
5068         * modules/unictype/bidicategory-test: Likewise.
5069         * modules/unictype/property-bidi-* (Dependencies): Update.
5070         * lib/unictype/bidi_*.c: Update comment.
5071
5072 2011-03-26  Bruno Haible  <bruno@clisp.org>
5073
5074         unictype/bidi*: Rename functions, part 2.
5075         * modules/unictype/bidicategory-name (configure.ac): Update required
5076         libunistring version.
5077         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5078
5079 2011-03-25  Bruno Haible  <bruno@clisp.org>
5080
5081         New module 'unictype/combining-class-all'.
5082         * modules/unictype/combining-class-all: New file.
5083
5084         Tests for module 'unictype/combining-class-byname'.
5085         * modules/unictype/combining-class-byname-tests: New file.
5086         * tests/unictype/test-combiningclass_byname.c: New file.
5087
5088         New module 'unictype/combining-class-byname'.
5089         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5090         * lib/unictype/combiningclass_byname.c: New file.
5091         * lib/unictype/combiningclass_byname.gperf: New file.
5092         * modules/unictype/combining-class-byname: New file.
5093
5094         Tests for module 'unictype/combining-class-longname'.
5095         * modules/unictype/combining-class-longname-tests: New file.
5096         * tests/unictype/test-combiningclass_longname.c: New file.
5097
5098         New module 'unictype/combining-class-longname'.
5099         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5100         * lib/unictype/combiningclass_longname.c: New file.
5101         * modules/unictype/combining-class-longname: New file.
5102
5103         Tests for module 'unictype/combining-class-name'.
5104         * modules/unictype/combining-class-name-tests: New file.
5105         * tests/unictype/test-combiningclass_name.c: New file.
5106
5107         New module 'unictype/combining-class-name'.
5108         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5109         * lib/unictype/combiningclass_name.c: New file.
5110         * modules/unictype/combining-class-name: New file.
5111
5112 2011-03-25  Bruno Haible  <bruno@clisp.org>
5113
5114         unictype/combining-class: Rename source files.
5115         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5116         of unictype/combining.h.
5117         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5118         Update.
5119         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5120         * modules/unictype/combining-class (Description): Fix.
5121         (Files, Makefile.am): Update.
5122         * tests/unictype/test-combiningclass.c: Renamed from
5123         tests/unictype/test-combining.c.
5124         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5125
5126 2011-03-25  Bruno Haible  <bruno@clisp.org>
5127
5128         unictype: Update list of canonical combining classes.
5129         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5130
5131 2011-03-25  Bruno Haible  <bruno@clisp.org>
5132
5133         unictype/category-byname: Recognize long names as well.
5134         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5135         a long name.
5136         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5137         unictype/categ_byname.h.
5138         (UC_CATEGORY_INDEX_*): New enumeration values.
5139         (uc_general_category_byname): Use uc_general_category_lookup and
5140         convert from index to value.
5141         * lib/unictype/categ_byname.gperf: New file.
5142         * modules/unictype/category-byname (Files): Add
5143         lib/unictype/categ_byname.gperf.
5144         (Depends-on): Add gperf.
5145         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5146         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5147         long names.
5148
5149         Tests for module 'unictype/category-longname'.
5150         * modules/unictype/category-longname-tests: New file.
5151         * tests/unictype/test-categ_longname.c: New file.
5152
5153         New module 'unictype/category-longname'.
5154         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5155         * lib/unictype/categ_longname.c: New file.
5156         * modules/unictype/category-longname: New file.
5157         * modules/unictype/category-all (Depends-on): Add it.
5158
5159 2011-03-25  Bruno Haible  <bruno@clisp.org>
5160
5161         Tests for module 'unictype/category-LC'.
5162         * modules/unictype/category-LC-tests: New file.
5163         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5164
5165         New module 'unictype/category-LC'.
5166         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5167         (UC_CATEGORY_LC): New declaration.
5168         (UC_CASED_LETTER): New macro.
5169         * lib/gen-uni-tables.c (is_category_LC): New function.
5170         (output_categories): Also handle category LC.
5171         (UC_CATEGORY_MASK_LC): New enumeration value.
5172         (general_category_byname): Also handle category LC.
5173         * lib/unictype/categ_LC.c: New file.
5174         * lib/unictype/categ_LC.h: New file, automatically generated.
5175         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5176         category LC.
5177         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5178         * modules/unictype/category-LC: New file.
5179         * modules/unictype/category-byname (Depends-on): Add
5180         unictype/category-LC.
5181         * modules/unictype/category-all (Depends-on): Likewise.
5182
5183 2011-03-25  Eric Blake  <eblake@redhat.com>
5184
5185         xmalloc: revert yesterday's regression
5186         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5187         realloc's underlying behavior (allowing allocation of zero-size
5188         objects, especially if malloc-gnu is also in use).
5189
5190 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5191
5192         maint.mk: add missing version to VC-tag
5193         * top/maint.mk: git tag was missing actual tag name; add it.
5194
5195         valgrind: do leak checking, and exit with code 1 on error (not 0)
5196         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5197         to VALGRIND.
5198
5199 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5200
5201         posix-modules: say what it does.
5202         * posix-modules: Add a line to the --help output saying what it does.
5203
5204 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5205
5206         xmalloc: Do not leak if underlying realloc is C99 compatible.
5207         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5208         This avoids a leak on C99-based systems.  See
5209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5210
5211 2011-03-24  Eric Blake  <eblake@redhat.com>
5212
5213         realloc: document portability problem
5214         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5215         passing 0 size to realloc.
5216
5217 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5218
5219         doc: update users.txt
5220         * users.txt: Add cvsps, tmpwatch
5221
5222 2011-03-23  Matt Rice  <ratmice@gmail.com>
5223
5224         doc: update users.txt
5225         * users.txt: Add gdb.
5226
5227 2011-03-23  Jim Meyering  <meyering@redhat.com>
5228
5229         doc: update users.txt
5230         Looking through matches up to the following URL (there are still
5231         several more pages), I found several projects that use gnulib:
5232         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5233         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5234         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5235
5236 2011-03-22  Bruno Haible  <bruno@clisp.org>
5237
5238         unictype/bidi*: Rename functions.
5239         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5240         uc_bidi_class, uc_is_bidi_class): New declarations.
5241         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5242         uc_bidi_category_byname.
5243         (uc_bidi_category_byname): New function.
5244         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5245         u_bidi_category_name.
5246         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5247         (uc_bidi_category_name): New function.
5248         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5249         uc_bidi_category.
5250         (uc_bidi_category): New function.
5251         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5252         uc_is_bidi_category. Invoke uc_bidi_class.
5253         (uc_is_bidi_category): New function.
5254         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5255         instead of uc_bidi_category_byname.
5256         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5257         instead of uc_bidi_category_name.
5258         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5259         uc_bidi_category.
5260         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5261         instead of uc_is_bidi_category.
5262
5263 2011-03-21  Bruno Haible  <bruno@clisp.org>
5264
5265         New module 'unictype/joininggroup-all'.
5266         * modules/unictype/joininggroup-all: New file.
5267
5268         Tests for module 'unictype/joininggroup-of'.
5269         * modules/unictype/joininggroup-of-tests: New file.
5270         * tests/unictype/test-joininggroup_of.c: New file.
5271         * tests/unictype/test-joininggroup_of.h: New file, automatically
5272         generated by gen-uni-tables.
5273
5274         New module 'unictype/joininggroup-of'.
5275         * modules/unictype/joininggroup-of: New file.
5276         * lib/unictype/joininggroup_of.c: New file.
5277         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5278         gen-uni-tables.
5279
5280         Tests for module 'unictype/joininggroup-byname'.
5281         * modules/unictype/joininggroup-byname-tests: New file.
5282         * tests/unictype/test-joininggroup_byname.c: New file.
5283
5284         New module 'unictype/joininggroup-byname'.
5285         * modules/unictype/joininggroup-byname: New file.
5286         * lib/unictype/joininggroup_byname.c: New file.
5287         * lib/unictype/joininggroup_byname.gperf: New file.
5288
5289         Tests for module 'unictype/joininggroup-name'.
5290         * modules/unictype/joininggroup-name-tests: New file.
5291         * tests/unictype/test-joininggroup_name.c: New file.
5292
5293         New module 'unictype/joininggroup-name'.
5294         * modules/unictype/joininggroup-name: New file.
5295         * lib/unictype/joininggroup_name.c: New file.
5296         * lib/unictype/joininggroup_name.h: New file.
5297
5298         New module 'unictype/joiningtype-all'.
5299         * modules/unictype/joiningtype-all: New file.
5300
5301         Tests for module 'unictype/joiningtype-of'.
5302         * modules/unictype/joiningtype-of-tests: New file.
5303         * tests/unictype/test-joiningtype_of.c: New file.
5304         * tests/unictype/test-joiningtype_of.h: New file, automatically
5305         generated by gen-uni-tables.
5306
5307         New module 'unictype/joiningtype-of'.
5308         * modules/unictype/joiningtype-of: New file.
5309         * lib/unictype/joiningtype_of.c: New file.
5310         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5311         gen-uni-tables.
5312
5313         Tests for module 'unictype/joiningtype-byname'.
5314         * modules/unictype/joiningtype-byname-tests: New file.
5315         * tests/unictype/test-joiningtype_byname.c: New file.
5316
5317         New module 'unictype/joiningtype-byname'.
5318         * modules/unictype/joiningtype-byname: New file.
5319         * lib/unictype/joiningtype_byname.c: New file.
5320
5321         Tests for module 'unictype/joiningtype-name'.
5322         * modules/unictype/joiningtype-name-tests: New file.
5323         * tests/unictype/test-joiningtype_name.c: New file.
5324
5325         New module 'unictype/joiningtype-name'.
5326         * modules/unictype/joiningtype-name: New file.
5327         * lib/unictype/joiningtype_name.c: New file.
5328
5329         unictype: Add support for Arabic shaping properties.
5330         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5331         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5332         declarations.
5333         (UC_JOINING_GROUP_*): New enumeration values.
5334         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5335         declarations.
5336         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5337         (unicode_joining_type): New variable.
5338         (UC_JOINING_GROUP_*): New enumeration values.
5339         (unicode_joining_group): New variable.
5340         (fill_arabicshaping, joining_type_as_c_identifier,
5341         output_joining_type_test, output_joining_type,
5342         joining_group_as_c_identifier, output_joining_group_test,
5343         output_joining_group): New functions.
5344         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5345         fill_arabicshaping and output_joining_type_test, output_joining_type,
5346         output_joining_group_test, output_joining_group.
5347         Reported by Simon Josefsson.
5348
5349 2011-03-21  Jim Meyering  <meyering@redhat.com>
5350
5351         strftime: fix a bug in yesterday's change
5352         * lib/strftime.c (add): Accommodate width's initial value of -1.
5353         Otherwise, nstrftime would copy uninitialized data into
5354         the result buffer.
5355
5356 2011-03-21  Jim Meyering  <meyering@redhat.com>
5357
5358         tests: add strftime-tests module
5359         * tests/test-strftime.c: New file.
5360         * modules/strftime-tests: New module.
5361
5362 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5363
5364         strftime: don't assume a byte count fits in 'int'
5365         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5366         found this problem by static analysis, using gcc -Wstrict-overflow
5367         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5368         on an integer overflow having undefined behavior, but it turns out
5369         that the argument is a size, which might not fit in 'int' anyway,
5370
5371 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         stdio: don't require ignore_value around fwrite
5374
5375         This patch works around libc bug 11959
5376         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5377         Without this patch, applications must often write
5378         ignore_value (fwrite (...)) even though the ignore_value is
5379         not helpful here.  It's common to write many objects, using
5380         fwrite/printf/etc., and then use ferror to detect output error.
5381
5382         I considered making this patch optional, but decided against it,
5383         because libc is obviously being inconsistent here: there is no
5384         reason libc should insist that user code must inspect fwrite
5385         return's value without also insisting that it inspect printf's,
5386         putchar's, etc.  If user code wants to have a strict style where
5387         all these functions' values are checked (so that ferror need not
5388         be checked), we could add support for that style in a new gnulib
5389         module, but in the meantime it's better to be consistent and to
5390         support common usage.
5391
5392         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5393         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5394         that we are compiling in checking mode, and if not C++, and
5395         if not already wrapping fwrite for some other reason.
5396         (fwrite): #define to rpl_fwrite if the latter is defined.
5397
5398 2011-03-20  Bruno Haible  <bruno@clisp.org>
5399
5400         verror: Fix compilation error introduced on 2011-02-13.
5401         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5402         instead of __attribute__.
5403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5404
5405 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5406             Bruno Haible  <bruno@clisp.org>
5407
5408         socklen: do not depend on sys_socket
5409         While trying to modify Emacs to use gnulib's socklen module,
5410         I discovered a circular dependency: socklen depends on sys_socket
5411         and vice versa.  Emacs can use socklen, but it does not need
5412         sys_socket because it has its own substitute for sys/socket.h.
5413         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5414         gl_TYPE_SOCKLEN_T.
5415         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5416         gl_PREREQ_SYS_H_SOCKET.
5417         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5418         gl_PREREQ_SYS_H_SOCKET.
5419         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5420         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5421         * modules/socklen (Depends-on): Do not depend on sys_socket.
5422         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5423
5424 2011-03-20  Jim Meyering  <meyering@redhat.com>
5425
5426         maint.mk: sort file names *after* new transformation
5427         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5428         prefix would have led to an unwarranted failure in GNU parted.
5429         Sort after that transformation.
5430
5431 2011-03-19  Jim Meyering  <meyering@redhat.com>
5432
5433         maint.mk: fix po-file syntax-check rule
5434         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5435         Patch by Bruno Haible.
5436
5437 2011-03-19  Bruno Haible  <bruno@clisp.org>
5438
5439         socklen: Update comment.
5440         * m4/socklen.m4: Update comment about platforms.
5441
5442 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5443             Bruno Haible  <bruno@clisp.org>
5444
5445         inet_ntop, inet_pton: Simplify.
5446         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5447         documented to provide socklen_t and we already depend on sys_socket.
5448         * modules/inet_pton (Depends-on): Likewise.
5449         * lib/arpa_inet.in.h: Adjust comment.
5450
5451 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5452             Bruno Haible  <bruno@clisp.org>
5453
5454         netdb: Simplify.
5455         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5456         documented to provide socklen_t and we already depend on sys_socket.
5457         * lib/netdb.in.h: Adjust comment.
5458
5459 2011-03-19  Bruno Haible  <bruno@clisp.org>
5460
5461         sys_socket, netdb: Document problem with socklen_t.
5462         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5463         platforms.
5464         * doc/posix-headers/netdb.texi: Likewise.
5465
5466 2011-03-18  Eric Blake  <eblake@redhat.com>
5467
5468         maint.mk: let po check work in VPATH build
5469         * top/maint.mk (po_file): Allow cfg.mk override.
5470         (sc_po_check): Allow VPATH use.
5471         Reported by Jiri Denemark.
5472
5473 2011-03-16  Jim Meyering  <meyering@redhat.com>
5474
5475         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5476         Before, you would have had to create one .x-sc_ file per rule in order
5477         to exempt offending files.  Now, you may instead use a Make variable --
5478         usually defined in cfg.mk -- whose name identifies the affected rule.
5479         * top/maint.mk (_sc_excl): Define.
5480         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5481         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5482
5483 2011-03-13  Bruno Haible  <bruno@clisp.org>
5484
5485         ignore-value tests: Avoid warnings.
5486         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5487         empty for gcc < 3.4.
5488
5489 2011-03-13  Bruno Haible  <bruno@clisp.org>
5490
5491         passfd: Fix link error on Solaris.
5492         * modules/passfd (Description): Correct.
5493         (Depends-on): Add socketlib.
5494         (Link): New section.
5495         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5496
5497 2011-03-13  Bruno Haible  <bruno@clisp.org>
5498
5499         passfd: Fix link error on AIX 5.2.
5500         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5501
5502 2011-03-13  Bruno Haible  <bruno@clisp.org>
5503
5504         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5505         * lib/sys_socket.in.h: Include <stddef.h>.
5506         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5507         CMSG_FIRSTHDR. Remove unused variable.
5508
5509 2011-03-13  Bruno Haible  <bruno@clisp.org>
5510
5511         passfd: Fix compilation error on OpenBSD.
5512         * lib/passfd.c: Include <sys/uio.h>.
5513
5514 2011-03-13  Bruno Haible  <bruno@clisp.org>
5515
5516         passfd test: Fix warnings.
5517         * tests/test-passfd.c: Include <sys/wait.h>.
5518         (main): Fix typo.
5519
5520 2011-03-13  Bruno Haible  <bruno@clisp.org>
5521
5522         passfd module, part 4, tweaks.
5523         * tests/test-passfd.c: Reorder includes.
5524         (main): Fix perror and printf calls.
5525
5526 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5527
5528         passfd module, part 4.
5529         * modules/passfd-tests: New file.
5530         * tests/test-passfd.c: New file.
5531
5532 2011-03-13  Jim Meyering  <meyering@redhat.com>
5533
5534         Makefile: rely on GNU make; derive syntax-check rule names
5535         Rather than requiring that each sc_ rule be listed as a dependent
5536         of "check", use features of GNU make to derive the list.
5537         * Makefile (syntax-check-rules): Define.
5538         (check): Depend on the new variable, not the hard-coded list.
5539
5540 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5541             Bruno Haible  <bruno@clisp.org>
5542
5543         passfd module, part 3.
5544         * lib/passfd.h (recvfd): Add a flags argument.
5545         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5546         (recvfd): Add a flags argument.
5547         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5548         exists.
5549         * modules/passfd (Depends-on): Add cloexec.
5550         Suggested by Eric Blake.
5551
5552 2011-03-13  Bruno Haible  <bruno@clisp.org>
5553
5554         passfd module, part 2, tweaks.
5555         * modules/passfd (Files): Reorder.
5556         (Depends-on): Remove errno.
5557         (Include): Remove <sys/socket.h>, <sys/un.h>.
5558         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5559         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5560         specification header. Include <sys/socket.h> always. Don't include
5561         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5562         (sendfd): Clarify that it sets errno when it fails.
5563         (recvfd): Fix specification.
5564
5565 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5566
5567         passfd module, part 2.
5568         * modules/passfd: New file.
5569         * lib/passfd.h: New file.
5570         * lib/passfd.c: New file.
5571
5572 2011-03-12  Bruno Haible  <bruno@clisp.org>
5573
5574         wcswidth, mbswidth: Avoid integer overflow.
5575         * lib/wcswidth.c: Include <limits.h>.
5576         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5577         * lib/mbswidth.c: Include <limits.h>.
5578         (mbsnwidth): Avoid 'int' overflow.
5579         Reported by Jim Meyering.
5580
5581 2011-03-12  Bruno Haible  <bruno@clisp.org>
5582
5583         futimens, utimensat: Avoid endless recursion on Solaris 10.
5584         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5585         Solaris.
5586         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5587         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5588
5589 2011-03-11  Jim Meyering  <meyering@redhat.com>
5590
5591         maint.mk: relax a regexp to accommodate other formatting styles
5592         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5593         between "ngettext" and the following "(".
5594
5595 2011-03-11  Pádraig Brady <P@draigBrady.com>
5596
5597         maint.mk: suppress a false positive warning
5598         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5599         diagnostics are marked with ngettext.
5600
5601 2011-03-10  Eric Blake  <eblake@redhat.com>
5602
5603         wchar: add explicit dependencies, for Tru64
5604         * modules/mbmemcasecoll (Depends-on): Add wchar.
5605         * modules/mbtowc (Depends-on): Likewise.
5606         * modules/vasnprintf (Depends-on): Likewise.
5607         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5608         * modules/wctomb (Depends-on): Likewise.
5609         Reported by Peter O'Gorman.
5610
5611 2011-03-08  Bruno Haible  <bruno@clisp.org>
5612
5613         passfd module, part 1, tweaks.
5614         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5615         Improve indentation. Improve AC_MSG_CHECKING messages.
5616         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5617         gl_SOCKET_FAMILIES.
5618
5619 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5620
5621         passfd module, part 1.
5622         * m4/afunix.m4: New file.
5623         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5624         sockets.
5625
5626 2011-03-08  Bruno Haible  <bruno@clisp.org>
5627
5628         regex-quote: New API.
5629         * lib/regex-quote.h: Include <stdbool.h>.
5630         (struct regex_quote_spec): New type.
5631         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5632         New declarations.
5633         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5634         'const struct regex_quote_spec *' argument.
5635         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5636         (pcre_special): New constant.
5637         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5638         New functions.
5639         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5640         'const struct regex_quote_spec *' argument.
5641         * modules/regex-quote (Depends-on): Add stdbool.
5642         * tests/test-regex-quote.c (check): Update for new API. Add test for
5643         anchored results.
5644         * NEWS: Mention the API change.
5645         Reported by Reuben Thomas and Eric Blake.
5646
5647 2011-03-06  Bruno Haible  <bruno@clisp.org>
5648
5649         regex-quote: Fix creation of POSIX extended regular expressions.
5650         * lib/regex-quote.c (ere_special): Add grouping and alternation
5651         operators.
5652
5653 2011-03-05  Bruno Haible  <bruno@clisp.org>
5654
5655         doc: Improve doc regarding autopoint vs. gnulib.
5656         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5657         disable autopoint while running autoreconf.
5658         Suggested by Ralf Wildenhues.
5659
5660 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5661
5662         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5663         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5664
5665 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5666
5667         parse-duration: remove xalloc.h dependency
5668         * lib/parse-duration.c (parse_period): handle NULL return from
5669         strdup instead of calling xstrdup().
5670         * modules/parse-duration: remove "xalloc" dependency
5671
5672 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5673
5674         bootstrap: honor m4_base when running aclocal
5675         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5676
5677 2011-03-02  Jim Meyering  <meyering@redhat.com>
5678
5679         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5680         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5681         on request from Matt Booth.
5682
5683 2011-03-01  Eric Blake  <eblake@redhat.com>
5684
5685         test-link: work on Hurd
5686         * tests/test-link.h (test_link): Hurd rejects linking directories
5687         with EISDIR instead of the POSIX-mandated EPERM.
5688
5689 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         stdio: simplify by moving files to printf-posix, sigpipe
5692         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5693         since this symbol is needed only if printf is replaced.
5694         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5695         Require gl_ASM_SYMBOL_PREFIX.
5696         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5697         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5698         (Depends-on): Add 'raise'.
5699         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5700         * modules/stdio (Files): Remove lib/stdio-write.c,
5701         m4/asm-underscore.m4.
5702         (Depends-on): Remove 'raise'.
5703
5704         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5705         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5706         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5707         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5708
5709 2011-02-28  Bruno Haible  <bruno@clisp.org>
5710
5711         localcharset: Assume ANSI C behaviour of free().
5712         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5713         calling free().
5714         Suggested by Simon Josefsson <simon@josefsson.org>.
5715
5716 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5717             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5718             Bruno Haible  <bruno@clisp.org>  (tiny change)
5719
5720         On Cygwin, use /proc file system instead of win32 API.
5721         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5722         Win32 file names.
5723         (DllMain): Simplify by removing Cygwin specific code.
5724         (find_shared_library_fullname): Use Linux specific implementation also
5725         for Cygwin.
5726         (get_shared_library_fullname): Update accordingly.
5727         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5728         Win32 file names.
5729         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5730         Cygwin specific code.
5731
5732 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5733             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5734
5735         Fix OpenMP flag detection for various Fortran compilers.
5736         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5737         OpenMP-conditional compilation construct, to force compile
5738         failure with missing OpenMP flag.
5739         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5740
5741 2011-02-25  Eric Blake  <eblake@redhat.com>
5742
5743         strstr: expand test coverage
5744         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5745         compilation.
5746         * tests/test-memmem.c (main): Duplicate tests.
5747         * tests/test-strcasestr.c (main): Likewise.
5748         * tests/test-c-strcasestr.c (main): Likewise.
5749
5750 2011-02-25  Jim Meyering  <meyering@redhat.com>
5751
5752         maint.mk: detect missing-NL-at-EOF, too
5753         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5754         it also detects when a file lacks a newline at EOF.
5755         (require_exactly_one_NL_at_EOF_): Renamed from
5756         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5757         since people may well have .x-sc_... file names tied to the
5758         existing name.  Suggested by Eric Blake.
5759
5760 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5761
5762         dirname: move m4/dos.m4 functionality into lib/dosname.h
5763
5764         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5765         extracts symbols from it, puts them into config.h; but it's much
5766         easier to use the symbols directly.  filename.h already does this,
5767         but it disagrees with dos.m4 in some respects.  This patch
5768         introduces a different include file dosname.h that packages up
5769         dos.m4, and then later we can work on merging filename.h and
5770         dosname.h.  Applications that need only the easy-to-configure
5771         symbols should consider including dosname.h rather than dirname.h.
5772         * NEWS: Mention incompatible changes.
5773         * m4/dos.m4: Remove.
5774         * lib/dosname.h, modules/dosname: New files.
5775         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5776         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5777         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5778         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5779         Include dosname.h, not dirname.h.
5780         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5781         Include dosname.h, for definitions of symbols like ISSLASH
5782         that used to be in config.h.
5783         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5785         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5786         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5787         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5788         * modules/rmdir (Files): Likewise.
5789         * modules/stat (Files): Likewise.
5790         * modules/unlink (Files): Likewise.
5791         * modules/dirname-lgpl (Depends-on): Add dosname.
5792         * modules/lstat (Depends-on): Likewise.
5793         * modules/openat (Depends-on): Likewise.
5794         * modules/rmdir (Depends-on): Likewise.
5795         * modules/savewd (Depends-on): Likewise.
5796         * modules/stat (Depends-on): Likewise.
5797         * modules/unlink (Depends-on): Likewise.
5798         * modules/openat (Depends-on): Remove dirname-lgpl.
5799         * modules/savewd (Depends-on): Likewise.
5800         * tests/test-dirname.c: Do not use removed symbols like
5801         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5802         the remaining symbols, e.g., ISSLASH ('\\').
5803
5804 2011-02-25  Eric Blake  <eblake@redhat.com>
5805
5806         strstr: revert patches that introduced bug and pessimization
5807         * lib/str-two-way.h: Add another reference.
5808         (two_way_short_needle, two_way_long_needle): Revert changes from
5809         2011-02-24; they pessimize search speed.
5810         (critical_factorization): Partially revert changes from
5811         2010-06-22; they violate the requirement that the left half of the
5812         needle be smaller than the period of the needle.
5813
5814 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5815
5816         filenamecat: remove unnecessary dependency on dirname-lgpl
5817         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5818         is no direct dependency, just an indirect one via filenamecat-lgpl.
5819
5820         remove: remove unnecessary use of m4/dos.m4
5821         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5822         * modules/remove (FILES): Remove m4/dos.m4.
5823
5824         * lib/openat-proc.c: Don't include dirname.h; not needed.
5825
5826         backupfile: remove unnecessary use of m4/dos.m4
5827         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5828         of its symbols are used by the backupfile code.  backupfile.c does
5829         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5830         for the rare case of programs that want all their backup file
5831         names to live within 8+3 limits, and dos.m4 doesn't address that.
5832         * modules/backupfile (Files): Remove m4/dos.m4.
5833
5834 2011-02-24  Jim Meyering  <meyering@redhat.com>
5835
5836         strstr: fix a bug whereby strstr would mistakenly return NULL
5837         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5838         in period calculation.
5839         (two_way_long_needle): Likewise.
5840         The original problem was reported by Mike Stump in
5841         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5842         Ralf Wildenhues provided the short needle and haystack.
5843         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5844         Add a more involved test to trigger the bug in two_way_long_needle.
5845
5846 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5847
5848         gnulib-tool: remove use of bold display in help screen
5849         * gnulib-tool (func_usage): Do not use bold display anymore in the
5850         help screen.  That was just meant to be a temporary emphasis for a
5851         backward-incompatible change.
5852
5853 2011-02-23  Bruno Haible  <bruno@clisp.org>
5854
5855         Fix misindentation of preprocessor directives.
5856         * lib/argp-namefrob.h: Reindent preprocessor directives.
5857         * lib/getopt_int.h (struct _getopt_data): Likewise.
5858         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5859         * lib/vasnprintf.c (decode_long_double): Likewise.
5860         * tests/test-argmatch.c: Insert blank lines, for clarity.
5861         * tests/test-exclude.c: Likewise.
5862
5863 2011-02-22  Bruno Haible  <bruno@clisp.org>
5864
5865         ioctl: Fix for MacOS X in 64-bit mode.
5866         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5867         value.
5868         Suggested by Eric Blake.
5869         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5870
5871 2011-02-22  Jim Meyering  <meyering@redhat.com>
5872
5873         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5874         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5875         in lib/.
5876
5877 2011-02-22  Eric Blake  <eblake@redhat.com>
5878
5879         maint: avoid any CDPATH issue
5880         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5881
5882         maint: adjust cpp indentation for my modules, as well
5883         * Makefile (sc_cpp_indent_check): Add my name.
5884         * lib/fbufmode.c: Filter through cppi.
5885         * lib/fpurge.c: Likewise.
5886         * lib/freadable.c: Likewise.
5887         * lib/freading.c: Likewise.
5888         * lib/fwritable.c: Likewise.
5889         * lib/fwriting.c: Likewise.
5890         * lib/sigaction.c: Likewise.
5891
5892 2011-02-22  Jim Meyering  <meyering@redhat.com>
5893
5894         maint: adjust cpp indentation to reflect nesting depth
5895         I.e., in a block of code that begins with an unnested "#if",
5896         put one space between the "#" in column 1 and following token.
5897         For example,
5898         -#include <sys/vfs.h>
5899         +# include <sys/vfs.h>
5900         Do this only in .c files that are part of a module I maintain.
5901         * lib/linkat.c: Filter through cppi.
5902         * lib/nanosleep.c: Likewise.
5903         * lib/openat.c: Likewise.
5904         * lib/openat-die.c: Likewise.
5905         * lib/dup3.c: Likewise.
5906         * lib/fchownat.c: Likewise.
5907         * lib/flock.c: Likewise.
5908         * lib/fsync.c: Likewise.
5909         * lib/fts.c: Likewise.
5910         * lib/getpass.c: Likewise.
5911         * lib/gettimeofday.c: Likewise.
5912         * lib/userspec.c: Likewise.
5913         * Makefile (sc_cpp_indent_check): New rule, to check this.
5914
5915 2011-02-22  Bruno Haible  <bruno@clisp.org>
5916
5917         New module 'wctomb'.
5918         * lib/stdlib.in.h (wctomb): New declaration.
5919         * lib/wctomb.c: New file.
5920         * lib/wctomb-impl.h: New file.
5921         * m4/wctomb.m4: New file.
5922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5923         REPLACE_WCTOMB.
5924         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5925         REPLACE_WCTOMB.
5926         * modules/wctomb: New file.
5927         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5928         * doc/posix-functions/wctomb.texi: Mention the new module.
5929         * modules/wctob (Depends-on): Add wctomb.
5930
5931 2011-02-22  Bruno Haible  <bruno@clisp.org>
5932
5933         New module 'mbtowc'.
5934         * lib/stdlib.in.h (mbtowc): New declaration.
5935         * lib/mbtowc.c: New file.
5936         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5937         * m4/mbtowc.m4: New file.
5938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5939         REPLACE_MBTOWC.
5940         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5941         REPLACE_MBTOWC.
5942         * modules/mbtowc: New file.
5943         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5944         * doc/posix-functions/mbtowc.texi: Mention the new module.
5945         * modules/btowc (Depends-on): Add mbtowc.
5946
5947 2011-02-22  Bruno Haible  <bruno@clisp.org>
5948
5949         wcrtomb: Add more tests for native Windows platforms.
5950         * tests/test-wcrtomb-w32-1.sh: New file.
5951         * tests/test-wcrtomb-w32-2.sh: New file.
5952         * tests/test-wcrtomb-w32-3.sh: New file.
5953         * tests/test-wcrtomb-w32-4.sh: New file.
5954         * tests/test-wcrtomb-w32-5.sh: New file.
5955         * tests/test-wcrtomb-w32.c: New file.
5956         * modules/wcrtomb-tests (Files): Add them.
5957         (Makefile.am): Arrange to run these tests.
5958         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5959         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5960
5961 2011-02-20  Bruno Haible  <bruno@clisp.org>
5962
5963         wcrtomb: Enhance test.
5964         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5965
5966 2011-02-20  Bruno Haible  <bruno@clisp.org>
5967
5968         mbrtowc: Tiny optimization.
5969         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5970
5971 2011-02-20  Jim Meyering  <meyering@redhat.com>
5972
5973         test-exclude.c: remove unmatched #endif
5974         * tests/test-exclude.c: Remove stray #endif, left over from
5975         the change of a week ago.
5976
5977 2011-02-19  Jim Meyering  <meyering@redhat.com>
5978
5979         git-version-gen: skip "-dirty" check when appropriate
5980         * build-aux/git-version-gen: Don't run any git commands when the
5981         version string comes from .tarball-version.  Prior to this, we
5982         would run git update-index --refresh even from a just-unpacked
5983         tarball directory, and that could affect a .git/ directory in a
5984         parent of the build directory.  Reported by Mike Frysinger.
5985
5986 2011-02-19  Bruno Haible  <bruno@clisp.org>
5987
5988         unictype/property-byname: Reduce the size of the 'data' segment.
5989         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5990
5991 2011-02-19  Bruno Haible  <bruno@clisp.org>
5992
5993         unictype/scripts: Reduce the size of the 'data' segment.
5994         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5995         '%pic'.
5996         * lib/unictype/scripts_byname.gperf: Regenerated.
5997
5998 2011-02-19  Bruno Haible  <bruno@clisp.org>
5999
6000         stdint: Update documentation.
6001         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6002
6003 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6004
6005         stdint: omit redundant check for wchar.h
6006         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6007         always tests whether wchar.h exists, so remove the now-redundant test.
6008
6009 2011-02-18  Bruno Haible  <bruno@clisp.org>
6010
6011         stdint: Cut dependency to module 'wchar'.
6012         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6013         include the necessary prerequisites.
6014         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6015         * modules/stdint (Depends-on): Remove wchar.
6016         (Makefile.am): Substitute HAVE_WCHAR_H.
6017         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6018
6019 2011-02-18  Eric Blake  <eblake@redhat.com>
6020
6021         longlong: skip, rather than fail, on cross-compilation
6022         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6023         when cross-compiling; regression from 2011-02-16.
6024
6025 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         * NEWS: Mention 2011-02-08 change to stdlib.
6028
6029 2011-02-17  Bruno Haible  <bruno@clisp.org>
6030
6031         getloadavg: Add comments about platforms.
6032         * m4/getloadavg.m4: Add comment.
6033         * lib/getloadavg.c: Likewise.
6034
6035 2011-02-17  Bruno Haible  <bruno@clisp.org>
6036
6037         getloadavg: Fix link error on Solaris 2.6.
6038         * modules/getloadavg (Link): New section.
6039         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6040         linking test-getloadavg.
6041         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6042         getloadavg.
6043
6044 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6045
6046         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6047         It was 'int', but this doesn't match the IRIX 6.5 manual.
6048         Suggested by Bruno Haible in
6049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6050
6051 2011-02-17  Bruno Haible  <bruno@clisp.org>
6052
6053         havelib: Fix comments.
6054         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6055         change.
6056
6057 2011-02-17  Bruno Haible  <bruno@clisp.org>
6058
6059         havelib: Update config.rpath.
6060         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6061
6062 2011-02-17  Bruno Haible  <bruno@clisp.org>
6063
6064         getloadavg test: Add some plausibility checks.
6065         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6066         is improbable.
6067
6068 2011-02-16  Eric Blake  <eblake@redhat.com>
6069
6070         maintainer-makefile: make syntax-check a no-op from tarballs
6071         * top/maint.mk (no-vc-detected): New rule.
6072         (local-checks-available): Use it to avoid hanging if someone tries
6073         'make syntax-check' from a tarball.  Also append to any non-syntax
6074         checks already defined in cfg.mk.
6075
6076 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6077
6078         longlong: tune, particularly for common case of c99
6079
6080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6081         or running anything if c99, or if unsigned long long int does not
6082         work.  In either case, we know the answer without further tests.
6083         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6084         it at most once, and use its results for both long long int and
6085         unsigned long long int.  This is more likely to be efficient in
6086         the common case where the program wants to check for both long
6087         long int and unsigned long long int.
6088         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6089         since the answer is already known.
6090
6091 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6092
6093         getloadavg: set errno
6094         * lib/getloadavg.c: Set errno when returning -1.  If no other
6095         error number looks appropriate, set it to ENOSYS if the getloadavg
6096         looks like it can't possibly ever work, ENOTSUP otherwise.
6097         Suggested by Bruno Haible in
6098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6099
6100         getloadavg: trim unused parts and speed up 'configure'
6101         * NEWS: Document this.
6102         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6103         always compiled if getloadavg is absent.
6104         Move test code to ...
6105         * tests/test-getloadavg.c: New file, containing previous
6106         contents of test from lib/getloadavg.c.  It also contains
6107         suggestions by Bruno Haible in
6108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6109         * modules/getloadavg-tests: New file.
6110         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6111         Do tests in the same order as they're needed for getloadavg.c.
6112         Omit setgid-related tests that generate symbols KMEM_GROUP,
6113         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6114         Do only the tests that are needed to see whether the system has
6115         getloadavg, moving the other tests into ...
6116         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6117         NLIST_NAME_UNION; nobody should be using it.  Do not define
6118         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6119         relevant, as the user of this module shouldn't care how getloadavg
6120         is implemented.
6121
6122         getloadavg: omit unused var
6123         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6124
6125 2011-02-15  Jim Meyering  <meyering@redhat.com>
6126
6127         doc: update users.txt
6128         * users.txt: Update iwhd's URL.
6129
6130 2011-02-13  Bruno Haible  <bruno@clisp.org>
6131
6132         Consistent macro naming for macros that use GCC __attribute__.
6133         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6134         _ATTRIBUTE_NONNULL_.
6135         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6136         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6137         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6138         ATTRIBUTE_DEPRECATED.
6139         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6140         ATTRIBUTE_NORETURN.
6141         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6142         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6143         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6144         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6145         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6146         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6147         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6148         ATTRIBUTE_SENTINEL.
6149         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6150         ATTRIBUTE_RETURN_CHECK.
6151         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6152         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6153         ATTRIBUTE_NORETURN.
6154         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6155         Reported by Paul Eggert.
6156
6157 2011-02-13  Bruno Haible  <bruno@clisp.org>
6158
6159         Don't interfere with a program's definition of __attribute__.
6160         * lib/argp.h (__attribute__): Remove definition.
6161         (_GL_ATTRIBUTE_FORMAT): New macro.
6162         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6163         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6164         (_GL_ATTRIBUTE_FORMAT): New macro.
6165         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6166         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6167         GCC 3 or newer.
6168         * lib/error.h (__attribute__): Remove definition.
6169         (_GL_ATTRIBUTE_FORMAT): New macro.
6170         (error, error_at_line): Use it.
6171         * lib/hash.h (__attribute__): Remove definition.
6172         (ATTRIBUTE_WUR): Update definition. Define always.
6173         * lib/openat.h (__attribute__): Remove definition.
6174         (ATTRIBUTE_NORETURN): Update definition. Define always.
6175         * lib/sigpipe-die.h (__attribute__): Remove definition.
6176         (ATTRIBUTE_NORETURN): Update definition. Define always.
6177         * lib/vasnprintf.h (__attribute__): Remove definition.
6178         (_GL_ATTRIBUTE_FORMAT): New macro.
6179         (asnprintf, vasnprintf): Use it.
6180         * lib/xalloc.h (__attribute__): Remove definition.
6181         (ATTRIBUTE_NORETURN): Update definition. Define always.
6182         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6183         * lib/xmemdup0.h (__attribute__): Remove definition.
6184         (ATTRIBUTE_NORETURN): Update definition. Define always.
6185         * lib/xprintf.h (__attribute__): Remove definition.
6186         (_GL_ATTRIBUTE_FORMAT): New macro.
6187         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6188         * lib/xstrtol.h (__attribute__): Remove definition.
6189         (ATTRIBUTE_NORETURN): Update definition. Define always.
6190         * lib/xvasprintf.h (__attribute__): Remove definition.
6191         (_GL_ATTRIBUTE_FORMAT): New macro.
6192         (xasprintf, xvasprintf): Use it.
6193         * tests/test-argmatch.c (__attribute__): Remove definition.
6194         (ATTRIBUTE_NORETURN): Update definition. Define always.
6195         * tests/test-exclude.c (__attribute__): Remove definition.
6196         (ATTRIBUTE_NORETURN): Update definition. Define always.
6197         Reported by Paul Eggert.
6198
6199 2011-02-13  Bruno Haible  <bruno@clisp.org>
6200
6201         mbrtowc: Add more tests for native Windows platforms.
6202         * tests/test-mbrtowc-w32-1.sh: New file.
6203         * tests/test-mbrtowc-w32-2.sh: New file.
6204         * tests/test-mbrtowc-w32-3.sh: New file.
6205         * tests/test-mbrtowc-w32-4.sh: New file.
6206         * tests/test-mbrtowc-w32-5.sh: New file.
6207         * tests/test-mbrtowc-w32.c: New file.
6208         * modules/mbrtowc-tests (Files): Add them.
6209         (Makefile.am): Arrange to run these tests.
6210         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6211         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6212
6213 2011-02-13  Bruno Haible  <bruno@clisp.org>
6214
6215         mbrtowc: Work around native Windows bug.
6216         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6217         guess when no suitable locale for testing was found.
6218         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6219
6220 2011-02-13  Bruno Haible  <bruno@clisp.org>
6221
6222         mbsinit: Work around mingw bug.
6223         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6224         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6225         Windows.
6226         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6227
6228 2011-02-13  Bruno Haible  <bruno@clisp.org>
6229
6230         mbsinit: Don't crash for a NULL argument.
6231         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6232         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6233
6234 2011-02-13  Bruno Haible  <bruno@clisp.org>
6235
6236         Don't interfere with a program's definition of __attribute__.
6237         * lib/stdio.in.h (__attribute__): Remove definition.
6238         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6239         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6240         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6241         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6242         * lib/string.in.h (__attribute__): Remove definition.
6243         Reported by Paul Eggert.
6244
6245 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6246
6247         stdlib: don't get in the way of non-GCC __attribute__
6248         See thread starting at
6249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6250         Revert previous stdlib change, installing the following instead:
6251         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6252         to get in the way of a non-GCC compiler that supports __attribute__.
6253         (_GL_ATTRIBUTE_RETURN): New macro.
6254         (_Exit): Use it instead of __attribute__.
6255
6256 2011-02-12  Bruno Haible  <bruno@clisp.org>
6257
6258         quotearg test: Avoid test failure on mingw.
6259         * tests/test-quotearg.sh: Convert the locale identifier from native
6260         Windows syntax to Unix syntax.
6261
6262 2011-02-12  Bruno Haible  <bruno@clisp.org>
6263
6264         setlocale: Prefer gnulib's override over libintl's override.
6265         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6266         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6267         GNULIB_defined_setlocale is set.
6268
6269 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6270
6271         stdlib: support non-GCC __attribute__
6272
6273         Fix a serious and tricky problem encountered when attempting to
6274         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6275         5.5, but it crashed due to memory corruption on Solaris 10 with
6276         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6277         bits that are otherwise zero.  This tagging is optional inside
6278         Emacs but is preferred and is used when __attribute__ ((__aligned
6279         (8))) works, as it does with both recent-enough GCC and with Sun C
6280         5.11.  However, Sun C 5.11 is not GCC and does not #define
6281         __GNUC__ and __GNUC_MINOR__.
6282
6283         When I added the getloadavg module to Emacs, it brought in
6284         stdlib.in.h, which contained this fragment:
6285
6286            #ifndef __attribute__
6287            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6288            #  define __attribute__(Spec)   /* empty */
6289            # endif
6290            #endif
6291
6292         When files that include <stdlib.h> were compiled with Sun C 5.11,
6293         the above code disabled __attribute__ ((__aligned (8))), which
6294         caused variables to not be properly aligned, which eventually led
6295         to the pointer corruption mentioned above.  (This was a bit hard
6296         to diagnose, unfortunately.)
6297
6298         Several "#define __attribute__(X) /* empty */" code snippets need
6299         to be eradicated from Gnulib to work with non-GCC compilers that
6300         support __attribute__.  The Autoconf way to do this is to test for
6301         each kind of attribute that we want support for, and selectively
6302         enable that in source code.
6303
6304         Fix this problem just for stdlib.h, by adding a test for the
6305         __noreturn__ attribute, and change stdlib.in.h to use that test
6306         when needed.  This technique can be easily generalized to the
6307         other *.in.h files and attributes, and a similar technique can be
6308         used for *.h and *.c files.  This patch is enough to solve the
6309         problem for Emacs + getloadavg, and I thought I'd publish it for
6310         feedback before undertaking further, similar fixes in other
6311         modules.
6312
6313         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6314         because it's not needed for stdlib.h.  It merely substitutes the
6315         value directly into stdlib.h.  We may well need to #define it, or
6316         similar symbols, for other modules, but it's nice to also have an
6317         option to not #define it for applications like Emacs that do not
6318         need it.
6319
6320         * lib/stdlib.in.h (__attribute__): Do not #define.
6321         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6322         be defined only if the _Exit module is also used.
6323         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6325         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6326         platforms.
6327         * modules/_Exit (Files): Add m4/attribute.m4.
6328         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6329         * m4/attribute.m4: New file.
6330
6331 2011-02-12  Bruno Haible  <bruno@clisp.org>
6332
6333         wcsrtombs: Work around bug on native Windows.
6334         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6335         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6336         instead of len.
6337         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6338
6339 2011-02-12  Bruno Haible  <bruno@clisp.org>
6340
6341         mbsrtowcs: Work around bug on native Windows.
6342         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6343         against mingw bug.
6344         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6345
6346 2011-02-12  Bruno Haible  <bruno@clisp.org>
6347
6348         Avoid setlocale bugs in tests.
6349         * modules/btowc (Dependencies): Add setlocale.
6350         * modules/c-strcase (Dependencies): Likewise.
6351         * modules/mbmemcasecmp (Dependencies): Likewise.
6352         * modules/mbmemcasecoll (Dependencies): Likewise.
6353         * modules/mbrtowc (Dependencies): Likewise.
6354         * modules/mbscasecmp (Dependencies): Likewise.
6355         * modules/mbscasestr (Dependencies): Likewise.
6356         * modules/mbschr (Dependencies): Likewise.
6357         * modules/mbscspn (Dependencies): Likewise.
6358         * modules/mbsinit (Dependencies): Likewise.
6359         * modules/mbsncasecmp (Dependencies): Likewise.
6360         * modules/mbsnrtowcs (Dependencies): Likewise.
6361         * modules/mbspbrk (Dependencies): Likewise.
6362         * modules/mbspcasecmp (Dependencies): Likewise.
6363         * modules/mbsrchr (Dependencies): Likewise.
6364         * modules/mbsrtowcs (Dependencies): Likewise.
6365         * modules/mbsspn (Dependencies): Likewise.
6366         * modules/mbsstr (Dependencies): Likewise.
6367         * modules/nl_langinfo (Dependencies): Likewise.
6368         * modules/quotearg (Dependencies): Likewise.
6369         * modules/unicase/locale-language (Dependencies): Likewise.
6370         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6371         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6372         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6373         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6374         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6375         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6376         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6377         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6378         * modules/vasnprintf-posix (Dependencies): Likewise.
6379         * modules/wcrtomb (Dependencies): Likewise.
6380         * modules/wcsnrtombs (Dependencies): Likewise.
6381         * modules/wcsrtombs (Dependencies): Likewise.
6382
6383 2011-02-12  Bruno Haible  <bruno@clisp.org>
6384
6385         setlocale: Workaround native Windows bug.
6386         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6387         succeeds but sets LC_CTYPE to "C", report a failure.
6388         * tests/test-setlocale2.sh: New file.
6389         * tests/test-setlocale2.c: New file.
6390         * modules/setlocale-tests (Files): Add the new files.
6391         (Makefile.am): Enable test-setlocale2.sh test.
6392         * doc/posix-functions/setlocale.texi: Mention workaround.
6393
6394 2011-02-11  Bruno Haible  <bruno@clisp.org>
6395
6396         Tests for module 'setlocale'.
6397         * modules/setlocale-tests: New file.
6398         * tests/test-setlocale1.sh: New file.
6399         * tests/test-setlocale1.c: New file.
6400
6401         New module 'setlocale'.
6402         * lib/locale.in.h (setlocale): New declaration.
6403         * lib/setlocale.c: New file, based on
6404         gettext/gettext-runtime/intl/setlocale.c.
6405         * m4/setlocale.m4: New file.
6406         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6407         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6408         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6409         REPLACE_SETLOCALE.
6410         * modules/setlocale: New file.
6411         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6412         * doc/posix-functions/setlocale.texi: Mention the new module.
6413
6414 2011-02-11  Bruno Haible  <bruno@clisp.org>
6415
6416         Prepare for locale dependent tests on mingw.
6417         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6418         because it has the wrong locale encoding.
6419         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6420         French_France.1252 instead of "fr".
6421         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6422         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6423         because it has the wrong locale encoding.
6424         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6425         native Windows, try Turkish_Turkey.65001.
6426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6427         Chinese_China.54936.
6428
6429         Prepare for locale dependent tests on mingw.
6430         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6431         differently.
6432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6433         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6436
6437 2011-02-11  Eric Blake  <eblake@redhat.com>
6438
6439         strptime: avoid compiler warnings
6440         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6441         compiler warnings about dead code.
6442         Reported by Daniel P. Berrange.
6443
6444 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6445
6446         doc: update users.txt
6447         * users.txt: Add rcs.
6448
6449 2011-02-10  John W. Eaton  <jwe@gnu.org>
6450
6451         doc: update users.txt
6452         * users.txt: Add octave.
6453
6454 2011-02-10  Jim Meyering  <meyering@redhat.com>
6455
6456         doc: update users.txt
6457         * users.txt: Add iwhd.
6458
6459 2011-02-09  Bruno Haible  <bruno@clisp.org>
6460
6461         gnulib-tool: Make copyright notice adjustment more robust.
6462         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6463         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6464         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6465         License".
6466         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6467
6468 2011-02-06  Bruno Haible  <bruno@clisp.org>
6469
6470         New module 'towctrans'.
6471         * modules/towctrans: New file.
6472         * lib/wctype.in.h (towctrans): New declaration.
6473         * lib/towctrans.c: New file.
6474         * lib/towctrans-impl.h: New file.
6475         * m4/towctrans.m4: New file.
6476         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6477         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6478         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6479         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6480         * doc/posix-functions/towctrans.texi: Mention the new module.
6481
6482 2011-02-06  Bruno Haible  <bruno@clisp.org>
6483
6484         New module 'wctrans'.
6485         * modules/wctrans: New file.
6486         * lib/wctype.in.h (wctrans): New declaration.
6487         * lib/wctrans.c: New file.
6488         * lib/wctrans-impl.h: New file.
6489         * m4/wctrans.m4: New file.
6490         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6491         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6492         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6493         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6494         * doc/posix-functions/wctrans.texi: Mention the new module.
6495
6496 2011-02-06  Bruno Haible  <bruno@clisp.org>
6497
6498         New module 'iswctype'.
6499         * modules/iswctype: New file.
6500         * lib/wctype.in.h (iswctype): New declaration.
6501         * lib/iswctype.c: New file.
6502         * lib/iswctype-impl.h: New file.
6503         * m4/iswctype.m4: New file.
6504         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6505         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6506         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6507         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6508         * doc/posix-functions/iswctype.texi: Mention the new module and the
6509         HP-UX 11.00 problem.
6510
6511 2011-02-06  Bruno Haible  <bruno@clisp.org>
6512
6513         New module 'wctype'.
6514         * modules/wctype: Change to represent the wctype() substitute.
6515         * lib/wctype.in.h (wctype): New declaration.
6516         * lib/wctype.c: New file.
6517         * lib/wctype-impl.h: New file.
6518         * m4/wctype.m4: New file.
6519         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6520         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6521         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6522         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6523         * doc/posix-functions/wctype.texi: Mention the new module and the
6524         HP-UX 11.00 problem.
6525
6526 2011-02-06  Bruno Haible  <bruno@clisp.org>
6527
6528         wctype-h: Ensure wctype_t and wctrans_t are defined.
6529         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6530         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6531         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6532         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6533         HAVE_WCTRANS_T.
6534         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6535
6536 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6537
6538         flock: fix license typo
6539
6540         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6541         omitted.
6542
6543 2011-02-08  Bruno Haible  <bruno@clisp.org>
6544
6545         Split large sed scripts, for HP-UX sed.
6546         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6547         to avoid HP-UX limit of 99 commands, in the near future.
6548         * modules/stdlib (Makefile.am): Likewise.
6549         * modules/unistd (Makefile.am): Likewise.
6550         * modules/wchar (Makefile.am): Likewise.
6551         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6552         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6553         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6554
6555 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6556             Bruno Haible  <bruno@clisp.org>
6557
6558         stdlib: improve random_r modularization
6559         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6560         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6561         you also need the random_r module to get this material right.
6562         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6563         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6564         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6565
6566 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6567
6568         stdlib: don't depend on stdint
6569         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6570         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6571         be independent of whether stdint.h is needed.
6572         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6573         here, instead of ...
6574         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6575         struct random_data should be using the random_r module, not just
6576         the stdlib module (which wouldn't make sense: what package needs
6577         just struct random_data without also needing random_r?).
6578         * modules/stdlib (Depends-on): Remove stdint.
6579
6580         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6581         See the thread rooted at
6582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6583         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6584         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6585         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6586         __VMS)); previously it was always included (via fcntl--.h).
6587         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6588         hand; this is good enough for load averages.  Also, do not use
6589         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6590         flags directly if available and don't bother otherwise.  (Packages
6591         that need the extra reliability should use the modules that define
6592         these flags on older platforms that lack them.)
6593         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6594         fcntl-safer.
6595
6596 2011-02-08  Jim Meyering  <meyering@redhat.com>
6597
6598         di-set.h, ino-map.h: add multiple-inclusion guard
6599         Technically, the guard is required only for ino-map.h, due to its
6600         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6601         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6602         * lib/ino-map.h: Likewise.
6603
6604 2011-02-06  Bruno Haible  <bruno@clisp.org>
6605
6606         iswblank: Ensure declaration on glibc systems.
6607         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6608         * modules/iswblank (Dependencies): Add 'extensions'.
6609         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6610
6611 2011-02-06  Bruno Haible  <bruno@clisp.org>
6612
6613         New module 'iswblank'.
6614         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6615         * modules/iswblank: New file.
6616         * modules/wctype-h (Files): Remove lib/iswblank.c.
6617         (Makefile.am): Substitute GNULIB_ISWBLANK.
6618         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6619         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6620         (gl_WCTYPE_H_DEFAULTS): New macro.
6621         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6622         * modules/iswblank-tests: New file.
6623         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6624         * tests/test-wctype-h.c (main): Remove iswblank tests.
6625         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6626         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6627         of 'wctype-h'.
6628         * NEWS: Mention the change.
6629         * modules/mbchar (Depends-on): Add iswblank.
6630
6631 2011-02-08  Bruno Haible  <bruno@clisp.org>
6632
6633         di-set tests: Refactor.
6634         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6635         unnecessary includes.
6636         (ASSERT): Remove macro.
6637         (main): Make C90 compliant by avoiding variable declaration after
6638         statement.
6639         * modules/di-set-tests (Files): Add tests/macros.h.
6640
6641 2011-02-08  Bruno Haible  <bruno@clisp.org>
6642
6643         ino-map tests: Refactor.
6644         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6645         unnecessary includes.
6646         (ASSERT): Remove macro.
6647         (main): Make C90 compliant by avoiding variable declaration after
6648         statement.
6649         * modules/ino-map-tests (Files): Add tests/macros.h.
6650
6651 2011-02-08  Jim Meyering  <meyering@redhat.com>
6652
6653         di-set: add "const" to a cast
6654         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6655         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6656
6657 2011-02-06  Bruno Haible  <bruno@clisp.org>
6658
6659         Rename module 'wctype' to 'wctype-h'.
6660         * modules/wctype-h: Renamed from modules/wctype.
6661         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6662         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6663         (Files, Depends-on, Makefile.am): Update.
6664         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6665         (Files, Makefile.am): Update.
6666         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6667         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6668         * doc/posix-headers/wctype.texi: Update.
6669         * doc/posix-functions/iswalnum.texi: Update.
6670         * doc/posix-functions/iswalpha.texi: Update.
6671         * doc/posix-functions/iswblank.texi: Update.
6672         * doc/posix-functions/iswcntrl.texi: Update.
6673         * doc/posix-functions/iswdigit.texi: Update.
6674         * doc/posix-functions/iswgraph.texi: Update.
6675         * doc/posix-functions/iswlower.texi: Update.
6676         * doc/posix-functions/iswprint.texi: Update.
6677         * doc/posix-functions/iswpunct.texi: Update.
6678         * doc/posix-functions/iswspace.texi: Update.
6679         * doc/posix-functions/iswupper.texi: Update.
6680         * doc/posix-functions/iswxdigit.texi: Update.
6681         * doc/posix-functions/towlower.texi: Update.
6682         * doc/posix-functions/towupper.texi: Update.
6683         * NEWS: Mention the change.
6684         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6685         * modules/mbchar (Dependencies): Likewise.
6686         * modules/mbswidth (Dependencies): Likewise.
6687         * modules/quotearg (Dependencies): Likewise.
6688         * modules/regex (Dependencies): Likewise.
6689         * modules/wcscasecmp (Dependencies): Likewise.
6690         * modules/wcsncasecmp (Dependencies): Likewise.
6691         * modules/wcwidth (Dependencies): Likewise.
6692
6693 2011-02-06  Bruno Haible  <bruno@clisp.org>
6694
6695         New module 'wcswidth'.
6696         * modules/wcswidth: New file.
6697         * lib/wchar.in.h (wcswidth): New declaration.
6698         * lib/wcswidth.c: New file.
6699         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6700         * m4/wcswidth.m4: New file.
6701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6703         REPLACE_WCSWIDTH.
6704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6705         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6706         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6707         * doc/posix-functions/wcswidth.texi: Mention the new module.
6708
6709 2011-02-06  Bruno Haible  <bruno@clisp.org>
6710
6711         New module 'wcstok'.
6712         * modules/wcstok: New file.
6713         * lib/wchar.in.h (wcstok): New declaration.
6714         * lib/wcstok.c: New file.
6715         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6716         * m4/wcstok.m4: New file.
6717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6720         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6721         * doc/posix-functions/wcstok.texi: Mention the new module.
6722
6723 2011-02-06  Bruno Haible  <bruno@clisp.org>
6724
6725         New module 'wcsstr'.
6726         * modules/wcsstr: New file.
6727         * lib/wchar.in.h (wcsstr): New declaration.
6728         * lib/wcsstr.c: New file.
6729         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6730         * m4/wcsstr.m4: New file.
6731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6734         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6735         * doc/posix-functions/wcsstr.texi: Mention the new module.
6736
6737 2011-02-06  Bruno Haible  <bruno@clisp.org>
6738
6739         New module 'wcspbrk'.
6740         * modules/wcspbrk: New file.
6741         * lib/wchar.in.h (wcspbrk): New declaration.
6742         * lib/wcspbrk.c: New file.
6743         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6744         * m4/wcspbrk.m4: New file.
6745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6748         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6749         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6750
6751 2011-02-06  Bruno Haible  <bruno@clisp.org>
6752
6753         New module 'wcsspn'.
6754         * modules/wcsspn: New file.
6755         * lib/wchar.in.h (wcsspn): New declaration.
6756         * lib/wcsspn.c: New file.
6757         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6758         * m4/wcsspn.m4: New file.
6759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6762         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6763         * doc/posix-functions/wcsspn.texi: Mention the new module.
6764
6765 2011-02-06  Bruno Haible  <bruno@clisp.org>
6766
6767         New module 'wcscspn'.
6768         * modules/wcscspn: New file.
6769         * lib/wchar.in.h (wcscspn): New declaration.
6770         * lib/wcscspn.c: New file.
6771         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6772         * m4/wcscspn.m4: New file.
6773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6776         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6777         * doc/posix-functions/wcscspn.texi: Mention the new module.
6778
6779 2011-02-06  Bruno Haible  <bruno@clisp.org>
6780
6781         New module 'wcsrchr'.
6782         * modules/wcsrchr: New file.
6783         * lib/wchar.in.h (wcsrchr): New declaration.
6784         * lib/wcsrchr.c: New file.
6785         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6786         * m4/wcsrchr.m4: New file.
6787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6790         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6791         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6792
6793 2011-02-06  Bruno Haible  <bruno@clisp.org>
6794
6795         New module 'wcschr'.
6796         * modules/wcschr: New file.
6797         * lib/wchar.in.h (wcschr): New declaration.
6798         * lib/wcschr.c: New file.
6799         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6800         * m4/wcschr.m4: New file.
6801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6804         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6805         * doc/posix-functions/wcschr.texi: Mention the new module.
6806
6807 2011-02-06  Bruno Haible  <bruno@clisp.org>
6808
6809         New module 'wcsdup'.
6810         * modules/wcsdup: New file.
6811         * lib/wchar.in.h (wcsdup): New declaration.
6812         * lib/wcsdup.c: New file.
6813         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6814         * m4/wcsdup.m4: New file.
6815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6818         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6819         * doc/posix-functions/wcsdup.texi: Mention the new module.
6820
6821 2011-02-06  Bruno Haible  <bruno@clisp.org>
6822
6823         New module 'wcsxfrm'.
6824         * modules/wcsxfrm: New file.
6825         * lib/wchar.in.h (wcsxfrm): New declaration.
6826         * lib/wcsxfrm.c: New file.
6827         * lib/wcsxfrm-impl.h: New file.
6828         * m4/wcsxfrm.m4: New file.
6829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6832         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6833         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6834
6835 2011-02-06  Bruno Haible  <bruno@clisp.org>
6836
6837         New module 'wcscoll'.
6838         * modules/wcscoll: New file.
6839         * lib/wchar.in.h (wcscoll): New declaration.
6840         * lib/wcscoll.c: New file.
6841         * lib/wcscoll-impl.h: New file.
6842         * m4/wcscoll.m4: New file.
6843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6846         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6847         * doc/posix-functions/wcscoll.texi: Mention the new module.
6848
6849 2011-02-06  Bruno Haible  <bruno@clisp.org>
6850
6851         New module 'wcsncasecmp'.
6852         * modules/wcsncasecmp: New file.
6853         * lib/wchar.in.h (wcsncasecmp): New declaration.
6854         * lib/wcsncasecmp.c: New file.
6855         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6856         * m4/wcsncasecmp.m4: New file.
6857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6860         HAVE_WCSNCASECMP.
6861         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6862         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6863
6864 2011-02-06  Bruno Haible  <bruno@clisp.org>
6865
6866         New module 'wcscasecmp'.
6867         * modules/wcscasecmp: New file.
6868         * lib/wchar.in.h (wcscasecmp): New declaration.
6869         * lib/wcscasecmp.c: New file.
6870         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6871         * m4/wcscasecmp.m4: New file.
6872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6875         HAVE_WCSCASECMP.
6876         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6877         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6878
6879 2011-02-05  Bruno Haible  <bruno@clisp.org>
6880
6881         New module 'wcsncmp'.
6882         * modules/wcsncmp: New file.
6883         * lib/wchar.in.h (wcsncmp): New declaration.
6884         * lib/wcsncmp.c: New file.
6885         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6886         * m4/wcsncmp.m4: New file.
6887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6890         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6891         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6892
6893 2011-02-05  Bruno Haible  <bruno@clisp.org>
6894
6895         New module 'wcscmp'.
6896         * modules/wcscmp: New file.
6897         * lib/wchar.in.h (wcscmp): New declaration.
6898         * lib/wcscmp.c: New file.
6899         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6900         * m4/wcscmp.m4: New file.
6901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6904         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6905         * doc/posix-functions/wcscmp.texi: Mention the new module.
6906
6907 2011-02-05  Bruno Haible  <bruno@clisp.org>
6908
6909         New module 'wcsncat'.
6910         * modules/wcsncat: New file.
6911         * lib/wchar.in.h (wcsncat): New declaration.
6912         * lib/wcsncat.c: New file.
6913         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6914         * m4/wcsncat.m4: New file.
6915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6918         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6919         * doc/posix-functions/wcsncat.texi: Mention the new module.
6920
6921 2011-02-05  Bruno Haible  <bruno@clisp.org>
6922
6923         New module 'wcscat'.
6924         * modules/wcscat: New file.
6925         * lib/wchar.in.h (wcscat): New declaration.
6926         * lib/wcscat.c: New file.
6927         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6928         * m4/wcscat.m4: New file.
6929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6932         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6933         * doc/posix-functions/wcscat.texi: Mention the new module.
6934
6935 2011-02-05  Bruno Haible  <bruno@clisp.org>
6936
6937         New module 'wcpncpy'.
6938         * modules/wcpncpy: New file.
6939         * lib/wchar.in.h (wcpncpy): New declaration.
6940         * lib/wcpncpy.c: New file.
6941         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6942         * m4/wcpncpy.m4: New file.
6943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6945         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6946         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6947         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6948
6949 2011-02-05  Bruno Haible  <bruno@clisp.org>
6950
6951         New module 'wcsncpy'.
6952         * modules/wcsncpy: New file.
6953         * lib/wchar.in.h (wcsncpy): New declaration.
6954         * lib/wcsncpy.c: New file.
6955         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6956         * m4/wcsncpy.m4: New file.
6957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6960         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6961         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6962
6963 2011-02-05  Bruno Haible  <bruno@clisp.org>
6964
6965         New module 'wcpcpy'.
6966         * modules/wcpcpy: New file.
6967         * lib/wchar.in.h (wcpcpy): New declaration.
6968         * lib/wcpcpy.c: New file.
6969         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6970         * m4/wcpcpy.m4: New file.
6971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6973         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6974         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6975         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6976
6977 2011-02-05  Bruno Haible  <bruno@clisp.org>
6978
6979         New module 'wcscpy'.
6980         * modules/wcscpy: New file.
6981         * lib/wchar.in.h (wcscpy): New declaration.
6982         * lib/wcscpy.c: New file.
6983         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6984         * m4/wcscpy.m4: New file.
6985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6988         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6989         * doc/posix-functions/wcscpy.texi: Mention the new module.
6990
6991 2011-02-05  Bruno Haible  <bruno@clisp.org>
6992
6993         New module 'wcsnlen'.
6994         * modules/wcsnlen: New file.
6995         * lib/wchar.in.h (wcsnlen): New declaration.
6996         * lib/wcsnlen.c: New file.
6997         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6998         * m4/wcsnlen.m4: New file.
6999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7002         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7003         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7004
7005 2011-02-05  Bruno Haible  <bruno@clisp.org>
7006
7007         New module 'wcslen'.
7008         * modules/wcslen: New file.
7009         * lib/wchar.in.h (wcslen): New declaration.
7010         * lib/wcslen.c: New file.
7011         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7012         * m4/wcslen.m4: New file.
7013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7016         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7017         * doc/posix-functions/wcslen.texi: Mention the new module.
7018
7019 2011-02-05  Bruno Haible  <bruno@clisp.org>
7020
7021         New module 'wmemset'.
7022         * modules/wmemset: New file.
7023         * lib/wchar.in.h (wmemset): New declaration.
7024         * lib/wmemset.c: New file.
7025         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7026         * m4/wmemset.m4: New file.
7027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7029         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7030         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7031         * doc/posix-functions/wmemset.texi: Mention the new module.
7032
7033 2011-02-05  Bruno Haible  <bruno@clisp.org>
7034
7035         New module 'wmemmove'.
7036         * modules/wmemmove: New file.
7037         * lib/wchar.in.h (wmemmove): New declaration.
7038         * lib/wmemmove.c: New file.
7039         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7040         * m4/wmemmove.m4: New file.
7041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7043         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7044         HAVE_WMEMMOVE.
7045         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7046         * doc/posix-functions/wmemmove.texi: Mention the new module.
7047
7048 2011-02-05  Bruno Haible  <bruno@clisp.org>
7049
7050         New module 'wmemcpy'.
7051         * modules/wmemcpy: New file.
7052         * lib/wchar.in.h (wmemcpy): New declaration.
7053         * lib/wmemcpy.c: New file.
7054         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7055         * m4/wmemcpy.m4: New file.
7056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7058         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7059         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7060         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7061
7062 2011-02-05  Bruno Haible  <bruno@clisp.org>
7063
7064         New module 'wmemcmp'.
7065         * modules/wmemcmp: New file.
7066         * lib/wchar.in.h (wmemcmp): New declaration.
7067         * lib/wmemcmp.c: New file.
7068         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7069         * m4/wmemcmp.m4: New file.
7070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7072         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7073         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7074         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7075
7076 2011-02-07  Jim Meyering  <meyering@redhat.com>
7077
7078         di-set, ino-map: new modules, from coreutils
7079         * lib/di-set.c: New file.
7080         * lib/di-set.h: Likewise.
7081         * lib/ino-map.c: Likewise.
7082         * lib/ino-map.h: Likewise.
7083         * modules/di-set: Likewise.
7084         * modules/di-set-tests: Likewise.
7085         * modules/ino-map: Likewise.
7086         * modules/ino-map-tests: Likewise.
7087         * tests/test-di-set.c: Likewise.
7088         * tests/test-ino-map.c: Likewise.
7089
7090 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7091
7092         getloadavg: merge minor changes from Emacs
7093
7094         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7095         (getloadavg): Use memset, not bzero.
7096
7097         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7098         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7099         clash (bug#86).
7100
7101 2010-11-14  Bruno Haible  <bruno@clisp.org>
7102
7103         Allow multiple gnulib generated replacements to coexist.
7104         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7105         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7106         * lib/langinfo.in.h (nl_item): Likewise.
7107         * lib/math.in.h (_NaN, NAN): Likewise.
7108         * lib/netdb.in.h (struct addrinfo): Likewise.
7109         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7110         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7111         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7112         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7113         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7114         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7115         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7116         pthread_mutexattr_init, pthread_mutexattr_settype,
7117         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7118         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7119         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7120         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7121         * lib/sched.in.h (struct sched_param): Likewise.
7122         * lib/se-selinux.in.h (security_class_t, security_context_t,
7123         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7124         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7125         lsetfilecon, fsetfilecon, security_check_context,
7126         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7127         Likewise.
7128         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7129         Likewise.
7130         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7131         _gl_function_taking_int_returning_void_t, union sigval,
7132         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7133         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7134         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7135         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7136         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7137         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7138         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7139         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7140         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7141         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7142         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7143         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7144         socklen_t, rpl_fd_isset): Likewise.
7145         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7146         * lib/sys_time.in.h (struct timeval): Likewise.
7147         * lib/sys_times.in.h (struct tms): Likewise.
7148         * lib/sys_utsname.in.h (struct utsname):
7149         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7150         * lib/unistd.in.h (getpagesize): Likewise.
7151         * lib/wchar.in.h (mbstate_t): Likewise.
7152         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7153         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7154         towlower, towupper): Likewise.
7155         Reported by Sam Steingold <sds@gnu.org>.
7156
7157 2011-02-05  Eric Blake  <eblake@redhat.com>
7158
7159         unsetenv: work around Haiku issues
7160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7161         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7162
7163 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7164
7165         libposix: avoid calling error() within libposix
7166         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7167         is defined.
7168
7169 2011-02-05  Eric Blake  <eblake@redhat.com>
7170
7171         strerror_r-posix: port to cygwin
7172         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7173         implementation.
7174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7175         * tests/test-strerror_r.c (main): Fix test.
7176         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7177         issue.
7178
7179 2011-02-05  Bruno Haible  <bruno@clisp.org>
7180
7181         New module 'wmemchr'.
7182         * modules/wmemchr: New file.
7183         * lib/wchar.in.h (wmemchr): New declaration.
7184         * lib/wmemchr.c: New file.
7185         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7186         * m4/wmemchr.m4: New file.
7187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7189         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7190         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7191         * doc/posix-functions/wmemchr.texi: Mention the new module.
7192
7193 2011-02-04  Eric Blake  <eblake@redhat.com>
7194
7195         fdopendir: detect FreeBSD bug
7196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7197         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7198
7199 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7200
7201         stdbool: do not define HAVE_STDBOOL_H
7202         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7203         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7204         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7205         imported from the latest Autoconf git.  It was motivated by Emacs,
7206         which uses gnulib but does not need HAVE_STDBOOL_H.
7207
7208 2011-02-04  Bruno Haible  <bruno@clisp.org>
7209
7210         wcsnrtombs: Prepare for new module wwcsnrtombs.
7211         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7212         * lib/wcsnrtombs.c: Include it.
7213         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7214
7215         wcsrtombs: Prepare for new module wwcsrtombs.
7216         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7217         * lib/wcsrtombs.c: Include it.
7218         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7219
7220         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7221         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7222         * lib/mbsnrtowcs.c: Include it.
7223         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7224
7225         mbsrtowcs: Prepare for new module mbsrtowwcs.
7226         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7227         * lib/mbsrtowcs.c: Include it.
7228         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7229
7230 2011-02-04  Bruno Haible  <bruno@clisp.org>
7231
7232         vasnprintf: Reduce use of malloc for small format strings.
7233         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7234         (arguments): Add room for the first 7 arguments.
7235         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7236         (char_directives, u8_directives, u16_directives, u32_directives): Add
7237         room for the first 7 directives.
7238         * lib/printf-parse.c: Include <string.h>.
7239         (PRINTF_PARSE): Change memory handling code so that it uses the first
7240         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7241         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7242         Reported by Pádraig Brady <P@draigbrady.com>.
7243
7244 2011-01-31  Eric Blake  <eblake@redhat.com>
7245
7246         dup2: work around Haiku bug
7247         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7248         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7249         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7250         * tests/test-dup2.c (main): Enhance test.
7251
7252 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7253
7254         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7255         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7256         declared by eglibc 2.11.2.
7257         * lib/stdio.in.h: Likewise.
7258
7259 2011-01-31  Eric Blake  <eblake@redhat.com>
7260
7261         ignore-value: add missing test dependency
7262         * tests/test-ignore-value.c: Revert previous change; stdio.h
7263         provides off_t.
7264         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7265
7266 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7267
7268         mktime: clarify long_int width checking
7269         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7270         the top level, to make it clearer that the assumption about
7271         long_int width is being checked.  See
7272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7273
7274 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7275
7276         ignore-value: Fix self-test.
7277         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7278
7279 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         TYPE_MAXIMUM: avoid theoretically undefined behavior
7282         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7283         negative number, which the C Standard says has undefined behavior.
7284         In practice this is not a problem, but might as well do it by the book.
7285         Reported by Rich Felker and Eric Blake; see
7286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7287         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7288         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7290         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7291         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7292         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7293
7294         mktime: #undef mktime before #defining it
7295         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7296
7297         mktime: systematically normalize tm_isdst comparisons
7298         * lib/mktime.c (isdst_differ): New function.
7299         (__mktime_internal): Use it systematically for all isdst comparisons.
7300         This completes the fix for libc BZ #6723, and removes the need for
7301         normalizing tm_isdst.  See
7302         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7303         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7304
7305         mktime: fix some integer overflow issues and sidestep the rest
7306
7307         This was prompted by a bug report by Benjamin Lindner for MinGW
7308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7309         His bug is due to signed integer overflow (0 - INT_MIN), and I
7310         I scanned through mktime.c looking for other integer overflow
7311         problems, fixing all the bugs I found.
7312
7313         Although the C Standard says the resulting code is still not safe
7314         in the presence of integer overflow, in practice it should be good
7315         enough for all real-world two's-complement implementations, except
7316         for debugging environments that deliberately trap on integer
7317         overflow (e.g., gcc -ftrapv).
7318
7319         * lib/mktime.c (WRAPV): New macro.
7320         (SHR): Also check that long_int and time_t shift right in the
7321         usual way, before using the fast-but-unportable method.
7322         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7323         used.  The code already assumed two's complement, so there's
7324         no need to test for alternatives.  All uses removed.
7325         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7326         the C standard.  Problem reported by Rich Felker in
7327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7328         (twos_complement_arithmetic): Also check long_int and time_t.
7329         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7330         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7331         (__mktime_internal): Avoid integer overflow with unary subtraction
7332         in two instances where -1 - X is an adequate replacement for -X,
7333         since the calculations are approximate.
7334
7335 2011-01-29  Eric Blake  <eblake@redhat.com>
7336
7337         mktime: avoid infinite loop
7338         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7339         type; behavior is still undefined but portable to all known targets.
7340         Reported by Rich Felker.
7341
7342 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7343
7344         rename, unlink, same-inode: Relicense.
7345         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7346         * modules/unlink (License): Likewise.
7347         * modules/same-inode (License): Likewise.
7348
7349 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7350
7351         mktime: avoid problems on NetBSD 5 / i386
7352         * lib/mktime.c (long_int): New type.  This works around a problem
7353         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7354         but time_t is 64 bits, and where I expect the existing code is
7355         wrong in some cases.
7356         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7357         (ydhms_diff): Bring back the compile-time check for wide-enough
7358         year and yday.
7359
7360         mktime: fix misspelling in comment
7361         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7362         This merges all recent glibc changes of importance.
7363
7364 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7365
7366         move-if-change: cope with concurrent mv of identical file.
7367         * build-aux/move-if-change (CMPPROG): Accept environment
7368         variable as an override for `cmp'.
7369         (usage): Document CMPPROG.
7370         Adjust comparison to drop stdout.  Cope with failure of mv if
7371         the target file exists and is identical to the source, for
7372         parallel builds.
7373         Report from H.J. Lu against binutils in PR binutils/12283.
7374
7375 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7376
7377         * users.txt: Mention sharutils.
7378
7379 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7380
7381         * users.txt: Mention OATH Toolkit.
7382
7383 2011-01-27  Bruno Haible  <bruno@clisp.org>
7384
7385         Prepare for supporting FreeBSD 10.
7386         * build-aux/config.libpath: Remove handling of freebsd1*.
7387
7388 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7389
7390         Prepare for supporting FreeBSD 10.
7391         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7392         match FreeBSD 10.0.
7393
7394 2011-01-27  Bruno Haible  <bruno@clisp.org>
7395
7396         vma-iter, get-rusage-as: Add OpenBSD support.
7397         * modules/vma-iter (configure.ac): Test for mquery.
7398         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7399         * lib/vma-iter.c: Include <sys/mman.h>.
7400         (vma_iterate): Add an implementation based on mquery().
7401         * lib/resource-ext.h (get_rusage_as): Update comments.
7402         * lib/get-rusage-as.c: Likewise.
7403         * lib/get-rusage-data.c: Likewise.
7404
7405 2011-01-26  Karl Berry  <karl@gnu.org>
7406
7407         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7408         variables to make it easier to override the makeinfo program used.
7409
7410 2011-01-26  Eric Blake  <eblake@redhat.com>
7411
7412         fcntl: work around Haiku F_DUPFD bugs
7413         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7414         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7415         cloexec bit on duplication.
7416         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7417
7418 2011-01-26  Bruno Haible  <bruno@clisp.org>
7419
7420         Enable memory leak tests on AIX.
7421         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7422         * tests/test-fprintf-posix3.c (main): Likewise.
7423
7424 2011-01-26  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'get-rusage-data'.
7427         * modules/get-rusage-data-tests: New file.
7428         * tests/test-get-rusage-data.c: New file.
7429
7430         New module 'get-rusage-data'.
7431         * lib/resource-ext.h (get_rusage_data): New declaration.
7432         * lib/get-rusage-data.c: New file.
7433         * modules/get-rusage-data: New file.
7434
7435 2011-01-25  Bruno Haible  <bruno@clisp.org>
7436
7437         get-rusage-as: Allow for easier testing.
7438         * lib/resource-ext.h (get_rusage_as): Add comment.
7439         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7440         (main): New function for interactive testing.
7441
7442 2011-01-25  Bruno Haible  <bruno@clisp.org>
7443
7444         vma-iter: Treat Haiku like BeOS.
7445         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7446         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7447
7448 2011-01-25  Eric Blake  <eblake@redhat.com>
7449
7450         c-stack: fix regression on cygwin when libsigsegv is present
7451         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7452
7453 2011-01-24  Bruno Haible  <bruno@clisp.org>
7454
7455         vma-iter: Avoid empty intervals.
7456         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7457         on an empty interval.
7458
7459 2011-01-24  Jim Meyering  <meyering@redhat.com>
7460
7461         u64: remove unnecessary #include
7462         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7463
7464 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7465
7466         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7467         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7468
7469 2011-01-23  Bruno Haible  <bruno@clisp.org>
7470
7471         New module 'vma-iter'.
7472         * lib/vma-iter.h: New file.
7473         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7474         * modules/vma-iter: New file.
7475         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7476         for get_rusage_as_via_iterator.
7477         (vma_iterate_callback): New function.
7478         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7479         * modules/get-rusage-as (Depends-on): Add vma-iter.
7480
7481 2011-01-23  Bruno Haible  <bruno@clisp.org>
7482
7483         uninorm: Tweak includes.
7484         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7485         Reported by Jim Meyering.
7486
7487 2011-01-23  Bruno Haible  <bruno@clisp.org>
7488
7489         get-rusage-as: Improve on NetBSD.
7490         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7491         /proc, like on FreeBSD.
7492
7493 2011-01-23  Jim Meyering  <meyering@redhat.com>
7494
7495         xreadlink.h: remove unnecessary #include
7496         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7497
7498         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7499         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7500
7501 2011-01-23  Bruno Haible  <bruno@clisp.org>
7502
7503         get-rusage-as: Fix bug.
7504         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7505         original limit when aborting the first loop.
7506
7507 2011-01-23  Bruno Haible  <bruno@clisp.org>
7508
7509         wctype: Ensure valid C syntax.
7510         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7511         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7512
7513 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7514
7515         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7517         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7518         as they are needed only for configure's test case.
7519         This removes two unnecessary symbols from config.h.
7520
7521         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7522         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7524         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7525         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7527         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7528         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7530         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7531         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7533         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7535         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7536         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7537         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7538         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7539
7540 2011-01-21  Eric Blake  <eblake@redhat.com>
7541
7542         maintainer-makefile: work with older git for submodule check
7543         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7544         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7545         Reported by Matthias Bolte.
7546
7547         bootstrap: minor portability fixes
7548         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7549         (usage): Omit leading capital and trailing . on help phrases, per
7550         GNU Coding Standards.
7551         (check_versions, top level): Prefix messages with script name.
7552
7553 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7554
7555         bootstrap: support --no-git option
7556         * build-aux/bootstrap: Add --no-git option, to be used when
7557         --gnulib-srcdir points to the exact desired checkout.
7558
7559 2011-01-21  Eric Blake  <eblake@redhat.com>
7560
7561         strerror_r-posix: work with glibc 2.13
7562         * lib/strerror_r.c (strerror_r): Fix return type.
7563
7564 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7565             Bruno Haible  <bruno@clisp.org>
7566
7567         uN_strstr: New unit tests.
7568         * modules/unistr/u8-strstr-tests: New file.
7569         * modules/unistr/u16-strstr-tests: New file.
7570         * modules/unistr/u32-strstr-tests: New file.
7571         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7572         * tests/unistr/test-u8-strstr.c: New file.
7573         * tests/unistr/test-u16-strstr.c: New file.
7574         * tests/unistr/test-u32-strstr.c: New file.
7575
7576 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7577             Bruno Haible  <bruno@clisp.org>
7578
7579         Make uN_strstr functions O(n) worst-case.
7580         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7581         16-bit and 32-bit unit cases, use the unibyte algorithm from
7582         lib/mbsstr.c.
7583         * lib/unistr/u8-strstr.c: Include <string.h>.
7584         (UNIT_IS_UINT8_T): New macro.
7585         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7586         (U_STRLEN, U_STRNLEN): New macros.
7587         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7588         (U_STRLEN, U_STRNLEN): New macros.
7589         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7590         (configure.ac): Update required libunistring version.
7591         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7592         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7593         malloca.
7594         (configure.ac): Update required libunistring version.
7595         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7596         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7597         malloca.
7598         (configure.ac): Update required libunistring version.
7599
7600 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7601             Bruno Haible  <bruno@clisp.org>
7602
7603         Prepare for faster uN_strstr functions.
7604         * lib/str-kmp.h: Support definable UNITs.
7605         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7606         needle_len argument.
7607         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7608         * lib/mbscasestr.c (mbscasestr): Likewise.
7609
7610 2011-01-21  Pádraig Brady <P@draigBrady.com>
7611
7612         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7613         * tests/test-malloca.c (main): Unset the environment variable
7614         to greatly speed up the test.
7615         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7616         * modules/malloca-tests: Depend on unsetenv.
7617
7618 2011-01-21  Pádraig Brady <P@draigBrady.com>
7619
7620         ignore-value: remove stdint dependency
7621         * lib/ignore-value.h: Remove <stdint.h>
7622         * modules/ignore-value: Remove stdint dependency.
7623
7624 2011-01-21  Jim Meyering  <meyering@redhat.com>
7625
7626         maint.mk: adjust variable name to be consistent with other gl_ vars
7627         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7628         to be lower case.
7629
7630 2011-01-20  Jim Meyering  <meyering@redhat.com>
7631
7632         maint.mk: make "check" depend on public-submodule-commit by default
7633         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7634
7635 2011-01-20  Bruno Haible  <bruno@clisp.org>
7636
7637         mbfile, mbiter: Complete change from 2008-12-21.
7638         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7639         * m4/mbiter.m4 (gl_MBITER): Likewise.
7640
7641 2011-01-20  Jim Meyering  <meyering@redhat.com>
7642
7643         init.sh: insert space between each function name and "()"
7644         * tests/init.sh: Make it a little easier to see that a function's
7645         name is "warn_", and not "warn" when looking at the first part of
7646         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7647
7648 2011-01-20  Jim Meyering  <meyering@redhat.com>
7649
7650         mountlist: clean up code formatting
7651         * lib/mountlist.c (read_file_system_list): Split a long line,
7652         correct bracing style, use NULL in place of "(struct statfs *)0",
7653         don't parenthesize return value, add spaces around "=" and after
7654         ";-in-for-stmt".
7655
7656 2011-01-14  Markus Duft <mduft@gentoo.org>
7657
7658         mountlist: add support for Interix
7659         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7660         Apply statvfs to all entries of /dev/fs.
7661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7662         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7663
7664 2011-01-20  Jim Meyering  <meyering@redhat.com>
7665
7666         maint.mk: improve the public-submodule-commit rule
7667         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7668         to suppress printing of its commands... unless V=1.
7669         Add git submodule's --quiet option to suppress printing of e.g.,
7670         "Entering gnulib" output.
7671         "cd" into $(srcdir) before running git submodule.
7672
7673 2011-01-20  Bruno Haible  <bruno@clisp.org>
7674
7675         include_next: Fix bug introduced on 2011-01-18.
7676         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7677         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7678         ac_cv_header_... variable if the second argument is not 'check'.
7679         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7680         gl_NEXT_HEADERS_INTERNAL.
7681
7682 2011-01-20  Bruno Haible  <bruno@clisp.org>
7683
7684         Allow the user to avoid the GNULIB_TEST_* macros.
7685         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7686         Suggested by Paul Eggert.
7687
7688 2011-01-14  Jim Meyering  <meyering@redhat.com>
7689
7690         bootstrap: avoid failure when there is no .gitmodules file
7691         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7692         has been assigned to, even when its value is the empty string.
7693         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7694         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7695         Reported by John W. Eaton <jwe@gnu.org>.
7696
7697 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7698
7699         assume <ctype.h>, ..., <time.h> exist
7700         For years gnulib has been assuming the existence of the headers
7701         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7702         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7703         them, since they don't appear to be needed.
7704         * README (Portability guidelines): Document this.
7705         * lib/flock.c: Assume <fcntl.h> exists.
7706         * lib/regex_internal.h: Assume <locale.h> exists.
7707         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7708         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7709         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7710         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7711         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7712         * m4/regex.m4 (gl_REGEX): Likewise.
7713         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7714         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7715         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7716         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7717         * tests/test-argp.c: Likewise.
7718         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7719
7720         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7721         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7722         AA_APPLE_UNIVERSAL_BUILD.  See
7723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7724         * NEWS: Document this.
7725
7726 2011-01-19  Eric Blake  <eblake@redhat.com>
7727
7728         c-stack: assume stack overflow if SA_SIGINFO unsupported
7729         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7730         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7731         sigaction will work.
7732         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7733         behavior match Linux.
7734         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7735
7736         stdbool-tests: accomodate Haiku
7737         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7738
7739         binary-io: fix O_TEXT on Haiku
7740         * modules/binary-io (Depends-on): Add fcntl-h.
7741         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7742         than blindly undefining O_TEXT.
7743         Reported by Scott McCreary.
7744
7745 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7746
7747         include_next: do not check for standard headers like stddef.h
7748
7749         I found this problem when modifying Emacs to use gnulib.
7750         I noticed that it added HAVE_STDDEF_H to config.h, even though
7751         gnulib always assumes <stddef.h> exists as per README and this
7752         symbol is unnecessary.
7753         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7754         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7755         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7756         faster for headers like stddef.h that are known to exist.
7757         (gl_CHECK_NEXT_HEADERS): Use it.
7758         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7759         rather than gl_CHECK_NEXT_HEADERS.
7760         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7761         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7762
7763 2011-01-18  Eric Blake  <eblake@redhat.com>
7764
7765         ansi-c++-opt: skip C++ dependency style if C++ is unused
7766         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7767         tests when we know C++ compilation is not desired.
7768         Reported by Scott McCreary.
7769
7770 2011-01-18  Bruno Haible  <bruno@clisp.org>
7771
7772         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7773         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7774         (main): Perform test also when getrlimit and setrlimit don't exist or
7775         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7776         limiting the address space size using setrlimit, compare the address
7777         space size before and after the the test.
7778         * tests/test-dprintf-posix2.c: Likewise.
7779         * tests/test-fprintf-posix3.sh: Update skip messages.
7780         * tests/test-dprintf-posix2.sh: Likewise.
7781         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7782         * modules/dprintf-posix-tests (Depends-on): Likewise.
7783         Reported by Bruce Korb <bkorb@gnu.org> and
7784         Gary V. Vaughan <gary@gnu.org>.
7785
7786 2011-01-18  Bruno Haible  <bruno@clisp.org>
7787
7788         get-rusage-as: Improvement for Cygwin.
7789         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7790         areas that are merely reserved.
7791
7792 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7793
7794         strftime: remove dependencies on multibyte modules
7795
7796         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7797         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7798         only if __osf__ is defined, and I suspect OSF doesn't need these
7799         other modules.  If my guess is wrong, we'll need to come up with a
7800         variant of strftime that doesn't need the multibyte modules.
7801
7802         I discovered this problem when attempting modify Emacs to use the
7803         strftime module.  With the previous gnulib, this caused Emacs to
7804         need 31 new files, ranging from lib/config.charset to
7805         m4/wint_t.m4.  This was overkill and I expect would be offputting
7806         to the Emacs maintainers.  After this change, only 6 new files are
7807         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7808         stdbool.m4, and tm_gmtoff.m4.
7809
7810         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7811         Suggested by Bruno Haible in
7812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7813         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7814         and do not check for wchar.h.
7815         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7816         (Depends-on): Remove mbrlen, mbsinit, wchar.
7817
7818 2011-01-18  Bruno Haible  <bruno@clisp.org>
7819
7820         Tests for module 'get-rusage-as'.
7821         * modules/get-rusage-as-tests: New file.
7822         * tests/test-get-rusage-as.c: New file.
7823
7824         New module 'get-rusage-as'.
7825         * modules/get-rusage-as: New file.
7826         * lib/resource-ext.h: New file.
7827         * lib/get-rusage-as.c: New file.
7828
7829 2011-01-17  Eric Blake  <eblake@redhat.com>
7830
7831         sigaction: relax license from LGPLv3+ to LGPLv2+
7832         * modules/sigaction (License): Relax to LGPLv2+.
7833
7834 2011-01-14  Bruno Haible  <bruno@clisp.org>
7835
7836         filemode: Make function declarations usable in C++ mode.
7837         * lib/filemode.h: Enclose function declarations in extern "C" block.
7838         Reported by John W. Eaton <jwe@gnu.org>.
7839
7840 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7841
7842         save-cwd: no longer include "xgetcwd.h"
7843         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7844         This avoids a compilation failure in projects that use save-cwd
7845         without also using the xgetcwd module.
7846
7847 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7850         This is so that a program like Emacs, which needs only dtoastr,
7851         does not have to bother with distributing and compiling ftoastr
7852         and ldtoastr.
7853         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7854         * modules/dtoastr, modules/ldtoastr: New files.
7855         * modules/ftoastr: Now works just for 'float'.
7856         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7857         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7858         dtoastr.c, ldtoastr.c.
7859
7860 2011-01-11  Jim Meyering  <meyering@redhat.com>
7861
7862         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7863         There is no need to work around the lack of the fchdir function,
7864         since gnulib can now provide a replacement when required.
7865         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7866         * modules/save-cwd (Depends-on): Add fchdir.
7867
7868 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7869
7870         openat, save-cwd: avoid xmalloc
7871
7872         This removes a direct (but undocumented) dependency of openat on
7873         xalloc, along with an indirect dependency via save-cwd.  It also
7874         removes a dependency of save-cwd on xgetcwd, and thereby
7875         indirectly on xalloc.  This change causes the openat substitute
7876         to fall back on save_cwd when memory is tight, and for save_cwd to
7877         fail instead of dying when memory is tight, but that's good enough.
7878         Problem and initial idea for fix reported by Bastien Roucaries in
7879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7880
7881         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7882         xalloc.h (for xmalloc).
7883         (openat_proc_name): Use malloc, not xmalloc.
7884         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7885         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7886
7887         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7888         This avoids heap allocation for file names whose lengths are in
7889         the range 512..1023, with the upper bound increasing to at most
7890         4031 depending on the platform's PATH_MAX.  (We do not want
7891         pathmax.h here as it might supply a non-constant PATH_MAX.)
7892         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7893         Perhaps they should be moved to malloca.h?
7894         (OPENAT_BUFFER_SIZE): Use them.
7895
7896 2011-01-10  Bruno Haible  <bruno@clisp.org>
7897
7898         doc: Update users.txt.
7899         * users.txt: Add recutils.
7900
7901 2011-01-09  Karl Berry  <karl@gnu.org>
7902
7903         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7904
7905         * doc/configmake.texi: New file.
7906         * doc/gnulib.texi: Include it.
7907         * modules/configmake: Move documentation from here.
7908
7909 2011-01-09  Bruno Haible  <bruno@clisp.org>
7910
7911         Update to Unicode 6.0.0.
7912         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7913         (get_lbp): Update for Unicode 6.0.0.
7914         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7915         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7916         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7917         U+11001, U+11038..U+11046. Remove U+06DE.
7918         (uc_width): Fix bounds of planes.
7919         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7920         lib/uniwidth/width.c.
7921         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7922         trailing whitespace removed.
7923         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7924         without comments, but with the original copyright notice.
7925         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7926         * lib/unicase/ignorable.h: Likewise.
7927         * lib/unicase/tocasefold.h: Likewise.
7928         * lib/unicase/tolower.h: Likewise.
7929         * lib/unicase/totitle.h: Likewise.
7930         * lib/unicase/toupper.h: Likewise.
7931         * lib/unictype/bidi_of.h: Likewise.
7932         * lib/unictype/blocks.h: Likewise.
7933         * lib/unictype/categ_C.h: Likewise.
7934         * lib/unictype/categ_Cn.h: Likewise.
7935         * lib/unictype/categ_L.h: Likewise.
7936         * lib/unictype/categ_Ll.h: Likewise.
7937         * lib/unictype/categ_Lm.h: Likewise.
7938         * lib/unictype/categ_Lo.h: Likewise.
7939         * lib/unictype/categ_Lu.h: Likewise.
7940         * lib/unictype/categ_M.h: Likewise.
7941         * lib/unictype/categ_Mc.h: Likewise.
7942         * lib/unictype/categ_Me.h: Likewise.
7943         * lib/unictype/categ_Mn.h: Likewise.
7944         * lib/unictype/categ_N.h: Likewise.
7945         * lib/unictype/categ_Nd.h: Likewise.
7946         * lib/unictype/categ_No.h: Likewise.
7947         * lib/unictype/categ_P.h: Likewise.
7948         * lib/unictype/categ_Po.h: Likewise.
7949         * lib/unictype/categ_S.h: Likewise.
7950         * lib/unictype/categ_Sc.h: Likewise.
7951         * lib/unictype/categ_Sk.h: Likewise.
7952         * lib/unictype/categ_Sm.h: Likewise.
7953         * lib/unictype/categ_So.h: Likewise.
7954         * lib/unictype/categ_of.h: Likewise.
7955         * lib/unictype/combining.h: Likewise.
7956         * lib/unictype/ctype_alnum.h: Likewise.
7957         * lib/unictype/ctype_alpha.h: Likewise.
7958         * lib/unictype/ctype_graph.h: Likewise.
7959         * lib/unictype/ctype_lower.h: Likewise.
7960         * lib/unictype/ctype_print.h: Likewise.
7961         * lib/unictype/ctype_punct.h: Likewise.
7962         * lib/unictype/ctype_upper.h: Likewise.
7963         * lib/unictype/decdigit.h: Likewise.
7964         * lib/unictype/digit.h: Likewise.
7965         * lib/unictype/numeric.h: Likewise.
7966         * lib/unictype/pr_alphabetic.h: Likewise.
7967         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7968         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7969         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7970         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7971         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7972         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7973         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7974         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7975         * lib/unictype/pr_case_ignorable.h: Likewise.
7976         * lib/unictype/pr_cased.h: Likewise.
7977         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7978         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7979         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7980         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7981         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7982         * lib/unictype/pr_combining.h: Likewise.
7983         * lib/unictype/pr_composite.h: Likewise.
7984         * lib/unictype/pr_currency_symbol.h: Likewise.
7985         * lib/unictype/pr_decimal_digit.h: Likewise.
7986         * lib/unictype/pr_deprecated.h: Likewise.
7987         * lib/unictype/pr_format_control.h: Likewise.
7988         * lib/unictype/pr_grapheme_base.h: Likewise.
7989         * lib/unictype/pr_grapheme_extend.h: Likewise.
7990         * lib/unictype/pr_grapheme_link.h: Likewise.
7991         * lib/unictype/pr_id_continue.h: Likewise.
7992         * lib/unictype/pr_id_start.h: Likewise.
7993         * lib/unictype/pr_ideographic.h: Likewise.
7994         * lib/unictype/pr_lowercase.h: Likewise.
7995         * lib/unictype/pr_math.h: Likewise.
7996         * lib/unictype/pr_numeric.h: Likewise.
7997         * lib/unictype/pr_other_alphabetic.h: Likewise.
7998         * lib/unictype/pr_other_id_continue.h: Likewise.
7999         * lib/unictype/pr_other_math.h: Likewise.
8000         * lib/unictype/pr_punctuation.h: Likewise.
8001         * lib/unictype/pr_sentence_terminal.h: Likewise.
8002         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8003         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8004         * lib/unictype/pr_unified_ideograph.h: Likewise.
8005         * lib/unictype/pr_uppercase.h: Likewise.
8006         * lib/unictype/pr_xid_continue.h: Likewise.
8007         * lib/unictype/pr_xid_start.h: Likewise.
8008         * lib/unictype/scripts.h: Likewise.
8009         * lib/unictype/scripts_byname.gperf: Likewise.
8010         * lib/unictype/sy_java_ident.h: Likewise.
8011         * lib/unigbrk/gbrkprop.h: Likewise.
8012         * lib/unilbrk/lbrkprop1.h: Likewise.
8013         * lib/unilbrk/lbrkprop2.h: Likewise.
8014         * lib/uninorm/decomposition-table2.h: Likewise.
8015         * lib/uniwbrk/wbrkprop.h: Likewise.
8016         * tests/unicase/test-cased.c: Likewise.
8017         * tests/unicase/test-ignorable.c: Likewise.
8018         * tests/unicase/test-uc_tolower.c: Likewise.
8019         * tests/unicase/test-uc_totitle.c: Likewise.
8020         * tests/unicase/test-uc_toupper.c: Likewise.
8021         * tests/unictype/test-categ_C.c: Likewise.
8022         * tests/unictype/test-categ_Cn.c: Likewise.
8023         * tests/unictype/test-categ_L.c: Likewise.
8024         * tests/unictype/test-categ_Ll.c: Likewise.
8025         * tests/unictype/test-categ_Lm.c: Likewise.
8026         * tests/unictype/test-categ_Lo.c: Likewise.
8027         * tests/unictype/test-categ_Lu.c: Likewise.
8028         * tests/unictype/test-categ_M.c: Likewise.
8029         * tests/unictype/test-categ_Mc.c: Likewise.
8030         * tests/unictype/test-categ_Me.c: Likewise.
8031         * tests/unictype/test-categ_Mn.c: Likewise.
8032         * tests/unictype/test-categ_N.c: Likewise.
8033         * tests/unictype/test-categ_Nd.c: Likewise.
8034         * tests/unictype/test-categ_No.c: Likewise.
8035         * tests/unictype/test-categ_P.c: Likewise.
8036         * tests/unictype/test-categ_Po.c: Likewise.
8037         * tests/unictype/test-categ_S.c: Likewise.
8038         * tests/unictype/test-categ_Sc.c: Likewise.
8039         * tests/unictype/test-categ_Sk.c: Likewise.
8040         * tests/unictype/test-categ_Sm.c: Likewise.
8041         * tests/unictype/test-categ_So.c: Likewise.
8042         * tests/unictype/test-ctype_alnum.c: Likewise.
8043         * tests/unictype/test-ctype_alpha.c: Likewise.
8044         * tests/unictype/test-ctype_graph.c: Likewise.
8045         * tests/unictype/test-ctype_lower.c: Likewise.
8046         * tests/unictype/test-ctype_print.c: Likewise.
8047         * tests/unictype/test-ctype_punct.c: Likewise.
8048         * tests/unictype/test-ctype_upper.c: Likewise.
8049         * tests/unictype/test-decdigit.h: Likewise.
8050         * tests/unictype/test-digit.h: Likewise.
8051         * tests/unictype/test-numeric.h: Likewise.
8052         * tests/unictype/test-pr_alphabetic.c: Likewise.
8053         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8054         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8055         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8056         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8057         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8058         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8059         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8060         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8061         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8062         * tests/unictype/test-pr_cased.c: Likewise.
8063         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8064         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8065         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8066         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8067         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8068         * tests/unictype/test-pr_combining.c: Likewise.
8069         * tests/unictype/test-pr_composite.c: Likewise.
8070         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8071         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8072         * tests/unictype/test-pr_deprecated.c: Likewise.
8073         * tests/unictype/test-pr_format_control.c: Likewise.
8074         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8075         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8076         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8077         * tests/unictype/test-pr_id_continue.c: Likewise.
8078         * tests/unictype/test-pr_id_start.c: Likewise.
8079         * tests/unictype/test-pr_ideographic.c: Likewise.
8080         * tests/unictype/test-pr_lowercase.c: Likewise.
8081         * tests/unictype/test-pr_math.c: Likewise.
8082         * tests/unictype/test-pr_numeric.c: Likewise.
8083         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8084         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8085         * tests/unictype/test-pr_other_math.c: Likewise.
8086         * tests/unictype/test-pr_punctuation.c: Likewise.
8087         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8088         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8089         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8090         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8091         * tests/unictype/test-pr_uppercase.c: Likewise.
8092         * tests/unictype/test-pr_xid_continue.c: Likewise.
8093         * tests/unictype/test-pr_xid_start.c: Likewise.
8094         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8095         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8096         changes.
8097         * lib/unictype/categ_Cc.h: Likewise.
8098         * lib/unictype/categ_Cf.h: Likewise.
8099         * lib/unictype/categ_Co.h: Likewise.
8100         * lib/unictype/categ_Cs.h: Likewise.
8101         * lib/unictype/categ_Lt.h: Likewise.
8102         * lib/unictype/categ_Nl.h: Likewise.
8103         * lib/unictype/categ_Pc.h: Likewise.
8104         * lib/unictype/categ_Pd.h: Likewise.
8105         * lib/unictype/categ_Pe.h: Likewise.
8106         * lib/unictype/categ_Pf.h: Likewise.
8107         * lib/unictype/categ_Pi.h: Likewise.
8108         * lib/unictype/categ_Ps.h: Likewise.
8109         * lib/unictype/categ_Z.h: Likewise.
8110         * lib/unictype/categ_Zl.h: Likewise.
8111         * lib/unictype/categ_Zp.h: Likewise.
8112         * lib/unictype/categ_Zs.h: Likewise.
8113         * lib/unictype/ctype_blank.h: Likewise.
8114         * lib/unictype/ctype_cntrl.h: Likewise.
8115         * lib/unictype/ctype_digit.h: Likewise.
8116         * lib/unictype/ctype_space.h: Likewise.
8117         * lib/unictype/ctype_xdigit.h: Likewise.
8118         * lib/unictype/mirror.h: Likewise.
8119         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8120         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8121         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8122         * lib/unictype/pr_bidi_control.h: Likewise.
8123         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8124         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8125         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8126         * lib/unictype/pr_bidi_pdf.h: Likewise.
8127         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8128         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8129         * lib/unictype/pr_dash.h: Likewise.
8130         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8131         * lib/unictype/pr_diacritic.h: Likewise.
8132         * lib/unictype/pr_extender.h: Likewise.
8133         * lib/unictype/pr_hex_digit.h: Likewise.
8134         * lib/unictype/pr_hyphen.h: Likewise.
8135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8137         * lib/unictype/pr_ignorable_control.h: Likewise.
8138         * lib/unictype/pr_iso_control.h: Likewise.
8139         * lib/unictype/pr_join_control.h: Likewise.
8140         * lib/unictype/pr_left_of_pair.h: Likewise.
8141         * lib/unictype/pr_line_separator.h: Likewise.
8142         * lib/unictype/pr_logical_order_exception.h: Likewise.
8143         * lib/unictype/pr_non_break.h: Likewise.
8144         * lib/unictype/pr_not_a_character.h: Likewise.
8145         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8146         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8147         * lib/unictype/pr_other_id_start.h: Likewise.
8148         * lib/unictype/pr_other_lowercase.h: Likewise.
8149         * lib/unictype/pr_other_uppercase.h: Likewise.
8150         * lib/unictype/pr_paired_punctuation.h: Likewise.
8151         * lib/unictype/pr_paragraph_separator.h: Likewise.
8152         * lib/unictype/pr_pattern_syntax.h: Likewise.
8153         * lib/unictype/pr_pattern_white_space.h: Likewise.
8154         * lib/unictype/pr_private_use.h: Likewise.
8155         * lib/unictype/pr_quotation_mark.h: Likewise.
8156         * lib/unictype/pr_radical.h: Likewise.
8157         * lib/unictype/pr_soft_dotted.h: Likewise.
8158         * lib/unictype/pr_space.h: Likewise.
8159         * lib/unictype/pr_titlecase.h: Likewise.
8160         * lib/unictype/pr_variation_selector.h: Likewise.
8161         * lib/unictype/pr_white_space.h: Likewise.
8162         * lib/unictype/pr_zero_width.h: Likewise.
8163         * lib/unictype/sy_c_ident.h: Likewise.
8164         * lib/unictype/sy_c_whitespace.h: Likewise.
8165         * lib/unictype/sy_java_whitespace.h: Likewise.
8166         * lib/uninorm/composition-table.gperf: Likewise.
8167         * lib/uninorm/decomposition-table1.h: Likewise.
8168         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8169         LB8.
8170         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8171         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8172         * modules/unictype/*: Bump version number of expected libunistring
8173         version.
8174
8175 2011-01-09  Bruno Haible  <bruno@clisp.org>
8176
8177         Update to Unicode 5.2.0.
8178         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8179         trailing whitespace removed.
8180
8181 2011-01-09  Bruno Haible  <bruno@clisp.org>
8182
8183         New Unicode character properties, from Unicode 5.2.0.
8184         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8185         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8186         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8187         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8188         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8189         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8190         uc_is_property_cased, uc_is_property_case_ignorable,
8191         uc_is_property_changes_when_lowercased,
8192         uc_is_property_changes_when_uppercased,
8193         uc_is_property_changes_when_titlecased,
8194         uc_is_property_changes_when_casefolded,
8195         uc_is_property_changes_when_casemapped): New declarations.
8196         * lib/unictype/pr_byname.gperf: Add the new properties.
8197         * modules/unictype/property-byname (Depends-on): Depend on the new
8198         properties modules.
8199         * modules/unictype/property-all (Depends-on): Likewise.
8200         * MODULES.html.sh (Unicode string functions): Add
8201         unictype/property-case-ignorable, unictype/property-cased,
8202         unictype/property-changes-when-casefolded,
8203         unictype/property-changes-when-casemapped,
8204         unictype/property-changes-when-lowercased,
8205         unictype/property-changes-when-titlecased,
8206         unictype/property-changes-when-uppercased.
8207
8208         New module 'unictype/property-changes-when-casemapped'.
8209         * modules/unictype/property-changes-when-casemapped: New file.
8210         * lib/unictype/pr_changes_when_casemapped.c: New file.
8211         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8212         generated by gen-uni-tables.
8213         * modules/unictype/property-changes-when-casemapped-tests: New file.
8214         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8215         automatically generated by gen-uni-tables.
8216
8217         New module 'unictype/property-changes-when-casefolded'.
8218         * modules/unictype/property-changes-when-casefolded: New file.
8219         * lib/unictype/pr_changes_when_casefolded.c: New file.
8220         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8221         generated by gen-uni-tables.
8222         * modules/unictype/property-changes-when-casefolded-tests: New file.
8223         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8224         automatically generated by gen-uni-tables.
8225
8226         New module 'unictype/property-changes-when-titlecased'.
8227         * modules/unictype/property-changes-when-titlecased: New file.
8228         * lib/unictype/pr_changes_when_titlecased.c: New file.
8229         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8230         generated by gen-uni-tables.
8231         * modules/unictype/property-changes-when-titlecased-tests: New file.
8232         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8233         automatically generated by gen-uni-tables.
8234
8235         New module 'unictype/property-changes-when-uppercased'.
8236         * modules/unictype/property-changes-when-uppercased: New file.
8237         * lib/unictype/pr_changes_when_uppercased.c: New file.
8238         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8239         generated by gen-uni-tables.
8240         * modules/unictype/property-changes-when-uppercased-tests: New file.
8241         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8242         automatically generated by gen-uni-tables.
8243
8244         New module 'unictype/property-changes-when-lowercased'.
8245         * modules/unictype/property-changes-when-lowercased: New file.
8246         * lib/unictype/pr_changes_when_lowercased.c: New file.
8247         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8248         generated by gen-uni-tables.
8249         * modules/unictype/property-changes-when-lowercased-tests: New file.
8250         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8251         automatically generated by gen-uni-tables.
8252
8253         New module 'unictype/property-case-ignorable'.
8254         * modules/unictype/property-case-ignorable: New file.
8255         * lib/unictype/pr_case_ignorable.c: New file.
8256         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8257         by gen-uni-tables.
8258         * modules/unictype/property-case-ignorable-tests: New file.
8259         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8260         generated by gen-uni-tables.
8261
8262         New module 'unictype/property-cased'.
8263         * modules/unictype/property-cased: New file.
8264         * lib/unictype/pr_cased.c: New file.
8265         * lib/unictype/pr_cased.h: New file, automatically generated by
8266         gen-uni-tables.
8267         * modules/unictype/property-cased-tests: New file.
8268         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8269         gen-uni-tables.
8270
8271 2011-01-09  Bruno Haible  <bruno@clisp.org>
8272
8273         Update to Unicode 5.2.0.
8274         * lib/gen-uni-tables.c (output_predicate, output_category,
8275         output_combclass, output_bidi_category, output_decimal_digit_test,
8276         output_decimal_digit, output_digit_test, output_digit,
8277         output_numeric_test, output_numeric, output_mirror, output_scripts,
8278         output_scripts_byname, output_blocks, output_ident_category): Fix
8279         comment header.
8280         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8281         get_wbp.
8282         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8283         items.
8284         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8285         Changes_When_Lowercased, Changes_When_Uppercased,
8286         Changes_When_Titlecased, Changes_When_Casefolded,
8287         Changes_When_Casemapped.
8288         (is_property_alphabetic, is_property_default_ignorable_code_point):
8289         Update for Unicode 5.2.0.
8290         (is_property_cased, is_property_case_ignorable,
8291         is_property_changes_when_lowercased,
8292         is_property_changes_when_uppercased,
8293         is_property_changes_when_titlecased,
8294         is_property_changes_when_casefolded,
8295         is_property_changes_when_casemapped): New functions.
8296         (output_properties): Output also the properties cased, case_ignorable,
8297         changes_when_lowercased, changes_when_uppercased,
8298         changes_when_titlecased, changes_when_casefolded,
8299         changes_when_casemapped.
8300         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8301         Unicode TR#11 revision 17 -> 19.
8302         (LBP_CP): New enumeration value.
8303         (LBP_*): Adjust values accordingly.
8304         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8305         TR#14 revision 22 -> 24.
8306         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8307         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8308         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8309         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8310         is_WBP_MIDLETTER.
8311         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8312         the code1 and code2 of each composition rule.
8313         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8314         * lib/unicase/ignorable.h: Likewise.
8315         * lib/unicase/tocasefold.h: Likewise.
8316         * lib/unicase/tolower.h: Likewise.
8317         * lib/unicase/totitle.h: Likewise.
8318         * lib/unicase/toupper.h: Likewise.
8319         * lib/unictype/bidi_of.h: Likewise.
8320         * lib/unictype/blocks.h: Likewise.
8321         * lib/unictype/categ_C.h: Likewise.
8322         * lib/unictype/categ_Cf.h: Likewise.
8323         * lib/unictype/categ_Cn.h: Likewise.
8324         * lib/unictype/categ_L.h: Likewise.
8325         * lib/unictype/categ_Ll.h: Likewise.
8326         * lib/unictype/categ_Lm.h: Likewise.
8327         * lib/unictype/categ_Lo.h: Likewise.
8328         * lib/unictype/categ_Lu.h: Likewise.
8329         * lib/unictype/categ_M.h: Likewise.
8330         * lib/unictype/categ_Mc.h: Likewise.
8331         * lib/unictype/categ_Mn.h: Likewise.
8332         * lib/unictype/categ_N.h: Likewise.
8333         * lib/unictype/categ_Nd.h: Likewise.
8334         * lib/unictype/categ_Nl.h: Likewise.
8335         * lib/unictype/categ_No.h: Likewise.
8336         * lib/unictype/categ_P.h: Likewise.
8337         * lib/unictype/categ_Pd.h: Likewise.
8338         * lib/unictype/categ_Po.h: Likewise.
8339         * lib/unictype/categ_S.h: Likewise.
8340         * lib/unictype/categ_Sc.h: Likewise.
8341         * lib/unictype/categ_So.h: Likewise.
8342         * lib/unictype/categ_of.h: Likewise.
8343         * lib/unictype/combining.h: Likewise.
8344         * lib/unictype/ctype_alnum.h: Likewise.
8345         * lib/unictype/ctype_alpha.h: Likewise.
8346         * lib/unictype/ctype_graph.h: Likewise.
8347         * lib/unictype/ctype_lower.h: Likewise.
8348         * lib/unictype/ctype_print.h: Likewise.
8349         * lib/unictype/ctype_punct.h: Likewise.
8350         * lib/unictype/ctype_upper.h: Likewise.
8351         * lib/unictype/decdigit.h: Likewise.
8352         * lib/unictype/digit.h: Likewise.
8353         * lib/unictype/numeric.h: Likewise.
8354         * lib/unictype/pr_alphabetic.h: Likewise.
8355         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8356         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8357         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8358         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8359         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8360         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8361         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8362         * lib/unictype/pr_combining.h: Likewise.
8363         * lib/unictype/pr_composite.h: Likewise.
8364         * lib/unictype/pr_currency_symbol.h: Likewise.
8365         * lib/unictype/pr_dash.h: Likewise.
8366         * lib/unictype/pr_decimal_digit.h: Likewise.
8367         * lib/unictype/pr_deprecated.h: Likewise.
8368         * lib/unictype/pr_diacritic.h: Likewise.
8369         * lib/unictype/pr_extender.h: Likewise.
8370         * lib/unictype/pr_grapheme_base.h: Likewise.
8371         * lib/unictype/pr_grapheme_extend.h: Likewise.
8372         * lib/unictype/pr_grapheme_link.h: Likewise.
8373         * lib/unictype/pr_id_continue.h: Likewise.
8374         * lib/unictype/pr_id_start.h: Likewise.
8375         * lib/unictype/pr_ideographic.h: Likewise.
8376         * lib/unictype/pr_ignorable_control.h: Likewise.
8377         * lib/unictype/pr_logical_order_exception.h: Likewise.
8378         * lib/unictype/pr_lowercase.h: Likewise.
8379         * lib/unictype/pr_numeric.h: Likewise.
8380         * lib/unictype/pr_other_alphabetic.h: Likewise.
8381         * lib/unictype/pr_punctuation.h: Likewise.
8382         * lib/unictype/pr_sentence_terminal.h: Likewise.
8383         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8384         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8385         * lib/unictype/pr_unified_ideograph.h: Likewise.
8386         * lib/unictype/pr_uppercase.h: Likewise.
8387         * lib/unictype/pr_xid_continue.h: Likewise.
8388         * lib/unictype/pr_xid_start.h: Likewise.
8389         * lib/unictype/pr_zero_width.h: Likewise.
8390         * lib/unictype/scripts.h: Likewise.
8391         * lib/unictype/scripts_byname.gperf: Likewise.
8392         * lib/unictype/sy_java_ident.h: Likewise.
8393         * lib/unigbrk/gbrkprop.h: Likewise.
8394         * lib/unilbrk/lbrkprop1.h: Likewise.
8395         * lib/unilbrk/lbrkprop2.h: Likewise.
8396         * lib/unilbrk/lbrktables.h: Likewise.
8397         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8398         LBP_CP. Implement rule LB30.
8399         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8400         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8401         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8402         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8403         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8404         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8405         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8406         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8407         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8408         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8409         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8410         bits instead of 16 bits in the code1 and code2 of each composition
8411         rule.
8412         (uc_composition): Update for Unicode 5.2.0.
8413         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8414         * lib/uninorm/decomposition-table2.h: Likewise.
8415         * lib/uniwbrk/wbrkprop.h: Likewise.
8416         * tests/unicase/test-cased.c: Likewise.
8417         * tests/unicase/test-ignorable.c: Likewise.
8418         * tests/unicase/test-uc_tolower.c: Likewise.
8419         * tests/unicase/test-uc_totitle.c: Likewise.
8420         * tests/unicase/test-uc_toupper.c: Likewise.
8421         * tests/unictype/test-categ_C.c: Likewise.
8422         * tests/unictype/test-categ_Cf.c: Likewise.
8423         * tests/unictype/test-categ_Cn.c: Likewise.
8424         * tests/unictype/test-categ_L.c: Likewise.
8425         * tests/unictype/test-categ_Ll.c: Likewise.
8426         * tests/unictype/test-categ_Lm.c: Likewise.
8427         * tests/unictype/test-categ_Lo.c: Likewise.
8428         * tests/unictype/test-categ_Lu.c: Likewise.
8429         * tests/unictype/test-categ_M.c: Likewise.
8430         * tests/unictype/test-categ_Mc.c: Likewise.
8431         * tests/unictype/test-categ_Mn.c: Likewise.
8432         * tests/unictype/test-categ_N.c: Likewise.
8433         * tests/unictype/test-categ_Nd.c: Likewise.
8434         * tests/unictype/test-categ_Nl.c: Likewise.
8435         * tests/unictype/test-categ_No.c: Likewise.
8436         * tests/unictype/test-categ_P.c: Likewise.
8437         * tests/unictype/test-categ_Pd.c: Likewise.
8438         * tests/unictype/test-categ_Po.c: Likewise.
8439         * tests/unictype/test-categ_S.c: Likewise.
8440         * tests/unictype/test-categ_Sc.c: Likewise.
8441         * tests/unictype/test-categ_So.c: Likewise.
8442         * tests/unictype/test-ctype_alnum.c: Likewise.
8443         * tests/unictype/test-ctype_alpha.c: Likewise.
8444         * tests/unictype/test-ctype_graph.c: Likewise.
8445         * tests/unictype/test-ctype_lower.c: Likewise.
8446         * tests/unictype/test-ctype_print.c: Likewise.
8447         * tests/unictype/test-ctype_punct.c: Likewise.
8448         * tests/unictype/test-ctype_upper.c: Likewise.
8449         * tests/unictype/test-decdigit.h: Likewise.
8450         * tests/unictype/test-digit.h: Likewise.
8451         * tests/unictype/test-numeric.h: Likewise.
8452         * tests/unictype/test-pr_alphabetic.c: Likewise.
8453         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8454         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8455         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8456         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8457         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8458         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8459         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8460         * tests/unictype/test-pr_combining.c: Likewise.
8461         * tests/unictype/test-pr_composite.c: Likewise.
8462         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8463         * tests/unictype/test-pr_dash.c: Likewise.
8464         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8465         * tests/unictype/test-pr_deprecated.c: Likewise.
8466         * tests/unictype/test-pr_diacritic.c: Likewise.
8467         * tests/unictype/test-pr_extender.c: Likewise.
8468         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8469         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8470         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8471         * tests/unictype/test-pr_id_continue.c: Likewise.
8472         * tests/unictype/test-pr_id_start.c: Likewise.
8473         * tests/unictype/test-pr_ideographic.c: Likewise.
8474         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8475         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8476         * tests/unictype/test-pr_lowercase.c: Likewise.
8477         * tests/unictype/test-pr_numeric.c: Likewise.
8478         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8479         * tests/unictype/test-pr_punctuation.c: Likewise.
8480         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8482         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8483         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8484         * tests/unictype/test-pr_uppercase.c: Likewise.
8485         * tests/unictype/test-pr_xid_continue.c: Likewise.
8486         * tests/unictype/test-pr_xid_start.c: Likewise.
8487         * tests/unictype/test-pr_zero_width.c: Likewise.
8488         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8489         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8490         changed behaviour: line breaking is now disallowed between a letter
8491         or '=' and '('.
8492         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8493         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8494         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8495         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8496         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8497         lib/uniwidth/width.c.
8498         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8499         without comments, but with the original copyright notice.
8500         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8501         changes.
8502         * lib/unictype/categ_Cc.h: Likewise.
8503         * lib/unictype/categ_Co.h: Likewise.
8504         * lib/unictype/categ_Cs.h: Likewise.
8505         * lib/unictype/categ_Lt.h: Likewise.
8506         * lib/unictype/categ_Me.h: Likewise.
8507         * lib/unictype/categ_Pc.h: Likewise.
8508         * lib/unictype/categ_Pe.h: Likewise.
8509         * lib/unictype/categ_Pf.h: Likewise.
8510         * lib/unictype/categ_Pi.h: Likewise.
8511         * lib/unictype/categ_Ps.h: Likewise.
8512         * lib/unictype/categ_Sk.h: Likewise.
8513         * lib/unictype/categ_Sm.h: Likewise.
8514         * lib/unictype/categ_Z.h: Likewise.
8515         * lib/unictype/categ_Zl.h: Likewise.
8516         * lib/unictype/categ_Zp.h: Likewise.
8517         * lib/unictype/categ_Zs.h: Likewise.
8518         * lib/unictype/ctype_blank.h: Likewise.
8519         * lib/unictype/ctype_cntrl.h: Likewise.
8520         * lib/unictype/ctype_digit.h: Likewise.
8521         * lib/unictype/ctype_space.h: Likewise.
8522         * lib/unictype/ctype_xdigit.h: Likewise.
8523         * lib/unictype/mirror.h: Likewise.
8524         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8525         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8526         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8527         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8528         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8529         * lib/unictype/pr_bidi_control.h: Likewise.
8530         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8531         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8532         * lib/unictype/pr_bidi_pdf.h: Likewise.
8533         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8534         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8535         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8536         * lib/unictype/pr_format_control.h: Likewise.
8537         * lib/unictype/pr_hex_digit.h: Likewise.
8538         * lib/unictype/pr_hyphen.h: Likewise.
8539         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8540         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8541         * lib/unictype/pr_iso_control.h: Likewise.
8542         * lib/unictype/pr_join_control.h: Likewise.
8543         * lib/unictype/pr_left_of_pair.h: Likewise.
8544         * lib/unictype/pr_line_separator.h: Likewise.
8545         * lib/unictype/pr_math.h: Likewise.
8546         * lib/unictype/pr_non_break.h: Likewise.
8547         * lib/unictype/pr_not_a_character.h: Likewise.
8548         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8549         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8550         * lib/unictype/pr_other_id_continue.h: Likewise.
8551         * lib/unictype/pr_other_id_start.h: Likewise.
8552         * lib/unictype/pr_other_lowercase.h: Likewise.
8553         * lib/unictype/pr_other_math.h: Likewise.
8554         * lib/unictype/pr_other_uppercase.h: Likewise.
8555         * lib/unictype/pr_paired_punctuation.h: Likewise.
8556         * lib/unictype/pr_paragraph_separator.h: Likewise.
8557         * lib/unictype/pr_pattern_syntax.h: Likewise.
8558         * lib/unictype/pr_pattern_white_space.h: Likewise.
8559         * lib/unictype/pr_private_use.h: Likewise.
8560         * lib/unictype/pr_quotation_mark.h: Likewise.
8561         * lib/unictype/pr_radical.h: Likewise.
8562         * lib/unictype/pr_soft_dotted.h: Likewise.
8563         * lib/unictype/pr_space.h: Likewise.
8564         * lib/unictype/pr_titlecase.h: Likewise.
8565         * lib/unictype/pr_variation_selector.h: Likewise.
8566         * lib/unictype/pr_white_space.h: Likewise.
8567         * lib/unictype/sy_c_ident.h: Likewise.
8568         * lib/unictype/sy_c_whitespace.h: Likewise.
8569         * lib/unictype/sy_java_whitespace.h: Likewise.
8570         * modules/uni*/*: Bump version number of expected libunistring version.
8571         Reported by Simon Josefsson.
8572
8573 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8574
8575         useless-if-before-free: fix typo in --help and make the internal,
8576         automatic version date update process work once again.
8577         --help output contained a NUL character instead of the
8578         backslash-zero that was intended.  Also, the "must lie within
8579         the first 8 lines" line is on line 9, and hence not getting
8580         automatically updated.
8581         * build-aux/useless-if-before-free: Fix the former by adding a
8582         backslash, and the latter by condensing the three lines of what-it-does
8583         to a single line, leaving one line of slack for the future.
8584
8585 2011-01-09  Bruno Haible  <bruno@clisp.org>
8586
8587         uniwidth/width: Fix width of U+1D173..U+1D17A.
8588         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8589         symbolic_width, output_width_property_test): New functions.
8590         (main): Invoke output_nonspacing_property, output_width_property_test.
8591         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8592         U+1D173..U+1D17A.
8593         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8594         1.
8595         * modules/uniwidth/*: Bump version number of expected libunistring
8596         version.
8597         * modules/unilbrk/*: Likewise.
8598
8599 2011-01-08  Bruno Haible  <bruno@clisp.org>
8600
8601         uninorm tests: Preserve copyright of Unicode data file.
8602         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8603         Mention modifications.
8604
8605 2011-01-08  Bruno Haible  <bruno@clisp.org>
8606
8607         gen-uni-tables: Prepare for Unicode 5.2.0.
8608         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8609         (debug_output_lbp, output_lbp): Update.
8610
8611 2011-01-08  Bruno Haible  <bruno@clisp.org>
8612
8613         unilbrk: Clarify gen-uni-tables.c code.
8614         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8615         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8616         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8617
8618 2011-01-07  Bruno Haible  <bruno@clisp.org>
8619
8620         strtod: Restore errno when successfully parsing Infinity or NaN.
8621         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8622         restore the original errno.
8623
8624 2011-01-07  Bruno Haible  <bruno@clisp.org>
8625
8626         remove test: Avoid failure on HP-UX 11.
8627         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8628
8629 2011-01-07  Bruno Haible  <bruno@clisp.org>
8630
8631         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8632         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8633         error code.
8634
8635 2011-01-07  Pádraig Brady <P@draigBrady.com>
8636
8637         ignore-value: fixup comments, and add Eric Blake
8638         as an author since he rewrote the macros.
8639         * lib/ignore-value.h (ignore_value):  State that
8640         we now support aggregates.  Also specify exactly
8641         when the GCC warn_unused_result feature was added.
8642
8643 2011-01-06  Eric Blake  <eblake@redhat.com>
8644
8645         ignore-value: support aggregate types
8646         * lib/ignore-value.h (ignore_value): Provide separate gcc
8647         definition.
8648         * modules/ignore-value-tests: New test module.
8649         * tests/test-ignore-value.c: New test.
8650
8651         maint.mk: improve sc_prohibit_strcmp regex
8652         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8653         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8654         definition of STRNEQ.
8655
8656         signal: work around Haiku issue with SIGBUS
8657         * lib/siglist.h: Add comment.
8658         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8659         strsignal's favoring of SIGSEGV.
8660         * tests/test-signal.c (main): Avoid test failure.
8661         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8662         Reported by Scott McCreary.
8663
8664         maint.mk: add pre-release check to ensure submodule commits are public
8665         * top/maint.mk (public-submodule-commit): New rule.
8666         (submodule-checks): New variable.
8667         (alpha beta stable): Depend on the variable.
8668
8669 2011-01-05  Pádraig Brady <P@draigBrady.com>
8670         and Jim Meyering  <meyering@redhat.com>
8671
8672         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8673         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8674         (ATTRIBUTE_DEPRECATED): Define.
8675         (_ignore_case): New function.
8676         (ignore_value): New macro, to replace the old function.
8677         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8678         * modules/ignore-value (Depends-on): Add stdint.
8679
8680 2011-01-04  Eric Blake  <eblake@redhat.com>
8681
8682         doc: regenerate INSTALL
8683         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8684         @firstparagraphindent support, now that autoconf dropped it.
8685         (INSTALL_PRELUDE): Reinstate old macro.
8686         * doc/install.texi: Resync from autoconf.
8687         * doc/INSTALL: Reflect recent autoconf update.
8688         * doc/INSTALL.ISO: Likewise.
8689         * doc/INSTALL.UTF-8: Likewise.
8690         Reported by Karl Berry.
8691
8692 2011-01-04  Bruce Korb  <address@hidden>
8693
8694         git-version-gen: avoid a sub-shell
8695         * build-aux/git-version-gen: Redirect stderr in `...` via
8696         "exec 2>...", rather than via an added sub-shell.
8697
8698 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8699
8700         git-version-gen: use (...) rather than sh -c '...'
8701         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8702         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8703
8704 2011-01-03  Jim Meyering  <meyering@redhat.com>
8705
8706         git-version-gen: convert leading TABs to spaces
8707         * build-aux/git-version-gen: Expand leading TABs.
8708
8709         git-version-gen: handle failed "git rev-list"
8710         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8711         from git and proceeding as if it had succeeded but printed no SHA1
8712         checksums, suppress the diagnostic and handle the failure.
8713         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8714
8715         git-version-gen: include command name in one more diagnostic
8716         * build-aux/git-version-gen: When the required .tarball-version file
8717         was missing or unreadable, you might see the diagnostic from "cat",
8718         but no trace of the name of the invoking script.  Now, you still see
8719         the diagnostic from cat, but also get one from "git-version-gen: ".
8720         Inspired by a patch from Bruce Korb.
8721
8722         update-copyright: adjust test to match changed code
8723         * tests/test-update-copyright.sh: Change test's expected output
8724         to match new actual output.
8725
8726 2011-01-02  Bruno Haible  <bruno@clisp.org>
8727
8728         getlogin_r: Avoid test failure on HP-UX 11.
8729         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8730         ERANGE when the second argument is zero.
8731         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8732         portability problem.
8733
8734 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8735
8736         * build-aux/update-copyright: doc Simon's changes
8737
8738 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8739
8740         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8741         environment variable.
8742
8743 2011-01-02  Bruno Haible  <bruno@clisp.org>
8744
8745         unigbrk: Avoid gcc warnings.
8746         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8747         unused variable.
8748         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8749         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8750         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8751         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8752         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8753         Change type of first argument to 'const char *'.
8754         (main): Remove unused variable.
8755         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8756         type of first argument to 'const char *'.
8757         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8758         Likewise.
8759         (main): Change type of variable 's'.
8760         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8761         to 'int'.
8762
8763 2011-01-02  Bruno Haible  <bruno@clisp.org>
8764
8765         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8766         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8767         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8768         bug.
8769         * lib/pwrite.c: Undo 2010-12-31 patch.
8770         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8771
8772 2011-01-02  Bruno Haible  <bruno@clisp.org>
8773
8774         pread: Fix test whether it works.
8775         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8776
8777 2011-01-02  Bruno Haible  <bruno@clisp.org>
8778
8779         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8780         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8781         ends in "6". Don't require a specific month name. Try also the locale
8782         names found on HP-UX 11 and Solaris 7.
8783
8784 2011-01-02  Bruno Haible  <bruno@clisp.org>
8785
8786         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8787         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8788         C linkage.
8789         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8790
8791 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8792
8793         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8794         for consistency, since the "cluster" term is not used elsewhere.
8795         * lib/unigbrk.in.h: Update name.
8796         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8797         * lib/unigbrk/u16-grapheme-next.c: Update name.
8798         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8799         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8800         * lib/unigbrk/u32-grapheme-next.c: Update name.
8801         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8802         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8803         * lib/unigbrk/u8-grapheme-next.c: Update name.
8804         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8805         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8806         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8807         Suggested by Bruno Haible.
8808
8809 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8810
8811         Remove module 'u8-grapheme-len' as too redundant with
8812         'u8-grapheme-next'.
8813         * modules/unigbrk/u8-grapheme-len: Delete file.
8814         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8815         * lib/unigbrk.in.h: Remove prototype for deleted function.
8816         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8817         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8818
8819         Remove module 'u16-grapheme-len' as too redundant with
8820         'u16-grapheme-next'.
8821         * modules/unigbrk/u16-grapheme-len: Delete file.
8822         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8823         * lib/unigbrk.in.h: Remove prototype for deleted function.
8824         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8825         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8826
8827         Remove module 'u32-grapheme-len' as too redundant with
8828         'u32-grapheme-next'.
8829         * modules/unigbrk/u32-grapheme-len: Delete file.
8830         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8831         * lib/unigbrk.in.h: Remove prototype for deleted function.
8832         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8833         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8834
8835         Suggested by Bruno Haible.
8836
8837 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8838
8839         * unigbrk.in.h: Fix typo: "ben" => "been".
8840         Reported by Bruno Haible.
8841
8842 2011-01-01  Jim Meyering  <meyering@redhat.com>
8843
8844         maint: update almost all copyright ranges to include 2011
8845         Run the new "make update-copyright" rule.
8846
8847 2011-01-01  Jim Meyering  <meyering@redhat.com>
8848
8849         maint: update-copyright: exempt doc/INSTALL*
8850         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8851         since they are generated.  Suggested by Bruno Haible.
8852
8853 2011-01-01  Jim Meyering  <meyering@redhat.com>
8854
8855         maint: refine the update-copyright rule
8856         * Makefile (update-copyright): Also exclude any file that includes
8857         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8858         code that merely generates the comment.
8859
8860 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8861
8862         New module 'u8-grapheme-len'.
8863         * modules/unigbrk/u8-grapheme-len: New file.
8864         * modules/unigbrk/u8-grapheme-len-tests: New file.
8865         * lib/unigbrk.in.h: Add prototype for new function.
8866         * lib/unigbrk/u8-grapheme-len.c: New file.
8867         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8868
8869         New module 'u16-grapheme-len'.
8870         * modules/unigbrk/u16-grapheme-len: New file.
8871         * modules/unigbrk/u16-grapheme-len-tests: New file.
8872         * lib/unigbrk.in.h: Add prototype for new function.
8873         * lib/unigbrk/u16-grapheme-len.c: New file.
8874         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8875
8876         New module 'u32-grapheme-len'.
8877         * modules/unigbrk/u32-grapheme-len: New file.
8878         * modules/unigbrk/u32-grapheme-len-tests: New file.
8879         * lib/unigbrk.in.h: Add prototype for new function.
8880         * lib/unigbrk/u32-grapheme-len.c: New file.
8881         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8882
8883         New module 'u8-grapheme-next'.
8884         * modules/unigbrk/u8-grapheme-next: New file.
8885         * modules/unigbrk/u8-grapheme-next-tests: New file.
8886         * lib/unigbrk.in.h: Add prototype for new function.
8887         * lib/unigbrk/u8-grapheme-next.c: New file.
8888         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8889
8890         New module 'u16-grapheme-next'.
8891         * modules/unigbrk/u16-grapheme-next: New file.
8892         * modules/unigbrk/u16-grapheme-next-tests: New file.
8893         * lib/unigbrk.in.h: Add prototype for new function.
8894         * lib/unigbrk/u16-grapheme-next.c: New file.
8895         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8896
8897         New module 'u32-grapheme-next'.
8898         * modules/unigbrk/u32-grapheme-next: New file.
8899         * modules/unigbrk/u32-grapheme-next-tests: New file.
8900         * lib/unigbrk.in.h: Add prototype for new function.
8901         * lib/unigbrk/u32-grapheme-next.c: New file.
8902         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8903
8904         New module 'u8-grapheme-prev'.
8905         * modules/unigbrk/u8-grapheme-prev: New file.
8906         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8907         * lib/unigbrk.in.h: Add prototype for new function.
8908         * lib/unigbrk/u8-grapheme-prev.c: New file.
8909         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8910
8911         New module 'u16-grapheme-prev'.
8912         * modules/unigbrk/u16-grapheme-prev: New file.
8913         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8914         * lib/unigbrk.in.h: Add prototype for new function.
8915         * lib/unigbrk/u16-grapheme-prev.c: New file.
8916         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8917
8918         New module 'u32-grapheme-prev'.
8919         * modules/unigbrk/u32-grapheme-prev: New file.
8920         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8921         * lib/unigbrk.in.h: Add prototype for new function.
8922         * lib/unigbrk/u32-grapheme-prev.c: New file.
8923         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8924
8925         New module 'u8-grapheme-breaks'.
8926         * modules/unigbrk/u8-grapheme-breaks: New file.
8927         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8928         * lib/unigbrk.in.h: Add prototype for new function.
8929         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8930         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8931
8932         New module 'u16-grapheme-breaks'.
8933         * modules/unigbrk/u16-grapheme-breaks: New file.
8934         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8935         * lib/unigbrk.in.h: Add prototype for new function.
8936         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8937         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8938
8939         New module 'u32-grapheme-breaks'.
8940         * modules/unigbrk/u32-grapheme-breaks: New file.
8941         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8942         * lib/unigbrk.in.h: Add prototype for new function.
8943         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8944         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8945
8946         New module 'ulc-grapheme-breaks'.
8947         * modules/unigbrk/ulc-grapheme-breaks: New file.
8948         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8949         * m4/locale-ar.m4: New file.
8950         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8951         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8952         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8953
8954 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8955
8956         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8957         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8958         modified how this file was generated before I initially submitted
8959         the module, but failed to regenerate it.  This meant that several
8960         of the level2 entries were wrong.
8961         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8962         Remove the division-by-2 that is folded into the table now that
8963         gbrkprop.h has been regenerated properly.  Now -1 entries are
8964         handled correctly.
8965
8966         New module 'unigbrk/uc-gbrk-prop-tests'.
8967         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8968         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8969         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8970         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8971
8972 2011-01-01  Bruno Haible  <bruno@clisp.org>
8973
8974         Avoid use of hexadecimal escapes.
8975         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8976         instead of hexadecimal escapes.
8977
8978 2011-01-01  Jim Meyering  <meyering@redhat.com>
8979
8980         maint: new rule to update copyright year ranges
8981         * Makefile (update-copyright): New rule.
8982
8983         maint: indent with TABs in Makefile
8984         * Makefile: Expand leading sequences of spaces to TABs
8985
8986         version-etc: update the copyright year it reports
8987         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8988
8989 2010-12-31  Bruno Haible  <bruno@clisp.org>
8990
8991         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8992         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8993         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8994         zero.
8995
8996 2010-12-31  Bruno Haible  <bruno@clisp.org>
8997
8998         pwrite: Work around HP-UX 11.11 bug.
8999         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9000         works and set REPLACE_PWRITE if not.
9001         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9002         function.
9003         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9004
9005 2010-12-31  Bruno Haible  <bruno@clisp.org>
9006
9007         pread: Work around HP-UX 11 bugs.
9008         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9009         and set REPLACE_PREAD if not.
9010         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9011
9012 2010-12-31  Eric Blake  <eblake@redhat.com>
9013
9014         nl_langinfo: fix YESEXPR on Irix 6.5
9015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9016         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9017         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9018         it.
9019
9020 2010-12-31  Bruno Haible  <bruno@clisp.org>
9021
9022         iconv: Document HP-UX 11 bug.
9023         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9024
9025 2010-12-31  Bruno Haible  <bruno@clisp.org>
9026
9027         ldexpl: Fix link error on HP-UX 11.
9028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9029         LDEXPL_LIBM, using $ISNANL_LIBM.
9030
9031 2010-12-31  Eric Blake  <eblake@redhat.com>
9032
9033         ftello: avoid compilation failure with SunStudio c89
9034         * lib/ftello.c (ftello): Use lseek, not llseek.
9035
9036         tests: avoid failing coreutils tests on cygwin
9037         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9038         (create_exe_shims_): Return 0 when skipping.
9039
9040 2010-12-31  Bruno Haible  <bruno@clisp.org>
9041
9042         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9043         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9044
9045 2010-12-31  Bruno Haible  <bruno@clisp.org>
9046
9047         waitpid: Fix link error in C++ mode.
9048         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9049
9050 2010-12-31  Bruno Haible  <bruno@clisp.org>
9051
9052         isnan: Use GCC built-ins when possible.
9053         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9054         __builtin_isnan.
9055         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9056         (isnan): Define using GCC built-ins for GCC >= 4.0.
9057
9058 2010-12-31  Bruno Haible  <bruno@clisp.org>
9059
9060         isnand: Fix mistake.
9061         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9062         __builtin_isnand.
9063
9064 2010-12-31  Bruno Haible  <bruno@clisp.org>
9065
9066         open: Avoid C++ error on HP-UX 11.
9067         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9068
9069 2010-12-31  Bruno Haible  <bruno@clisp.org>
9070
9071         time_r: Add missing declarations on HP-UX 11.
9072         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9073         instead of HAVE_LOCALTIME_R.
9074         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9075         HAVE_LOCALTIME_R always.
9076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9077         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9078         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9079         HAVE_LOCALTIME_R.
9080         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9081         * doc/posix-functions/localtime_r.texi: Likewise.
9082
9083 2010-12-29  Eric Blake  <eblake@redhat.com>
9084
9085         mountlist: tweak previous commit
9086         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9087         Reported by Paul Eggert.
9088
9089         mountlist: fix local drive detection on cygwin
9090         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9091         that works for cygwin.
9092
9093 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9094
9095         ftoastr, snprintf: ftoastr + snprintf module
9096         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9097         since the snprintf module now should be good enough here.
9098         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9099         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9100         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9101         GNULIB_SNPRINTF only for the test directory, and the latter
9102         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9103         seems to suffice by itself.
9104
9105 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9106
9107         alloca: one step towards thread-safety
9108         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9109         need for a static variable.  All callers changed.  This does not
9110         make the alloca replacement thread-safe, but it's one step.
9111
9112         tests: minor indenting change
9113         * tests/init.sh: Sync from coreutils housekeeping patch
9114         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9115         to keep lines within 80 columns.
9116
9117 2010-12-28  Jim Meyering  <meyering@redhat.com>
9118
9119         regex: don't infloop on persistent failing calloc
9120         * lib/regexec.c (build_trtable): Return failure indication upon
9121         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9122         In glibc, this was fixed for version 2.13:
9123         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9124
9125 2010-12-28  Bruno Haible  <bruno@clisp.org>
9126             Paul Eggert <eggert@cs.ucla.edu>
9127
9128         linkat: Make implementation robust against system behaviour variations.
9129         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9130         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9131         way, and to -2 if it needs a generic runtime test.
9132         * lib/linkat.c (solaris_optimized_link_immediate,
9133         solaris_optimized_link_follow): New functions.
9134         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9135         (check_same_link): Use it.
9136
9137 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9138
9139         New module 'unigbrk/base'.
9140         * modules/unigbrk/base: New file.
9141         * lib/unigbrk.in.h: New file.
9142
9143         New module 'unigbrk/uc-gbrk-prop'.
9144         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9145         * modules/unigbrk/uc-gbrk-prop: New file.
9146         * lib/unigbrk/gbrkprop.h: New file.
9147         * lib/unigbrk/uc-gbrk-prop.c: New file.
9148
9149         New module 'unigbrk/uc-is-grapheme-break'.
9150         * modules/unigbrk/uc-is-grapheme-break: New file.
9151         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9152         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9153         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9154         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9155         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9156
9157         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9158
9159 2010-12-27  Bruno Haible  <bruno@clisp.org>
9160
9161         linkat test: Avoid failure on Solaris 11 2010-11.
9162         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9163
9164 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9165
9166         utimens: work around glibc rounding bug on more platforms
9167         * lib/utimens.c (fdutimens): Work around rounding bug even if
9168         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9170
9171 2010-12-27  Bruno Haible  <bruno@clisp.org>
9172
9173         select tests: Improve comments.
9174         * tests/test-select.c (do_select): Add comments.
9175
9176 2010-12-27  Bruno Haible  <bruno@clisp.org>
9177
9178         select tests: Safer way of handling timeout.
9179         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9180         at every invocation.
9181
9182 2010-12-27  Bruno Haible  <bruno@clisp.org>
9183
9184         select tests: Use 'bool' where appropriate.
9185         * tests/test-select.c (connect_to_socket): Change argument type to
9186         'bool'.
9187
9188 2010-12-27  Bruno Haible  <bruno@clisp.org>
9189
9190         select tests: Use existing modules.
9191         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9192         (configure.ac): Don't test for unistd.h.
9193         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9194         declared in <unistd.h>.
9195
9196 2010-12-27  Bruno Haible  <bruno@clisp.org>
9197
9198         mbrtowc: Work around a Solaris 7 bug.
9199         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9200         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9201         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9202         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9203         MBRTOWC_NULL_ARG1_BUG.
9204         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9205         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9206         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9207         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9208
9209 2010-12-27  Jim Meyering  <meyering@redhat.com>
9210
9211         read-file.c: tweak syntax
9212         * lib/read-file.c (fread_file): Remove space after "*" in function
9213         definitions.
9214
9215 2010-12-27  Bruno Haible  <bruno@clisp.org>
9216
9217         times test: Avoid gcc warnings on OSF/1.
9218         * tests/test-times.c (main): Cast printf arguments from clock_t to
9219         'long int'.
9220
9221 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9222
9223         utimens: work around glibc rounding bug on older Linux kernels
9224         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9225         on Linux with a glibc whose utimes might not work, then work
9226         around a longstanding glibc bug involving rounding rather than
9227         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9229
9230 2010-12-26  Bruno Haible  <bruno@clisp.org>
9231
9232         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9233         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9234         _GL_CXXALIAS_SYS.
9235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9236
9237 2010-12-26  Bruno Haible  <bruno@clisp.org>
9238
9239         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9240         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9242         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9243         looking for the declaration.
9244         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9245         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9246         problem.
9247         * doc/posix-functions/inet_pton.texi: Likewise.
9248
9249 2010-12-26  Bruno Haible  <bruno@clisp.org>
9250
9251         arpa_inet: Use the common idioms with C++ support.
9252         * lib/arpa_inet.in.h: Include c++defs.h.
9253         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9254         support.
9255         * modules/arpa_inet (Depends-on): Add c++defs.
9256         (Makefile.am): Substitute the contents of c++defs.h.
9257         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9258         * modules/arpa_inet-c++-tests: New file.
9259         * tests/test-arpa_inet-c++.cc: New file.
9260
9261 2010-12-25  Bruno Haible  <bruno@clisp.org>
9262
9263         Fix more C++ link errors on Solaris 8.
9264         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9265         $(LIB_EACCESS).
9266         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9267         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9268         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9269         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9270         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9271
9272 2010-12-25  Bruno Haible  <bruno@clisp.org>
9273
9274         printf-posix: Fix link error when a non-GCC compiler is used.
9275         * lib/stdio.in.h (printf): When not using GCC, override printf
9276         correctly.
9277         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9278
9279 2010-12-25  Bruno Haible  <bruno@clisp.org>
9280
9281         strerror_r-posix: Update doc.
9282         * doc/posix-functions/strerror_r.texi: Update doc about the return
9283         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9284
9285 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         utimens: simplify the logic of the previous change
9288         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9289         This should not affect whether the test succeeds or fails.
9290
9291         utimens: configure better on hosts with NFS clock skew
9292         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9293         uses the clock of the local host.  It might use the clock of the
9294         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9296
9297 2010-12-25  Bruno Haible  <bruno@clisp.org>
9298
9299         ptsname test: Avoid failure on Solaris.
9300         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9301         open a pseudo-terminal; don't use BSD-style ptys.
9302         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9303
9304 2010-12-25  Bruno Haible  <bruno@clisp.org>
9305
9306         ptsname: Avoid ERANGE failure on some systems.
9307         * lib/ptsname.c (buffer): Increase size.
9308
9309 2010-12-25  Bruno Haible  <bruno@clisp.org>
9310
9311         rename, renameat: Avoid test failures at NFS mounted locations.
9312         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9313         so that subsequent mkdir calls succeed.
9314
9315 2010-12-25  Bruno Haible  <bruno@clisp.org>
9316
9317         iswblank: Fix C++ link error on Solaris 8.
9318         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9319         _GL_FUNCDECL_SYS.
9320
9321 2010-12-25  Bruno Haible  <bruno@clisp.org>
9322
9323         unistd: Fix C++ link error on Solaris 8.
9324         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9325
9326 2010-12-25  Bruno Haible  <bruno@clisp.org>
9327
9328         readlink doc: Mention an old glibc bug.
9329         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9330
9331 2010-12-25  Bruno Haible  <bruno@clisp.org>
9332
9333         fcntl-h: Fix for use of C++ on glibc systems.
9334         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9335         also on glibc systems in C++ mode.
9336         Reported by Gary V. Vaughan <gary@gnu.org>.
9337
9338 2010-12-25  Bruno Haible  <bruno@clisp.org>
9339
9340         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9341         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9342
9343 2010-12-25  Bruno Haible  <bruno@clisp.org>
9344
9345         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9346         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9347         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9348         test whether truncl works according to ISO C 99 with IEC 60559.
9349         * m4/truncl-ieee.m4: New file.
9350         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9351         m4/signbit.m4.
9352         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9353
9354 2010-12-25  Bruno Haible  <bruno@clisp.org>
9355
9356         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9357         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9358         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9359         test whether ceill works according to ISO C 99 with IEC 60559.
9360         * m4/ceill-ieee.m4: New file.
9361         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9362         m4/signbit.m4.
9363         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9364
9365 2010-12-25  Bruno Haible  <bruno@clisp.org>
9366
9367         Ensure all prerequisites of <wchar.h> are included.
9368         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9369         before <wchar.h>.
9370         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9371         gl_MBRLEN_NUL_RETVAL): Likewise.
9372         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9373         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9374         AC_FUNC_MBRTOWC): Likewise.
9375         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9376         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9377         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9378         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9379         Likewise.
9380         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9381         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9382         (gl_WCHAR_H): Improve comments.
9383         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9384
9385 2010-12-25  Bruno Haible  <bruno@clisp.org>
9386
9387         strtok_r: Fix C syntax error in autoconf macro.
9388         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9389         characters in test program.
9390
9391 2010-12-24  Bruno Haible  <bruno@clisp.org>
9392
9393         ceil, trunc, round: Fix gcc warnings.
9394         * lib/ceil.c (MIN): Undefine before redefining.
9395         * lib/trunc.c (MIN): Likewise.
9396         * lib/round.c (MIN): Likewise.
9397         Include <math.h> first.
9398
9399 2010-12-24  Bruno Haible  <bruno@clisp.org>
9400
9401         select tests: Avoid failures on OSF/1 5.1.
9402         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9403         failure of closing the last socket; it may fail with ECONNRESET.
9404
9405 2010-12-24  Eric Blake  <eblake@redhat.com>
9406
9407         stdint: avoid HP-UX 10.20 preprocessor bug
9408         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9409         than #if.
9410         * tests/test-floor2.c (main): Likewise.
9411         Reported by Peter O'Gorman.
9412
9413         pipe: make obsoletion transition easier
9414         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9415         * modules/pipe (Files): Include revived file.
9416         (Include): Drop reference, to mirror getdate's behavior.
9417
9418 2010-12-24  Bruno Haible  <bruno@clisp.org>
9419
9420         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9421         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9422         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9423         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9424
9425 2010-12-24  Bruno Haible  <bruno@clisp.org>
9426
9427         gethostname: Ensure declaration on NonStop Kernel.
9428         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9430
9431 2010-12-24  Bruno Haible  <bruno@clisp.org>
9432
9433         sys_select: Ensure all necessary types on NonStop Kernel.
9434         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9435         include <sys/time.h>.
9436         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9437         NonStop Kernel.
9438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9439
9440 2010-12-24  Bruno Haible  <bruno@clisp.org>
9441
9442         sys_select: Remove unneeded include.
9443         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9444         have <sys/select.h>.
9445
9446 2010-12-24  Bruno Haible  <bruno@clisp.org>
9447
9448         gethostname: Provide a fallback for HOST_NAME_MAX.
9449         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9450         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9451         instead.
9452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9453
9454 2010-12-24  Bruno Haible  <bruno@clisp.org>
9455
9456         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9457         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9458         (SA_RESTART): Likewise.
9459         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9460
9461 2010-12-24  Bruno Haible  <bruno@clisp.org>
9462
9463         signal: Define NSIG.
9464         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9465         * tests/test-signal.c (nsig): New variable.
9466         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9467
9468 2010-12-24  Bruno Haible  <bruno@clisp.org>
9469
9470         rename, renameat: Avoid test failures on OSF/1 5.1.
9471         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9472         alternative error codes.
9473         * tests/test-renameat.c (main): Likewise.
9474
9475 2010-12-24  Bruno Haible  <bruno@clisp.org>
9476
9477         *printf: Detect large precisions bug on Solaris 10/SPARC.
9478         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9479         by Paul Eggert.
9480         * tests/test-snprintf-posix.h (test_function): Add this test code here
9481         too.
9482         * tests/test-sprintf-posix.h (test_function): Likewise.
9483         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9484         * tests/test-vasprintf-posix.c (test_function): Likewise.
9485         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9486         around by gnulib.
9487         * doc/posix-functions/printf.texi: Likewise.
9488         * doc/posix-functions/snprintf.texi: Likewise.
9489         * doc/posix-functions/sprintf.texi: Likewise.
9490         * doc/posix-functions/vfprintf.texi: Likewise.
9491         * doc/posix-functions/vprintf.texi: Likewise.
9492         * doc/posix-functions/vsnprintf.texi: Likewise.
9493         * doc/posix-functions/vsprintf.texi: Likewise.
9494         * doc/posix-functions/dprintf.texi: Undo last commit.
9495         * doc/posix-functions/vdprintf.texi: Likewise.
9496
9497 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9498
9499         tests: port test-fdutimensat.c to Solaris 8
9500         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9501         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9502         On Solaris 8, it fails with errno == ENOSYS, because there is no
9503         futimens (so it can't use the fd), and there is no lutimens (so it
9504         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9505
9506         vsnprintf: make more consistent with snprintf; doc fixes
9507
9508         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9509         the byte count return problem was promoted from the snprintf-posix
9510         to the snprintf module.
9511         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9513         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9514         * tests/test-snprintf.c (main): Check the byte count returned.
9515         * tests/test-vsnprintf.c (main): Likewise.
9516
9517 2010-12-23  Eric Blake  <eblake@redhat.com>
9518
9519         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9520         * modules/sigpipe (License): Relax license.
9521
9522 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9523
9524         doc: document Solaris printf bug with large float precisions
9525         * doc/posix-functions/dprintf.texi (dprintf):
9526         * doc/posix-functions/fprintf.texi (fprintf):
9527         * doc/posix-functions/printf.texi (printf):
9528         * doc/posix-functions/snprintf.texi (snprintf):
9529         * doc/posix-functions/sprintf.texi (sprintf):
9530         * doc/posix-functions/vdprintf.texi (vdprintf):
9531         * doc/posix-functions/vfprintf.texi (vfprintf):
9532         * doc/posix-functions/vprintf.texi (vprintf):
9533         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9534         * doc/posix-functions/vsprintf.texi (vsprintf):
9535         Mention that these functions mishandle large floating point
9536         precisions on Solaris 10.  The same bug is also present in Solaris
9537         8, and I assume earlier.  This causes "cd gnulib-tests; make
9538         check" to fail on Solaris 8 (and I assume, later) when building
9539         the latest coreutils, in test-vasprintf-posix's call to
9540         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9541         the wide flavors (e.g., wprintf) so this patch just updates the
9542         documentation for the narrow ones.
9543
9544         test-posixtm.c: add two tests
9545         * tests/test-posixtm.c: Add two tests, to highlight the
9546         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9547         around this bug; this is merely to document it.
9548
9549 2010-12-22  Bruno Haible  <bruno@clisp.org>
9550
9551         getlogin_r: Work around portability problem on OSF/1.
9552         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9553         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9554         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9555         test for a truncated result.
9556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9557         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9558         * modules/getlogin_r (Depends-on): Add memchr.
9559         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9560
9561 2010-12-22  Bruno Haible  <bruno@clisp.org>
9562
9563         ptsname: Avoid test failure on OSF/1 5.1.
9564         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9565         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9566         (same_slave): New function.
9567         (main): Use it to compare ptsname's result with the expected file name.
9568
9569 2010-12-22  Bruno Haible  <bruno@clisp.org>
9570
9571         Port extended stdio modules to HP NonStop Kernel.
9572         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9573         macros.
9574         * lib/fbufmode.c: Update comments.
9575         * lib/fflush.c: Likewise.
9576         * lib/fpurge.c: Likewise.
9577         * lib/freadable.c: Likewise.
9578         * lib/freadahead.c: Likewise.
9579         * lib/freading.c: Likewise.
9580         * lib/freadptr.c: Likewise.
9581         * lib/freadseek.c: Likewise.
9582         * lib/fseeko.c: Likewise.
9583         * lib/fseterr.c: Likewise.
9584         * lib/fwritable.c: Likewise.
9585         * lib/fwriting.c: Likewise.
9586         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9587
9588 2010-12-22  Bruno Haible  <bruno@clisp.org>
9589
9590         ttyname_r: Work around bug on OSF/1 5.1.
9591         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9593         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9594         present.
9595         * lib/ttyname_r.c (ttyname_r): Update comments.
9596
9597 2010-12-22  Bruno Haible  <bruno@clisp.org>
9598
9599         round: Implement result sign according to IEEE 754.
9600         * lib/round.c (MIN, MINUS_ZERO): New macros.
9601         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9602         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9603         * tests/test-round-ieee.c (main): Likewise.
9604         * tests/test-roundl-ieee.c (main): Likewise.
9605
9606         trunc: Implement result sign according to IEEE 754.
9607         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9608         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9609         * tests/test-trunc2.c: Include minus-zero.h.
9610         (MINUS_ZERO): New macro.
9611         (trunc_reference): Keep in sync with lib/trunc.c.
9612         * tests/test-truncf2.c: Include minus-zero.h.
9613         (MINUS_ZERO): New macro.
9614         (truncf_reference): Keep in sync with lib/trunc.c.
9615         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9616         * tests/test-trunc-ieee.c (main): Likewise.
9617         * tests/test-truncl-ieee.c (main): Likewise.
9618
9619         ceil: Implement result sign according to IEEE 754.
9620         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9621         (FUNC): Return -0.0 for -1 < x < 0.
9622         * tests/test-ceil2.c: Include minus-zero.h.
9623         (MINUS_ZERO): New macro.
9624         (ceil_reference): Keep in sync with lib/ceil.c.
9625         * tests/test-ceilf2.c: Include minus-zero.h.
9626         (MINUS_ZERO): New macro.
9627         (ceilf_reference): Keep in sync with lib/ceil.c.
9628         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9629         * tests/test-ceil-ieee.c (main): Likewise.
9630         * tests/test-ceill-ieee.c (main): Likewise.
9631
9632         floor: Implement result sign according to IEEE 754.
9633         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9634         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9635         * tests/test-floorf2.c (floorf_reference): Likewise.
9636         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9637         * tests/test-floor-ieee.c (main): Likewise.
9638         * tests/test-floorl-ieee.c (main): Likewise.
9639
9640 2010-12-22  Bruno Haible  <bruno@clisp.org>
9641
9642         getaddrinfo: Update doc.
9643         * doc/posix-functions/gai_strerror.texi: Return type is also different
9644         on AIX and HP-UX.
9645
9646 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9647
9648         getaddrinfo, inet_ntop: Update doc for Solaris.
9649         * doc/posix-functions/gai_strerror.texi: Return type is also an
9650         issue on Solaris 9 and earlier.
9651         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9652         on Solaris 10 and earlier.
9653
9654 2010-12-21  Bruno Haible  <bruno@clisp.org>
9655
9656         New module 'roundl-ieee'.
9657         * modules/roundl-ieee: New file.
9658         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9659         test whether roundl works according to ISO C 99 with IEC 60559.
9660         * m4/roundl-ieee.m4: New file.
9661         * modules/roundl-ieee-tests: New file.
9662         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9663         * tests/test-roundl.c (main): Remove signbit tests.
9664         * modules/roundl-tests (Depends-on): Remove signbit.
9665         * doc/posix-functions/roundl.texi: Mention the new module.
9666
9667 2010-12-21  Bruno Haible  <bruno@clisp.org>
9668
9669         New module 'truncl-ieee'.
9670         * modules/truncl-ieee: New file.
9671         * modules/truncl-ieee-tests: New file.
9672         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9673         * tests/test-truncl.c (main): Remove signbit tests.
9674         * modules/truncl-tests (Depends-on): Remove signbit.
9675         * doc/posix-functions/truncl.texi: Mention the new module.
9676
9677 2010-12-21  Bruno Haible  <bruno@clisp.org>
9678
9679         New module 'ceill-ieee'.
9680         * modules/ceill-ieee: New file.
9681         * modules/ceill-ieee-tests: New file.
9682         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9683         * tests/test-ceill.c (main): Remove signbit tests.
9684         * modules/ceill-tests (Depends-on): Remove signbit.
9685         * doc/posix-functions/ceill.texi: Mention the new module.
9686
9687 2010-12-21  Bruno Haible  <bruno@clisp.org>
9688
9689         New module 'floorl-ieee'.
9690         * modules/floorl-ieee: New file.
9691         * modules/floorl-ieee-tests: New file.
9692         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9693         * tests/test-floorl.c (main): Remove signbit tests.
9694         * modules/floorl-tests (Depends-on): Remove signbit.
9695         * doc/posix-functions/floorl.texi: Mention the new module.
9696
9697 2010-12-21  Bruno Haible  <bruno@clisp.org>
9698
9699         New module 'round-ieee'.
9700         * modules/round-ieee: New file.
9701         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9702         whether round works according to ISO C 99 with IEC 60559.
9703         * m4/round-ieee.m4: New file.
9704         * modules/round-ieee-tests: New file.
9705         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9706         * tests/test-round1.c (main): Remove signbit tests.
9707         * modules/round-tests (Depends-on): Remove 'signbit'.
9708         * doc/posix-functions/round.texi: Mention the new module.
9709
9710 2010-12-21  Bruno Haible  <bruno@clisp.org>
9711
9712         New module 'trunc-ieee'.
9713         * modules/trunc-ieee: New file.
9714         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9715         whether trunc works according to ISO C 99 with IEC 60559.
9716         * m4/trunc-ieee.m4: New file.
9717         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9719         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9720         * modules/trunc-ieee-tests: New file.
9721         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9722         * tests/test-trunc1.c (main): Remove signbit tests.
9723         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9724         * doc/posix-functions/trunc.texi: Mention the new module.
9725
9726 2010-12-21  Bruno Haible  <bruno@clisp.org>
9727
9728         New module 'ceil-ieee'.
9729         * modules/ceil-ieee: New file.
9730         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9731         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9732         ISO C 99 with IEC 60559.
9733         * m4/ceil-ieee.m4: New file.
9734         * modules/ceil (Files): Add lib/ceil.c.
9735         (Depends-on): Add 'float'.
9736         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9737         * lib/math.in.h (ceil): New declaration.
9738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9739         REPLACE_CEIL.
9740         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9741         * modules/ceil-ieee-tests: New file.
9742         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9743         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9744         * doc/posix-functions/ceil.texi: Mention the new module.
9745
9746 2010-12-21  Bruno Haible  <bruno@clisp.org>
9747
9748         New module 'floor-ieee'.
9749         * modules/floor-ieee: New file.
9750         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9751         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9752         ISO C 99 with IEC 60559.
9753         * m4/floor-ieee.m4: New file.
9754         * modules/floor (Files): Add lib/floor.c.
9755         (Depends-on): Add 'float'.
9756         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9757         * lib/math.in.h (floor): New declaration.
9758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9759         REPLACE_FLOOR.
9760         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9761         * modules/floor-ieee-tests: New file.
9762         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9763         * tests/test-math-c++.cc: Check the signature of 'floor'.
9764         * doc/posix-functions/floor.texi: Mention the new module.
9765
9766 2010-12-21  Bruno Haible  <bruno@clisp.org>
9767
9768         New module 'roundf-ieee'.
9769         * modules/roundf-ieee: New file.
9770         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9771         test whether roundf works according to ISO C 99 with IEC 60559.
9772         * m4/roundf-ieee.m4: New file.
9773         * modules/roundf-ieee-tests: New file.
9774         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9775         * tests/test-roundf1.c (main): Remove signbit tests.
9776         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9777         * doc/posix-functions/roundf.texi: Mention the new module.
9778
9779 2010-12-21  Bruno Haible  <bruno@clisp.org>
9780
9781         New module 'truncf-ieee'.
9782         * modules/truncf-ieee: New file.
9783         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9784         test whether truncf works according to ISO C 99 with IEC 60559.
9785         * m4/truncf-ieee.m4: New file.
9786         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9788         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9789         * modules/truncf-ieee-tests: New file.
9790         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9791         * tests/test-truncf1.c (main): Remove signbit tests.
9792         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9793         * doc/posix-functions/truncf.texi: Mention the new module.
9794
9795 2010-12-21  Bruno Haible  <bruno@clisp.org>
9796
9797         New module 'ceilf-ieee'.
9798         * modules/ceilf-ieee: New file.
9799         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9800         test whether ceilf works according to ISO C 99 with IEC 60559.
9801         * m4/ceilf-ieee.m4: New file.
9802         * modules/ceilf-ieee-tests: New file.
9803         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9804         * tests/test-ceilf1.c (main): Remove signbit tests.
9805         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9806         * doc/posix-functions/ceilf.texi: Mention the new module.
9807
9808 2010-12-21  Bruno Haible  <bruno@clisp.org>
9809
9810         New module 'floorf-ieee'.
9811         * modules/floorf-ieee: New file.
9812         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9813         test whether floorf works according to ISO C 99 with IEC 60559.
9814         * m4/floorf-ieee.m4: New file.
9815         * modules/floorf-ieee-tests: New file.
9816         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9817         * tests/test-floorf1.c (main): Remove signbit tests.
9818         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9819         * doc/posix-functions/floorf.texi: Mention the new module.
9820
9821 2010-12-21  Bruno Haible  <bruno@clisp.org>
9822
9823         Support for minus zero in autoconf macros.
9824         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9825         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9826         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9827         * tests/minus-zero.h: Update comments.
9828
9829 2010-12-21  Bruno Haible  <bruno@clisp.org>
9830
9831         Tests for module 'ceil'.
9832         * modules/ceil-tests: New file.
9833         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9834         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9835
9836 2010-12-21  Bruno Haible  <bruno@clisp.org>
9837
9838         Tests for module 'floor'.
9839         * modules/floor-tests: New file.
9840         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9841         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9842
9843 2010-12-21  Bruno Haible  <bruno@clisp.org>
9844
9845         math: Fix indentation.
9846         * lib/math.in.h (floorf): Fix indentation.
9847
9848 2010-12-21  Bruno Haible  <bruno@clisp.org>
9849
9850         Fix cross-compilation guesses on Solaris.
9851         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9852         not match "solaris2.10".
9853         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9854         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9855         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9856
9857 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9860         This fixes a problem observed with the latest coreutils snapshot
9861         that caused a test to fail on Solaris 8.  src/csplit.c's call
9862         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9863         earlier, instead of returning the number of bytes that would have
9864         been generated; this causes csplit to incorrectly report memory
9865         exhaustion.
9866         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9867         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9868         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9869         comments to match.
9870         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9871         Fix typo in matching older versions of Solaris: "solaris2.10"
9872         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9873         only for guessing while cross-compiling.
9874         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9875
9876 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9877
9878         ftoastr: fix comment again
9879         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9881         Also, simplify example a bit by using flags = 0.
9882
9883 2010-12-20  Bruno Haible  <bruno@clisp.org>
9884
9885         round*, trunc*: Update documentation regarding glibc.
9886         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9887         * doc/posix-functions/round.texi: Likewise.
9888         * doc/posix-functions/roundl.texi: Likewise.
9889         * doc/posix-functions/truncf.texi: Likewise.
9890         * doc/posix-functions/trunc.texi: Likewise.
9891         * doc/posix-functions/truncl.texi: Likewise.
9892
9893 2010-12-20  Bruno Haible  <bruno@clisp.org>
9894
9895         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9896         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9897         * doc/posix-functions/round.texi: Likewise.
9898         * doc/posix-functions/roundl.texi: Likewise.
9899
9900 2010-12-20  Bruno Haible  <bruno@clisp.org>
9901
9902         ttyname_r: Add missing declaration on HP-UX 11.
9903         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9904         HAVE_TTYNAME_R.
9905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9906         declared. Set HAVE_TTYNAME_R always.
9907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9908         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9910         HAVE_TTYNAME_R.
9911         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9912
9913 2010-12-20  Bruno Haible  <bruno@clisp.org>
9914
9915         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9916         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9917         * doc/posix-functions/getlogin_r.texi: Likewise.
9918         * tests/test-getlogin.c: Include <errno.h>.
9919         (main): Avoid test failure on HP-UX 11.11.
9920         * tests/test-getlogin_r.c (main): Likewise.
9921
9922 2010-12-20  Bruno Haible  <bruno@clisp.org>
9923
9924         getlogin_r: Add missing declaration on HP-UX 11.
9925         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9926         declared also when it exists as a function.
9927         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9928
9929 2010-12-20  Bruno Haible  <bruno@clisp.org>
9930
9931         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9932         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9933         through wcrtomb.
9934
9935 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9936
9937         ftoastr: fix comment
9938         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9940
9941 2010-12-19  Bruno Haible  <bruno@clisp.org>
9942
9943         isnan: Ensure it is a macro.
9944         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9945         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9946         Solaris.
9947
9948 2010-12-19  Bruno Haible  <bruno@clisp.org>
9949
9950         ldexpl test: Fix link error on OSF/1 5.1.
9951         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9952
9953 2010-12-19  Bruno Haible  <bruno@clisp.org>
9954
9955         wctype: Make it work in C++ mode on OSF/1 5.1.
9956         * lib/wctype.in.h (iswblank): Declare but not define here.
9957         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9958         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9959         * modules/wctype (Files): Add lib/iswblank.c.
9960
9961 2010-12-19  Bruno Haible  <bruno@clisp.org>
9962
9963         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9964         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9965         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9966
9967 2010-12-19  Bruno Haible  <bruno@clisp.org>
9968
9969         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9971         _POSIX_PII_SOCKET.
9972         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9973         * doc/posix-functions/recvfrom.texi: Likewise.
9974         * doc/posix-functions/send.texi: Likewise.
9975         * doc/posix-functions/sendto.texi: Likewise.
9976
9977 2010-12-19  Bruno Haible  <bruno@clisp.org>
9978
9979         tcgetsid: Add missing declaration on OSF/1 5.1.
9980         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9981         HAVE_TCGETSID.
9982         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9983         Don't set HAVE_TCGETSID.
9984         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9985         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9986         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9987         HAVE_TCGETSID.
9988         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9989
9990 2010-12-19  Bruno Haible  <bruno@clisp.org>
9991
9992         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9993         * lib/stdio.in.h: During the include_next statement, let recursive
9994         includes of this file include only the system header file.
9995
9996 2010-12-19  Bruno Haible  <bruno@clisp.org>
9997
9998         iconv_open: Fix regression from 2010-12-04.
9999         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10000         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10001
10002 2010-12-19  Bruno Haible  <bruno@clisp.org>
10003
10004         stdbool test: Avoid a gcc warning.
10005         * tests/test-stdbool.c (main): Fail if e1 is false.
10006         Reported by Jim Meyering.
10007
10008 2010-12-19  Jim Meyering  <meyering@redhat.com>
10009
10010         setenv: restore to working order
10011         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10012         mistakenly removed.
10013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10014         HAVE_SETENV.
10015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10016         HAVE_SETENV.
10017
10018 2010-12-19  Bruno Haible  <bruno@clisp.org>
10019
10020         Document some different function declarations on OSF/1 5.1.
10021         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10022         * doc/posix-functions/inet_ntop.texi: Likewise.
10023         * doc/posix-functions/gethostname.texi: Likewise.
10024         * lib/unistd.in.h (gethostname): Update comment.
10025
10026 2010-12-19  Bruno Haible  <bruno@clisp.org>
10027
10028         doc: Mention vasprintf-posix module.
10029         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10030         the 'vasprintf-posix' module.
10031         * doc/glibc-functions/vasprintf.texi: Likewise.
10032
10033 2010-12-19  Bruno Haible  <bruno@clisp.org>
10034
10035         unsetenv: Add missing declaration on OSF/1 5.1.
10036         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10037         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10038         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10040         not HAVE_UNSETENV.
10041         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10042         HAVE_UNSETENV.
10043         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10044
10045 2010-12-19  Bruno Haible  <bruno@clisp.org>
10046
10047         setenv: Add missing declaration on OSF/1 5.1.
10048         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10049         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10050         declared. Don't set HAVE_SETENV.
10051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10052         not HAVE_SETENV.
10053         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10054         HAVE_SETENV.
10055         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10056
10057 2010-12-19  Bruno Haible  <bruno@clisp.org>
10058
10059         nl_langinfo tests: Avoid gcc warning.
10060         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10061
10062 2010-12-19  Bruno Haible  <bruno@clisp.org>
10063
10064         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10065         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10066         _GL_CXXALIAS_SYS.
10067
10068 2010-12-19  Bruno Haible  <bruno@clisp.org>
10069
10070         stdbool: Relax test.
10071         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10072         address to 'bool' work in static initializer, for compilers other than
10073         GCC.
10074
10075 2010-12-19  Bruno Haible  <bruno@clisp.org>
10076
10077         ftello: Add missing declaration on OSF/1 5.1.
10078         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10079         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10081         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10082         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10083
10084 2010-12-19  Bruno Haible  <bruno@clisp.org>
10085
10086         fseeko: Add missing declaration on OSF/1 5.1.
10087         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10088         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10090         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10091         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10092
10093 2010-12-19  Bruno Haible  <bruno@clisp.org>
10094
10095         fchdir: Add missing declaration on OSF/1 5.1.
10096         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10100         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10101
10102 2010-12-19  Bruno Haible  <bruno@clisp.org>
10103
10104         relocatable-prog-wrapper: Separate from relocatable-prog.
10105         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10106         uninstall-relocwrapper rule here.
10107         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10108         Reported by Ian Beckwith <ianb@erislabs.net>.
10109
10110 2010-12-19  Bruno Haible  <bruno@clisp.org>
10111
10112         unistr/u8-mbsnlen: Add missing dependency.
10113         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10114         Reported by Ian Beckwith <ianb@erislabs.net>.
10115
10116 2010-12-19  Bruno Haible  <bruno@clisp.org>
10117
10118         iconv: Make it possible again to use this module without 'iconv-h'.
10119         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10120         if it is not defined.
10121         Reported by Ian Beckwith <ianb@erislabs.net>.
10122
10123 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         acl: port to Solaris 8 when copying from tmpfs to ufs
10126         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10127         error number.  Problem observed on Solaris 8 with latest
10128         coreutils, with "mv A B", where A is on a tmpfs file system and B
10129         is on a ufs file system.  This caused coreutils' mv/part-symlink
10130         test to fail.
10131
10132         tests: set fail=0 at start
10133         * tests/init.sh (setup_): Move fail=0 initialization here ...
10134         (mktempd_): ... from here, so that tests can rely on fail being
10135         set to 0 initially.  This fixes a problem in coreutils; see:
10136         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10137
10138 2010-12-18  Bruno Haible  <bruno@clisp.org>
10139
10140         memmem-simple: Stylistic changes.
10141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10142         Fix preprocessor directive indentation.
10143
10144 2010-12-15  Pádraig Brady <P@draigBrady.com>
10145
10146         memmem, memmem-simple: reorganize and expand empty needle check
10147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10148         functional checks to memmem-simple so that one has a fully functional
10149         memmem by using just this module.
10150         Restrict the performance only check to the memmem module.
10151         Also expand the empty needle check to ensure the correct
10152         pointer is returned, not just a non NULL pointer.
10153         * doc/glibc-functions/memmem.texi: Rearrange the portability
10154         documentation to correlate with the rearranged checks.
10155         Clarify exactly how the memmem and memmem-simple modules
10156         relate to each other.
10157
10158 2010-12-15  Pádraig Brady <P@draigBrady.com>
10159             Bruno Haible  <bruno@clisp.org>
10160
10161         Improve cross-compilation guesses for uClibc.
10162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10163         that uClibc does not have the glibc bug.
10164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10165         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10166
10167 2010-12-14  Eric Blake  <eblake@redhat.com>
10168
10169         configmake: provide fallbacks for oldest supported autotools
10170         * m4/configmake.m4: New file.
10171         * modules/configmake (Files): Ship it.
10172         (configure.ac): Use it to guarantee fallbacks.
10173
10174 2010-12-13  Pádraig Brady <P@draigBrady.com>
10175
10176         read-file: Improve handling of large files
10177         * lib/read-file.c (fread_file): Minimize realloc()s
10178         for regular files, and better manage sizes around SIZE_MAX.
10179
10180 2010-12-13  Eric Blake  <eblake@redhat.com>
10181
10182         cloexec, fcntl: relax license
10183         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10184         consent from all contributors.
10185         * modules/fcntl (License): Likewise.
10186
10187 2010-12-10  Bruno Haible  <bruno@clisp.org>
10188
10189         Tests for module 'pipe-posix'.
10190         * modules/pipe-posix-tests: New file.
10191         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10192
10193 2010-12-10  Bruno Haible  <bruno@clisp.org>
10194
10195         pipe-posix: Make it work in C++ mode.
10196         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10197         (pipe): Use common idiom, not a macro definition.
10198         * lib/pipe.c: New file.
10199         * m4/pipe.m4: New file.
10200         * modules/pipe-posix (Description): Enhance.
10201         (Files): Add lib/pipe.c, m4/pipe.m4.
10202         (configure.ac): Invoke gl_FUNC_PIPE.
10203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10204         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10205         * tests/test-unistd-c++.cc: Check the signature of pipe.
10206
10207 2010-12-10  Bruno Haible  <bruno@clisp.org>
10208
10209         Rename module 'pipe' to 'spawn-pipe'.
10210         * modules/spawn-pipe: New file, renamed from modules/pipe.
10211         (Files, configure.ac, Makefile.am): Update.
10212         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10213         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10214         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10215         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10216         "spawn-pipe.h" instead of "pipe.h".
10217         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10218         to gl_SPAWN_PIPE.
10219         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10220         (Files, Makefile.am): Update.
10221         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10222         Update.
10223         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10224         Include "spawn-pipe.h" instead of "pipe.h".
10225         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10226         * lib/javacomp.c: Likewise.
10227         * lib/javaversion.c: Likewise.
10228         * lib/pipe-filter-gi.c: Likewise.
10229         * lib/pipe-filter-ii.c: Likewise.
10230         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10231         * modules/javacomp (Depends-on): Likewise.
10232         * modules/javaversion (Depends-on): Likewise.
10233         * modules/pipe-filter-gi (Depends-on): Likewise.
10234         * modules/pipe-filter-ii (Depends-on): Likewise.
10235         * MODULES.html.sh (Executing programs): Update.
10236         * NEWS: Mention the change.
10237
10238 2010-12-10  Eric Blake  <eblake@redhat.com>
10239
10240         pipe-posix: new module
10241         * modules/pipe-posix: New file.
10242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10243         (gl_UNISTD_H): Check for declaration.
10244         * modules/unistd (Makefile.am): Substitute it.
10245         * lib/unistd.in.h (pipe): Provide it for mingw.
10246         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10247         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10248
10249 2010-12-07  Bruno Haible  <bruno@clisp.org>
10250
10251         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10252         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10253         u8_strcmp_gnu.
10254         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10255
10256 2010-12-06  Bruno Haible  <bruno@clisp.org>
10257
10258         Update internal documentation.
10259         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10260
10261 2010-12-04  Bruno Haible  <bruno@clisp.org>
10262
10263         Put more information about failed tests into the test return codes.
10264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10265         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10268         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10270         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10271         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10272         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10275         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10276         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10277         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10278         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10279         returns a bit mask.
10280         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10281         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10282         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10283         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10284         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10285         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10288         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10289         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10290         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10291         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10292         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10294         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10295         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10296         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10297         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10298         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10299         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10301         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10303         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10304         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10305         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10306         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10307         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10308         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10309         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10310         gl_PRINTF_PRECISION): Likewise.
10311         * m4/regex.m4 (gl_REGEX): Likewise.
10312         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10313         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10315         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10316         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10319         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10321         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10322         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10323         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10324         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10325         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10326         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10327         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10328         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10331         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10332         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10333         enumerated value.
10334         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10335
10336 2010-12-04  Bruno Haible  <bruno@clisp.org>
10337
10338         Update for Solaris 11 2010-11.
10339         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10340         Express, released in November 2010.
10341
10342 2010-12-04  Bruno Haible  <bruno@clisp.org>
10343
10344         nproc: Relax license.
10345         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10346         and Paul Eggert.
10347         Requested by Ludovic Courtès <ludo@gnu.org>.
10348
10349 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10350
10351         utimecmp: fine-grained src to nearby coarse-grained dest
10352
10353         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10354         and the source is on a file system with higher-resolution time
10355         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10356         not work, and the time stamps are close together, the algorithm to
10357         determine the exact resolution from the read-back mtime was buggy:
10358         it had a "!=" where it should have had an "==".  This bug has been
10359         in the code ever since it was introduced to gnulib.
10360         Problem reported by Dan Jacobson in
10361         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10362
10363 2010-11-30  Bruno Haible  <bruno@clisp.org>
10364
10365         strerror_r-posix: Fix autoconf test.
10366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10367
10368 2010-11-28  Bruno Haible  <bruno@clisp.org>
10369             Paul Eggert  <eggert@cs.ucla.edu>
10370
10371         Tests for module 'getdomainname'.
10372         * modules/getdomainname-tests: New file.
10373         * tests/test-getdomainname.c: New file, based on
10374         tests/test-gethostname.c.
10375
10376 2010-11-28  Bruno Haible  <bruno@clisp.org>
10377             Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         getdomainname: Use the system function when possible.
10380         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10381         (getdomainname): Replace if needed. Provide the declaration if it is
10382         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10383         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10384         (getdomainname): When the system has getdomainname, call the system
10385         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10386         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10387         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10388         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10389         the function if its second argument is of type 'int' or if it is found
10390         in libnsl.
10391         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10392         <sys/systeminfo.h> and sysinfo().
10393         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10395         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10396         HAVE_GETDOMAINNAME.
10397         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10398         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10399         * doc/glibc-functions/getdomainname.texi: Document the problems with
10400         the getdomainname declaration.
10401
10402 2010-11-28  Bruno Haible  <bruno@clisp.org>
10403
10404         sys_socket: Ensure ss_family field on AIX.
10405         * lib/sys_socket.in.h (ss_family): New macro definition.
10406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10407         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10408         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10409         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10410         * modules/sys_socket (Makefile.am): Substitute
10411         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10412         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10413
10414 2010-11-27  Bruno Haible  <bruno@clisp.org>
10415
10416         readline: Improve configure output.
10417         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10418         "checking for readline..." result understandable.
10419
10420 2010-11-27  Bruno Haible  <bruno@clisp.org>
10421
10422         *printf-posix: Detect a bug on Solaris 10/x86.
10423         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10424         for floating-point output.
10425         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10426         directive.
10427         * tests/test-snprintf-posix.h (test_function): Likewise.
10428         * tests/test-sprintf-posix.h (test_function): Likewise.
10429         * tests/test-vasprintf-posix.c (test_function): Likewise.
10430         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10431         * doc/posix-functions/printf.texi: Likewise.
10432         * doc/posix-functions/snprintf.texi: Likewise.
10433         * doc/posix-functions/sprintf.texi: Likewise.
10434         * doc/posix-functions/vfprintf.texi: Likewise.
10435         * doc/posix-functions/vprintf.texi: Likewise.
10436         * doc/posix-functions/vsnprintf.texi: Likewise.
10437         * doc/posix-functions/vsprintf.texi: Likewise.
10438         * doc/glibc-functions/obstack_printf.texi: Likewise.
10439         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10440
10441 2010-11-27  Bruno Haible  <bruno@clisp.org>
10442
10443         Fix link error when module libunistring-optional is in use.
10444         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10445         * modules/striconveha-tests (Makefile.am): Likewise.
10446
10447 2010-11-27  Bruno Haible  <bruno@clisp.org>
10448
10449         regex: Mention link dependencies.
10450         * modules/regex (Link): New section.
10451         * modules/rpmatch (Link): Likewise.
10452         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10453
10454 2010-11-27  Bruno Haible  <bruno@clisp.org>
10455
10456         ftoastr: Fix compilation error on Solaris.
10457         * lib/ftoastr.c: Include <config.h>.
10458
10459 2010-11-27  Bruno Haible  <bruno@clisp.org>
10460
10461         getloadavg: Update documentation.
10462         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10463
10464 2010-11-27  Bruno Haible  <bruno@clisp.org>
10465
10466         sys_socket: Fix test whether the functions are declared.
10467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10468         not <sys/select.h>.
10469
10470 2010-11-27  Bruno Haible  <bruno@clisp.org>
10471
10472         getpass: Make sure to get system declaration on some platforms.
10473         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10474         gl_USE_SYSTEM_EXTENSIONS.
10475         * modules/getpass (Depends-on): Add extensions.
10476
10477 2010-11-26  Bruno Haible  <bruno@clisp.org>
10478
10479         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10480         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10481         'iconv' module is present.
10482         (ICONV_CONST): New macro.
10483         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10484         ICONV_CONST.
10485         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10486         set ICONV_CONST.
10487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10488         here.
10489         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10490         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10491         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10492         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10493         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10494         present.
10495
10496 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10497
10498         ftoastr: comment fix
10499         * lib/ftoastr.c: "little" -> "little or no" in comment
10500
10501 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10502
10503         stdint: port to GCC 4.3 + OSX + Octave
10504         On this platform, stdint.h is buggy and defines int64_t to long
10505         long int.  The replacement defined it to long int, causing
10506         problems with C++ style name mangling.  Instead, trust the system
10507         definition if INT64_MAX is defined, and likewise for the unsigned
10508         variant.   Problem reported by Jarno Rajahalme in
10509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10510         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10511         and don't mess with int64_t and INT64_MAX in this case.
10512         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10513
10514 2010-11-24  Bruno Haible  <bruno@clisp.org>
10515
10516         doc: Corrections regarding MacOS X 10.4 and 10.5.
10517         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10518         MacOS X.
10519         Reported by Simon Josefsson.
10520
10521 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10522
10523         Uninstall ".bin" files installed by relocwrapper.
10524         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10525         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10526         unless it is already there.
10527
10528 2010-11-21  Bruno Haible  <bruno@clisp.org>
10529
10530         Update for NetBSD 5.0.
10531         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10532         NetBSD; the test fails on NetBSD 5.0.
10533         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10534         about NetBSD.
10535
10536 2010-11-21  Bruno Haible  <bruno@clisp.org>
10537
10538         Update for HP-UX 11.23 and HP-UX 11.31.
10539         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10540         HP-UX.
10541
10542 2010-11-21  Bruno Haible  <bruno@clisp.org>
10543
10544         Update for MacOS X 10.5.
10545         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10546         MacOS X; the test fails on MacOS X 10.5.8.
10547         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10548         about MacOS X.
10549
10550 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10551
10552         bootstrap: add bootstrap_sync option.
10553         See discussion at
10554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10555         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10556         * build-aux/bootstrap: Accept --bootstrap-sync to update
10557         bootstrap if it is not identical to the local gnulib's
10558         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10559         enable this by default.  Accept --no-bootstrap-sync to disable
10560         it.
10561
10562 2010-11-20  Bruno Haible  <bruno@clisp.org>
10563
10564         Ensure that <features.h> is included before __GLIBC__ is tested.
10565         * lib/printf-parse.h: Include <features.h>.
10566         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10567         Reported by Mike Frysinger <vapier@gentoo.org>.
10568
10569         Ensure that <features.h> is included before __GLIBC__ is tested.
10570         * lib/wchar.in.h: Include <features.h>.
10571         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10572         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10573         Reported by Mike Frysinger <vapier@gentoo.org>.
10574
10575         Ensure that <features.h> is included before __GLIBC__ is tested.
10576         * lib/arpa_inet.in.h: Include <features.h>.
10577         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10578         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10579         Reported by Mike Frysinger <vapier@gentoo.org>.
10580
10581         Ensure that <features.h> is included before __GLIBC__ is tested.
10582         * build-aux/link-warning.h: Include <features.h>.
10583         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10584         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10585         Reported by Mike Frysinger <vapier@gentoo.org>.
10586
10587         Ensure that <features.h> is included before __GLIBC__ is tested.
10588         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10589         Reported by Mike Frysinger <vapier@gentoo.org>.
10590
10591 2010-11-20  Bruno Haible  <bruno@clisp.org>
10592
10593         memmem: Fix autoconf test.
10594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10595
10596 2010-11-20  Bruno Haible  <bruno@clisp.org>
10597
10598         Port to uClibc.
10599         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10600         * lib/fcntl.in.h: Likewise.
10601         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10602         * lib/mbrtowc.c (mbrtowc): Likewise.
10603         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10604         * lib/strerror_r.c: Likewise.
10605         * lib/unistr/u8-strnlen.c: Likewise.
10606         * lib/vasnprintf.c (decimal_point_char): Likewise.
10607         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10610         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10611         * tests/test-sigaction.c (handler, main): Likewise.
10612         * lib/freading.h: Treat uClibc like a non-glibc platform.
10613         * lib/freading.c: Likewise.
10614         * lib/gettext.h: Likewise.
10615         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10616         Likewise.
10617         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10618         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10619         * lib/propername.c (proper_name_utf8): Likewise.
10620         * lib/spawn.in.h: Likewise.
10621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10622         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10623         mem_cd_iconveh_internal): Likewise.
10624         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10625         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10626         strstr, strcasestr): Likewise.
10627         * lib/unicodeio.c (unicode_to_mb): Likewise.
10628         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10629         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10630         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10631         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10632         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10633         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10634         * lib/unistr/u8-stpncpy.c: Likewise.
10635         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10636         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10637         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10638         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10639         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10640         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10644         Likewise.
10645         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10650         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10651         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10652         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10653         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10654         * tests/test-striconveha.c (main): Likewise.
10655         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10656         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10657         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10658         * doc/posix-functions/getline.texi: Likewise.
10659         Reported by Mike Frysinger <vapier@gentoo.org>.
10660
10661 2010-11-20  Bruno Haible  <bruno@clisp.org>
10662
10663         nproc: Fix condition.
10664         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10665         HAVE_PTHREAD_AFFINITY_NP.
10666
10667 2010-11-20  Bruno Haible  <bruno@clisp.org>
10668
10669         Fix a comment.
10670         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10671
10672 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10673
10674         ftoastr: don't assume snprintf
10675         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10676         Implement a subset of snprintf here, by using sprintf safely.
10677         * modules/ftoastr (Depends-on): Remove snprintf.
10678
10679 2010-11-19  Jim Meyering  <meyering@redhat.com>
10680
10681         test-rename.h: fix compilation failure
10682         * tests/test-rename.h (test_rename): Add omitted "}".
10683
10684 2010-11-17  Jim Meyering  <meyering@redhat.com>
10685
10686         maint.mk: add a URL discussing the no-@acronym policy
10687         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10688
10689 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10690
10691         ftoastr: depend on snprintf, improve comments
10692         * lib/ftoastr.c: Also mention Loitsch's draft.
10693         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10694         needed in the current implementation, but it might simplify
10695         speeding up the code later.
10696         * modules/ftoastr: Depend on snprintf; this improves portability.
10697         Suggested by Bruno Haible in the same email.
10698
10699         ftoastr: port to hosts lacking strtof and strtold
10700         Problem reported by Bruno Haible in
10701         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10702         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10703         environment and strtold (and presumably strtof) are not available.
10704         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10705         (configure.ac): Require gl_C99_STRTOLD.
10706
10707 2010-11-18  Bruno Haible  <bruno@clisp.org>
10708
10709         c-strtold: Avoid link error on AIX 7.
10710         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10711         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10712         (gl_C_STRTOLD): Test whether strtold_l exists.
10713         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10714
10715 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10716
10717         intprops: new macro INT_BITS_STRLEN_BOUND
10718         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10719         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10720         not exposed.  Also, it uses a slightly tighter bound than before;
10721         though this makes no practical difference, we might as well be as
10722         tight as we easily can.
10723
10724         ftoastr: new module, for lossless conversion of floats to short strings
10725         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10726         * modules/ftoastr: New files.
10727
10728 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         bootstrap: port to Solaris sed
10731         * build-aux/bootstrap (get_version): Port to Solaris sed.
10732         See Ralf Wildenhues's note in
10733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10734
10735 2010-11-14  Jim Meyering  <meyering@redhat.com>
10736
10737         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10738         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10739         and move definition closer to sole use.
10740
10741 2010-11-13  Jim Meyering  <meyering@redhat.com>
10742
10743         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10744         Now we require at least autoconf-2.59, which means the work-around
10745         is no longer needed.
10746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10748         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10749         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10750         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10751
10752 2010-11-13  Bruno Haible  <bruno@clisp.org>
10753
10754         rename, renameat: Avoid test failures at NFS mounted locations.
10755         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10756         functions.
10757         (test_rename): Use assert_nonexistent.
10758         * tests/test-rename.c: Include <dirent.h>.
10759         * tests/test-renameat.c: Likewise.
10760         Reported by Gary V. Vaughan <gary@gnu.org>.
10761
10762         rename, renameat: Document Linux bug with NFS
10763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10764         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10765         * doc/posix-functions/renameat.texi: Likewise.
10766         Suggested by Eric Blake.
10767
10768 2010-11-13  Bruno Haible  <bruno@clisp.org>
10769
10770         rename test: Add comments.
10771         * tests/test-rename.h (test_rename): Add structure and comments.
10772
10773 2010-11-13  Eric Blake  <eblake@redhat.com>
10774
10775         maintainer-makefile: cover a few more files
10776         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10777         scripts generated within C files, for libvirt.
10778
10779 2010-11-13  Bruno Haible  <bruno@clisp.org>
10780
10781         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10782         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10783         character, return the number of bytes that belong together, not always
10784         1.
10785         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10786         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10787         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10788         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10789         number of bytes of an invalid character.
10790         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10791         (main): Invoke it.
10792         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10793         results.
10794         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10795         malformed byte sequences.
10796         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10797         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10798         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10799         Reported by Ben Pfaff and Paolo Bonzini.
10800
10801 2010-11-13  Bruno Haible  <bruno@clisp.org>
10802
10803         openat: Work around glibc bug with fchownat() and empty file names.
10804         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10805         (gl_FUNC_FCHOWNAT): Invoke it.
10806         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10807         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10808         Reported by Gary V. Vaughan <gary@gnu.org>.
10809
10810 2010-11-13  Bruno Haible  <bruno@clisp.org>
10811
10812         openat: Ensure autoconf macro ordering.
10813         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10814         gl_USE_SYSTEM_EXTENSIONS.
10815         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10816
10817 2010-11-13  Bruno Haible  <bruno@clisp.org>
10818
10819         Update comments.
10820         * lib/unistr/u8-check.c: Update file name in comments.
10821         * lib/unistr/u8-mblen.c: Likewise.
10822         * lib/unistr/u8-prev.c: Likewise.
10823         * lib/unistr/u8-strmblen.c: Likewise.
10824         * lib/unistr/u8-strmbtouc.c: Likewise.
10825
10826 2010-11-13  Jim Meyering  <meyering@redhat.com>
10827
10828         tests: avoid test failure on Solaris 10 due to lack of PATH export
10829         * tests/test-update-copyright.sh: Don't forget to export PATH.
10830
10831         init.sh: ensure that IFS is defined, just in case...
10832         * tests/init.sh (setup_): Ensure that IFS is defined,
10833         so that saving and restoring it works as expected.  This
10834         appears to be useful at least for an old version of dash
10835         from a long time ago (RH 6).  See here for details:
10836         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10837
10838         maint.mk: tighten "test a == b" check
10839         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10840         test to files that contain something like #!/bin/sh.
10841         Without this, coreutils would get two false positives in
10842         the comments of C source files.
10843
10844 2010-11-12  Eric Blake  <eblake@redhat.com>
10845
10846         bootstrap: fix typo in previous attempt
10847         * build-aux/bootstrap (buildreq): Correct the grouping.
10848         Reported by Paul Eggert.
10849
10850         maintainer-makefile: prohibit test x == x
10851         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10852         Based on a report by Matthias Bolte.
10853
10854         bootstrap: allow FreeBSD gzip
10855         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10856         which has no '.' and goes to stderr.
10857         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10858         Reported by Matthias Bolte.
10859
10860         maintainer-makefile: check for i18n setup
10861         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10862         will likely work.
10863
10864 2010-11-12  Bruno Haible  <bruno@clisp.org>
10865
10866         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10867         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10868         * lib/nanosleep.c (nanosleep): Likewise.
10869
10870 2010-11-11  Bruno Haible  <bruno@clisp.org>
10871
10872         fcntl-h: Fix for use of C++ on glibc systems.
10873         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10874         also on glibc systems in C++ mode.
10875         Reported by Gary V. Vaughan <gary@gnu.org>.
10876
10877 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10878
10879         mknod: avoid false failure with dash
10880         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10881
10882 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10883
10884         unlink: Fix "is it should" typo in diagnostic.
10885         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10887
10888 2010-11-11  Bruno Haible  <bruno@clisp.org>
10889
10890         Tests for module 'strerror_r-posix'.
10891         * modules/strerror_r-posix-tests: New file.
10892         * tests/test-strerror_r.c: New file.
10893         * tests/test-string-c++.cc: Check the signature of strerror_r.
10894
10895         New module 'strerror_r-posix'.
10896         * lib/string.in.h (strerror_r): New declaration.
10897         * lib/strerror_r.c: New file.
10898         * m4/strerror_r.m4: New file.
10899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10900         of strerror_r.
10901         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10902         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10903         * modules/strerror_r-posix: New file.
10904         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10905         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10906         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10907         portability problems.
10908
10909 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10910
10911         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10912         line is also considered for output. Quoted function name in shell
10913         command, so temporary files for functions like MyClass::operator()
10914         are removed correctly without errors.
10915
10916 2010-11-09  Bruno Haible  <bruno@clisp.org>
10917
10918         * doc/posix-functions/strerror.texi: List more failing platforms.
10919
10920         * doc/posix-functions/strerror.texi: Add a comment.
10921
10922 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10923
10924         fdopendir: fix bug on MacOS X when low on file descriptors
10925
10926         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10927         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10928         All callers changed.
10929         (fdopendir): Invoke save_cwd at the top level, not after using
10930         multiple dup() calls to use up file descriptors.  Then retry
10931         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10932         less than the maximum number of open file descriptors, because
10933         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10934         on Mac OS X 10.6.4 for tar 1.24
10935         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10936         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10937         and for tar 1.25
10938         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10939
10940 2010-11-07  Bruno Haible  <bruno@clisp.org>
10941
10942         vasnprintf: Support I flag on glibc systems.
10943         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10944         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10945         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10946         snprintf function.
10947         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10948         glibc systems.
10949         * tests/test-vasnprintf-posix3.c: New file.
10950         * modules/vasnprintf-posix-tests (Files): Add it.
10951         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10952
10953 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10954
10955         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10956         * MODULES.html.sh: For compiler warnings, use name
10957         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10958
10959 2010-11-05  Eric Blake  <eblake@redhat.com>
10960
10961         ceil, floor: avoid spurious failure with icc
10962         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10963         [denormals-as-zero] when optimizing without -mieee-fp option.
10964         * tests/test-floorf2.c (floorf_reference): Likewise.
10965         * tests/test-ceilf1.c (dummy): New function.
10966         (main): Use it to outsmart icc's optimization.
10967         * tests/test-floorf1.c (dummy, main): Likewise.
10968
10969         tests: require working signbit
10970         * modules/ceilf-tests (Depends-on): Add signbit.
10971         * modules/ceill-tests (Depends-on): Likewise.
10972         * modules/floorf-tests (Depends-on): Likewise.
10973         * modules/floorl-tests (Depends-on): Likewise.
10974         * modules/round-tests (Depends-on): Likewise.
10975         * modules/roundf-tests (Depends-on): Likewise.
10976         * modules/roundl-tests (Depends-on): Likewise.
10977         * modules/trunc-tests (Depends-on): Likewise.
10978         * modules/truncf-tests (Depends-on): Likewise.
10979         * modules/truncl-tests (Depends-on): Likewise.
10980
10981         strtod: work around icc bug
10982         * lib/strtod.c (minus_zero): Define to working value.
10983         (strtod): Use it to avoid icc bug.
10984
10985         copysign: enhance tests
10986         * modules/copysign-tests (Files): Add minus-zero.h.
10987         * tests/test-copysign.c (main): Also test zeros.
10988
10989 2010-11-04  Eric Blake  <eblake@redhat.com>
10990
10991         ceil, floor, round, trunc: enhance tests of -0
10992         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10993         * tests/test-ceill.c (main): Likewise.
10994         * tests/test-floorf1.c (main): Likewise.
10995         * tests/test-floorl.c (main): Likewise.
10996         * tests/test-round1.c (main): Likewise.
10997         * tests/test-roundf1.c (main): Likewise.
10998         * tests/test-roundl.c (main): Likewise.
10999         * tests/test-trunc1.c (main): Likewise.
11000         * tests/test-truncf1.c (main): Likewise.
11001         * tests/test-truncl.c (main): Likewise.
11002
11003 2010-11-04  Eric Blake  <eblake@redhat.com>
11004
11005         frexp, tests: work around ICC bug with -zero
11006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11007         works with more compilers.
11008         * tests/minus-zero.h: New file.
11009         * modules/ceilf-tests (Files): Include it.
11010         * modules/ceill-tests (Files): Likewise.
11011         * modules/floorf-tests (Files): Likewise.
11012         * modules/floorl-tests (Files): Likewise.
11013         * modules/frexp-nolibm-tests (Files): Likewise.
11014         * modules/frexp-tests (Files): Likewise.
11015         * modules/frexpl-nolibm-tests (Files): Likewise.
11016         * modules/frexpl-tests (Files): Likewise.
11017         * modules/isnan-tests (Files): Likewise.
11018         * modules/isnand-nolibm-tests (Files): Likewise.
11019         * modules/isnand-tests (Files): Likewise.
11020         * modules/isnanf-nolibm-tests (Files): Likewise.
11021         * modules/isnanf-tests (Files): Likewise.
11022         * modules/isnanl-nolibm-tests (Files): Likewise.
11023         * modules/isnanl-tests (Files): Likewise.
11024         * modules/round-tests (Files): Likewise.
11025         * modules/roundf-tests (Files): Likewise.
11026         * modules/roundl-tests (Files): Likewise.
11027         * modules/ldexpl-tests (Files): Likewise.
11028         * modules/signbit-tests (Files): Likewise.
11029         * modules/snprintf-posix-tests (Files): Likewise.
11030         * modules/sprintf-posix-tests (Files): Likewise.
11031         * modules/strtod-tests (Files): Likewise.
11032         * modules/trunc-tests (Files): Likewise.
11033         * modules/truncf-tests (Files): Likewise.
11034         * modules/truncl-tests (Files): Likewise.
11035         * modules/vsnprintf-posix-tests (Files): Likewise.
11036         * modules/vsprintf-posix-tests (Files): Likewise.
11037         * modules/vasnprintf-posix-tests (Files): Likewise.
11038         * modules/vasprintf-posix-tests (Files): Likewise.
11039         * tests/test-ceilf1.c (main): Use it.
11040         * tests/test-ceill.c (main): Likewise.
11041         * tests/test-floorf1.c (main): Likewise.
11042         * tests/test-floorl.c (main): Likewise.
11043         * tests/test-frexp.c (main): Likewise.
11044         * tests/test-frexpl.c (main): Likewise.
11045         * tests/test-isnan.c (main): Likewise.
11046         * tests/test-isnand.h (main): Likewise.
11047         * tests/test-isnanf.h (main): Likewise.
11048         * tests/test-isnanl.h (main): Likewise.
11049         * tests/test-ldexpl.c (main): Likewise.
11050         * tests/test-round.c (main): Likewise.
11051         * tests/test-roundf.c (main): Likewise.
11052         * tests/test-roundl.c (main): Likewise.
11053         * tests/test-signbit.c (test_signbitf, test_signbitd)
11054         (test_signbitl): Likewise.
11055         * tests/test-snprintf-posix.h (test_function): Likewise.
11056         * tests/test-sprintf-posix.h (test_function): Likewise.
11057         * tests/test-strtod.c (main): Likewise.
11058         * tests/test-trunc1.c (main): Likewise.
11059         * tests/test-truncf1.c (main): Likewise.
11060         * tests/test-truncl.c (main): Likewise.
11061
11062         isnanl: work around icc bug
11063         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11064
11065 2010-11-03  Eric Blake  <eblake@redhat.com>
11066
11067         tests: fix compiler warnings
11068         * tests/test-getopt.h (test_getopt): Fix condition.
11069         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11070         * tests/test-pipe2.c (main): Likewise.
11071         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11072
11073         utimens: fix broken m4 test
11074         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11075
11076 2010-10-28  Bruno Haible  <bruno@clisp.org>
11077
11078         posix_spawn*, getdtablesize: Relax license.
11079         * modules/posix_spawn (License): Change to LGPLv2+.
11080         * modules/posix_spawnp (License): Likewise.
11081         * modules/posix_spawn-internal (License): Likewise.
11082         * modules/posix_spawnattr_init (License): Likewise.
11083         * modules/posix_spawnattr_getflags (License): Likewise.
11084         * modules/posix_spawnattr_setflags (License): Likewise.
11085         * modules/posix_spawnattr_getpgroup (License): Likewise.
11086         * modules/posix_spawnattr_setpgroup (License): Likewise.
11087         * modules/posix_spawnattr_getschedparam (License): Likewise.
11088         * modules/posix_spawnattr_setschedparam (License): Likewise.
11089         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11090         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11091         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11092         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11093         * modules/posix_spawnattr_getsigmask (License): Likewise.
11094         * modules/posix_spawnattr_setsigmask (License): Likewise.
11095         * modules/posix_spawnattr_destroy (License): Likewise.
11096         * modules/posix_spawn_file_actions_init (License): Likewise.
11097         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11098         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11099         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11100         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11101         * modules/getdtablesize (License): Likewise.
11102         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11103
11104 2010-10-26  Bruno Haible  <bruno@clisp.org>
11105
11106         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11107         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11108         Cygwin and mingw.
11109         Suggested by Eric Blake.
11110
11111 2010-10-26  Bruno Haible  <bruno@clisp.org>
11112
11113         stdio: Work around compilation error due to renameat() on Solaris 10.
11114         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11115         * lib/renameat.c: Don't include <unistd.h> here.
11116         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11117         Reported by Paul Eggert and Eric Blake.
11118
11119 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11120
11121         renameat: port to Solaris 10, which declares renameat in unistd.h
11122
11123         * lib/renameat.c: Include unistd.h before stdio.h, because
11124         Solaris 10 declares renameat in unistd.h.  Problem encountered
11125         when building GNU tar 1.24 on Solaris 10.
11126
11127 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11128
11129         fdopendir: fix C89 compilation
11130         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11131         compilers.
11132
11133 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11134
11135         inttostr: simplify by removing unnecessary redundancy
11136         * lib/anytostr.c: Don't include verify.h.
11137         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11138         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11139         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11140         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11141         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11142         Likewise.
11143         * modules/inttostr (Depends-on): Remove 'verify'.
11144
11145 2010-10-23  Bruno Haible  <bruno@clisp.org>
11146
11147         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11148         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11149         Reported by Eric Blake.
11150
11151 2010-10-23  Bruno Haible  <bruno@clisp.org>
11152
11153         Tests: Fix LOCALE_JA on MirBSD 10.
11154         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11155         to an UTF-8 locale.
11156         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11157         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11158         Reported by Eric Blake.
11159
11160 2010-10-21  Bruno Haible  <bruno@clisp.org>
11161
11162         nl_langinfo test: Avoid test failure on NetBSD 5.
11163         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11164         Reported by Eric Blake.
11165
11166 2010-10-21  Eric Blake  <eblake@redhat.com>
11167
11168         c-stack: work around libsigsegv 2.8 bug
11169         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11170         overflow on at least PowerPC64.
11171
11172 2010-10-17  Bruno Haible  <bruno@clisp.org>
11173
11174         userspec: Drop redundant file.
11175         * modules/userspec (Files): Remove lib/inttostr.h.
11176
11177 2010-10-17  Bruno Haible  <bruno@clisp.org>
11178
11179         nl_langinfo tests: Silence some warnings.
11180         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11181         Reported by Jim Meyering.
11182
11183 2010-10-17  Bruno Haible  <bruno@clisp.org>
11184
11185         Make use of GCC's attribute __alloc_size__.
11186         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11187         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11188         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11189         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11190         __alloc_size__.
11191         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11192         Suggested by Jim Meyering.
11193
11194 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11195
11196         bootstrap: anchor .gitignore entries.
11197         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11198         with...
11199         (insert_vc_ignore): ... this new function, which prepends `/' to
11200         all .gitignore entries before passing them to
11201         insert_sorted_if_absent.
11202
11203 2010-10-16  Bruno Haible  <bruno@clisp.org>
11204
11205         nextafter: Fix configure check.
11206         * modules/nextafter (configure.ac): Correct expected prototype.
11207
11208 2010-10-16  Bruno Haible  <bruno@clisp.org>
11209
11210         termios: Update documentation.
11211         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11212
11213 2010-10-16  Bruno Haible  <bruno@clisp.org>
11214
11215         tests: Make them compile with TinyCC.
11216         * tests/test-strstr.c (main): Remove parentheses around array
11217         initializer.
11218
11219 2010-10-15  Eric Blake  <eblake@redhat.com>
11220
11221         ignore-value: make header idempotent
11222         * lib/ignore-value.h: Add double-inclusion guards.
11223         Reported by Stefan Berger.
11224
11225 2010-10-15  Jim Meyering  <meyering@redhat.com>
11226
11227         GNUmakefile: handle "stable" target, not "major"
11228         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11229         lists in maint.mk and announce-gen.  Without this, "make stable"
11230         would fail to ensure that $(VERSION) is up to date.
11231
11232 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11233
11234         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11235         & co.
11236
11237 2010-10-14  Bruno Haible  <bruno@clisp.org>
11238
11239         vasnprintf: Don't set errno to 0.
11240         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11241         block that sets it to 0.
11242         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11243
11244 2010-10-14  Bruno Haible  <bruno@clisp.org>
11245
11246         socketlib: Fix.
11247         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11248         gl_PREREQ_SYS_H_WINSOCK2.
11249         Reported by Ian Beckwith <ianb@erislabs.net>.
11250
11251 2010-10-13  Jim Meyering  <meyering@redhat.com>
11252
11253         test-select-stdin.c: avoid warn_unused_result warnings
11254         * tests/test-select-stdin.c: Include "macros.h".
11255         ASSERT that read and fflush succeed.
11256
11257 2010-10-13  Jim Meyering  <meyering@redhat.com>
11258
11259         git-version-gen: do require git-VC'd files in cwd
11260         * build-aux/git-version-gen: Reject a git version string
11261         if there are no commits associated with the current directory.
11262         This avoids an unlikely false-positive (unrelated dir whose parent
11263         repository also contains a tag matching v*), as pointed out
11264         by Giuseppe Scrivano in
11265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11266
11267 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11268
11269         argv-iter: omit nonconforming declaration
11270         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11271         enum arg_iter_err declaration, which doesn't conform to C99.
11272         Solaris 10 cc warns about this.
11273
11274 2010-10-13  Eric Blake  <eblake@redhat.com>
11275
11276         termios: fix compilation on mingw
11277         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11278         (gl_TERMIOS_H): Adjust it on mingw.
11279         * modules/termios (Makefile.am): Substitute new key.
11280         * lib/termios.in.h (includes): Make include_next conditional.
11281         * doc/posix-headers/termios.texi (termios.h): Update
11282         documentation.
11283         Reported by Daniel P. Berrange.
11284
11285 2010-10-13  Jim Meyering  <meyering@redhat.com>
11286
11287         git-version-gen: don't require that .git/ be in the current dir
11288         * build-aux/git-version-gen: Adjust this script so that it works
11289         when run from any working directory beneath the top-level .git/-
11290         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11291         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11292
11293         test-select: avoid warn_unused_result warnings
11294         * tests/test-select.c: Include "macros.h".
11295         ASSERT that each call to read, write, and pipe succeeds.
11296         While not technically required, also check each "close".
11297         * modules/select-tests (Files): Add tests/macros.h.
11298
11299         test-symlinkat: remove declaration of unused local
11300         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11301
11302         test-inttostr: avoid shadowing warnings
11303         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11304         and use malloc rather than the stack for the same reason as
11305         mentioned in the comment justifying the other allocation.
11306
11307 2010-10-11  Bruno Haible  <bruno@clisp.org>
11308
11309         stdlib: Allow multiple gnulib generated replacements to coexist.
11310         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11311         Reported by Sam Steingold <sds@gnu.org>.
11312
11313 2010-10-11  Jim Meyering  <meyering@redhat.com>
11314
11315         fix a documentation typo
11316         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11317
11318 2010-10-11  Eric Blake  <eblake@redhat.com>
11319
11320         futimens: work around Solaris 11 bug
11321         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11322         * tests/test-futimens.h (test_futimens): Enhance, rather than
11323         weaken test.
11324         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11325
11326 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11327
11328         Indentation.
11329         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11330         higher-level operators more to the left.
11331
11332 2010-10-11  Jim Meyering  <meyering@redhat.com>
11333
11334         test-futimens: avoid unwarranted test failure on Solaris 5.11
11335         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11336         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11337         because it tries to dereference the NULL name argument.
11338
11339 2010-10-11  Bruno Haible  <bruno@clisp.org>
11340
11341         Indentation.
11342         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11343         indentation.
11344
11345 2010-10-11  Jim Meyering  <meyering@redhat.com>
11346
11347         spawn.in.h: make indentation consistent with parentheses
11348         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11349         Make indentation consistent with parentheses.
11350
11351 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11352
11353         Fix mismatched parens in previous commit
11354         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11355         parens.
11356
11357 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11358
11359         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11360
11361         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11362         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11363         * lib/malloca.c: Include "verify.h".
11364         (verify1): Remove, replacing with a verify call.
11365         * lib/relocwrapper.c (verify1): Likewise.
11366         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11367         Likewise.
11368         * modules/malloca (Depends-on): Add 'verify'.
11369         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11370         * modules/vasnprintf (Depends-on): Add 'verify'.
11371         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11372         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11373         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11374         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11375         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11376         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11377         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11378
11379         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11380
11381         Formerly the style was sometimes 2*X - 1, because the C standard
11382         was wrongly thought to disallow ?: in integral constant expressions.
11383         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11384         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11385         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11386         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11387         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11388         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11389         verify that time_t cannot be floating.
11390
11391 2010-10-08  Eric Blake  <eblake@redhat.com>
11392
11393         time: enforce recent POSIX ruling that time_t is integral
11394         * lib/time.in.h (__time_t_must_be_integral): Detect any
11395         problematic systems, allowing the rest of gnulib to assume POSIX.
11396
11397 2010-10-08  Jim Meyering  <meyering@redhat.com>
11398
11399         fdopendir: fix a bug on systems lacking openat and /proc support
11400         OpenBSD 4.7 is one such system.  The most noticeable effect was
11401         failure of any application making nontrivial use of fts: rm, du,
11402         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11403           ./rm: traversal failed: `a': Bad file descriptor
11404         Debugging that, you see that even though FD 6 was closed just
11405         prior to the opendir call in fd_clone_opendir, its resulting
11406         dir->dd_fd was 8, rather than the expected value of 6:
11407
11408         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11409         93                close (fd);
11410         (gdb) n
11411         94                dir = fd_clone_opendir (dupfd);
11412         (gdb) n
11413         95                saved_errno = errno;
11414         (gdb) p dir->dd_fd
11415         $11 = 8
11416
11417         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11418         The problem is that on OpenBSD, fd_clone_opendir has to resort
11419         to using the old-style save/restore CWD mechanism, due to its
11420         lack of openat/proc support, and *that* would steal the FD (6)
11421         that opendir was supposed to use.
11422
11423         The fix is to squirrel away the desired FD so that save_cwd uses a
11424         different one, and then free the dest FD right before calling opendir.
11425         That guarantees opendir will use the required file descriptor.
11426
11427         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11428
11429 2010-10-08  Bruno Haible  <bruno@clisp.org>
11430
11431         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11432         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11433
11434 2010-10-08  Bruno Haible  <bruno@clisp.org>
11435
11436         nanosleep: Make replacement POSIX compliant.
11437         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11438         is out of range.
11439         Reported by Jim Meyering.
11440
11441 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11442
11443         bootstrap: add hook for altering gnulib.mk, for Bison
11444         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11445         the Bison bootstrapping process can rewrite file names and variables
11446         in this file before later parts of 'bootstrap' use the file.
11447         Bison wants to include lib/gnulib.mk from the top-level makefile,
11448         so it needs the file names in this file to be relative to the top
11449         level, not relative to lib; plus it needs variable names to be
11450         rewritten.
11451         (slurp): Use the new function.
11452
11453         bootstrap: reformat for readability
11454         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11455
11456 2010-10-08  Eric Blake  <eblake@redhat.com>
11457
11458         docs: update cygwin progress
11459         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11460         1.7.7.
11461         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11462         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11463         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11464         * doc/posix-functions/carg.texi (carg): Likewise.
11465         * doc/posix-functions/cargf.texi (cargf): Likewise.
11466         * doc/posix-functions/casin.texi (casin): Likewise.
11467         * doc/posix-functions/casinf.texi (casinf): Likewise.
11468         * doc/posix-functions/casinh.texi (casinh): Likewise.
11469         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11470         * doc/posix-functions/catan.texi (catan): Likewise.
11471         * doc/posix-functions/catanf.texi (catanf): Likewise.
11472         * doc/posix-functions/catanh.texi (catanh): Likewise.
11473         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11474         * doc/posix-functions/ccos.texi (ccos): Likewise.
11475         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11476         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11477         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11478         * doc/posix-functions/cexp.texi (cexp): Likewise.
11479         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11480         * doc/posix-functions/cimag.texi (cimag): Likewise.
11481         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11482         * doc/posix-functions/clog.texi (clog): Likewise.
11483         * doc/posix-functions/clogf.texi (clogf): Likewise.
11484         * doc/posix-functions/conj.texi (conj): Likewise.
11485         * doc/posix-functions/conjf.texi (conjf): Likewise.
11486         * doc/posix-functions/cpow.texi (cpow): Likewise.
11487         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11488         * doc/posix-functions/cproj.texi (cproj): Likewise.
11489         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11490         * doc/posix-functions/creal.texi (creal): Likewise.
11491         * doc/posix-functions/crealf.texi (crealf): Likewise.
11492         * doc/posix-functions/csin.texi (csin): Likewise.
11493         * doc/posix-functions/csinf.texi (csinf): Likewise.
11494         * doc/posix-functions/csinh.texi (csinh): Likewise.
11495         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11496         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11497         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11498         * doc/posix-functions/ctan.texi (ctan): Likewise.
11499         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11500         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11501         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11502         * doc/posix-headers/complex.texi (complex.h): Likewise.
11503
11504 2010-10-07  Jim Meyering  <meyering@redhat.com>
11505
11506         parse-datetime: avoid compilation failure on OpenBSD 4.7
11507         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11508         This works around a compilation failure on OpenBSD 4.7:
11509         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11510
11511 2010-10-07  Eric Blake  <eblake@redhat.com>
11512
11513         docs: update cygwin progress
11514         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11515         1.7.6.
11516         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11517         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11518         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11519         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11520         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11521         Likewise.
11522         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11523         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11524         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11525         Likewise.
11526         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11527         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11528         Likewise.
11529         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11530         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11531         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11532         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11533         Likewise.
11534         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11535         Likewise.
11536         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11537
11538         docs: update parse-datetime history
11539         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11540         documentation of this function's history and alternatives.
11541
11542         cygwin: use more robust version check
11543         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11544         exclude an eventual cygwin 1.9.1.
11545         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11547         (gl_FUNC_STRCASESTR): Likewise.
11548         Reported by Bruno Haible.
11549
11550 2010-10-06  Bruno Haible  <bruno@clisp.org>
11551
11552         string, sys_select: Avoid #including large headers unless necessary.
11553         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11554         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11555         OSF/1, BeOS, Haiku.
11556         Reported by Jim Meyering.
11557
11558 2010-10-05  Eric Blake  <eblake@redhat.com>
11559
11560         memmem, strstr, strcasestr: fix bug with long periodic needle
11561         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11562         periodic needle having false positive.
11563         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11564         and cygwin 1.7.7.
11565         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11567         (gl_FUNC_STRCASESTR): Likewise.
11568         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11569         * tests/test-memmem.c (main): Expose the bug.
11570         * tests/test-strcasestr.c (main): Likewise.
11571         * tests/test-strstr.c (main): Likewise.
11572         * tests/test-c-strcasestr.c (main): Likewise.
11573         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11574         * doc/posix-functions/strstr.texi (strstr): Likewise.
11575         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11576         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11577
11578 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11579
11580         parse-datetime: do some more renaming
11581         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11582         parse_datetime, not get_date.  Mention the renaming.
11583         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11584         in comments.
11585         * m4/bison.m4: Likewise.
11586
11587 2010-10-05  Eric Blake  <eblake@redhat.com>
11588
11589         parse-datetime: better name than get_date
11590         * NEWS: Reword the deprecation notice.
11591         * modules/get_date: Rename to modules/parse-datetime.
11592         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11593         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11594         * lib/get_date.y: Rename to lib/parse-datetime.y.
11595         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11596         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11597         * doc/getdate.texi: Provide fallback wrapper.
11598         * lib/getdate.h: Move guts, and wrap...
11599         * lib/parse-datetime.h: ...new file.
11600         * lib/parse-datetime.y (get_date): Rename...
11601         (parse_datetime): ...to this.
11602         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11603         (gl_PARSE_DATETIME): ...to this.
11604         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11605         documentation.
11606         * modules/getdate (Files): Provide fallback docs and header.
11607         (Notice, Depends-on): Update references.
11608         * tests/test-parse-datetime.c: Likewise.
11609         * DEPENDENCIES: Likewise.
11610         * MODULES.html.sh (Date and time <time.h>): Likewise.
11611         * doc/parse-datetime.texi (Date input formats)
11612         (Authors of parse_datetime): Likewise.
11613         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11614         (Include): Likewise.
11615         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11616         * gnulib-tool: Likewise.
11617         * m4/bison.m4 (gl_BISON): Likewise.
11618         Suggested by Bruno Haible.
11619
11620 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11621
11622         more ports to Solaris tr, which needs [] around ranges
11623         * gnulib-tool: Solaris tr needs [] around ranges.
11624         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11625         * tests/test-pipe-filter-gi1.c (main): Likewise.
11626         * tests/test-pipe-filter-ii1.c (main): Likewise.
11627
11628 2010-10-05  Eric Blake  <eblake@redhat.com>
11629
11630         bootstrap: fix Solaris regression
11631         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11632         around ranges.
11633         Reported by Pádraig Brady.
11634
11635         bootstrap: work with pkg-config
11636         * build-aux/bootstrap (check_versions): Also transliterate - in
11637         prerequisite name.
11638         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11639         prerequisites that were already found, to avoid confusion.
11640         Reported by Justin Clift.
11641
11642         faccessat: remove unused wrappers
11643         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11644         presence of these wrappers dragged in -lgen on Solaris.
11645         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11646
11647 2010-10-05  Jim Meyering  <meyering@redhat.com>
11648
11649         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11650         * Makefile (sc_pragma_columns): New syntax-check rule.
11651
11652 2010-10-04  Bruno Haible  <bruno@clisp.org>
11653
11654         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11655         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11656         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11657         Reported by Bruce Korb and Eric Blake.
11658
11659 2010-10-04  Bruno Haible  <bruno@clisp.org>
11660
11661         threadlib: Make option --with-libpth-prefix work.
11662         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11663         use $LIBPTH, not just -lpth.
11664
11665 2010-10-04  Bruno Haible  <bruno@clisp.org>
11666
11667         Avoid line length limitation from HP NonStop system header files.
11668         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11669         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11670         * lib/ctype.in.h: Likewise.
11671         * lib/dirent.in.h: Likewise.
11672         * lib/errno.in.h: Likewise.
11673         * lib/fcntl.in.h: Likewise.
11674         * lib/float.in.h: Likewise.
11675         * lib/getopt.in.h: Likewise.
11676         * lib/iconv.in.h: Likewise.
11677         * lib/inttypes.in.h: Likewise.
11678         * lib/langinfo.in.h: Likewise.
11679         * lib/locale.in.h: Likewise.
11680         * lib/math.in.h: Likewise.
11681         * lib/netdb.in.h: Likewise.
11682         * lib/netinet_in.in.h: Likewise.
11683         * lib/poll.in.h: Likewise.
11684         * lib/pthread.in.h: Likewise.
11685         * lib/pty.in.h: Likewise.
11686         * lib/sched.in.h: Likewise.
11687         * lib/se-selinux.in.h: Likewise.
11688         * lib/search.in.h: Likewise.
11689         * lib/signal.in.h: Likewise.
11690         * lib/spawn.in.h: Likewise.
11691         * lib/stdarg.in.h: Likewise.
11692         * lib/stddef.in.h: Likewise.
11693         * lib/stdint.in.h: Likewise.
11694         * lib/stdio.in.h: Likewise.
11695         * lib/stdlib.in.h: Likewise.
11696         * lib/string.in.h: Likewise.
11697         * lib/strings.in.h: Likewise.
11698         * lib/sys_file.in.h: Likewise.
11699         * lib/sys_ioctl.in.h: Likewise.
11700         * lib/sys_select.in.h: Likewise.
11701         * lib/sys_socket.in.h: Likewise.
11702         * lib/sys_stat.in.h: Likewise.
11703         * lib/sys_time.in.h: Likewise.
11704         * lib/sys_times.in.h: Likewise.
11705         * lib/sys_utsname.in.h: Likewise.
11706         * lib/sys_wait.in.h: Likewise.
11707         * lib/sysexits.in.h: Likewise.
11708         * lib/termios.in.h: Likewise.
11709         * lib/time.in.h: Likewise.
11710         * lib/unistd.in.h: Likewise.
11711         * lib/wchar.in.h: Likewise.
11712         * lib/wctype.in.h: Likewise.
11713         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11714         * modules/ctype (Makefile.am): Likewise.
11715         * modules/dirent (Makefile.am): Likewise.
11716         * modules/errno (Makefile.am): Likewise.
11717         * modules/fcntl-h (Makefile.am): Likewise.
11718         * modules/float (Makefile.am): Likewise.
11719         * modules/getopt-posix (Makefile.am): Likewise.
11720         * modules/iconv-h (Makefile.am): Likewise.
11721         * modules/inttypes (Makefile.am): Likewise.
11722         * modules/langinfo (Makefile.am): Likewise.
11723         * modules/locale (Makefile.am): Likewise.
11724         * modules/math (Makefile.am): Likewise.
11725         * modules/netdb (Makefile.am): Likewise.
11726         * modules/netinet_in (Makefile.am): Likewise.
11727         * modules/poll-h (Makefile.am): Likewise.
11728         * modules/pthread (Makefile.am): Likewise.
11729         * modules/pty (Makefile.am): Likewise.
11730         * modules/sched (Makefile.am): Likewise.
11731         * modules/search (Makefile.am): Likewise.
11732         * modules/selinux-h (Makefile.am): Likewise.
11733         * modules/signal (Makefile.am): Likewise.
11734         * modules/spawn (Makefile.am): Likewise.
11735         * modules/stdarg (Makefile.am): Likewise.
11736         * modules/stddef (Makefile.am): Likewise.
11737         * modules/stdint (Makefile.am): Likewise.
11738         * modules/stdio (Makefile.am): Likewise.
11739         * modules/stdlib (Makefile.am): Likewise.
11740         * modules/string (Makefile.am): Likewise.
11741         * modules/strings (Makefile.am): Likewise.
11742         * modules/sys_file (Makefile.am): Likewise.
11743         * modules/sys_ioctl (Makefile.am): Likewise.
11744         * modules/sys_select (Makefile.am): Likewise.
11745         * modules/sys_socket (Makefile.am): Likewise.
11746         * modules/sys_stat (Makefile.am): Likewise.
11747         * modules/sys_time (Makefile.am): Likewise.
11748         * modules/sys_times (Makefile.am): Likewise.
11749         * modules/sys_utsname (Makefile.am): Likewise.
11750         * modules/sys_wait (Makefile.am): Likewise.
11751         * modules/sysexits (Makefile.am): Likewise.
11752         * modules/termios (Makefile.am): Likewise.
11753         * modules/time (Makefile.am): Likewise.
11754         * modules/unistd (Makefile.am): Likewise.
11755         * modules/wchar (Makefile.am): Likewise.
11756         * modules/wctype (Makefile.am): Likewise.
11757
11758 2010-10-04  Bruno Haible  <bruno@clisp.org>
11759
11760         read-file tests: Avoid a test failure on NonStop Kernel.
11761         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11762         a regular file.
11763         Reported by Joachim Schmitz <schmitz@hp.com>.
11764
11765 2010-10-03  Bruno Haible  <bruno@clisp.org>
11766
11767         gnulib-tool: Fixes for --create-testdir with --libtool.
11768         * gnulib-tool (func_get_automake_snippet): Don't augment
11769         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11770         an executable.
11771         (func_create_testdir): Handle module 'alloca' like func_import.
11772         Reported by Bruce Korb <bruce.korb@gmail.com>.
11773
11774 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         Avoid some lines longer than 80 characters.
11777         * lib/stdint.in.h: Break long comment lines.
11778         * lib/math.in.h: Likewise.
11779         (_GL_NUM_UINT_WORDS): New macro, for readability.
11780         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11781         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11782         * lib/stdlib.in.h: Likewise.
11783         * lib/spawn.in.h: Likewise.
11784         * lib/sys_socket.in.h: Update an URL.
11785         * lib/sys_stat.in.h: Break long line.
11786
11787 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11788
11789         Improve pmccabe2html.
11790         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11791         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11792         when the sources change. Remove the line in the HTML about "Used
11793         ranges" (which implied that there might be other unused ranges),
11794         rename "Resume" to "Summary" (easier to understand for more users).
11795         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11796         styles, and some unnecessary blank lines.
11797
11798 2010-10-03  Bruno Haible  <bruno@clisp.org>
11799             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11800
11801         acl: Add support for ACLs on NonStop Kernel.
11802         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11803         Check whether the function aclsort() exists.
11804         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11805         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11806         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11807         (acl_nontrivial [HAVE_ACLSORT]: New function.
11808         (file_has_acl): Implement for NonStop Kernel.
11809         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11810         (qset_acl): Implement for NonStop Kernel.
11811         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11812         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11813         (main): Implement for NonStop Kernel.
11814         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11815         Kernel. Handle this flavor.
11816         * tests/test-set-mode-acl.sh: Likewise.
11817         * tests/test-copy-acl.sh: Likewise.
11818         * tests/test-copy-file.sh: Likewise.
11819
11820 2010-10-03  Bruno Haible  <bruno@clisp.org>
11821
11822         Info about ACLs on NonStop Kernel.
11823         * doc/acl-resources.txt: Add info about NonStop Kernel.
11824         References by Joachim Schmitz <schmitz@hp.com>.
11825
11826 2010-10-02  Bruno Haible  <bruno@clisp.org>
11827
11828         Define missing EDQUOT on NonStop Kernel.
11829         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11830         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11832         missing.
11833         * doc/posix-headers/errno.texi: Mention the NSK bug.
11834         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11835         Reported by Joachim Schmitz <schmitz@hp.com>.
11836
11837 2010-10-02  Bruno Haible  <bruno@clisp.org>
11838
11839         Update doc for POSIX:2008.
11840         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11841         Update URL of POSIX specification.
11842
11843 2010-10-02  Bruno Haible  <bruno@clisp.org>
11844
11845         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11846         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11847         from gnulib, not from Automake.
11848
11849 2010-10-02  Bruno Haible  <bruno@clisp.org>
11850
11851         New module 'system-posix'.
11852         * modules/system-posix: New file.
11853         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11854         module is present.
11855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11856         GNULIB_SYSTEM_POSIX.
11857         * modules/stdlib (Depends-on): Remove sys_wait.
11858         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11859         * doc/posix-functions/system.texi: Mention the new module.
11860         * doc/posix-headers/stdlib.texi: Likewise.
11861         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11862         define test_sys_wait_macros to a no-op.
11863         Reported by Sam Steingold <sds@gnu.org>.
11864
11865 2010-09-30  Bruno Haible  <bruno@clisp.org>
11866
11867         More renaming from 'getdate' to 'get_date'.
11868         * doc/get_date.texi: Renamed from doc/getdate.texi.
11869         * modules/get_date (Files): Update.
11870         * MODULES.html.sh (Date and time <time.h>): Update.
11871         * DEPENDENCIES: Update.
11872         * gnulib-tool: Update comment.
11873         * m4/bison.m4 (gl_BISON): Likewise.
11874         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11875
11876 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11877
11878         bootstrap: support ACLOCAL_FLAGS during aclocal
11879         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11880         can add additional -I dir for third-party .m4 files.
11881
11882 2010-09-30  Eric Blake  <eblake@redhat.com>
11883
11884         bootstrap: use glibtoolize on MacOS
11885         * build-aux/bootstrap (check_versions): Convert libtool into
11886         libtoolize.
11887         (tool search): Move libtool check earlier, and look for
11888         glibtoolize for MacOS.
11889         (gnulib_tool_options): Auto-add --libtool when appropriate.
11890         Reported by Justin Clift.
11891
11892         poll: fix typo that broke test on MacOS
11893         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11894         Reported by Justin Clift.
11895
11896         getdate: rename to get_date
11897         Note: getdate.h is not renamed, to minimize client impact.
11898         * modules/getdate: Mark obsolete.  Move old contents...
11899         * modules/get_date: ...to new module name.
11900         * modules/getdate-tests: Move...
11901         * modules/get_date-tests: ...here.
11902         * m4/getdate.m4: Move...
11903         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11904         * lib/getdate.y: Move...
11905         * lib/get_date.y: ...here.
11906         * tests/test-getdate.c: Move...
11907         * tests/test-get_date.c: ...here.
11908         * doc/posix-functions/getdate.texi (getdate): Update name.
11909         * NEWS: Mention the change.
11910
11911 2010-09-29  Bruno Haible  <bruno@clisp.org>
11912
11913         Separate the module 'waitpid' from the module 'sys_wait'.
11914         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11915         present.
11916         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11917         gl_MODULE_INDICATOR_FOR_TESTS.
11918         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11919         * modules/sys_wait (Depends-on): Remove waitpid.
11920         (Makefile.am): Substitute GNULIB_WAITPID.
11921         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11922         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11923         signature only if the 'waitpid' module is present.
11924         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11925         * NEWS: Mention the change.
11926         * modules/grantpt (Depends-on): Add waitpid.
11927         * modules/wait-process (Depends-on): Likewise.
11928
11929 2010-09-29  Bruno Haible  <bruno@clisp.org>
11930
11931         More tests for module 'sys_wait'.
11932         * modules/sys_wait-c++-tests: New file.
11933         * tests/test-sys_wait-c++.cc: New file.
11934         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11935         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11936
11937 2010-09-29  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'waitpid'.
11940         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11941         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11942         Don't include <process.h>.
11943         (waitpid): Declare only, using modern idiom.
11944         * m4/waitpid.m4: New file.
11945         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11946         * modules/waitpid: New file.
11947         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11948         (Makefile.am): Update.
11949         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11950
11951 2010-09-28  Bruno Haible  <bruno@clisp.org>
11952
11953         poll: Assume ANSI C.
11954         * lib/poll.c (poll): Use an ANSI C declaration.
11955
11956 2010-09-28  Bruno Haible  <bruno@clisp.org>
11957
11958         poll-h: Create poll.h on all platforms.
11959         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11960         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11961         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11962         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11963         (gl_REPLACE_POLL_H): Don't set POLL_H.
11964         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11965         * modules/poll-h (Depends-on): Add include_next.
11966         (Makefile.am): Create poll.h unconditionally. Substitute also
11967         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11968
11969 2010-09-28  Bruno Haible  <bruno@clisp.org>
11970
11971         Tests for module 'poll-h'.
11972         * modules/poll-h-c++-tests: New file.
11973         * tests/test-poll-h-c++.cc: New file.
11974
11975         Tests for module 'poll-h'.
11976         * modules/poll-h-tests: New file.
11977         * tests/test-poll-h.c: New file.
11978
11979 2010-09-28  Bruno Haible  <bruno@clisp.org>
11980
11981         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11982         * modules/poll-h (Depends-on): Add 'extensions'.
11983
11984 2010-09-28  Bruno Haible  <bruno@clisp.org>
11985
11986         New module 'poll-h'.
11987         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11988         (poll): Use modern idiom.
11989         * modules/poll-h: New file.
11990         * modules/poll (Files): Remove lib/poll.in.h.
11991         (Depends-on): Add poll-h.
11992         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11993         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11994         * m4/poll_h.m4: New file.
11995         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11996         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11997         and invoke gl_REPLACE_POLL_H.
11998         * lib/poll.c: Use common idiom.
11999         * tests/test-poll.c: Likewise.
12000         * doc/posix-headers/poll.texi: Mention the poll-h module.
12001         Suggested by Eric Blake.
12002
12003 2010-09-26  Bruno Haible  <bruno@clisp.org>
12004
12005         sys_wait: Implement WSTOPSIG.
12006         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12007         Reported by Simon Josefsson.
12008
12009 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12010
12011         stdlib, sys_wait: Avoid compilation error on mingw.
12012         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12013
12014 2010-09-26  Bruno Haible  <bruno@clisp.org>
12015
12016         stdlib tests: Avoid code duplication.
12017         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12018         * modules/sys_wait-tests (Files): Likewise.
12019         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12020         * tests/test-stdlib.c: Include test-sys_wait.h.
12021         (main): Invoke test_sys_wait_macros.
12022         * tests/test-sys_wait.c: Include test-sys_wait.h.
12023         (main): Invoke test_sys_wait_macros.
12024
12025 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12026
12027         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12028         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12029         sure Windows sockets are working before calling getaddrinfo.
12030         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12031         * doc/gnulib.texi (Windows sockets): Fix typo.
12032
12033 2010-09-25  Bruno Haible  <bruno@clisp.org>
12034
12035         Tests for module 'regex-quote'.
12036         * modules/regex-quote-tests: New file.
12037         * tests/test-regex-quote.c: New file.
12038
12039         New module 'regex-quote'.
12040         * lib/regex-quote.h: New file.
12041         * lib/regex-quote.c: New file.
12042         * modules/regex-quote: New file.
12043         Suggested by Reuben Thomas <rrt@sc3d.org>.
12044
12045 2010-09-24  Bruno Haible  <bruno@clisp.org>
12046
12047         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12048         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12049
12050 2010-09-23  Bruno Haible  <bruno@clisp.org>
12051
12052         setenv: Relax license.
12053         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12054         Blake.
12055         Requested by Eric Blake.
12056
12057 2010-09-22  Bruno Haible  <bruno@clisp.org>
12058
12059         termios: Relax license.
12060         * modules/termios (License): Change to LGPLv2+.
12061         Requested by Eric Blake.
12062
12063 2010-09-22  Bruno Haible  <bruno@clisp.org>
12064
12065         threadlib: Allow the package to change the default to 'no'.
12066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12067         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12068         Reported by Paul Eggert.
12069
12070 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12071             Bruno Haible  <bruno@clisp.org>
12072
12073         Fix endless loop in mbmemcasecoll.
12074         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12075         byte.
12076         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12077
12078 2010-09-22  Bruno Haible  <bruno@clisp.org>
12079
12080         Tests for module 'memcoll'.
12081         * modules/memcoll-tests: New file.
12082         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12083
12084         memcoll, xmemcoll: Clarify size vs. length.
12085         * modules/memcoll.c (memcoll0): Clarify specification.
12086         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12087         passed to collate_error.
12088
12089 2010-09-22  Bruno Haible  <bruno@clisp.org>
12090
12091         Tests for module 'memcasecmp'.
12092         * modules/memcasecmp-tests: New file.
12093         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12094
12095 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12096
12097         * lib/pthread.in.h: Add split double-inclusion guard, and include
12098         system <pthread.h> if there is one.  Use @@-style as in other
12099         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12100         pthread.h doesn't.
12101         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12102         (pthread_mutexattr_settype, pthread_mutex_trylock):
12103         New static inline functions, if there's no system <pthread.h>.
12104         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12105         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12106         Approximate with mutexes if the system lacks spinlocks, as in
12107         MacOS.
12108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12109         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12110         @@-style.  Check for spinlocks separately.
12111         (gl_PTHREAD_DEFAULTS): New macro.
12112         * modules/pthread: Redo to use a more typical style for in.h files.
12113
12114 2010-09-21  Eric Blake  <eblake@redhat.com>
12115
12116         net_if: enhance tests
12117         * tests/test-net_if.c (main): Move signature checks earlier.
12118         Print failures to stderr.
12119         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12120         Document the bug that we do not yet fix.
12121
12122 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12123
12124         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12125         about gnulib, not GSS.
12126
12127 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12128
12129         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12130         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12131         for Emacs.
12132         * build-aux/pmccabe2html: Make Makefile.am example code more
12133         cut-and-paste friendly.
12134
12135 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12136
12137         * tests/test-net_if.c: New file.
12138         * modules/net_if-tests: New file.
12139
12140 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12141
12142         pthread: add pthread_spin_destroy
12143         * lib/pthread.in.h (pthread_spin_destroy): New function.
12144
12145 2010-09-19  Bruno Haible  <bruno@clisp.org>
12146
12147         gnulib-tool: Fix --help output.
12148         * gnulib-tool (func_usage): Fix help message.
12149         Reported by Reuben Thomas <rrt@sc3d.org>.
12150
12151 2010-09-18  Jim Meyering  <meyering@redhat.com>
12152
12153         maint.mk: avoid unexpanded \n in two diagnostics
12154         * top/maint.mk (sc_prohibit_always_true_header_tests):
12155         Don't use a literal \n in a halt=... assignment.  It would not be
12156         expanded, and the two \n bytes would appear in the diagnostic output
12157         rather than the desired newline.  Use halt=$$(printf ... instead.
12158         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12159
12160 2010-09-18  Bruno Haible  <bruno@clisp.org>
12161
12162         netinet_in: Doc tweak.
12163         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12164         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12165
12166 2010-09-18  Jim Meyering  <meyering@redhat.com>
12167
12168         init.sh: correct an outdated comment
12169         * tests/init.sh (create_exe_shims_):  s/function/alias/
12170
12171         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12172         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12173         a file named "*.exe" is removed between the glob expansion and the
12174         processing of that oddly named file.
12175
12176 2010-09-17  Eric Blake  <eblake@redhat.com>
12177
12178         mirbsd: add some more support
12179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12180         in BSD family.
12181         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12182         devices as OpenBSD.
12183         * m4/host-os.m4 (mirbsd): Add MirBSD.
12184
12185         tests: fix unportable assumption on sys/wait.h
12186         * tests/test-sys_wait.c (main): Relax test.
12187         * tests/test-stdlib.c (main): Likewise.
12188
12189         init.sh: accomodate directory with no .exes
12190         * tests/init.sh: Accomodate directory containing only scripts.
12191
12192         tests: avoid compiler warning
12193         * tests/test-stdlib.c (main): Use the variable.
12194
12195         fdutimens, fdutimensat: update signature, again
12196         * lib/utimens.h (gl_futimens): Delete, and move signature...
12197         (fdutimens): ...here.
12198         (fdutimensat): Rearrange signature.
12199         (lutimensat): Rename variable for clarity.
12200         * lib/fdutimensat.c (fdutimensat): Update signature.
12201         * lib/utimens.c (fdutimens): Likewise.
12202         (gl_futimens): Delete.
12203         (utimens, lutimens): Update callers.
12204         * lib/futimens.c (futimens): Likewise.
12205         * tests/test-fdutimensat.c: Likewise.
12206         * tests/test-utimens.c: Likewise.
12207         * tests/test-futimens.h: Update comment.
12208         * NEWS: Mention this.
12209         Suggested by Paul Eggert.
12210
12211 2010-09-17  Bruno Haible  <bruno@clisp.org>
12212
12213         Take over the maintenance of some older macros from Autoconf.
12214         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12215         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12216         GNU Autoconf.
12217         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12218         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12219
12220 2010-09-17  Eric Blake  <eblake@redhat.com>
12221
12222         fdutimensat: drop atflag validation
12223         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12224         with valid fd, to close a race scenario where futimens is
12225         unsupported and FILE was replaced by a symlink.
12226         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12227         accordingly.
12228         Suggested by Paul Eggert.
12229
12230 2010-09-16  Bruno Haible  <bruno@clisp.org>
12231
12232         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12233         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12234
12235 2010-09-16  Bruno Haible  <bruno@clisp.org>
12236
12237         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12238         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12239         login_tty exists.
12240         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12241
12242 2010-09-16  Bruno Haible  <bruno@clisp.org>
12243
12244         login_tty: Make the replacement code work on BSD systems.
12245         * lib/login_tty.c: Include <sys/ioctl.h>.
12246         (login_tty): Use ioctl TIOCSCTTY when available.
12247         * modules/login_tty (Depends-on): Add sys_ioctl.
12248         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12249
12250 2010-09-16  Bruno Haible  <bruno@clisp.org>
12251
12252         login_tty: Stricter unit test.
12253         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12254         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12255         and tcgetsid() after login_tty.
12256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12257
12258 2010-09-16  Bruno Haible  <bruno@clisp.org>
12259
12260         New module 'tcgetsid'.
12261         * lib/tcgetsid.c: New file.
12262         * m4/tcgetsid.m4: New file.
12263         * modules/tcgetsid: New file.
12264         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12265         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12266         GNULIB_TCGETSID, HAVE_TCGETSID.
12267         * lib/termios.in.h: Include <sys/types.h>.
12268         (tcgetsid): New declaration.
12269         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12270         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12271         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12272         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12273
12274 2010-09-16  Bruno Haible  <bruno@clisp.org>
12275
12276         Tests for module 'termios'.
12277         * modules/termios-c++-tests: New file.
12278         * modules/termios-tests: New file.
12279         * tests/test-termios-c++.cc: New file.
12280         * tests/test-termios.c: New file.
12281
12282         New module 'termios'.
12283         * modules/termios: New file.
12284         * lib/termios.in.h: New file.
12285         * m4/termios_h.m4: New file.
12286         * doc/posix-headers/termios.texi: Mention the new module.
12287
12288 2010-09-16  Eric Blake  <eblake@redhat.com>
12289
12290         fdutimensat: add an atflag parameter
12291         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12292         * lib/utimens.h (fdutimensat): Update prototype.
12293         * tests/test-fdutimensat.c: Adjust test to match.
12294         * NEWS: Document the change.
12295         Suggested by Paul Eggert.
12296
12297 2010-09-16  Bruno Haible  <bruno@clisp.org>
12298
12299         Fix typos in comments.
12300         * lib/striconveh.h: Fix typo in comment.
12301         * lib/login_tty.c (login_tty): Likewise.
12302
12303 2010-09-15  Bruno Haible  <bruno@clisp.org>
12304
12305         stdlib: clarify MirBSD WEXITSTATUS bug
12306         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12307         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12308
12309 2010-09-15  Eric Blake  <eblake@redhat.com>
12310
12311         stdlib: work around MirBSD WEXITSTATUS bug
12312         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12313         * modules/stdlib (Depends-on): Add sys_wait.
12314         * tests/test-sys_wait.c (main): Enhance test.
12315         * tests/test-stdlib.c (main): Likewise.
12316         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12317
12318         docs: mention MacOS issue with WEXITSTATUS(constant)
12319         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12320         issue.
12321         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12322
12323         strnlen: add tests
12324         * modules/strnlen-tests: New file.
12325         * tests/test-strnlen.c: Likewise.
12326
12327 2010-09-14  Bruno Haible  <bruno@clisp.org>
12328
12329         unistr/base: Avoid link errors when module 'libunistring' is also used.
12330         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12331         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12332         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12333         Declare also when HAVE_LIBUNISTRING is set.
12334         Reported by Pádraig Brady <P@draigbrady.com>.
12335
12336 2010-09-14  Eric Blake  <eblake@redhat.com>
12337
12338         test-rawmemchr: make more robust
12339         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12340         (Depends-on, configure.ac): Add needed prerequisites to use it.
12341         * modules/memchr-tests (Files, Depends-on, configure.ac):
12342         Likewise, to avoid implicit reliance on memchr module prereqs.
12343         * tests/test-memchr.c (main): Ensure proper masking.
12344         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12345         reads.
12346
12347         memchr: detect glibc Alpha bug
12348         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12349         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12350         Alpha.
12351         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12352         * tests/test-memchr.c (main): Enhance test.
12353         Reported by Nelson H. F. Beebe.
12354
12355 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12356
12357         fts, getcwd, glob: audit for dirfd returning -1
12358         * lib/fts.c (opendir): Remove #define; no longer used.
12359         (opendirat): New arg PDIR_FD.  All callers changed.
12360         (fts_build, _opendir2): Use new opendirat to avoid the need for
12361         dirfd, or for checking whether dirfd returns a negative value.
12362         Don't use opendir; always use openat followed by fdopendir.
12363         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12364         it.
12365         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12366         returns -1 here.
12367         * modules/fts (Depends-on): Remove dirfd.
12368         * modules/getcwd (Depends-on): Likewise.
12369
12370 2010-09-13  Eric Blake  <eblake@redhat.com>
12371
12372         float: fix broken MirBSD header
12373         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12374         * doc/posix-headers/float.texi (float.h): Document it.
12375
12376 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12377
12378         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12379         * lib/fts.c (opendirat): New arg extra_flags.
12380         (__opendir2): Use it to avoid following symlinks when opening
12381         a directory, if symlinks are not supposed to be followed.  See
12382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12383
12384         fdopendir: preserve argument fd before returning
12385         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12386         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12387         (fdopendir): Use them, arranging for FD to be open to the same
12388         directory that it was when it started.  (It might be temporarily
12389         closed while fdopendir is running, so this not thread- or
12390         signal-safe.)  Be careful to do the right thing even when file
12391         descriptors are scarce and dup fails with errno == EMFILE.  See
12392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12393
12394 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12395
12396         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12397         * NEWS: Document change.
12398         * m4/regex.m4: Disable test for regoff_t size.
12399
12400 2010-09-13  Jim Meyering  <meyering@redhat.com>
12401
12402         fts: don't operate on an invalid file descriptor after failed dup
12403         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12404         negative file descriptor.
12405
12406 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12407
12408         savedir: add streamsavedir, deprecate fdsavedir
12409         * NEWS: Mention deprecation of fdsavedir.
12410         * lib/savedir.c (streamsavedir): New extern function, whose name
12411         ends in "savedir" to be consistent with the others.  This differs
12412         from savedirstream in that it doesn't close its argument.  The
12413         next version of GNU tar will use this instead of fdsavedir, to
12414         avoid some race conditions and conserve file descriptors.
12415         (savedirstream): Reimplement as a wrapper around streamsavedir.
12416         (fdsavedir): Add a comment deprecating this function.  As far as
12417         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12418         * lib/savedir.h (streamsavedir): New decl.
12419         (fdsavedir): Add a comment deprecating this.
12420
12421 2010-09-10  Bruno Haible  <bruno@clisp.org>
12422
12423         langinfo: Fix last commit.
12424         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12425         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12427
12428 2010-09-10  Bruno Haible  <bruno@clisp.org>
12429
12430         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12431         * lib/progreloc.c (O_EXEC): Define fallback.
12432
12433 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12434
12435         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12436         * NEWS: Document recent changes to fcntl-h.
12437         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12438         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12439         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12440         Similarly for O_SEARCH; this last was already true, but not documented.
12441         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12442         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12443         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12444         Likewise.
12445         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12446         is zero, not whether it is defined.
12447         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12448         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12449         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12450
12451 2010-09-10  Bruno Haible  <bruno@clisp.org>
12452
12453         langinfo, nl_langinfo: Fix for IRIX 5.3.
12454         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12455         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12456         HAVE_LANGINFO_YESEXPR.
12457         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12458         HAVE_LANGINFO_YESEXPR.
12459         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12460         HAVE_LANGINFO_T_FMT_AMPM is 0.
12461         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12462         HAVE_LANGINFO_YESEXPR is 0.
12463         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12464         NOEXPR.
12465         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12466         * doc/posix-functions/nl_langinfo.texi: Likewise.
12467         Reported by Eric Blake.
12468
12469 2010-09-10  Bruno Haible  <bruno@clisp.org>
12470
12471         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12472         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12473         on FreeBSD 8.0 and OpenBSD 4.6.
12474         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12475         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12476         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12477         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12478         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12479         ac_includes_default.
12480         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12481
12482 2010-09-09  Eric Blake  <eblake@redhat.com>
12483
12484         strsignal: work around NetBSD bug
12485         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12486         * lib/string.in.h (includes): Likewise.
12487         * doc/posix-functions/strsignal.texi (strsignal): Document the
12488         bug.
12489         Reported by Nelson H. F. Beebe.
12490
12491         gnulib-tool: work with NetBSD /bin/sh
12492         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12493         (func_get_description, func_get_comment, func_get_status)
12494         (func_get_notice, func_get_applicability, func_get_filelist)
12495         (func_get_dependencies, func_get_autoconf_early_snippet)
12496         (func_get_autoconf_snippet, func_get_automake_snippet)
12497         (func_get_include_directive, func_get_link_directive)
12498         (func_get_license, func_get_maintainer, func_import): Avoid
12499         shell syntax errors from parsing syntax extensions.
12500
12501 2010-09-09  Bruno Haible  <bruno@clisp.org>
12502
12503         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12504         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12505         a reliable way to determine whether the 'alias' command works.
12506
12507 2010-09-08  Jim Meyering  <meyering@redhat.com>
12508
12509         init.sh: penalize a set-x-impaired shell; don't disqualify it
12510         * tests/init.sh: Too many shells corrupt application stderr when
12511         you set -x, so we can't afford to disqualify them, since at least
12512         on Irix-6.5, that would disqualify all bourne shells.
12513         Instead, use a two-pass approach.
12514         On the first pass, try to find a shell that meets the stricter
12515         condition that set -x does not corrupt stderr.
12516         If no shell meets the stricter condition, retest each candidate
12517         shell, but without that extra condition.  Finally, when
12518         VERBOSE=yes is requested and set -x might cause trouble, simply
12519         issue a warning and refrain from enabling debug output.
12520
12521 2010-09-08  Eric Blake  <eblake@redhat.com>
12522
12523         unsetenv: fix OpenBSD bug
12524         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12525         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12526         documentation.
12527         Reported by Jim Meyering.
12528
12529         strtod: work around IRIX 6.5 bug
12530         * lib/strtod.c (strtod): Reparse number on shorter string if
12531         exponent parse was invalid.
12532         * tests/test-strtod.c (main): Add check for "0x1p 2".
12533         Reported by Tom G. Christensen.
12534
12535         getopt: optimize previous patch
12536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12537         empty variable.  Speed up awk script.
12538         Reported by Paolo Bonzini.
12539
12540 2010-09-08  Jim Meyering  <meyering@redhat.com>
12541
12542         test.sh: disqualify shells for which set -x corrupts stderr
12543         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12544         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12545         appear in stderr output.  For example, this command:
12546             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12547         prints "P=1" on those two systems:
12548
12549 2010-09-08  Bruno Haible  <bruno@clisp.org>
12550
12551         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12552         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12553         commands, because some shells ignore redirections when there is an
12554         error in the command lookup.
12555         Reported by Eric Blake.
12556
12557 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12558
12559         * lib/regex.h: Fix a mention of `regex_compile' (should be
12560         `re_compile_pattern').
12561         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12562         (re_set_registers): Correct name of parameter in comment.
12563
12564         * doc/regex.texi: Add documentation for missing syntax flags.
12565         Remove commented-out documentation of defunct syntax option
12566         RE_NO_EMPTY_ALTS.
12567         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12568         Add documentation of re_set_registers.
12569         Document trick to re-use a pattern buffer by setting fastmap manually.
12570         Update documentation of struct re_pattern_buffer per public members.
12571         Uncomment documentation of equivalence class operators and
12572         collating symbol operators, since they are now implemented,
12573         Explain leftmost-longest matching in relation to alternatives.
12574         Tidy documentation of substring matching.
12575         Remove POSIX documentation, which is done better in
12576         glibc, and refer the reader there. Keep BSD API documentation, as
12577         that is not readily available elsewhere.
12578
12579 2010-09-07  Eric Blake  <eblake@redhat.com>
12580
12581         getopt: handle POSIXLY_CORRECT set but not exported
12582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12583         export state of POSIXLY_CORRECT, due to bash set -o posix.
12584         Reported by Dustin J. Mitchell.
12585
12586 2010-09-05  Bruno Haible  <bruno@clisp.org>
12587
12588         gnulib-tool: Highlight the changed options.
12589         * gnulib-tool (func_usage): Display the --import, --add-import,
12590         --remove-import explanations in bold font.
12591
12592 2010-09-06  Karl Berry  <karl@gnu.org>
12593
12594         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12595
12596 2010-09-05  Bruno Haible  <bruno@clisp.org>
12597
12598         uniwidth/width: Update comment.
12599         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12600         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12601
12602 2010-09-05  Bruno Haible  <bruno@clisp.org>
12603
12604         isinf, isnan: Relax license.
12605         * modules/isinf (License): Change from GPL to LGPL, with consent from
12606         Ben Pfaff.
12607         * modules/isnan (License): Likewise.
12608         Requested by Ludovic Courtès.
12609
12610 2010-09-04  Bruno Haible  <bruno@clisp.org>
12611
12612         gnulib-tool: Help migration from --import to --add-import or --update.
12613         * gnulib-tool: Emit a verbose error message when --import is used
12614         without any module name.
12615
12616 2010-09-04  Bruno Haible  <bruno@clisp.org>
12617
12618         Update doc about gnulib-tool.
12619         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12620         'gnulib-tool --update' in more detail.
12621         Reported by Eric Blake.
12622
12623 2010-09-04  Bruno Haible  <bruno@clisp.org>
12624
12625         gnulib-tool: Change --import. New options --add/remove-import.
12626         * gnulib-tool: New options --add-import, --remove-import.
12627         (func_usage): Document them.
12628         (have_associative): Define always.
12629         (func_import): In import mode, don't merge the specified settings with
12630         the cached settings. Implement remove-import mode.
12631         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12632         Explain when to use them versus --import.
12633         (Simple update): Use --add-import instead of --import.
12634         * NEWS: Mention the change.
12635
12636 2010-09-04  Bruno Haible  <bruno@clisp.org>
12637
12638         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12639         separate gnulib.mk.
12640
12641 2010-09-04  Bruno Haible  <bruno@clisp.org>
12642
12643         gnulib-tool: Don't talk about CVS any more.
12644         * gnulib-tool (func_usage, func_import): Write "version control"
12645         instead of CVS.
12646
12647 2010-09-04  Jim Meyering  <meyering@redhat.com>
12648
12649         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12650         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12651         false positives (whose names may be ill-chosen) when searching
12652         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12653         would cause a false-positive.
12654
12655         avoid coreutils "make distcheck" failure
12656         Coreutils tests with an absolute build directory name that contains
12657         a space.  Not quoting this directory name caused a failure.
12658         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12659         * tests/test-vc-list-files-cvs.sh: Likewise.
12660
12661 2010-09-04  Bruno Haible  <bruno@clisp.org>
12662
12663         gnulib-tool: Avoid error when run in a package without Makefile.am.
12664         * gnulib-tool: When collecting the m4dirs in a package that does not
12665         have a Makefile.am, eliminate those directories that contain no
12666         gnulib-cache.m4. Fix expression that counts these directories.
12667
12668 2010-09-04  Bruno Haible  <bruno@clisp.org>
12669
12670         update-copyright test: Improve output when perl is missing or too old.
12671         * tests/test-update-copyright.sh: Move test of Perl version down after
12672         the test whether Perl exists. Provide an explanation relating Perl's
12673         error message to Automake's SKIP: message.
12674
12675 2010-09-04  Bruno Haible  <bruno@clisp.org>
12676
12677         Don't augment PATH in TESTS_ENVIRONMENT.
12678         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12679         set abs_aux_dir instead of augmenting PATH.
12680         * modules/vc-list-files-tests (Makefile.am): Likewise.
12681         * tests/test-update-copyright.sh: Augment PATH here.
12682         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12683         path_prepend_.
12684         * tests/test-vc-list-files-git.sh: Likewise.
12685
12686 2010-09-04  Jim Meyering  <meyering@redhat.com>
12687
12688         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12689         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12690
12691 2010-09-04  Bruno Haible  <bruno@clisp.org>
12692
12693         strdup: Fix compilation error in C++ mode.
12694         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12695         the macro.
12696
12697 2010-09-04  Bruno Haible  <bruno@clisp.org>
12698
12699         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12700         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12701         macro into a function.
12702         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12703
12704 2010-09-04  Bruno Haible  <bruno@clisp.org>
12705
12706         Set PATH_SEPARATOR the same way autoconf does.
12707         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12708         the value of PATH_SEPARATOR the same way autoconf-generated configure
12709         scripts do.
12710         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12711         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12712
12713 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12714
12715         Set PATH_SEPARATOR the same way autoconf does.
12716         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12717         the same way autoconf-generated configure scripts do.
12718         * posix-modules: Likewise.
12719
12720 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         hash: fix safe_hasher const typo
12723         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12724         const; otherwise, there is a type error later.
12725
12726 2010-09-02  Jim Meyering  <meyering@redhat.com>
12727
12728         test-update-copyright.sh: require perl 5.8.0
12729         * tests/test-update-copyright.sh: Require 5.8.0,
12730         which Tom G. Christensen has confirmed is adequate,
12731         while 5.6.1 is not.
12732
12733 2010-09-02  Eric Blake  <eblake@redhat.com>
12734
12735         tests: init.sh improvements for re-exec'ing with zsh
12736         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12737         -vx through shell re-exec.
12738         Reported by Tom G. Christensen.
12739
12740         wctype: fix typo in previous commit
12741         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12742         Reported by Ludovic Courtès.
12743
12744 2010-09-02  Jim Meyering  <meyering@redhat.com>
12745
12746         test-update-copyright.sh: skip test if Perl is too old
12747         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12748         Reported by Tom G. Christensen.
12749
12750 2010-09-02  Bruno Haible  <bruno@clisp.org>
12751
12752         wctype: Avoid compilation error on IRIX 6.5.30.
12753         * lib/wctype.in.h (iswblank): Declare with a replacement if
12754         REPLACE_ISWBLANK is set.
12755         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12756         declared. Set REPLACE_ISWBLANK.
12757         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12758         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12759         * doc/posix-headers/wctype.texi: Likewise.
12760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12761
12762 2010-09-01  Bruno Haible  <bruno@clisp.org>
12763
12764         New module 'socketlib'.
12765         * modules/socketlib: New file.
12766         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12767         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12768         * modules/sockets (Depends-on): Add socketlib.
12769         Suggested by Sam Steingold <sds@gnu.org>.
12770
12771 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12772
12773         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12774
12775         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12776         when one needs search access to a directory but not read access.
12777         On systems where it is available, it works in some cases where
12778         O_RDONLY does not, namely on directories that are searchable but
12779         not readable, and which need only to be searchable.  If O_SEARCH
12780         is not available, fall back to the traditional method of using
12781         O_RDONLY.
12782
12783         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12784         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12785         when opening a directory that needs only to be searchable.
12786         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12787         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12788         * lib/openat-proc.c (openat_proc_name): Likewise.
12789         * lib/openat.c (openat_needs_fchdir): Likewise.
12790         * lib/save-cwd.c (save_cwd): Likewise.
12791         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12792
12793 2010-08-28  Bruno Haible  <bruno@clisp.org>
12794
12795         New module 'host-cpu-c-abi'.
12796         * modules/host-cpu-c-abi: New file.
12797         * m4/host-cpu-c-abi.m4: New file, based on part of
12798         clisp/src/m4/general.m4.
12799         Requested by Sam Steingold <sds@gnu.org>.
12800
12801 2010-08-31  Eric Blake  <eblake@redhat.com>
12802         and Jim Meyering  <meyering@redhat.com>
12803
12804         hash: factor, and guard against misbehaving hasher function
12805         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12806         of table->hasher's return value.  Also protect against a hash value
12807         so large that adding it to table->bucket results in a NULL pointer.
12808         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12809         Use it in place of open-coded check-and-abort.
12810
12811 2010-08-30  Bruno Haible  <bruno@clisp.org>
12812
12813         hash: silence spurious clang warning
12814         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12815         Reported by Eric Blake.
12816
12817 2010-08-30  Eric Blake  <eblake@redhat.com>
12818
12819         strstr, memmem, strcasestr: avoid leaked shell message
12820         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12821         FreeBSD.
12822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12824
12825         tests: silence clang warning
12826         * tests/test-malloca.c (do_allocation): Avoid dead store.
12827
12828 2010-08-29  Bruno Haible  <bruno@clisp.org>
12829
12830         gettext: Fix recent mistake.
12831         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12832
12833 2010-08-29  Bruno Haible  <bruno@clisp.org>
12834
12835         selinux-h: Offer a --without-selinux option.
12836         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12837         --without-selinux was specified, skip all tests and define
12838         HAVE_SELINUX_SELINUX_H to 0.
12839         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12840         set LIB_SELINUX to empty.
12841         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12842         gl_LIBSELINUX. If --without-selinux was specified, replace
12843         selinux/context.h.
12844         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12845
12846 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12847             Bruno Haible  <bruno@clisp.org>
12848
12849         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12850         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12851         of HAVE_REALLOC.
12852         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12853         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12854         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12855         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12856
12857 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12858             Bruno Haible  <bruno@clisp.org>
12859
12860         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12861         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12862         HAVE_CALLOC.
12863         * lib/xmalloc.c: Update accordingly.
12864         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12865         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12866         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12867
12868 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12869             Bruno Haible  <bruno@clisp.org>
12870
12871         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12872         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12873         HAVE_MALLOC.
12874         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12875         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12876         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12877
12878 2010-08-29  Bruno Haible  <bruno@clisp.org>
12879
12880         Update modules list.
12881         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12882         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12883         (String handling <string.h>): Add astrxfrm.
12884         (File system functions): Add readlinkat.
12885
12886 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12887
12888         Tests for module 'realloc-gnu'.
12889         * modules/realloc-gnu-tests: New file.
12890         * tests/test-realloc-gnu.c: New file.
12891
12892         Tests for module 'calloc-gnu'.
12893         * modules/calloc-gnu-tests: New file.
12894         * tests/test-calloc-gnu.c: New file.
12895
12896         Tests for module 'malloc-gnu'.
12897         * modules/malloc-gnu-tests: New file.
12898         * tests/test-malloc-gnu.c: New file.
12899
12900 2010-08-28  Bruno Haible  <bruno@clisp.org>
12901
12902         Rename module 'realloc' -> 'realloc-gnu'.
12903         * modules/realloc-gnu: New file, copied from modules/realloc.
12904         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12905         obsolete.
12906         * modules/mgetgroups (Depends-on): Update.
12907         * doc/posix-functions/realloc.texi: Update.
12908         * NEWS: Mention the change.
12909
12910         Rename module 'calloc' -> 'calloc-gnu'.
12911         * modules/calloc-gnu: New file, copied from modules/calloc.
12912         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12913         obsolete.
12914         * doc/posix-functions/calloc.texi: Update.
12915         * NEWS: Mention the change.
12916
12917         Rename module 'malloc' -> 'malloc-gnu'.
12918         * modules/malloc-gnu: New file, copied from modules/malloc.
12919         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12920         obsolete.
12921         * modules/argp (Depends-on): Update.
12922         * modules/regex (Depends-on): Update.
12923         * doc/posix-functions/malloc.texi: Update.
12924         * NEWS: Mention the change.
12925
12926 2010-08-28  Eric Blake  <eblake@redhat.com>
12927
12928         pread, pwrite: add missing dependency
12929         * modules/pread (Depends-on): Add extensions.
12930         * modules/pwrite (Depends-on): Likewise.
12931
12932 2010-08-28  Bruno Haible  <bruno@clisp.org>
12933
12934         unistr/u*-strchr: Fix tests dependencies.
12935         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12936         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12937         Reported by Ian Beckwith <ianb@erislabs.net>.
12938
12939 2010-08-28  Bruno Haible  <bruno@clisp.org>
12940
12941         read-file: Don't occupy too much unused memory.
12942         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12943
12944 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12945             Eric Blake  <eblake@redhat.com>
12946             Bruno Haible  <bruno@clisp.org>
12947
12948         read-file: Avoid memory reallocations with regular files.
12949         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12950         (fread_file): With regular files, use the remaining length as the
12951         initial buffer size.  Check against overflow.
12952         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12953         sys_stat.
12954
12955 2010-08-28  Bruno Haible  <bruno@clisp.org>
12956
12957         ftello: Relax license.
12958         * modules/ftello (License): Relax to LGPLv2+.
12959         Reported by Eric Blake.
12960
12961 2010-08-28  Bruno Haible  <bruno@clisp.org>
12962
12963         Avoid relocwrapper link errors due to gnulib replacement functions.
12964         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12965         function.
12966         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12967
12968 2010-08-28  Bruno Haible  <bruno@clisp.org>
12969
12970         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12971         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12972         defined.
12973         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12974         Suggested by Eric Blake.
12975
12976 2010-08-28  Bruno Haible  <bruno@clisp.org>
12977
12978         sys_socket, netdb: Ensure socklen_t gets defined.
12979         * modules/sys_socket (Depends-on): Add socklen.
12980         * modules/netdb (Depends-on): Likewise.
12981         * modules/getaddrinfo (Depends-on): Remove socklen.
12982         * modules/getsockopt (Depends-on): Likewise.
12983         * modules/setsockopt (Depends-on): Likewise.
12984         * tests/test-sys_socket.c: Check that socklen_t is defined.
12985         * tests/test-netdb.c: Likewise.
12986         * m4/socklen.m4: Update comments.
12987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12988
12989 2010-08-27  Eric Blake  <eblake@redhat.com>
12990
12991         login_tty: add missing dependency
12992         * modules/login_tty (Depends-on): Add pty.
12993
12994 2010-08-26  Eric Blake  <eblake@redhat.com>
12995
12996         lib-symbol-versions: fix m4 quoting
12997         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12998         format for AC_LINK_IFELSE.
12999
13000         glob: fix compile test
13001         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13002
13003         btowc: fix missing file
13004         * modules/btowc (Files): Also ship locale-fr.m4.
13005
13006         lseek: fix link test
13007         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13008         AC_LINK_IFELSE.
13009
13010         include_next: silence autoconf 2.68 warning
13011         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13012         AC_COMPILE_IFELSE as special.
13013         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13014         autoconf < 2.68.
13015
13016         acl: fix compilation test
13017         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13018         AC_COMPILE_IFELSE.
13019
13020 2010-08-26  Bruno Haible  <bruno@clisp.org>
13021
13022         Modernize AC_TRY_RUN invocations.
13023         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13024         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13025         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13026         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13027         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13028         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13031         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13032         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13034         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13035         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13036         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13038         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13039         gl_MBRLEN_NUL_RETVAL): Likewise.
13040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13042         Likewise.
13043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13044         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13045         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13046         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13047         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13048         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13049         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13050         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13051         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13052         Likewise.
13053         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13054         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13056         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13057         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13058         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13059         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13060         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13061         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13063
13064 2010-08-26  Bruno Haible  <bruno@clisp.org>
13065
13066         Modernize AC_TRY_LINK invocations.
13067         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13068         AC_TRY_LINK.
13069         * m4/argp.m4 (gl_ARGP): Likewise.
13070         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13071         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13074         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13075         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13076         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13077         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13078         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13079         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13081         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13082         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13083         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13084         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13085         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13086         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13087         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13088         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13089         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13090         Likewise.
13091         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13092         Likewise.
13093         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13094         Likewise.
13095         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13096         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13097         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13098         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13099         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13100         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13101         * m4/servent.m4 (gl_SERVENT): Likewise.
13102         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13103         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13104         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13105         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13106         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13107         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13108         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13109         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13110         * modules/tsearch-tests (configure.ac): Likewise.
13111
13112 2010-08-26  Bruno Haible  <bruno@clisp.org>
13113
13114         Modernize AC_TRY_COMPILE invocations.
13115         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13116         AC_TRY_COMPILE.
13117         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13118         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13119         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13120         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13121         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13122         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13123         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13124         * m4/lock.m4 (gl_LOCK): Likewise.
13125         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13126         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13127         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13128         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13129         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13130         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13131         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13133         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13134         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13135         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13136         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13137         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13138         extraneous semicolon.
13139
13140 2010-08-26  Jim Meyering  <meyering@redhat.com>
13141
13142         stat-time: relax license LGPL
13143         * modules/stat-time (License): Change from GPL to LGPL,
13144         with consent from all contributors, for use in libguile.
13145         Requested by Ludovic Courtès.
13146
13147 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13148
13149         poll: return immediately on POLLHUP.
13150         * lib/poll.c (poll): Always set timeout before wait_timeout is
13151         computed.
13152
13153 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13154
13155         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13156         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13157         rmdir ("dir/.//"), unlinkat.
13158
13159 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13160
13161         stdbool: avoid spurious failure with modern xlc
13162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13163
13164 2010-08-24  Bruno Haible  <bruno@clisp.org>
13165
13166         getloadavg: simplify code
13167         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13168         gl_have_func. Update comments.
13169
13170 2010-08-24  Eric Blake  <eblake@redhat.com>
13171
13172         getloadavg: don't define SVR4 on cygwin
13173         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13174         only define SVR4 when -lkvm is required.
13175         Reported by Yaakov Selkowitz.
13176
13177 2010-08-24  Bruno Haible  <bruno@clisp.org>
13178
13179         priv-set: fix comment
13180         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13181
13182 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13183
13184         priv-set: fix comments
13185         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13186         to match code, as suggested by David Bartley in:
13187         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13188
13189 2010-08-23  Eric Blake  <eblake@redhat.com>
13190
13191         stdbool: avoid rejecting clang
13192         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13193         * tests/test-stdbool.c: Enable more tests if using the system
13194         <stdbool.h> instead of the gnulib replacement.
13195         (main): Move xlc bug test to a runtime test for all compilers.
13196         Reported by Anders Kaseorg.
13197
13198         argz: fix shell quoting issue
13199         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13200         Reported by Charles Wilson.
13201
13202 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13203             Erik Faye-Lund <kusmabite@gmail.com>
13204
13205         poll, select: handle ERROR_BROKEN_PIPE.
13206         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13207         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13208         * lib/select.c (win32_compute_revents): Do not mark a pipe
13209         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13210
13211 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13212
13213         fts: allow compilation with C++
13214         * lib/fts_.h: Specify extern "C" linkage with C++.
13215
13216 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13217
13218         Fix gnulib-tool sed script de-commentation for AIX sed.
13219         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13220         sed.
13221
13222 2010-08-17  Eric Blake  <eblake@redhat.com>
13223
13224         test-stddef: test for (some) offsetof bugs
13225         * tests/test-stddef.c: Enhance test to ensure correct type of
13226         offsetof.
13227         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13228         that we are not fixing at this time.
13229
13230 2010-08-15  Bruno Haible  <bruno@clisp.org>
13231
13232         stpncpy: Allow stpncpy to be defined as a macro.
13233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13234         if it's already correctly declared.
13235         * lib/string.in.h (stpncpy): Undefine before redefining.
13236         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13237
13238 2010-08-14  Bruno Haible  <bruno@clisp.org>
13239
13240         Rename module 'memxfrm' to 'amemxfrm'.
13241         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13242         (amemxfrm): Renamed from memxfrm.
13243         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13244         (amemxfrm): Renamed from memxfrm.
13245         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13246         * NEWS: Mention the change.
13247         * MODULES.html.sh (String handling <string.h>): Update.
13248         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13249         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13250         * lib/unicase/u16-casexfrm.c: Likewise.
13251         * lib/unicase/u32-casexfrm.c: Likewise.
13252         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13253         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13254         * lib/uninorm/u16-normxfrm.c: Likewise.
13255         * lib/uninorm/u32-normxfrm.c: Likewise.
13256         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13257         memxfrm.
13258         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13259         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13260         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13261         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13262         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13263         Suggested by Paul Eggert.
13264
13265 2010-08-14  Bruno Haible  <bruno@clisp.org>
13266
13267         Tests for module 'astrxfrm'.
13268         * modules/astrxfrm-tests: New file.
13269         * tests/test-astrxfrm.c: New file.
13270
13271         New module 'astrxfrm'.
13272         * lib/astrxfrm.h: New file.
13273         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13274         * modules/astrxfrm: New file.
13275
13276 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13277
13278         regex: Tweak doc.
13279         * doc/regex.texi (Overview): Don't mention regex.c.
13280         (GNU Regular Expression Compiling): Likewise.
13281         (Match-end-of-line Operator): Mention 'not_eol'.
13282
13283 2010-08-14  Brian Gough  <bjg@gnu.org>
13284             Bruno Haible  <bruno@clisp.org>
13285
13286         git-merge-changelog: add doc relating to use with bzr and hg.
13287         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13288
13289 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13290
13291         pthread: fix pthread.h creation for srcdir != builddir
13292         * modules/pthread (Makefile.am): Fix the rule to work also in a
13293         non-srcdir build.
13294
13295 2010-08-13  Karl Berry  <karl@gnu.org>
13296
13297         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13298         * doc/posix-*/*: force line break before @url of POSIX
13299         specifications.
13300         Suggested by Werner Lemberg.
13301
13302 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13303
13304         strtod: fix const diagnostic
13305         * lib/strtod.c (strtod): Don't assign const char * to char *,
13306         as this elicits a warning from GCC when warnings are enabled.
13307
13308 2010-08-10  Pádraig Brady <P@draigbrady.com>
13309         and Eric Blake  <eblake@redhat.com>
13310
13311         copy-acl: ignore ENOTSUP on HP-UX
13312         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13313         so that it is available for HP-UX.
13314         * lib/copy-acl.c (qcopy_acl): Use it.
13315         Reported by Patrick M. Callahan.
13316
13317 2010-08-10  Eric Blake  <eblake@redhat.com>
13318
13319         open, chown: relax license
13320         * modules/open (License): Change to LGPLv2+, with consent by all
13321         authors, for use in augeas.
13322         * modules/chown (License): Likewise.
13323         * modules/lchown (Likewise): Likewise.
13324         Requested by Adam Stokes.
13325
13326 2010-08-09  Karl Berry  <karl@gnu.org>
13327
13328         * build-aux/ar-lib: new file, import from Automake.
13329         * config/srclist.txt: autocheck for updates.
13330
13331 2010-08-09  Eric Blake  <eblake@redhat.com>
13332
13333         readlinkat: adjust client modules
13334         * modules/areadlinkat (Depends-on): Use readlinkat, not
13335         symlinkat.
13336         * modules/areadlinkat-with-size (Depends-on): Likewise.
13337
13338         mknod: be more vocal about danger of running tests as root
13339         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13340         root, since that is just asking for problems.
13341         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13342
13343         readlinkat: split into its own module
13344         * modules/symlinkat: Split readlinkat...
13345         * modules/readlinkat: ...into separate module.
13346         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13347         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13348         * lib/symlinkat.c (readlinkat): Move...
13349         * lib/readlinkat.c: ...into new file.
13350         * modules/symlinkat-tests: Split readlinkat test...
13351         * modules/readlinkat-tests: ...into separate module.
13352         * tests/test-symlinkat.c: Split...
13353         * tests/test-readlinkat.c: ...into new file.
13354         * NEWS: Document the split.
13355         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13356         * lib/unistd.in.h (readlinkat): Likewise.
13357         Suggested by Bruno Haible.
13358
13359 2010-08-08  Bruno Haible  <bruno@clisp.org>
13360
13361         memxfrm: Speed up.
13362         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13363         that usually only one call to strxfrm is necessary for each string
13364         part.
13365         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13366
13367 2010-08-07  Karl Berry  <karl@gnu.org>
13368
13369         * doc/posix-headers/limits.texi,
13370         * doc/posix-functions/malloc.texi,
13371         * doc/posix-functions/strsignal.texi: missing @item.
13372         * doc/ld-version-script.texi: spurious leading i.
13373         * doc/regex.texi (Interval Operators): no commas inside @var.
13374
13375 2010-08-01  Bruno Haible  <bruno@clisp.org>
13376
13377         Integrate the regex documentation.
13378         * doc/gnulib.texi: Define 'cn' index.
13379         (Regular expressions): New a chapter that includes regex.texi and
13380         regexprops-generic.texi.
13381         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13382         syntax.
13383
13384         Whitespace cleanup.
13385         * doc/regex.texi: Remove trailing spaces.
13386
13387         Add regex documentation.
13388         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13389         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13390         Written by Kathy A. Hargreaves and Karl Berry.
13391
13392 2010-08-01  Bruno Haible  <bruno@clisp.org>
13393
13394         link: Update documentation.
13395         * doc/posix-functions/link.texi: Update regarding Solaris.
13396
13397 2010-07-31  Bruno Haible  <bruno@clisp.org>
13398
13399         Update modules list.
13400         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13401         (String handling <string.h>): Add memcmp2, memxfrm.
13402         (Container data structures): Add xlist, xsublist, xoset.
13403         (Core language properties): Add alignof, unused-parameter.
13404         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13405         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13406         (Unibyte characters <ctype.h>): New section.
13407         (String handling <string.h>): New section.
13408         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13409         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13410         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13411         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13412         tan, tanh, tanl, y0, y1, yn.
13413         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13414         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13415         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13416         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13417         unlockpt, vdprintf, vdprintf-posix.
13418         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13419         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13420         xconcat-filename.
13421         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13422         getdtablesize, pipe2, pipe2-safer.
13423         (Security): New section.
13424         (Networking functions): Add accept4.
13425         (Signal handling): Add sigpipe.
13426         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13427         mbmemcasecoll.
13428         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13429         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13430         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13431         pipe-filter-ii.
13432         (Misc): Add argp-version-etc, login_tty, parse-duration.
13433
13434 2010-07-31  Bruno Haible  <bruno@clisp.org>
13435
13436         Improve doc in MODULES.html.
13437         * modules/linkat (Description): Add the word "function".
13438         * modules/mkfifo (Description): Likewise.
13439         * modules/mknod (Description): Likewise.
13440         * modules/remove (Description): Likewise.
13441         * modules/renameat (Description): Likewise.
13442         * modules/stat (Description): Likewise.
13443         * modules/symlink (Description): Likewise.
13444         * modules/unlink (Description): Likewise.
13445
13446 2010-07-31  Bruno Haible  <bruno@clisp.org>
13447
13448         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13449         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13450         option --enable/disable-c++ instead of --enable/disable-cxx.
13451         * NEWS: Mention the change.
13452
13453 2010-07-31  Bruno Haible  <bruno@clisp.org>
13454
13455         readlink, areadlink: Relax test a bit.
13456         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13457         alternative to ENOTDIR.
13458         * tests/test-areadlink.h (test_areadlink): Likewise.
13459         Reported by Rainer Tammer.
13460
13461 2010-07-31  Bruno Haible  <bruno@clisp.org>
13462
13463         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13464         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13465         character, perform the search using U_STRCHR.
13466         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13467         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13468         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13469         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13470         Suggested by Paolo Bonzini.
13471
13472 2010-07-31  Bruno Haible  <bruno@clisp.org>
13473
13474         unistr/u*-strstr: Fix dependencies.
13475         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13476         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13477         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13478
13479 2010-07-31  Bruno Haible  <bruno@clisp.org>
13480
13481         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13482         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13483         the beginning of the loop.
13484         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13485         cases in 'switch' statement.
13486
13487         unistr/u8-strchr: Fix several bugs.
13488         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13489         the string. When not found, return NULL, not a pointer near the end.
13490
13491         More tests for unistr/u8-strchr.
13492         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13493         that the function does not read past the first occurrence of the byte
13494         being searched.
13495         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13496         * tests/unistr/test-u16-strchr.c (main): New function.
13497         * tests/unistr/test-u32-strchr.c (main): New function.
13498
13499 2010-07-31  Bruno Haible  <bruno@clisp.org>
13500
13501         posix-modules: Ignore backup files of documentation files.
13502         * posix-modules: grep only through files named *.texi.
13503
13504 2010-07-31  Bruno Haible  <bruno@clisp.org>
13505
13506         symlinkat: Fix documentation.
13507         * doc/posix-functions/readlinkat.texi: Fix module name.
13508
13509 2010-07-31  Bruno Haible  <bruno@clisp.org>
13510
13511         fchownat: Replace also when chown has the trailing slash bug.
13512         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13513         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13514         introduced on 2010-04-10.
13515         Reported by Rainer Tammer.
13516
13517 2010-07-31  Bruno Haible  <bruno@clisp.org>
13518
13519         linkat: Work around AIX 7.1 bug.
13520         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13521         whether linkat handles trailing slash correctly. If not, replace linkat
13522         and define LINKAT_TRAILING_SLASH_BUG.
13523         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13524         check whether (fd1,file1) points to a directory if file1 or file2 ends
13525         in a slash. Code taken from lib/link.c.
13526         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13527         Reported by Rainer Tammer.
13528
13529 2010-07-31  Bruno Haible  <bruno@clisp.org>
13530
13531         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13532         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13533         This disables an xlc optimization that was causing wrong test results.
13534         Reported by Rainer Tammer.
13535
13536 2010-07-31  Bruno Haible  <bruno@clisp.org>
13537
13538         iconv: Work around AIX 6.1..7.1 bug.
13539         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13540         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13541         cross-compiling, guess no on all versions of AIX.
13542         Reported by Rainer Tammer.
13543
13544 2010-07-31  Bruno Haible  <bruno@clisp.org>
13545
13546         readlink: Relax test a bit.
13547         * tests/test-readlink.h (test_readlink): Allow different errno value
13548         when readlink is called with a file name that ends in / and refers to
13549         a file.
13550         Suggested by Eric Blake.
13551         Reported by Rainer Tammer.
13552
13553 2010-07-31  Bruno Haible  <bruno@clisp.org>
13554
13555         copysign: Does not require -lm on glibc systems.
13556         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13557         gl_COMMON_DOUBLE_MATHFUNC.
13558         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13559
13560 2010-07-31  Bruno Haible  <bruno@clisp.org>
13561
13562         duplocale: Work around AIX 7.1 bug.
13563         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13564         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13565         * lib/duplocale.c (rpl_duplocale): Update comment.
13566         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13567         Reported by Rainer Tammer.
13568
13569 2010-07-30  Bruno Haible  <bruno@clisp.org>
13570
13571         dirfd: Avoid link error on AIX 7.1.
13572         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13573         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13574         exist, set REPLACE_DIRFD.
13575         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13576         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13577         * doc/posix-functions/dirfd.texi: Update.
13578         Reported by Rainer Tammer.
13579
13580 2010-07-30  Eric Blake  <eblake@redhat.com>
13581
13582         strtod: next round of AIX fixes
13583         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13584         exponent.
13585         * tests/test-strtod.c (main): Enhance tests.
13586         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13587         Reported by Rainer Tammer.
13588
13589         futimens: fix configure check
13590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13591         Reported by Bruno Haible.
13592
13593 2010-07-30  Bruno Haible  <bruno@clisp.org>
13594
13595         getline: Update regarding AIX.
13596         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13597         Reported by Rainer Tammer.
13598
13599 2010-07-30  Bruno Haible  <bruno@clisp.org>
13600
13601         wcwidth: Drop replacement on AIX 7.
13602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13603         AIX 7.
13604         Reported by Rainer Tammer.
13605
13606 2010-07-30  Bruno Haible  <bruno@clisp.org>
13607
13608         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13610         a 'char *'.
13611         Reported by Rainer Tammer.
13612
13613 2010-07-30  Bruno Haible  <bruno@clisp.org>
13614
13615         unlink: Update regarding AIX.
13616         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13617         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13618         Reported by Rainer Tammer.
13619
13620 2010-07-30  Bruno Haible  <bruno@clisp.org>
13621
13622         symlink: Update regarding AIX.
13623         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13624         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13625         Reported by Rainer Tammer.
13626
13627 2010-07-30  Bruno Haible  <bruno@clisp.org>
13628
13629         strndup: Update regarding AIX.
13630         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13631         AIX 7.
13632         Reported by Rainer Tammer.
13633
13634 2010-07-30  Bruno Haible  <bruno@clisp.org>
13635
13636         stat: Update regarding AIX.
13637         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13638         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13639         Reported by Rainer Tammer.
13640
13641 2010-07-30  Bruno Haible  <bruno@clisp.org>
13642
13643         truncl: Fix autoconf test.
13644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13645         whether truncl works.
13646         Reported by Rainer Tammer.
13647
13648 2010-07-30  Bruno Haible  <bruno@clisp.org>
13649
13650         round: Update regarding AIX.
13651         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13652         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13653         Reported by Rainer Tammer.
13654
13655 2010-07-30  Bruno Haible  <bruno@clisp.org>
13656
13657         rename: Update regarding AIX.
13658         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13659         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13660         Reported by Rainer Tammer.
13661
13662 2010-07-30  Bruno Haible  <bruno@clisp.org>
13663
13664         printf.m4: Update regarding AIX.
13665         * m4/printf.m4: Update comments regarding AIX.
13666         Reported by Rainer Tammer.
13667
13668 2010-07-30  Bruno Haible  <bruno@clisp.org>
13669
13670         iconv: Update regarding AIX.
13671         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13672         AIX 7.
13673         Reported by Rainer Tammer.
13674
13675 2010-07-30  Bruno Haible  <bruno@clisp.org>
13676
13677         getopt: Update regarding AIX.
13678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13679         no on AIX.
13680         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13681         Reported by Rainer Tammer.
13682
13683 2010-07-30  Bruno Haible  <bruno@clisp.org>
13684
13685         ldexpl; Update regarding AIX.
13686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13687         on AIX 7.
13688         Reported by Rainer Tammer.
13689
13690 2010-07-30  Bruno Haible  <bruno@clisp.org>
13691
13692         frexpl: Update regarding AIX.
13693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13694         on AIX 7.
13695         Reported by Rainer Tammer.
13696
13697 2010-07-30  Bruno Haible  <bruno@clisp.org>
13698
13699         open, fopen: Update regarding AIX.
13700         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13701         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13702         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13703         * doc/posix-functions/fopen.texi: Likewise.
13704         Reported by Rainer Tammer.
13705
13706 2010-07-30  Bruno Haible  <bruno@clisp.org>
13707
13708         chown: Update doc regarding AIX.
13709         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13710         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13711         Reported by Rainer Tammer.
13712
13713 2010-07-30  Eric Blake  <eblake@redhat.com>
13714
13715         strtod: fix bug in replacement function on AIX
13716         * lib/strtod.c (strtod): Special case broken "0x" parse in
13717         underlying strtod.
13718         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13719         * doc/posix-functions/strtod.texi (strtod): Likewise.
13720         Reported by Rainer Tammer.
13721
13722 2010-07-30  Bruno Haible  <bruno@clisp.org>
13723
13724         mbrlen: Fix cross-compilation guess for AIX.
13725         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13726         guess. Leftover from 2008-12-22.
13727
13728 2010-07-30  Bruno Haible  <bruno@clisp.org>
13729
13730         mbrtowc: Fix cross-compilation guess for AIX.
13731         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13732         guess. Leftover from 2008-12-21.
13733
13734 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13735
13736         init.sh: work around trap limitation of some shells
13737         * tests/init.sh (setup_): Move exit trap outside of shell function.
13738
13739 2010-07-29  Eric Blake  <eblake@redhat.com>
13740
13741         strtod: aid debugging
13742         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13743         understanding why strtod is rejected.
13744
13745 2010-07-28  Bruno Haible  <bruno@clisp.org>
13746
13747         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13748         * lib/unistr/u8-chr.c: Include <string.h>.
13749         * tests/unistr/test-u8-chr.c: Likewise.
13750         * tests/unistr/test-u16-chr.c: Likewise.
13751         * tests/unistr/test-u32-chr.c: Likewise.
13752         * tests/unistr/test-u8-strchr.c: Likewise.
13753         * tests/unistr/test-u16-strchr.c: Likewise.
13754         * tests/unistr/test-u32-strchr.c: Likewise.
13755         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13756         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13757         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13758         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13759
13760 2010-07-28  Bruno Haible  <bruno@clisp.org>
13761
13762         Use spaces for indentation, not tabs.
13763         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13764
13765 2010-07-27  Bruno Haible  <bruno@clisp.org>
13766
13767         mbspcasecmp: Fix function specification.
13768         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13769         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13770         Reported by Eric Blake <eblake@redhat.com>.
13771
13772 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13773
13774         timespec: use cast and not conditional, as truncation isn't possible
13775         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13776         instead of a conditional.  Comment about the situation in more detail.
13777         This undoes most of the 2009-10-29 patch.
13778
13779 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13780
13781         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13782         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13783         * lib/unistr/u8-strchr.c: Likewise.
13784         * modules/unistr/u8-chr: Depend on memchr.
13785
13786         unistr/u*-strchr: add tests
13787         * modules/unistr/u8-strchr-tests: New file.
13788         * modules/unistr/u16-strchr-tests: New file.
13789         * modules/unistr/u32-strchr-tests: New file.
13790         * tests/unistr/test-strchr.h: New file.
13791         * tests/unistr/test-u8-strchr.c: New file.
13792         * tests/unistr/test-u16-strchr.c: New file.
13793         * tests/unistr/test-u32-strchr.c: New file.
13794
13795         unistr/u*-chr: test multibyte sequences more
13796         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13797         test vector.
13798         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13799         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13800         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13801
13802         unistr/u*-chr: test multibyte sequences
13803         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13804
13805         unistr/u*-chr: prepare for multibyte tests
13806         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13807         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13808         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13809         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13810         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13811         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13812
13813 2010-07-18  Bruno Haible  <bruno@clisp.org>
13814
13815         unistr/u8-strchr: Optimize non-ASCII argument case.
13816         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13817         because the first byte often matches anyway.
13818         Reported by Pádraig Brady <P@draigbrady.com>.
13819
13820 2010-07-15  Karl Berry  <karl@gnu.org>
13821
13822         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13823
13824 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13825
13826         getcwd: on Solaris, work better if ancestors are inaccessible
13827         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13828         buffer and size, try again with a large buffer.  This works better
13829         on Solaris, since its getcwd succeeds even if the path to the root
13830         is inaccessible, and this is helpful in common cases such as .zfs
13831         hidden directories.  Problem reported by J Chapman Flack in
13832         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13833         Use system getcwd if it's declared, not merely if it's partly
13834         working; use the partly-working test only to avoid needless effort
13835         if the system getcwd fails.
13836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13837         comment that was already obsolete and is now even more obsolete.
13838         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13839         now might call strdup.
13840
13841 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13842
13843         pthread: Add enough so that coreutils/src/sort.c compiles.
13844         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13845         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13846         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13847         Include <sys/types.h>, in case it defines pthread_t.
13848         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13849         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13850         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13851         (pthread_rwlockattr_t, pthread_spinlock_t):
13852         New typedefs, if HAVE_PTHREAD_T is not defined.
13853         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13854         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13855         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13856         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13857         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13858         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13859         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13860         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13861         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13862         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13863         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13864         New macros.
13865         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13866         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13867         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13868         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13869         (pthread_spin_unlock): New dummy functions.
13870         (pthread_create): Return EAGAIN; don't set errno.
13871         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13872         require AC_C_INLINE.
13873         * modules/pthread (Depends-on): Add sched, time.
13874         (pthread.h): Use AM_V_GEN.
13875
13876 2010-07-13  Bruno Haible  <bruno@clisp.org>
13877
13878         striconveh: Don't malloc memory if the result buffer is sufficient.
13879         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13880         buffer if its size is sufficient.
13881         Reported by Ludovic Courtès <ludo@gnu.org>.
13882
13883 2010-07-13  Bruno Haible  <bruno@clisp.org>
13884
13885         strtod: Add safety check.
13886         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13887
13888 2010-07-12  Bruno Haible  <bruno@clisp.org>
13889
13890         Unify tests that set gl_cv_func_ldexpl_no_libm.
13891         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13892         gl_FUNC_LDEXPL.
13893         (gl_FUNC_LDEXPL): Invoke it.
13894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13895
13896 2010-07-12  Bruno Haible  <bruno@clisp.org>
13897
13898         Unify tests that set gl_cv_func_ldexp_no_libm.
13899         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13900         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13901         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13902         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13903         * modules/strtod (Files): Add m4/ldexp.m4.
13904
13905 2010-07-12  Bruno Haible  <bruno@clisp.org>
13906
13907         Unify tests that set gl_cv_func_frexpl_no_libm.
13908         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13909         gl_FUNC_FREXPL_NO_LIBM.
13910         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13911         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13912
13913 2010-07-12  Bruno Haible  <bruno@clisp.org>
13914
13915         Unify tests that set gl_cv_func_frexp_no_libm.
13916         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13917         gl_FUNC_FREXP_NO_LIBM.
13918         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13919         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13920
13921 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13922
13923         memcoll: clarify sizes versus lengths, document better, and tweak perf
13924         * lib/memcoll.c (strcoll_loop, memcoll0):
13925         Improve quality of descriptive comments.  Name variables
13926         consistently as to whether they are lengths (which do not include
13927         terminating null) versus sizes (which do).
13928         * lib/xmemcoll.c (xmemcoll0): Likewise.
13929         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13930         returned when s1size == 0; this is easier to compile and saves
13931         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13932
13933 2010-07-12  Bruno Haible  <bruno@clisp.org>
13934
13935         Tests for module '_Exit'.
13936         * modules/_Exit-tests: New file.
13937         * tests/test-_Exit.sh: New file.
13938         * tests/test-_Exit.c: New file.
13939
13940         New module '_Exit'.
13941         * lib/stdlib.in.h (__attribute__): New macro.
13942         (_Exit): New declaration.
13943         * lib/_Exit.c: New file.
13944         * m4/_Exit.m4: New file.
13945         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13946         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13947         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13948         * modules/_Exit: New file.
13949         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13950         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13951
13952 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13953
13954         strtod: make it more-accurate typically, and don't require libm
13955         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13956         Include limits.h.  Don't include string.h.
13957         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13958         (locale_isspace): New function, so that no casts are needed to
13959         check whether *s is a space.
13960         (ldexp): Provide an unused dummy if not available.
13961         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13962         (strtod): Use them.  This implementation prefers to use the
13963         underlying strtod if available, falling back on our own code
13964         only to fix known bugs.  This is more likely to produce an
13965         accurate result.  Also, it avoids the use of libm functions.
13966         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13967         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13968         was absent, but it caused a test failure with coreutils.
13969         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13970         with libm.
13971         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13972         * modules/strtod-tests (Makefile.am): Likewise.
13973
13974 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13975             Bruno Haible  <bruno@clisp.org>
13976
13977         unistr/u8-strchr: Optimize ASCII argument case.
13978         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13979
13980 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13981
13982         (x)memcoll: minor tweaks
13983         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13984         is after the type that it qualifies.
13985         (memcoll0): Likewise.
13986         * lib/memcoll.h (memcoll0): Likewise.
13987         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13988         * lib/xmemcoll.h (xmemcoll0): Likewise.
13989         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13990         differs from memcoll in that the NUL byte is part of the argument.
13991         Omit the abort-checks, as performance is a real issue here.  Plus,
13992         the checks were wrong anyway (an off-by-one error).  Omit local
13993         variable 'diff', as it's a bit clearer that way.
13994         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13995         no longer needed.
13996
13997 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13998
13999         (x)memcoll: speedup when input is known to be NUL delimited
14000         * lib/memcoll.c: Include stdlib.
14001         (memcoll0): New function.
14002         (strcoll_loop): New function, refactored for use in both memcoll
14003         and memcoll0.
14004         * lib/memcoll.h (memcoll0): Add prototype.
14005         * lib/xmemcoll.c (xmemcoll0): New function.
14006         (collate_error): New function, refactored for use in both xmemcoll
14007         and xmemcoll0.
14008         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14009         * m4/memcoll.m4: add inline invocation.
14010
14011 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14012
14013         * build-aux/bootstrap: Remove any local translations
14014         from the translation project synchronization directory,
14015         so that local only translations are not distributed.
14016
14017 2010-07-04  Bruno Haible  <bruno@clisp.org>
14018
14019         fsusage: Clarify which code applies to which platforms.
14020         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14021         platform.
14022         * lib/fsusage.c (get_fs_usage): Likewise.
14023
14024 2010-07-04  Bruno Haible  <bruno@clisp.org>
14025
14026         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14027         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14028         Reported by Martin Lambers <marlam@marlam.de>.
14029
14030 2010-07-04  Jim Meyering  <meyering@redhat.com>
14031
14032         hash: once again explicitly disallow insertion of NULL
14033         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14034         inserting a NULL pointer cannot work with these functions.
14035         Add a comment with details.
14036         This reverts part of the 2010-07-01 commit, 5bef1a35
14037         "hash: extend module to deal with non-pointer keys".
14038
14039 2010-07-01  Bruno Haible  <bruno@clisp.org>
14040
14041         stdbool: Update doc.
14042         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14043         Info from Christian Weisgerber <naddy@mips.inka.de>.
14044
14045 2010-07-01  Jim Meyering  <meyering@redhat.com>
14046
14047         hash: extend module to deal with non-pointer keys
14048         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14049         but that allows insertion of non-pointer entries.
14050         Do not disallow an ENTRY value of NULL.
14051         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14052         * lib/hash.h (hash_insert0): Declare.
14053
14054 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14055
14056         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14057         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14058         not present (i.e. with autoconf 2.59 and when using gettextize, not
14059         gnulib), require AC_GNU_SOURCE instead.
14060
14061 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14062
14063         idpriv-drop: Fix tests.
14064         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14065         not to the test-idpriv-droptemp program.
14066
14067 2010-06-29  Bruno Haible  <bruno@clisp.org>
14068
14069         string: Fix syntax error with g++ 2.96.
14070         * lib/string.in.h (__pure__): Remove definition.
14071         (_GL_ATTRIBUTE_PURE): New macro.
14072         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14073         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14074         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14075
14076 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14077
14078         unitypes: Fix bug introduced on 2010-05-18.
14079         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14080
14081 2010-06-22  Eric Blake  <eblake@redhat.com>
14082
14083         memmem: slight optimization
14084         * lib/str-two-way.h (critical_factorization): Update comments.
14085         Reduce work during factorization phase.
14086         Reported by Carlos Bueno <carlos@bueno.org>.
14087
14088 2010-06-21  Bruno Haible  <bruno@clisp.org>
14089
14090         Fix HAVE_CALLOC_POSIX misnomer.
14091         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14092         !HAVE_CALLOC_POSIX.
14093         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14094         HAVE_CALLOC_POSIX.
14095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14096         instead of HAVE_CALLOC_POSIX.
14097         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14098         HAVE_CALLOC_POSIX.
14099
14100         Use modern idiom for calloc() replacement.
14101         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14102         AC_FUNC_CALLOC.
14103         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14104         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14105         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14106         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14107         (gl_REPLACE_CALLOC): New macro.
14108
14109 2010-06-21  Bruno Haible  <bruno@clisp.org>
14110
14111         Fix HAVE_REALLOC_POSIX misnomer.
14112         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14113         !HAVE_REALLOC_POSIX.
14114         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14115         HAVE_REALLOC_POSIX.
14116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14117         instead of HAVE_REALLOC_POSIX.
14118         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14119         HAVE_REALLOC_POSIX.
14120
14121         Use modern idiom for realloc() replacement.
14122         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14123         AC_FUNC_REALLOC.
14124         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14125         Autoconf's AC_FUNC_REALLOC.
14126         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14127         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14128         (gl_REPLACE_REALLOC): New macro.
14129         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14130
14131 2010-06-21  Bruno Haible  <bruno@clisp.org>
14132
14133         Fix HAVE_MALLOC_POSIX misnomer.
14134         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14135         !HAVE_MALLOC_POSIX.
14136         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14137         HAVE_MALLOC_POSIX.
14138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14139         instead of HAVE_MALLOC_POSIX.
14140         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14141         HAVE_MALLOC_POSIX.
14142
14143         Use modern idiom for malloc() replacement.
14144         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14145         AC_FUNC_MALLOC.
14146         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14147         Autoconf's AC_FUNC_MALLOC.
14148         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14149         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14150         (gl_REPLACE_MALLOC): New macro.
14151         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14152
14153 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14154
14155         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14156         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14157         This macro takes 3 arguments, not 4.
14158
14159 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14160
14161         ipv6: fix detection under mingw
14162         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14163         in6_addr.
14164
14165 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14166
14167         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14168         that strtod() works when cross-compiling to a glibc version known
14169         to work.
14170
14171 2010-06-15  Bruno Haible  <bruno@clisp.org>
14172
14173         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14174
14175 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14176
14177         select: Correct timeout.
14178         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14179
14180 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14181
14182         git-version-gen: init shell var to avoid env var influence
14183         * build-aux/git-version-gen (v): Init shell var to empty.
14184
14185 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14186
14187         priv-set: Don't assume that priv.h exists merely because getppriv does.
14188         See Jan Andersen's bug report about AIX 5L in
14189         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14190         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14191         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14192         * lib/priv-set.h: Likewise.
14193         * tests/test-priv-set.c: Likewise.
14194
14195 2010-06-13  Bruno Haible  <bruno@clisp.org>
14196
14197         relocatable: Make it easier to test whether to install wrappers.
14198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14199         RELOCATABLE_VIA_WRAPPER.
14200
14201 2010-06-13  Bruno Haible  <bruno@clisp.org>
14202
14203         gnulib-tool: Display specified modules and dependencies differently.
14204         * gnulib-tool (func_show_module_list): New function.
14205         (func_import, func_create_testdir): Invoke it.
14206         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14207
14208 2010-06-13  Bruno Haible  <bruno@clisp.org>
14209
14210         gnulib-tool: Align code of func_import and func_create_testdir.
14211         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14212         specified_modules.
14213
14214 2010-06-12  Jim Meyering  <meyering@redhat.com>
14215
14216         test-inttostr: avoid spurious failure on Solaris 9
14217         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14218         to accept "%ju".  Reported by Bruno Haible.
14219
14220 2010-06-11  Jim Meyering  <meyering@redhat.com>
14221
14222         test-sys_socket: mark variables as used more readably
14223         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14224         as "used" explicitly via (void) statement casts.  This is more
14225         readable than using them in an artificial return expression.
14226         Suggestion from Bruno Haible.
14227
14228 2010-06-11  Bruno Haible  <bruno@clisp.org>
14229
14230         Avoid some more warnings from "gcc -Wwrite-strings".
14231         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14232         to 'const char *'.
14233         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14234         * tests/test-c-strcasestr.c (main): Likewise.
14235         * tests/test-mbscasestr1.c (main): Likewise.
14236         * tests/test-mbscasestr2.c (main): Likewise.
14237         * tests/test-memmem.c (main): Likewise.
14238         * tests/test-strstr.c (main): Likewise.
14239         * tests/test-strcasestr.c (main): Likewise.
14240
14241 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14242
14243         init.sh: change framework_failure_ to fail with status 99, not 1
14244         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14245         automake's parallel-tests rule that this is an unexpected failure,
14246         even if the test is listed in XFAIL_TESTS.
14247
14248 2010-06-11  Jim Meyering  <meyering@redhat.com>
14249
14250         test-inttostr: avoid warnings about 4-6KB literal strings
14251         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14252         Include "macros.h", for its definition of ASSERT.
14253         (CK): s/assert/ASSERT/
14254         * modules/inttostr-tests (Files): Add macros.h.
14255
14256         init.sh: don't use $ME_ or skip_ before they are defined
14257         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14258         their first uses.  Also hoist their companions: warn_, fail_,
14259         framework_failure_, $stderr_fileno.  Prompted by a patch from
14260         Stefano Lattarini.
14261
14262         test-sys_socket: avoid set-but-not-used warnings from gcc
14263         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14264         avoid warning about set-but-not-used variables.
14265
14266         test-xvasprintf: avoid 'const' discard warnings
14267         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14268         "const" when assigning from literal strings.
14269         (test_xasprintf): Add "void" in function argument list to placate
14270         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14271
14272         tests: avoid compilation warnings in argmatch and exclude tests...
14273         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14274         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14275         Since it always exits, declare with the "noreturn" attribute.
14276         * tests/test-argmatch.c: Likewise.
14277
14278         tests: avoid 'const' discard warnings in mbsstr tests
14279         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14280         * tests/test-mbsstr2.c (main): Likewise.
14281
14282         test-verify: avoid warning from gcc's -Wmissing-declarations
14283         * tests/test-verify.c (function): Declare to be static.
14284
14285         test-inttostr.c: include <string.h> for use of strcmp
14286         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14287
14288         test-linkat: avoid failed assertion on "other" architectures
14289         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14290         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14291         sparc: https://bugs.launchpad.net/bugs/591968
14292
14293 2010-06-11  Jim Meyering  <meyering@redhat.com>
14294
14295         printf.m4: avoid autoconf's "Expanded Before Required" warning
14296         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14297         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14298         autoconf warning.
14299
14300 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14301
14302         Replacement header templates are now named with ".in", not "_".
14303         * doc/gnulib-intro.texi: Correct.
14304
14305 2010-06-10  Jim Meyering  <meyering@redhat.com>
14306
14307         inttostr-tests: depend on snprintf, not snprintf-posix
14308         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14309         snprintf-posix, to avoid this aclocal failure:
14310           missing file gnulib-tests/vasnprintf.c
14311           configure.ac:45: error: expected source file, required through \
14312           AC_LIBSOURCES, not found
14313
14314 2010-06-10  Jim Meyering  <meyering@redhat.com>
14315
14316         inttostr: add a new function, inttostr, and tests
14317         The namesake function was not available.  The existence of the
14318         template file, inttostr.c makes its addition nontrivial.
14319         * lib/anytostr.c: Rename from inttostr.c.
14320         (anytostr): Rename from inttostr.
14321         * lib/inttostr.c: New file.
14322         * modules/inttostr (Files): Add anytostr.c.
14323         (Makefile.am): Set lib_SOURCES instead of ...
14324         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14325         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14326         * lib/offtostr.c: Likewise.
14327         * lib/uinttostr.c: Likewise.
14328         * lib/umaxtostr.c: Likewise.
14329         * modules/inttostr-tests: New file.
14330         * tests/test-inttostr.c: New file.  Test these functions.
14331
14332 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14333             Bruno Haible  <bruno@clisp.org>
14334
14335         Add "Extending Gnulib" chapter to manual.
14336         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14337         chapter.
14338         (Extending Gnulib): New chapter.
14339         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14340         chapter.
14341
14342 2010-06-09  Bruno Haible  <bruno@clisp.org>
14343
14344         Avoid relocwrapper link errors due to gnulib replacement functions.
14345         * lib/areadlink.c: Use the system's malloc, realloc functions.
14346         (areadlink): Set errno to ENOMEM explicitly.
14347         * modules/areadlink (Depends-on): Remove malloc-posix.
14348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14349
14350 2010-06-09  Bruno Haible  <bruno@clisp.org>
14351
14352         Avoid relocwrapper link errors due to gnulib replacement functions.
14353         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14354         * lib/malloca.c: Likewise.
14355         * lib/relocatable.c: Likewise.
14356         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14357         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14358         * lib/setenv.c: Use the system's malloc, realloc functions.
14359         * lib/strerror.c: Use the system's sprintf function.
14360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14361
14362 2010-06-04  Bruno Haible  <bruno@clisp.org>
14363
14364         Prefer documented low-level autoconf macro names.
14365         * m4/lib-link.m4: Use m4_translit instead of translit.
14366         * m4/environ.m4: Likewise.
14367         * m4/mathfunc.m4: Likewise.
14368         * m4/onceonly.m4: Likewise.
14369         * m4/stdint.m4: Likewise.
14370         Suggested by Eric Blake.
14371
14372 2010-06-04  Martin Lambers  <marlam@marlam.de>
14373             Bruno Haible  <bruno@clisp.org>
14374
14375         havelib: Allow library names with '+' characters.
14376         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14377         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14378
14379 2010-06-09  Bruno Haible  <bruno@clisp.org>
14380
14381         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14382         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14383         realloc failed.
14384
14385 2010-06-08  Peter Simons  <simons@cryp.to>
14386
14387         maint.mk: make the news-check rule more configurable
14388         * top/maint.mk (news-check-lines-spec): New variable.
14389         (news-check): Use "sed -n 1,10p" in place of "head".
14390
14391 2010-06-07  Jim Meyering  <meyering@redhat.com>
14392
14393         do-release-commit-and-tag: fix typo in --help
14394         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14395
14396         regex: avoid new dead-code warning with gcc-4.6.0
14397         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14398         if-block containing a while-loop.  It's been unused for at least
14399         5 years.
14400
14401 2010-06-05  Bruno Haible  <bruno@clisp.org>
14402
14403         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14404         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14405
14406 2010-06-04  Bruno Haible  <bruno@clisp.org>
14407
14408         Update to GNU gettext 0.18.1.
14409         * modules/gettext (configure.ac): Require gettext infrastructure from
14410         version 0.18.1.
14411
14412 2010-06-03  Bruno Haible  <bruno@clisp.org>
14413
14414         Don't use AC_LIBOBJ with file names in subdirectories.
14415         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14416         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14417         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14418         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14419         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14420         gl_LIBUNISTRING_LIBSOURCE.
14421         (Makefile.am): Augment lib_SOURCES here, conditionally.
14422         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14423
14424 2010-06-03  Bruno Haible  <bruno@clisp.org>
14425
14426         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14427         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14428         expansion does not end with a newline.
14429         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14430         unnecessary newline.
14431
14432 2010-06-03  Bruno Haible  <bruno@clisp.org>
14433
14434         Reduce dependencies.
14435         * tests/test-quotearg.h: New file, extracted from
14436         tests/test-quotearg.c.
14437         * tests/test-quotearg-simple.c: New file, extracted from
14438         tests/test-quotearg.c.
14439         * tests/test-quotearg.c: Don't include <ctype.h>.
14440         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14441         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14442         use_quote_double_quotes, use_quotearg_colon): Moved to
14443         tests/test-quotearg.h.
14444         (results_g, flag_results, custom_quotes, custom_results): Moved
14445         to tests/test-quotearg-simple.c.
14446         (main): Moved the part that does not depend on gettext to
14447         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14448         performed.
14449         * modules/quotearg-simple: New file.
14450         * modules/quotearg-simple-tests: New file.
14451         * modules/quotearg (Depends-on): Add quotearg-simple.
14452         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14453         (Files): Add tests/test-quotearg.h.
14454         Reported by Paolo Bonzini.
14455
14456 2010-06-03  Bruno Haible  <bruno@clisp.org>
14457
14458         Reduce dependencies.
14459         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14460
14461 2010-06-03  Bruno Haible  <bruno@clisp.org>
14462
14463         time: Undefine more broken macros.
14464         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14465         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14466         Reported by Eric Blake.
14467
14468 2010-06-03  Bruno Haible  <bruno@clisp.org>
14469
14470         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14471         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14472         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14473         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14474         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14475         Reported by Ludovic Courtès <ludo@gnu.org>.
14476
14477 2010-06-02  Eric Blake  <eblake@redhat.com>
14478
14479         time: work with mingw + pthreads-win32 library
14480         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14481         if timespec is defined only in pthread.h.
14482         * modules/time (Makefile.am): Substitute it.
14483         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14484         <pthread.h>, when needed.
14485         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14486         from the library.
14487
14488 2010-05-31  Bruno Haible  <bruno@clisp.org>
14489
14490         Avoid expanding two macros in the wrong order.
14491         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14492         gl_LIBUNISTRING if it is defined.
14493         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14494         autoconf >= 2.64.
14495         Reported by Ludovic Courtès <ludo@gnu.org>.
14496
14497 2010-05-27  Jim Meyering  <meyering@redhat.com>
14498
14499         maint.mk: also prohibit "#undef" of always-defined symbols
14500         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14501         Allow more than one space before the symbol name.
14502         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14503         the regexp uses alternation.
14504
14505 2010-05-26  Eric Blake  <eblake@redhat.com>
14506
14507         maint.mk: avoid echo -e
14508         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14509         Convert all uses of echo -* to printf.
14510         Reported by Matthias Bolte.
14511
14512 2010-05-25  Bruno Haible  <bruno@clisp.org>
14513
14514         Update to GNU gettext 0.18, part 2.
14515         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14516         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14517
14518 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14519
14520         Add missing include in test-pwrite.c.
14521         * tests/test-pwrite.c: Include string.h, for strcmp.
14522
14523 2010-05-24  Bruno Haible  <bruno@clisp.org>
14524
14525         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14526
14527 2010-05-24  Bruno Haible  <bruno@clisp.org>
14528
14529         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14530         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14531         iconveh_error argument.
14532         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14533         U_STRCONV_TO_LOCALE.
14534         * lib/unistr/u16-strcoll.c: Likewise.
14535         * lib/unistr/u32-strcoll.c: Likewise.
14536         * modules/unistr/u8-strcoll (Depends-on): Add
14537         uniconv/u8-strconv-to-enc, localcharset. Remove
14538         uniconv/u8-strconv-to-locale.
14539         (configure.ac): Bump version number.
14540         * modules/unistr/u16-strcoll (Depends-on): Add
14541         uniconv/u16-strconv-to-enc, localcharset. Remove
14542         uniconv/u16-strconv-to-locale.
14543         (configure.ac): Bump version number.
14544         * modules/unistr/u32-strcoll (Depends-on): Add
14545         uniconv/u32-strconv-to-enc, localcharset. Remove
14546         uniconv/u32-strconv-to-locale.
14547         (configure.ac): Bump version number.
14548
14549 2010-05-24  Bruno Haible  <bruno@clisp.org>
14550
14551         Avoid a test failure on NetBSD 5.0.
14552         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14553         an iconv() bug.
14554
14555 2010-05-24  Bruno Haible  <bruno@clisp.org>
14556
14557         Adjust #include directive style.
14558         * modules/regex (Includes): Recommend to write <regex.h>.
14559
14560 2010-05-24  Bruno Haible  <bruno@clisp.org>
14561
14562         regex: Don't require alloca.
14563         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14564         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14565         only inside if (0).
14566
14567 2010-05-23  Jim Meyering  <meyering@redhat.com>
14568
14569         test-renameat.c: include <sys/stat.h>
14570         * tests/test-renameat.c: Include <sys/stat.h>; required for
14571         definition of S_IS* macros.
14572
14573 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14574
14575         Update maintainer documentation for 'relocatable-prog' module.
14576         * doc/relocatable-maint.texi: Update.
14577         Comments by Bruno Haible.
14578
14579 2010-05-23  Bruno Haible  <bruno@clisp.org>
14580
14581         git-merge-changelog: Enable --split-merged-entry by default.
14582         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14583         (usage): Don't mention this option any more.
14584         Reported by Ralf Wildenhues.
14585
14586 2010-05-23  Jim Meyering  <meyering@redhat.com>
14587
14588         test-pwrite: do not leave behind a test file named "out"
14589         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14590         The trivial-looking use of init.sh is really necessary.
14591         It ensures that the temporary file, "out", is created in
14592         a temporary directory, and removed upon termination.
14593         * tests/test-pwrite.sh: Re-add file.
14594         * modules/pwrite-tests: Reference it.
14595
14596 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14597
14598         Fix output redirection buglet in init.sh.
14599         * tests/init.sh: Fix redirection of stderr.
14600
14601 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14602
14603         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14604
14605 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14606
14607         * modules/valgrind-tests: New file.
14608         * m4/valgrind-tests.m4: New file.
14609         * doc/valgrind-tests.texi: New file.
14610         * doc/gnulib.texi (Running self-tests under valgrind): New
14611         section.
14612
14613 2010-05-19  Bruno Haible  <bruno@clisp.org>
14614
14615         Clean up dead code in recent commit.
14616         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14617         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14618         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14619         Suggested by Paolo Bonzini.
14620
14621 2010-05-19  Bruno Haible  <bruno@clisp.org>
14622
14623         Avoid valgrind error reports from libunistring.
14624         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14625         * modules/libunistring (Files): Add it.
14626         * modules/libunistring-optional (Files): Likewise.
14627
14628 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14629             Bruno Haible  <bruno@clisp.org>
14630
14631         New module 'libunistring-optional'.
14632         * modules/libunistring-optional: New file.
14633         * m4/libunistring-base.m4: New file.
14634         * m4/libunistring-optional.m4: New file.
14635         * lib/unicase.in.h: Renamed from lib/unicase.h.
14636         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14637         * lib/unictype.in.h: Renamed from lib/unictype.h.
14638         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14639         * lib/uniname.in.h: Renamed from lib/uniname.h.
14640         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14641         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14642         * lib/unistr.in.h: Renamed from lib/unistr.h.
14643         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14644         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14645         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14646         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14647         gl_LIBUNISTRING. If the library was found, determine the installed
14648         version and set LIBUNISTRING_VERSION.
14649         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14650         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14651         handle a configuration option --with-included-libunistring.
14652         * modules/libunistring (Files): Add m4/absolute-header.m4.
14653         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14654         Add m4/libunistring-base.m4.
14655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14656         (Makefile.am): Build unicase.h from unicase.in.h.
14657         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14658         Add m4/libunistring-base.m4.
14659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14660         (Makefile.am): Build uniconv.h from uniconv.in.h.
14661         * modules/unictype/base (Files): Use unictype.in.h instead of
14662         unictype.h. Add m4/libunistring-base.m4.
14663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14664         (Makefile.am): Build unictype.h from unictype.in.h.
14665         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14666         Add m4/libunistring-base.m4.
14667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14668         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14669         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14670         Add m4/libunistring-base.m4.
14671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14672         (Makefile.am): Build uniname.h from uniname.in.h.
14673         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14674         Add m4/libunistring-base.m4.
14675         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14676         (Makefile.am): Build uninorm.h from uninorm.in.h.
14677         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14678         unistdio.h. Add m4/libunistring-base.m4.
14679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14680         (Makefile.am): Build unistdio.h from unistdio.in.h.
14681         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14682         Add m4/libunistring-base.m4.
14683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14684         (Makefile.am): Build unistr.h from unistr.in.h.
14685         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14686         Add m4/libunistring-base.m4.
14687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14688         (Makefile.am): Build unitypes.h from unitypes.in.h.
14689         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14690         Add m4/libunistring-base.m4.
14691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14692         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14693         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14694         uniwidth.h. Add m4/libunistring-base.m4.
14695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14696         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14697         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14698         instead of augmenting lib_SOURCES.
14699         * modules/unicase/empty-suffix-context: Likewise.
14700         * modules/unicase/locale-language: Likewise.
14701         * modules/unicase/tolower: Likewise.
14702         * modules/unicase/totitle: Likewise.
14703         * modules/unicase/toupper: Likewise.
14704         * modules/unicase/u8-casecmp: Likewise.
14705         * modules/unicase/u8-casecoll: Likewise.
14706         * modules/unicase/u8-casefold: Likewise.
14707         * modules/unicase/u8-casexfrm: Likewise.
14708         * modules/unicase/u8-ct-casefold: Likewise.
14709         * modules/unicase/u8-ct-tolower: Likewise.
14710         * modules/unicase/u8-ct-totitle: Likewise.
14711         * modules/unicase/u8-ct-toupper: Likewise.
14712         * modules/unicase/u8-is-cased: Likewise.
14713         * modules/unicase/u8-is-casefolded: Likewise.
14714         * modules/unicase/u8-is-lowercase: Likewise.
14715         * modules/unicase/u8-is-titlecase: Likewise.
14716         * modules/unicase/u8-is-uppercase: Likewise.
14717         * modules/unicase/u8-prefix-context: Likewise.
14718         * modules/unicase/u8-suffix-context: Likewise.
14719         * modules/unicase/u8-tolower: Likewise.
14720         * modules/unicase/u8-totitle: Likewise.
14721         * modules/unicase/u8-toupper: Likewise.
14722         * modules/unicase/u16-casecmp: Likewise.
14723         * modules/unicase/u16-casecoll: Likewise.
14724         * modules/unicase/u16-casefold: Likewise.
14725         * modules/unicase/u16-casexfrm: Likewise.
14726         * modules/unicase/u16-ct-casefold: Likewise.
14727         * modules/unicase/u16-ct-tolower: Likewise.
14728         * modules/unicase/u16-ct-totitle: Likewise.
14729         * modules/unicase/u16-ct-toupper: Likewise.
14730         * modules/unicase/u16-is-cased: Likewise.
14731         * modules/unicase/u16-is-casefolded: Likewise.
14732         * modules/unicase/u16-is-lowercase: Likewise.
14733         * modules/unicase/u16-is-titlecase: Likewise.
14734         * modules/unicase/u16-is-uppercase: Likewise.
14735         * modules/unicase/u16-prefix-context: Likewise.
14736         * modules/unicase/u16-suffix-context: Likewise.
14737         * modules/unicase/u16-tolower: Likewise.
14738         * modules/unicase/u16-totitle: Likewise.
14739         * modules/unicase/u16-toupper: Likewise.
14740         * modules/unicase/u32-casecmp: Likewise.
14741         * modules/unicase/u32-casecoll: Likewise.
14742         * modules/unicase/u32-casefold: Likewise.
14743         * modules/unicase/u32-casexfrm: Likewise.
14744         * modules/unicase/u32-ct-casefold: Likewise.
14745         * modules/unicase/u32-ct-tolower: Likewise.
14746         * modules/unicase/u32-ct-totitle: Likewise.
14747         * modules/unicase/u32-ct-toupper: Likewise.
14748         * modules/unicase/u32-is-cased: Likewise.
14749         * modules/unicase/u32-is-casefolded: Likewise.
14750         * modules/unicase/u32-is-lowercase: Likewise.
14751         * modules/unicase/u32-is-titlecase: Likewise.
14752         * modules/unicase/u32-is-uppercase: Likewise.
14753         * modules/unicase/u32-prefix-context: Likewise.
14754         * modules/unicase/u32-suffix-context: Likewise.
14755         * modules/unicase/u32-tolower: Likewise.
14756         * modules/unicase/u32-totitle: Likewise.
14757         * modules/unicase/u32-toupper: Likewise.
14758         * modules/unicase/ulc-casecmp: Likewise.
14759         * modules/unicase/ulc-casecoll: Likewise.
14760         * modules/unicase/ulc-casexfrm: Likewise.
14761         * modules/uniconv/u8-conv-from-enc: Likewise.
14762         * modules/uniconv/u8-conv-to-enc: Likewise.
14763         * modules/uniconv/u8-strconv-from-enc: Likewise.
14764         * modules/uniconv/u8-strconv-from-locale: Likewise.
14765         * modules/uniconv/u8-strconv-to-enc: Likewise.
14766         * modules/uniconv/u8-strconv-to-locale: Likewise.
14767         * modules/uniconv/u16-conv-from-enc: Likewise.
14768         * modules/uniconv/u16-conv-to-enc: Likewise.
14769         * modules/uniconv/u16-strconv-from-enc: Likewise.
14770         * modules/uniconv/u16-strconv-from-locale: Likewise.
14771         * modules/uniconv/u16-strconv-to-enc: Likewise.
14772         * modules/uniconv/u16-strconv-to-locale: Likewise.
14773         * modules/uniconv/u32-conv-from-enc: Likewise.
14774         * modules/uniconv/u32-conv-to-enc: Likewise.
14775         * modules/uniconv/u32-strconv-from-enc: Likewise.
14776         * modules/uniconv/u32-strconv-from-locale: Likewise.
14777         * modules/uniconv/u32-strconv-to-enc: Likewise.
14778         * modules/uniconv/u32-strconv-to-locale: Likewise.
14779         * modules/unictype/bidicategory-byname: Likewise.
14780         * modules/unictype/bidicategory-name: Likewise.
14781         * modules/unictype/bidicategory-of: Likewise.
14782         * modules/unictype/bidicategory-test: Likewise.
14783         * modules/unictype/block-list: Likewise.
14784         * modules/unictype/block-test: Likewise.
14785         * modules/unictype/category-C: Likewise.
14786         * modules/unictype/category-Cc: Likewise.
14787         * modules/unictype/category-Cf: Likewise.
14788         * modules/unictype/category-Cn: Likewise.
14789         * modules/unictype/category-Co: Likewise.
14790         * modules/unictype/category-Cs: Likewise.
14791         * modules/unictype/category-L: Likewise.
14792         * modules/unictype/category-Ll: Likewise.
14793         * modules/unictype/category-Lm: Likewise.
14794         * modules/unictype/category-Lo: Likewise.
14795         * modules/unictype/category-Lt: Likewise.
14796         * modules/unictype/category-Lu: Likewise.
14797         * modules/unictype/category-M: Likewise.
14798         * modules/unictype/category-Mc: Likewise.
14799         * modules/unictype/category-Me: Likewise.
14800         * modules/unictype/category-Mn: Likewise.
14801         * modules/unictype/category-N: Likewise.
14802         * modules/unictype/category-Nd: Likewise.
14803         * modules/unictype/category-Nl: Likewise.
14804         * modules/unictype/category-No: Likewise.
14805         * modules/unictype/category-P: Likewise.
14806         * modules/unictype/category-Pc: Likewise.
14807         * modules/unictype/category-Pd: Likewise.
14808         * modules/unictype/category-Pe: Likewise.
14809         * modules/unictype/category-Pf: Likewise.
14810         * modules/unictype/category-Pi: Likewise.
14811         * modules/unictype/category-Po: Likewise.
14812         * modules/unictype/category-Ps: Likewise.
14813         * modules/unictype/category-S: Likewise.
14814         * modules/unictype/category-Sc: Likewise.
14815         * modules/unictype/category-Sk: Likewise.
14816         * modules/unictype/category-Sm: Likewise.
14817         * modules/unictype/category-So: Likewise.
14818         * modules/unictype/category-Z: Likewise.
14819         * modules/unictype/category-Zl: Likewise.
14820         * modules/unictype/category-Zp: Likewise.
14821         * modules/unictype/category-Zs: Likewise.
14822         * modules/unictype/category-and: Likewise.
14823         * modules/unictype/category-and-not: Likewise.
14824         * modules/unictype/category-byname: Likewise.
14825         * modules/unictype/category-name: Likewise.
14826         * modules/unictype/category-none: Likewise.
14827         * modules/unictype/category-of: Likewise.
14828         * modules/unictype/category-or: Likewise.
14829         * modules/unictype/category-test: Likewise.
14830         * modules/unictype/combining-class: Likewise.
14831         * modules/unictype/ctype-alnum: Likewise.
14832         * modules/unictype/ctype-alpha: Likewise.
14833         * modules/unictype/ctype-blank: Likewise.
14834         * modules/unictype/ctype-cntrl: Likewise.
14835         * modules/unictype/ctype-digit: Likewise.
14836         * modules/unictype/ctype-graph: Likewise.
14837         * modules/unictype/ctype-lower: Likewise.
14838         * modules/unictype/ctype-print: Likewise.
14839         * modules/unictype/ctype-punct: Likewise.
14840         * modules/unictype/ctype-space: Likewise.
14841         * modules/unictype/ctype-upper: Likewise.
14842         * modules/unictype/ctype-xdigit: Likewise.
14843         * modules/unictype/decimal-digit: Likewise.
14844         * modules/unictype/digit: Likewise.
14845         * modules/unictype/mirror: Likewise.
14846         * modules/unictype/numeric: Likewise.
14847         * modules/unictype/property-alphabetic: Likewise.
14848         * modules/unictype/property-ascii-hex-digit: Likewise.
14849         * modules/unictype/property-bidi-arabic-digit: Likewise.
14850         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14851         * modules/unictype/property-bidi-block-separator: Likewise.
14852         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14853         * modules/unictype/property-bidi-common-separator: Likewise.
14854         * modules/unictype/property-bidi-control: Likewise.
14855         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14856         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14857         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14858         * modules/unictype/property-bidi-european-digit: Likewise.
14859         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14860         * modules/unictype/property-bidi-left-to-right: Likewise.
14861         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14862         * modules/unictype/property-bidi-other-neutral: Likewise.
14863         * modules/unictype/property-bidi-pdf: Likewise.
14864         * modules/unictype/property-bidi-segment-separator: Likewise.
14865         * modules/unictype/property-bidi-whitespace: Likewise.
14866         * modules/unictype/property-byname: Likewise.
14867         * modules/unictype/property-combining: Likewise.
14868         * modules/unictype/property-composite: Likewise.
14869         * modules/unictype/property-currency-symbol: Likewise.
14870         * modules/unictype/property-dash: Likewise.
14871         * modules/unictype/property-decimal-digit: Likewise.
14872         * modules/unictype/property-default-ignorable-code-point: Likewise.
14873         * modules/unictype/property-deprecated: Likewise.
14874         * modules/unictype/property-diacritic: Likewise.
14875         * modules/unictype/property-extender: Likewise.
14876         * modules/unictype/property-format-control: Likewise.
14877         * modules/unictype/property-grapheme-base: Likewise.
14878         * modules/unictype/property-grapheme-extend: Likewise.
14879         * modules/unictype/property-grapheme-link: Likewise.
14880         * modules/unictype/property-hex-digit: Likewise.
14881         * modules/unictype/property-hyphen: Likewise.
14882         * modules/unictype/property-id-continue: Likewise.
14883         * modules/unictype/property-id-start: Likewise.
14884         * modules/unictype/property-ideographic: Likewise.
14885         * modules/unictype/property-ids-binary-operator: Likewise.
14886         * modules/unictype/property-ids-trinary-operator: Likewise.
14887         * modules/unictype/property-ignorable-control: Likewise.
14888         * modules/unictype/property-iso-control: Likewise.
14889         * modules/unictype/property-join-control: Likewise.
14890         * modules/unictype/property-left-of-pair: Likewise.
14891         * modules/unictype/property-line-separator: Likewise.
14892         * modules/unictype/property-logical-order-exception: Likewise.
14893         * modules/unictype/property-lowercase: Likewise.
14894         * modules/unictype/property-math: Likewise.
14895         * modules/unictype/property-non-break: Likewise.
14896         * modules/unictype/property-not-a-character: Likewise.
14897         * modules/unictype/property-numeric: Likewise.
14898         * modules/unictype/property-other-alphabetic: Likewise.
14899         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14900         * modules/unictype/property-other-grapheme-extend: Likewise.
14901         * modules/unictype/property-other-id-continue: Likewise.
14902         * modules/unictype/property-other-id-start: Likewise.
14903         * modules/unictype/property-other-lowercase: Likewise.
14904         * modules/unictype/property-other-math: Likewise.
14905         * modules/unictype/property-other-uppercase: Likewise.
14906         * modules/unictype/property-paired-punctuation: Likewise.
14907         * modules/unictype/property-paragraph-separator: Likewise.
14908         * modules/unictype/property-pattern-syntax: Likewise.
14909         * modules/unictype/property-pattern-white-space: Likewise.
14910         * modules/unictype/property-private-use: Likewise.
14911         * modules/unictype/property-punctuation: Likewise.
14912         * modules/unictype/property-quotation-mark: Likewise.
14913         * modules/unictype/property-radical: Likewise.
14914         * modules/unictype/property-sentence-terminal: Likewise.
14915         * modules/unictype/property-soft-dotted: Likewise.
14916         * modules/unictype/property-space: Likewise.
14917         * modules/unictype/property-terminal-punctuation: Likewise.
14918         * modules/unictype/property-test: Likewise.
14919         * modules/unictype/property-titlecase: Likewise.
14920         * modules/unictype/property-unassigned-code-value: Likewise.
14921         * modules/unictype/property-unified-ideograph: Likewise.
14922         * modules/unictype/property-uppercase: Likewise.
14923         * modules/unictype/property-variation-selector: Likewise.
14924         * modules/unictype/property-white-space: Likewise.
14925         * modules/unictype/property-xid-continue: Likewise.
14926         * modules/unictype/property-xid-start: Likewise.
14927         * modules/unictype/property-zero-width: Likewise.
14928         * modules/unictype/scripts: Likewise.
14929         * modules/unictype/syntax-c-ident: Likewise.
14930         * modules/unictype/syntax-c-whitespace: Likewise.
14931         * modules/unictype/syntax-java-ident: Likewise.
14932         * modules/unictype/syntax-java-whitespace: Likewise.
14933         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14934         * modules/unilbrk/u8-width-linebreaks: Likewise.
14935         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14936         * modules/unilbrk/u16-width-linebreaks: Likewise.
14937         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14938         * modules/unilbrk/u32-width-linebreaks: Likewise.
14939         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14940         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14941         * modules/uniname/uniname: Likewise.
14942         * modules/uninorm/canonical-decomposition: Likewise.
14943         * modules/uninorm/composition: Likewise.
14944         * modules/uninorm/decomposing-form: Likewise.
14945         * modules/uninorm/decomposition: Likewise.
14946         * modules/uninorm/filter: Likewise.
14947         * modules/uninorm/nfc: Likewise.
14948         * modules/uninorm/nfd: Likewise.
14949         * modules/uninorm/nfkc: Likewise.
14950         * modules/uninorm/nfkd: Likewise.
14951         * modules/uninorm/u8-normalize: Likewise.
14952         * modules/uninorm/u8-normcmp: Likewise.
14953         * modules/uninorm/u8-normcoll: Likewise.
14954         * modules/uninorm/u8-normxfrm: Likewise.
14955         * modules/uninorm/u16-normalize: Likewise.
14956         * modules/uninorm/u16-normcmp: Likewise.
14957         * modules/uninorm/u16-normcoll: Likewise.
14958         * modules/uninorm/u16-normxfrm: Likewise.
14959         * modules/uninorm/u32-normalize: Likewise.
14960         * modules/uninorm/u32-normcmp: Likewise.
14961         * modules/uninorm/u32-normcoll: Likewise.
14962         * modules/uninorm/u32-normxfrm: Likewise.
14963         * modules/unistdio/u8-asnprintf: Likewise.
14964         * modules/unistdio/u8-asprintf: Likewise.
14965         * modules/unistdio/u8-snprintf: Likewise.
14966         * modules/unistdio/u8-sprintf: Likewise.
14967         * modules/unistdio/u8-u8-asnprintf: Likewise.
14968         * modules/unistdio/u8-u8-asprintf: Likewise.
14969         * modules/unistdio/u8-u8-snprintf: Likewise.
14970         * modules/unistdio/u8-u8-sprintf: Likewise.
14971         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14972         * modules/unistdio/u8-u8-vasprintf: Likewise.
14973         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14974         * modules/unistdio/u8-u8-vsprintf: Likewise.
14975         * modules/unistdio/u8-vasnprintf: Likewise.
14976         * modules/unistdio/u8-vasprintf: Likewise.
14977         * modules/unistdio/u8-vsnprintf: Likewise.
14978         * modules/unistdio/u8-vsprintf: Likewise.
14979         * modules/unistdio/u16-asnprintf: Likewise.
14980         * modules/unistdio/u16-asprintf: Likewise.
14981         * modules/unistdio/u16-snprintf: Likewise.
14982         * modules/unistdio/u16-sprintf: Likewise.
14983         * modules/unistdio/u16-u16-asnprintf: Likewise.
14984         * modules/unistdio/u16-u16-asprintf: Likewise.
14985         * modules/unistdio/u16-u16-snprintf: Likewise.
14986         * modules/unistdio/u16-u16-sprintf: Likewise.
14987         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14988         * modules/unistdio/u16-u16-vasprintf: Likewise.
14989         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14990         * modules/unistdio/u16-u16-vsprintf: Likewise.
14991         * modules/unistdio/u16-vasnprintf: Likewise.
14992         * modules/unistdio/u16-vasprintf: Likewise.
14993         * modules/unistdio/u16-vsnprintf: Likewise.
14994         * modules/unistdio/u16-vsprintf: Likewise.
14995         * modules/unistdio/u32-asnprintf: Likewise.
14996         * modules/unistdio/u32-asprintf: Likewise.
14997         * modules/unistdio/u32-snprintf: Likewise.
14998         * modules/unistdio/u32-sprintf: Likewise.
14999         * modules/unistdio/u32-u32-asnprintf: Likewise.
15000         * modules/unistdio/u32-u32-asprintf: Likewise.
15001         * modules/unistdio/u32-u32-snprintf: Likewise.
15002         * modules/unistdio/u32-u32-sprintf: Likewise.
15003         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15004         * modules/unistdio/u32-u32-vasprintf: Likewise.
15005         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15006         * modules/unistdio/u32-u32-vsprintf: Likewise.
15007         * modules/unistdio/u32-vasnprintf: Likewise.
15008         * modules/unistdio/u32-vasprintf: Likewise.
15009         * modules/unistdio/u32-vsnprintf: Likewise.
15010         * modules/unistdio/u32-vsprintf: Likewise.
15011         * modules/unistdio/ulc-asnprintf: Likewise.
15012         * modules/unistdio/ulc-asprintf: Likewise.
15013         * modules/unistdio/ulc-fprintf: Likewise.
15014         * modules/unistdio/ulc-snprintf: Likewise.
15015         * modules/unistdio/ulc-sprintf: Likewise.
15016         * modules/unistdio/ulc-vasnprintf: Likewise.
15017         * modules/unistdio/ulc-vasprintf: Likewise.
15018         * modules/unistdio/ulc-vfprintf: Likewise.
15019         * modules/unistdio/ulc-vsnprintf: Likewise.
15020         * modules/unistdio/ulc-vsprintf: Likewise.
15021         * modules/unistr/u8-check: Likewise.
15022         * modules/unistr/u8-chr: Likewise.
15023         * modules/unistr/u8-cmp: Likewise.
15024         * modules/unistr/u8-cmp2: Likewise.
15025         * modules/unistr/u8-cpy: Likewise.
15026         * modules/unistr/u8-cpy-alloc: Likewise.
15027         * modules/unistr/u8-endswith: Likewise.
15028         * modules/unistr/u8-mblen: Likewise.
15029         * modules/unistr/u8-mbsnlen: Likewise.
15030         * modules/unistr/u8-mbtouc: Likewise.
15031         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15032         * modules/unistr/u8-mbtoucr: Likewise.
15033         * modules/unistr/u8-move: Likewise.
15034         * modules/unistr/u8-next: Likewise.
15035         * modules/unistr/u8-prev: Likewise.
15036         * modules/unistr/u8-set: Likewise.
15037         * modules/unistr/u8-startswith: Likewise.
15038         * modules/unistr/u8-stpcpy: Likewise.
15039         * modules/unistr/u8-stpncpy: Likewise.
15040         * modules/unistr/u8-strcat: Likewise.
15041         * modules/unistr/u8-strchr: Likewise.
15042         * modules/unistr/u8-strcmp: Likewise.
15043         * modules/unistr/u8-strcoll: Likewise.
15044         * modules/unistr/u8-strcpy: Likewise.
15045         * modules/unistr/u8-strcspn: Likewise.
15046         * modules/unistr/u8-strdup: Likewise.
15047         * modules/unistr/u8-strlen: Likewise.
15048         * modules/unistr/u8-strmblen: Likewise.
15049         * modules/unistr/u8-strmbtouc: Likewise.
15050         * modules/unistr/u8-strncat: Likewise.
15051         * modules/unistr/u8-strncmp: Likewise.
15052         * modules/unistr/u8-strncpy: Likewise.
15053         * modules/unistr/u8-strnlen: Likewise.
15054         * modules/unistr/u8-strpbrk: Likewise.
15055         * modules/unistr/u8-strrchr: Likewise.
15056         * modules/unistr/u8-strspn: Likewise.
15057         * modules/unistr/u8-strstr: Likewise.
15058         * modules/unistr/u8-strtok: Likewise.
15059         * modules/unistr/u8-to-u16: Likewise.
15060         * modules/unistr/u8-to-u32: Likewise.
15061         * modules/unistr/u8-uctomb: Likewise.
15062         * modules/unistr/u16-check: Likewise.
15063         * modules/unistr/u16-chr: Likewise.
15064         * modules/unistr/u16-cmp: Likewise.
15065         * modules/unistr/u16-cmp2: Likewise.
15066         * modules/unistr/u16-cpy: Likewise.
15067         * modules/unistr/u16-cpy-alloc: Likewise.
15068         * modules/unistr/u16-endswith: Likewise.
15069         * modules/unistr/u16-mblen: Likewise.
15070         * modules/unistr/u16-mbsnlen: Likewise.
15071         * modules/unistr/u16-mbtouc: Likewise.
15072         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15073         * modules/unistr/u16-mbtoucr: Likewise.
15074         * modules/unistr/u16-move: Likewise.
15075         * modules/unistr/u16-next: Likewise.
15076         * modules/unistr/u16-prev: Likewise.
15077         * modules/unistr/u16-set: Likewise.
15078         * modules/unistr/u16-startswith: Likewise.
15079         * modules/unistr/u16-stpcpy: Likewise.
15080         * modules/unistr/u16-stpncpy: Likewise.
15081         * modules/unistr/u16-strcat: Likewise.
15082         * modules/unistr/u16-strchr: Likewise.
15083         * modules/unistr/u16-strcmp: Likewise.
15084         * modules/unistr/u16-strcoll: Likewise.
15085         * modules/unistr/u16-strcpy: Likewise.
15086         * modules/unistr/u16-strcspn: Likewise.
15087         * modules/unistr/u16-strdup: Likewise.
15088         * modules/unistr/u16-strlen: Likewise.
15089         * modules/unistr/u16-strmblen: Likewise.
15090         * modules/unistr/u16-strmbtouc: Likewise.
15091         * modules/unistr/u16-strncat: Likewise.
15092         * modules/unistr/u16-strncmp: Likewise.
15093         * modules/unistr/u16-strncpy: Likewise.
15094         * modules/unistr/u16-strnlen: Likewise.
15095         * modules/unistr/u16-strpbrk: Likewise.
15096         * modules/unistr/u16-strrchr: Likewise.
15097         * modules/unistr/u16-strspn: Likewise.
15098         * modules/unistr/u16-strstr: Likewise.
15099         * modules/unistr/u16-strtok: Likewise.
15100         * modules/unistr/u16-to-u32: Likewise.
15101         * modules/unistr/u16-to-u8: Likewise.
15102         * modules/unistr/u16-uctomb: Likewise.
15103         * modules/unistr/u32-check: Likewise.
15104         * modules/unistr/u32-chr: Likewise.
15105         * modules/unistr/u32-cmp: Likewise.
15106         * modules/unistr/u32-cmp2: Likewise.
15107         * modules/unistr/u32-cpy: Likewise.
15108         * modules/unistr/u32-cpy-alloc: Likewise.
15109         * modules/unistr/u32-endswith: Likewise.
15110         * modules/unistr/u32-mblen: Likewise.
15111         * modules/unistr/u32-mbsnlen: Likewise.
15112         * modules/unistr/u32-mbtouc: Likewise.
15113         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15114         * modules/unistr/u32-mbtoucr: Likewise.
15115         * modules/unistr/u32-move: Likewise.
15116         * modules/unistr/u32-next: Likewise.
15117         * modules/unistr/u32-prev: Likewise.
15118         * modules/unistr/u32-set: Likewise.
15119         * modules/unistr/u32-startswith: Likewise.
15120         * modules/unistr/u32-stpcpy: Likewise.
15121         * modules/unistr/u32-stpncpy: Likewise.
15122         * modules/unistr/u32-strcat: Likewise.
15123         * modules/unistr/u32-strchr: Likewise.
15124         * modules/unistr/u32-strcmp: Likewise.
15125         * modules/unistr/u32-strcoll: Likewise.
15126         * modules/unistr/u32-strcpy: Likewise.
15127         * modules/unistr/u32-strcspn: Likewise.
15128         * modules/unistr/u32-strdup: Likewise.
15129         * modules/unistr/u32-strlen: Likewise.
15130         * modules/unistr/u32-strmblen: Likewise.
15131         * modules/unistr/u32-strmbtouc: Likewise.
15132         * modules/unistr/u32-strncat: Likewise.
15133         * modules/unistr/u32-strncmp: Likewise.
15134         * modules/unistr/u32-strncpy: Likewise.
15135         * modules/unistr/u32-strnlen: Likewise.
15136         * modules/unistr/u32-strpbrk: Likewise.
15137         * modules/unistr/u32-strrchr: Likewise.
15138         * modules/unistr/u32-strspn: Likewise.
15139         * modules/unistr/u32-strstr: Likewise.
15140         * modules/unistr/u32-strtok: Likewise.
15141         * modules/unistr/u32-to-u16: Likewise.
15142         * modules/unistr/u32-to-u8: Likewise.
15143         * modules/unistr/u32-uctomb: Likewise.
15144         * modules/uniwbrk/u8-wordbreaks: Likewise.
15145         * modules/uniwbrk/u16-wordbreaks: Likewise.
15146         * modules/uniwbrk/u32-wordbreaks: Likewise.
15147         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15148         * modules/uniwbrk/wordbreak-property: Likewise.
15149         * modules/uniwidth/u8-strwidth: Likewise.
15150         * modules/uniwidth/u8-width: Likewise.
15151         * modules/uniwidth/u16-strwidth: Likewise.
15152         * modules/uniwidth/u16-width: Likewise.
15153         * modules/uniwidth/u32-strwidth: Likewise.
15154         * modules/uniwidth/u32-width: Likewise.
15155         * modules/uniwidth/width: Likewise.
15156         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15157         with $(LIBUNISTRING).
15158         * modules/unicase/ignorable-tests: Likewise.
15159         * modules/unicase/locale-language-tests: Likewise.
15160         * modules/unicase/tolower-tests: Likewise.
15161         * modules/unicase/totitle-tests: Likewise.
15162         * modules/unicase/toupper-tests: Likewise.
15163         * modules/unicase/u8-casecmp-tests: Likewise.
15164         * modules/unicase/u8-casecoll-tests: Likewise.
15165         * modules/unicase/u8-casefold-tests: Likewise.
15166         * modules/unicase/u8-is-cased-tests: Likewise.
15167         * modules/unicase/u8-is-casefolded-tests: Likewise.
15168         * modules/unicase/u8-is-lowercase-tests: Likewise.
15169         * modules/unicase/u8-is-titlecase-tests: Likewise.
15170         * modules/unicase/u8-is-uppercase-tests: Likewise.
15171         * modules/unicase/u8-tolower-tests: Likewise.
15172         * modules/unicase/u8-totitle-tests: Likewise.
15173         * modules/unicase/u8-toupper-tests: Likewise.
15174         * modules/unicase/u16-casecmp-tests: Likewise.
15175         * modules/unicase/u16-casecoll-tests: Likewise.
15176         * modules/unicase/u16-casefold-tests: Likewise.
15177         * modules/unicase/u16-is-cased-tests: Likewise.
15178         * modules/unicase/u16-is-casefolded-tests: Likewise.
15179         * modules/unicase/u16-is-lowercase-tests: Likewise.
15180         * modules/unicase/u16-is-titlecase-tests: Likewise.
15181         * modules/unicase/u16-is-uppercase-tests: Likewise.
15182         * modules/unicase/u16-tolower-tests: Likewise.
15183         * modules/unicase/u16-totitle-tests: Likewise.
15184         * modules/unicase/u16-toupper-tests: Likewise.
15185         * modules/unicase/u32-casecmp-tests: Likewise.
15186         * modules/unicase/u32-casecoll-tests: Likewise.
15187         * modules/unicase/u32-casefold-tests: Likewise.
15188         * modules/unicase/u32-is-cased-tests: Likewise.
15189         * modules/unicase/u32-is-casefolded-tests: Likewise.
15190         * modules/unicase/u32-is-lowercase-tests: Likewise.
15191         * modules/unicase/u32-is-titlecase-tests: Likewise.
15192         * modules/unicase/u32-is-uppercase-tests: Likewise.
15193         * modules/unicase/u32-tolower-tests: Likewise.
15194         * modules/unicase/u32-totitle-tests: Likewise.
15195         * modules/unicase/u32-toupper-tests: Likewise.
15196         * modules/unicase/ulc-casecmp-tests: Likewise.
15197         * modules/unicase/ulc-casecoll-tests: Likewise.
15198         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15199         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15200         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15201         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15202         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15203         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15204         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15205         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15206         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15207         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15208         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15209         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15210         * modules/unictype/bidicategory-byname-tests: Likewise.
15211         * modules/unictype/bidicategory-name-tests: Likewise.
15212         * modules/unictype/bidicategory-of-tests: Likewise.
15213         * modules/unictype/bidicategory-test-tests: Likewise.
15214         * modules/unictype/block-list-tests: Likewise.
15215         * modules/unictype/block-of-tests: Likewise.
15216         * modules/unictype/block-test-tests: Likewise.
15217         * modules/unictype/category-C-tests: Likewise.
15218         * modules/unictype/category-Cc-tests: Likewise.
15219         * modules/unictype/category-Cf-tests: Likewise.
15220         * modules/unictype/category-Cn-tests: Likewise.
15221         * modules/unictype/category-Co-tests: Likewise.
15222         * modules/unictype/category-Cs-tests: Likewise.
15223         * modules/unictype/category-L-tests: Likewise.
15224         * modules/unictype/category-Ll-tests: Likewise.
15225         * modules/unictype/category-Lm-tests: Likewise.
15226         * modules/unictype/category-Lo-tests: Likewise.
15227         * modules/unictype/category-Lt-tests: Likewise.
15228         * modules/unictype/category-Lu-tests: Likewise.
15229         * modules/unictype/category-M-tests: Likewise.
15230         * modules/unictype/category-Mc-tests: Likewise.
15231         * modules/unictype/category-Me-tests: Likewise.
15232         * modules/unictype/category-Mn-tests: Likewise.
15233         * modules/unictype/category-N-tests: Likewise.
15234         * modules/unictype/category-Nd-tests: Likewise.
15235         * modules/unictype/category-Nl-tests: Likewise.
15236         * modules/unictype/category-No-tests: Likewise.
15237         * modules/unictype/category-P-tests: Likewise.
15238         * modules/unictype/category-Pc-tests: Likewise.
15239         * modules/unictype/category-Pd-tests: Likewise.
15240         * modules/unictype/category-Pe-tests: Likewise.
15241         * modules/unictype/category-Pf-tests: Likewise.
15242         * modules/unictype/category-Pi-tests: Likewise.
15243         * modules/unictype/category-Po-tests: Likewise.
15244         * modules/unictype/category-Ps-tests: Likewise.
15245         * modules/unictype/category-S-tests: Likewise.
15246         * modules/unictype/category-Sc-tests: Likewise.
15247         * modules/unictype/category-Sk-tests: Likewise.
15248         * modules/unictype/category-Sm-tests: Likewise.
15249         * modules/unictype/category-So-tests: Likewise.
15250         * modules/unictype/category-Z-tests: Likewise.
15251         * modules/unictype/category-Zl-tests: Likewise.
15252         * modules/unictype/category-Zp-tests: Likewise.
15253         * modules/unictype/category-Zs-tests: Likewise.
15254         * modules/unictype/category-and-not-tests: Likewise.
15255         * modules/unictype/category-and-tests: Likewise.
15256         * modules/unictype/category-byname-tests: Likewise.
15257         * modules/unictype/category-name-tests: Likewise.
15258         * modules/unictype/category-none-tests: Likewise.
15259         * modules/unictype/category-of-tests: Likewise.
15260         * modules/unictype/category-or-tests: Likewise.
15261         * modules/unictype/category-test-withtable-tests: Likewise.
15262         * modules/unictype/combining-class-tests: Likewise.
15263         * modules/unictype/ctype-alnum-tests: Likewise.
15264         * modules/unictype/ctype-alpha-tests: Likewise.
15265         * modules/unictype/ctype-blank-tests: Likewise.
15266         * modules/unictype/ctype-cntrl-tests: Likewise.
15267         * modules/unictype/ctype-digit-tests: Likewise.
15268         * modules/unictype/ctype-graph-tests: Likewise.
15269         * modules/unictype/ctype-lower-tests: Likewise.
15270         * modules/unictype/ctype-print-tests: Likewise.
15271         * modules/unictype/ctype-punct-tests: Likewise.
15272         * modules/unictype/ctype-space-tests: Likewise.
15273         * modules/unictype/ctype-upper-tests: Likewise.
15274         * modules/unictype/ctype-xdigit-tests: Likewise.
15275         * modules/unictype/decimal-digit-tests: Likewise.
15276         * modules/unictype/digit-tests: Likewise.
15277         * modules/unictype/mirror-tests: Likewise.
15278         * modules/unictype/numeric-tests: Likewise.
15279         * modules/unictype/property-alphabetic-tests: Likewise.
15280         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15281         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15282         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15283         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15284         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15285         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15286         * modules/unictype/property-bidi-control-tests: Likewise.
15287         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15288         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15289         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15290         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15291         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15292         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15293         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15294         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15295         * modules/unictype/property-bidi-pdf-tests: Likewise.
15296         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15297         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15298         * modules/unictype/property-byname-tests: Likewise.
15299         * modules/unictype/property-combining-tests: Likewise.
15300         * modules/unictype/property-composite-tests: Likewise.
15301         * modules/unictype/property-currency-symbol-tests: Likewise.
15302         * modules/unictype/property-dash-tests: Likewise.
15303         * modules/unictype/property-decimal-digit-tests: Likewise.
15304         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15305         * modules/unictype/property-deprecated-tests: Likewise.
15306         * modules/unictype/property-diacritic-tests: Likewise.
15307         * modules/unictype/property-extender-tests: Likewise.
15308         * modules/unictype/property-format-control-tests: Likewise.
15309         * modules/unictype/property-grapheme-base-tests: Likewise.
15310         * modules/unictype/property-grapheme-extend-tests: Likewise.
15311         * modules/unictype/property-grapheme-link-tests: Likewise.
15312         * modules/unictype/property-hex-digit-tests: Likewise.
15313         * modules/unictype/property-hyphen-tests: Likewise.
15314         * modules/unictype/property-id-continue-tests: Likewise.
15315         * modules/unictype/property-id-start-tests: Likewise.
15316         * modules/unictype/property-ideographic-tests: Likewise.
15317         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15318         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15319         * modules/unictype/property-ignorable-control-tests: Likewise.
15320         * modules/unictype/property-iso-control-tests: Likewise.
15321         * modules/unictype/property-join-control-tests: Likewise.
15322         * modules/unictype/property-left-of-pair-tests: Likewise.
15323         * modules/unictype/property-line-separator-tests: Likewise.
15324         * modules/unictype/property-logical-order-exception-tests: Likewise.
15325         * modules/unictype/property-lowercase-tests: Likewise.
15326         * modules/unictype/property-math-tests: Likewise.
15327         * modules/unictype/property-non-break-tests: Likewise.
15328         * modules/unictype/property-not-a-character-tests: Likewise.
15329         * modules/unictype/property-numeric-tests: Likewise.
15330         * modules/unictype/property-other-alphabetic-tests: Likewise.
15331         * modules/unictype/property-other-default-ignorable-code-point-tests:
15332         Likewise.
15333         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15334         * modules/unictype/property-other-id-continue-tests: Likewise.
15335         * modules/unictype/property-other-id-start-tests: Likewise.
15336         * modules/unictype/property-other-lowercase-tests: Likewise.
15337         * modules/unictype/property-other-math-tests: Likewise.
15338         * modules/unictype/property-other-uppercase-tests: Likewise.
15339         * modules/unictype/property-paired-punctuation-tests: Likewise.
15340         * modules/unictype/property-paragraph-separator-tests: Likewise.
15341         * modules/unictype/property-pattern-syntax-tests: Likewise.
15342         * modules/unictype/property-pattern-white-space-tests: Likewise.
15343         * modules/unictype/property-private-use-tests: Likewise.
15344         * modules/unictype/property-punctuation-tests: Likewise.
15345         * modules/unictype/property-quotation-mark-tests: Likewise.
15346         * modules/unictype/property-radical-tests: Likewise.
15347         * modules/unictype/property-sentence-terminal-tests: Likewise.
15348         * modules/unictype/property-soft-dotted-tests: Likewise.
15349         * modules/unictype/property-space-tests: Likewise.
15350         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15351         * modules/unictype/property-test-tests: Likewise.
15352         * modules/unictype/property-titlecase-tests: Likewise.
15353         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15354         * modules/unictype/property-unified-ideograph-tests: Likewise.
15355         * modules/unictype/property-uppercase-tests: Likewise.
15356         * modules/unictype/property-variation-selector-tests: Likewise.
15357         * modules/unictype/property-white-space-tests: Likewise.
15358         * modules/unictype/property-xid-continue-tests: Likewise.
15359         * modules/unictype/property-xid-start-tests: Likewise.
15360         * modules/unictype/property-zero-width-tests: Likewise.
15361         * modules/unictype/scripts-tests: Likewise.
15362         * modules/unictype/syntax-c-ident-tests: Likewise.
15363         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15364         * modules/unictype/syntax-java-ident-tests: Likewise.
15365         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15366         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15367         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15368         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15369         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15370         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15371         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15372         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15373         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15374         * modules/uniname/uniname-tests: Likewise.
15375         * modules/uninorm/canonical-decomposition-tests: Likewise.
15376         * modules/uninorm/compat-decomposition-tests: Likewise.
15377         * modules/uninorm/composition-tests: Likewise.
15378         * modules/uninorm/decomposing-form-tests: Likewise.
15379         * modules/uninorm/decomposition-tests: Likewise.
15380         * modules/uninorm/filter-tests: Likewise.
15381         * modules/uninorm/nfc-tests: Likewise.
15382         * modules/uninorm/nfd-tests: Likewise.
15383         * modules/uninorm/nfkc-tests: Likewise.
15384         * modules/uninorm/nfkd-tests: Likewise.
15385         * modules/uninorm/u8-normcmp-tests: Likewise.
15386         * modules/uninorm/u8-normcoll-tests: Likewise.
15387         * modules/uninorm/u16-normcmp-tests: Likewise.
15388         * modules/uninorm/u16-normcoll-tests: Likewise.
15389         * modules/uninorm/u32-normcmp-tests: Likewise.
15390         * modules/uninorm/u32-normcoll-tests: Likewise.
15391         * modules/unistdio/u8-asnprintf-tests: Likewise.
15392         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15393         * modules/unistdio/u8-vasprintf-tests: Likewise.
15394         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15395         * modules/unistdio/u8-vsprintf-tests: Likewise.
15396         * modules/unistdio/u16-asnprintf-tests: Likewise.
15397         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15398         * modules/unistdio/u16-vasprintf-tests: Likewise.
15399         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15400         * modules/unistdio/u16-vsprintf-tests: Likewise.
15401         * modules/unistdio/u32-asnprintf-tests: Likewise.
15402         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15403         * modules/unistdio/u32-vasprintf-tests: Likewise.
15404         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15405         * modules/unistdio/u32-vsprintf-tests: Likewise.
15406         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15407         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15408         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15409         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15410         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15411         * modules/unistr/u8-check-tests: Likewise.
15412         * modules/unistr/u8-chr-tests: Likewise.
15413         * modules/unistr/u8-cmp-tests: Likewise.
15414         * modules/unistr/u8-cmp2-tests: Likewise.
15415         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15416         * modules/unistr/u8-cpy-tests: Likewise.
15417         * modules/unistr/u8-mblen-tests: Likewise.
15418         * modules/unistr/u8-mbsnlen-tests: Likewise.
15419         * modules/unistr/u8-mbtouc-tests: Likewise.
15420         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15421         * modules/unistr/u8-mbtoucr-tests: Likewise.
15422         * modules/unistr/u8-move-tests: Likewise.
15423         * modules/unistr/u8-next-tests: Likewise.
15424         * modules/unistr/u8-prev-tests: Likewise.
15425         * modules/unistr/u8-set-tests: Likewise.
15426         * modules/unistr/u8-stpcpy-tests: Likewise.
15427         * modules/unistr/u8-stpncpy-tests: Likewise.
15428         * modules/unistr/u8-strcat-tests: Likewise.
15429         * modules/unistr/u8-strcmp-tests: Likewise.
15430         * modules/unistr/u8-strcoll-tests: Likewise.
15431         * modules/unistr/u8-strcpy-tests: Likewise.
15432         * modules/unistr/u8-strdup-tests: Likewise.
15433         * modules/unistr/u8-strlen-tests: Likewise.
15434         * modules/unistr/u8-strmblen-tests: Likewise.
15435         * modules/unistr/u8-strmbtouc-tests: Likewise.
15436         * modules/unistr/u8-strncat-tests: Likewise.
15437         * modules/unistr/u8-strncmp-tests: Likewise.
15438         * modules/unistr/u8-strncpy-tests: Likewise.
15439         * modules/unistr/u8-strnlen-tests: Likewise.
15440         * modules/unistr/u8-to-u16-tests: Likewise.
15441         * modules/unistr/u8-to-u32-tests: Likewise.
15442         * modules/unistr/u8-uctomb-tests: Likewise.
15443         * modules/unistr/u16-check-tests: Likewise.
15444         * modules/unistr/u16-chr-tests: Likewise.
15445         * modules/unistr/u16-cmp-tests: Likewise.
15446         * modules/unistr/u16-cmp2-tests: Likewise.
15447         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15448         * modules/unistr/u16-cpy-tests: Likewise.
15449         * modules/unistr/u16-mblen-tests: Likewise.
15450         * modules/unistr/u16-mbsnlen-tests: Likewise.
15451         * modules/unistr/u16-mbtouc-tests: Likewise.
15452         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15453         * modules/unistr/u16-mbtoucr-tests: Likewise.
15454         * modules/unistr/u16-move-tests: Likewise.
15455         * modules/unistr/u16-next-tests: Likewise.
15456         * modules/unistr/u16-prev-tests: Likewise.
15457         * modules/unistr/u16-set-tests: Likewise.
15458         * modules/unistr/u16-stpcpy-tests: Likewise.
15459         * modules/unistr/u16-stpncpy-tests: Likewise.
15460         * modules/unistr/u16-strcat-tests: Likewise.
15461         * modules/unistr/u16-strcmp-tests: Likewise.
15462         * modules/unistr/u16-strcoll-tests: Likewise.
15463         * modules/unistr/u16-strcpy-tests: Likewise.
15464         * modules/unistr/u16-strdup-tests: Likewise.
15465         * modules/unistr/u16-strlen-tests: Likewise.
15466         * modules/unistr/u16-strmblen-tests: Likewise.
15467         * modules/unistr/u16-strmbtouc-tests: Likewise.
15468         * modules/unistr/u16-strncat-tests: Likewise.
15469         * modules/unistr/u16-strncmp-tests: Likewise.
15470         * modules/unistr/u16-strncpy-tests: Likewise.
15471         * modules/unistr/u16-strnlen-tests: Likewise.
15472         * modules/unistr/u16-to-u32-tests: Likewise.
15473         * modules/unistr/u16-to-u8-tests: Likewise.
15474         * modules/unistr/u16-uctomb-tests: Likewise.
15475         * modules/unistr/u32-check-tests: Likewise.
15476         * modules/unistr/u32-chr-tests: Likewise.
15477         * modules/unistr/u32-cmp-tests: Likewise.
15478         * modules/unistr/u32-cmp2-tests: Likewise.
15479         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15480         * modules/unistr/u32-cpy-tests: Likewise.
15481         * modules/unistr/u32-mblen-tests: Likewise.
15482         * modules/unistr/u32-mbsnlen-tests: Likewise.
15483         * modules/unistr/u32-mbtouc-tests: Likewise.
15484         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15485         * modules/unistr/u32-mbtoucr-tests: Likewise.
15486         * modules/unistr/u32-move-tests: Likewise.
15487         * modules/unistr/u32-next-tests: Likewise.
15488         * modules/unistr/u32-prev-tests: Likewise.
15489         * modules/unistr/u32-set-tests: Likewise.
15490         * modules/unistr/u32-stpcpy-tests: Likewise.
15491         * modules/unistr/u32-stpncpy-tests: Likewise.
15492         * modules/unistr/u32-strcat-tests: Likewise.
15493         * modules/unistr/u32-strcmp-tests: Likewise.
15494         * modules/unistr/u32-strcoll-tests: Likewise.
15495         * modules/unistr/u32-strcpy-tests: Likewise.
15496         * modules/unistr/u32-strdup-tests: Likewise.
15497         * modules/unistr/u32-strlen-tests: Likewise.
15498         * modules/unistr/u32-strmblen-tests: Likewise.
15499         * modules/unistr/u32-strmbtouc-tests: Likewise.
15500         * modules/unistr/u32-strncat-tests: Likewise.
15501         * modules/unistr/u32-strncmp-tests: Likewise.
15502         * modules/unistr/u32-strncpy-tests: Likewise.
15503         * modules/unistr/u32-strnlen-tests: Likewise.
15504         * modules/unistr/u32-to-u16-tests: Likewise.
15505         * modules/unistr/u32-to-u8-tests: Likewise.
15506         * modules/unistr/u32-uctomb-tests: Likewise.
15507         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15508         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15509         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15510         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15511         * modules/uniwidth/u8-strwidth-tests: Likewise.
15512         * modules/uniwidth/u8-width-tests: Likewise.
15513         * modules/uniwidth/u16-strwidth-tests: Likewise.
15514         * modules/uniwidth/u16-width-tests: Likewise.
15515         * modules/uniwidth/u32-strwidth-tests: Likewise.
15516         * modules/uniwidth/u32-width-tests: Likewise.
15517         * modules/uniwidth/width-tests: Likewise.
15518
15519 2010-05-18  Richard Jones  <rjones@redhat.com>
15520
15521         doc: users.txt: list hivex
15522         * users.txt: Add hivex.
15523
15524 2010-05-18  Richard Jones  <rjones@redhat.com>
15525
15526         doc: users.txt: list febootstrap
15527         * users.txt: Add febootstrap.
15528
15529 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15530
15531         bootstrap: fix an error when gnulib is not used as a git submodule
15532         * build-aux/bootstrap (gnulib_path): If its length is zero then
15533         assign "gnulib" to it.
15534         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15535
15536 2010-05-16  Bruno Haible  <bruno@clisp.org>
15537
15538         Avoid autoconf warnings about AM_ICONV.
15539         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15540         2.64.
15541
15542 2010-05-16  Bruno Haible  <bruno@clisp.org>
15543
15544         absolute-header: Make the macro usable in more situations.
15545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15546         from gl_ABSOLUTE_HEADER.
15547         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15548
15549 2010-05-16  James Youngman  <jay@gnu.org>
15550
15551         doc: update users.txt
15552         * users.txt: Add CSSC.
15553
15554 2010-05-16  Jim Meyering  <meyering@redhat.com>
15555
15556         init.sh: fix an error in the previous change; add more comments
15557         * tests/init.sh: Compare exit code in loop against 9, not 2.
15558         Patch by Bruno Haible.
15559         Make the two tests more similar by adding an empty "then" clause.
15560         Add comments.
15561
15562         init.sh: avoid unnecessary shell re-exec
15563         * tests/init.sh: Improve the re-exec-required check to first test the
15564         current shell.  If it passes the test, do not search for a shell that
15565         does pass, and do not re-exec.  This test is particularly contorted to
15566         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15567         of $(...) evokes a syntax error and causes immediate shell exit with
15568         status 2.  Bruno Haible reported that the re-exec made it impossible
15569         to single-step through any init.sh-using script.
15570
15571 2010-05-16  Bruno Haible  <bruno@clisp.org>
15572
15573         Fix collision between gnulib's and libintl's printf replacements.
15574         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15575         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15576         (printf): When using GNU C, map the __printf__ function to rpl_printf
15577         via __asm__. When not using GNU C, define rpl_printf instead of
15578         __printf__.
15579         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15580         commit.
15581         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15582         commit.
15583         * m4/asm-underscore.m4: New file.
15584         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15585         * modules/stdio (Files): Add m4/asm-underscore.m4.
15586         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15587         Reported by Ben Pfaff.
15588
15589 2010-05-16  Bruno Haible  <bruno@clisp.org>
15590
15591         verify: Avoid skipping the test on openSUSE 11.0.
15592         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15593
15594 2010-05-13  Bruno Haible  <bruno@clisp.org>
15595
15596         Avoid useless warnings from G++.
15597         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15598         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15599         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15600
15601 2010-05-11  Jim Meyering  <meyering@redhat.com>
15602
15603         maint.mk: tweak preceding change
15604         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15605         regexps tighter by anchoring at EOL, and make the new group "shy"
15606         for slightly decreased overhead.
15607
15608 2010-05-11  Eric Blake  <eblake@redhat.com>
15609
15610         maint.mk: gnulib doesn't guarantee NSIG
15611         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15612
15613 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15614
15615         test-pwrite.c: Remove unused variable declaration.
15616         * tests/test-pwrite.c (main): Remove read_buf declaration.
15617
15618         Remove useless test-pwrite.sh file.
15619         * tests/test-pwrite.sh: Delete file.
15620         * modules/pwrite-tests: Remove references.
15621         Reported by Bruno Haible.
15622
15623 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15624
15625         init.sh: fix a typo
15626         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15627
15628 2010-05-10  Jim Meyering  <meyering@redhat.com>
15629
15630         maint.mk: avoid using a temporary file in the always-defined-macros check
15631         * top/maint.mk (.re-defmac): Remove rule.
15632         (gl_trap_): Remove definition.
15633         (sc_prohibit_always-defined_macros): Rewrite not to create and
15634         depend on a temporary file.  Instead, depend on GNU grep's ability
15635         to read a list of regular expressions from stdin when given "-f -".
15636
15637 2010-05-09  Bruno Haible  <bruno@clisp.org>
15638
15639         Update to GNU gettext 0.18, part 1.
15640         * m4/gettext.m4: Update to GNU gettext 0.18.
15641         * m4/intl.m4: Likewise.
15642         * m4/po.m4: Likewise.
15643         * modules/gettext (Files): Add m4/fcntl-o.m4.
15644         (configure.ac): Require gettext infrastructure from version 0.18.
15645
15646 2010-05-09  Jim Meyering  <meyering@redhat.com>
15647
15648         init.sh: enable MALLOC_PERTURB_
15649         * tests/init.sh: Enable glibc's malloc-perturbing option.
15650
15651         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15652         With my recent change in init.sh from the two-line form:
15653             -#   : ${srcdir=.}
15654             -#   . "$srcdir/init.sh"; path_prepend_ .
15655             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15656         I noticed that using the one-line form would cause this test
15657         to fail with a false-positive, or to stop working altogether,
15658         depending on whether help-version changed or all the tests did.
15659         * top/maint.mk (_hv_regex): Remove this definition.
15660         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15661         (_hv_regex_strong): Use a stronger regex to check for conformance.
15662         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15663         Give a separate diagnostic for lack of conforming use.
15664
15665         maint.mk: prohibit definition of symbols defined by gnulib
15666         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15667         definition of symbols defined by gnulib.
15668
15669 2010-05-09  Bruno Haible  <bruno@clisp.org>
15670
15671         acl: Avoid test failure on Cygwin-hosted mingw.
15672         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15673
15674 2010-05-09  Bruno Haible  <bruno@clisp.org>
15675
15676         error: Use system's fcntl function.
15677         * lib/error.c (fcntl): Undefine.
15678
15679 2010-05-09  Jim Meyering  <meyering@redhat.com>
15680
15681         verify: adjust formatting to be more consistent
15682         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15683         argument-list '('s, and after one comma.
15684
15685 2010-05-09  Bruno Haible  <bruno@clisp.org>
15686
15687         error: More reliable output on mingw.
15688         * lib/error.c: Include <windows.h>.
15689         (is_open): New function.
15690         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15691         defined.
15692
15693 2010-05-09  Bruno Haible  <bruno@clisp.org>
15694
15695         vasnprintf: Fix syntax errors in libintl build on mingw.
15696         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15697         pad_ourselves and prec_ourselves after use.
15698
15699 2010-05-08  Bruno Haible  <bruno@clisp.org>
15700
15701         * lib/config.charset: Update comments for Cygwin 1.7.
15702         * lib/localcharset.c: Likewise.
15703
15704 2010-05-07  Jim Meyering  <meyering@redhat.com>
15705
15706         init.sh: improve comments
15707         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15708         . "${srcdir=.}/init.sh"; path_prepend_ .
15709         Add a note about path_prepend_ and the alternative of using
15710         TESTS_ENVIRONMENT.
15711
15712 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15713
15714         exclude: Unescape hashed patterns in wildcard mode.
15715         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15716         to the hash list.
15717         * tests/test-exclude8.sh: New test case.
15718         * modules/exclude-tests: Add new test.
15719
15720 2010-05-05  Eric Blake  <eblake@redhat.com>
15721
15722         verify: automate tests
15723         * modules/verify-tests: New module.
15724         * tests/test-verify.sh: New file.
15725         * tests/test-verify.c: Guard each negative test with a unique id.
15726         Also avoid warning about unused left hand of comma expressions.
15727
15728 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         Further improvements to verify.h, suggested by Eric Blake.
15731         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15732         the GL_* versions, to avoid collision with OpenGL.
15733         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15734         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15735         than testing merely whether it's defined.
15736
15737         Modify verify.h to pacify gcc -Wredundant_decls.
15738         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15739         These use the prefix "GL_" since they're likely to be useful elsewhere.
15740         We may need to break them out into a different .h file.
15741         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15742         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15743         of verify_function__.
15744
15745 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15746
15747         Tests for module pwrite.
15748         * modules/pwrite-tests: New file.
15749         * tests/test-pwrite.sh: New file.
15750         * tests/test-pwrite.c: New file.
15751
15752         New module pwrite.
15753         * lib/unistd.in.h (pwrite): New declaration.
15754         * lib/pwrite.c: New file, from glibc with modifications.
15755         * m4/pwrite.m4: New file.
15756         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15757         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15758         REPLACE_PWRITE.
15759         * modules/pwrite: New file.
15760         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15761         REPLACE_PWRITE.
15762         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15763         * doc/posix-functions/pwrite.texi: Mention the new module.
15764
15765 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15766
15767         pread: Update documentation.
15768         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15769
15770 2010-05-04  Eric Blake  <eblake@redhat.com>
15771
15772         docs: update cygwin progress
15773         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15774         this bug.
15775         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15776         Added in cygwin 1.7.2.
15777         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15778         Likewise.
15779         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15780         Likewise.
15781         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15782         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15783         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15784         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15785         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15786         Mention nproc module.
15787         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15788         bug in cygwin 1.7.5 addition.
15789         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15790         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15791         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15792         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15793         1.7.5.
15794         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15795         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15796         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15797         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15798         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15799         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15800         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15801         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15802         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15803         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15804         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15805         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15806         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15807         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15808         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15809         Likewise.
15810         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15811         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15812         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15813         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15814         Likewise.
15815         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15816         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15817         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15818         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15819         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15820         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15821         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15822         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15823         Likewise.
15824         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15825         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15826         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15827         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15828         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15829         Likewise.
15830         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15831         Likewise.
15832         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15833         Likewise.
15834         * doc/glibc-functions/xdrrec_endofrecord.texi
15835         (xdrrec_endofrecord): Likewise.
15836         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15837         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15838         Likewise.
15839         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15840         Likewise.
15841
15842 2010-05-04  Jim Meyering  <meyering@redhat.com>
15843
15844         gendocs.sh: make its "-s FILE" option more useful
15845         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15846         $PACKAGE to reflect the probably-different basename of "FILE".
15847
15848 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15849
15850         bootstrap: don't ignore download_po_files failure
15851         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15852         failure.
15853
15854 2010-05-03  Jim Meyering  <meyering@redhat.com>
15855
15856         maint.mk: allow to pass options to gendocs.sh
15857         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15858         (gendocs_options_): New overridable variable.
15859
15860         gnu-web-doc-update: don't ignore configure or build failure
15861         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15862
15863         announce-gen: backslash-escape '@'s in --help output
15864         * build-aux/announce-gen: Fix syntax errors.
15865
15866         maint.mk, announce-gen: allow project-specific announcement mail headers
15867         * top/maint.mk (translation_project_): Define default.
15868         (announcement_Cc_, announcement_mail_headers_): Likewise.
15869         (announcement): Invoke announce-gen with new --mail-headers option.
15870         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15871
15872         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15873         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15874         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15875         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15876         line in the "err2" output file when running "make check" in verbose
15877         mode (i.e., with set -x enabled).
15878
15879 2010-05-03  Bruno Haible  <bruno@clisp.org>
15880
15881         wctob: Fix for weird platforms.
15882         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15883         argument value.
15884
15885 2010-05-03  Jim Meyering  <meyering@redhat.com>
15886
15887         maint.mk: prohibit unwarranted use of <strings.h>
15888         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15889         strings.h in a file that does not also use strcasecmp, strncasecmp,
15890         ffs or ffsll.
15891
15892         maint.mk: remove obsolete comments
15893         * top/maint.mk: Remove stale, commented-out rules.
15894
15895 2010-05-02  Bruno Haible  <bruno@clisp.org>
15896
15897         wcwidth: Declare also when it's aliased.
15898         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15899         macro.
15900
15901 2010-05-02  Bruno Haible  <bruno@clisp.org>
15902
15903         Fix regression from 2010-04-25.
15904         * gnulib-tool (func_modules_transitive_closure): Check the status of
15905         all modules, not only of the tests that are of the form foo-tests where
15906         foo is a module.
15907
15908 2010-05-02  Bruno Haible  <bruno@clisp.org>
15909
15910         wctob: Work around nasty Cygwin 1.7.2 bug.
15911         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15912         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15913
15914 2010-05-01  Bruno Haible  <bruno@clisp.org>
15915
15916         fpurge: Sharper test.
15917         * tests/test-fpurge.c (main): Add one more ftell check.
15918         * modules/fpurge-tests (Depends-on): Add ftell.
15919         Suggested by Eric Blake.
15920
15921 2010-05-01  Bruno Haible  <bruno@clisp.org>
15922
15923         ftello: Another test.
15924         * tests/test-ftello3.c: New file.
15925         * modules/ftello-tests (Files): Add it.
15926         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15927         MOSTLYCLEANFILES.
15928
15929         ftell: Another test.
15930         * tests/test-ftell3.c: New file.
15931         * modules/ftell-tests (Files): Add it.
15932         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15933         MOSTLYCLEANFILES.
15934
15935 2010-05-01  Bruno Haible  <bruno@clisp.org>
15936
15937         ftell, ftello: Work around Solaris bug.
15938         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15939         * lib/ftello.c: Include stdio-impl.h.
15940         (ftello): On Solaris, when _IOWRT is set, compute the result without
15941         looking at _IOREAD.
15942         * modules/ftello (Files): Add lib/stdio-impl.h.
15943         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15944         * doc/posix-functions/ftello.texi: Likewise.
15945         Reported by Eric Blake.
15946
15947 2010-05-01  Bruno Haible  <bruno@clisp.org>
15948
15949         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15950         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15951         the _IOWRT flag is also set.
15952
15953 2010-05-01  Bruno Haible  <bruno@clisp.org>
15954
15955         Fix doc about a HP-UX stdio bug.
15956         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15957         * doc/posix-functions/ftello.texi: Likewise.
15958
15959 2010-05-01  Bruno Haible  <bruno@clisp.org>
15960
15961         lseek test: Fix failure on Solaris.
15962         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15963         output.
15964
15965 2010-04-30  Jim Meyering  <meyering@redhat.com>
15966
15967         bootstrap: don't ignore failure to generate po*/Makevars
15968         * build-aux/bootstrap (with_gettext): Don't ignore failure
15969         to create po/Makevars or runtime-po/Makevars.
15970
15971 2010-04-29  Eric Blake  <eblake@redhat.com>
15972
15973         headers: relax license to LGPLv2+
15974         * modules/fcntl-h (License): Relax license.
15975         * modules/getopt-posix (License): Likewise.
15976         * modules/locale (License): Likewise.
15977         * modules/math (License): Likewise.
15978         * modules/pty (License): Likewise.
15979         * modules/sched (License): Likewise.
15980         * modules/search (License): Likewise.
15981         * modules/spawn (License): Likewise.
15982         * modules/stdarg (License): Likewise.
15983         * modules/sysexits (License): Likewise.
15984
15985 2010-04-29  Jim Meyering  <meyering@redhat.com>
15986
15987         inttypes: relax license to LGPLv2+
15988         * modules/inttypes (License): Relax license.
15989
15990 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15991
15992         * top/maint.mk (indent): Run twice to produce idempotent results.
15993
15994 2010-04-28  Bruno Haible  <bruno@clisp.org>
15995
15996         getdate: Generate getdate.c in the source directory.
15997         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15998         MOSTLYCLEANFILES.
15999         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16000
16001 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16002
16003         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16004         is not declared as a const *; avoid warnings in that case.
16005
16006 2010-04-28  Eric Blake  <eblake@redhat.com>
16007
16008         canonicalize-lgpl: avoid compiler warning
16009         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16010         declaration' / 'extraneous semicolon' warning with some compilers.
16011         Reported by Andreas Gruenbacher.
16012
16013 2010-04-28  Jim Meyering  <meyering@redhat.com>
16014
16015         init.sh: ensure a more reliable exit status when exiting via trap
16016         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16017         Inspired by patches from Dmitry V. Levin.
16018         Also trap on signal 3 (SIGQUIT).
16019
16020 2010-04-27  Bruno Haible  <bruno@clisp.org>
16021
16022         Update doc about utimes().
16023         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16024         'utimens' module.
16025         Reported by Andreas Gruenbacher <agruen@suse.de>.
16026
16027 2010-04-27  Eric Blake  <eblake@redhat.com>
16028
16029         full-read, full-write: relax license
16030         * modules/full-read (License): Drop to LGPLv2+.
16031         * modules/full-write (License): Likewise.
16032         * modules/safe-read (License): Likewise.
16033         * modules/safe-write (License): Likewise.
16034
16035         pthread: mention library for linking
16036         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16037
16038 2010-04-27  Jim Meyering  <meyering@redhat.com>
16039
16040         maint.mk: fix a bug introduced in last change
16041         * top/maint.mk (gl_assured_headers_): Now that all names are on
16042         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16043         is not anchored to end of word, it should be adequate.
16044
16045         maint.mk: avoid side-effect in latest syntax-check
16046         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16047         to run commands via $(shell...), and hence to incur cost only when
16048         the new rule is actually run.
16049
16050         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16051         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16052         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16053         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16054         (gl_assured_headers_, az_, AZ_): Define.
16055         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16056
16057 2010-04-26  Jim Meyering  <jim@meyering.net>
16058             Bruno Haible  <bruno@clisp.org>
16059
16060         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16061         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16062         Prompted by an exchange with Gilles Espinasse.
16063
16064 2010-04-26  Jim Meyering  <meyering@redhat.com>
16065
16066         git-version-gen: aesthetic tweak
16067         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16068         so that the command remains on a single line.
16069
16070 2010-04-26  Eric Blake  <eblake@redhat.com>
16071
16072         git-version-gen: allow use on EBCDIC hosts
16073         * build-aux/git-version-gen (dirty): Use literal rather than tying
16074         ourselves to ascii.
16075         Reported by Steve Goetze.
16076
16077 2010-04-25  Bruno Haible  <bruno@clisp.org>
16078
16079         netdb: Add support for GNULIB_POSIXCHECK.
16080         * lib/netdb.in.h: Include warn-on-use.h.
16081         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16082         functions are used when GNULIB_POSIXCHECK is defined and the
16083         getaddrinfo module is not in use.
16084         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16085         freeaddrinfo, gai_strerror, getnameinfo are declared.
16086         * modules/netdb (Depends-on): Add warn-on-use.
16087         (Makefile.am): Include warn-on-use.h in netdb.h.
16088
16089 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16090
16091         build: avoid "make check" failure without .git/ directory
16092         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16093         there is no .git/ directory.
16094
16095 2010-04-25  Bruno Haible  <bruno@clisp.org>
16096
16097         ptsname: Fix misuse of ttyname_r.
16098         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16099         of errno.
16100
16101 2010-04-25  Bruno Haible  <bruno@clisp.org>
16102
16103         ttyname_r: Make it work on Solaris 10.
16104         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16105         if the system function has the POSIX declaration. Test whether the
16106         function fails if the buffer is less than 128 bytes large.
16107         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16108         system's ttyname_r function. Provide a reasonably large buffer.
16109         * modules/ttyname_r (Depends-on): Add extensions.
16110         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16111
16112 2010-04-25  Bruno Haible  <bruno@clisp.org>
16113
16114         Use the 'extensions' module for some more functions on Solaris.
16115         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16116         module.
16117         * doc/posix-functions/ctime_r.texi: Likewise.
16118         * doc/posix-functions/getgrgid_r.texi: Likewise.
16119         * doc/posix-functions/getgrnam_r.texi: Likewise.
16120         * doc/posix-functions/getpwnam_r.texi: Likewise.
16121         * doc/posix-functions/getpwuid_r.texi: Likewise.
16122         * doc/posix-functions/readdir_r.texi: Likewise.
16123         * doc/posix-functions/sigwait.texi: Likewise.
16124         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16125         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16126
16127 2010-04-25  Bruno Haible  <bruno@clisp.org>
16128
16129         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16131         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16132         * lib/ttyname_r.c: Include <limits.h>.
16133         (ttyname_r): Define using the system's ttyname_r function, if it exists
16134         and not on Solaris.
16135         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16136         set.
16137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16138         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16139         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16140         Reported by Simon Josefsson.
16141
16142 2010-04-25  Bruno Haible  <bruno@clisp.org>
16143
16144         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16145         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16146         * doc/posix-functions/ctime_r.texi: Likewise.
16147         * doc/posix-functions/getgrgid_r.texi: Likewise.
16148         * doc/posix-functions/getgrnam_r.texi: Likewise.
16149         * doc/posix-functions/getlogin_r.texi: Likewise.
16150         * doc/posix-functions/getpwnam_r.texi: Likewise.
16151         * doc/posix-functions/getpwuid_r.texi: Likewise.
16152         * doc/posix-functions/readdir_r.texi: Likewise.
16153         * doc/posix-functions/sigwait.texi: Likewise.
16154         * doc/posix-functions/ttyname_r.texi: Likewise.
16155         Reported by Simon Josefsson.
16156
16157 2010-04-25  Bruno Haible  <bruno@clisp.org>
16158
16159         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16160         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16161         also to --create-testdir.
16162         (func_acceptable): Don't consider the status of *-tests modules here.
16163         (func_modules_transitive_closure): Consider it here, before including a
16164         test module.
16165         (func_import, func_create_testdir): Set inc_all_direct_tests,
16166         inc_all_indirect_tests.
16167         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16168         --create-testdir and --create-megatestdir.
16169
16170 2010-04-25  Bruno Haible  <bruno@clisp.org>
16171
16172         gnulib-tool: Add --without-*-tests options.
16173         * gnulib-tool (func_usage): Document the --without-*-tests options.
16174         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16175         excl_unportable_tests): New variables.
16176         Fail if they are specified with --import or --update.
16177         (func_acceptable): Respect the excl_*_tests variables.
16178         (func_import): Set the excl_*_tests variables to empty.
16179
16180 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16181             Bruno Haible  <bruno@clisp.org>
16182
16183         Work around a MacOS X 10.4 bug with openpty.
16184         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16185         * tests/test-openpty.c (main): Close the master side explicitly.
16186
16187 2010-04-25  Bruno Haible  <bruno@clisp.org>
16188
16189         strnlen: Fix a C++ test error on MacOS X and Solaris.
16190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16191         the function is not declared.
16192         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16193         Simon Josefsson.
16194
16195 2010-04-24  Bruno Haible  <bruno@clisp.org>
16196
16197         Avoid a gcc warning.
16198         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16199         of correct type for %08lx directive.
16200         Reported by Eric Blake.
16201
16202 2010-04-24  Bruno Haible  <bruno@clisp.org>
16203
16204         vasnprintf: Correct errno value in case of out-of-memory.
16205         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16206         or sprintf. Use the errno value from SNPRINTF or sprintf.
16207         Reported by Ian Beckwith <ianb@erislabs.net>.
16208
16209 2010-04-24  Bruno Haible  <bruno@clisp.org>
16210
16211         ansi-c++-opt: Find correct compiler when cross-compiling.
16212         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16213         AC_CHECK_PROGS.
16214         Reported by Simon Josefsson.
16215
16216 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16217
16218         vc-list-files: Add support for subversion
16219         * build-aux/vc-list-files: Use "svn list" to generate the list of
16220         files controlled by subversion.
16221
16222 2010-04-23  Jim Meyering  <meyering@redhat.com>
16223
16224         vc-list-files tests: convert to use init.sh
16225         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16226         path_prepend_.
16227         Use Exit, not exit.
16228         Use skip_ rather than open coding it.
16229         Remove trap set-up and compare definitions.
16230         * tests/test-vc-list-files-git.sh: Likewise.
16231         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16232
16233 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16234
16235         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16236         backup files.
16237
16238 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16239
16240         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16241
16242 2010-04-20  Eric Blake  <eblake@redhat.com>
16243
16244         tests: be robust to ignored SIGPIPE
16245         * tests/test-select-in.sh: Consume all output.
16246         * tests/test-lseek.sh: Check correct exit status, while avoiding
16247         EPIPE.
16248
16249 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16250             Bruno Haible  <bruno@clisp.org>
16251
16252         visibility: Don't use -fvisibility if it leads to a warning.
16253         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16254         yes, don't pretend that visibility works if it leads to a warning.
16255         Reported by Mike Gran <spk121@yahoo.com>.
16256
16257 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16258
16259         * build-aux/bootstrap: Use "git -h" for testing for supported options
16260         instead of "git --help".  The short-form option only shows a summary,
16261         and doesn't layout the full man page.  Grep for the full option name
16262         in the summary, too.
16263
16264 2010-04-19  Bruno Haible  <bruno@clisp.org>
16265
16266         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16267         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16268         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16269         mention of RELOCATABLE_STRIP.
16270         Reported by Sylvain Beucler <beuc@beuc.net>.
16271
16272 2010-04-19  Bruno Haible  <bruno@clisp.org>
16273
16274         * lib/diffseq.h: Fix typo in comment.
16275         Reported by Eric Blake.
16276
16277 2010-04-19  Bruno Haible  <bruno@clisp.org>
16278
16279         ioctl: Move autoconf macro to a .m4 file.
16280         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16281         * modules/ioctl (Files): Add it.
16282         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16283         Reported by Ian Beckwith <ianb@erislabs.net>.
16284
16285 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16286             Bruno Haible  <bruno@clisp.org>
16287
16288         diffseq: Accommodate use-case with abstract arrays.
16289         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16290         is not defined.
16291         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16292         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16293
16294 2010-04-18  Bruno Haible  <bruno@clisp.org>
16295
16296         * doc/posix-headers/stdbool.texi: More precise wording.
16297
16298 2010-04-17  Jim Meyering  <meyering@redhat.com>
16299
16300         maint.mk: use gnu-style indentation in an embedded perl script
16301         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16302         Rename variable: s/two/last_two_bytes/
16303
16304 2010-04-16  Eric Blake  <eblake@redhat.com>
16305
16306         test-stdbool: skip test that fails with Solaris CC
16307         * tests/test-stdbool.c (f): Skip test that causes compilation
16308         error under buggy C++ compiler.
16309         * lib/stdbool.in.h: Document the limitation.
16310         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16311
16312         setenv: allow compilation with C++
16313         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16314         register keyword.
16315
16316         stdint: allow test to pass with C++
16317         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16318
16319         getopt: allow compilation with C++
16320         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16321         struct.
16322         * lib/getopt.c (_getopt_internal_r): Use correct type.
16323         Reported by Dagobert Michelson, via Joel E. Denny.
16324
16325 2010-04-16  Bruno Haible  <bruno@clisp.org>
16326
16327         Override netdb.h always.
16328         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16330         Reported by Ludovic Courtès <ludo@gnu.org>.
16331
16332 2010-04-15  Bruno Haible  <bruno@clisp.org>
16333
16334         openpty: Fix mistake from 2010-03-21.
16335         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16336         Reported by Simon Josefsson.
16337
16338 2010-04-15  Eric Blake  <eblake@redhat.com>
16339
16340         test-forkpty: fix expected signature
16341         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16342         Reported by Simon Josefsson.
16343
16344 2010-04-15  Jim Meyering  <meyering@redhat.com>
16345
16346         maint.mk: texinfo_suffix_re_: correct the default regexp
16347         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16348
16349         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16350         make it configurable via texinfo_suffix_re_.
16351
16352 2010-04-14  Eric Blake  <eblake@redhat.com>
16353
16354         strtok_r: relax license to LGPLv2+
16355         * modules/strtok_r (License): Relax license.
16356         Reported by Matthias Bolte.
16357
16358 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16359
16360         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16361         version 1.4.4 by default instead of requiring the libgcrypt
16362         version used during build.  This makes it possible to use the
16363         application with older but still binary compatible libgcrypt
16364         versions.
16365
16366 2010-04-13  Eric Blake  <eblake@redhat.com>
16367
16368         getopt-gnu: match recent glibc fixes and posix ruling
16369         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16370         '+' handling, when requesting extensions.
16371         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16372         'W;' handling.
16373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16374         * doc/posix-functions/getopt.texi (getopt): Document this.
16375         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16377         Likewise.
16378
16379         getopt: merge bug fixes from glibc
16380         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16381         diagnostics.  Honor '+:' correctly.  Reject ';'.
16382
16383         getopt-posix: detect MacOS bug
16384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16385         optind when missing a required argument.
16386         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16387         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16388         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16389         Likewise.
16390
16391         getopt-posix: avoid spurious failure on Solaris
16392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16393         an indicator that setting optind=1 is sufficient for reset.
16394
16395         getopt-posix: avoid spurious failure on FreeBSD
16396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16397         in POSIX mode, since the m4 test uses it.
16398
16399         gnulib-tool: silence warning on BSD sh
16400         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16401
16402 2010-04-13  Jim Meyering  <meyering@redhat.com>
16403
16404         doc: users.txt: GNU patch now uses gnulib
16405         * users.txt: Add patch.
16406
16407 2010-04-12  Jim Meyering  <meyering@redhat.com>
16408
16409         maint.mk: generate more concise timing data for syntax-check rules
16410         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16411         " done" from each line that reports a syntax-check test duration.
16412
16413 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16414
16415         git-version-gen: use "git update-index..." rather than "git status"
16416         * build-aux/git-version-gen: Use git update-index --refresh, not
16417         "git status".  With some versions of git, "git status" would fail
16418         to update the index and result in an unwarranted "-dirty" suffix.
16419
16420 2010-04-11  Jim Meyering  <meyering@redhat.com>
16421
16422         openat: correct formatting (no semantic change)
16423         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16424         Suggested by Bruno Haible.
16425
16426 2010-04-11  Bruno Haible  <bruno@clisp.org>
16427
16428         Stricter declaration checking in testdirs.
16429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16430         If for_tests is true, augment AM_CPPFLAGS to define
16431         GNULIB_STRICT_CHECKING.
16432         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16433         GNULIB_STRICT_CHECKING is defined, verify that the function is
16434         declared.
16435
16436 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16437             Bruno Haible  <bruno@clisp.org>
16438
16439         libunistring: Improve configure output.
16440         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16441         Don't say "consider installing GNU libunistring" when checking again
16442         with libiconv.
16443
16444 2010-04-11  Bruno Haible  <bruno@clisp.org>
16445
16446         libunistring: Correct value of $LTLIBUNISTRING.
16447         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16448         correct the value of $LTLIBUNISTRING.
16449
16450 2010-04-11  Bruno Haible  <bruno@clisp.org>
16451
16452         havelib: Add static libraries to LIBS in the right order.
16453         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16454         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16455
16456 2010-04-11  Bruno Haible  <bruno@clisp.org>
16457
16458         libunistring: Detect libunistring also when it depends on libiconv.
16459         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16460         the second AC_LIB_HAVE_LINKFLAGS invocation.
16461
16462 2010-04-11  James Youngman  <jay@gnu.org>
16463
16464         close-stream: declare local scalars to be "const"
16465         * lib/close-stream.c (close_stream): Make boolean variables const
16466         to document the fact that we set but do not change them.
16467
16468 2010-04-11  Bruno Haible  <bruno@clisp.org>
16469
16470         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16471
16472 2010-04-11  Jim Meyering  <meyering@redhat.com>
16473
16474         maint.mk: don't include dist-check.mk
16475         * top/maint.mk: Remove bogus include directive.
16476
16477         maint.mk: improve empty-line-at-EOF check
16478         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16479         solution, rather than tail+Perl-based one.  The latter would read
16480         a few kilobytes from the end of each file, and did not handle empty
16481         files properly.
16482
16483         maint.mk: print the elapsed time for each syntax-check rule
16484         * top/maint.mk (sc_m_rules_): Save start time in a file.
16485         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16486         (local-check): Interpose the .z rules
16487
16488 2010-04-11  Jim Meyering  <meyering@redhat.com>
16489
16490         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16491         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16492         empty file with one that ends in an empty line.
16493
16494 2010-04-10  Bruno Haible  <bruno@clisp.org>
16495
16496         mkdir: Make it work on mingw64.
16497         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16498         * lib/mkdir.c: Update comment.
16499         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16500
16501 2010-04-10  Bruno Haible  <bruno@clisp.org>
16502
16503         Don't override improved macro from newer autoconf.
16504         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16505         autoconf >= 2.62.
16506         Reported by Joel E. Denny <jdenny@clemson.edu>.
16507
16508 2010-04-10  Jim Meyering  <meyering@redhat.com>
16509
16510         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16511         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16512
16513         maint.mk: correct a diagnostic
16514         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16515         in diagnostic; now use $prohibit.
16516
16517 2010-04-10  Bruno Haible  <address@hidden>
16518
16519         fchownat: Fix a C++ test error on Solaris 8.
16520         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16521         the function does not exist.
16522
16523 2010-04-10  Bruno Haible  <bruno@clisp.org>
16524
16525         vasnprintf: Add more tests.
16526         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16527         (test_function): Test converting an invalid wide string.
16528
16529         vasnprintf: Correct handling of unconvertible wide string arguments.
16530         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16531         VASNPRINTF.
16532         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16533         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16534         smaller than the expected maximum need for the directive. Set errno to
16535         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16536         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16538         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16539         * modules/vasnprintf (Files): Add m4/printf.m4.
16540         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16541
16542 2010-04-10  Bruno Haible  <bruno@clisp.org>
16543
16544         vasnprintf: Fix crash in %ls directive.
16545         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16546         string is passed as argument to %ls, with no precision and no width.
16547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16548
16549 2010-04-10  Bruno Haible  <bruno@clisp.org>
16550
16551         vasnprintf: Fix multiple test failures on mingw.
16552         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16553         _snprintf, or snwprintf, not _snwprintf.
16554
16555 2010-04-10  Bruno Haible  <bruno@clisp.org>
16556
16557         write: Fix a C++ test error on mingw.
16558         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16559
16560 2010-04-10  Bruno Haible  <bruno@clisp.org>
16561
16562         vasnprintf test: Reduce code duplication.
16563         * tests/test-vasnprintf.c (test_function): New function, extracted from
16564         test_vasnprintf.
16565         (test_vasnprintf, test_asnprintf): Invoke it.
16566
16567 2010-04-10  Bruno Haible  <bruno@clisp.org>
16568
16569         strnlen: Fix warning in C++ mode on MacOS X.
16570         * lib/string.in.h (strnlen): Use the modern idiom.
16571         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16572         defining strnlen as a macro already in <config.h>.
16573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16574         REPLACE_STRNLEN.
16575         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16576         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16577
16578 2010-04-08  James Youngman  <jay@gnu.org>
16579
16580         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16581         the example.
16582
16583 2010-04-09  Jim Meyering  <meyering@redhat.com>
16584
16585         maint.mk: print better diagnostic when there is no $(_hv_file)
16586         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16587         announce that when $(_hv_file) (aka help-version) does not exist.
16588
16589         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16590         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16591         not try to interpret its random input bytes.  Jarno Rajahalme reported
16592         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16593         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16594         (mktempd_): Likewise, just in case.
16595
16596         ftruncate: add two years to projected module removal date: 2012
16597         * m4/ftruncate.m4: Adjust comments.
16598
16599         ftruncate: mark module as obsolete; even MinGW provides it, now
16600         * modules/ftruncate (Status): Obsolete.
16601         (Notice): Say that.
16602         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16604
16605 2010-04-08  Bruno Haible  <bruno@clisp.org>
16606
16607         Fix side effects from tests-related modules.
16608         * modules/dprintf-posix (Comment): New section.
16609         * modules/fprintf-posix (Comment): Likewise.
16610         * modules/obstack-printf-posix (Comment): Likewise.
16611         * modules/printf-posix (Comment): Likewise.
16612         * modules/snprintf-posix (Comment): Likewise.
16613         * modules/sprintf-posix (Comment): Likewise.
16614         * modules/vasnprintf-posix (Comment): Likewise.
16615         * modules/vasprintf-posix (Comment): Likewise.
16616         * modules/vdprintf-posix (Comment): Likewise.
16617         * modules/vfprintf-posix (Comment): Likewise.
16618         * modules/vprintf-posix (Comment): Likewise.
16619         * modules/vsnprintf-posix (Comment): Likewise.
16620         * modules/vsprintf-posix (Comment): Likewise.
16621         * modules/xprintf-posix (Comment): Likewise.
16622         * modules/xvasprintf-posix (Comment): Likewise.
16623         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16624         * modules/floorf-tests (Depends-on): Likewise.
16625         * modules/round-tests (Depends-on): Likewise.
16626         * modules/roundf-tests (Depends-on): Likewise.
16627         * modules/trunc-tests (Depends-on): Likewise.
16628         * modules/truncf-tests (Depends-on): Likewise.
16629         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16630         'fprintf-posix' module is not present.
16631         * tests/test-floorf2.c (check): Likewise.
16632         * tests/test-trunc2.c (check): Likewise.
16633         * tests/test-truncf2.c (check): Likewise.
16634         * tests/test-round2.c (equal): Likewise.
16635         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16636
16637 2010-04-07  Karl Berry  <karl@gnu.org>
16638
16639         * config/srclist.txt,
16640         * config/srclistvars.sh,
16641         * config/srclist-update: doc fixes.
16642
16643 2010-04-07  Jim Meyering  <meyering@redhat.com>
16644
16645         maint.mk: add a PATH crosschecking syntax-check rule
16646         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16647         Useful if you use a test like the one in help-version (coreutils,
16648         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16649         printed by prog --version.
16650
16651 2010-04-06  Bruno Haible  <bruno@clisp.org>
16652
16653         Fix link error on mingw.
16654         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16655         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16656
16657 2010-04-06  Bruno Haible  <bruno@clisp.org>
16658
16659         Assume rmdir exists.
16660         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16661
16662 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16663
16664         doc: update users.txt
16665         * users.txt: Add gcal.
16666
16667 2010-04-06  Jim Meyering  <meyering@redhat.com>
16668
16669         init.sh: simply unset TMPDIR rather than risking env -i
16670         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16671         although it probably works fine on all Unix-based systems, some
16672         systems (Cygwin?) cannot tolerate a totally cleared environment.
16673         Suggestion from Eric Blake.
16674
16675 2010-04-06  Jim Meyering  <meyering@redhat.com>
16676
16677         init.sh: portability fix: use env's POSIX-specified -i option not -u
16678         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16679         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16680
16681 2010-04-05  Bruno Haible  <bruno@clisp.org>
16682
16683         btowc: Work around Cygwin 1.7.2 bug.
16684         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16685         does not map NUL to 0.
16686         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16687
16688 2010-04-05  Bruno Haible  <bruno@clisp.org>
16689
16690         Make the multithread modules work on Cygwin 1.7.2.
16691         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16692         imported symbols can be declared weak, so that it returns "no" on
16693         Cygwin 1.7.2.
16694
16695 2010-04-05  Bruno Haible  <bruno@clisp.org>
16696
16697         Use the module 'strncat'.
16698         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16699
16700         Tests for module 'strncat'.
16701         * modules/strncat-tests: New file.
16702         * tests/test-strncat.c: New file.
16703
16704         New module 'strncat'.
16705         * lib/string.in.h (strncat): New declaration.
16706         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16707         * m4/strncat.m4: New file, based on m4/memchr.m4.
16708         * modules/strncat: New file.
16709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16710         is declared.
16711         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16712         REPLACE_STRNCAT.
16713         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16714         REPLACE_STRNCAT.
16715         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16716         module.
16717         * tests/test-string-c++.cc: Check signature of strncat.
16718
16719 2010-04-05  Jim Meyering  <meyering@redhat.com>
16720
16721         xstrtoumax-tests: convert to use init.sh
16722         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16723         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16724         Use Exit, not exit.
16725         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16726
16727         xstrtoimax-tests: convert to use init.sh
16728         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16729         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16730         Use Exit, not exit.
16731         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16732
16733 2010-04-05  Bruno Haible  <bruno@clisp.org>
16734
16735         sys_socket: Avoid #define replacements in C++ mode.
16736         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16737         warning to the function if possible, rather than #defining the symbol
16738         to a dysfunctional alias.
16739
16740 2010-04-05  Bruno Haible  <bruno@clisp.org>
16741
16742         fseeko: Fix C++ test error on mingw.
16743         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16744         gl_FUNC_FSEEKO.
16745         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16746         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16747         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16748         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16749
16750 2010-04-05  Bruno Haible  <bruno@clisp.org>
16751
16752         duplocale: Improve test output.
16753         * tests/test-duplocale.c (main): Print reason for skipped test.
16754
16755 2010-04-05  Bruno Haible  <bruno@clisp.org>
16756
16757         Assume rmdir exists.
16758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16759         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16760
16761 2010-04-05  Bruno Haible  <bruno@clisp.org>
16762
16763         Fix link error on Solaris 8 with cc.
16764         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16765
16766 2010-04-05  Bruno Haible  <bruno@clisp.org>
16767
16768         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16769         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16770
16771 2010-04-05  Bruno Haible  <bruno@clisp.org>
16772
16773         vasprintf: Update documentation.
16774         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16775
16776 2010-04-05  Bruno Haible  <bruno@clisp.org>
16777
16778         ptsname: Improve test.
16779         * tests/test-ptsname.c (main): Also try the various master names of BSD
16780         systems.
16781
16782 2010-04-05  Bruno Haible  <bruno@clisp.org>
16783
16784         memchr: Avoid a possible C++ test error.
16785         * lib/string.in.h (memchr): Provide declaration if function is missing.
16786         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16787         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16789         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16790
16791 2010-04-05  Bruno Haible  <bruno@clisp.org>
16792
16793         strtok_r: Improve idiom.
16794         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16795         AC_LIBOBJ is used.
16796
16797 2010-04-05  Bruno Haible  <bruno@clisp.org>
16798
16799         strdup: Improve idiom.
16800         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16801         AC_LIBOBJ is used.
16802         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16803         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16804         when AC_LIBOBJ is used.
16805
16806 2010-04-05  Bruno Haible  <bruno@clisp.org>
16807
16808         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16809         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16810         don't set REPLACE_MBSINIT to 1.
16811         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16812         don't set REPLACE_MBRTOWC to 1.
16813         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16814         exist, don't set REPLACE_MBSRTOWCS to 1.
16815         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16816         exist, don't set REPLACE_MBSNRTOWCS to 1.
16817         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16818         don't set REPLACE_WCRTOMB to 1.
16819         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16820         exist, don't set REPLACE_WCSRTOMBS to 1.
16821         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16822         exist, don't set REPLACE_WCSNRTOMBS to 1.
16823
16824 2010-04-05  Bruno Haible  <bruno@clisp.org>
16825
16826         ldexpl: Improve idiom.
16827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16828         make sure to set HAVE_DECL_LDEXPL to 0.
16829
16830 2010-04-05  Jim Meyering  <meyering@redhat.com>
16831
16832         xstrtol-tests: convert to use init.sh
16833         * modules/xstrtol-tests (Files): Add tests/init.sh.
16834         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16835         Use Exit, not exit.
16836         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16837
16838         atexit-tests: convert to use init.sh
16839         * modules/atexit-tests (Files): Add tests/init.sh.
16840         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16841         Use Exit, not exit.
16842         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16843
16844         init.sh: fix typo
16845         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16846
16847         init.sh: make it easier for a test script to write to the tty, ...
16848         when using automake's parallel-tests mode.
16849         * tests/init.sh (stderr_fileno_): Define overridable variable.
16850         (warn_): New function, to use it.
16851         (fail_, skip_, framework_failure_): Use warn_.
16852
16853 2010-04-04  Bruno Haible  <bruno@clisp.org>
16854
16855         btowc: Avoid warning.
16856         * lib/btowc.c: Include <stdlib.h>.
16857         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16858
16859 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16860             Bruno Haible  <bruno@clisp.org>
16861
16862         wchar: Port to NetBSD 1.5.
16863         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16864         * lib/wctype.in.h (WEOF): Likewise.
16865
16866 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16867             Bruno Haible  <bruno@clisp.org>
16868
16869         Port extended stdio to NetBSD 1.5.
16870         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16871         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16872         older.
16873
16874 2010-04-04  Bruno Haible  <bruno@clisp.org>
16875
16876         string: Remove unused substitution.
16877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16878         HAVE_DECL_STRERROR.
16879         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16880
16881 2010-04-04  Bruno Haible  <bruno@clisp.org>
16882
16883         strtod: Avoid a possible C++ test error.
16884         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16885         set REPLACE_STRTOD.
16886
16887 2010-04-04  Bruno Haible  <bruno@clisp.org>
16888
16889         strerror: Update documentation.
16890         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16891
16892 2010-04-04  Bruno Haible  <bruno@clisp.org>
16893
16894         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16895         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16896         _GL_CXXALIAS_SYS_CAST.
16897
16898 2010-04-04  Bruno Haible  <bruno@clisp.org>
16899
16900         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16901         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16902         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16903         REPLACE_FREXPL to 1.
16904         * doc/posix-functions/frexpl.texi: Update documentation.
16905
16906 2010-04-04  Bruno Haible  <bruno@clisp.org>
16907
16908         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16909         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16910
16911 2010-04-04  Bruno Haible  <bruno@clisp.org>
16912
16913         Implement nanosleep for native Windows.
16914         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16915
16916 2010-04-04  Bruno Haible  <bruno@clisp.org>
16917
16918         math: Fix some C++ test errors on Solaris 8.
16919         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16920
16921 2010-04-04  Bruno Haible  <bruno@clisp.org>
16922
16923         math: Fix some C++ test errors on Cygwin.
16924         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16925         truncl): Provide declaration if the system does not have it.
16926         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16927         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16928         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16929         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16930         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16931         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16932         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16933         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16934         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16935         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16936         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16937         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16938         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16939         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16940         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16941         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16943         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16944         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16945         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16946         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16947         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16948
16949 2010-04-04  Bruno Haible  <bruno@clisp.org>
16950
16951         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16952         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16953         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16954         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16955         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16956         * m4/isinf.m4 (gl_ISINF): Likewise.
16957         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16958
16959 2010-04-04  Bruno Haible  <bruno@clisp.org>
16960
16961         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16962         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16963
16964 2010-04-04  Bruno Haible  <bruno@clisp.org>
16965
16966         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16967         * modules/tmpfile (configure.ac): Update.
16968
16969         tmpfile: Fix C++ test error on mingw.
16970         * lib/stdio.in.h (tmpfile): New declaration.
16971         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16972         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16973         * modules/tmpfile (Depends-on): Add stdio.
16974         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16975         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16976         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16977         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16978         REPLACE_TMPFILE.
16979         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16980
16981 2010-04-04  Bruno Haible  <bruno@clisp.org>
16982
16983         ioctl: Fix C++ test error on mingw.
16984         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16985         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16986         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16987
16988 2010-04-03  Bruno Haible  <bruno@clisp.org>
16989
16990         wcwidth: Fix C++ test error on mingw.
16991         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16993         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16994
16995 2010-04-03  Bruno Haible  <bruno@clisp.org>
16996
16997         nanosleep: Fix C++ test error on mingw.
16998         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16999         * lib/time.in.h (nanosleep): Use modern idiom.
17000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17001         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17002         REPLACE_NANOSLEEP to 1.
17003         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17004         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17005
17006 2010-04-03  Bruno Haible  <bruno@clisp.org>
17007
17008         strptime: Fix C++ test error on mingw.
17009         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17010         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17011         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17012         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17014         not REPLACE_STRPTIME.
17015         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17016         REPLACE_STRPTIME.
17017
17018 2010-04-03  Bruno Haible  <bruno@clisp.org>
17019
17020         timegm: Fix C++ test error on mingw.
17021         * lib/time.in.h (timegm): Use modern idiom.
17022         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17023         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17024         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17025         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17026
17027 2010-04-03  Bruno Haible  <bruno@clisp.org>
17028
17029         timegm: Assume declaration if function exists.
17030         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17031         if it exists. Don't clobber ac_cv_func_timegm.
17032
17033 2010-04-03  Bruno Haible  <bruno@clisp.org>
17034
17035         time_r: Fix C++ test error on mingw.
17036         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17037         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17038         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17040         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17041
17042 2010-04-03  Bruno Haible  <bruno@clisp.org>
17043
17044         time_r: Minor updates.
17045         * modules/time_r (Description): Mention the provided functions.
17046         * lib/time_r.c: Don't include <string.h>.
17047         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17048         * doc/posix-functions/localtime_r.texi: Likewise.
17049
17050 2010-04-03  Bruno Haible  <bruno@clisp.org>
17051
17052         time: Fix regression introduced on 2010-03-08.
17053         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17054         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17055
17056 2010-04-03  Jim Meyering  <meyering@redhat.com>
17057
17058         maint.mk: don't silently disable project-specific syntax-check rules
17059         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17060         that they need to convert their project-specific syntax-check rules
17061         to use the new _sc_search_regexp.
17062
17063 2010-04-03  Bruno Haible  <bruno@clisp.org>
17064
17065         fchdir: Fix regression introduced on 2010-03-08.
17066         * lib/unistd.in.h (fchdir): Fix declaration.
17067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17069         REPLACE_FCHDIR.
17070         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17071         REPLACE_FCHDIR.
17072
17073 2010-04-03  Bruno Haible  <bruno@clisp.org>
17074
17075         getpagesize: Fix C++ test error on mingw.
17076         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17077         system does not declare the function.
17078         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17079         declared.
17080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17081         HAVE_DECL_GETPAGESIZE.
17082         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17083
17084 2010-04-03  Bruno Haible  <bruno@clisp.org>
17085
17086         stdio: Make C++ tests work on mingw.
17087         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17088         does not declare the function.
17089
17090 2010-04-03  Bruno Haible  <bruno@clisp.org>
17091
17092         ftello: Fix C++ test error on mingw.
17093         * lib/stdio.in.h (ftello): Use modern idiom.
17094         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17095         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17096         is missing and that it needs to be replaced.
17097         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17099         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17100
17101 2010-04-03  Bruno Haible  <bruno@clisp.org>
17102
17103         fseeko: Fix C++ test error on mingw.
17104         * lib/stdio.in.h (fseeko): Use modern idiom.
17105         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17106         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17107         is missing and that it needs to be replaced.
17108         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17110         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17111
17112 2010-04-03  Bruno Haible  <bruno@clisp.org>
17113
17114         mkstemp: Fix C++ test error on mingw.
17115         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17117         function is missing and that it needs to be replaced.
17118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17119         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17120
17121 2010-04-03  Bruno Haible  <bruno@clisp.org>
17122
17123         stpncpy: Fix C++ test error on mingw.
17124         * lib/string.in.h (stpncpy): Use modern idiom.
17125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17126         function is missing and that it needs to be replaced.
17127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17128         REPLACE_STPNCPY.
17129         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17130
17131 2010-04-03  Bruno Haible  <bruno@clisp.org>
17132
17133         sys_stat: Fix C++ test error on mingw.
17134         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17135         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17136
17137 2010-04-03  Bruno Haible  <bruno@clisp.org>
17138
17139         pty: Update doc.
17140         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17141
17142 2010-04-03  Bruno Haible  <bruno@clisp.org>
17143
17144         unistd: Fix C++ test error on mingw.
17145         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17146
17147 2010-04-03  Bruno Haible  <bruno@clisp.org>
17148
17149         Update doc regarding mingw.
17150         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17151         * doc/glibc-functions/login_tty.texi: Likewise.
17152         * doc/glibc-functions/forkpty.texi: Likewise.
17153
17154 2010-04-03  Bruno Haible  <bruno@clisp.org>
17155
17156         stdlib: Avoid compilation failure of c-strtold on mingw.
17157         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17158
17159 2010-04-03  Bruno Haible  <bruno@clisp.org>
17160
17161         locale: Make C++ tests work on Cygwin and mingw.
17162         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17163         cannot provide the function.
17164         Reported by Simon Josefsson.
17165
17166 2010-04-03  Bruno Haible  <bruno@clisp.org>
17167
17168         localename: Port to MacOS X 10.6.
17169         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17170         memory layout of the locales in MacOS X 10.6 as well.
17171         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17172
17173 2010-04-02  Bruno Haible  <bruno@clisp.org>
17174
17175         gnulib-tool: Ensure that long-running tests are executed last.
17176         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17177         running tests after the one for the other tests.
17178
17179 2010-04-02  Bruno Haible  <bruno@clisp.org>
17180
17181         gnulib-tool: Ensure the tests in the main directory are executed first.
17182         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17183         start with the current directory.
17184
17185 2010-04-02  Bruno Haible  <bruno@clisp.org>
17186
17187         Tests for module 'havelib', moved here from GNU gettext.
17188         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17189         modifications.
17190         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17191         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17192         with modifications.
17193         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17194         modifications.
17195         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17196         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17197         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17198         with modifications.
17199         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17200         with modifications.
17201         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17202         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17203         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17204         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17205         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17206         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17207         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17208         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17209         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17210         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17211         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17212         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17213         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17214         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17215         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17216         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17217         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17218         with modifications.
17219         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17220         with modifications.
17221         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17222         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17223         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17224         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17225         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17226         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17227         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17228         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17229         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17230         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17231         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17232         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17233         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17234         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17235         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17236         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17237         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17238         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17239         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17240         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17241         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17242         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17243         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17244         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17245         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17246         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17247         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17248         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17249         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17250         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17251         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17252         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17253         * tests/havelib/rpathx/rpathx.c: New file, from
17254         gettext/autoconf-lib-link.
17255         * tests/havelib/rpathx/Makefile.am: New file, from
17256         gettext/autoconf-lib-link.
17257         * tests/havelib/rpathx/configure.ac: New file, from
17258         gettext/autoconf-lib-link with modifications.
17259         * tests/havelib/rpathy/rpathy.c: New file, from
17260         gettext/autoconf-lib-link.
17261         * tests/havelib/rpathy/Makefile.am: New file, from
17262         gettext/autoconf-lib-link.
17263         * tests/havelib/rpathy/configure.ac: New file, from
17264         gettext/autoconf-lib-link with modifications.
17265         * tests/havelib/rpathz/rpathz.c: New file, from
17266         gettext/autoconf-lib-link.
17267         * tests/havelib/rpathz/Makefile.am: New file, from
17268         gettext/autoconf-lib-link.
17269         * tests/havelib/rpathz/configure.ac: New file, from
17270         gettext/autoconf-lib-link with modifications.
17271         * tests/havelib/rpathlx/usex.c: New file, from
17272         gettext/autoconf-lib-link.
17273         * tests/havelib/rpathlx/Makefile.am: New file, from
17274         gettext/autoconf-lib-link.
17275         * tests/havelib/rpathlx/configure.ac: New file, from
17276         gettext/autoconf-lib-link with modifications.
17277         * tests/havelib/rpathly/usey.c: New file, from
17278         gettext/autoconf-lib-link.
17279         * tests/havelib/rpathly/Makefile.am: New file, from
17280         gettext/autoconf-lib-link.
17281         * tests/havelib/rpathly/configure.ac: New file, from
17282         gettext/autoconf-lib-link with modifications.
17283         * tests/havelib/rpathlz/usez.c: New file, from
17284         gettext/autoconf-lib-link.
17285         * tests/havelib/rpathlz/Makefile.am: New file, from
17286         gettext/autoconf-lib-link.
17287         * tests/havelib/rpathlz/configure.ac: New file, from
17288         gettext/autoconf-lib-link with modifications.
17289         * tests/havelib/rpathlyx/usey.c: New file, from
17290         gettext/autoconf-lib-link.
17291         * tests/havelib/rpathlyx/Makefile.am: New file, from
17292         gettext/autoconf-lib-link.
17293         * tests/havelib/rpathlyx/configure.ac: New file, from
17294         gettext/autoconf-lib-link with modifications.
17295         * tests/havelib/rpathlzyx/usez.c: New file, from
17296         gettext/autoconf-lib-link.
17297         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17298         gettext/autoconf-lib-link.
17299         * tests/havelib/rpathlzyx/configure.ac: New file, from
17300         gettext/autoconf-lib-link with modifications.
17301         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17302         with modifications.
17303
17304 2010-04-02  Bruno Haible  <bruno@clisp.org>
17305
17306         gnulib-tool: Create distributed built sources also for the tests.
17307         * gnulib-tool (func_create_testdir): Also generate distributed built
17308         sources in the tests directory.
17309
17310 2010-04-02  Bruno Haible  <bruno@clisp.org>
17311
17312         gnulib-tool: Obey user's environment variables.
17313         * gnulib-tool (func_create_testdir): When creating built sources,
17314         respect the environment variables for autoconf, automake, etc. given by
17315         the user.
17316
17317 2010-04-02  Bruno Haible  <bruno@clisp.org>
17318
17319         gnulib-tool: Provide the value of --m4-base to modules.
17320         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17321         of gl_m4_base.
17322
17323 2010-04-02  Eric Blake  <eblake@redhat.com>
17324
17325         maint.mk: fix some fallout
17326         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17327         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17328
17329 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17330
17331         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17332         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17333         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17334         (sc_cast_of_x_alloc_return_value): Likewise.
17335         (sc_cast_of_alloca_return_value): Likewise.
17336         (sc_space_tab): Likewise.
17337         (sc_prohibit_atoi_atof): Likewise.
17338         (sc_prohibit_magic_number_exit): Likewise.
17339         (sc_error_exit_success): Likewise.
17340         (sc_file_system): Likewise.
17341         (sc_prohibit_have_config_h): Likewise.
17342         (sc_require_config_h): Likewise.
17343         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17344         (sc_obsolete_symbols): Likewise.
17345         (sc_changelog): Likewise.
17346         (sc_program_name): Likewise.
17347         (sc_the_the): Likewise.
17348         (sc_trailing_blank): Likewise.
17349         (sc_two_space_separator_in_usage): Likewise.
17350         (sc_useless_cpp_parens): Likewise.
17351         (sc_GPL_version): Likewise.
17352         (sc_GFDL_version): Likewise.
17353         (sc_texinfo_acronym): Likewise.
17354         (sc_prohibit_cvs_keyword): Likewise.
17355         (sc_prohibit_stat_st_blocks): Likewise.
17356         (sc_prohibit_S_IS_definition): Likewise.
17357         (sc_redundant_const): Likewise.
17358         (sc_makefile_TAB_only_indentation): Likewise.
17359         (sc_m4_quote_check): Likewise.
17360         (sc_makefile_path_separator_check): Likewise.
17361         (sc_copyright_check): Likewise.
17362         (sc_Wundef_boolean): Likewise.
17363         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17364
17365         maint.mk: match 0 or more whitespace-before-function-call '('
17366         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17367         that have zero or two-and-more spaces between the function name
17368         and the open parenthesis.
17369         (sc_error_message_warn_fatal): Likewise.
17370         (sc_error_message_uppercase): Likewise.
17371         (sc_error_message_period): Likewise.
17372
17373 2010-03-31  Eric Blake  <eblake@redhat.com>
17374
17375         maint.mk: check for [ as well as test
17376         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17377         Based on a libvirt report by Matthias Bolte.
17378
17379         gnumakefile: don't squelch _version output
17380         * top/GNUmakefile (_version): Create one-shot dependency rather
17381         than using $(shell) when version must be regenerated.
17382         (_autoreconf): Run verbosely, by default.
17383
17384         sys_time: avoid compiler warnings
17385         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17386         unconditional, fixing regression from 2010-03-29.
17387         Reported by Simon Josefsson.
17388
17389 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17390
17391         maint.mk: s/_header_without_use/_sc_header_without_use/
17392         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17393         (sc_prohibit_assert_without_use): Use the new name.
17394         (sc_prohibit_close_stream_without_use): Likewise.
17395         (sc_prohibit_getopt_without_use): Likewise.
17396         (sc_prohibit_quotearg_without_use): Likewise.
17397         (sc_prohibit_quote_without_use): Likewise.
17398         (sc_prohibit_long_options_without_use): Likewise.
17399         (sc_prohibit_inttostr_without_use): Likewise.
17400         (sc_prohibit_ignore_value_without_use): Likewise.
17401         (sc_prohibit_error_without_use): Likewise.
17402         (sc_prohibit_xalloc_without_use): Likewise.
17403         (sc_prohibit_hash_without_use): Likewise.
17404         (sc_prohibit_hash_pjw_without_use): Likewise.
17405         (sc_prohibit_safe_read_without_use): Likewise.
17406         (sc_prohibit_argmatch_without_use): Likewise.
17407         (sc_prohibit_canonicalize_without_use): Likewise.
17408         (sc_prohibit_root_dev_ino_without_use): Likewise.
17409         (sc_prohibit_openat_without_use): Likewise.
17410         (sc_prohibit_c_ctype_without_use): Likewise.
17411         (sc_prohibit_signal_without_use): Likewise.
17412         (sc_prohibit_intprops_without_use): Likewise.
17413
17414 2010-03-30  Eric Blake  <eblake@redhat.com>
17415
17416         maint: improve module indicators
17417         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17418         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17419         columns, and avoid extra macro expansion.
17420
17421         fdopendir: work around FreeBSD bug
17422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17423         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17424         * modules/dirent (Makefile.am): Substitute it.
17425         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17426         declaration.
17427         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17428         fix.
17429         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17430
17431 2010-03-29  Bruno Haible  <bruno@clisp.org>
17432
17433         Emit #pragma system_header after the inclusion guard, not before.
17434         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17435         guard that spans the entire file, not before. This enables an
17436         optimization in GCC's preprocessor.
17437         * lib/ctype.in.h: Likewise.
17438         * lib/dirent.in.h: Likewise.
17439         * lib/errno.in.h: Likewise.
17440         * lib/float.in.h: Likewise.
17441         * lib/getopt.in.h: Likewise.
17442         * lib/iconv.in.h: Likewise.
17443         * lib/langinfo.in.h: Likewise.
17444         * lib/locale.in.h: Likewise.
17445         * lib/math.in.h: Likewise.
17446         * lib/netdb.in.h: Likewise.
17447         * lib/netinet_in.in.h: Likewise.
17448         * lib/pty.in.h: Likewise.
17449         * lib/sched.in.h: Likewise.
17450         * lib/se-selinux.in.h: Likewise.
17451         * lib/search.in.h: Likewise.
17452         * lib/spawn.in.h: Likewise.
17453         * lib/stdarg.in.h: Likewise.
17454         * lib/stdint.in.h: Likewise.
17455         * lib/string.in.h: Likewise.
17456         * lib/strings.in.h: Likewise.
17457         * lib/sys_file.in.h: Likewise.
17458         * lib/sys_ioctl.in.h: Likewise.
17459         * lib/sys_time.in.h: Likewise.
17460         * lib/sys_times.in.h: Likewise.
17461         * lib/sys_utsname.in.h: Likewise.
17462         * lib/sys_wait.in.h: Likewise.
17463         * lib/sysexits.in.h: Likewise.
17464         * lib/wctype.in.h: Likewise.
17465
17466 2010-03-28  James Youngman  <jay@gnu.org>
17467
17468         save-cwd: don't leak a file descriptor when the caller execs.
17469         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17470         saved file descriptor.
17471         * modules/save-cwd (Depends-on): Depend on cloexec.
17472
17473 2010-03-29  Bruno Haible  <bruno@clisp.org>
17474
17475         Remove vestiges of fts-lgpl module.
17476         * lib/fts_.h: Assume GNULIB_FTS is 1.
17477         * lib/fts.c: Likewise.
17478         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17479
17480 2010-03-28  Bruno Haible  <bruno@clisp.org>
17481
17482         Fix definition of tests witness macro.
17483         * gnulib-tool (func_import): Fix definition of witness macro.
17484
17485 2010-03-28  Bruno Haible  <bruno@clisp.org>
17486
17487         Fix ioctl's protoype on glibc systems.
17488         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17489         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17490         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17491         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17492         signature. If not, arrange to replace the ioctl function.
17493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17494         REPLACE_IOCTL.
17495         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17496         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17497         Reported by Ludovic Courtès <ludo@gnu.org>.
17498
17499 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17500
17501         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17502         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17503         made it so grep -r --include=GLOB* ... did not work.
17504
17505 2010-03-26  Jim Meyering  <meyering@redhat.com>
17506             Eric Blake  <eblake@redhat.com>
17507
17508         maint.mk: prohibit use of test's -o and -a operators
17509         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17510
17511 2010-03-28  Bruno Haible  <bruno@clisp.org>
17512
17513         Remove unused GNULIB_XYZ macro definitions.
17514         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17515         invocation.
17516
17517 2010-03-28  Bruno Haible  <bruno@clisp.org>
17518
17519         Mark privileged tests modules.
17520         * modules/idpriv-drop-tests (Status): New section.
17521         * modules/idpriv-droptemp-tests (Status): New section.
17522
17523 2010-03-28  Bruno Haible  <bruno@clisp.org>
17524
17525         Split C++ tests into separate tests modules.
17526         * modules/dirent-c++-tests: New file, extracted from
17527         modules/dirent-tests.
17528         * modules/dirent-tests: Depend on it.
17529         * modules/fcntl-h-c++-tests: New file, extracted from
17530         modules/fcntl-h-tests.
17531         * modules/fcntl-h-tests: Depend on it.
17532         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17533         * modules/glob-tests: Depend on it.
17534         * modules/iconv-h-c++-tests: New file, extracted from
17535         modules/iconv-h-tests.
17536         * modules/iconv-h-tests: Depend on it.
17537         * modules/langinfo-c++-tests: New file, extracted from
17538         modules/langinfo-tests.
17539         * modules/langinfo-tests: Depend on it.
17540         * modules/locale-c++-tests: New file, extracted from
17541         modules/locale-tests.
17542         * modules/locale-tests: Depend on it.
17543         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17544         * modules/math-tests: Depend on it.
17545         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17546         * modules/pty-tests: Depend on it.
17547         * modules/search-c++-tests: New file, extracted from
17548         modules/search-tests.
17549         * modules/search-tests: Depend on it.
17550         * modules/signal-c++-tests: New file, extracted from
17551         modules/signal-tests.
17552         * modules/signal-tests: Depend on it.
17553         * modules/spawn-c++-tests: New file, extracted from
17554         modules/spawn-tests.
17555         * modules/spawn-tests: Depend on it.
17556         * modules/stdio-c++-tests: New file, extracted from
17557         modules/stdio-tests.
17558         * modules/stdio-tests: Depend on it.
17559         * modules/stdlib-c++-tests: New file, extracted from
17560         modules/stdlib-tests.
17561         * modules/stdlib-tests: Depend on it.
17562         * modules/string-c++-tests: New file, extracted from
17563         modules/string-tests.
17564         * modules/string-tests: Depend on it.
17565         * modules/sys_ioctl-c++-tests: New file, extracted from
17566         modules/sys_ioctl-tests.
17567         * modules/sys_ioctl-tests: Depend on it.
17568         * modules/sys_select-c++-tests: New file, extracted from
17569         modules/sys_select-tests.
17570         * modules/sys_select-tests: Depend on it.
17571         * modules/sys_socket-c++-tests: New file, extracted from
17572         modules/sys_socket-tests.
17573         * modules/sys_socket-tests: Depend on it.
17574         * modules/sys_stat-c++-tests: New file, extracted from
17575         modules/sys_stat-tests.
17576         * modules/sys_stat-tests: Depend on it.
17577         * modules/sys_time-c++-tests: New file, extracted from
17578         modules/sys_time-tests.
17579         * modules/sys_time-tests: Depend on it.
17580         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17581         * modules/time-tests: Depend on it.
17582         * modules/unistd-c++-tests: New file, extracted from
17583         modules/unistd-tests.
17584         * modules/unistd-tests: Depend on it.
17585         * modules/wchar-c++-tests: New file, extracted from
17586         modules/wchar-tests.
17587         * modules/wchar-tests: Depend on it.
17588         * modules/wctype-c++-tests: New file, extracted from
17589         modules/wctype-tests.
17590         * modules/wctype-tests: Depend on it.
17591         Reported by Simon Josefsson.
17592
17593 2010-03-28  Bruno Haible  <bruno@clisp.org>
17594
17595         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17596         * gnulib-tool (func_exists_module): New function, extracted from
17597         func_verify_module.
17598         (func_verify_module): Use it.
17599         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17600         'foo' only if 'foo' exists.
17601         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17602         module.
17603
17604 2010-03-28  Bruno Haible  <bruno@clisp.org>
17605
17606         gnulib-tool: Add support for special categories of tests.
17607         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17608         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17609         (func_usage): Document them.
17610         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17611         inc_unportable_tests, inc_all_tests): New variables.
17612         (func_acceptable): Consider these variables.
17613         (func_modules_transitive_closure): Make it work when the 'Status' field
17614         consists of multiple words.
17615         (func_import): Store and restore the values of inc_cxx_tests,
17616         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17617         inc_all_tests in gnulib-comp.m4.
17618         (func_create_testdir): Set inc_all_tests to true.
17619         * doc/gnulib.texi (Extra tests modules): New section.
17620         Suggested by Jim Meyering.
17621
17622 2010-03-28  Bruno Haible  <bruno@clisp.org>
17623
17624         ansi-c++-opt: Allow turning off the C++ build by default.
17625         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17626         gl_CXX_CHOICE_DEFAULT_NO is defined.
17627         Requested by Eric Blake.
17628
17629 2010-03-28  Bruno Haible  <bruno@clisp.org>
17630
17631         unistd: Avoid #define replacements in C++ mode.
17632         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17633         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17634         setsockopt, shutdown, select): In C++, attach a warning to the function
17635         if possible, rather than #defining the symbol to a dysfunctional alias.
17636         Reported by John W. Eaton <jwe@gnu.org>.
17637
17638 2010-03-28  Bruno Haible  <bruno@clisp.org>
17639
17640         Fix link errors on mingw.
17641         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17642         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17643         $(LIBSOCKET).
17644         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17645         $(LIBSOCKET).
17646
17647 2010-03-28  Bruno Haible  <bruno@clisp.org>
17648             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17649
17650         lib-ignore: Determine different options for different compilers.
17651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17652         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17653         Add comments.
17654         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17655         * NEWS: Mention the change.
17656
17657 2010-03-27  Bruno Haible  <bruno@clisp.org>
17658
17659         Remove unused GNULIB_XYZ macro definitions.
17660         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17661         * modules/fseek (configure.ac): Likewise.
17662         * modules/ioctl (configure.ac): Likewise.
17663         * modules/open (configure.ac): Likewise.
17664         * modules/stdlib-safer (configure.ac): Likewise.
17665
17666 2010-03-27  Bruno Haible  <bruno@clisp.org>
17667
17668         Add a remark about certain modules.
17669         * modules/malloc (Comment): New section.
17670         * modules/realloc (Comment): Likewise.
17671         * modules/sigpipe (Comment): Likewise.
17672
17673 2010-03-27  Bruno Haible  <bruno@clisp.org>
17674
17675         Resolve conflict between the two kinds of module indicators.
17676         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17677         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17678         * modules/canonicalize (configure.ac): Invoke
17679         gl_MODULE_INDICATOR_FOR_TESTS.
17680         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17681         GNULIB_XYZ.
17682         * tests/test-dirent-c++.cc: Likewise.
17683         * tests/test-dirent-safer.c: Likewise.
17684         * tests/test-dup2.c: Likewise.
17685         * tests/test-fchdir.c: Likewise.
17686         * tests/test-fcntl-h-c++.cc: Likewise.
17687         * tests/test-getopt.c: Likewise.
17688         * tests/test-getopt.h: Likewise.
17689         * tests/test-langinfo-c++.cc: Likewise.
17690         * tests/test-locale-c++.cc: Likewise.
17691         * tests/test-math-c++.cc: Likewise.
17692         * tests/test-pty-c++.cc: Likewise.
17693         * tests/test-search-c++.cc: Likewise.
17694         * tests/test-signal-c++.cc: Likewise.
17695         * tests/test-spawn-c++.cc: Likewise.
17696         * tests/test-stdio-c++.cc: Likewise.
17697         * tests/test-stdlib-c++.cc: Likewise.
17698         * tests/test-string-c++.cc: Likewise.
17699         * tests/test-sys_ioctl-c++.cc: Likewise.
17700         * tests/test-sys_select-c++.cc: Likewise.
17701         * tests/test-sys_socket-c++.cc: Likewise.
17702         * tests/test-sys_stat-c++.cc: Likewise.
17703         * tests/test-sys_time-c++.cc: Likewise.
17704         * tests/test-time-c++.cc: Likewise.
17705         * tests/test-unistd-c++.cc: Likewise.
17706         * tests/test-wchar-c++.cc: Likewise.
17707         * tests/uninorm/test-u8-nfc.c: Likewise.
17708         * tests/uninorm/test-u8-nfd.c: Likewise.
17709         * tests/uninorm/test-u8-nfkc.c: Likewise.
17710         * tests/uninorm/test-u8-nfkd.c: Likewise.
17711         * tests/uninorm/test-u16-nfc.c: Likewise.
17712         * tests/uninorm/test-u16-nfd.c: Likewise.
17713         * tests/uninorm/test-u16-nfkc.c: Likewise.
17714         * tests/uninorm/test-u16-nfkd.c: Likewise.
17715         * tests/uninorm/test-u32-nfc.c: Likewise.
17716         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17717         * tests/uninorm/test-u32-nfd.c: Likewise.
17718         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17719         * tests/uninorm/test-u32-nfkc.c: Likewise.
17720         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17721         * tests/uninorm/test-u32-nfkd.c: Likewise.
17722         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17723         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17724
17725 2010-03-27  Bruno Haible  <bruno@clisp.org>
17726
17727         Distinguish two kinds of module indicators.
17728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17729         gl_MODULE_INDICATOR.
17730         (gl_MODULE_INDICATOR): New macro.
17731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17732         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17733         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17734         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17735         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17736         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17737         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17738         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17739         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17740         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17741         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17742         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17744         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17745         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17747         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17748         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17749         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17750         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17751         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17752         * modules/cloexec (configure.ac): Likewise.
17753         * modules/getopt-gnu (configure.ac): Likewise.
17754         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17755         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17756         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17757         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17758
17759 2010-03-27  Bruno Haible  <bruno@clisp.org>
17760
17761         New module description field 'Comment'.
17762         * gnulib-tool: New option --extract-comment.
17763         (func_usage): Document it.
17764         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17765         (func_get_comment): New function.
17766         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17767
17768 2010-03-27  Bruno Haible  <bruno@clisp.org>
17769
17770         Addendum to 2010-02-07 commit.
17771         * gnulib-tool (func_usage): Document --extract-applicability option.
17772
17773 2010-03-27  Bruno Haible  <bruno@clisp.org>
17774
17775         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17776         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17777         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17778         rather than link errors.
17779
17780 2010-03-27  Bruno Haible  <bruno@clisp.org>
17781
17782         Avoid side effects from tests-related modules on the compilation of lib.
17783         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17784         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17785         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17786         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17787         macro.
17788         (func_import): Define a witness macro. Assign it a value that depends
17789         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17790         tests-related modules.
17791         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17792         Reported by Jim Meyering.
17793
17794 2010-03-27  Bruno Haible  <bruno@clisp.org>
17795
17796         Factorize common .m4 code.
17797         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17798         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17799         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17800         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17801         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17802         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17803         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17804         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17805         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17806         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17807         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17808         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17809         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17810         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17811         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17812         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17813         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17814         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17816         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17819         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17821         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17822         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17823         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17824         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17825         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17826         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17827         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17828         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17829
17830 2010-03-27  Bruno Haible  <bruno@clisp.org>
17831
17832         Fix a compilation error on Cygwin with g++ >= 4.3.
17833         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17834         if it is undefined or if we alias it to chmod.
17835         (lstat): Don't warn about the use of this function if it is undefined
17836         or if we alias it to stat.
17837         Reported by Simon Josefsson.
17838
17839 2010-03-27  Bruno Haible  <bruno@clisp.org>
17840
17841         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17842         * modules/getlogin (configure.ac): Update.
17843
17844         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17845         * modules/getlogin_r (configure.ac): Update.
17846
17847         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17849         * modules/inet_ntop (configure.ac): Update.
17850
17851         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17852         * modules/inet_pton (configure.ac): Update.
17853
17854         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17855         * modules/mbslen (configure.ac): Update.
17856
17857         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17858         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17859         * modules/forkpty (configure.ac): Update.
17860         * modules/openpty (configure.ac): Update.
17861
17862 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17863
17864         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17865         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17866
17867 2010-03-25  Eric Blake  <eblake@redhat.com>
17868
17869         maint: use pragma consistently across replacement headers
17870         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17871         * lib/dirent.in.h (system_header): Likewise.
17872         * lib/errno.in.h (system_header): Likewise.
17873         * lib/float.in.h (system_header): Likewise.
17874         * lib/getopt.in.h (system_header): Likewise.
17875         * lib/iconv.in.h (system_header): Likewise.
17876         * lib/inttypes.in.h (system_header): Likewise.
17877         * lib/langinfo.in.h (system_header): Likewise.
17878         * lib/locale.in.h (system_header): Likewise.
17879         * lib/math.in.h (system_header): Likewise.
17880         * lib/netdb.in.h (system_header): Likewise.
17881         * lib/netinet_in.in.h (system_header): Likewise.
17882         * lib/pty.in.h (system_header): Likewise.
17883         * lib/sched.in.h (system_header): Likewise.
17884         * lib/se-selinux.in.h (system_header): Likewise.
17885         * lib/search.in.h (system_header): Likewise.
17886         * lib/spawn.in.h (system_header): Likewise.
17887         * lib/stdarg.in.h (system_header): Likewise.
17888         * lib/stdint.in.h (system_header): Likewise.
17889         * lib/string.in.h (system_header): Likewise.
17890         * lib/strings.in.h (system_header): Likewise.
17891         * lib/sys_file.in.h (system_header): Likewise.
17892         * lib/sys_ioctl.in.h (system_header): Likewise.
17893         * lib/sys_socket.in.h (system_header): Likewise.
17894         * lib/sys_times.in.h (system_header): Likewise.
17895         * lib/sys_utsname.in.h (system_header): Likewise.
17896         * lib/sys_wait.in.h (system_header): Likewise.
17897         * lib/sysexits.in.h (system_header): Likewise.
17898         * lib/unistd.in.h (system_header): Likewise.
17899         * lib/wctype.in.h (system_header): Likewise.
17900
17901         arpa/inet: fix mingw compilation warning
17902         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17903         Reported by Matthew Bolte.
17904
17905 2010-03-25  Bruno Haible  <bruno@clisp.org>
17906
17907         Avoid collision between gnulib wrapper and libintl wrapper.
17908         * lib/printf.c (printf): Don't define if a printf wrapper is already
17909         defined in intl/printf.c.
17910         Reported by Michel Boaventura <michel@michelboaventura.com>.
17911
17912 2010-03-25  Bruno Haible  <bruno@clisp.org>
17913
17914         Use ANSI C.
17915         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17916
17917 2010-03-25  Bruno Haible  <bruno@clisp.org>
17918
17919         Minor formatting changes.
17920         * lib/acosl.c: Insert space before function argument list.
17921         * lib/argz.c: Likewise.
17922         * lib/asinl.c: Likewise.
17923         * lib/expl.c: Likewise.
17924         * lib/gen-uni-tables.c: Likewise.
17925         * lib/gettext.h: Likewise.
17926         * lib/glthread/lock.h: Likewise.
17927         * lib/tanl.c: Likewise.
17928         * lib/uniname/uniname.c: Likewise.
17929         * tests/test-idpriv-drop.c: Likewise.
17930         * tests/test-idpriv-droptemp.c: Likewise.
17931         * tests/test-lock.c: Likewise.
17932         * tests/test-tls.c: Likewise.
17933         * lib/argp-help.c: Insert space before function-like macro argument
17934         list.
17935         * lib/memcmp.c: Likewise.
17936         * tests/test-base64.c: Likewise.
17937         * lib/localename.c: Insert space before sizeof's argument list.
17938         * lib/safe-alloc.h: Likewise.
17939         * lib/file-set.h: Insert space before macro argument list.
17940         * tests/test-argp.c: Likewise.
17941         * lib/argp-namefrob.h: Insert space before function parameter list.
17942         * lib/getaddrinfo.c: Likewise.
17943         * lib/netdb.in.h: Likewise.
17944         * lib/parse-duration.h: Likewise.
17945         * lib/parse-duration.c: Likewise.
17946         * lib/poll.c: Likewise.
17947         * lib/select.c: Likewise.
17948         * lib/trim.h: Likewise.
17949         * tests/test-usleep.c: Likewise.
17950         * lib/ldexpl.c: Insert space before function parameter list and before
17951         function argument list.
17952         * lib/logl.c: Likewise.
17953         * lib/sqrtl.c: Likewise.
17954         * lib/trim.c: Likewise.
17955         * lib/cosl.c: Use GNU style indentation. Insert space before function
17956         argument list.
17957         * lib/sinl.c: Likewise.
17958         * lib/tsearch.c: Insert space after 'for'.
17959         Reported by Jim Meyering.
17960
17961 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17962
17963         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17964         config header before grepping, as it's not present before
17965         autoreconf/configure are run.  Reported by Simon Josefsson.
17966
17967 2010-03-23  Bruno Haible  <bruno@clisp.org>
17968
17969         pt_chown: Make it work with automake < 1.11.
17970         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17971         Reported by Simon Josefsson.
17972
17973 2010-03-23  Bruno Haible  <bruno@clisp.org>
17974
17975         pt_chown: Don't depend on GPLed modules.
17976         * lib/pt_chown.c: Don't include idpriv.h.
17977         (main): Don't drop privileges.
17978         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17979         Reported by Simon Josefsson.
17980
17981 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17982
17983         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17984         suggestions from karl@freefriends.org (Karl Berry).
17985
17986 2010-03-22  Eric Blake  <eblake@redhat.com>
17987
17988         gethostname: further tweaks
17989         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17990         are overriding gethostname.
17991         Suggested by Bruno Haible.
17992
17993 2010-03-21  Bruno Haible  <bruno@clisp.org>
17994
17995         Fix comments.
17996         * lib/forkpty.c (rpl_forkpty): Fix comment.
17997         * lib/openpty.c (rpl_openpty): Likewise.
17998         Reported by Eric Blake.
17999
18000 2010-03-22  Eric Blake  <eblake@redhat.com>
18001
18002         gethostname: fix build on mingw
18003         * lib/unistd.in.h (includes): Work around fact that mingw
18004         <winsock2.h> re-includes <unistd.h>, by avoiding any
18005         redeclarations if we are being included by <winsock2.h>.
18006         Reported by Matthias Bolte.
18007
18008 2010-03-21  Bruno Haible  <bruno@clisp.org>
18009
18010         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18011         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18012         modifications.
18013         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18014         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18015         provide the replacement.
18016         * modules/forkpty (Depends-on): Add openpty, login_tty.
18017         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18018         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18019         * doc/glibc-functions/forkpty.texi: More supported platforms.
18020         * config/srclist.txt: Add forkpty.c (commented).
18021
18022 2010-03-21  Bruno Haible  <bruno@clisp.org>
18023
18024         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18025         (Makefile.am): Verify that PTY_LIB is defined.
18026
18027         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18028
18029 2010-03-21  Bruno Haible  <bruno@clisp.org>
18030
18031         Tests for module 'login_tty'.
18032         * modules/login_tty-tests: New file.
18033         * tests/test-login_tty.c: New file.
18034
18035         New module 'login_tty'.
18036         * lib/login_tty.c: New file.
18037         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18038         * modules/login_tty: New file.
18039         * doc/glibc-functions/login_tty.texi: Mention the new module.
18040
18041 2010-03-21  Bruno Haible  <bruno@clisp.org>
18042
18043         login_tty: Documentation.
18044         * doc/glibc-functions/login_tty.texi: New file.
18045         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18046
18047 2010-03-21  Bruno Haible  <bruno@clisp.org>
18048
18049         pty: Consistent macro naming.
18050         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18051         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18052         * modules/pty (configure.ac): Update.
18053
18054 2010-03-21  Bruno Haible  <bruno@clisp.org>
18055
18056         Tests for openpty: Make stricter.
18057         * tests/test-openpty.c (main): Add test of canonical processing and
18058         erase.
18059         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18060
18061         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18062         * lib/openpty.c (openpty): New replacement function.
18063         * lib/pty.in.h: Include <termios.h>.
18064         (openpty): Update declaration. Add comments.
18065         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18066         is not declared, arrange to provide the replacement. Check for _getpty
18067         and posix_openpt.
18068         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18069         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18070         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18071         * modules/pty-tests (test_pty_c___LDADD): New variable.
18072         * doc/glibc-functions/openpty.texi: More supported platforms.
18073
18074 2010-03-21  Bruno Haible  <bruno@clisp.org>
18075
18076         setenv: Tweaks.
18077         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18078         the test program.
18079         * doc/posix-functions/setenv.texi: Update platforms list.
18080
18081 2010-03-21  Bruno Haible  <bruno@clisp.org>
18082
18083         New module 'unlockpt'.
18084         * lib/unlockpt.c: New file, from glibc with modifications.
18085         * m4/unlockpt.m4: New file.
18086         * modules/unlockpt: New file.
18087         * lib/stdlib.in.h (unlockpt): New declaration.
18088         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18089         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18090         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18091         HAVE_UNLOCKPT.
18092         * doc/posix-functions/unlockpt.texi: Mention the new module.
18093         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18094         * config/srclist.txt: Add unlockpt.c (commented).
18095
18096 2010-03-21  Jim Meyering  <meyering@redhat.com>
18097
18098         maint.mk: prohibit inclusion of "intprops.h" without use
18099         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18100
18101 2010-03-21  Bruno Haible  <bruno@clisp.org>
18102
18103         New module 'grantpt'.
18104         * lib/grantpt.c: New file, from glibc with modifications.
18105         * m4/grantpt.m4: New file.
18106         * modules/grantpt: New file.
18107         * lib/stdlib.in.h (grantpt): New declaration.
18108         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18109         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18110         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18111         HAVE_GRANTPT.
18112         * doc/posix-functions/grantpt.texi: Mention the new module.
18113         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18114         * config/srclist.txt: Add grantpt.c (commented).
18115
18116 2010-03-21  Bruno Haible  <bruno@clisp.org>
18117
18118         New module 'pt_chown'.
18119         * lib/pt_chown.c: New file, from glibc with modifications.
18120         * lib/pty-private.h: New file, from glibc with modifications.
18121         * modules/pt_chown: New file.
18122         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18123
18124 2010-03-21  Bruno Haible  <bruno@clisp.org>
18125
18126         Tests for module 'ptsname'.
18127         * modules/ptsname-tests: New file.
18128         * tests/test-ptsname.c: New file.
18129
18130         New module 'ptsname'.
18131         * lib/ptsname.c: New file, from glibc with modifications.
18132         * m4/ptsname.m4: New file.
18133         * modules/ptsname: New file.
18134         * lib/stdlib.in.h (ptsname): New declaration.
18135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18136         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18137         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18138         HAVE_PTSNAME.
18139         * doc/posix-functions/ptsname.texi: Mention the new module.
18140         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18141         * config/srclist.txt: Add ptsname.c (commented).
18142
18143 2010-03-21  Bruno Haible  <bruno@clisp.org>
18144
18145         Tests for module 'ttyname_r'.
18146         * modules/ttyname_r-tests: New file.
18147         * tests/test-ttyname_r.c: New file.
18148
18149         New module 'ttyname_r'.
18150         * lib/ttyname_r.c: New file.
18151         * m4/ttyname_r.m4: New file.
18152         * modules/ttyname_r: New file.
18153         * lib/unistd.in.h (ttyname_r): New declaration.
18154         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18155         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18156         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18157         HAVE_TTYNAME_R.
18158         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18159         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18160
18161 2010-03-20  Bruno Haible  <bruno@clisp.org>
18162
18163         signal: Undefine macro definitions in C++ mode.
18164         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18165         sigfillset): Undefine macro definitions from the system header in C++
18166         mode.
18167         Reported by John W. Eaton <jwe@gnu.org>.
18168
18169 2010-03-20  Bruno Haible  <bruno@clisp.org>
18170
18171         Ensure no #include statements inside extern "C" { ... }.
18172         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18173         contain #include statements.
18174         * lib/time.in.h: Likewise.
18175
18176 2010-03-20  Bruno Haible  <bruno@clisp.org>
18177
18178         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18179         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18180         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18181         Reported by John W. Eaton <jwe@gnu.org>.
18182
18183 2010-03-20  Bruno Haible  <bruno@clisp.org>
18184
18185         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18186         Reported by Jim Meyering.
18187
18188 2010-03-20  Bruno Haible  <bruno@clisp.org>
18189
18190         pipe: Set errno upon failure.
18191         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18192         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18193         errno value in error message.
18194
18195 2010-03-20  Bruno Haible  <bruno@clisp.org>
18196             Jim Meyering  <meyering@redhat.com>
18197
18198         lchown: Avoid "unused variable" warning.
18199         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18200
18201 2010-03-20  Bruno Haible  <bruno@clisp.org>
18202
18203         Work around unlink() bug on MacOS X 10.5.6.
18204         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18205         attempting to unlink a parent directory.
18206         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18207         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18208         activate for the replacement function.
18209         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18210
18211 2010-03-20  Bruno Haible  <bruno@clisp.org>
18212
18213         Fix link errors on Solaris 8.
18214         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18215         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18216
18217 2010-03-19  Jim Meyering  <meyering@redhat.com>
18218
18219         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18220         The _LIBC implementation of build_range_exp correctly honors the
18221         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18222         However, the non-_LIBC implementation would ignore that syntax-bit
18223         flag and return REG_ERANGE unconditionally.
18224         This change makes it honor that flag.
18225         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18226         Make two pointer parameters "const".
18227         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18228         (parse_bracket_exp): Update caller.
18229
18230         regex.m4: correct the reversed range endpoint ([b-a]) test
18231         * m4/regex.m4: When requiring that [b-a] evoke failure,
18232         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18233         test pass once again for x86-based systems.
18234
18235 2010-03-19  Bruno Haible  <bruno@clisp.org>
18236
18237         scandir: Fix link error on Solaris 8.
18238         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18239         macros.
18240
18241 2010-03-19  Bruno Haible  <bruno@clisp.org>
18242
18243         getusershell: Fix documentation.
18244         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18245         module.
18246         * doc/glibc-functions/setusershell.texi: Likewise.
18247
18248         getusershell: Provide declaration, missing on Solaris 9.
18249         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18250         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18251         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18252         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18254         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18255         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18256         HAVE_GETUSERSHELL.
18257         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18258
18259 2010-03-19  Bruno Haible  <bruno@clisp.org>
18260
18261         wctype: Provide iswblank function.
18262         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18263         exists and is fine.
18264         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18265         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18266         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18267         * doc/posix-functions/iswblank.texi: Update.
18268
18269 2010-03-19  Bruno Haible  <bruno@clisp.org>
18270
18271         Tests of module 'pty' in C++ mode.
18272         * modules/pty-tests: New file.
18273         * tests/test-pty-c++.cc: New file.
18274         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18275
18276 2010-03-19  Eric Blake  <eblake@redhat.com>
18277
18278         logb: fix documentation
18279         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18280         1.5 declaration bug.
18281
18282         forkpty, openpty: prefer glibc's const-safe prototype
18283         * lib/forkpty.c (rpl_forkpty): New file.
18284         * lib/openpty.c (rpl_openpty): Likewise.
18285         * modules/forkpty (Files): Distribute it.
18286         * modules/openpty (Files): Likewise.
18287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18288         check...
18289         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18290         replacement for for non-const BSD signature.
18291         * modules/pty (Makefile.am): Substitute witnesses.
18292         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18293         * tests/test-forkpty.c: Update signature check.
18294         * tests/test-openpty.c: Likewise.
18295         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18296         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18297
18298         forkpty, openpty: split functions into new modules
18299         * modules/pty (Makefile.am): Substitute new witnesses.
18300         (Libraries): Move library detection...
18301         * modules/forkpty: ...into new module.
18302         * modules/openpty: Another new module.
18303         * modules/pty-tests: Rename and split...
18304         * modules/forkpty-tests: ...to this...
18305         * modules/openpty-tests: ...and this.
18306         * tests/test-pty.c: Rename and split...
18307         * tests/test-forkpty.c: ...to this...
18308         * tests/test-openpty.c: ...and this.
18309         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18310         (gl_PTY): Split library searching...
18311         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18312         (gl_FORKPTY, gl_OPENPTY): New macros.
18313         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18314         * NEWS: Mention the split.
18315         * MODULES.html.sh (Misc): Document the modules.
18316         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18317         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18318
18319         pty: improve replacement header
18320         * lib/pty.in.h: New file.
18321         * modules/pty (Files): Ship it.
18322         (Makefile.am): Always build replacement.
18323         * m4/pty.m4: Rename...
18324         * m4/pty_h.m4: ...to this.
18325         (gl_PTY): Modernize setting of witness macros; update check of
18326         forkpty to take proper advantage of cache.
18327         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18328
18329         getopt: avoid compiler warning
18330         * lib/getopt.c (attribute_hidden): Remove unused macro.
18331
18332 2010-03-18  Bruno Haible  <bruno@clisp.org>
18333
18334         Fix link errors on Solaris 8.
18335         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18336         * modules/search-tests (test_search_c___LDADD): Likewise.
18337         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18338         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18339         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18340         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18341         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18342         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18343         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18344
18345 2010-03-18  Bruno Haible  <bruno@clisp.org>
18346
18347         Fix bug introduced on 2010-03-14.
18348         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18349         (gl_SPAWN_H): Require it.
18350         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18351         Reported by Simon Josefsson.
18352
18353 2010-03-18  Bruno Haible  <bruno@clisp.org>
18354
18355         Fix typo introduced on 2009-12-31.
18356         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18357         posix_spawn_file_actions_adddup2.
18358
18359 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18360         and Eric Blake  <eblake@redhat.com>
18361
18362         test-vc-list-files-git: make more robust
18363         * tests/test-vc-list-files-git.sh: Unset problematic environment
18364         variables.  Chain commands together.
18365
18366 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18367
18368         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18369         `AC_CHECK_DECL' invocation.
18370
18371 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18372
18373         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18374         appears before executable statements. Suggested by Petr Sumbera
18375         <Petr.Sumbera@Sun.COM>.
18376
18377 2010-03-14  Bruno Haible  <bruno@clisp.org>
18378
18379         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18380         portability problems. Instead use a simpler test.
18381         (main): Check that invalid arguments are rejected only on Linux.
18382
18383 2010-03-14  Bruno Haible  <bruno@clisp.org>
18384
18385         Fix bug introduced on 2009-12-31.
18386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18387         gl_PREREQ_SYS_H_WINSOCK2 always.
18388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18389         SYS_SOCKET_H variable.
18390         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18391         Update comments.
18392         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18393         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18395         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18396         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18397
18398 2010-03-14  Bruno Haible  <bruno@clisp.org>
18399
18400         Fix values returned by sinl, cosl.
18401         * lib/trigl.h: Add specification comments.
18402         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18403         that combines the values from the precomputed table with the values of
18404         the Chebyshev polynomials.
18405
18406 2010-03-14  Bruno Haible  <bruno@clisp.org>
18407
18408         Fix compilation error when modules 'posix_spawn[p]' are not used.
18409         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18410         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18411
18412 2010-03-14  Bruno Haible  <bruno@clisp.org>
18413
18414         Fix compilation error on mingw when module 'time_r' is not used.
18415         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18416         is 1.
18417         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18418         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18419         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18420         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18421
18422 2010-03-14  Bruno Haible  <bruno@clisp.org>
18423
18424         Fix compilation error with Sun C.
18425         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18426         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18427         instead of GCC specific ULONG_LONG_MAX.
18428         * lib/xstrtoll.c: Likewise.
18429         * lib/xstrtoull.c: Likewise.
18430
18431 2010-03-13  Bruno Haible  <bruno@clisp.org>
18432
18433         Allow the user to disable C++ code and tests.
18434         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18435         (gl_PROG_ANSI_CXX): Require it.
18436
18437 2010-03-13  Bruno Haible  <bruno@clisp.org>
18438
18439         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18440         cases.
18441
18442 2010-03-13  Bruno Haible  <bruno@clisp.org>
18443
18444         Test that gnulib does not break the standard C++ headers.
18445         * tests/test-locale-c++2.cc: New file.
18446         * modules/locale-tests (Files): Add it.
18447         (Makefile.am): Compile it for test-locale-c++.
18448         * tests/test-math-c++2.cc: New file.
18449         * modules/math-tests (Files): Add it.
18450         (Makefile.am): Compile it for test-math-c++.
18451         * tests/test-signal-c++2.cc: New file.
18452         * modules/signal-tests (Files): Add it.
18453         (Makefile.am): Compile it for test-signal-c++.
18454         * tests/test-stdio-c++2.cc: New file.
18455         * modules/stdio-tests (Files): Add it.
18456         (Makefile.am): Compile it for test-stdio-c++.
18457         * tests/test-stdlib-c++2.cc: New file.
18458         * modules/stdlib-tests (Files): Add it.
18459         (Makefile.am): Compile it for test-stdlib-c++.
18460         * tests/test-string-c++2.cc: New file.
18461         * modules/string-tests (Files): Add it.
18462         (Makefile.am): Compile it for test-string-c++.
18463         * tests/test-time-c++2.cc: New file.
18464         * modules/time-tests (Files): Add it.
18465         (Makefile.am): Compile it for test-time-c++.
18466         Reported by John W. Eaton <jwe@gnu.org>.
18467
18468 2010-03-13  Bruno Haible  <bruno@clisp.org>
18469
18470         * gnulib-tool (func_usage): Clarify which options are available for
18471         --create-testdir and --create-megatestdir.
18472
18473 2010-03-13  Bruno Haible  <bruno@clisp.org>
18474
18475         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18476         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18477         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18478         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18479         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18480         when appropriate.
18481         Reported by Jim Meyering.
18482
18483 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18484
18485         * gnulib-tool (func_import): Explain origin of code.
18486
18487 2010-03-12  Bruno Haible  <bruno@clisp.org>
18488
18489         Fix problem with automake's definition of CXXLINK.
18490         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18491         Reported by Simon Josefsson and Ludovic Courtès.
18492
18493 2010-03-12  Bruno Haible  <bruno@clisp.org>
18494
18495         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18496         stable releases.
18497
18498 2010-03-11  Bruno Haible  <bruno@clisp.org>
18499
18500         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18501         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18502         whether the system provides one variant or multiple variants of the
18503         function.
18504         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18505         C++ compilers.
18506         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18507         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18508         Reported by Jim Meyering.
18509
18510 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18511
18512         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18513
18514 2010-03-08  Bruno Haible  <bruno@clisp.org>
18515
18516         gnulib-tool: Add support for --libtool in --create-testdir.
18517         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18518         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18519
18520 2010-03-08  Eric Blake  <eblake@redhat.com>
18521
18522         gnulib-tool.texi: mention possibility of git submodule
18523         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18524         submodules.
18525         * doc/.gitignore: Ignore another generated file.
18526
18527 2010-03-08  Karl Berry  <karl@gnu.org>
18528
18529         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18530         of committing gnulib files while skipping others.
18531
18532 2010-03-07  Bruno Haible  <bruno@clisp.org>
18533
18534         Tests of module 'wctype' in C++ mode.
18535         * tests/test-wctype-c++.cc: New file.
18536         * modules/wctype-tests (Files): Add it and tests/signature.h.
18537         (Depends-on): Add ansi-c++-opt.
18538         (Makefile.am): Arrange to compile and run test-wctype-c++.
18539
18540         Tests of module 'wchar' in C++ mode.
18541         * tests/test-wchar-c++.cc: New file.
18542         * modules/wchar-tests (Files): Add it and tests/signature.h.
18543         (Depends-on): Add ansi-c++-opt.
18544         (Makefile.am): Arrange to compile and run test-wchar-c++.
18545         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18546         gl_MODULE_INDICATOR.
18547
18548         Tests of module 'unistd' in C++ mode.
18549         * tests/test-unistd-c++.cc: New file.
18550         * modules/unistd-tests (Files): Add it and tests/signature.h.
18551         (Depends-on): Add ansi-c++-opt.
18552         (Makefile.am): Arrange to compile and run test-unistd-c++.
18553         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18554         gl_MODULE_INDICATOR.
18555
18556         Tests of module 'time' in C++ mode.
18557         * tests/test-time-c++.cc: New file.
18558         * modules/time-tests (Files): Add it and tests/signature.h.
18559         (Depends-on): Add ansi-c++-opt.
18560         (Makefile.am): Arrange to compile and run test-time-c++.
18561         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18562
18563         Tests of module 'sys_time' in C++ mode.
18564         * tests/test-sys_time-c++.cc: New file.
18565         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18566         (Depends-on): Add ansi-c++-opt.
18567         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18568         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18569         gl_MODULE_INDICATOR.
18570
18571         Tests of module 'sys_stat' in C++ mode.
18572         * tests/test-sys_stat-c++.cc: New file.
18573         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18574         (Depends-on): Add ansi-c++-opt.
18575         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18576         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18577         gl_MODULE_INDICATOR.
18578
18579         Tests of module 'sys_socket' in C++ mode.
18580         * tests/test-sys_socket-c++.cc: New file.
18581         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18582         (Depends-on): Add ansi-c++-opt.
18583         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18584         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18585         gl_MODULE_INDICATOR.
18586
18587         Tests of module 'sys_select' in C++ mode.
18588         * tests/test-sys_select-c++.cc: New file.
18589         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18590         (Depends-on): Add ansi-c++-opt.
18591         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18593         gl_MODULE_INDICATOR.
18594
18595         Tests of module 'sys_ioctl' in C++ mode.
18596         * tests/test-sys_ioctl-c++.cc: New file.
18597         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18598         (Depends-on): Add ansi-c++-opt.
18599         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18600         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18601         gl_MODULE_INDICATOR.
18602
18603         Tests of module 'string' in C++ mode.
18604         * tests/test-string-c++.cc: New file.
18605         * modules/string-tests (Files): Add it and tests/signature.h.
18606         (Depends-on): Add ansi-c++-opt.
18607         (Makefile.am): Arrange to compile and run test-string-c++.
18608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18609         gl_MODULE_INDICATOR.
18610
18611         Tests of module 'stdlib' in C++ mode.
18612         * tests/test-stdlib-c++.cc: New file.
18613         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18614         (Depends-on): Add ansi-c++-opt.
18615         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18616         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18617         gl_MODULE_INDICATOR.
18618
18619         Tests of module 'stdio' in C++ mode.
18620         * tests/test-stdio-c++.cc: New file.
18621         * modules/stdio-tests (Files): Add it and tests/signature.h.
18622         (Depends-on): Add ansi-c++-opt.
18623         (Makefile.am): Arrange to compile and run test-stdio-c++.
18624         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18625         gl_MODULE_INDICATOR.
18626
18627         Tests of module 'spawn' in C++ mode.
18628         * tests/test-spawn-c++.cc: New file.
18629         * modules/spawn-tests (Files): Add it and tests/signature.h.
18630         (Depends-on): Add ansi-c++-opt.
18631         (Makefile.am): Arrange to compile and run test-spawn-c++.
18632         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18633         gl_MODULE_INDICATOR.
18634
18635         Tests of module 'signal' in C++ mode.
18636         * tests/test-signal-c++.cc: New file.
18637         * modules/signal-tests (Files): Add it and tests/signature.h.
18638         (Depends-on): Add ansi-c++-opt.
18639         (Makefile.am): Arrange to compile and run test-signal-c++.
18640         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18641         gl_MODULE_INDICATOR.
18642
18643         Tests of module 'search' in C++ mode.
18644         * tests/test-search-c++.cc: New file.
18645         * modules/search-tests (Files): Add it and tests/signature.h.
18646         (Depends-on): Add ansi-c++-opt.
18647         (Makefile.am): Arrange to compile and run test-search-c++.
18648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18649         gl_MODULE_INDICATOR.
18650
18651         Tests of module 'math' in C++ mode.
18652         * tests/test-math-c++.cc: New file.
18653         * modules/math-tests (Files): Add it and tests/signature.h.
18654         (Depends-on): Add ansi-c++-opt.
18655         (Makefile.am): Arrange to compile and run test-math-c++.
18656         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18657
18658         Tests of module 'locale' in C++ mode.
18659         * tests/test-locale-c++.cc: New file.
18660         * modules/locale-tests (Files): Add it and tests/signature.h.
18661         (Depends-on): Add ansi-c++-opt.
18662         (Makefile.am): Arrange to compile and run test-locale-c++.
18663         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18664         gl_MODULE_INDICATOR.
18665
18666         Tests of module 'langinfo' in C++ mode.
18667         * tests/test-langinfo-c++.cc: New file.
18668         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18669         (Depends-on): Add ansi-c++-opt.
18670         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18671         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18672         gl_MODULE_INDICATOR.
18673
18674         Tests of module 'iconv-h' in C++ mode.
18675         * tests/test-iconv-h-c++.cc: New file.
18676         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18677         (Depends-on): Add ansi-c++-opt.
18678         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18679
18680         Tests of module 'glob' in C++ mode.
18681         * tests/test-glob-c++.cc: New file.
18682         * modules/glob-tests (Files): Add it.
18683         (Depends-on): Add ansi-c++-opt.
18684         (Makefile.am): Arrange to compile and run test-glob-c++.
18685
18686         Tests of module 'fcntl-h' in C++ mode.
18687         * tests/test-fcntl-h-c++.cc: New file.
18688         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18689         (Depends-on): Add ansi-c++-opt.
18690         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18691         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18692         gl_MODULE_INDICATOR.
18693
18694         Tests of module 'dirent' in C++ mode.
18695         * tests/test-dirent-c++.cc: New file.
18696         * modules/dirent-tests (Files): Add it and tests/signature.h.
18697         (Depends-on): Add ansi-c++-opt.
18698         (Makefile.am): Arrange to compile and run test-dirent-c++.
18699         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18700         gl_MODULE_INDICATOR.
18701
18702         New module 'ansi-c++-opt'.
18703         * modules/ansi-c++-opt: New file.
18704         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18705
18706         Document C++ namespace mode.
18707         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18708
18709         wctype: Avoid #define replacements in C++ mode.
18710         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18711         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18712         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18713         In C++, define a namespaced alias symbol.
18714         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18715         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18716         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18717         rule.
18718
18719         wchar: Avoid #define replacements in C++ mode.
18720         * lib/wchar.in.h: Include c++defs.h.
18721         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18722         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18723         symbol.
18724         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18725         * modules/wchar (Depends-on): Add c++defs.
18726         (Makefile.am): Update wchar.h rule.
18727
18728         unistd: Avoid #define replacements in C++ mode.
18729         * lib/unistd.in.h: Include c++defs.h.
18730         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18731         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18732         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18733         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18734         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18735         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18736         symbol.
18737         (environ): Update.
18738         * modules/unistd (Depends-on): Add c++defs.
18739         (Makefile.am): Update unistd.h rule.
18740
18741         time: Avoid #define replacements in C++ mode.
18742         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18743         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18744         define a namespaced alias symbol.
18745         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18746         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18747         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18748         * modules/time (Depends-on): Add c++defs, warn-on-use.
18749         (Makefile.am): Update time.h rule.
18750         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18751         * modules/nanosleep (configure.ac): Likewise.
18752         * modules/strptime (configure.ac): Likewise.
18753         * modules/timegm (configure.ac): Likewise.
18754
18755         sys_time: Avoid #define replacements in C++ mode.
18756         * lib/sys_time.in.h: Include c++defs.h.
18757         (gettimeofday): In C++, define a namespaced alias symbol.
18758         * modules/sys_time (Depends-on): Add c++defs.
18759         (Makefile.am): Update sys/time.h rule.
18760
18761         sys_stat: Avoid #define replacements in C++ mode.
18762         * lib/sys_stat.in.h: Include c++defs.h.
18763         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18764         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18765         namespaced alias symbol.
18766         In C++, define a namespaced alias symbol.
18767         * modules/sys_stat (Depends-on): Add c++defs.
18768         (Makefile.am): Update sys/stat.h rule.
18769
18770         sys_socket: Avoid #define replacements in C++ mode.
18771         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18772         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18773         definitions also when the system has a <sys/socket.h>.
18774         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18775         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18776         In C++, define a namespaced alias symbol.
18777         * modules/sys_socket (Depends-on): Add c++defs.
18778         (Makefile.am): Update sys/socket.h rule.
18779
18780         sys_select: Avoid #define replacements in C++ mode.
18781         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18782         definitions also when the system has a <sys/select.h>.
18783         (select): In C++, define a namespaced alias symbol.
18784         * modules/sys_select (Depends-on): Add c++defs.
18785         (Makefile.am): Update sys/select.h rule.
18786
18787         sys_ioctl: Avoid #define replacements in C++ mode.
18788         * lib/sys_ioctl.in.h: Include c++defs.h.
18789         (ioctl): In C++, define a namespaced alias symbol.
18790         * modules/sys_ioctl (Depends-on): Add c++defs.
18791         (Makefile.am): Update sys/ioctl.h rule.
18792
18793         string: Avoid #define replacements in C++ mode.
18794         * lib/string.in.h: Include c++defs.h.
18795         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18796         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18797         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18798         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18799         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18800         * modules/string (Depends-on): Add c++defs.
18801         (Makefile.am): Update string.h rule.
18802
18803         stdlib: Avoid #define replacements in C++ mode.
18804         * lib/stdlib.in.h: Include c++defs.h.
18805         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18806         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18807         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18808         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18809         symbol.
18810         * modules/stdlib (Depends-on): Add c++defs.
18811         (Makefile.am): Update stdlib.h rule.
18812
18813         stdio: Avoid #define replacements in C++ mode.
18814         * lib/stdio.in.h: Include c++defs.h.
18815         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18816         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18817         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18818         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18819         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18820         namespaced alias symbol.
18821         * modules/stdio (Depends-on): Add c++defs.
18822         (Makefile.am): Update stdio.h rule.
18823
18824         spawn: Avoid #define replacements in C++ mode.
18825         * lib/spawn.in.h: Include c++defs.h.
18826         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18827         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18828         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18829         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18830         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18831         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18832         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18833         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18834         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18835         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18836         In C++, define a namespaced alias symbol.
18837         * modules/spawn (Depends-on): Add c++defs.
18838         (Makefile.am): Update spawn.h rule.
18839
18840         signal: Avoid #define replacements in C++ mode.
18841         * lib/signal.in.h: Include c++defs.h.
18842         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18843         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18844         namespaced alias symbol.
18845         * modules/signal (Depends-on): Add c++defs.
18846         (Makefile.am): Update signal.h rule.
18847
18848         search: Avoid #define replacements in C++ mode.
18849         * lib/search.in.h: Include c++defs.h.
18850         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18851         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18852         symbol.
18853         * modules/search (Depends-on): Add c++defs.
18854         (Makefile.am): Update search.h rule.
18855
18856         math: Avoid #define replacements in C++ mode.
18857         * lib/math.in.h: Include c++defs.h.
18858         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18859         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18860         trunc, truncl): In C++, define a namespaced alias symbol.
18861         * modules/math (Depends-on): Add c++defs.
18862         (Makefile.am): Update math.h rule.
18863
18864         locale: Avoid #define replacements in C++ mode.
18865         * lib/locale.in.h: Include c++defs.h.
18866         (duplocale): In C++, define a namespaced alias symbol.
18867         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18869         * modules/locale (Depends-on): Add c++defs.
18870         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18871
18872         langinfo: Avoid #define replacements in C++ mode.
18873         * lib/langinfo.in.h: Include c++defs.h.
18874         (nl_langinfo): In C++, define a namespaced alias symbol.
18875         * modules/langinfo (Depends-on): Add c++defs.
18876         (Makefile.am): Update langinfo.h rule.
18877
18878         iconv-h: Avoid #define replacements in C++ mode.
18879         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18880         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18881         symbol.
18882         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18883         whenever iconv is present.
18884         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18885         (Makefile.am): Update iconv.h rule.
18886
18887         glob: Avoid #define replacements in C++ mode.
18888         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18889         (_gl_glob_errfunc_fn): New type.
18890         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18891         symbol.
18892         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18893         (Makefile.am): Update glob.h rule.
18894
18895         fcntl-h: Avoid #define replacements in C++ mode.
18896         * lib/fcntl.in.h: Include c++defs.h.
18897         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18898         * modules/fcntl-h (Depends-on): Add c++defs.
18899         (Makefile.am): Update fcntl.h rule.
18900
18901         dirent: Avoid #define replacements in C++ mode.
18902         * lib/dirent.in.h: Include c++defs.h.
18903         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18904         namespaced alias symbol.
18905         (dirfd): Update declaration.
18906         * modules/dirent (Depends-on): Add c++defs.
18907         (Makefile.am): Update dirent.h rule.
18908
18909         ctype: Make it usable in C++ code.
18910         * lib/ctype.in.h: Include c++defs.h.
18911         (isblank): Declare as extern "C".
18912         * modules/ctype (Depends-on): Add c++defs.
18913         (Makefile.am): Update ctype.h rule.
18914
18915         New module 'c++defs'.
18916         * modules/c++defs: New file.
18917         * build-aux/c++defs.h: New file.
18918         Reported by John W. Eaton <jwe@gnu.org>.
18919
18920 2010-03-07  Bruno Haible  <bruno@clisp.org>
18921
18922         logb: Provide missing declaration for Cygwin.
18923         * lib/math.in.h (logb): New declaration.
18924         * m4/logb.m4: New file.
18925         * modules/logb (Files): Add m4/logb.m4.
18926         (Depends-on): Add math.
18927         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18928         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18930         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18931         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18932
18933 2010-03-07  Bruno Haible  <bruno@clisp.org>
18934
18935         Fix test-cond link error.
18936         * tests/test-cond.c: Include <stdio.h>.
18937
18938 2010-03-07  Bruno Haible  <bruno@clisp.org>
18939
18940         Fix test-dirent-safer link error.
18941         * modules/dirent-safer-tests (Makefile.am): Define
18942         test_dirent_safer_LDADD.
18943
18944 2010-03-07  Bruno Haible  <bruno@clisp.org>
18945
18946         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18947         among default module list.
18948
18949 2010-03-07  Bruno Haible  <bruno@clisp.org>
18950
18951         Fix link error on platforms with GNU libiconv.
18952         * modules/unistr/u8-strcoll-tests (Makefile): Define
18953         test_u8_strcoll_LDADD.
18954         * modules/unistr/u16-strcoll-tests (Makefile): Define
18955         test_u16_strcoll_LDADD.
18956         * modules/unistr/u32-strcoll-tests (Makefile): Define
18957         test_u32_strcoll_LDADD.
18958
18959 2010-03-07  Bruno Haible  <bruno@clisp.org>
18960
18961         Use POSIX declarations for socket functions.
18962         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18963         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18964         rpl_sendto): Change declaration to match POSIX.
18965         * lib/connect.c (rpl_connect): Likewise.
18966         * lib/accept.c (rpl_accept): Likewise.
18967         * lib/bind.c (rpl_bind): Likewise.
18968         * lib/getpeername.c (rpl_getpeername): Likewise.
18969         * lib/getsockname.c (rpl_getsockname): Likewise.
18970         * lib/recv.c (rpl_recv): Likewise.
18971         * lib/send.c (rpl_send): Likewise.
18972         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18973         * lib/sendto.c (rpl_sendto): Likewise.
18974
18975 2010-03-06  Bruno Haible  <bruno@clisp.org>
18976
18977         Clarify access, euidaccess, faccessat.
18978         * doc/posix-functions/faccessat.texi: Mention security problem under
18979         "Other problems", not "Portability problems".
18980         * doc/posix-functions/access.texi: Likewise. Mention a related security
18981         problem.
18982         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18983         * lib/euidaccess.c: Add comments about platforms.
18984         * lib/unistd.in.h (access, euidaccess): Add warnings.
18985
18986 2010-03-07  Bruno Haible  <bruno@clisp.org>
18987
18988         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18989         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18990         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18991         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18992         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18993         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18994         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18995         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18996         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18998         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18999         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19000         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19001         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19002         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19003         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19004         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19005         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19006         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19007         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19008         Likewise.
19009         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19010         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19011         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19012         Likewise.
19013         * tests/test-spawn.c (main): Make it work when
19014         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19015
19016 2010-03-07  Bruno Haible  <bruno@clisp.org>
19017
19018         Fix incorrect Makefile.am generation in German locale.
19019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19020         Execute sed command with character range in C locale.
19021
19022 2010-03-06  Bruno Haible  <bruno@clisp.org>
19023
19024         Tests for module 'iconv-h'.
19025         * modules/iconv-h-tests: New file.
19026         * tests/test-iconv-h.c: New file.
19027
19028         New module 'iconv-h'.
19029         * modules/iconv-h: New file.
19030         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19031         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19032         (configure.ac): Remove gl_ICONV_H.
19033         (Makefile.am): Remove rule for iconv.h.
19034
19035 2010-03-06  Bruno Haible  <bruno@clisp.org>
19036
19037         More consistent naming of *.m4 files.
19038         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19039         * modules/wctype (Files): Update.
19040
19041         More consistent naming of *.m4 files.
19042         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19043         * modules/wchar (Files): Update.
19044
19045 2010-03-06  Jim Meyering  <meyering@redhat.com>
19046
19047         euidaccess: relax license to LGPLv2+
19048         * modules/euidaccess (License): Relax to LGPLv2+.
19049
19050 2010-03-06  Bruno Haible  <bruno@clisp.org>
19051
19052         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19053         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19054         (Makefile.am): Augment lib_SOURCES instead.
19055
19056 2010-03-04  Jim Meyering  <meyering@redhat.com>
19057
19058         utime: remove obsolete module
19059         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19060         unnecessary for years, and has been marked as obsolete for 10 months.
19061         * modules/utime: Remove file.
19062         * lib/utime.c: Remove file.
19063         * m4/utime.m4: Remove file.
19064         * m4/utimes-null.m4: Remove file.
19065         * doc/posix-functions/utime.texi (utime): Remove reference to
19066         the module.  Move the sole "fixed by gnulib" item into the
19067         "problems not fixed by Gnulib" list.
19068         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19069
19070 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19071
19072         * modules/exit (License): Relax license to LGPLv2+.
19073         (Status): Mark as obsolete.
19074         * NEWS: Mention deprecated 'exit' module.
19075         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19076         of now obsolete 'exit'.
19077
19078 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19079
19080         fts-lgpl: remove unused module
19081         * modules/fts-lgpl: Remove.
19082         * MODULES.html.sh (func_all_modules): Adjust.
19083         * check-module (find_included_lib_files): Adjust.
19084         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19085
19086 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19087
19088         copy-acl: enhance Solaris ACL error handling
19089         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19090         * lib/set-mode-acl.c (qset_acl): Likewise.
19091
19092 2010-03-02  Bruno Haible  <bruno@clisp.org>
19093
19094         spawn: Don't override the system defined values on FreeBSD 8.
19095         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19096         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19097         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19098         if HAVE_POSIX_SPAWN is 1.
19099         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19100
19101 2010-03-01  Bruno Haible  <bruno@clisp.org>
19102
19103         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19104         regarding Automake.
19105
19106 2010-02-25  Bruno Haible  <bruno@clisp.org>
19107
19108         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19109         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19110         setting, not afterwards.
19111         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19112
19113 2010-02-24  Eric Blake  <eblake@redhat.com>
19114
19115         bootstrap, git-version-gen: use timestamp
19116         * build-aux/git-version-gen (scriptversion): Force UTC.
19117         * build-aux/bootstrap (scriptversion): New variable.
19118
19119         bootstrap: allow older git
19120         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19121         older than 1.6.4.  Requested by the libvirt project.
19122
19123 2010-02-23  Eric Blake  <eblake@redhat.com>
19124
19125         warn-on-use: work with old autoconf
19126         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19127         AS_VAR semantics of autoconf 2.60.
19128         Reported by Bruno Haible.
19129
19130         bootstrap: improve some comments
19131         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19132         clarification comments.
19133
19134         gettimeofday: provide correct function
19135         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19136         when replacement is declared, otherwise provide gettimeofday.
19137         Reported by Michael Goffioul.
19138
19139 2010-02-23  Jim Meyering  <meyering@redhat.com>
19140
19141         lib-ignore: relax license to "unlimited", not LGPLv2+
19142         * modules/lib-ignore (License): Relax to "unlimited".
19143
19144 2010-02-23  Jim Meyering  <meyering@redhat.com>
19145
19146         lib-ignore: relax license to LGPLv2+
19147         * modules/lib-ignore (License): Relax to LGPLv2+.
19148
19149 2010-02-22  Eric Blake  <eblake@redhat.com>
19150
19151         lseek: avoid bash 3.2 broken pipe bug
19152         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19153         warning from bash 3.2.
19154         Reported by Ben Pfaff, with analysis from Bruno Haible.
19155
19156         bootstrap: support non-FSF copyright holder
19157         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19158         bootstrap.conf override of COPYRIGHT_HOLDER.
19159         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19160
19161         bootstrap: interoperate with gettext 0.14.1
19162         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19163
19164         bootstrap: allow for alternate submodule location
19165         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19166         hardcoding submodule location.
19167         (gnulib_mk): Allow direct use of Makefile.am.
19168
19169         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19170         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19171         rather than reconfiguring where the submodule points.
19172
19173         gettimeofday: restore support for platforms that lack function
19174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19175         replacement if function is missing.
19176         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19177         * modules/sys_time (Makefile.am): Substitute it.
19178         * lib/sys_time.in.h (gettimeofday): Check it.
19179         Reported by Michael Goffioul.
19180
19181 2010-02-21  Bruno Haible  <bruno@clisp.org>
19182
19183         * lib/stdio.in.h (obstack_printf): Fix typo.
19184
19185 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19186
19187         vc-list-files: use bzr ls's -R option
19188         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19189         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19190
19191 2010-02-21  Jim Meyering  <meyering@redhat.com>
19192
19193         init.sh: fix EXEEXT shims to work also for names like test-prog
19194         * tests/init.sh: Re-exec a better shell, when needed.
19195         If the current shell lacks support for posix $(...), an init.sh-using
19196         test will now try to find a shell that supports that.  If EXEEXT is
19197         nonempty, we also require support for hyphen-in-alias-name and shell
19198         substitutions like ${var#glob}.  Failure to find such a shell results
19199         in a skipped test.
19200
19201 2010-02-21  Bruno Haible  <bruno@clisp.org>
19202
19203         Really work around around "broken pipe" error message from bash 3.2.
19204         * gnulib-tool (func_reset_sigpipe): Remove function.
19205         (echo): In bash 3.2, define to a function that uses printf.
19206         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19207
19208 2010-02-20  Bruno Haible  <bruno@clisp.org>
19209
19210         Restore support for automake 1.9.6 with autoconf 2.61.
19211         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19212         Reported by James Youngman <jay@gnu.org>.
19213
19214 2010-02-20  Bruno Haible  <bruno@clisp.org>
19215
19216         Improve *printf warning condition.
19217         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19218         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19219         and the function is overridden due to SIGPIPE emulation.
19220
19221 2010-02-20  Bruno Haible  <bruno@clisp.org>
19222
19223         * lib/stdio.in.h: Tweak comments.
19224
19225 2010-02-19  Bruno Haible  <bruno@clisp.org>
19226
19227         Make it easier to find modules. New gnulib-tool option '--find'.
19228         * gnulib-tool: New option --find.
19229         (func_usage): Document it.
19230         (func_sanitize_modulelist): New function, extracted from
19231         func_all_modules.
19232         (func_all_modules): Invoke it.
19233         * doc/gnulib-tool.texi (Which modules?): New node.
19234
19235 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19236
19237         * lib/sys_select.in.h: Provide select replacement even if
19238         sys/select.h exists on a system, for Interix.
19239
19240 2010-02-18  Jim Meyering  <meyering@redhat.com>
19241
19242         init.sh: don't use $(...) just yet
19243         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19244         to accommodate e.g., Solaris' /bin/sh.
19245
19246 2010-02-17  Bruno Haible  <bruno@clisp.org>
19247
19248         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19249         Reported by Ludovic Courtès <ludo@gnu.org>.
19250
19251 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19252
19253         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19254         linking with -lintl.
19255
19256 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19257
19258         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19259         if not provided by the system's netdb.h.  Reported by
19260         ludo@gnu.org (Ludovic Courtès).
19261
19262 2010-02-15  Jim Meyering  <meyering@redhat.com>
19263
19264         init.sh: improve portability and efficiency
19265         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19266         "dummy" in a for loop.
19267         Use '!', not '^' to select the complement of a character set used
19268         in a "case" statement.
19269         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19270         Suggestions from Eric Blake.
19271
19272         init.sh: automatically accommodate programs with the .exe suffix
19273         Automatically arrange for an invocation of "prog" to execute the
19274         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19275         may use the simpler "prog", yet still work when built on a system
19276         that requires specifying the added suffix.
19277         Do this by constructing a function named "prog" that invokes
19278         "prog.exe" for each .exe file in selected directories.
19279         * tests/init.sh (find_exe_basenames_): New function.
19280         (create_exe_shim_functions_): New function.
19281         (path_prepend_): Use it.
19282
19283         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19284         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19285         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19286
19287 2010-02-14  Jim Meyering  <meyering@redhat.com>
19288
19289         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19290         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19291         (sc_prohibit_hash_pjw_without_use): New rule.
19292
19293         maint.mk: allow the default upload destination dir to be overridden
19294         * top/maint.mk (upload_dest_dir_): Define with a default that
19295         preserves the status quo.
19296         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19297         Reported by Peter Simons.
19298
19299         maint.mk: prohibit inclusion of "hash.h" without_use
19300         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19301
19302 2010-02-10  Jim Meyering  <meyering@redhat.com>
19303
19304         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19305         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19306
19307 2010-02-09  Eric Blake  <ebb9@byu.net>
19308         and Bruno Haible  <bruno@clisp.org>
19309
19310         obstack-printf-posix: ensure declaration
19311         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19312         extracted from gl_FUNC_OBSTACK_PRINTF.
19313         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19314         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19315         Likewise.
19316         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19317         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19318         0.
19319
19320 2010-02-08  Bruno Haible  <bruno@clisp.org>
19321
19322         gnulib-tool: Fix typo in 2010-02-07 commit.
19323         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19324         Reported by Eric Blake.
19325
19326 2010-02-07  Bruno Haible  <bruno@clisp.org>
19327
19328         gnulib-tool: Fix up caching patches.
19329         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19330         option --no-cache. Use associative arrays when supported by the shell.
19331         (sed_comments): New variable.
19332         (modcache): Renamed from do_cache.
19333         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19334         abbreviate unnecessarily.
19335         (have_associative): New variable.
19336         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19337         way also for ksh and zsh.
19338         (func_init_sed_convert_to_cache_statements): New function, extracted
19339         from func_cache_lookup_module. Add support for associative arrays.
19340         Don't set the c_MODULE_cached variable here. Ignore all lines before
19341         the first field header. Remove only the final newline, not all trailing
19342         newlines. Support empty fields correctly. Limit the use of 'eval' to
19343         assignments.
19344         (func_get_description, func_get_status, func_get_notice,
19345         func_get_applicability, func_get_filelist, func_get_dependencies,
19346         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19347         func_get_automake_snippet, func_get_include_directive,
19348         func_get_link_directive, func_get_license, func_get_maintainer):
19349         Update documentation. List the unoptimized code first. Add support for
19350         associative arrays. Limit the use of 'eval' to assignments.
19351         (func_get_applicability): Undo stylistic pessimisations.
19352         (func_get_automake_snippet, func_get_include_directive): Reduce code
19353         duplication.
19354         (func_modules_transitive_closure, func_modules_add_dummy,
19355         func_modules_notice, func_modules_to_filelist, func_add_file,
19356         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19357         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19358         func_create_testdir, func_create_megatestdir): Update documentation.
19359
19360 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19361
19362         * gnulib-tool (func_cache_lookup_module): Store the module name
19363         belonging to the cache variable; error out if two different
19364         module names map to the same cache variable name.
19365
19366 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19367
19368         gnulib-tool: Make caching optional.
19369         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19370         Update matching short versions of --no-changelog.
19371         (func_usage): Update.
19372         (sed_extract_cache_prog): Renamed from ...
19373         (sed_extract_prog): ... this; revert to old extraction script.
19374         (func_get_description, func_get_status)
19375         (func_get_notice, func_get_applicability, func_get_filelist)
19376         (func_get_dependencies, func_get_autoconf_early_snippet)
19377         (func_get_autoconf_snippet, func_get_automake_snippet)
19378         (func_get_include_directive, func_get_link_directive)
19379         (func_get_license, func_get_maintainer): If $do_cache is false,
19380         use old, non-caching extraction scripts.
19381         Suggestion by Bruno Haible.
19382
19383 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19384
19385         gnulib-tool: cache module metainformation.
19386         * gnulib-tool (sed_extract_prog): Match newline before each
19387         header, and rewrite header to a shell variable suffix.
19388         (func_cache_var, func_cache_lookup_module): New functions,
19389         to turn a module name into a cache variable prefix, and to
19390         look up and cache module metainformation.
19391         (func_get_description, func_get_status)
19392         (func_get_notice, func_get_applicability, func_get_filelist)
19393         (func_get_dependencies, func_get_autoconf_early_snippet)
19394         (func_get_autoconf_snippet, func_get_automake_snippet)
19395         (func_get_include_directive, func_get_link_directive)
19396         (func_get_license, func_get_maintainer): Use
19397         func_cache_lookup_module.
19398
19399 2010-02-07  Bruno Haible  <bruno@clisp.org>
19400
19401         fnctl: Fix missing dependency.
19402         * modules/fcntl (Depends-on): Add getdtablesize.
19403         Reported by John W. Eaton <jwe@gnu.org>.
19404
19405 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19406
19407         Argp: fix recognition of short alias options.
19408
19409         * lib/argp-parse.c (convert_options): Fix improper use of
19410         `|' between character values.
19411         * tests/test-argp.c (group1_option): New alias option
19412         --read (-r).
19413         (group1_parser): Special handling for 'r'.
19414         (test15): New test case.
19415         (test_fun): Add test15.
19416         * tests/test-argp-2.sh: Update expected --help and --usage
19417         outputs.
19418
19419 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19420
19421         * tests/test-argp.c: Fix indentation.
19422
19423 2010-02-04  Eric Blake  <ebb9@byu.net>
19424
19425         gettimeofday: expose type of second argument
19426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19427         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19428         * tests/test-gettimeofday.c: Use it to silence warning.
19429         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19430         the issue.
19431
19432 2010-02-03  Jim Meyering  <meyering@redhat.com>
19433
19434         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19435         * lib/regcomp.c (TYPE_SIGNED): Define.
19436         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19437
19438         regcomp.c: avoid a new -Wshadow warning
19439         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19440
19441 2010-02-01  Jim Meyering  <meyering@redhat.com>
19442
19443         removing useless parentheses in cpp #define directives
19444         For motivation, see commit c0221df4, "define STREQ(a,b)
19445         consistently, removing useless parentheses"
19446         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19447         * lib/mountlist.c (MNT_IGNORE): Likewise.
19448         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19449
19450 2010-02-01  Eric Blake  <ebb9@byu.net>
19451
19452         sys_time: use link-warning
19453         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19454         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19455         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19456         * modules/sys_time (Depends-on): Add warn-on-use.
19457         (Makefile.am): Always build replacement.
19458         (configure.ac): Update substitutions.
19459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19460         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19461         bother with SYS_TIME_H.
19462         * modules/gettimeofday (configure.ac): Declare indicator.
19463         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19464         in use.
19465
19466         closein-tests: silence compiler warning
19467         * tests/test-closein.c (main): Ignore fread result.
19468         * modules/closein-tests (Depends-on): Add ignore-value.
19469
19470         tests: silence warning about system return
19471         * tests/test-areadlink-with-size.c (main): Ignore system result.
19472         * tests/test-areadlink.c (main): Likewise.
19473         * tests/test-areadlinkat-with-size.c (main): Likewise.
19474         * tests/test-areadlinkat.c (main): Likewise.
19475         * tests/test-canonicalize-lgpl.c (main): Likewise.
19476         * tests/test-canonicalize.c (main): Likewise.
19477         * tests/test-chown.c (main): Likewise.
19478         * tests/test-fchownat.c (main): Likewise.
19479         * tests/test-fdutimensat.c (main): Likewise.
19480         * tests/test-fstatat.c (main): Likewise.
19481         * tests/test-futimens.c (main): Likewise.
19482         * tests/test-lchown.c (main): Likewise.
19483         * tests/test-link.c (main): Likewise.
19484         * tests/test-linkat.c (main): Likewise.
19485         * tests/test-lstat.c (main): Likewise.
19486         * tests/test-mkdir.c (main): Likewise.
19487         * tests/test-mkdirat.c (main): Likewise.
19488         * tests/test-mkfifo.c (main): Likewise.
19489         * tests/test-mkfifoat.c (main): Likewise.
19490         * tests/test-mknod.c (main): Likewise.
19491         * tests/test-readlink.c (main): Likewise.
19492         * tests/test-remove.c (main): Likewise.
19493         * tests/test-rename.c (main): Likewise.
19494         * tests/test-renameat.c (main): Likewise.
19495         * tests/test-rmdir.c (main): Likewise.
19496         * tests/test-symlink.c (main): Likewise.
19497         * tests/test-symlinkat.c (main): Likewise.
19498         * tests/test-unlink.c (main): Likewise.
19499         * tests/test-unlinkat.c (main): Likewise.
19500         * tests/test-utimens.c (main): Likewise.
19501         * tests/test-utimensat.c (main): Likewise.
19502         * modules/areadlink-tests (Depends-on): Add ignore-value.
19503         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19504         * modules/areadlinkat-tests (Depends-on): Likewise.
19505         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19506         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19507         * modules/canonicalize-tests (Depends-on): Likewise.
19508         * modules/chown-tests (Depends-on): Likewise.
19509         * modules/fdutimensat-tests (Depends-on): Likewise.
19510         * modules/futimens-tests (Depends-on): Likewise.
19511         * modules/lchown-tests (Depends-on): Likewise.
19512         * modules/link-tests (Depends-on): Likewise.
19513         * modules/linkat-tests (Depends-on): Likewise.
19514         * modules/lstat-tests (Depends-on): Likewise.
19515         * modules/mkdir-tests (Depends-on): Likewise.
19516         * modules/mkfifo-tests (Depends-on): Likewise.
19517         * modules/mkfifoat-tests (Depends-on): Likewise.
19518         * modules/mknod-tests (Depends-on): Likewise.
19519         * modules/openat-tests (Depends-on): Likewise.
19520         * modules/readlink-tests (Depends-on): Likewise.
19521         * modules/remove-tests (Depends-on): Likewise.
19522         * modules/rename-tests (Depends-on): Likewise.
19523         * modules/renameat-tests (Depends-on): Likewise.
19524         * modules/rmdir-tests (Depends-on): Likewise.
19525         * modules/symlink-tests (Depends-on): Likewise.
19526         * modules/symlinkat-tests (Depends-on): Likewise.
19527         * modules/unlink-tests (Depends-on): Likewise.
19528         * modules/utimens-tests (Depends-on): Likewise.
19529         * modules/utimensat-tests (Depends-on): Likewise.
19530
19531 2010-01-31  Bruno Haible  <bruno@clisp.org>
19532
19533         Perform the same test for many <math.h> functions.
19534         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19535         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19536         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19537         of gl_MATHFUNC.
19538         * modules/acos (configure.ac): Likewise.
19539         * modules/asin (configure.ac): Likewise.
19540         * modules/atan (configure.ac): Likewise.
19541         * modules/atan2 (configure.ac): Likewise.
19542         * modules/cbrt (configure.ac): Likewise.
19543         * modules/copysign (configure.ac): Likewise.
19544         * modules/cos (configure.ac): Likewise.
19545         * modules/cosh (configure.ac): Likewise.
19546         * modules/erf (configure.ac): Likewise.
19547         * modules/erfc (configure.ac): Likewise.
19548         * modules/exp (configure.ac): Likewise.
19549         * modules/fmod (configure.ac): Likewise.
19550         * modules/hypot (configure.ac): Likewise.
19551         * modules/j0 (configure.ac): Likewise.
19552         * modules/j1 (configure.ac): Likewise.
19553         * modules/jn (configure.ac): Likewise.
19554         * modules/lgamma (configure.ac): Likewise.
19555         * modules/log (configure.ac): Likewise.
19556         * modules/log10 (configure.ac): Likewise.
19557         * modules/log1p (configure.ac): Likewise.
19558         * modules/pow (configure.ac): Likewise.
19559         * modules/remainder (configure.ac): Likewise.
19560         * modules/sin (configure.ac): Likewise.
19561         * modules/sinh (configure.ac): Likewise.
19562         * modules/tan (configure.ac): Likewise.
19563         * modules/tanh (configure.ac): Likewise.
19564         * modules/y0 (configure.ac): Likewise.
19565         * modules/y1 (configure.ac): Likewise.
19566         * modules/yn (configure.ac): Likewise.
19567         Suggested by Paolo Bonzini.
19568
19569 2010-01-31  Bruno Haible  <bruno@clisp.org>
19570
19571         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19572
19573 2010-01-31  Bruno Haible  <bruno@clisp.org>
19574
19575         Work around getdelim() bug on FreeBSD 8.0.
19576         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19577         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19578         not work.
19579         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19580         is 1.
19581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19582         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19583         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19584         a non-zero size.
19585         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19586
19587 2010-01-31  Bruno Haible  <bruno@clisp.org>
19588
19589         Work around getline() bug on FreeBSD 8.0.
19590         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19591         and a non-zero size.
19592         * tests/test-getline.c (main): Likewise.
19593         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19594         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19595
19596 2010-01-28  Eric Blake  <ebb9@byu.net>
19597
19598         regex: fix build failure
19599         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19600         platforms.
19601
19602 2010-01-28  Jim Meyering  <meyering@redhat.com>
19603
19604         regex: do not ignore memory allocation failure
19605         * lib/regex_internal.c (create_cd_newstate): Detect
19606         re_node_set_init_copy failure.   Extracted from glibc commit
19607         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19608
19609         regex: sync more white-space changes from libc
19610         * lib/regex_internal.c: White-space only changes.
19611         * lib/regexec.c: Likewise.
19612
19613         regex: add many uses of __attribute_warn_unused_result__
19614         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19615         * lib/regexec.c: Likewise.
19616         Extracted from a messy glibc commit.
19617
19618         regcomp.c: spelling and merge-artifact from glibc
19619         * lib/regcomp.c: Merge remainder of glibc's
19620         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19621
19622         regcomp.c: sync white-space changes from glibc
19623         * lib/regcomp.c: Merge to accommodate white space
19624         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19625
19626         regcomp.c: do not ignore internal return values
19627         * lib/regcomp.c: Do not ignore internal return values.
19628         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19629         but without its white-space changes and spelling fixes.
19630
19631         regex_internal.h: define __attribute_warn_unused_result__
19632         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19633
19634         maint: add a syntax-check rule to check for vulnerable Makefile.in
19635         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19636
19637 2010-01-27  Jim Meyering  <meyering@redhat.com>
19638
19639         ncftpput-ftp: clean up spaces
19640         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19641         Remove trailing blanks.
19642
19643 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19644
19645         * build-aux/git-version-gen: Fix copyright statement.
19646         * build-aux/gnupload: Likewise.
19647         * tests/test-arcfour.c: Likewise.
19648         * tests/test-arctwo.c: Likewise.
19649         * tests/test-count-one-bits.c: Likewise.
19650         * tests/test-crc.c: Likewise.
19651         * tests/test-des.c: Likewise.
19652         * tests/test-gc-arcfour.c: Likewise.
19653         * tests/test-gc-arctwo.c: Likewise.
19654         * tests/test-gc-des.c: Likewise.
19655         * tests/test-gc-hmac-md5.c: Likewise.
19656         * tests/test-gc-hmac-sha1.c: Likewise.
19657         * tests/test-gc-md2.c: Likewise.
19658         * tests/test-gc-md4.c: Likewise.
19659         * tests/test-gc-md5.c: Likewise.
19660         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19661         * tests/test-gc-rijndael.c: Likewise.
19662         * tests/test-gc-sha1.c: Likewise.
19663         * tests/test-gc.c: Likewise.
19664         * tests/test-gethostname.c: Likewise.
19665         * tests/test-gettimeofday.c: Likewise.
19666         * tests/test-hash.c: Likewise.
19667         * tests/test-hmac-md5.c: Likewise.
19668         * tests/test-hmac-sha1.c: Likewise.
19669         * tests/test-md2.c: Likewise.
19670         * tests/test-md4.c: Likewise.
19671         * tests/test-md5.c: Likewise.
19672         * tests/test-memchr.c: Likewise.
19673         * tests/test-memchr2.c: Likewise.
19674         * tests/test-memcmp.c: Likewise.
19675         * tests/test-memmem.c: Likewise.
19676         * tests/test-memrchr.c: Likewise.
19677         * tests/test-rawmemchr.c: Likewise.
19678         * tests/test-read-file.c: Likewise.
19679         * tests/test-rijndael.c: Likewise.
19680         * tests/test-sockets.c: Likewise.
19681         * tests/test-strchrnul.c: Likewise.
19682         * tests/test-strstr.c: Likewise.
19683         * tests/test-strtod.c: Likewise.
19684         * build-aux/ncftpput-ftp: Likewise.
19685
19686 2010-01-26  Eric Blake  <ebb9@byu.net>
19687
19688         ignore-value: update recommended header name
19689         * modules/ignore-value (Include): Only use <> for headers that
19690         exist in glibc.
19691
19692 2010-01-26  Jim Meyering  <meyering@redhat.com>
19693
19694         test-userspec.c: avoid compiler warnings
19695         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19696         and "initialization discards qualifiers..." warnings.
19697         Put the first "uid" in its own scope, and make char* members "const".
19698
19699 2010-01-25  Bruno Haible  <bruno@clisp.org>
19700
19701         gnulib-tool: Make warning diagnostics consistent.
19702         * gnulib-tool (func_warning): New function.
19703         Use it everywhere where gnulib-tool produces output to stderr and it is
19704         not a fatal error.
19705
19706 2010-01-25  Bruno Haible  <bruno@clisp.org>
19707
19708         Fix test dependencies.
19709         * modules/xstrtol-tests (Depends-on): Add inttypes.
19710         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19711
19712 2010-01-25 Pádraig Brady <P@draigBrady.com>
19713
19714         syntax-check: detect incorrect boolean macro values in config.h
19715         * modules/maintainer-makefile (configure.ac): Parameterize the location
19716         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19717         The logic is from Eric Blake and the location indicated by Jim Meyering.
19718         Note the more natural CONFIG_HEADER name is prohibited by automake
19719         for backwards compatibility reasons.
19720         * top/maint.mk (sc_Wundef_boolean): New rule.
19721
19722 2010-01-25  Jim Meyering  <meyering@redhat.com>
19723
19724         bootstrap: detect MacOS 10.6's shasum, too
19725         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19726         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19727
19728 2010-01-23  Jim Meyering  <meyering@redhat.com>
19729
19730         xstrtoll: new module
19731         * modules/xstrtoll: New file.
19732         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19733         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19734         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19735         ./configure fails if you use this module and lack "long long".
19736         * modules/xstrtoll-tests: New module.
19737         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19738         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19739         new init.sh-based test framework.
19740
19741 2010-01-24  Bruno Haible  <bruno@clisp.org>
19742
19743         Tests for module 'yn'.
19744         * modules/yn-tests: New file.
19745         * tests/test-yn.c: New file.
19746
19747         Tests for module 'y1'.
19748         * modules/y1-tests: New file.
19749         * tests/test-y1.c: New file.
19750
19751         Tests for module 'y0'.
19752         * modules/y0-tests: New file.
19753         * tests/test-y0.c: New file.
19754
19755         Tests for module 'tanh'.
19756         * modules/tanh-tests: New file.
19757         * tests/test-tanh.c: New file.
19758
19759         Tests for module 'tan'.
19760         * modules/tan-tests: New file.
19761         * tests/test-tan.c: New file.
19762
19763         Tests for module 'sqrt'.
19764         * modules/sqrt-tests: New file.
19765         * tests/test-sqrt.c: New file.
19766
19767         Tests for module 'sinh'.
19768         * modules/sinh-tests: New file.
19769         * tests/test-sinh.c: New file.
19770
19771         Tests for module 'sin'.
19772         * modules/sin-tests: New file.
19773         * tests/test-sin.c: New file.
19774
19775         Tests for module 'rint'.
19776         * modules/rint-tests: New file.
19777         * tests/test-rint.c: New file.
19778
19779         Tests for module 'remainder'.
19780         * modules/remainder-tests: New file.
19781         * tests/test-remainder.c: New file.
19782
19783         Tests for module 'pow'.
19784         * modules/pow-tests: New file.
19785         * tests/test-pow.c: New file.
19786
19787         Tests for module 'nextafter'.
19788         * modules/nextafter-tests: New file.
19789         * tests/test-nextafter.c: New file.
19790
19791         Tests for module 'modf'.
19792         * modules/modf-tests: New file.
19793         * tests/test-modf.c: New file.
19794
19795         Tests for module 'logb'.
19796         * modules/logb-tests: New file.
19797         * tests/test-logb.c: New file.
19798
19799         Tests for module 'log1p'.
19800         * modules/log1p-tests: New file.
19801         * tests/test-log1p.c: New file.
19802
19803         Tests for module 'log10'.
19804         * modules/log10-tests: New file.
19805         * tests/test-log10.c: New file.
19806
19807         Tests for module 'log'.
19808         * modules/log-tests: New file.
19809         * tests/test-log.c: New file.
19810
19811         Tests for module 'lgamma'.
19812         * modules/lgamma-tests: New file.
19813         * tests/test-lgamma.c: New file.
19814
19815         Tests for module 'ldexp'.
19816         * modules/ldexp-tests: New file.
19817         * tests/test-ldexp.c: New file.
19818
19819         Tests for module 'jn'.
19820         * modules/jn-tests: New file.
19821         * tests/test-jn.c: New file.
19822
19823         Tests for module 'j1'.
19824         * modules/j1-tests: New file.
19825         * tests/test-j1.c: New file.
19826
19827         Tests for module 'j0'.
19828         * modules/j0-tests: New file.
19829         * tests/test-j0.c: New file.
19830
19831         Tests for module 'hypot'.
19832         * modules/hypot-tests: New file.
19833         * tests/test-hypot.c: New file.
19834
19835         Tests for module 'fmod'.
19836         * modules/fmod-tests: New file.
19837         * tests/test-fmod.c: New file.
19838
19839         Tests for module 'fabs'.
19840         * modules/fabs-tests: New file.
19841         * tests/test-fabs.c: New file.
19842
19843         Tests for module 'exp'.
19844         * modules/exp-tests: New file.
19845         * tests/test-exp.c: New file.
19846
19847         Tests for module 'erfc'.
19848         * modules/erfc-tests: New file.
19849         * tests/test-erfc.c: New file.
19850
19851         Tests for module 'erf'.
19852         * modules/erf-tests: New file.
19853         * tests/test-erf.c: New file.
19854
19855         Tests for module 'cosh'.
19856         * modules/cosh-tests: New file.
19857         * tests/test-cosh.c: New file.
19858
19859         Tests for module 'cos'.
19860         * modules/cos-tests: New file.
19861         * tests/test-cos.c: New file.
19862
19863         Tests for module 'copysign'.
19864         * modules/copysign-tests: New file.
19865         * tests/test-copysign.c: New file.
19866
19867         Tests for module 'cbrt'.
19868         * modules/cbrt-tests: New file.
19869         * tests/test-cbrt.c: New file.
19870
19871         Tests for module 'atan2'.
19872         * modules/atan2-tests: New file.
19873         * tests/test-atan2.c: New file.
19874
19875         Tests for module 'atan'.
19876         * modules/atan-tests: New file.
19877         * tests/test-atan.c: New file.
19878
19879         Tests for module 'asin'.
19880         * modules/asin-tests: New file.
19881         * tests/test-asin.c: New file.
19882
19883         Tests for module 'acos'.
19884         * modules/acos-tests: New file.
19885         * tests/test-acos.c: New file.
19886
19887 2010-01-24  Bruno Haible  <bruno@clisp.org>
19888
19889         Fix tests for common <math.h> functions.
19890         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19891         code snippet that references the function pointer, rather than merely
19892         calling the function. Substitute the FUNC_LIBM variable.
19893         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19894         * modules/acos (configure.ac): Likewise.
19895         * modules/asin (configure.ac): Likewise.
19896         * modules/atan (configure.ac): Likewise.
19897         * modules/atan2 (configure.ac): Likewise.
19898         * modules/cbrt (configure.ac): Likewise.
19899         * modules/copysign (configure.ac): Likewise.
19900         * modules/cos (configure.ac): Likewise.
19901         * modules/cosh (configure.ac): Likewise.
19902         * modules/erf (configure.ac): Likewise.
19903         * modules/erfc (configure.ac): Likewise.
19904         * modules/exp (configure.ac): Likewise.
19905         * modules/fabs (configure.ac): Likewise.
19906         * modules/fmod (configure.ac): Likewise.
19907         * modules/hypot (configure.ac): Likewise.
19908         * modules/j0 (configure.ac): Likewise.
19909         * modules/j1 (configure.ac): Likewise.
19910         * modules/jn (configure.ac): Likewise.
19911         * modules/ldexp (configure.ac): Likewise.
19912         * modules/lgamma (configure.ac): Likewise.
19913         * modules/log (configure.ac): Likewise.
19914         * modules/log10 (configure.ac): Likewise.
19915         * modules/log1p (configure.ac): Likewise.
19916         * modules/logb (configure.ac): Likewise.
19917         * modules/modf (configure.ac): Likewise.
19918         * modules/nextafter (configure.ac): Likewise.
19919         * modules/pow (configure.ac): Likewise.
19920         * modules/remainder (configure.ac): Likewise.
19921         * modules/rint (configure.ac): Likewise.
19922         * modules/sin (configure.ac): Likewise.
19923         * modules/sinh (configure.ac): Likewise.
19924         * modules/tan (configure.ac): Likewise.
19925         * modules/tanh (configure.ac): Likewise.
19926         * modules/y0 (configure.ac): Likewise.
19927         * modules/y1 (configure.ac): Likewise.
19928         * modules/yn (configure.ac): Likewise.
19929
19930 2010-01-24  Bruno Haible  <bruno@clisp.org>
19931
19932         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19933         * tests/test-acosl.c (x): New variable.
19934         (main): Store argument in x and fetch it from x.
19935         * tests/test-asinl.c (x): New variable.
19936         (main): Store argument in x and fetch it from x.
19937         * tests/test-atanl.c (x): New variable.
19938         (main): Store argument in x and fetch it from x.
19939         * tests/test-cosl.c (x): New variable.
19940         (main): Store argument in x and fetch it from x.
19941         * tests/test-expl.c (x): New variable.
19942         (main): Store argument in x and fetch it from x.
19943         * tests/test-logl.c (x): New variable.
19944         (main): Store argument in x and fetch it from x.
19945         * tests/test-sinl.c (x): New variable.
19946         (main): Store argument in x and fetch it from x.
19947         * tests/test-sqrtl.c (x): New variable.
19948         (main): Store argument in x and fetch it from x.
19949         * tests/test-tanl.c (x): New variable.
19950         (main): Store argument in x and fetch it from x.
19951
19952 2010-01-24  Bruno Haible  <bruno@clisp.org>
19953
19954         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19955         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19956         assignments to the initial TESTS_ENVIRONMENT.
19957         * doc/gnulib.texi (Unit test modules): Document it.
19958         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19959         TESTS_ENVIRONMENT.
19960         * modules/btowc-tests (Makefile.am): Likewise.
19961         * modules/c-stack-tests (Makefile.am): Likewise.
19962         * modules/c-strcase-tests (Makefile.am): Likewise.
19963         * modules/copy-file-tests (Makefile.am): Likewise.
19964         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19965         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19966         * modules/mbrtowc-tests (Makefile.am): Likewise.
19967         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19968         * modules/mbscasestr-tests (Makefile.am): Likewise.
19969         * modules/mbschr-tests (Makefile.am): Likewise.
19970         * modules/mbscspn-tests (Makefile.am): Likewise.
19971         * modules/mbsinit-tests (Makefile.am): Likewise.
19972         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19973         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19974         * modules/mbspbrk-tests (Makefile.am): Likewise.
19975         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19976         * modules/mbsrchr-tests (Makefile.am): Likewise.
19977         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19978         * modules/mbsspn-tests (Makefile.am): Likewise.
19979         * modules/mbsstr-tests (Makefile.am): Likewise.
19980         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19981         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19982         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19983         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19984         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19985         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19986         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19987         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19988         * modules/wcrtomb-tests (Makefile.am): Likewise.
19989         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19990         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19991         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19992         assignments from TESTS_ENVIRONMENT.
19993         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19994         augmentation.
19995         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19996         * modules/atexit-tests (Makefile.am): Likewise.
19997         * modules/binary-io-tests (Makefile.am): Likewise.
19998         * modules/closein-tests (Makefile.am): Likewise.
19999         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20000         * modules/exclude-tests (Makefile.am): Likewise.
20001         * modules/fflush-tests (Makefile.am): Likewise.
20002         * modules/fpending-tests (Makefile.am): Likewise.
20003         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20004         * modules/freadahead-tests (Makefile.am): Likewise.
20005         * modules/freadptr-tests (Makefile.am): Likewise.
20006         * modules/freadseek-tests (Makefile.am): Likewise.
20007         * modules/fseek-tests (Makefile.am): Likewise.
20008         * modules/fseeko-tests (Makefile.am): Likewise.
20009         * modules/ftell-tests (Makefile.am): Likewise.
20010         * modules/ftello-tests (Makefile.am): Likewise.
20011         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20012         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20013         * modules/lseek-tests (Makefile.am): Likewise.
20014         * modules/parse-duration-tests (Makefile.am): Likewise.
20015         * modules/perror-tests (Makefile.am): Likewise.
20016         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20017         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20018         * modules/pipe-tests (Makefile.am): Likewise.
20019         * modules/pread-tests (Makefile.am): Likewise.
20020         * modules/printf-posix-tests (Makefile.am): Likewise.
20021         * modules/select-tests (Makefile.am): Likewise.
20022         * modules/sigpipe-tests (Makefile.am): Likewise.
20023         * modules/tsearch-tests (Makefile.am): Likewise.
20024         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20025         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20026         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20027         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20028         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20029         * modules/version-etc-tests (Makefile.am): Likewise.
20030         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20031         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20032         * modules/xalloc-die-tests (Makefile.am): Likewise.
20033         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20034         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20035         * modules/xstrtol-tests (Makefile.am): Likewise.
20036         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20037         * modules/yesno-tests (Makefile.am): Likewise.
20038         Suggested by Jim Meyering.
20039
20040 2010-01-24  Bruno Haible  <bruno@clisp.org>
20041
20042         More documentation.
20043         * doc/gnulib.texi (Writing modules): New chapter.
20044         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20045         the new chapter.
20046
20047 2010-01-24  Jim Meyering  <meyering@redhat.com>
20048
20049         maint.mk: do not prepend "./" after filtering
20050         * top/maint.mk (_prepend_srcdir_prefix): New variable
20051         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20052         "./" when $(srcdir) is ".".
20053
20054         define STREQ(a,b) consistently, removing useless parentheses
20055         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20056         since the only risk is that "a" or "b" contains an unparenthesized
20057         comma, but if either did that, STREQ would have 3 or more arguments.
20058         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20059         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20060         * lib/hash-triple.c (STREQ): Likewise.
20061         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20062         * lib/getugroups.c (STREQ): Likewise.
20063
20064 2010-01-23  Jim Meyering  <meyering@redhat.com>
20065
20066         maint.mk: fix syntax-check in a non-srcdir build directory
20067         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20068         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20069
20070 2010-01-22  Jim Meyering  <meyering@redhat.com>
20071
20072         userspec: add unit tests
20073         * tests/test-userspec.c: New file.
20074         * modules/userspec-tests: Likewise.
20075
20076 2010-01-21  Jim Meyering  <meyering@redhat.com>
20077
20078         maint.mk: handle source file names containing "." robustly
20079         * top/maint.mk (_dot_escaped_srcdir): Define.
20080         (VC_LIST): Use it in LHS of sed substitution.
20081
20082 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20083
20084         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20085         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20086         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20087         from a non-srcdir build.
20088
20089 2010-01-20  Eric Blake  <ebb9@byu.net>
20090
20091         warn-on-use: use instead of link-warning
20092         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20093         * modules/unistd (Depends-on, Makefile.am): Likewise.
20094         * modules/arpa_inet (Depends-on): Replace link-warning with
20095         warn-on-use.
20096         (Makefile.am): Update rules accordingly.
20097         * modules/ctype (Depends-on, Makefile.am): Likewise.
20098         * modules/dirent (Depends-on, Makefile.am): Likewise.
20099         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20100         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20101         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20102         * modules/locale (Depends-on, Makefile.am): Likewise.
20103         * modules/math (Depends-on, Makefile.am): Likewise.
20104         * modules/search (Depends-on, Makefile.am): Likewise.
20105         * modules/signal (Depends-on, Makefile.am): Likewise.
20106         * modules/spawn (Depends-on, Makefile.am): Likewise.
20107         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20108         * modules/string (Depends-on, Makefile.am): Likewise.
20109         * modules/strings (Depends-on, Makefile.am): Likewise.
20110         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20111         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20112         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20113         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20114         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20115         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20116         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20117         * modules/wchar (Depends-on, Makefile.am): Likewise.
20118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20119         should be poisoned.
20120         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20121         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20122         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20123         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20125         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20126         * m4/math_h.m4 (gl_MATH_H): Likewise.
20127         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20128         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20129         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20130         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20131         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20132         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20133         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20134         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20139         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20141         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20142         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20143         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20144         GL_LINK_WARNING.
20145         * lib/ctype.in.h: Likewise.
20146         * lib/dirent.in.h: Likewise.
20147         * lib/fcntl.in.h: Likewise.
20148         * lib/inttypes.in.h: Likewise.
20149         * lib/langinfo.in.h: Likewise.
20150         * lib/locale.in.h: Likewise.
20151         * lib/math.in.h: Likewise.
20152         * lib/search.in.h: Likewise.
20153         * lib/signal.in.h: Likewise.
20154         * lib/spawn.in.h: Likewise.
20155         * lib/stdio.in.h: Likewise.
20156         * lib/stdlib.in.h: Likewise.
20157         * lib/string.in.h: Likewise.
20158         * lib/strings.in.h: Likewise.
20159         * lib/sys_file.in.h: Likewise.
20160         * lib/sys_ioctl.in.h: Likewise.
20161         * lib/sys_select.in.h: Likewise.
20162         * lib/sys_socket.in.h: Likewise.
20163         * lib/sys_stat.in.h: Likewise.
20164         * lib/sys_times.in.h: Likewise.
20165         * lib/sys_utsname.in.h: Likewise.
20166         * lib/unistd.in.h: Likewise.
20167         * lib/wchar.in.h: Likewise.
20168
20169 2010-01-20  Bruno Haible  <bruno@clisp.org>
20170
20171         Avoid duplicate -lm.
20172         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20173         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20174         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20175         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20176         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20177         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20178         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20179         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20180         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20181         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20182         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20183         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20184         Reported by Paolo Bonzini.
20185
20186 2010-01-19  Bruno Haible  <bruno@clisp.org>
20187
20188         langinfo, nl_langinfo: Relicense under LGPLv2+.
20189         * modules/langinfo (License): Change to LGPLv2+.
20190         * modules/nl_langinfo (License): Likewise.
20191         Patch by David Lutterkort <lutter@redhat.com>.
20192
20193 2010-01-19  Bruno Haible  <bruno@clisp.org>
20194
20195         Avoid compilation error with cc on OSF/1 5.1.
20196         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20197         statement, not before.
20198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20199
20200 2010-01-18  Bruno Haible  <bruno@clisp.org>
20201
20202         Avoid a link error due to the __printf__ symbol.
20203         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20204         and 2.6.x.
20205         (__format__, __printf__): Remove definitions.
20206         * lib/argp-fmtstream.h: Likewise.
20207         * lib/argp.h: Likewise.
20208         * lib/error.h: Likewise.
20209         * lib/vasnprintf.h: Likewise.
20210         * lib/xprintf.h: Likewise.
20211         * lib/xvasprintf.h: Likewise.
20212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20213
20214 2010-01-18  Bruno Haible  <bruno@clisp.org>
20215
20216         Tests for module 'tanl'.
20217         * modules/tanl-tests: New file.
20218         * tests/test-tanl.c: New file.
20219
20220         Tests for module 'sqrtl'.
20221         * modules/sqrtl-tests: New file.
20222         * tests/test-sqrtl.c: New file.
20223
20224         Tests for module 'sinl'.
20225         * modules/sinl-tests: New file.
20226         * tests/test-sinl.c: New file.
20227
20228         Tests for module 'logl'.
20229         * modules/logl-tests: New file.
20230         * tests/test-logl.c: New file.
20231
20232         Tests for module 'expl'.
20233         * modules/expl-tests: New file.
20234         * tests/test-expl.c: New file.
20235
20236         Tests for module 'cosl'.
20237         * modules/cosl-tests: New file.
20238         * tests/test-cosl.c: New file.
20239
20240         Tests for module 'atanl'.
20241         * modules/atanl-tests: New file.
20242         * tests/test-atanl.c: New file.
20243
20244         Tests for module 'asinl'.
20245         * modules/asinl-tests: New file.
20246         * tests/test-asinl.c: New file.
20247
20248         Tests for module 'acosl'.
20249         * modules/acosl-tests: New file.
20250         * tests/test-acosl.c: New file.
20251
20252         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20253         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20254         tanl): Use the standard gnulib idiom.
20255         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20256         * lib/sinl.c: Likewise.
20257         * lib/tanl.c: Don't include trigl.c.
20258         (kernel_tanl): Make static.
20259         * lib/sincosl.c: Include trigl.h first.
20260         * lib/trigl.c: Likewise.
20261         * m4/acosl.m4: New file.
20262         * m4/asinl.m4: New file.
20263         * m4/atanl.m4: New file.
20264         * m4/cosl.m4: New file.
20265         * m4/expl.m4: New file.
20266         * m4/logl.m4: New file.
20267         * m4/sinl.m4: New file.
20268         * m4/sqrtl.m4: New file.
20269         * m4/tanl.m4: New file.
20270         * m4/mathl.m4: Remove file.
20271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20272         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20273         Don't initialize GNULIB_MATHL.
20274         * modules/acosl: New file.
20275         * modules/asinl: New file.
20276         * modules/atanl: New file.
20277         * modules/cosl: New file.
20278         * modules/expl: New file.
20279         * modules/logl: New file.
20280         * modules/sinl: New file.
20281         * modules/sqrtl: New file.
20282         * modules/tanl: New file.
20283         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20284         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20285         substitute GNULIB_MATHL.
20286         * modules/mathl: Rewritten.
20287         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20288         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20289         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20290         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20291         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20292         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20293         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20294         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20295         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20296
20297 2010-01-18  Bruno Haible  <bruno@clisp.org>
20298
20299         sqrt: Make gl_FUNC_SQRT requirable.
20300         * m4/sqrt.m4: New file.
20301         * modules/sqrt (Files): Add it.
20302         (configure.ac): Invoke gl_FUNC_SQRT.
20303
20304 2010-01-18  Bruno Haible  <bruno@clisp.org>
20305
20306         New modules for common <math.h> functions.
20307         * m4/mathfunc.m4: New file.
20308         * modules/acos: New file.
20309         * modules/asin: New file.
20310         * modules/atan: New file.
20311         * modules/atan2: New file.
20312         * modules/cbrt: New file.
20313         * modules/copysign: New file.
20314         * modules/cos: New file.
20315         * modules/cosh: New file.
20316         * modules/erf: New file.
20317         * modules/erfc: New file.
20318         * modules/exp: New file.
20319         * modules/fabs: New file.
20320         * modules/fmod: New file.
20321         * modules/hypot: New file.
20322         * modules/j0: New file.
20323         * modules/j1: New file.
20324         * modules/jn: New file.
20325         * modules/ldexp: New file.
20326         * modules/lgamma: New file.
20327         * modules/log: New file.
20328         * modules/log10: New file.
20329         * modules/log1p: New file.
20330         * modules/logb: New file.
20331         * modules/modf: New file.
20332         * modules/nextafter: New file.
20333         * modules/pow: New file.
20334         * modules/remainder: New file.
20335         * modules/rint: New file.
20336         * modules/sin: New file.
20337         * modules/sinh: New file.
20338         * modules/sqrt: New file.
20339         * modules/tan: New file.
20340         * modules/tanh: New file.
20341         * modules/y0: New file.
20342         * modules/y1: New file.
20343         * modules/yn: New file.
20344         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20345         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20346         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20347         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20348         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20349         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20350         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20351         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20352         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20353         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20354         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20355         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20356         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20357         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20358         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20359         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20360         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20361         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20362         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20363         * doc/posix-functions/log.texi: Mention the 'log' module.
20364         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20365         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20366         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20367         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20368         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20369         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20370         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20371         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20372         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20373         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20374         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20375         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20376         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20377         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20378         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20379         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20380
20381 2010-01-18  Jim Meyering  <meyering@redhat.com>
20382
20383         ignore-value: relax license to LGPLv2+
20384         * modules/ignore-value (License): Relax to LGPLv2+.
20385
20386         getdate: don't leak when TZ contains two or more '"'s
20387         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20388         double quote in TZ after the first one.
20389
20390         readtokens: do not leak internal token_lengths buffer
20391         * lib/readtokens.c (readtokens): Free the local, lengths,
20392         when the supplied "token_lengths" parameter is NULL.
20393
20394 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20395
20396         Fix a couple of missing LIBTHREAD link failures on AIX.
20397         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20398         $(LIBTHREAD).
20399         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20400
20401         Link test-poll against INET_PTON_LIB.
20402         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20403         for inet_pton on Solaris 10.
20404
20405 2010-01-17  Bruno Haible  <bruno@clisp.org>
20406
20407         unistdio/*-sprintf: Fix typo in module description.
20408         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20409         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20410         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20411         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20412         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20413         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20414         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20416
20417 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20418
20419         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20420         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20421         variables in shell case patterns, for AIX and HP-UX ksh.
20422
20423         Split large sed scripts, for HP-UX sed.
20424         * modules/stdio: Split sed scripts around 50 sed commands,
20425         to avoid HP-UX limit of 99 commands, in the near future.
20426         * modules/string: Likewise.
20427         * modules/unistd: Likewise.
20428
20429         gnulib-tool: avoid writing in the current directory.
20430         * gnulib-tool (func_emit_lib_Makefile_am)
20431         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20432         not in the current directory, so concurrent gnulib-tool
20433         instances do not interfere.
20434
20435 2010-01-16  Jim Meyering  <meyering@redhat.com>
20436
20437         doc: update users.txt
20438         * users.txt: Add grep.
20439         (diffutils, gzip): Update URLs.
20440
20441 2010-01-12  Bruno Haible  <bruno@clisp.org>
20442
20443         posix_spawn: Avoid test failure on Cygwin.
20444         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20445         characters.
20446         Reported by Simon Josefsson.
20447
20448 2010-01-12  Bruno Haible  <bruno@clisp.org>
20449
20450         * tests/test-cond.c (main): When skipping the test, show the reason.
20451
20452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20453
20454         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20455
20456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20457
20458         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20459         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20460
20461 2010-01-12  Eric Blake  <ebb9@byu.net>
20462
20463         build: guarantee AS_VAR_IF
20464         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20465         (gl_AS_VAR_IF): Move...
20466         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20467         Reported by Simon Josefsson.
20468
20469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20470
20471         * lib/stdio.in.h: Fix typo.
20472
20473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20474
20475         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20476         libgpg-error.
20477
20478 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20479
20480         * tests/test-xalloc-die.sh: Use $EXEEXT.
20481
20482 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20483             Bruno Haible  <bruno@clisp.org>
20484
20485         getlogin, getlogin_r: Avoid test failure.
20486         * tests/test-getlogin.c: Include <stdio.h>.
20487         (main): Skip the test when the function fails because stdin is not a
20488         tty.
20489         * tests/test-getlogin_r.c: Include <stdio.h>.
20490         (main): Skip the test when the function fails because stdin is not a
20491         tty.
20492
20493 2010-01-11  Eric Blake  <ebb9@byu.net>
20494
20495         tests: avoid more large file warnings
20496         * tests/test-fflush.c: Avoid warning about ftell use.
20497         * tests/test-fseek.c: Avoid warning about fseek use.
20498
20499 2010-01-10  Bruno Haible  <bruno@clisp.org>
20500
20501         nproc: Work better on Linux when /proc and /sys are not mounted.
20502         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20503         as lower bound when, on glibc/Linux systems,
20504         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20505         Suggested by Pádraig Brady <P@draigbrady.com>.
20506         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20507
20508         nproc: Refactor.
20509         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20510         extracted from num_processors.
20511         (num_processors): Call it.
20512
20513 2010-01-11  Jim Meyering  <meyering@redhat.com>
20514
20515         utimecmp: avoid new warning from upcoming gcc-4.5.0
20516         * lib/utimecmp.c (BILLION): Define using #define rather than an
20517         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20518
20519 2010-01-11  Eric Blake  <ebb9@byu.net>
20520
20521         math: add portability warnings for classification macros
20522         * modules/math (Depends-on): Add warn-on-use.
20523         (Makefile.am): Provide new substitutions.
20524         * m4/math_h.m4 (gl_MATH_H): Require inline.
20525         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20526         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20527         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20528         implement warnings.
20529
20530         unistd: warn on use of environ without module
20531         * modules/unistd (Depends-on): Add warn-on-use.
20532         (Makefile.am): Provide new substitutions.
20533         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20534         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20535
20536         stdio: warn on suspicious uses
20537         * modules/stdio (Depends-on): Add warn-on-use.
20538         (Makefile.am): Provide new substitutions.
20539         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20540         fseeko.
20541         * lib/stdio.in.h (gets): Always warn on use.
20542         (fseek, ftell): Adjust when warnings are issued, and honor
20543         _GL_NO_LARGE_FILES as a way to silence the warning.
20544         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20545         any warning about large file offsets.
20546         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20547         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20548         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20549         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20550         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20551         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20552         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20553         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20554
20555         warn-on-use: new module
20556         * modules/warn-on-use: New file.
20557         * build-aux/warn-on-use.h: Likewise.
20558         * m4/warn-on-use.m4: Likewise.
20559         * MODULES.html.sh (Support for building): Mention it.
20560
20561 2010-01-10  Bruno Haible  <bruno@clisp.org>
20562
20563         Tests for module 'unistr/u32-strdup'.
20564         * modules/unistr/u32-strdup-tests: New file.
20565         * tests/unistr/test-u32-strdup.c: New file.
20566
20567         Tests for module 'unistr/u16-strdup'.
20568         * modules/unistr/u16-strdup-tests: New file.
20569         * tests/unistr/test-u16-strdup.c: New file.
20570
20571         Tests for module 'unistr/u8-strdup'.
20572         * modules/unistr/u8-strdup-tests: New file.
20573         * tests/unistr/test-u8-strdup.c: New file.
20574         * tests/unistr/test-strdup.h: New file.
20575
20576         Tests for module 'unistr/u32-strncmp'.
20577         * modules/unistr/u32-strncmp-tests: New file.
20578         * tests/unistr/test-u32-strncmp.c: New file.
20579
20580         Tests for module 'unistr/u16-strncmp'.
20581         * modules/unistr/u16-strncmp-tests: New file.
20582         * tests/unistr/test-u16-strncmp.c: New file.
20583
20584         Tests for module 'unistr/u8-strncmp'.
20585         * modules/unistr/u8-strncmp-tests: New file.
20586         * tests/unistr/test-u8-strncmp.c: New file.
20587         * tests/unistr/test-strncmp.h: New file.
20588
20589         Tests for module 'unistr/u32-strcoll'.
20590         * modules/unistr/u32-strcoll-tests: New file.
20591         * tests/unistr/test-u32-strcoll.c: New file.
20592
20593         Tests for module 'unistr/u16-strcoll'.
20594         * modules/unistr/u16-strcoll-tests: New file.
20595         * tests/unistr/test-u16-strcoll.c: New file.
20596
20597         Tests for module 'unistr/u8-strcoll'.
20598         * modules/unistr/u8-strcoll-tests: New file.
20599         * tests/unistr/test-u8-strcoll.c: New file.
20600
20601         Tests for module 'unistr/u32-strcmp'.
20602         * modules/unistr/u32-strcmp-tests: New file.
20603         * tests/unistr/test-u32-strcmp.c: New file.
20604         * tests/unistr/test-u32-strcmp.h: New file.
20605
20606         Tests for module 'unistr/u16-strcmp'.
20607         * modules/unistr/u16-strcmp-tests: New file.
20608         * tests/unistr/test-u16-strcmp.c: New file.
20609         * tests/unistr/test-u16-strcmp.h: New file.
20610
20611         Tests for module 'unistr/u8-strcmp'.
20612         * modules/unistr/u8-strcmp-tests: New file.
20613         * tests/unistr/test-u8-strcmp.c: New file.
20614         * tests/unistr/test-u8-strcmp.h: New file.
20615         * tests/unistr/test-strcmp.h: New file.
20616
20617         Tests for module 'unistr/u32-strncat'.
20618         * modules/unistr/u32-strncat-tests: New file.
20619         * tests/unistr/test-u32-strncat.c: New file.
20620
20621         Tests for module 'unistr/u16-strncat'.
20622         * modules/unistr/u16-strncat-tests: New file.
20623         * tests/unistr/test-u16-strncat.c: New file.
20624
20625         Tests for module 'unistr/u8-strncat'.
20626         * modules/unistr/u8-strncat-tests: New file.
20627         * tests/unistr/test-u8-strncat.c: New file.
20628         * tests/unistr/test-strncat.h: New file.
20629
20630         Tests for module 'unistr/u32-strcat'.
20631         * modules/unistr/u32-strcat-tests: New file.
20632         * tests/unistr/test-u32-strcat.c: New file.
20633
20634         Tests for module 'unistr/u16-strcat'.
20635         * modules/unistr/u16-strcat-tests: New file.
20636         * tests/unistr/test-u16-strcat.c: New file.
20637
20638         Tests for module 'unistr/u8-strcat'.
20639         * modules/unistr/u8-strcat-tests: New file.
20640         * tests/unistr/test-u8-strcat.c: New file.
20641         * tests/unistr/test-strcat.h: New file.
20642
20643         Tests for module 'unistr/u32-stpncpy'.
20644         * modules/unistr/u32-stpncpy-tests: New file.
20645         * tests/unistr/test-u32-stpncpy.c: New file.
20646
20647         Tests for module 'unistr/u16-stpncpy'.
20648         * modules/unistr/u16-stpncpy-tests: New file.
20649         * tests/unistr/test-u16-stpncpy.c: New file.
20650
20651         Tests for module 'unistr/u8-stpncpy'.
20652         * modules/unistr/u8-stpncpy-tests: New file.
20653         * tests/unistr/test-u8-stpncpy.c: New file.
20654         * tests/unistr/test-stpncpy.h: New file.
20655
20656         Tests for module 'unistr/u32-strncpy'.
20657         * modules/unistr/u32-strncpy-tests: New file.
20658         * tests/unistr/test-u32-strncpy.c: New file.
20659
20660         Tests for module 'unistr/u16-strncpy'.
20661         * modules/unistr/u16-strncpy-tests: New file.
20662         * tests/unistr/test-u16-strncpy.c: New file.
20663
20664         Tests for module 'unistr/u8-strncpy'.
20665         * modules/unistr/u8-strncpy-tests: New file.
20666         * tests/unistr/test-u8-strncpy.c: New file.
20667         * tests/unistr/test-strncpy.h: New file.
20668
20669         Tests for module 'unistr/u32-stpcpy'.
20670         * modules/unistr/u32-stpcpy-tests: New file.
20671         * tests/unistr/test-u32-stpcpy.c: New file.
20672
20673         Tests for module 'unistr/u16-stpcpy'.
20674         * modules/unistr/u16-stpcpy-tests: New file.
20675         * tests/unistr/test-u16-stpcpy.c: New file.
20676
20677         Tests for module 'unistr/u8-stpcpy'.
20678         * modules/unistr/u8-stpcpy-tests: New file.
20679         * tests/unistr/test-u8-stpcpy.c: New file.
20680         * tests/unistr/test-stpcpy.h: New file.
20681
20682         Tests for module 'unistr/u32-strcpy'.
20683         * modules/unistr/u32-strcpy-tests: New file.
20684         * tests/unistr/test-u32-strcpy.c: New file.
20685
20686         Tests for module 'unistr/u16-strcpy'.
20687         * modules/unistr/u16-strcpy-tests: New file.
20688         * tests/unistr/test-u16-strcpy.c: New file.
20689
20690         Tests for module 'unistr/u8-strcpy'.
20691         * modules/unistr/u8-strcpy-tests: New file.
20692         * tests/unistr/test-u8-strcpy.c: New file.
20693         * tests/unistr/test-strcpy.h: New file.
20694
20695         Tests for module 'unistr/u32-strnlen'.
20696         * modules/unistr/u32-strnlen-tests: New file.
20697         * tests/unistr/test-u32-strnlen.c: New file.
20698
20699         Tests for module 'unistr/u16-strnlen'.
20700         * modules/unistr/u16-strnlen-tests: New file.
20701         * tests/unistr/test-u16-strnlen.c: New file.
20702
20703         Tests for module 'unistr/u8-strnlen'.
20704         * modules/unistr/u8-strnlen-tests: New file.
20705         * tests/unistr/test-u8-strnlen.c: New file.
20706         * tests/unistr/test-strnlen.h: New file.
20707
20708         Tests for module 'unistr/u32-strlen'.
20709         * modules/unistr/u32-strlen-tests: New file.
20710         * tests/unistr/test-u32-strlen.c: New file.
20711
20712         Tests for module 'unistr/u16-strlen'.
20713         * modules/unistr/u16-strlen-tests: New file.
20714         * tests/unistr/test-u16-strlen.c: New file.
20715
20716         Tests for module 'unistr/u8-strlen'.
20717         * modules/unistr/u8-strlen-tests: New file.
20718         * tests/unistr/test-u8-strlen.c: New file.
20719
20720         Tests for module 'unistr/u32-prev'.
20721         * modules/unistr/u32-prev-tests: New file.
20722         * tests/unistr/test-u32-prev.c: New file.
20723
20724         Tests for module 'unistr/u16-prev'.
20725         * modules/unistr/u16-prev-tests: New file.
20726         * tests/unistr/test-u16-prev.c: New file.
20727
20728         Tests for module 'unistr/u8-prev'.
20729         * modules/unistr/u8-prev-tests: New file.
20730         * tests/unistr/test-u8-prev.c: New file.
20731
20732         Tests for module 'unistr/u32-next'.
20733         * modules/unistr/u32-next-tests: New file.
20734         * tests/unistr/test-u32-next.c: New file.
20735
20736         Tests for module 'unistr/u16-next'.
20737         * modules/unistr/u16-next-tests: New file.
20738         * tests/unistr/test-u16-next.c: New file.
20739
20740         Tests for module 'unistr/u8-next'.
20741         * modules/unistr/u8-next-tests: New file.
20742         * tests/unistr/test-u8-next.c: New file.
20743
20744         Tests for module 'unistr/u32-strmbtouc'.
20745         * modules/unistr/u32-strmbtouc-tests: New file.
20746         * tests/unistr/test-u32-strmbtouc.c: New file.
20747
20748         Tests for module 'unistr/u16-strmbtouc'.
20749         * modules/unistr/u16-strmbtouc-tests: New file.
20750         * tests/unistr/test-u16-strmbtouc.c: New file.
20751
20752         Tests for module 'unistr/u8-strmbtouc'.
20753         * modules/unistr/u8-strmbtouc-tests: New file.
20754         * tests/unistr/test-u8-strmbtouc.c: New file.
20755
20756         Tests for module 'unistr/u32-strmblen'.
20757         * modules/unistr/u32-strmblen-tests: New file.
20758         * tests/unistr/test-u32-strmblen.c: New file.
20759
20760         Tests for module 'unistr/u16-strmblen'.
20761         * modules/unistr/u16-strmblen-tests: New file.
20762         * tests/unistr/test-u16-strmblen.c: New file.
20763
20764         Tests for module 'unistr/u8-strmblen'.
20765         * modules/unistr/u8-strmblen-tests: New file.
20766         * tests/unistr/test-u8-strmblen.c: New file.
20767
20768         Tests for module 'unistr/u32-cpy-alloc'.
20769         * modules/unistr/u32-cpy-alloc-tests: New file.
20770         * tests/unistr/test-u32-cpy-alloc.c: New file.
20771
20772         Tests for module 'unistr/u16-cpy-alloc'.
20773         * modules/unistr/u16-cpy-alloc-tests: New file.
20774         * tests/unistr/test-u16-cpy-alloc.c: New file.
20775
20776         Tests for module 'unistr/u8-cpy-alloc'.
20777         * modules/unistr/u8-cpy-alloc-tests: New file.
20778         * tests/unistr/test-u8-cpy-alloc.c: New file.
20779         * tests/unistr/test-cpy-alloc.h: New file.
20780
20781         Tests for module 'unistr/u32-mbsnlen'.
20782         * modules/unistr/u32-mbsnlen-tests: New file.
20783         * tests/unistr/test-u32-mbsnlen.c: New file.
20784
20785         Tests for module 'unistr/u16-mbsnlen'.
20786         * modules/unistr/u16-mbsnlen-tests: New file.
20787         * tests/unistr/test-u16-mbsnlen.c: New file.
20788
20789         Tests for module 'unistr/u8-mbsnlen'.
20790         * modules/unistr/u8-mbsnlen-tests: New file.
20791         * tests/unistr/test-u8-mbsnlen.c: New file.
20792
20793         Tests for module 'unistr/u32-chr'.
20794         * modules/unistr/u32-chr-tests: New file.
20795         * tests/unistr/test-u32-chr.c: New file.
20796
20797         Tests for module 'unistr/u16-chr'.
20798         * modules/unistr/u16-chr-tests: New file.
20799         * tests/unistr/test-u16-chr.c: New file.
20800
20801         Tests for module 'unistr/u8-chr'.
20802         * modules/unistr/u8-chr-tests: New file.
20803         * tests/unistr/test-u8-chr.c: New file.
20804         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20805
20806         Tests for module 'unistr/u32-cmp2'.
20807         * modules/unistr/u32-cmp2-tests: New file.
20808         * tests/unistr/test-u32-cmp2.c: New file.
20809
20810         Tests for module 'unistr/u16-cmp2'.
20811         * modules/unistr/u16-cmp2-tests: New file.
20812         * tests/unistr/test-u16-cmp2.c: New file.
20813
20814         Tests for module 'unistr/u8-cmp2'.
20815         * modules/unistr/u8-cmp2-tests: New file.
20816         * tests/unistr/test-u8-cmp2.c: New file.
20817         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20818
20819         Tests for module 'unistr/u32-cmp'.
20820         * modules/unistr/u32-cmp-tests: New file.
20821         * tests/unistr/test-u32-cmp.c: New file.
20822
20823         Tests for module 'unistr/u16-cmp'.
20824         * modules/unistr/u16-cmp-tests: New file.
20825         * tests/unistr/test-u16-cmp.c: New file.
20826
20827         Tests for module 'unistr/u8-cmp'.
20828         * modules/unistr/u8-cmp-tests: New file.
20829         * tests/unistr/test-u8-cmp.c: New file.
20830         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20831
20832         Tests for module 'unistr/u32-set'.
20833         * modules/unistr/u32-set-tests: New file.
20834         * tests/unistr/test-u32-set.c: New file.
20835
20836         Tests for module 'unistr/u16-set'.
20837         * modules/unistr/u16-set-tests: New file.
20838         * tests/unistr/test-u16-set.c: New file.
20839
20840         Tests for module 'unistr/u8-set'.
20841         * modules/unistr/u8-set-tests: New file.
20842         * tests/unistr/test-u8-set.c: New file.
20843         * tests/unistr/test-set.h: New file.
20844
20845         Tests for module 'unistr/u32-move'.
20846         * modules/unistr/u32-move-tests: New file.
20847         * tests/unistr/test-u32-move.c: New file.
20848
20849         Tests for module 'unistr/u16-move'.
20850         * modules/unistr/u16-move-tests: New file.
20851         * tests/unistr/test-u16-move.c: New file.
20852
20853         Tests for module 'unistr/u8-move'.
20854         * modules/unistr/u8-move-tests: New file.
20855         * tests/unistr/test-u8-move.c: New file.
20856         * tests/unistr/test-move.h: New file.
20857
20858         Tests for module 'unistr/u32-cpy'.
20859         * modules/unistr/u32-cpy-tests: New file.
20860         * tests/unistr/test-u32-cpy.c: New file.
20861
20862         Tests for module 'unistr/u16-cpy'.
20863         * modules/unistr/u16-cpy-tests: New file.
20864         * tests/unistr/test-u16-cpy.c: New file.
20865
20866         Tests for module 'unistr/u8-cpy'.
20867         * modules/unistr/u8-cpy-tests: New file.
20868         * tests/unistr/test-u8-cpy.c: New file.
20869         * tests/unistr/test-cpy.h: New file.
20870
20871 2010-01-09  Bruno Haible  <bruno@clisp.org>
20872
20873         Tests for module 'unistr/u32-uctomb'.
20874         * modules/unistr/u32-uctomb-tests: New file.
20875         * tests/unistr/test-u32-uctomb.c: New file.
20876
20877         Tests for module 'unistr/u16-uctomb'.
20878         * modules/unistr/u16-uctomb-tests: New file.
20879         * tests/unistr/test-u16-uctomb.c: New file.
20880
20881         Tests for module 'unistr/u8-uctomb'.
20882         * modules/unistr/u8-uctomb-tests: New file.
20883         * tests/unistr/test-u8-uctomb.c: New file.
20884
20885         Tests for module 'unistr/u32-mbtoucr'.
20886         * modules/unistr/u32-mbtoucr-tests: New file.
20887         * tests/unistr/test-u32-mbtoucr.c: New file.
20888
20889         Tests for module 'unistr/u16-mbtoucr'.
20890         * modules/unistr/u16-mbtoucr-tests: New file.
20891         * tests/unistr/test-u16-mbtoucr.c: New file.
20892
20893         Tests for module 'unistr/u8-mbtoucr'.
20894         * modules/unistr/u8-mbtoucr-tests: New file.
20895         * tests/unistr/test-u8-mbtoucr.c: New file.
20896
20897         Tests for module 'unistr/u32-mbtouc'.
20898         * modules/unistr/u32-mbtouc-tests: New file.
20899         * tests/unistr/test-u32-mbtouc.c: New file.
20900
20901         Tests for module 'unistr/u16-mbtouc'.
20902         * modules/unistr/u16-mbtouc-tests: New file.
20903         * tests/unistr/test-u16-mbtouc.c: New file.
20904
20905         Tests for module 'unistr/u8-mbtouc'.
20906         * modules/unistr/u8-mbtouc-tests: New file.
20907         * tests/unistr/test-u8-mbtouc.c: New file.
20908
20909         Tests for module 'unistr/u32-mbtouc-unsafe'.
20910         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20911         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20912         * tests/unistr/test-u32-mbtouc.h: New file.
20913
20914         Tests for module 'unistr/u16-mbtouc-unsafe'.
20915         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20916         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20917         * tests/unistr/test-u16-mbtouc.h: New file.
20918
20919         Tests for module 'unistr/u8-mbtouc-unsafe'.
20920         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20921         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20922         * tests/unistr/test-u8-mbtouc.h: New file.
20923
20924         Tests for module 'unistr/u32-mblen'.
20925         * modules/unistr/u32-mblen-tests: New file.
20926         * tests/unistr/test-u32-mblen.c: New file.
20927
20928         Tests for module 'unistr/u16-mblen'.
20929         * modules/unistr/u16-mblen-tests: New file.
20930         * tests/unistr/test-u16-mblen.c: New file.
20931
20932         Tests for module 'unistr/u8-mblen'.
20933         * modules/unistr/u8-mblen-tests: New file.
20934         * tests/unistr/test-u8-mblen.c: New file.
20935
20936         Tests for module 'unistr/u32-to-u16'.
20937         * modules/unistr/u32-to-u16-tests: New file.
20938         * tests/unistr/test-u32-to-u16.c: New file.
20939
20940         Tests for module 'unistr/u32-to-u8'.
20941         * modules/unistr/u32-to-u8-tests: New file.
20942         * tests/unistr/test-u32-to-u8.c: New file.
20943
20944         Tests for module 'unistr/u16-to-u32'.
20945         * modules/unistr/u16-to-u32-tests: New file.
20946         * tests/unistr/test-u16-to-u32.c: New file.
20947
20948         Tests for module 'unistr/u16-to-u8'.
20949         * modules/unistr/u16-to-u8-tests: New file.
20950         * tests/unistr/test-u16-to-u8.c: New file.
20951
20952         Tests for module 'unistr/u8-to-u32'.
20953         * modules/unistr/u8-to-u32-tests: New file.
20954         * tests/unistr/test-u8-to-u32.c: New file.
20955
20956         Tests for module 'unistr/u8-to-u16'.
20957         * modules/unistr/u8-to-u16-tests: New file.
20958         * tests/unistr/test-u8-to-u16.c: New file.
20959
20960         Tests for module 'unistr/u32-check'.
20961         * modules/unistr/u32-check-tests: New file.
20962         * tests/unistr/test-u32-check.c: New file.
20963
20964         Tests for module 'unistr/u16-check'.
20965         * modules/unistr/u16-check-tests: New file.
20966         * tests/unistr/test-u16-check.c: New file.
20967
20968         Tests for module 'unistr/u8-check'.
20969         * modules/unistr/u8-check-tests: New file.
20970         * tests/unistr/test-u8-check.c: New file.
20971
20972         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20973         (category_equals): New function.
20974         (main): Add more tests.
20975         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20976
20977         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20978
20979 2010-01-10  Bruno Haible  <bruno@clisp.org>
20980
20981         unistr/u*-strcoll: Try harder to distinguish different strings.
20982         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20983         compare s1 and s2 to see if they are different.
20984
20985 2010-01-10  Bruno Haible  <bruno@clisp.org>
20986
20987         unistr/u*-stpncpy: Fix the return value.
20988         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20989         description of the return value consistent with stpncpy in glibc.
20990         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20991         written non-NUL unit.
20992
20993 2010-01-10  Bruno Haible  <bruno@clisp.org>
20994
20995         unistr/u*-next: Add missing dependencies.
20996         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20997         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20998         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20999
21000 2010-01-10  Bruno Haible  <bruno@clisp.org>
21001
21002         unistr/u8-mbsnlen: Fix return value for incomplete character.
21003         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21004         u8_mblen.
21005         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21006         Remove unistr/u8-mblen.
21007         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21008         u16_mblen.
21009         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21010         Remove unistr/u16-mblen.
21011
21012 2010-01-10  Bruno Haible  <bruno@clisp.org>
21013
21014         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21015         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21016         Reported by Brian Gough <bjg@gnu.org> and
21017         Chris Clayton <chris2553@googlemail.com> via
21018         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21019
21020 2010-01-09  Bruno Haible  <bruno@clisp.org>
21021
21022         unistr/u16-to-u32: Reject invalid input.
21023         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21024         u16_mbtouc.
21025         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21026         Remove unistr/u16-mbtouc.
21027
21028         unistr/u16-to-u8: Reject invalid input.
21029         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21030         u16_mbtouc.
21031         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21032         Remove unistr/u16-mbtouc.
21033
21034         unistr/u8-to-u32: Reject invalid input.
21035         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21036         u8_mbtouc.
21037         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21038         Remove unistr/u8-mbtouc.
21039
21040         unistr/u8-to-u16: Reject invalid input.
21041         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21042         u8_mbtouc.
21043         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21044         Remove unistr/u8-mbtouc.
21045
21046 2010-01-09  Bruno Haible  <bruno@clisp.org>
21047
21048         Tests for module 'getlogin'.
21049         * modules/getlogin-tests: New file.
21050         * tests/test-getlogin.c: New file.
21051
21052         New module 'getlogin'.
21053         * lib/unistd.in.h (getlogin): New declaration.
21054         * lib/getlogin.c: New file.
21055         * m4/getlogin.m4: New file.
21056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21057         HAVE_GETLOGIN.
21058         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21059         HAVE_GETLOGIN.
21060         * modules/getlogin: New file.
21061         * doc/posix-functions/getlogin.texi: Mention the new module.
21062         Reported by John W. Eaton <jwe@gnu.org>.
21063
21064 2010-01-09  Bruno Haible  <bruno@clisp.org>
21065
21066         getlogin_r: Support for native Windows.
21067         * lib/getlogin_r.c: Include <windows.h>
21068         (getlogin_r): Implement for native Windows.
21069         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21070         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21071         via John W. Eaton <jwe@gnu.org>.
21072
21073 2010-01-09  Bruno Haible  <bruno@clisp.org>
21074
21075         getlogin_r: Small fixes.
21076         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21077         succeeds.
21078         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21079         before testing whether getlogin_r is declared. No need to set
21080         HAVE_DECL_GETLOGIN_R to 1.
21081         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21082
21083 2010-01-09  Bruno Haible  <bruno@clisp.org>
21084
21085         * lib/unistd.in.h (getlogin_r): Add comment.
21086
21087 2010-01-09  Bruno Haible  <bruno@clisp.org>
21088
21089         Tests for module 'getlogin_r'.
21090         * modules/getlogin_r-tests: New file.
21091         * tests/test-getlogin_r.c: New file.
21092
21093 2010-01-09  Jim Meyering  <meyering@redhat.com>
21094
21095         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21096         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21097         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21098
21099 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21100
21101         * lib/dup2.c (rpl_dup2): Improve comment.
21102
21103 2010-01-08  Eric Blake  <ebb9@byu.net>
21104
21105         maint.mk: allow packages to add makefile @@ exceptions
21106         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21107         (sc_makefile_check): Rename...
21108         (sc_makefile_at_at_check): ...to this, and use hook.
21109
21110         dup2: work around mingw bug
21111         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21112         Reported by Simon Josefsson.
21113
21114 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21115
21116         glob: Fix C++ compilation.
21117         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21118         C++.
21119
21120 2010-01-07  Bruno Haible  <bruno@clisp.org>
21121
21122         Fix indentation of wctype.in.h, broken since 2007-01-06.
21123         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21124
21125 2010-01-07  Bruno Haible  <bruno@clisp.org>
21126
21127         mbslen: Avoid collision with system function.
21128         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21129         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21130         * m4/mbslen.m4: New file.
21131         * modules/mbslen (Files): Add it.
21132         (configure.ac): Invoke gl_MBSLEN.
21133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21134         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21135         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21136         via Ian Beckwith <ianb@erislabs.net>.
21137
21138 2010-01-07  Bruno Haible  <bruno@clisp.org>
21139
21140         dirent: Document the last fix.
21141         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21142
21143 2010-01-07  Bruno Haible  <bruno@clisp.org>
21144
21145         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21146         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21147         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21148         va_list are defined.
21149         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21150         Reported by Eric Blake.
21151
21152 2010-01-07  Bruno Haible  <bruno@clisp.org>
21153
21154         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21155         * modules/xlist (Depends-on): Add 'list',
21156         * modules/xoset (Depends-on): Add 'oset'.
21157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21158
21159 2010-01-07  Bruno Haible  <bruno@clisp.org>
21160
21161         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21162         * doc/posix-functions/strncasecmp.texi: Likewise.
21163
21164 2010-01-07  Bruno Haible  <bruno@clisp.org>
21165
21166         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21167
21168 2010-01-07  John W. Eaton  <jwe@octave.org>
21169
21170         wctype: allow C++ use
21171         * lib/wctype.in.h: Add extern "C" block for C++.
21172
21173 2010-01-06  Eric Blake  <ebb9@byu.net>
21174
21175         maint.mk: detect incorrect GFDL usage
21176         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21177
21178 2010-01-06  Jim Meyering  <meyering@redhat.com>
21179         and Eric Blake  <ebb9@byu.net>
21180
21181         maint.mk: ignore multi-line copyright in NEWS
21182         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21183
21184 2010-01-06  Eric Blake  <ebb9@byu.net>
21185
21186         select: add missing dependency
21187         * modules/select-tests (Depends-on): Move sockets dependency...
21188         * modules/select (Depends-on): ...here.
21189         Reported by Ian Beckwith.
21190
21191         doc: regenerate INSTALL
21192         * doc/INSTALL: Reflect recent autoconf update.
21193         * doc/INSTALL.ISO: Likewise.
21194         * doc/INSTALL.UTF-8: Likewise.
21195
21196         pread: fix compilation on glibc
21197         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21198         Reported by Ralf Wildenhues.
21199
21200         dirent: fix test failure
21201         * lib/dirent.in.h (includes): Guarantee ino_t.
21202         Reported by Ralf Wildenhues.
21203
21204 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21205
21206         linkat, renameat: avoid bad free
21207         * lib/at-func2.c (at_func2): Fix typo.
21208         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21209
21210 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21211
21212         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21213         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21214         to avoid failure of symlink test later.
21215
21216 2010-01-06  Eric Blake  <ebb9@byu.net>
21217
21218         stdio, unistd: guarantee ssize_t
21219         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21220         2008 are exposed when needed.
21221         * lib/stdio.in.h (includes): Likewise.
21222         Reported by Ralf Wildenhues.
21223
21224 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21225
21226         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21227         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21228         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21229
21230 2010-01-06  Jim Meyering  <meyering@redhat.com>
21231
21232         readtokens: this module *does* require xalloc.h
21233         It uses only functions that were omitted by the old syntax-check rule.
21234         * lib/readtokens.c: Include "xalloc.h" once again.
21235         * modules/readtokens (Depends-on): Add xalloc.
21236         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21237
21238 2010-01-05  Eric Blake  <ebb9@byu.net>
21239
21240         maint: support 'make announcement' from a VPATH build
21241         * top/maint.mk (announcement): Look for correct NEWS file.
21242
21243 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21244
21245         utimens (fdutimens): ignore a negative FD, per contract
21246         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21247         when we have a valid file descriptor.  Otherwise, using a brand
21248         new glibc (with just-patched futimens that now fails with EBADF)
21249         would cause this function to fail with ENOSYS.
21250         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21251         See also http://bugzilla.redhat.com/552320.
21252
21253 2010-01-05  Eric Blake  <ebb9@byu.net>
21254
21255         strcase: document what it provides
21256         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21257         gnulib module.
21258         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21259         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21260
21261 2010-01-05  Jim Meyering  <meyering@redhat.com>
21262
21263         maint: remove useless inclusions of "xalloc.h"
21264         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21265         * lib/readtokens.c: Likewise.
21266         * lib/same.c: Likewise.
21267         * modules/getloadavg (Depends-on): Remove xalloc.
21268         * modules/readtokens: Likewise.
21269         * modules/same: Likewise.
21270
21271         maint.mk: include 4 more function names in alloca.h-checking regexp
21272         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21273         regexp.  Before, we would give a false-positive (saying alloca.h
21274         is included unnecessarily) when the only uses involved omitted symbols.
21275
21276         xalloc.h: use consistent formatting
21277         * lib/xalloc.h: Move declarations to start in the first column.
21278
21279 2010-01-05  Eric Blake  <ebb9@byu.net>
21280
21281         mkdir: avoid xalloc
21282         * lib/mkdir.c (includes): Drop unused header.
21283         Reported by John W. Eaton.
21284
21285 2010-01-04  Jim Meyering  <meyering@redhat.com>
21286
21287         nl_langinfo: avoid configure-time syntax error
21288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21289         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21290         the empty string.  Don't let that provoke a shell syntax error.
21291
21292         regcomp, regexec, fnmatch: avoid array bounds read error
21293         * lib/regcomp.c (build_equiv_class): From glibc:
21294         Use only the low 24 bits of a findidx return value as an index
21295         into the weights array.  Patch by Ulrich Drepper:
21296         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21297         * lib/regexec.c (check_node_accept_bytes): Likewise.
21298         * lib/fnmatch_loop.c (FCT): Likewise.
21299
21300         regcomp: skip collseq lookup when there are no rules
21301         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21302         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21303
21304         regcomp: recognize ill-formed { } expressions
21305         * lib/regcomp.c (parse_dup_op): From glibc:
21306         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21307
21308         regcomp: fix typo in comment
21309         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21310         s/satisfy/satisfies/.
21311
21312         regcomp: sync from glibc: remove dead store
21313         * lib/regcomp.c (duplicate_node_closure): Remove useless
21314         search_duplicated_node call and dead store.
21315
21316         regcomp: sync from glibc; always use nl_langinfo
21317         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21318         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21319         * modules/regex (Depends-on): Add nl_langinfo.
21320
21321 2010-01-04  Eric Blake  <ebb9@byu.net>
21322
21323         fdopendir: fix configure test
21324         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21325
21326 2010-01-01  Bruno Haible  <bruno@clisp.org>
21327
21328         wchar: Remove unused configure check.
21329         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21330
21331 2010-01-01  Eric Blake  <ebb9@byu.net>
21332
21333         headers: make check of system header explicit
21334         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21335         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21336         ourselves.
21337         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21341         internals.
21342         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21343         missing.
21344         Suggested by Bruno Haible.
21345
21346 2010-01-01  Jim Meyering  <meyering@redhat.com>
21347
21348         ChangeLog: tweak to eliminate unnecessary copyright line
21349         * ChangeLog: Remove a copyright line that was mistakenly updated
21350         by today's update-copyright run.  Reported by Eric Blake.
21351
21352         test-update-copyright: don't let envvar setting cause test failure
21353         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21354
21355 2010-01-01  Bruno Haible  <bruno@clisp.org>
21356
21357         localename: Avoid gcc warning.
21358         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21359         function if it is not used.
21360
21361 2010-01-01  Jim Meyering  <meyering@redhat.com>
21362
21363         update nearly all FSF copyright year lists to include 2010
21364         Use the same procedure as for 2009, outlined in
21365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21366
21367         version-etc: set COPYRIGHT_YEAR to 2010
21368         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21369
21370 2009-12-31  Eric Blake  <ebb9@byu.net>
21371
21372         doc: correct availability of cygwin 1.5.x getopt
21373         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21374         variables.
21375         * doc/posix-functions/opterr.texi (opterr): Likewise.
21376         * doc/posix-functions/optind.texi (optind): Likewise.
21377         * doc/posix-functions/optopt.texi (optopt): Likewise.
21378         * doc/posix-functions/tzname.texi (tzname): Likewise.
21379
21380         openat: update maintainer
21381         * modules/openat (Maintainer): Add myself.
21382
21383         utimens: avoid shadowing warning
21384         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21385         buffers into one, to avoid shadowing, as well as avoiding a
21386         redundant stat.
21387         Reported by Jim Meyering.
21388
21389         test-dup2: avoid compiler warning
21390         * tests/test-dup2.c (is_inheritable): Only define if used.
21391
21392 2010-01-01  Bruno Haible  <bruno@clisp.org>
21393
21394         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21395         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21396         defined, use wctomb instead of wcrtomb.
21397
21398 2010-01-01  Bruno Haible  <bruno@clisp.org>
21399
21400         iconv: Reject native Solaris iconv.
21401         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21402         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21403
21404 2009-12-31  Bruno Haible  <bruno@clisp.org>
21405
21406         * tests/test-signal.c (main): Remove test of 'SIG'.
21407
21408 2009-12-31  Bruno Haible  <bruno@clisp.org>
21409
21410         spawn: Fix incomplete fix.
21411         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21412         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21413         warnings for GNULIB_POSIXCHECK again.
21414         Reported by Eric Blake.
21415
21416 2009-12-31  Bruno Haible  <bruno@clisp.org>
21417
21418         Avoid namespace pollution on glibc systems.
21419         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21420         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21421         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21422         glibc systems.
21423
21424 2009-12-31  Bruno Haible  <bruno@clisp.org>
21425
21426         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21427         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21428         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21429         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21430         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21431         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21432         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21433
21434 2009-12-31  Bruno Haible  <bruno@clisp.org>
21435
21436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21437         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21438         afterwards.
21439
21440 2009-12-31  Bruno Haible  <bruno@clisp.org>
21441
21442         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21443         SYS_UTSNAME_H.
21444
21445 2009-12-31  Bruno Haible  <bruno@clisp.org>
21446
21447         spawn: Fix misapplied patch.
21448         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21449         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21450         warnings for GNULIB_POSIXCHECK.
21451
21452 2009-12-31  Bruno Haible  <bruno@clisp.org>
21453
21454         times: Update after sys_times changed.
21455         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21456         * modules/times (Files): Add it.
21457         (configure.ac): Invoke gl_FUNC_TIMES.
21458
21459 2009-12-31  Bruno Haible  <bruno@clisp.org>
21460
21461         Use AC_C_INLINE where necessary.
21462         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21463         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21465         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21466         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21467         * m4/mbiter.m4 (gl_MBITER): Likewise.
21468         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21469         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21470         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21471         * modules/u64 (configure.ac): Likewise.
21472
21473 2009-12-31  Bruno Haible  <bruno@clisp.org>
21474
21475         Use AC_C_INLINE instead of module 'inline' where possible.
21476         * modules/inline (Description): Clarify purpose.
21477         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21478         * modules/count-one-bits (Depends-on): Remove inline.
21479         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21480         * modules/openat (Depends-on): Remove inline.
21481         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21482         instead of depending on module 'inline'.
21483         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21484         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21485         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21486         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21487         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21488         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21489         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21490         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21491         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21492         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21493         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21494         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21495         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21496         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21497         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21498         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21499         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21500         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21501         Likewise.
21502         * modules/unictype/property-ascii-hex-digit (Depends-on,
21503         configure.ac): Likewise.
21504         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21505         configure.ac): Likewise.
21506         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21507         configure.ac): Likewise.
21508         * modules/unictype/property-bidi-block-separator (Depends-on,
21509         configure.ac): Likewise.
21510         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21511         configure.ac): Likewise.
21512         * modules/unictype/property-bidi-common-separator (Depends-on,
21513         configure.ac): Likewise.
21514         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21515         Likewise.
21516         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21517         configure.ac): Likewise.
21518         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21519         configure.ac): Likewise.
21520         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21521         configure.ac): Likewise.
21522         * modules/unictype/property-bidi-european-digit (Depends-on,
21523         configure.ac): Likewise.
21524         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21525         configure.ac): Likewise.
21526         * modules/unictype/property-bidi-left-to-right (Depends-on,
21527         configure.ac): Likewise.
21528         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21529         configure.ac): Likewise.
21530         * modules/unictype/property-bidi-other-neutral (Depends-on,
21531         configure.ac): Likewise.
21532         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21533         Likewise.
21534         * modules/unictype/property-bidi-segment-separator (Depends-on,
21535         configure.ac): Likewise.
21536         * modules/unictype/property-bidi-whitespace (Depends-on,
21537         configure.ac): Likewise.
21538         * modules/unictype/property-combining (Depends-on, configure.ac):
21539         Likewise.
21540         * modules/unictype/property-composite (Depends-on, configure.ac):
21541         Likewise.
21542         * modules/unictype/property-currency-symbol (Depends-on,
21543         configure.ac): Likewise.
21544         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21545         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21546         Likewise.
21547         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21548         configure.ac): Likewise.
21549         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21550         Likewise.
21551         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21552         Likewise.
21553         * modules/unictype/property-extender (Depends-on, configure.ac):
21554         Likewise.
21555         * modules/unictype/property-format-control (Depends-on, configure.ac):
21556         Likewise.
21557         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21558         Likewise.
21559         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21560         Likewise.
21561         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21562         Likewise.
21563         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21564         Likewise.
21565         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21566         Likewise.
21567         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21568         Likewise.
21569         * modules/unictype/property-id-start (Depends-on, configure.ac):
21570         Likewise.
21571         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21572         Likewise.
21573         * modules/unictype/property-ids-binary-operator (Depends-on,
21574         configure.ac): Likewise.
21575         * modules/unictype/property-ids-trinary-operator (Depends-on,
21576         configure.ac): Likewise.
21577         * modules/unictype/property-ignorable-control (Depends-on,
21578         configure.ac): Likewise.
21579         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21580         Likewise.
21581         * modules/unictype/property-join-control (Depends-on, configure.ac):
21582         Likewise.
21583         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21584         Likewise.
21585         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21586         Likewise.
21587         * modules/unictype/property-logical-order-exception (Depends-on,
21588         configure.ac): Likewise.
21589         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21590         Likewise.
21591         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21592         * modules/unictype/property-non-break (Depends-on, configure.ac):
21593         Likewise.
21594         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21595         Likewise.
21596         * modules/unictype/property-numeric (Depends-on, configure.ac):
21597         Likewise.
21598         * modules/unictype/property-other-alphabetic (Depends-on,
21599         configure.ac): Likewise.
21600         * modules/unictype/property-other-default-ignorable-code-point
21601         (Depends-on, configure.ac): Likewise.
21602         * modules/unictype/property-other-grapheme-extend (Depends-on,
21603         configure.ac): Likewise.
21604         * modules/unictype/property-other-id-continue (Depends-on,
21605         configure.ac): Likewise.
21606         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21607         Likewise.
21608         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21609         Likewise.
21610         * modules/unictype/property-other-math (Depends-on, configure.ac):
21611         Likewise.
21612         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21613         Likewise.
21614         * modules/unictype/property-paired-punctuation (Depends-on,
21615         configure.ac): Likewise.
21616         * modules/unictype/property-paragraph-separator (Depends-on,
21617         configure.ac): Likewise.
21618         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21619         Likewise.
21620         * modules/unictype/property-pattern-white-space (Depends-on,
21621         configure.ac): Likewise.
21622         * modules/unictype/property-private-use (Depends-on, configure.ac):
21623         Likewise.
21624         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21625         Likewise.
21626         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21627         Likewise.
21628         * modules/unictype/property-radical (Depends-on, configure.ac):
21629         Likewise.
21630         * modules/unictype/property-sentence-terminal (Depends-on,
21631         configure.ac): Likewise.
21632         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21633         Likewise.
21634         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21635         * modules/unictype/property-terminal-punctuation (Depends-on,
21636         configure.ac): Likewise.
21637         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21638         Likewise.
21639         * modules/unictype/property-unassigned-code-value (Depends-on,
21640         configure.ac): Likewise.
21641         * modules/unictype/property-unified-ideograph (Depends-on,
21642         configure.ac): Likewise.
21643         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21644         Likewise.
21645         * modules/unictype/property-variation-selector (Depends-on,
21646         configure.ac): Likewise.
21647         * modules/unictype/property-white-space (Depends-on, configure.ac):
21648         Likewise.
21649         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21650         Likewise.
21651         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21652         Likewise.
21653         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21654         Likewise.
21655         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21656         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21657         Likewise.
21658
21659 2009-12-31  Bruno Haible  <bruno@clisp.org>
21660
21661         Remove unnecessary AC_C_INLINE invocation.
21662         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21663         since 2009-08-21.
21664
21665 2009-12-31  Jim Meyering  <meyering@redhat.com>
21666
21667         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21668         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21669         With this change, we can all remove the gpg_key_ID = ... definition
21670         from our respective cfg.mk files.
21671
21672         maint.mk: create announcement template in ~/, not in /tmp
21673         * top/maint.mk (emit_upload_commands): Adjust.
21674         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21675         Remove temporary file, .ci-msg.
21676
21677 2009-12-31  Eric Blake  <ebb9@byu.net>
21678
21679         link-warning: always build headers with link warnings
21680         * modules/arpa_inet (Makefile.am): Always build replacement
21681         header.
21682         * modules/ctype (Makefile.am): Likewise.
21683         * modules/dirent (Makefile.am): Likewise.
21684         * modules/inttypes (Makefile.am): Likewise.
21685         * modules/langinfo (Makefile.am): Likewise.
21686         * modules/locale (Makefile.am): Likewise.
21687         * modules/spawn (Makefile.am): Likewise.
21688         * modules/sys_file (Makefile.am): Likewise.
21689         * modules/sys_ioctl (Makefile.am): Likewise.
21690         * modules/sys_select (Makefile.am): Likewise.
21691         * modules/sys_socket (Makefile.am): Likewise.
21692         * modules/sys_times (Makefile.am): Likewise.
21693         * modules/sys_utsname (Makefile.am): Likewise.
21694         * modules/sys_wait (Makefile.am): Likewise.
21695         * modules/wchar (Makefile.am): Likewise.
21696         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21697         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21698         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21699         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21700         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21701         Likewise.
21702         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21703         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21704         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21705         Likewise.
21706         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21707         Likewise.
21708         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21710         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21712         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21713         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21714         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21715         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21716         (gl_WCHAR_H_DEFAULTS): Likewise.
21717
21718 2009-12-31  Eric Blake  <ebb9@byu.net>
21719
21720         signal, spawn: use link warnings
21721         * lib/signal.in.h (sigset_t): Make unconditional.
21722         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21723         (sigpending, sigprocmask, sigaction): Add link warnings.
21724         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21725         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21726         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21727         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21728         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21729         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21730         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21731         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21732         (posix_spawn_file_actions_destroy)
21733         (posix_spawn_file_actions_addopen)
21734         (posix_spawn_file_actions_addclose)
21735         (posix_spawn_file_actions_adddup2): Likewise.
21736         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21737         * tests/test-signal.c (main): Enhance test.
21738
21739         spawn: improve wrapper support
21740         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21741         (gl_SPAWN_H_DEFAULTS): New defaults.
21742         * modules/spawn (Makefile.am): Substitute them.
21743         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21744         Only declare if missing or broken.
21745
21746         sys_times, sys_utsname: use include_next
21747         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21748         header.
21749         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21750         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21751         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21752         * modules/sys_times (Depends-on): Add include_next.
21753         (Makefile.am): Substitute additional values.
21754         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21755         * lib/sys_times.in.h (includes): Include native header, if
21756         available.
21757         * lib/sys_utsname.in.h (includes): Likewise.
21758         * tests/test-sys_times.c (main): Enhance test.
21759
21760         fdutimensat: revert prior patch
21761         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21762         utimens.h.
21763         Reported by Bruno Haible.
21764
21765 2009-12-30  Eric Blake  <ebb9@byu.net>
21766
21767         sys_wait: drop link-warning dependency
21768         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21769         link-warning efforts.
21770         * lib/sys_wait.in.h: Likewise.
21771
21772         fdutimensat: remove bogus dependency
21773         * modules/fdutimensat (Depends-on): Drop inline.
21774
21775         unistd: fix typo
21776         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21777
21778 2009-12-30  Bruno Haible  <bruno@clisp.org>
21779
21780         Fix compilation error with Solaris cc.
21781         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21782         * lib/unicase/u16-is-invariant.c: Likewise.
21783         * lib/unicase/u32-is-invariant.c: Likewise.
21784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21785
21786 2009-12-30  Bruno Haible  <bruno@clisp.org>
21787
21788         Fix test crash.
21789         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21790         locales.
21791         Reported by Simon Josefsson <simon@josefsson.org>.
21792
21793 2009-12-30  Bruno Haible  <bruno@clisp.org>
21794
21795         Fix compilation error on most platforms.
21796         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21797         Reported by Simon Josefsson <simon@josefsson.org>
21798         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21799
21800 2009-12-30  Eric Blake  <ebb9@byu.net>
21801
21802         futimens, utimensat: work around ntfs-3g bug
21803         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21804         a ctime bug is present, and expand workaround to cover ntfs-3g.
21805         * lib/utimens.c (fdutimens, lutimens): Likewise.
21806         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21807         (validate_timespec): Adjust return value.
21808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21809         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21810         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21811
21812 2009-12-29  Eric Blake  <ebb9@byu.net>
21813
21814         link-warning: make usage consistent
21815         * modules/ctype (Depends-on): Add link-warning.
21816         (Makefile.am): Update rules accordingly.
21817         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21818         * modules/locale (Depends-on, Makefile.am): Likewise.
21819         * modules/sys_file (Makefile.am): Likewise.
21820         * modules/getopt-posix (Makefile.am): Delete unused link warning
21821         efforts.
21822         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21823         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21824         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21825         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21826
21827         stdio: remove unused variables
21828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21830         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21831
21832         tests: test more substitute headers
21833         * modules/ctype-tests: New file.
21834         * modules/dirent-tests: Likewise.
21835         * modules/spawn-tests: Likewise.
21836         * modules/sys_file-tests: Likewise.
21837         * modules/sys_ioctl-tests: Likewise.
21838         * modules/sys_wait-tests: Likewise.
21839         * tests/test-ctype.c: Likewise.
21840         * tests/test-dirent.c: Likewise.
21841         * tests/test-spawn.c: Likewise.
21842         * tests/test-sys_file.c: Likewise.
21843         * tests/test-sys_ioctl.c: Likewise.
21844         * tests/test-sys_wait.c: Likewise.
21845         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21846         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21847         whether or not flock is in use.
21848
21849         tests: remove License section from module
21850         * modules/arpa_inet-tests: Remove unneeded section.
21851         * modules/byteswap-tests: Likewise.
21852         * modules/ceilf-tests: Likewise.
21853         * modules/ceill-tests: Likewise.
21854         * modules/crypto/des-tests: Likewise.
21855         * modules/crypto/gc-arcfour-tests: Likewise.
21856         * modules/crypto/gc-arctwo-tests: Likewise.
21857         * modules/crypto/gc-des-tests: Likewise.
21858         * modules/crypto/gc-hmac-md5-tests: Likewise.
21859         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21860         * modules/crypto/gc-md2-tests: Likewise.
21861         * modules/crypto/gc-md4-tests: Likewise.
21862         * modules/crypto/gc-md5-tests: Likewise.
21863         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21864         * modules/crypto/gc-rijndael-tests: Likewise.
21865         * modules/crypto/gc-sha1-tests: Likewise.
21866         * modules/crypto/gc-tests: Likewise.
21867         * modules/crypto/md2-tests: Likewise.
21868         * modules/crypto/md4-tests: Likewise.
21869         * modules/fcntl-h-tests: Likewise.
21870         * modules/floorf-tests: Likewise.
21871         * modules/floorl-tests: Likewise.
21872         * modules/frexp-nolibm-tests: Likewise.
21873         * modules/frexp-tests: Likewise.
21874         * modules/frexpl-nolibm-tests: Likewise.
21875         * modules/frexpl-tests: Likewise.
21876         * modules/getaddrinfo-tests: Likewise.
21877         * modules/inttypes-tests: Likewise.
21878         * modules/isfinite-tests: Likewise.
21879         * modules/isinf-tests: Likewise.
21880         * modules/ldexpl-tests: Likewise.
21881         * modules/locale-tests: Likewise.
21882         * modules/math-tests: Likewise.
21883         * modules/netdb-tests: Likewise.
21884         * modules/netinet_in-tests: Likewise.
21885         * modules/printf-frexp-tests: Likewise.
21886         * modules/printf-frexpl-tests: Likewise.
21887         * modules/priv-set-tests: Likewise.
21888         * modules/random_r-tests: Likewise.
21889         * modules/round-tests: Likewise.
21890         * modules/roundf-tests: Likewise.
21891         * modules/roundl-tests: Likewise.
21892         * modules/search-tests: Likewise.
21893         * modules/select-tests: Likewise.
21894         * modules/signal-tests: Likewise.
21895         * modules/stdbool-tests: Likewise.
21896         * modules/stddef-tests: Likewise.
21897         * modules/stdint-tests: Likewise.
21898         * modules/stdio-tests: Likewise.
21899         * modules/stdlib-tests: Likewise.
21900         * modules/string-tests: Likewise.
21901         * modules/strings-tests: Likewise.
21902         * modules/sys_select-tests: Likewise.
21903         * modules/sys_socket-tests: Likewise.
21904         * modules/sys_stat-tests: Likewise.
21905         * modules/sys_time-tests: Likewise.
21906         * modules/sys_utsname-tests: Likewise.
21907         * modules/sysexits-tests: Likewise.
21908         * modules/time-tests: Likewise.
21909         * modules/trunc-tests: Likewise.
21910         * modules/truncf-tests: Likewise.
21911         * modules/truncl-tests: Likewise.
21912         * modules/tsearch-tests: Likewise.
21913         * modules/unistd-tests: Likewise.
21914         * modules/wchar-tests: Likewise.
21915         * modules/wctype-tests: Likewise.
21916
21917         tests: fix license on several tests
21918         * tests/test-des.c: Update to GPLv3+.
21919         * tests/test-flock.c: Likewise.
21920         * tests/test-fsync.c: Likewise.
21921         * tests/test-futimens.h: Likewise.
21922         * tests/test-gc-arcfour.c: Likewise.
21923         * tests/test-gc-arctwo.c: Likewise.
21924         * tests/test-gc-des.c: Likewise.
21925         * tests/test-gc-hmac-md5.c: Likewise.
21926         * tests/test-gc-hmac-sha1.c: Likewise.
21927         * tests/test-gc-md2.c: Likewise.
21928         * tests/test-gc-md4.c: Likewise.
21929         * tests/test-gc-md5.c: Likewise.
21930         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21931         * tests/test-gc-rijndael.c: Likewise.
21932         * tests/test-gc-sha1.c: Likewise.
21933         * tests/test-gc.c: Likewise.
21934         * tests/test-getcwd.c: Likewise.
21935         * tests/test-link.c: Likewise.
21936         * tests/test-link.h: Likewise.
21937         * tests/test-lutimens.h: Likewise.
21938         * tests/test-md2.c: Likewise.
21939         * tests/test-md4.c: Likewise.
21940         * tests/test-mkdir.h: Likewise.
21941         * tests/test-rename.c: Likewise.
21942         * tests/test-rename.h: Likewise.
21943         * tests/test-safe-alloc.c: Likewise.
21944         * tests/test-utimens-common.h: Likewise.
21945         * tests/test-utimens.h: Likewise.
21946
21947         maint: sync license texts
21948         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21949         * doc/gpl-3.0.texi: Revert copyright year update.
21950         * doc/lgpl-3.0.texi: Likewise.
21951
21952 2009-12-29  Jim Meyering  <meyering@redhat.com>
21953
21954         update nearly all FSF copyright year lists to include 2009
21955         The files named by the following are exempted:
21956             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21957               test -f "$dst" && { echo "$dst"; continue; }
21958               test -d "$dst" || continue
21959               echo "$dst"/$(basename "$src")
21960             done > exempt
21961             git ls-files tests/unictype >> exempt
21962         In the remaining files, convert to all-interval notation if
21963         - there is already at least one year interval like 2000-2003
21964         - the file is maintained by me
21965         - the file is in lib/uni*/, where that style already prevails
21966         Otherwise, use update-copyright's default.
21967
21968 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21969         and Eric Blake  <ebb9@byu.net>
21970
21971         tests: don't require debug system() to pass
21972         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21973         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21974         * tests/test-unlink.h (test_unlink_func): Likewise.
21975         * tests/test-fstatat.c (main): ...into callers.
21976         * tests/test-lstat.c (main): Likewise.
21977         * tests/test-rmdir.c (main): Likewise.
21978         * tests/test-unlink.c (main): Likewise.
21979         * tests/test-unlinkat.c (main): Likewise.
21980         * tests/test-areadlink-with-size.c (main): Don't require a
21981         debug-only system call to pass, aiding cross-testing to mingw.
21982         * tests/test-areadlink.c (main): Likewise.
21983         * tests/test-areadlinkat-with-size.c (main): Likewise.
21984         * tests/test-areadlinkat.c (main): Likewise.
21985         * tests/test-canonicalize-lgpl.c (main): Likewise.
21986         * tests/test-canonicalize.c (main): Likewise.
21987         * tests/test-chown.c (main): Likewise.
21988         * tests/test-fchownat.c (main): Likewise.
21989         * tests/test-lchown.c (main): Likewise.
21990         * tests/test-fdutimensat.c (main): Likewise.
21991         * tests/test-futimens.c (main): Likewise.
21992         * tests/test-link.c (main): Likewise.
21993         * tests/test-linkat.c (main): Likewise.
21994         * tests/test-mkdir.c (main): Likewise.
21995         * tests/test-mkdirat.c (main): Likewise.
21996         * tests/test-mkfifo.c (main): Likewise.
21997         * tests/test-mkfifoat.c (main): Likewise.
21998         * tests/test-mknod.c (main): Likewise.
21999         * tests/test-readlink.c (main): Likewise.
22000         * tests/test-remove.c (main): Likewise.
22001         * tests/test-rename.c (main): Likewise.
22002         * tests/test-renameat.c (main): Likewise.
22003         * tests/test-symlink.c (main): Likewise.
22004         * tests/test-symlinkat.c (main): Likewise.
22005         * tests/test-utimens.c (main): Likewise.
22006         * tests/test-utimensat.c (main): Likewise.
22007
22008 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22009
22010         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22011         on $(UNUSED_PARAMETER_H) to avoid build failure.
22012
22013 2009-12-28  Jim Meyering  <meyering@redhat.com>
22014
22015         update-copyright: you may specify a max. line length other than 72
22016         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22017
22018         maint: use consistent FSF copyright line syntax
22019         * lib/posixtm.c: Add missing comma in FSF copyright line.
22020         * lib/posixtm.h: Likewise.
22021         * lib/getugroups.c: Add missing ", Inc.".
22022
22023         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22024         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22025         FSF copyright line.  Remove trailing blanks.
22026
22027 2009-12-28  Eric Blake  <ebb9@byu.net>
22028
22029         test-dup2: reduce dependencies
22030         * modules/cloexec (Configure.ac): Set witness.
22031         * modules/dup2-tests (Depends-on): Drop cloexec.
22032         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22033         not present.
22034         Suggested by Bruno Haible.
22035
22036 2009-12-26  Bruno Haible  <bruno@clisp.org>
22037
22038         Remove an unneeded dependency.
22039         * modules/fseterr (Depends-on): Remove dup2.
22040
22041 2009-12-26  Eric Blake  <ebb9@byu.net>
22042
22043         tests: use macros.h in more places
22044         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22045         (ASSERT_STREAM): Provide default of stderr.
22046         * tests/test-dirent-safer.c: Include macros.h, using alternate
22047         stream for assertions.
22048         * tests/test-dup-safer.c: Likewise.
22049         * tests/test-freopen-safer.c: Likewise.
22050         * tests/test-getopt.c: Likewise.
22051         * tests/test-openat-safer.c: Likewise.
22052         * tests/test-pipe.c: Likewise.
22053         * tests/test-popen-safer.c: Likewise.
22054         * modules/dirent-safer-tests (Files): Include macros.h.
22055         * modules/unistd-safer-tests (Files): Likewise.
22056         * modules/freopen-safer-tests (Files): Likewise.
22057         * modules/getopt-posix-tests (Files): Likewise.
22058         * modules/openat-safer-tests (Files): Likewise.
22059         * modules/pipe-tests (Files): Likewise.
22060
22061 2009-12-26  Bruno Haible  <bruno@clisp.org>
22062
22063         javacomp: Portability fix.
22064         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22065         that it also works on Solaris.
22066
22067 2009-12-26  Bruno Haible  <bruno@clisp.org>
22068
22069         localename: Fix storage allocation of gl_locale_name_thread's result.
22070         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22071         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22072         all platforms that have 'uselocale'.
22073         (gl_locale_name_thread_unsafe): New function, extracted from
22074         gl_locale_name_thread.
22075         (gl_locale_name_thread): Call struniq on all platforms that have
22076         'uselocale'.
22077         * tests/test-localename.c (test_locale_name_thread): Check that the
22078         resulting strings are permanently allocated.
22079         * modules/localename-tests (Depends-on): Add strdup.
22080
22081 2009-12-26  Bruno Haible  <bruno@clisp.org>
22082
22083         * tests/test-localename.c (categories): Fill in the strings.
22084
22085 2009-12-26  Jim Meyering  <meyering@redhat.com>
22086
22087         isdir: complete the removal of m4/isdir.m4
22088         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22089
22090         isdir: clean up, since at least grep still uses it
22091         * lib/isdir.c: Include "isdir.h".
22092         (S_ISDIR): Remove now-unneeded definition.
22093         * modules/isdir (Files): Add lib/isdir.h.
22094         * lib/isdir.h: New file, with declaration.
22095         * m4/isdir.m4: Remove file -- unneeded.
22096
22097 2009-12-25  Bruno Haible  <bruno@clisp.org>
22098
22099         selinux-h: Make generated .h files standalone.
22100         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22101         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22102         * lib/se-selinux.in.h: Likewise.
22103         * modules/selinux-h (Depends-on): Add unused-parameter.
22104         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22105         selinux/selinux.h and selinux/context.h.
22106         Suggested by Eric Blake.
22107
22108 2009-12-25  Bruno Haible  <bruno@clisp.org>
22109
22110         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22111         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22112         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22113         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22114         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22115
22116 2009-12-24  Bruno Haible  <bruno@clisp.org>
22117
22118         openat: Fix warning.
22119         * lib/openat-proc.c: Include <unistd.h>.
22120
22121 2009-12-24  Bruno Haible  <bruno@clisp.org>
22122
22123         New module 'unused-parameter'.
22124         * build-aux/unused-parameter.h: New file, extracted from earlier
22125         gnulib-common.m4.
22126         * modules/unused-parameter: New file.
22127         * lib/unistr.h: Include unused-parameter.h.
22128         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22129         _GL_UNUSED.
22130         * modules/unistr/base (Depends-on): Add unused-parameter.
22131
22132 2009-12-24  Bruno Haible  <bruno@clisp.org>
22133
22134         Add missing dependencies to 'extensions' module.
22135         * m4/extensions.m4: Add comment.
22136         * modules/accept4 (Depends-on): Add extensions.
22137         * modules/dup3 (Depends-on): Likewise.
22138         * modules/fcntl (Depends-on): Likewise.
22139         * modules/futimens (Depends-on): Likewise.
22140         * modules/mknod (Depends-on): Likewise.
22141         * modules/pipe2 (Depends-on): Likewise.
22142         * modules/stat-time (Depends-on): Likewise.
22143         * modules/strcasestr-simple (Depends-on): Likewise.
22144         * modules/strsignal (Depends-on): Likewise.
22145         * modules/utimensat (Depends-on): Likewise.
22146         * modules/localcharset (Depends-on): Likewise. Needed because of
22147         gl_FCNTL_O_FLAGS.
22148         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22149         AC_TYPE_MBSTATE_T.
22150         * modules/wcsnrtombs (Depends-on): Likewise.
22151         * modules/wcsrtombs (Depends-on): Likewise.
22152
22153 2009-12-24  Bruno Haible  <bruno@clisp.org>
22154
22155         binary-io: Avoid gcc warning due to SET_BINARY.
22156         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22157         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22158
22159 2009-12-24  Bruno Haible  <bruno@clisp.org>
22160
22161         Avoid future namespace pollution on glibc systems.
22162         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22163         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22164         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22165         glibc systems.
22166
22167 2009-12-24  Bruno Haible  <bruno@clisp.org>
22168
22169         Refactor common macros used in tests.
22170         * tests/macros.h: New file.
22171         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22172         and/or <stdlib.h>, if appropriate.
22173         (ASSERT, SIZEOF): Remove macros.
22174         * tests/test-areadlink-with-size.c: Likewise.
22175         * tests/test-areadlinkat.c: Likewise.
22176         * tests/test-areadlinkat-with-size.c: Likewise.
22177         * tests/test-argmatch.c: Likewise.
22178         * tests/test-argv-iter.c: Likewise.
22179         * tests/test-array-mergesort.c: Likewise.
22180         * tests/test-array_list.c: Likewise.
22181         * tests/test-array_oset.c: Likewise.
22182         * tests/test-avltree_list.c: Likewise.
22183         * tests/test-avltree_oset.c: Likewise.
22184         * tests/test-avltreehash_list.c: Likewise.
22185         * tests/test-base64.c: Likewise.
22186         * tests/test-binary-io.c: Likewise.
22187         * tests/test-bitrotate.c: Likewise.
22188         * tests/test-btowc.c: Likewise.
22189         * tests/test-byteswap.c: Likewise.
22190         * tests/test-c-ctype.c: Likewise.
22191         * tests/test-c-stack.c: Likewise.
22192         * tests/test-c-strcasecmp.c: Likewise.
22193         * tests/test-c-strcasestr.c: Likewise.
22194         * tests/test-c-strncasecmp.c: Likewise.
22195         * tests/test-c-strstr.c: Likewise.
22196         * tests/test-canonicalize-lgpl.c: Likewise.
22197         * tests/test-canonicalize.c: Likewise.
22198         * tests/test-carray_list.c: Likewise.
22199         * tests/test-ceilf1.c: Likewise.
22200         * tests/test-ceilf2.c: Likewise.
22201         * tests/test-ceill.c: Likewise.
22202         * tests/test-chown.c: Likewise.
22203         * tests/test-cloexec.c: Likewise.
22204         * tests/test-copy-acl.c: Likewise.
22205         * tests/test-copy-file.c: Likewise.
22206         * tests/test-count-one-bits.c: Likewise.
22207         * tests/test-dprintf-posix.c: Likewise.
22208         * tests/test-dup2.c: Likewise.
22209         * tests/test-dup3.c: Likewise.
22210         * tests/test-duplocale.c: Likewise.
22211         * tests/test-fbufmode.c: Likewise.
22212         * tests/test-fchdir.c: Likewise.
22213         * tests/test-fchownat.c: Likewise.
22214         * tests/test-fcntl-safer.c: Likewise.
22215         * tests/test-fcntl.c: Likewise.
22216         * tests/test-fdopendir.c: Likewise.
22217         * tests/test-fdutimensat.c: Likewise.
22218         * tests/test-fflush2.c: Likewise.
22219         * tests/test-file-has-acl.c: Likewise.
22220         * tests/test-filevercmp.c: Likewise.
22221         * tests/test-flock.c: Likewise.
22222         * tests/test-floorf1.c: Likewise.
22223         * tests/test-floorf2.c: Likewise.
22224         * tests/test-floorl.c: Likewise.
22225         * tests/test-fnmatch.c: Likewise.
22226         * tests/test-fopen.h: Likewise.
22227         * tests/test-fpending.c: Likewise.
22228         * tests/test-fprintf-posix.c: Likewise.
22229         * tests/test-fpurge.c: Likewise.
22230         * tests/test-freadable.c: Likewise.
22231         * tests/test-freadahead.c: Likewise.
22232         * tests/test-freading.c: Likewise.
22233         * tests/test-freadptr.c: Likewise.
22234         * tests/test-freadptr2.c: Likewise.
22235         * tests/test-freadseek.c: Likewise.
22236         * tests/test-freopen.c: Likewise.
22237         * tests/test-frexp.c: Likewise.
22238         * tests/test-frexpl.c: Likewise.
22239         * tests/test-fseek.c: Likewise.
22240         * tests/test-fseeko.c: Likewise.
22241         * tests/test-fstatat.c: Likewise.
22242         * tests/test-fstrcmp.c: Likewise.
22243         * tests/test-fsync.c: Likewise.
22244         * tests/test-ftell.c: Likewise.
22245         * tests/test-ftello.c: Likewise.
22246         * tests/test-func.c: Likewise.
22247         * tests/test-futimens.c: Likewise.
22248         * tests/test-fwritable.c: Likewise.
22249         * tests/test-fwriting.c: Likewise.
22250         * tests/test-getcwd.c: Likewise.
22251         * tests/test-getdate.c: Likewise.
22252         * tests/test-getdelim.c: Likewise.
22253         * tests/test-getdtablesize.c: Likewise.
22254         * tests/test-getgroups.c: Likewise.
22255         * tests/test-getline.c: Likewise.
22256         * tests/test-getndelim2.c: Likewise.
22257         * tests/test-glob.c: Likewise.
22258         * tests/test-hash.c: Likewise.
22259         * tests/test-i-ring.c: Likewise.
22260         * tests/test-iconv-utf.c: Likewise.
22261         * tests/test-iconv.c: Likewise.
22262         * tests/test-idpriv-drop.c: Likewise.
22263         * tests/test-idpriv-droptemp.c: Likewise.
22264         * tests/test-inet_ntop.c: Likewise.
22265         * tests/test-inet_pton.c: Likewise.
22266         * tests/test-isblank.c: Likewise.
22267         * tests/test-isfinite.c: Likewise.
22268         * tests/test-isinf.c: Likewise.
22269         * tests/test-isnan.c: Likewise.
22270         * tests/test-isnand.h: Likewise.
22271         * tests/test-isnanf.h: Likewise.
22272         * tests/test-isnanl.h: Likewise.
22273         * tests/test-lchown.c: Likewise.
22274         * tests/test-ldexpl.c: Likewise.
22275         * tests/test-link.c: Likewise.
22276         * tests/test-linkat.c: Likewise.
22277         * tests/test-linked_list.c: Likewise.
22278         * tests/test-linkedhash_list.c: Likewise.
22279         * tests/test-localename.c: Likewise.
22280         * tests/test-lseek.c: Likewise.
22281         * tests/test-lstat.c: Likewise.
22282         * tests/test-mbmemcasecmp.c: Likewise.
22283         * tests/test-mbmemcasecoll.c: Likewise.
22284         * tests/test-mbrtowc.c: Likewise.
22285         * tests/test-mbscasecmp.c: Likewise.
22286         * tests/test-mbscasestr1.c: Likewise.
22287         * tests/test-mbscasestr2.c: Likewise.
22288         * tests/test-mbscasestr3.c: Likewise.
22289         * tests/test-mbscasestr4.c: Likewise.
22290         * tests/test-mbschr.c: Likewise.
22291         * tests/test-mbscspn.c: Likewise.
22292         * tests/test-mbsinit.c: Likewise.
22293         * tests/test-mbsncasecmp.c: Likewise.
22294         * tests/test-mbsnrtowcs.c: Likewise.
22295         * tests/test-mbspbrk.c: Likewise.
22296         * tests/test-mbspcasecmp.c: Likewise.
22297         * tests/test-mbsrchr.c: Likewise.
22298         * tests/test-mbsrtowcs.c: Likewise.
22299         * tests/test-mbsspn.c: Likewise.
22300         * tests/test-mbsstr1.c: Likewise.
22301         * tests/test-mbsstr2.c: Likewise.
22302         * tests/test-mbsstr3.c: Likewise.
22303         * tests/test-memchr.c: Likewise.
22304         * tests/test-memchr2.c: Likewise.
22305         * tests/test-memcmp.c: Likewise.
22306         * tests/test-memmem.c: Likewise.
22307         * tests/test-memrchr.c: Likewise.
22308         * tests/test-mkdir.c: Likewise.
22309         * tests/test-mkdirat.c: Likewise.
22310         * tests/test-mkfifo.c: Likewise.
22311         * tests/test-mkfifoat.c: Likewise.
22312         * tests/test-mknod.c: Likewise.
22313         * tests/test-nanosleep.c: Likewise.
22314         * tests/test-nl_langinfo.c: Likewise.
22315         * tests/test-obstack-printf.c: Likewise.
22316         * tests/test-open.c: Likewise.
22317         * tests/test-openat.c: Likewise.
22318         * tests/test-pipe-filter-gi1.c: Likewise.
22319         * tests/test-pipe-filter-gi2-main.c: Likewise.
22320         * tests/test-pipe-filter-ii1.c: Likewise.
22321         * tests/test-pipe-filter-ii2-main.c: Likewise.
22322         * tests/test-pipe2.c: Likewise.
22323         * tests/test-popen.h: Likewise.
22324         * tests/test-posixtm.c: Likewise.
22325         * tests/test-pread.c: Likewise.
22326         * tests/test-printf-frexp.c: Likewise.
22327         * tests/test-printf-frexpl.c: Likewise.
22328         * tests/test-printf-posix.c: Likewise.
22329         * tests/test-priv-set.c: Likewise.
22330         * tests/test-quotearg.c: Likewise.
22331         * tests/test-random_r.c: Likewise.
22332         * tests/test-rawmemchr.c: Likewise.
22333         * tests/test-rbtree_list.c: Likewise.
22334         * tests/test-rbtree_oset.c: Likewise.
22335         * tests/test-rbtreehash_list.c: Likewise.
22336         * tests/test-readlink.c: Likewise.
22337         * tests/test-remove.c: Likewise.
22338         * tests/test-rename.c: Likewise.
22339         * tests/test-renameat.c: Likewise.
22340         * tests/test-rmdir.c: Likewise.
22341         * tests/test-round1.c: Likewise.
22342         * tests/test-roundf1.c: Likewise.
22343         * tests/test-roundl.c: Likewise.
22344         * tests/test-safe-alloc.c: Likewise.
22345         * tests/test-sameacls.c: Likewise.
22346         * tests/test-set-mode-acl.c: Likewise.
22347         * tests/test-setenv.c: Likewise.
22348         * tests/test-sigaction.c: Likewise.
22349         * tests/test-signbit.c: Likewise.
22350         * tests/test-sleep.c: Likewise.
22351         * tests/test-snprintf-posix.c: Likewise.
22352         * tests/test-snprintf.c: Likewise.
22353         * tests/test-sprintf-posix.c: Likewise.
22354         * tests/test-stat-time.c: Likewise.
22355         * tests/test-stat.c: Likewise.
22356         * tests/test-strcasestr.c: Likewise.
22357         * tests/test-strchrnul.c: Likewise.
22358         * tests/test-strerror.c: Likewise.
22359         * tests/test-striconv.c: Likewise.
22360         * tests/test-striconveh.c: Likewise.
22361         * tests/test-striconveha.c: Likewise.
22362         * tests/test-strsignal.c: Likewise.
22363         * tests/test-strstr.c: Likewise.
22364         * tests/test-strtod.c: Likewise.
22365         * tests/test-strverscmp.c: Likewise.
22366         * tests/test-symlink.c: Likewise.
22367         * tests/test-symlinkat.c: Likewise.
22368         * tests/test-trunc1.c: Likewise.
22369         * tests/test-trunc2.c: Likewise.
22370         * tests/test-truncf1.c: Likewise.
22371         * tests/test-truncf2.c: Likewise.
22372         * tests/test-truncl.c: Likewise.
22373         * tests/test-uname.c: Likewise.
22374         * tests/test-unlink.c: Likewise.
22375         * tests/test-unlinkat.c: Likewise.
22376         * tests/test-unsetenv.c: Likewise.
22377         * tests/test-usleep.c: Likewise.
22378         * tests/test-utimens.c: Likewise.
22379         * tests/test-utimensat.c: Likewise.
22380         * tests/test-vasnprintf-posix.c: Likewise.
22381         * tests/test-vasnprintf-posix2.c: Likewise.
22382         * tests/test-vasnprintf.c: Likewise.
22383         * tests/test-vasprintf-posix.c: Likewise.
22384         * tests/test-vasprintf.c: Likewise.
22385         * tests/test-vdprintf-posix.c: Likewise.
22386         * tests/test-vfprintf-posix.c: Likewise.
22387         * tests/test-vprintf-posix.c: Likewise.
22388         * tests/test-vsnprintf-posix.c: Likewise.
22389         * tests/test-vsnprintf.c: Likewise.
22390         * tests/test-vsprintf-posix.c: Likewise.
22391         * tests/test-wcrtomb.c: Likewise.
22392         * tests/test-wcsnrtombs.c: Likewise.
22393         * tests/test-wcsrtombs.c: Likewise.
22394         * tests/test-wctype.c: Likewise.
22395         * tests/test-wcwidth.c: Likewise.
22396         * tests/test-xfprintf-posix.c: Likewise.
22397         * tests/test-xmemdup0.c: Likewise.
22398         * tests/test-xprintf-posix.c: Likewise.
22399         * tests/test-xvasprintf.c: Likewise.
22400         * tests/unicase/test-locale-language.c: Likewise.
22401         * tests/unicase/test-mapping-part1.h: Likewise.
22402         * tests/unicase/test-predicate-part1.h: Likewise.
22403         * tests/unicase/test-u8-casecmp.c: Likewise.
22404         * tests/unicase/test-u8-casecoll.c: Likewise.
22405         * tests/unicase/test-u8-casefold.c: Likewise.
22406         * tests/unicase/test-u8-is-cased.c: Likewise.
22407         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22408         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22409         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22410         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22411         * tests/unicase/test-u8-tolower.c: Likewise.
22412         * tests/unicase/test-u8-totitle.c: Likewise.
22413         * tests/unicase/test-u8-toupper.c: Likewise.
22414         * tests/unicase/test-u16-casecmp.c: Likewise.
22415         * tests/unicase/test-u16-casecoll.c: Likewise.
22416         * tests/unicase/test-u16-casefold.c: Likewise.
22417         * tests/unicase/test-u16-is-cased.c: Likewise.
22418         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22419         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22420         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22421         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22422         * tests/unicase/test-u16-tolower.c: Likewise.
22423         * tests/unicase/test-u16-totitle.c: Likewise.
22424         * tests/unicase/test-u16-toupper.c: Likewise.
22425         * tests/unicase/test-u32-casecmp.c: Likewise.
22426         * tests/unicase/test-u32-casecoll.c: Likewise.
22427         * tests/unicase/test-u32-casefold.c: Likewise.
22428         * tests/unicase/test-u32-is-cased.c: Likewise.
22429         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22430         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22431         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22432         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22433         * tests/unicase/test-u32-tolower.c: Likewise.
22434         * tests/unicase/test-u32-totitle.c: Likewise.
22435         * tests/unicase/test-u32-toupper.c: Likewise.
22436         * tests/unicase/test-ulc-casecmp.c: Likewise.
22437         * tests/unicase/test-ulc-casecoll.c: Likewise.
22438         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22439         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22440         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22441         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22442         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22443         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22447         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22448         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22449         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22450         * tests/unictype/test-bidi_byname.c: Likewise.
22451         * tests/unictype/test-bidi_name.c: Likewise.
22452         * tests/unictype/test-bidi_of.c: Likewise.
22453         * tests/unictype/test-bidi_test.c: Likewise.
22454         * tests/unictype/test-block_list.c: Likewise.
22455         * tests/unictype/test-block_of.c: Likewise.
22456         * tests/unictype/test-block_test.c: Likewise.
22457         * tests/unictype/test-categ_and.c: Likewise.
22458         * tests/unictype/test-categ_and_not.c: Likewise.
22459         * tests/unictype/test-categ_byname.c: Likewise.
22460         * tests/unictype/test-categ_name.c: Likewise.
22461         * tests/unictype/test-categ_none.c: Likewise.
22462         * tests/unictype/test-categ_of.c: Likewise.
22463         * tests/unictype/test-categ_or.c: Likewise.
22464         * tests/unictype/test-categ_test_withtable.c: Likewise.
22465         * tests/unictype/test-combining.c: Likewise.
22466         * tests/unictype/test-decdigit.c: Likewise.
22467         * tests/unictype/test-digit.c: Likewise.
22468         * tests/unictype/test-mirror.c: Likewise.
22469         * tests/unictype/test-numeric.c: Likewise.
22470         * tests/unictype/test-pr_byname.c: Likewise.
22471         * tests/unictype/test-pr_test.c: Likewise.
22472         * tests/unictype/test-predicate-part1.h: Likewise.
22473         * tests/unictype/test-scripts.c: Likewise.
22474         * tests/unictype/test-sy_c_ident.c: Likewise.
22475         * tests/unictype/test-sy_java_ident.c: Likewise.
22476         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22477         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22478         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22479         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22480         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22481         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22482         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22483         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22484         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22485         * tests/uninorm/test-compat-decomposition.c: Likewise.
22486         * tests/uninorm/test-composition.c: Likewise.
22487         * tests/uninorm/test-decomposing-form.c: Likewise.
22488         * tests/uninorm/test-decomposition.c: Likewise.
22489         * tests/uninorm/test-u8-nfc.c: Likewise.
22490         * tests/uninorm/test-u8-nfd.c: Likewise.
22491         * tests/uninorm/test-u8-nfkc.c: Likewise.
22492         * tests/uninorm/test-u8-nfkd.c: Likewise.
22493         * tests/uninorm/test-u8-normcmp.c: Likewise.
22494         * tests/uninorm/test-u8-normcoll.c: Likewise.
22495         * tests/uninorm/test-u16-nfc.c: Likewise.
22496         * tests/uninorm/test-u16-nfd.c: Likewise.
22497         * tests/uninorm/test-u16-nfkc.c: Likewise.
22498         * tests/uninorm/test-u16-nfkd.c: Likewise.
22499         * tests/uninorm/test-u16-normcmp.c: Likewise.
22500         * tests/uninorm/test-u16-normcoll.c: Likewise.
22501         * tests/uninorm/test-u32-nfc.c: Likewise.
22502         * tests/uninorm/test-u32-nfd.c: Likewise.
22503         * tests/uninorm/test-u32-nfkc.c: Likewise.
22504         * tests/uninorm/test-u32-nfkd.c: Likewise.
22505         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22506         * tests/uninorm/test-u32-normcmp.c: Likewise.
22507         * tests/uninorm/test-u32-normcoll.c: Likewise.
22508         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22509         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22510         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22511         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22512         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22513         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22514         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22515         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22516         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22517         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22518         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22519         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22520         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22521         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22522         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22523         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22524         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22525         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22526         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22527         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22528         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22529         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22530         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22531         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22532         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22533         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22534         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22535         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22536         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22537         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22538         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22539         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22540         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22541         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22542         * tests/uniwidth/test-u8-width.c: Likewise.
22543         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22544         * tests/uniwidth/test-u16-width.c: Likewise.
22545         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22546         * tests/uniwidth/test-u32-width.c: Likewise.
22547         * tests/uniwidth/test-uc_width.c: Likewise.
22548         * tests/uniwidth/test-uc_width2.c: Likewise.
22549         * modules/acl-tests (Files): Add tests/macros.h.
22550         * modules/areadlink-tests (Files): Likewise.
22551         * modules/areadlink-with-size-tests (Files): Likewise.
22552         * modules/areadlinkat-tests (Files): Likewise.
22553         * modules/areadlinkat-with-size-tests (Files): Likewise.
22554         * modules/argmatch-tests (Files): Likewise.
22555         * modules/argv-iter-tests (Files): Likewise.
22556         * modules/array-list-tests (Files): Likewise.
22557         * modules/array-mergesort-tests (Files): Likewise.
22558         * modules/array-oset-tests (Files): Likewise.
22559         * modules/avltree-list-tests (Files): Likewise.
22560         * modules/avltree-oset-tests (Files): Likewise.
22561         * modules/avltreehash-list-tests (Files): Likewise.
22562         * modules/base64-tests (Files): Likewise.
22563         * modules/binary-io-tests (Files): Likewise.
22564         * modules/bitrotate-tests (Files): Likewise.
22565         * modules/btowc-tests (Files): Likewise.
22566         * modules/byteswap-tests (Files): Likewise.
22567         * modules/c-ctype-tests (Files): Likewise.
22568         * modules/c-stack-tests (Files): Likewise.
22569         * modules/c-strcase-tests (Files): Likewise.
22570         * modules/c-strcasestr-tests (Files): Likewise.
22571         * modules/c-strstr-tests (Files): Likewise.
22572         * modules/canonicalize-lgpl-tests (Files): Likewise.
22573         * modules/canonicalize-tests (Files): Likewise.
22574         * modules/carray-list-tests (Files): Likewise.
22575         * modules/ceilf-tests (Files): Likewise.
22576         * modules/ceill-tests (Files): Likewise.
22577         * modules/chown-tests (Files): Likewise.
22578         * modules/cloexec-tests (Files): Likewise.
22579         * modules/copy-file-tests (Files): Likewise.
22580         * modules/count-one-bits-tests (Files): Likewise.
22581         * modules/dprintf-posix-tests (Files): Likewise.
22582         * modules/dup2-tests (Files): Likewise.
22583         * modules/dup3-tests (Files): Likewise.
22584         * modules/duplocale-tests (Files): Likewise.
22585         * modules/fbufmode-tests (Files): Likewise.
22586         * modules/fchdir-tests (Files): Likewise.
22587         * modules/fcntl-safer-tests (Files): Likewise.
22588         * modules/fcntl-tests (Files): Likewise.
22589         * modules/fdopendir-tests (Files): Likewise.
22590         * modules/fdutimensat-tests (Files): Likewise.
22591         * modules/fflush-tests (Files): Likewise.
22592         * modules/filevercmp-tests (Files): Likewise.
22593         * modules/flock-tests (Files): Likewise.
22594         * modules/floorf-tests (Files): Likewise.
22595         * modules/floorl-tests (Files): Likewise.
22596         * modules/fnmatch-tests (Files): Likewise.
22597         * modules/fopen-safer-tests (Files): Likewise.
22598         * modules/fopen-tests (Files): Likewise.
22599         * modules/fpending-tests (Files): Likewise.
22600         * modules/fprintf-posix-tests (Files): Likewise.
22601         * modules/fpurge-tests (Files): Likewise.
22602         * modules/freadable-tests (Files): Likewise.
22603         * modules/freadahead-tests (Files): Likewise.
22604         * modules/freading-tests (Files): Likewise.
22605         * modules/freadptr-tests (Files): Likewise.
22606         * modules/freadseek-tests (Files): Likewise.
22607         * modules/freopen-tests (Files): Likewise.
22608         * modules/frexp-nolibm-tests (Files): Likewise.
22609         * modules/frexp-tests (Files): Likewise.
22610         * modules/frexpl-nolibm-tests (Files): Likewise.
22611         * modules/frexpl-tests (Files): Likewise.
22612         * modules/fseek-tests (Files): Likewise.
22613         * modules/fseeko-tests (Files): Likewise.
22614         * modules/fstrcmp-tests (Files): Likewise.
22615         * modules/fsync-tests (Files): Likewise.
22616         * modules/ftell-tests (Files): Likewise.
22617         * modules/ftello-tests (Files): Likewise.
22618         * modules/func-tests (Files): Likewise.
22619         * modules/futimens-tests (Files): Likewise.
22620         * modules/fwritable-tests (Files): Likewise.
22621         * modules/fwriting-tests (Files): Likewise.
22622         * modules/getcwd-tests (Files): Likewise.
22623         * modules/getdate-tests (Files): Likewise.
22624         * modules/getdelim-tests (Files): Likewise.
22625         * modules/getdtablesize-tests (Files): Likewise.
22626         * modules/getgroups-tests (Files): Likewise.
22627         * modules/getline-tests (Files): Likewise.
22628         * modules/getndelim2-tests (Files): Likewise.
22629         * modules/glob-tests (Files): Likewise.
22630         * modules/hash-tests (Files): Likewise.
22631         * modules/i-ring-tests (Files): Likewise.
22632         * modules/iconv-tests (Files): Likewise.
22633         * modules/iconv_open-utf-tests (Files): Likewise.
22634         * modules/idpriv-drop-tests (Files): Likewise.
22635         * modules/idpriv-droptemp-tests (Files): Likewise.
22636         * modules/inet_ntop-tests (Files): Likewise.
22637         * modules/inet_pton-tests (Files): Likewise.
22638         * modules/isblank-tests (Files): Likewise.
22639         * modules/isfinite-tests (Files): Likewise.
22640         * modules/isinf-tests (Files): Likewise.
22641         * modules/isnan-tests (Files): Likewise.
22642         * modules/isnand-nolibm-tests (Files): Likewise.
22643         * modules/isnand-tests (Files): Likewise.
22644         * modules/isnanf-nolibm-tests (Files): Likewise.
22645         * modules/isnanf-tests (Files): Likewise.
22646         * modules/isnanl-nolibm-tests (Files): Likewise.
22647         * modules/isnanl-tests (Files): Likewise.
22648         * modules/lchown-tests (Files): Likewise.
22649         * modules/ldexpl-tests (Files): Likewise.
22650         * modules/link-tests (Files): Likewise.
22651         * modules/linkat-tests (Files): Likewise.
22652         * modules/linked-list-tests (Files): Likewise.
22653         * modules/linkedhash-list-tests (Files): Likewise.
22654         * modules/localename-tests (Files): Likewise.
22655         * modules/lseek-tests (Files): Likewise.
22656         * modules/lstat-tests (Files): Likewise.
22657         * modules/mbmemcasecmp-tests (Files): Likewise.
22658         * modules/mbmemcasecoll-tests (Files): Likewise.
22659         * modules/mbrtowc-tests (Files): Likewise.
22660         * modules/mbscasecmp-tests (Files): Likewise.
22661         * modules/mbscasestr-tests (Files): Likewise.
22662         * modules/mbschr-tests (Files): Likewise.
22663         * modules/mbscspn-tests (Files): Likewise.
22664         * modules/mbsinit-tests (Files): Likewise.
22665         * modules/mbsncasecmp-tests (Files): Likewise.
22666         * modules/mbsnrtowcs-tests (Files): Likewise.
22667         * modules/mbspbrk-tests (Files): Likewise.
22668         * modules/mbspcasecmp-tests (Files): Likewise.
22669         * modules/mbsrchr-tests (Files): Likewise.
22670         * modules/mbsrtowcs-tests (Files): Likewise.
22671         * modules/mbsspn-tests (Files): Likewise.
22672         * modules/mbsstr-tests (Files): Likewise.
22673         * modules/memchr-tests (Files): Likewise.
22674         * modules/memchr2-tests (Files): Likewise.
22675         * modules/memcmp-tests (Files): Likewise.
22676         * modules/memmem-tests (Files): Likewise.
22677         * modules/memrchr-tests (Files): Likewise.
22678         * modules/mkdir-tests (Files): Likewise.
22679         * modules/mkfifo-tests (Files): Likewise.
22680         * modules/mkfifoat-tests (Files): Likewise.
22681         * modules/mknod-tests (Files): Likewise.
22682         * modules/nanosleep-tests (Files): Likewise.
22683         * modules/nl_langinfo-tests (Files): Likewise.
22684         * modules/obstack-printf-tests (Files): Likewise.
22685         * modules/open-tests (Files): Likewise.
22686         * modules/openat-tests (Files): Likewise.
22687         * modules/pipe-filter-gi-tests (Files): Likewise.
22688         * modules/pipe-filter-ii-tests (Files): Likewise.
22689         * modules/pipe2-tests (Files): Likewise.
22690         * modules/popen-safer-tests (Files): Likewise.
22691         * modules/popen-tests (Files): Likewise.
22692         * modules/posixtm-tests (Files): Likewise.
22693         * modules/pread-tests (Files): Likewise.
22694         * modules/printf-frexp-tests (Files): Likewise.
22695         * modules/printf-frexpl-tests (Files): Likewise.
22696         * modules/printf-posix-tests (Files): Likewise.
22697         * modules/priv-set-tests (Files): Likewise.
22698         * modules/quotearg-tests (Files): Likewise.
22699         * modules/random_r-tests (Files): Likewise.
22700         * modules/rawmemchr-tests (Files): Likewise.
22701         * modules/rbtree-list-tests (Files): Likewise.
22702         * modules/rbtree-oset-tests (Files): Likewise.
22703         * modules/rbtreehash-list-tests (Files): Likewise.
22704         * modules/readlink-tests (Files): Likewise.
22705         * modules/remove-tests (Files): Likewise.
22706         * modules/rename-tests (Files): Likewise.
22707         * modules/renameat-tests (Files): Likewise.
22708         * modules/rmdir-tests (Files): Likewise.
22709         * modules/round-tests (Files): Likewise.
22710         * modules/roundf-tests (Files): Likewise.
22711         * modules/roundl-tests (Files): Likewise.
22712         * modules/safe-alloc-tests (Files): Likewise.
22713         * modules/setenv-tests (Files): Likewise.
22714         * modules/sigaction-tests (Files): Likewise.
22715         * modules/signbit-tests (Files): Likewise.
22716         * modules/sleep-tests (Files): Likewise.
22717         * modules/snprintf-posix-tests (Files): Likewise.
22718         * modules/snprintf-tests (Files): Likewise.
22719         * modules/sprintf-posix-tests (Files): Likewise.
22720         * modules/stat-tests (Files): Likewise.
22721         * modules/stat-time-tests (Files): Likewise.
22722         * modules/strcasestr-tests (Files): Likewise.
22723         * modules/strchrnul-tests (Files): Likewise.
22724         * modules/strerror-tests (Files): Likewise.
22725         * modules/striconv-tests (Files): Likewise.
22726         * modules/striconveh-tests (Files): Likewise.
22727         * modules/striconveha-tests (Files): Likewise.
22728         * modules/strsignal-tests (Files): Likewise.
22729         * modules/strstr-tests (Files): Likewise.
22730         * modules/strtod-tests (Files): Likewise.
22731         * modules/strverscmp-tests (Files): Likewise.
22732         * modules/symlink-tests (Files): Likewise.
22733         * modules/symlinkat-tests (Files): Likewise.
22734         * modules/trunc-tests (Files): Likewise.
22735         * modules/truncf-tests (Files): Likewise.
22736         * modules/truncl-tests (Files): Likewise.
22737         * modules/uname-tests (Files): Likewise.
22738         * modules/unicase/cased-tests (Files): Likewise.
22739         * modules/unicase/ignorable-tests (Files): Likewise.
22740         * modules/unicase/locale-language-tests (Files): Likewise.
22741         * modules/unicase/tolower-tests (Files): Likewise.
22742         * modules/unicase/totitle-tests (Files): Likewise.
22743         * modules/unicase/toupper-tests (Files): Likewise.
22744         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22745         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22746         * modules/unicase/u8-casefold-tests (Files): Likewise.
22747         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22748         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22749         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22750         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22751         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22752         * modules/unicase/u8-tolower-tests (Files): Likewise.
22753         * modules/unicase/u8-totitle-tests (Files): Likewise.
22754         * modules/unicase/u8-toupper-tests (Files): Likewise.
22755         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22756         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22757         * modules/unicase/u16-casefold-tests (Files): Likewise.
22758         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22759         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22760         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22761         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22762         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22763         * modules/unicase/u16-tolower-tests (Files): Likewise.
22764         * modules/unicase/u16-totitle-tests (Files): Likewise.
22765         * modules/unicase/u16-toupper-tests (Files): Likewise.
22766         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22767         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22768         * modules/unicase/u32-casefold-tests (Files): Likewise.
22769         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22770         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22771         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22772         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22773         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22774         * modules/unicase/u32-tolower-tests (Files): Likewise.
22775         * modules/unicase/u32-totitle-tests (Files): Likewise.
22776         * modules/unicase/u32-toupper-tests (Files): Likewise.
22777         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22778         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22779         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22780         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22781         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22782         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22783         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22784         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22785         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22786         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22787         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22788         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22789         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22790         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22791         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22792         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22793         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22794         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22795         * modules/unictype/block-list-tests (Files): Likewise.
22796         * modules/unictype/block-of-tests (Files): Likewise.
22797         * modules/unictype/block-test-tests (Files): Likewise.
22798         * modules/unictype/category-C-tests (Files): Likewise.
22799         * modules/unictype/category-Cc-tests (Files): Likewise.
22800         * modules/unictype/category-Cf-tests (Files): Likewise.
22801         * modules/unictype/category-Cn-tests (Files): Likewise.
22802         * modules/unictype/category-Co-tests (Files): Likewise.
22803         * modules/unictype/category-Cs-tests (Files): Likewise.
22804         * modules/unictype/category-L-tests (Files): Likewise.
22805         * modules/unictype/category-Ll-tests (Files): Likewise.
22806         * modules/unictype/category-Lm-tests (Files): Likewise.
22807         * modules/unictype/category-Lo-tests (Files): Likewise.
22808         * modules/unictype/category-Lt-tests (Files): Likewise.
22809         * modules/unictype/category-Lu-tests (Files): Likewise.
22810         * modules/unictype/category-M-tests (Files): Likewise.
22811         * modules/unictype/category-Mc-tests (Files): Likewise.
22812         * modules/unictype/category-Me-tests (Files): Likewise.
22813         * modules/unictype/category-Mn-tests (Files): Likewise.
22814         * modules/unictype/category-N-tests (Files): Likewise.
22815         * modules/unictype/category-Nd-tests (Files): Likewise.
22816         * modules/unictype/category-Nl-tests (Files): Likewise.
22817         * modules/unictype/category-No-tests (Files): Likewise.
22818         * modules/unictype/category-P-tests (Files): Likewise.
22819         * modules/unictype/category-Pc-tests (Files): Likewise.
22820         * modules/unictype/category-Pd-tests (Files): Likewise.
22821         * modules/unictype/category-Pe-tests (Files): Likewise.
22822         * modules/unictype/category-Pf-tests (Files): Likewise.
22823         * modules/unictype/category-Pi-tests (Files): Likewise.
22824         * modules/unictype/category-Po-tests (Files): Likewise.
22825         * modules/unictype/category-Ps-tests (Files): Likewise.
22826         * modules/unictype/category-S-tests (Files): Likewise.
22827         * modules/unictype/category-Sc-tests (Files): Likewise.
22828         * modules/unictype/category-Sk-tests (Files): Likewise.
22829         * modules/unictype/category-Sm-tests (Files): Likewise.
22830         * modules/unictype/category-So-tests (Files): Likewise.
22831         * modules/unictype/category-Z-tests (Files): Likewise.
22832         * modules/unictype/category-Zl-tests (Files): Likewise.
22833         * modules/unictype/category-Zp-tests (Files): Likewise.
22834         * modules/unictype/category-Zs-tests (Files): Likewise.
22835         * modules/unictype/category-and-not-tests (Files): Likewise.
22836         * modules/unictype/category-and-tests (Files): Likewise.
22837         * modules/unictype/category-byname-tests (Files): Likewise.
22838         * modules/unictype/category-name-tests (Files): Likewise.
22839         * modules/unictype/category-none-tests (Files): Likewise.
22840         * modules/unictype/category-of-tests (Files): Likewise.
22841         * modules/unictype/category-or-tests (Files): Likewise.
22842         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22843         * modules/unictype/combining-class-tests (Files): Likewise.
22844         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22845         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22846         * modules/unictype/ctype-blank-tests (Files): Likewise.
22847         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22848         * modules/unictype/ctype-digit-tests (Files): Likewise.
22849         * modules/unictype/ctype-graph-tests (Files): Likewise.
22850         * modules/unictype/ctype-lower-tests (Files): Likewise.
22851         * modules/unictype/ctype-print-tests (Files): Likewise.
22852         * modules/unictype/ctype-punct-tests (Files): Likewise.
22853         * modules/unictype/ctype-space-tests (Files): Likewise.
22854         * modules/unictype/ctype-upper-tests (Files): Likewise.
22855         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22856         * modules/unictype/decimal-digit-tests (Files): Likewise.
22857         * modules/unictype/digit-tests (Files): Likewise.
22858         * modules/unictype/mirror-tests (Files): Likewise.
22859         * modules/unictype/numeric-tests (Files): Likewise.
22860         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22861         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22862         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22863         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22864         Likewise.
22865         * modules/unictype/property-bidi-block-separator-tests (Files):
22866         Likewise.
22867         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22868         Likewise.
22869         * modules/unictype/property-bidi-common-separator-tests (Files):
22870         Likewise.
22871         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22872         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22873         Likewise.
22874         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22875         Likewise.
22876         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22877         Likewise.
22878         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22879         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22880         Likewise.
22881         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22882         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22883         Likewise.
22884         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22885         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22886         * modules/unictype/property-bidi-segment-separator-tests (Files):
22887         Likewise.
22888         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22889         * modules/unictype/property-byname-tests (Files): Likewise.
22890         * modules/unictype/property-combining-tests (Files): Likewise.
22891         * modules/unictype/property-composite-tests (Files): Likewise.
22892         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22893         * modules/unictype/property-dash-tests (Files): Likewise.
22894         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22895         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22896         Likewise.
22897         * modules/unictype/property-deprecated-tests (Files): Likewise.
22898         * modules/unictype/property-diacritic-tests (Files): Likewise.
22899         * modules/unictype/property-extender-tests (Files): Likewise.
22900         * modules/unictype/property-format-control-tests (Files): Likewise.
22901         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22902         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22903         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22904         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22905         * modules/unictype/property-hyphen-tests (Files): Likewise.
22906         * modules/unictype/property-id-continue-tests (Files): Likewise.
22907         * modules/unictype/property-id-start-tests (Files): Likewise.
22908         * modules/unictype/property-ideographic-tests (Files): Likewise.
22909         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22910         * modules/unictype/property-ids-trinary-operator-tests (Files):
22911         Likewise.
22912         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22913         * modules/unictype/property-iso-control-tests (Files): Likewise.
22914         * modules/unictype/property-join-control-tests (Files): Likewise.
22915         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22916         * modules/unictype/property-line-separator-tests (Files): Likewise.
22917         * modules/unictype/property-logical-order-exception-tests (Files):
22918         Likewise.
22919         * modules/unictype/property-lowercase-tests (Files): Likewise.
22920         * modules/unictype/property-math-tests (Files): Likewise.
22921         * modules/unictype/property-non-break-tests (Files): Likewise.
22922         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22923         * modules/unictype/property-numeric-tests (Files): Likewise.
22924         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22925         * modules/unictype/property-other-default-ignorable-code-point-tests
22926         (Files): Likewise.
22927         * modules/unictype/property-other-grapheme-extend-tests (Files):
22928         Likewise.
22929         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22930         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22931         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22932         * modules/unictype/property-other-math-tests (Files): Likewise.
22933         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22934         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22935         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22936         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22937         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22938         * modules/unictype/property-private-use-tests (Files): Likewise.
22939         * modules/unictype/property-punctuation-tests (Files): Likewise.
22940         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22941         * modules/unictype/property-radical-tests (Files): Likewise.
22942         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22943         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22944         * modules/unictype/property-space-tests (Files): Likewise.
22945         * modules/unictype/property-terminal-punctuation-tests (Files):
22946         Likewise.
22947         * modules/unictype/property-test-tests (Files): Likewise.
22948         * modules/unictype/property-titlecase-tests (Files): Likewise.
22949         * modules/unictype/property-unassigned-code-value-tests (Files):
22950         Likewise.
22951         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22952         * modules/unictype/property-uppercase-tests (Files): Likewise.
22953         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22954         * modules/unictype/property-white-space-tests (Files): Likewise.
22955         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22956         * modules/unictype/property-xid-start-tests (Files): Likewise.
22957         * modules/unictype/property-zero-width-tests (Files): Likewise.
22958         * modules/unictype/scripts-tests (Files): Likewise.
22959         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22960         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22961         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22962         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22963         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22964         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22965         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22966         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22967         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22968         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22969         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22970         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22971         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22972         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22973         * modules/uninorm/composition-tests (Files): Likewise.
22974         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22975         * modules/uninorm/decomposition-tests (Files): Likewise.
22976         * modules/uninorm/filter-tests (Files): Likewise.
22977         * modules/uninorm/nfc-tests (Files): Likewise.
22978         * modules/uninorm/nfd-tests (Files): Likewise.
22979         * modules/uninorm/nfkc-tests (Files): Likewise.
22980         * modules/uninorm/nfkd-tests (Files): Likewise.
22981         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22982         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22983         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22984         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22985         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22986         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22987         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22988         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22989         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22990         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22991         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22992         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22993         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22994         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22995         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22996         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22997         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22998         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22999         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23000         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23001         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23002         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23003         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23004         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23005         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23006         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23007         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23008         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23009         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23010         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23011         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23012         * modules/uniwidth/u8-width-tests (Files): Likewise.
23013         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23014         * modules/uniwidth/u16-width-tests (Files): Likewise.
23015         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23016         * modules/uniwidth/u32-width-tests (Files): Likewise.
23017         * modules/uniwidth/width-tests (Files): Likewise.
23018         * modules/unlink-tests (Files): Likewise.
23019         * modules/unsetenv-tests (Files): Likewise.
23020         * modules/usleep-tests (Files): Likewise.
23021         * modules/utimens-tests (Files): Likewise.
23022         * modules/utimensat-tests (Files): Likewise.
23023         * modules/vasnprintf-posix-tests (Files): Likewise.
23024         * modules/vasnprintf-tests (Files): Likewise.
23025         * modules/vasprintf-posix-tests (Files): Likewise.
23026         * modules/vasprintf-tests (Files): Likewise.
23027         * modules/vdprintf-posix-tests (Files): Likewise.
23028         * modules/vfprintf-posix-tests (Files): Likewise.
23029         * modules/vprintf-posix-tests (Files): Likewise.
23030         * modules/vsnprintf-posix-tests (Files): Likewise.
23031         * modules/vsnprintf-tests (Files): Likewise.
23032         * modules/vsprintf-posix-tests (Files): Likewise.
23033         * modules/wcrtomb-tests (Files): Likewise.
23034         * modules/wcsnrtombs-tests (Files): Likewise.
23035         * modules/wcsrtombs-tests (Files): Likewise.
23036         * modules/wctype-tests (Files): Likewise.
23037         * modules/wcwidth-tests (Files): Likewise.
23038         * modules/xmemdup0-tests (Files): Likewise.
23039         * modules/xprintf-posix-tests (Files): Likewise.
23040         * modules/xvasprintf-tests (Files): Likewise.
23041
23042 2009-12-24  Eric Blake  <ebb9@byu.net>
23043
23044         test-nanosleep: fix typo
23045         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23046         patch.
23047         Reported by Bruno Haible.
23048
23049 2009-12-24  Bruno Haible  <bruno@clisp.org>
23050
23051         Reduce namespace pollution on glibc systems.
23052         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23053         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23054         systems.
23055         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23056         <getopt.h> on glibc systems.
23057         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23058         systems.
23059         * lib/fcntl.c: Include <unistd.h> here instead.
23060
23061 2009-12-24  Bruno Haible  <bruno@clisp.org>
23062
23063         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23064
23065 2009-12-24  Eric Blake  <ebb9@byu.net>
23066
23067         tests: add signature checks
23068         * tests/signature.h (SIGNATURE_CHECK): New file.
23069         * modules/atexit-tests (Files): Use it.
23070         * modules/btowc-tests (Files): Likewise.
23071         * modules/canonicalize-lgpl-tests (Files): Likewise.
23072         * modules/ceilf-tests (Files): Likewise.
23073         * modules/ceill-tests (Files): Likewise.
23074         * modules/chown-tests (Files): Likewise.
23075         * modules/dprintf-posix-tests (Files): Likewise.
23076         * modules/dup2-tests (Files): Likewise.
23077         * modules/dup3-tests (Files): Likewise.
23078         * modules/duplocale-tests (Files): Likewise.
23079         * modules/fchdir-tests (Files): Likewise.
23080         * modules/fcntl-tests (Files): Likewise.
23081         * modules/fdopendir-tests (Files): Likewise.
23082         * modules/fflush-tests (Files): Likewise.
23083         * modules/flock-tests (Files): Likewise.
23084         * modules/floorf-tests (Files): Likewise.
23085         * modules/floorl-tests (Files): Likewise.
23086         * modules/fnmatch-tests (Files): Likewise.
23087         * modules/fopen-tests (Files): Likewise.
23088         * modules/fprintf-posix-tests (Files): Likewise.
23089         * modules/freopen-tests (Files): Likewise.
23090         * modules/frexp-nolibm-tests (Files): Likewise.
23091         * modules/frexp-tests (Files): Likewise.
23092         * modules/frexpl-nolibm-tests (Files): Likewise.
23093         * modules/frexpl-tests (Files): Likewise.
23094         * modules/fseek-tests (Files): Likewise.
23095         * modules/fseeko-tests (Files): Likewise.
23096         * modules/fsync-tests (Files): Likewise.
23097         * modules/ftell-tests (Files): Likewise.
23098         * modules/ftello-tests (Files): Likewise.
23099         * modules/futimens-tests (Files): Likewise.
23100         * modules/getaddrinfo-tests (Files): Likewise.
23101         * modules/getcwd-tests (Files): Likewise.
23102         * modules/getdelim-tests (Files): Likewise.
23103         * modules/getdtablesize-tests (Files): Likewise.
23104         * modules/getgroups-tests (Files): Likewise.
23105         * modules/gethostname-tests (Files): Likewise.
23106         * modules/getline-tests (Files): Likewise.
23107         * modules/getopt-posix-tests (Files): Likewise.
23108         * modules/gettimeofday-tests (Files): Likewise.
23109         * modules/glob-tests (Files): Likewise.
23110         * modules/iconv-tests (Files): Likewise.
23111         * modules/inet_ntop-tests (Files): Likewise.
23112         * modules/inet_pton-tests (Files): Likewise.
23113         * modules/isblank-tests (Files): Likewise.
23114         * modules/lchown-tests (Files): Likewise.
23115         * modules/ldexpl-tests (Files): Likewise.
23116         * modules/link-tests (Files): Likewise.
23117         * modules/linkat-tests (Files): Likewise.
23118         * modules/lseek-tests (Files): Likewise.
23119         * modules/lstat-tests (Files): Likewise.
23120         * modules/mbrtowc-tests (Files): Likewise.
23121         * modules/mbsinit-tests (Files): Likewise.
23122         * modules/mbsnrtowcs-tests (Files): Likewise.
23123         * modules/mbsrtowcs-tests (Files): Likewise.
23124         * modules/memchr-tests (Files): Likewise.
23125         * modules/memcmp-tests (Files): Likewise.
23126         * modules/memmem-tests (Files): Likewise.
23127         * modules/memrchr-tests (Files): Likewise.
23128         * modules/mkdir-tests (Files): Likewise.
23129         * modules/mkfifo-tests (Files): Likewise.
23130         * modules/mkfifoat-tests (Files): Likewise.
23131         * modules/mknod-tests (Files): Likewise.
23132         * modules/nanosleep-tests (Files): Likewise.
23133         * modules/nl_langinfo-tests (Files): Likewise.
23134         * modules/obstack-printf-tests (Files): Likewise.
23135         * modules/open-tests (Files): Likewise.
23136         * modules/openat-tests (Files): Likewise.
23137         * modules/perror-tests (Files): Likewise.
23138         * modules/pipe2-tests (Files): Likewise.
23139         * modules/poll-tests (Files): Likewise.
23140         * modules/popen-tests (Files): Likewise.
23141         * modules/posix_spawn-tests (Files): Likewise.
23142         * modules/posix_spawnp-tests (Files): Likewise.
23143         * modules/pread-tests (Files): Likewise.
23144         * modules/printf-posix-tests (Files): Likewise.
23145         * modules/pty-tests (Files): Likewise.
23146         * modules/random_r-tests (Files): Likewise.
23147         * modules/rawmemchr-tests (Files): Likewise.
23148         * modules/readlink-tests (Files): Likewise.
23149         * modules/remove-tests (Files): Likewise.
23150         * modules/rename-tests (Files): Likewise.
23151         * modules/renameat-tests (Files): Likewise.
23152         * modules/rmdir-tests (Files): Likewise.
23153         * modules/round-tests (Files): Likewise.
23154         * modules/roundf-tests (Files): Likewise.
23155         * modules/roundl-tests (Files): Likewise.
23156         * modules/select-tests (Files): Likewise.
23157         * modules/setenv-tests (Files): Likewise.
23158         * modules/sigaction-tests (Files): Likewise.
23159         * modules/sleep-tests (Files): Likewise.
23160         * modules/snprintf-posix-tests (Files): Likewise.
23161         * modules/snprintf-tests (Files): Likewise.
23162         * modules/sprintf-posix-tests (Files): Likewise.
23163         * modules/stat-tests (Files): Likewise.
23164         * modules/strcasestr-tests (Files): Likewise.
23165         * modules/strchrnul-tests (Files): Likewise.
23166         * modules/strerror-tests (Files): Likewise.
23167         * modules/strsignal-tests (Files): Likewise.
23168         * modules/strstr-tests (Files): Likewise.
23169         * modules/strtod-tests (Files): Likewise.
23170         * modules/strverscmp-tests (Files): Likewise.
23171         * modules/symlink-tests (Files): Likewise.
23172         * modules/symlinkat-tests (Files): Likewise.
23173         * modules/times-tests (Files): Likewise.
23174         * modules/trunc-tests (Files): Likewise.
23175         * modules/truncf-tests (Files): Likewise.
23176         * modules/truncl-tests (Files): Likewise.
23177         * modules/tsearch-tests (Files): Likewise.
23178         * modules/uname-tests (Files): Likewise.
23179         * modules/unlink-tests (Files): Likewise.
23180         * modules/unsetenv-tests (Files): Likewise.
23181         * modules/usleep-tests (Files): Likewise.
23182         * modules/utimensat-tests (Files): Likewise.
23183         * modules/vasprintf-tests (Files): Likewise.
23184         * modules/vdprintf-posix-tests (Files): Likewise.
23185         * modules/vfprintf-posix-tests (Files): Likewise.
23186         * modules/vprintf-posix-tests (Files): Likewise.
23187         * modules/vsnprintf-posix-tests (Files): Likewise.
23188         * modules/vsnprintf-tests (Files): Likewise.
23189         * modules/vsprintf-posix-tests (Files): Likewise.
23190         * modules/wcrtomb-tests (Files): Likewise.
23191         * modules/wcsnrtombs-tests (Files): Likewise.
23192         * modules/wcsrtombs-tests (Files): Likewise.
23193         * modules/wcwidth-tests (Files): Likewise.
23194         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23195         * tests/test-isinf.c (isinf): Likewise.
23196         * tests/test-isnan.c (isnan): Likewise.
23197         * tests/test-signbit.c (signbit): Likewise.
23198         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23199         declaration, either as macro or with correct signature.
23200         (select): Ensure function under test is declared with correct
23201         signature in correct header.
23202         * tests/test-atexit.c (atexit): Likewise.
23203         * tests/test-btowc.c (btowc): Likewise.
23204         * tests/test-canonicalize-lgpl.c (realpath)
23205         (canonicalize_file_name): Likewise.
23206         * tests/test-ceilf1.c (ceilf): Likewise.
23207         * tests/test-ceill.c (ceill): Likewise.
23208         * tests/test-chown.c (chown): Likewise.
23209         * tests/test-dprintf-posix.c (dprintf): Likewise.
23210         * tests/test-dup2.c (dup2): Likewise.
23211         * tests/test-dup3.c (dup3): Likewise.
23212         * tests/test-duplocale.c (duplocale): Likewise.
23213         * tests/test-fchdir.c (fchdir): Likewise.
23214         * tests/test-fchownat.c (fchownat): Likewise.
23215         * tests/test-fcntl.c (fcntl): Likewise.
23216         * tests/test-fdopendir.c (fdopendir): Likewise.
23217         * tests/test-fflush.c (fflush): Likewise.
23218         * tests/test-flock.c (flock): Likewise.
23219         * tests/test-floorf1.c (floorf): Likewise.
23220         * tests/test-floorl.c (floorl): Likewise.
23221         * tests/test-fnmatch.c (fnmatch): Likewise.
23222         * tests/test-fopen.c (fopen): Likewise.
23223         * tests/test-fprintf-posix.c (fprintf): Likewise.
23224         * tests/test-freopen.c (freopen): Likewise.
23225         * tests/test-frexp.c (frexp): Likewise.
23226         * tests/test-frexpl.c (frexpl): Likewise.
23227         * tests/test-fseek.c (fseek): Likewise.
23228         * tests/test-fseeko.c (fseeko): Likewise.
23229         * tests/test-fstatat.c (fstatat): Likewise.
23230         * tests/test-fsync.c (fsync): Likewise.
23231         * tests/test-ftell.c (ftell): Likewise.
23232         * tests/test-ftello.c (ftello): Likewise.
23233         * tests/test-futimens.c (futimens): Likewise.
23234         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23235         (gai_strerror): Likewise.
23236         * tests/test-getcwd.c (getcwd): Likewise.
23237         * tests/test-getdelim.c (getdelim): Likewise.
23238         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23239         * tests/test-getgroups.c (getgroups): Likewise.
23240         * tests/test-gethostname.c (gethostname): Likewise.
23241         * tests/test-getline.c (getline): Likewise.
23242         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23243         Likewise.
23244         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23245         * tests/test-glob.c (glob, globfree): Likewise.
23246         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23247         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23248         * tests/test-inet_pton.c (inet_pton): Likewise.
23249         * tests/test-isblank.c (isblank): Likewise.
23250         * tests/test-lchown.c (lchown): Likewise.
23251         * tests/test-ldexpl.c (ldexpl): Likewise.
23252         * tests/test-link.c (link): Likewise.
23253         * tests/test-linkat.c (linkat): Likewise.
23254         * tests/test-lseek.c (lseek): Likewise.
23255         * tests/test-lstat.c (lstat): Likewise.
23256         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23257         * tests/test-mbsinit.c (mbsinit): Likewise.
23258         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23259         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23260         * tests/test-memchr.c (memchr): Likewise.
23261         * tests/test-memcmp.c (memcmp): Likewise.
23262         * tests/test-memmem.c (memmem): Likewise.
23263         * tests/test-memrchr.c (memrchr): Likewise.
23264         * tests/test-mkdir.c (mkdir): Likewise.
23265         * tests/test-mkdirat.c (mkdirat): Likewise.
23266         * tests/test-mkfifo.c (mkfifo): Likewise.
23267         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23268         * tests/test-mknod.c (mknod): Likewise.
23269         * tests/test-nanosleep.c (nanosleep): Likewise.
23270         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23271         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23272         Likewise.
23273         * tests/test-open.c (open): Likewise.
23274         * tests/test-openat.c (openat): Likewise.
23275         * tests/test-perror.c (perror): Likewise.
23276         * tests/test-pipe2.c (pipe2): Likewise.
23277         * tests/test-poll.c (poll): Likewise.
23278         * tests/test-popen.c (popen, pclose): Likewise.
23279         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23280         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23281         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23282         (posix_spawn_file_actions_destroy)
23283         (posix_spawn_file_actions_addclose)
23284         (posix_spawn_file_actions_addopen)
23285         (posix_spawn_file_actions_adddup2): Likewise.
23286         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23287         * tests/test-pread.c (pread): Likewise.
23288         * tests/test-printf-posix.c (printf): Likewise.
23289         * tests/test-pty.c (openpty, forkpty): Likewise.
23290         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23291         (random_r): Likewise.
23292         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23293         * tests/test-readlink.c (readlink): Likewise.
23294         * tests/test-remove.c (remove): Likewise.
23295         * tests/test-rename.c (rename): Likewise.
23296         * tests/test-renameat.c (renameat): Likewise.
23297         * tests/test-rmdir.c (rmdir): Likewise.
23298         * tests/test-round1.c (round): Likewise.
23299         * tests/test-roundf1.c (roundf): Likewise.
23300         * tests/test-roundl.c (roundl): Likewise.
23301         * tests/test-setenv.c (setenv): Likewise.
23302         * tests/test-sigaction.c (sigaction): Likewise.
23303         * tests/test-sleep.c (sleep): Likewise.
23304         * tests/test-snprintf.c (snprintf): Likewise.
23305         * tests/test-sprintf-posix.c (sprintf): Likewise.
23306         * tests/test-stat.c (stat): Likewise.
23307         * tests/test-stpncpy.c (stpncpy): Likewise.
23308         * tests/test-strcasestr.c (strcasestr): Likewise.
23309         * tests/test-strchrnul.c (strchrnul): Likewise.
23310         * tests/test-strerror.c (strerror): Likewise.
23311         * tests/test-strsignal.c (strsignal): Likewise.
23312         * tests/test-strstr.c (strstr): Likewise.
23313         * tests/test-strtod.c (strtod): Likewise.
23314         * tests/test-strverscmp.c (strverscmp): Likewise.
23315         * tests/test-symlink.c (symlink): Likewise.
23316         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23317         * tests/test-times.c (times): Likewise.
23318         * tests/test-trunc1.c (trunc): Likewise.
23319         * tests/test-truncf1.c (truncf): Likewise.
23320         * tests/test-truncl.c (truncl): Likewise.
23321         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23322         Likewise.
23323         * tests/test-uname.c (uname): Likewise.
23324         * tests/test-unlink.c (unlink): Likewise.
23325         * tests/test-unlinkat.c (unlinkat): Likewise.
23326         * tests/test-unsetenv.c (unsetenv): Likewise.
23327         * tests/test-usleep.c (usleep): Likewise.
23328         * tests/test-utimensat.c (utimensat): Likewise.
23329         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23330         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23331         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23332         * tests/test-vprintf-posix.c (vprintf): Likewise.
23333         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23334         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23335         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23336         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23337         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23338         * tests/test-wcwidth.c (wcwidth): Likewise.
23339
23340         build: pull in conditional headers during GNULIB_POSIXCHECK
23341         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23342         definitions from any conditionally-included headers.
23343         * lib/stdlib.in.h (includes): Likewise.
23344         * lib/unistd.in.h (includes): Likewise.
23345
23346 2009-12-24  Bruno Haible  <bruno@clisp.org>
23347
23348         * tests/test-argv-iter.c: Include header file being tested immediately
23349         after config.h.
23350         * tests/test-base64.c: Likewise.
23351         * tests/test-flock.c: Likewise.
23352         * tests/test-fsync.c: Likewise.
23353         * tests/test-getdate.c: Likewise.
23354         * tests/test-getndelim2.c: Likewise.
23355         * tests/test-isfinite.c: Likewise.
23356         * tests/test-isinf.c: Likewise.
23357         * tests/test-strerror.c: Likewise.
23358         * tests/test-strsignal.c: Likewise.
23359
23360 2009-12-23  Eric Blake  <ebb9@byu.net>
23361
23362         unistd: work around cygwin bug
23363         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23364         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23365         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23366
23367 2009-12-23  Bruno Haible  <bruno@clisp.org>
23368
23369         localename: More tests.
23370         * tests/test-localename.c (SIZEOF): New macro.
23371         (categories): New variable.
23372         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23373         test_locale_name_default): Add test w.r.t. thread locale.
23374         (test_locale_name_thread): New function.
23375         (main): Invoke it.
23376
23377         localename: Make aware of thread locale.
23378         * lib/localename.h (gl_locale_name_thread): New declaration.
23379         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23380         behaviour with respect to thread locale.
23381         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23382         <langinfo.h>, glthread/lock.h.
23383         (SIZE_BITS): New macro.
23384         (string_hash): New function.
23385         (struct hash_node): New type.
23386         (HASH_TABLE_SIZE): New macro.
23387         (struniq_hash_table, struniq_lock): New variables.
23388         (struniq): New function.
23389         (gl_locale_name_thread): New function.
23390         (gl_locale_name): Invoke it.
23391         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23392         * modules/localename (Depends-on): Add lock.
23393         Reported by Mike Gran <spk121@yahoo.com>.
23394
23395 2009-12-23  Eric Blake  <ebb9@byu.net>
23396
23397         va-args: new module
23398         * modules/va-args: New file.
23399         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23400         * MODULES.html.sh (Core language properties): Mention it.
23401
23402         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23403         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23404         named alias for __attribute__((__unused__)).
23405         * lib/chown.c: Update client.
23406         * lib/fchmodat.c: Likewise.
23407         * lib/fts.c: Likewise.
23408         * lib/getdate.y: Likewise.
23409         * lib/getgroups.c: Likewise.
23410         * lib/getopt.c: Likewise.
23411         * lib/getugroups.c: Likewise.
23412         * lib/mkdir.c: Likewise.
23413         * lib/mkfifo.c: Likewise.
23414         * lib/mkfifoat.c: Likewise.
23415         * lib/mknod.c: Likewise.
23416         * lib/mknodat.c: Likewise.
23417         * lib/readlink.c: Likewise.
23418         * lib/se-context.in.h: Likewise.
23419         * lib/se-selinux.in.h: Likewise.
23420         * lib/sockets.c: Likewise.
23421         * lib/symlink.c: Likewise.
23422         * lib/symlinkat.c: Likewise.
23423         * lib/unicodeio.c: Likewise.
23424         * lib/unistr.h: Likewise.
23425         * tests/test-areadlink.c: Likewise.
23426         * tests/test-areadlinkat.c: Likewise.
23427         * tests/test-filenamecat.c: Likewise.
23428         * tests/test-fseeko.c: Likewise.
23429         * tests/test-ftello.c: Likewise.
23430         * tests/test-getdate.c: Likewise.
23431         * tests/test-getgroups.c: Likewise.
23432         * tests/test-gethostname.c: Likewise.
23433         * tests/test-quotearg.c: Likewise.
23434         * tests/test-version-etc.c: Likewise.
23435         * tests/test-xalloc-die.c: Likewise.
23436         * tests/test-xfprintf-posix.c: Likewise.
23437         * tests/test-xprintf-posix.c: Likewise.
23438         * tests/test-xvasprintf.c: Likewise.
23439
23440         tests: avoid compiler warnings
23441         * tests/test-fcntl.c (main): Delete unused parameters.
23442         * tests/test-freopen-safer.c (main): Likewise.
23443         * tests/test-xalloc-die.c (main): Mark unused parameters.
23444         * tests/test-fseeko.c (main): Likewise.
23445         * tests/test-ftello.c (main): Likewise.
23446         * tests/test-nanosleep.c (main): Avoid declaration warning.
23447         * tests/test-sleep.c (main): Likewise.
23448         * tests/test-unsetenv.c (main): Silence warning about string
23449         literal.
23450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23451
23452 2009-12-23  Bruno Haible  <bruno@clisp.org>
23453
23454         * tests/test-localename.c (test_locale_name): New function, extracted
23455         from main. Also test mixed situations.
23456         (test_locale_name_posix, test_locale_name_environ,
23457         test_locale_name_default): New functions.
23458         (main): Invoke them all.
23459         * modules/localename-tests (configure.ac): Test for newlocale.
23460
23461 2009-12-23  Bruno Haible  <bruno@clisp.org>
23462
23463         unistd: Ensure getcwd gets declared before being overridden.
23464         * lib/unistd.in.h: Conditionally include <io.h>.
23465
23466 2009-12-22  Bruno Haible  <bruno@clisp.org>
23467
23468         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23469         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23470         (gl_WCHAR_H): Invoke it.
23471         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23472         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23473         Reported by Karl Berry <karl@freefriends.org>.
23474
23475 2009-12-22  Eric Blake  <ebb9@byu.net>
23476
23477         math, unistd: avoid redundant includes
23478         * lib/math.in.h (isnan): No need to re-include <math.h>.
23479         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23480
23481         getsubopt: work around cygwin bug
23482         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23483         avoid conflicting with system getsubopt.
23484         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23485         bug.
23486
23487         getopt: synchronize from glibc
23488         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23489         parameter order.  Adjust all callers.
23490         (_getopt_internal_r, main): Adjust quoting in error messages.
23491         Drop considerations for outdated POSIX 1003.2 error message.
23492         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23493         callers.
23494         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23495
23496         test-getopt: test stderr behavior
23497         * modules/getopt-posix-tests (Depends-on): Add dup2.
23498         * tests/test-getopt.c (ASSERT): Avoid stderr.
23499         (main): Move stderr to a temporary file.
23500         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23501         Instead, add parameter to inform caller if output occurred.
23502         (test_getopt): Adjust all existing tests to expect silence, and
23503         add new tests of leading ":".
23504         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23505         glibc shortcomings with leading "-:" or "+:" in optstring.
23506         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23507         Likewise.
23508         * doc/posix-functions/getopt.texi (getopt): Likewise.
23509
23510         test-getopt: enhance test
23511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23512         supports optind=0.
23513         * tests/test-getopt.c (OPTIND_MIN): Move...
23514         * tests/test-getopt.h (OPTIND_MIN): ...here.
23515         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23516         Require that optind=0 works, since modern BSD supports it in
23517         addition to optreset, and since coreutils expects it.
23518         (test_getopt_long_only): New test.
23519         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23520         glibc shortcomings with 'W;', and enforcement of optind=0.
23521         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23522         Likewise.
23523
23524 2009-12-21  Bruno Haible  <bruno@clisp.org>
23525
23526         localename: Improvements for MacOS X and Cygwin.
23527         * lib/localename.h (gl_locale_name_environ): New declaration.
23528         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23529         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23530         (gl_locale_name_posix): Invoke it.
23531         (gl_locale_name_default): Add comments. Use Windows native API also on
23532         Cygwin.
23533
23534 2009-12-21  Bruno Haible  <bruno@clisp.org>
23535
23536         Update list of Win32 locale ids.
23537         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23538         (LANG_SAMI): Renamed from LANG_SAAMI.
23539         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23540         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23541         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23542         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23543         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23544         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23545         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23546         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23547         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23548         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23549         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23550         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23551         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23552         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23553         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23554         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23555         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23556         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23557         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23558         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23559         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23560         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23561         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23562         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23563         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23564         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23565         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23566         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23567         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23568         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23569         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23570         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23571         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23572         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23573         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23574         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23575         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23576         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23577         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23578         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23579         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23580         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23581         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23582         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23583         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23584         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23585         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23586         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23587         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23588         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23589         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23590         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23591         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23592         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23593         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23594         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23595         Add more languages and countries for Sami, Sorbian. Add more countries
23596         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23597         for Pashto. Change country for Syriac, Tswana.
23598
23599 2009-12-21  Eric Blake  <ebb9@byu.net>
23600
23601         test-utimens: avoid spurious failure
23602         * tests/test-chown.h (nap): Factor...
23603         * tests/nap.h: ...into new file.
23604         * tests/test-lchown.h (nap): Avoid duplication.
23605         * tests/test-utimens-common.h (nap): Use shared implementation,
23606         necessary on file systems with 1-second resolution.
23607         * modules/chown-tests (Files): Include new file.
23608         * modules/fdutimensat-tests (Files): Likewise.
23609         * modules/futimens-tests (Files): Likewise.
23610         * modules/lchown-tests (Files): Likewise.
23611         * modules/openat-tests (Files): Likewise.
23612         * modules/utimens-tests (Files): Likewise.
23613         * modules/utimensat-tests (Files): Likewise.
23614
23615 2009-12-19  Eric Blake  <ebb9@byu.net>
23616
23617         futimens, utimensat: work around Linux bug
23618         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23619         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23620         * lib/utimensat.c (rpl_utimensat): Work around it.
23621         * lib/futimens.c (rpl_futimens): Adjust comment.
23622
23623         utimens: work around Linux ctime bug
23624         * lib/utimens.c (detect_ctime_bug): New helper function.
23625         (update_timespec): Differentiate between workaround needed for
23626         this bug vs. what is needed for systems that lack utimensat.
23627         (fdutimens, lutimens): Work around bug.
23628
23629         utimens: check for ctime update
23630         * tests/test-utimens-common.h (check_ctime): Define.
23631         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23632         * tests/test-futimens.h (test_futimens): Likewise.
23633         * tests/test-lutimens.h (test_lutimens): Likewise.
23634         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23635         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23636
23637 2009-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23640         * tests/test-dprintf-posix2.sh: New file.
23641         * tests/test-dprintf-posix2.c: New file.
23642         * modules/dprintf-posix-tests (Files): Add them.
23643         (configure.ac): Check for getrlimit and setrlimit.
23644         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23645
23646 2009-12-19  Bruno Haible  <bruno@clisp.org>
23647
23648         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23649         * tests/test-fprintf-posix3.sh: New file.
23650         * tests/test-fprintf-posix3.c: New file.
23651         * modules/fprintf-posix-tests (Files): Add them.
23652         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23653
23654 2009-12-19  Eric Blake  <ebb9@byu.net>
23655
23656         dirfd: fix prototype
23657         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23658         * lib/dirfd.c (dirfd): Likewise.
23659
23660         canonicalize: reduce memory usage
23661         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23662         allocation to size.
23663         Reported by Solar Designer <solar@openwall.com>.
23664
23665 2009-12-19  Bruno Haible  <bruno@clisp.org>
23666
23667         New module attribute 'Applicability'.
23668         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23669         * gnulib-tool: New option --extract-applicability.
23670         (func_usage): Document it.
23671         (sed_extract_prog): Recognize it.
23672         (func_get_applicability): New function.
23673         (func_import): Generalize handling of 'link-warning' module.
23674         * modules/link-warning (Applicability): New section.
23675         * modules/arg-nonnull (Applicability): New section.
23676         Repoted by Simon Josefsson <simon@josefsson.org>.
23677
23678 2009-12-19  Bruno Haible  <bruno@clisp.org>
23679
23680         fflush: tweak
23681         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23682         * lib/fseeko.c (rpl_fseeko): Likewise.
23683
23684 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23685
23686         * lib/gl_list.h: Fix typo in comment.
23687
23688 2009-12-16  Eric Blake  <ebb9@byu.net>
23689
23690         fcntl: use to simplify other modules
23691         * modules/cloexec (Depends-on): Add fcntl.
23692         * modules/fchdir (Depends-on): Likewise.
23693         * modules/fd-safer-flag (Depends-on): Likewise.
23694         * modules/unistd-safer (Depends-on): Likewise.
23695         * modules/dup3 (configure.ac): Set module indicator.
23696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23697         missing.
23698         * lib/fchdir.c (_gl_register_dup): Fix comment.
23699         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23700         * lib/dup-safer.c (dup_safer): Likewise.
23701         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23702         * lib/dup3.c (dup3): Likewise.
23703         * tests/test-fchdir.c (main): Enhance test.
23704         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23705
23706         fcntl: port portions of fcntl to mingw
23707         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23708         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23709         replacement for mingw.
23710         * modules/fcntl (Description): Update.
23711         (Depends-on): Add dup2.
23712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23713         * modules/fcntl-h (Makefile.am): Substitute it.
23714         * lib/fcntl.in.h (fcntl): Update declaration.
23715         (F_DUPFD, F_GETFD): New macros, when needed.
23716         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23717         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23718         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23719         we now guarantee.
23720
23721         fcntl: work around cygwin bug in F_DUPFD
23722         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23723         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23724         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23725         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23726         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23727
23728         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23729         * modules/fcntl (Files): List new files.
23730         (configure.ac): Run a test.
23731         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23732         * lib/fcntl.c (rpl_fcntl): Likewise.
23733         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23734         (gl_FCNTL_H): Always replace fcntl.h.
23735         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23736         * lib/fcntl.in.h (fcntl): Declare replacement.
23737         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23738         needed, plus a witness.
23739         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23740         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23741         * tests/test-fcntl.c: New file.
23742         * modules/fcntl-tests: Likewise.
23743
23744         binary-io: avoid potential compilation warning
23745         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23746         directives.
23747
23748         fflush: avoid compilation error on NetBSD
23749         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23750         between off_t and fpos_t, since the latter is sometimes a struct.
23751         * lib/fseeko.c (rpl_fseeko): Likewise.
23752         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23753
23754 2009-12-15  Eric Blake  <ebb9@byu.net>
23755
23756         fcntl-h, stdio, sys_ioctl: fix declarations
23757         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23758         function must not take arguments.
23759         * lib/sys_ioctl.in.h (ioctl): Likewise.
23760         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23761         (open): Add a link warning.
23762
23763 2009-12-15  Jim Meyering  <meyering@redhat.com>
23764
23765         areadlink, areadlink-with-size: relax license to LGPLv2+
23766         * modules/areadlink (License): Relax to LGPLv2+.
23767         * modules/areadlink-with-size (License): Likewise.
23768
23769 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23770             Bruno Haible  <bruno@clisp.org>
23771
23772         *printf: Fix memory leak.
23773         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23774         * lib/vfprintf.c (vfprintf): Likewise.
23775         * lib/dprintf.c (dprintf): Likewise.
23776         * lib/vdprintf.c (vdprintf): Likewise.
23777
23778 2009-12-14  Eric Blake  <ebb9@byu.net>
23779
23780         accept4: adjust module dependencies
23781         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23782
23783         utimens: one more try at avoiding compiler warning
23784         * lib/utimens.c (lutimens): Lower scope of result.
23785
23786 2009-12-13  Bruno Haible  <bruno@clisp.org>
23787
23788         Move the malloc checking from module 'list' to new module 'xlist'.
23789         * modules/xlist: New file.
23790         * lib/gl_xlist.h: New file.
23791         * lib/gl_xlist.c: New file.
23792         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23793         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23794         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23795         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23796         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23797         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23798         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23799         gl_sortedlist_nx_add): New declarations.
23800         (struct gl_list_implementation): Rename and change methods accordingly.
23801         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23802         (gl_list_nx_create): Renamed from gl_list_create.
23803         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23804         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23805         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23806         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23807         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23808         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23809         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23810         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23811         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23812         gl_list_create_empty.
23813         (gl_list_nx_create): Renamed from gl_list_create.
23814         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23815         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23816         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23817         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23818         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23819         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23820         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23821         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23822         * lib/gl_array_list.c: Don't include xalloc.h.
23823         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23824         NULL upon out-of-memory.
23825         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23826         out-of-memory.
23827         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23828         Change return type to 'int'.
23829         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23830         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23831         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23832         upon out-of-memory.
23833         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23834         upon out-of-memory.
23835         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23836         upon out-of-memory.
23837         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23838         upon out-of-memory.
23839         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23840         out-of-memory.
23841         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23842         Update.
23843         (gl_array_list_implementation): Update.
23844         * lib/gl_carray_list.c: Don't include xalloc.h.
23845         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23846         Return NULL upon out-of-memory.
23847         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23848         out-of-memory.
23849         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23850         Change return type to 'int'.
23851         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23852         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23853         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23854         upon out-of-memory.
23855         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23856         upon out-of-memory.
23857         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23858         out-of-memory.
23859         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23860         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23861         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23862         Update.
23863         (gl_carray_list_implementation): Update.
23864         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23865         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23866         gl_linked_create_empty. Return NULL upon out-of-memory.
23867         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23868         out-of-memory.
23869         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23870         Change return type to 'int'. Return -1 upon out-of-memory.
23871         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23872         out-of-memory.
23873         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23874         upon out-of-memory.
23875         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23876         upon out-of-memory.
23877         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23878         NULL upon out-of-memory.
23879         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23880         upon out-of-memory.
23881         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23882         out-of-memory.
23883         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23884         Update.
23885         * lib/gl_linked_list.c: Don't include xalloc.h.
23886         (gl_linked_list_implementation): Update.
23887         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23888         (add_to_bucket): Change return type to 'int'.
23889         (gl_linkedhash_list_implementation): Update.
23890         * lib/gl_anytree_list1.h (free_subtree): New function.
23891         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23892         gl_tree_create_empty. Return NULL upon out-of-memory.
23893         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23894         Change return type to 'int'. Return -1 upon out-of-memory.
23895         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23896         out-of-memory.
23897         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23898         (gl_tree_remove_node): New function, moved here from
23899         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23900         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23901         Update.
23902         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23903         malloc, not xmalloc. Return NULL upon out-of-memory.
23904         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23905         out-of-memory.
23906         (gl_tree_remove_node_from_tree): New function, extracted from
23907         gl_tree_remove_node.
23908         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23909         upon out-of-memory.
23910         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23911         out-of-memory.
23912         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23913         upon out-of-memory.
23914         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23915         upon out-of-memory.
23916         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23917         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23918         not xmalloc. Return NULL upon out-of-memory.
23919         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23920         out-of-memory.
23921         (gl_tree_remove_node_from_tree): New function, extracted from
23922         gl_tree_remove_node.
23923         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23924         upon out-of-memory.
23925         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23926         out-of-memory.
23927         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23928         upon out-of-memory.
23929         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23930         upon out-of-memory.
23931         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23932         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23933         gl_anytree_list1.h before gl_anyavltree_list2.h.
23934         (gl_avltree_list_implementation): Update.
23935         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23936         gl_anytree_list1.h before gl_anyavltree_list2.h.
23937         (gl_rbtree_list_implementation): Update.
23938         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23939         Change return type to 'int'. Return -1 upon out-of-memory. Use
23940         __builtin_expect.
23941         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23942         (gl_avltreehash_list_implementation): Update.
23943         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23944         (gl_rbtreehash_list_implementation): Update.
23945         * modules/array-list (Depends-on): Remove xalloc.
23946         * modules/carray-list (Depends-on): Likewise.
23947         * modules/linked-list (Depends-on): Likewise.
23948         * modules/linkedhash-list (Depends-on): Likewise.
23949         * modules/avltree-list (Depends-on): Likewise.
23950         * modules/rbtree-list (Depends-on): Likewise.
23951         * modules/avltreehash-list (Depends-on): Likewise.
23952         * modules/rbtreehash-list (Depends-on): Likewise.
23953
23954         * modules/xsublist: New file.
23955         * lib/gl_xsublist.h: New file.
23956         * lib/gl_xsublist.c: New file.
23957         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23958         (gl_sublist_nx_create): New declaration.
23959         * lib/gl_sublist.c: Don't include xalloc.h.
23960         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23961         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23962         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23963         Change return type to 'int'. Return -1 upon out-of-memory.
23964         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23965         upon out-of-memory.
23966         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23967         NULL upon out-of-memory.
23968         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23969         upon out-of-memory.
23970         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23971         NULL upon out-of-memory.
23972         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23973         NULL upon out-of-memory.
23974         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23975         upon out-of-memory.
23976         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23977         (gl_sublist_list_implementation): Update.
23978         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23979         upon out-of-memory.
23980         * modules/sublist (Depends-on): Remove xalloc.
23981
23982         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23983         * tests/test-carray_list.c: Likewise.
23984         * tests/test-linked_list.c: Likewise.
23985         * tests/test-linkedhash_list.c: Likewise.
23986         * tests/test-avltree_list.c: Likewise.
23987         * tests/test-rbtree_list.c: Likewise.
23988         * tests/test-avltreehash_list.c: Likewise.
23989         * tests/test-rbtreehash_list.c: Likewise.
23990         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23991         * modules/carray-list-tests (Makefile.am): Likewise.
23992         * modules/linked-list-tests (Makefile.am): Likewise.
23993         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23994         * modules/avltree-list-tests (Makefile.am): Likewise.
23995         * modules/rbtree-list-tests (Makefile.am): Likewise.
23996         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23997         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23998
23999         * NEWS: Mention the changes.
24000
24001         * lib/clean-temp.c: Include gl_xlist.h.
24002         * modules/clean-temp (Depends-on): Add xlist.
24003
24004         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24005         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24006
24007         * tests/test-array_oset.c: Include gl_xlist.h.
24008         * modules/array-oset-tests (Depends-on): Add xlist.
24009
24010         Reported by José E. Marchesi <jemarch@gnu.org>.
24011
24012 2009-12-13  Bruno Haible  <bruno@clisp.org>
24013
24014         Move the malloc checking from module 'oset' to new module 'xoset'.
24015         * modules/xoset: New file.
24016         * lib/gl_xoset.h: New file.
24017         * lib/gl_xoset.c: New file.
24018         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24019         declarations.
24020         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24021         (struct gl_oset_implementation): Rename and change methods accordingly.
24022         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24023         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24024         'int'. Mark as __warn_unused_result__.
24025         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24026         gl_oset_create_empty.
24027         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24028         'int'.
24029         * lib/gl_array_oset.c: Don't include xalloc.h.
24030         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24031         malloc, not xmalloc.
24032         (grow): Change return type to 'int'. Don't call xalloc_die.
24033         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24034         to 'int'.
24035         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24036         'int'.
24037         (gl_array_oset_implementation): Update.
24038         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24039         gl_tree_create_empty.
24040         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24041         'int'.
24042         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24043         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24044         xmalloc.
24045         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24046         not xmalloc.
24047         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24048         xmalloc.
24049         (gl_avltree_oset_implementation): Update.
24050         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24051         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24052         xmalloc.
24053         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24054         not xmalloc.
24055         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24056         xmalloc.
24057         (gl_rbtree_oset_implementation): Update.
24058         * modules/array-oset (Depends-on): Remove xalloc.
24059         * modules/avltree-oset (Depends-on): Likewise.
24060         * modules/rbtree-oset (Depends-on): Likewise.
24061         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24062         * tests/test-avltree_oset.c: Likewise.
24063         * tests/test-rbtree_oset.c: Likewise.
24064         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24065         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24066         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24067         * NEWS: Mention the change.
24068
24069 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24070
24071         maint.mk: allow a project to override release-prep commands
24072         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24073         commands into a new rule.
24074         (release-prep): New rule.
24075         (release-prep-hook): New overridable variable.
24076
24077 2009-12-13  Bruno Haible  <bruno@clisp.org>
24078
24079         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24080
24081 2009-12-13  Jim Meyering  <meyering@redhat.com>
24082
24083         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24084         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24085
24086 2009-12-12  Bruno Haible  <bruno@clisp.org>
24087
24088         duplocale: Tweak.
24089         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24090
24091 2009-12-12  Karl Berry  <karl@gnu.org>
24092
24093         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24094
24095 2009-12-12  Bruno Haible  <bruno@clisp.org>
24096
24097         * m4/po.m4: Undo incorrect untabification.
24098
24099 2009-12-12  Bruno Haible  <bruno@clisp.org>
24100
24101         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24102         * modules/c-strtod (Depends-on): Add locale.
24103         * modules/c-strtold (Depends-on): Likewise.
24104
24105 2009-12-12  Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24108
24109 2009-12-11  Eric Blake  <ebb9@byu.net>
24110
24111         setenv: relax requirement in light of POSIX ruling
24112         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24113         not NULL.
24114         * tests/test-setenv.c (main): Relax test.
24115         * tests/test-unsetenv.c (main): Likewise.
24116         * doc/posix-functions/setenv.texi (setenv): Document this.
24117         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24118
24119 2009-12-11  Bruno Haible  <bruno@clisp.org>
24120
24121         New module 'fd-safer-flag'.
24122         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24123         * lib/dup-safer.c (dup_safer_flag): Remove function.
24124         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24125         * lib/fd-safer.c (fd_safer_flag): Remove function.
24126         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24127         * modules/cloexec (configure.ac): Drop indicator macro.
24128         * modules/fd-safer-flag: New file.
24129         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24130         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24131         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24132
24133 2009-12-11  Bruno Haible  <bruno@clisp.org>
24134
24135         Tests for module 'nl_langinfo'.
24136         * modules/nl_langinfo-tests: New file.
24137         * tests/test-nl_langinfo.sh: New file.
24138         * tests/test-nl_langinfo.c: New file.
24139
24140         New module 'nl_langinfo'.
24141         * lib/nl_langinfo.c: New file.
24142         * m4/nl_langinfo.m4: New file.
24143         * modules/nl_langinfo: New file.
24144         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24145
24146 2009-12-11  Bruno Haible  <bruno@clisp.org>
24147
24148         Tests for module 'langinfo'.
24149         * modules/langinfo-tests: New file.
24150         * tests/test-langinfo.c: New file.
24151
24152         New module 'langinfo'.
24153         * lib/langinfo.in.h: New file.
24154         * m4/langinfo_h.m4: New file.
24155         * modules/langinfo: New file.
24156         * doc/posix-headers/langinfo.texi: Mention the new module.
24157
24158 2009-12-11  Bruno Haible  <bruno@clisp.org>
24159
24160         * lib/config.charset: Untabify.
24161
24162 2009-12-11  Bruno Haible  <bruno@clisp.org>
24163
24164         * modules/unistd-safer (configure.ac): Drop indicator macro.
24165
24166 2009-12-11  Bruno Haible  <bruno@clisp.org>
24167
24168         Move pipe2-safer code to its own file.
24169         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24170         * lib/pipe-safer.c (pipe2_safer): Remove function.
24171         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24172         (Makefile.am): Add it to lib_SOURCES.
24173
24174 2009-12-10  Bruno Haible  <bruno@clisp.org>
24175
24176         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24177
24178 2009-12-10  Bruno Haible  <bruno@clisp.org>
24179
24180         Declare which arguments expect non-NULL values, for GCC and clang.
24181         * build-aux/arg-nonnull.h: New file.
24182         * modules/arg-nonnull: New file.
24183         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24184         (inet_ntop, inet_pton): Use it.
24185         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24186         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24187         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24188         (open, openat): Use it.
24189         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24190         (fnmatch): Use it.
24191         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24192         (getopt, getopt_long, getopt_long_only): Use it.
24193         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24194         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24195         Use it.
24196         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24197         (iconv_open): Use it.
24198         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24199         (strtoimax, strtoumax): Use it.
24200         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24201         (duplocale): Use it.
24202         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24203         (frexp, frexpl): Use it.
24204         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24205         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24206         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24207         (tsearch, tfind, tdelete, twalk): Use it.
24208         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24209         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24210         sigpending): Use it.
24211         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24212         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24213         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24214         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24215         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24216         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24217         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24218         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24219         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24220         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24221         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24222         Use it.
24223         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24224         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24225         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24226         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24227         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24228         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24229         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24230         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24231         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24232         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24233         strtoull, unsetenv): Use it.
24234         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24235         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24236         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24237         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24238         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24239         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24240         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24241         (strcasecmp, strncasecmp): Use it.
24242         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24243         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24244         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24245         rpl_setsockopt): Use it.
24246         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24247         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24248         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24249         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24250         (gettimeofday): Use it.
24251         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24252         (times): Use it.
24253         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24254         (uname): Use it.
24255         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24256         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24257         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24258         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24259         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24260         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24261         unlinkat, write): Use it.
24262         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24263         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24264         * lib/argv-iter.h: Include arg-nonnull.h.
24265         (_ATTRIBUTE_NONNULL_): Remove macro.
24266         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24267         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24268         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24269         optimization.
24270         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24271         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24272         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24273         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24274         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24275         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24276         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24277         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24278         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24279         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24280         * modules/dirent (Depends-on): Add arg-nonnull.
24281         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24282         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24283         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24284         * modules/fnmatch (Depends-on): Add arg-nonnull.
24285         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24286         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24287         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24288         * modules/glob (Depends-on): Add arg-nonnull.
24289         (Makefile.am): Insert arg-nonnull.h into glob.h.
24290         * modules/iconv_open (Depends-on): Add arg-nonnull.
24291         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24292         * modules/inttypes (Depends-on): Add arg-nonnull.
24293         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24294         * modules/locale (Depends-on): Add arg-nonnull.
24295         (Makefile.am): Insert arg-nonnull.h into locale.h.
24296         * modules/math (Depends-on): Add arg-nonnull.
24297         (Makefile.am): Insert arg-nonnull.h into math.h.
24298         * modules/netdb (Depends-on): Add arg-nonnull.
24299         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24300         * modules/search (Depends-on): Add arg-nonnull.
24301         (Makefile.am): Insert arg-nonnull.h into search.h.
24302         * modules/signal (Depends-on): Add arg-nonnull.
24303         (Makefile.am): Insert arg-nonnull.h into signal.h.
24304         * modules/spawn (Depends-on): Add arg-nonnull.
24305         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24306         * modules/stdio (Depends-on): Add arg-nonnull.
24307         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24308         * modules/stdlib (Depends-on): Add arg-nonnull.
24309         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24310         * modules/string (Depends-on): Add arg-nonnull.
24311         (Makefile.am): Insert arg-nonnull.h into string.h.
24312         * modules/strings (Depends-on): Add arg-nonnull.
24313         (Makefile.am): Insert arg-nonnull.h into strings.h.
24314         * modules/sys_socket (Depends-on): Add arg-nonnull.
24315         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24316         * modules/sys_stat (Depends-on): Add arg-nonnull.
24317         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24318         * modules/sys_time (Depends-on): Add arg-nonnull.
24319         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24320         * modules/sys_times (Depends-on): Add arg-nonnull.
24321         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24322         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24323         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24324         * modules/time (Depends-on): Add arg-nonnull.
24325         (Makefile.am): Insert arg-nonnull.h into time.h.
24326         * modules/unistd (Depends-on): Add arg-nonnull.
24327         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24328         * modules/wchar (Depends-on): Add arg-nonnull.
24329         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24330         * modules/argv-iter (Depends-on): Add arg-nonnull.
24331         * tests/test-canonicalize.c (null_ptr): New function.
24332         (main): Use it.
24333         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24334         (main): Use it.
24335         * tests/test-memmem.c (null_ptr): New function.
24336         (main): Use it.
24337         Reported by Jim Meyering.
24338
24339 2009-12-10  Bruno Haible  <bruno@clisp.org>
24340
24341         Use spaces for indentation, not tabs.
24342         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24343         * m4/*.m4: Untabify.
24344         * build-aux/*.h: Untabify.
24345         * tests/**/*.[hc]: Untabify.
24346         * README: New section "Indent with spaces, not TABs", based on
24347         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24348         * NEWS: Mention the change.
24349
24350 2009-12-10  Bruno Haible  <bruno@clisp.org>
24351
24352         pty test: Fix link error.
24353         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24354         test_pty_LDADD.
24355
24356 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24357
24358         * modules/pty: New file.
24359         * modules/pty-tests: New file.
24360         * m4/pty.m4: New file.
24361         * tests/test-pty.c: New file.
24362         * doc/glibc-headers/pty.texi: Modified.
24363         * doc/glibc-functions/forkpty.texi: Modified.
24364         * doc/glibc-functions/openpty.texi: Modified.
24365
24366 2009-12-10  Bruno Haible  <bruno@clisp.org>
24367
24368         Avoid syntax error in C++ mode.
24369         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24370
24371 2009-12-10  Bruno Haible  <bruno@clisp.org>
24372
24373         Use sed with option -e.
24374         * gnulib-tool (func_version, func_emit_copyright_notice,
24375         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24376         option -e to sed.
24377         * modules/link-warning (Makefile.am): Likewise.
24378
24379 2009-12-10  Jim Meyering  <meyering@redhat.com>
24380
24381         mgetgroups: do not write bytes beyond end of malloc'd buffer
24382         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24383         username, we call getgroups with a one-element-shorter buffer,
24384         but still told it the length was original, max_n_groups.
24385
24386 2009-12-09  Eric Blake  <ebb9@byu.net>
24387
24388         cloexec: relax license
24389         * modules/cloexec (Maintainer): Add myself.
24390         (License): Use LGPL, not GPL.
24391
24392         link-warning: optimize generation
24393         * modules/link-warning (Makefile.am): Reduce process usage.
24394
24395 2009-12-09  Bruno Haible  <bruno@clisp.org>
24396
24397         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24398         workaround was added on 2009-11-17.
24399
24400 2009-12-09  Jim Meyering  <meyering@redhat.com>
24401             Bruno Haible  <bruno@clisp.org>
24402
24403         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24404         * modules/link-warning (Makefile.am): Make the comment-removing sed
24405         command more robust in the face of bootstrap-prepended comment lines.
24406
24407 2009-12-09  Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24410         most one group.
24411
24412 2009-12-09  Simon Josefsson <simon@josefsson.org>
24413             Bruno Haible  <bruno@clisp.org>
24414
24415         * build-aux/link-warning.h: Add copyright notice.
24416         * modules/link-warning (Makefile.am): Generate link-warning.h from
24417         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24418         * NEWS: Mention change in link-warning module.
24419         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24420         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24421         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24422         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24423         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24424         * modules/math (Makefile.am): Add dependency to math.h.
24425         * modules/search (Makefile.am): Add dependency to search.h.
24426         * modules/signal (Makefile.am): Add dependency to signal.h.
24427         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24428         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24429         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24430         * modules/string (Makefile.am): Add dependency to string.h.
24431         * modules/strings (Makefile.am): Add dependency to strings.h.
24432         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24433         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24434         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24435         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24436         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24437         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24438         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24439         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24440         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24441
24442 2009-12-09  Bruno Haible  <bruno@clisp.org>
24443
24444         fchdir: Optimize away rpl_fstat when possible.
24445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24446         REPLACE_OPEN_DIRECTORY.
24447         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24448
24449 2009-12-09  Bruno Haible  <bruno@clisp.org>
24450
24451         * lib/fchdir.c: Update comment.
24452
24453 2009-12-09  Bruno Haible  <bruno@clisp.org>
24454
24455         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24456
24457 2009-12-08  Eric Blake  <ebb9@byu.net>
24458
24459         fchdir: avoid memory leak on re-registration.
24460         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24461
24462 2009-12-08  Jim Meyering  <meyering@redhat.com>
24463
24464         init.sh: avoid Solaris 10 /bin/sh portability problem
24465         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24466         sourced script:
24467           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24468           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24469           bar
24470         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24471         and two tests used that idiom.
24472         * tests/init.sh: Update suggested usage comments.
24473         (path_prepend_): New function, to be used in place
24474         of the --src-path=DIR option.
24475         (setup_): Move PATH-prepending code into path_prepend_.
24476         * tests/test-pread.sh: Adapt to new usage.
24477         * tests/test-xalloc-die.sh: Likewise.
24478
24479 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24480
24481         * doc/gnulib.texi (Glibc pty.h): Add.
24482         * doc/glibc-functions/forkpty.texi: Add.
24483         * doc/glibc-functions/openpty.texi: Add.
24484         Suggested by Bruno Haible.
24485
24486 2009-12-08  Eric Blake  <ebb9@byu.net>
24487
24488         fchdir: fix logic bugs
24489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24490         * tests/test-fchdir.c (main): Enhance test.
24491         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24492         is in use.
24493
24494         dup2: fix logic bugs
24495         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24496         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24497         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24498         exists.
24499         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24500
24501 2009-12-07  Eric Blake  <ebb9@byu.net>
24502
24503         unlink: fix m4 detection
24504         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24505
24506         unistd-safer: add unit test
24507         * modules/unistd-safer-tests: New file.
24508         * tests/test-dup-safer.c: Likewise.
24509         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24510         * tests/test-dup2.c (setmode): Likewise.
24511         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24512
24513         cloexec: preserve text vs. binary across dup_cloexec
24514         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24515         mode.
24516         * modules/dup2-tests (Depends-on): Add binary-io.
24517         * modules/cloexec-tests (Depends-on): Likewise.
24518         * tests/test-dup2.c (setmode, is_mode): New helpers.
24519         (main): Add tests that translation mode is preserved.
24520         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24521         Reported by Bruno Haible.
24522
24523         mgetgroups: reduce duplicate listings
24524         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24525         resulting array.
24526         * tests/test-chown.h (test_chown): Simplify client.
24527         * tests/test-lchown.h (test_lchown): Likewise.
24528
24529 2009-12-06  Bruno Haible  <bruno@clisp.org>
24530
24531         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24532         value.
24533
24534 2009-12-06  Bruno Haible  <bruno@clisp.org>
24535
24536         * lib/progname.c: Include stdio.h, stdlib.h.
24537         (set_program_name): Reject a NULL argument.
24538
24539 2009-12-05  Eric Blake  <ebb9@byu.net>
24540
24541         pipe2-safer: new module
24542         * modules/pipe2-safer: New file.
24543         * lib/unistd-safer.h (pipe2_safer): New prototype.
24544         * lib/unistd--.h (pipe2): New wrapper.
24545         * lib/pipe-safer.c (pipe2_safer): New function.
24546         * modules/pipe (Depends-on): Add pipe2-safer.
24547         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24548
24549         stdlib-safer: preserve cloexec flag for mkostemp[s]
24550         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24551         fd_safer_flag.
24552
24553         unistd-safer: allow preservation of cloexec status via flag
24554         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24555         prototypes.
24556         * lib/dup-safer.c (dup_safer_flag): New function.
24557         * lib/fd-safer.c (fd_safer_flag): Likewise.
24558         * modules/cloexec (configure.ac): Set witness.
24559
24560         test-dup2: enhance test
24561         * modules/dup2-tests (Depends-on): Add cloexec.
24562         * tests/test-dup2.c (main): Enhance test.
24563
24564         cloexec: add dup_cloexec
24565         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24566         header and comments.
24567         * lib/cloexec.c (set_cloexec_flag): Add comments.
24568         (dup_cloexec): New function, with mingw implementation borrowed
24569         from...
24570         * lib/w32spawn.h (dup_noinherit): ...here.
24571         * modules/execute (Depends-on): Add cloexec.
24572         * modules/pipe (Depends-on): Likewise.
24573         * modules/cloexec (Depends-on): Add dup2.
24574         * modules/cloexec-tests (Files): New file.
24575         * tests/test-cloexec.c: Likewise.
24576
24577         test-xalloc-die: fix test for mingw
24578         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24579         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24580         directory and .exe suffix off argv[0] output.
24581
24582         test-fseeko: fix test for mingw
24583         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24584         than undefining fseek, so test will pass on mingw.
24585
24586 2009-12-05  Bruno Haible  <bruno@clisp.org>
24587
24588         * lib/progname.h (set_program_name): Clarify specification.
24589         * lib/progname.c (set_program_name): Likewise.
24590         Reported by Jim Meyering.
24591
24592 2009-12-05  Jim Meyering  <meyering@redhat.com>
24593
24594         maint.mk: backslash-escape parens in default regexp
24595         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24596         backslash-escape the literal parentheses.
24597
24598         maint.mk: news-date-check: use grep -E
24599         * top/maint.mk (today): Define a Make variable, not a...
24600         (news-date-check): ...shell variable.
24601         (news-date-regexp): Use the Make variable.
24602         Use grep's -E option.  Change the failing diagnostic to mention
24603         the variable, $(news-date-regexp).
24604
24605 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24606
24607         maintainer-makefile: allow customization of NEWS entry format
24608         * top/maint.mk (news-date-regexp): New overridable variable.
24609         (news-date-check): Use it.
24610
24611 2009-12-04  Eric Blake  <ebb9@byu.net>
24612
24613         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24614         * lib/mgetgroups.h (xgetgroups): New prototype.
24615         * lib/mgetgroups.c (xgetgroups): New wrapper.
24616         (mgetgroups): Handle ENOSYS.
24617         * modules/mgetgroups (Depends-on): Add realloc.
24618         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24619
24620         mgetgroups: avoid argument promotion issues with -1
24621         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24622         for invalid gid_t.
24623         * tests/test-chown.h (getegid, test_chown): Likewise.
24624         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24625
24626 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24627
24628         exclude: Fix header file problems.
24629         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24630
24631 2009-12-01  Jim Meyering  <meyering@redhat.com>
24632
24633         fts: fts_open: do not let an empty string cause immediate failure
24634         This is required in support of GNU rm, for which the command
24635         "rm A '' B" must process and remove both A and B, in spite of
24636         the empty string argument.
24637         * lib/fts.c (fts_open): Do not let the presence of an empty string
24638         cause fts_open to fail immediately.  Most fts-using tools must be
24639         able to process all arguments, in order, and can be expected to
24640         diagnose such arguments themselves.
24641
24642 2009-11-30  Eric Blake  <ebb9@byu.net>
24643
24644         utimens: fix compilation error
24645         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24646         Declare variable at right scope.
24647
24648 2009-11-29  Jim Meyering  <meyering@redhat.com>
24649
24650         bootstrap: handle perl-5.11's changed --version output
24651         * build-aux/bootstrap (get_version): Handle perl separately,
24652         since perl-5.11's --version output is different.
24653
24654 2009-11-28  Jim Meyering  <meyering@redhat.com>
24655
24656         userspec: depend on the inttostr module, too
24657         * modules/userspec (Depends-on): Add inttostr.
24658
24659         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24660         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24661         number of MAXUID when it evaluates to (uid_t) -1.
24662         Likewise for group ID.  Reported by Matt McCutchen in
24663         <http://savannah.gnu.org/bugs/?28113>
24664
24665         userspec: reformat to use spaces, not TABs
24666         * lib/userspec.c: Expand TABs to spaces.
24667         Add Emacs' "indent-tabs-mode: nil" hint.
24668
24669 2009-11-27  Eric Blake  <ebb9@byu.net>
24670
24671         getopt-gnu: flush out another BSD bug
24672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24673         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24674         flush out BSD bug.
24675         * tests/test-getopt.h (test_getopt): End lists with NULL.
24676         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24677         (test_getopt_long_posix): Enhance test.
24678         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24679         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24680         getopt-gnu.
24681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24682         Likewise.
24683
24684 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24685
24686         * modules/idpriv-droptemp-tests (Notice): Fix text.
24687
24688 2009-11-27  Jim Meyering  <meyering@redhat.com>
24689
24690         test-xalloc-die: avoid spurious failure due to libtool argv difference
24691         In a libtool-enabled project, this test would fail due to a difference
24692         in the emitted program name, e.g.,
24693         -test-xalloc-die: memory exhausted
24694         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24695         Use program to avoid that.
24696         * modules/xalloc-die-tests (Depends-on): Add progname.
24697         * tests/test-xalloc-die.c: Include progname.h".
24698         (program_name): Remove decl.
24699         (main): Call set_program_name.
24700         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24701
24702 2009-11-26  Richard Jones  <rjones@redhat.com>
24703
24704         w32sock: leave win32 error in place.
24705         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24706
24707 2009-11-26  Eric Blake  <ebb9@byu.net>
24708
24709         init.sh: suggest to use skip_ and fail_ functions in comments
24710         * tests/init.sh: Add a sentence.
24711
24712 2009-11-25  Bruno Haible  <bruno@clisp.org>
24713
24714         init.sh: add documentation in comments
24715         * tests/init.sh: Add some developer and user documentation.
24716
24717 2009-11-26  Jim Meyering  <meyering@redhat.com>
24718
24719         init.sh: accommodate even those who specify bogus srcdir manually
24720         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24721         configure-time tests to be sanitized, so that there is no need to
24722         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24723         (with no double quotes) suffices.  However, since tests may be
24724         invoked manually, and since you may explicitly set srcdir to the
24725         name of a directory containing spaces, do quote its uses here.
24726         * tests/test-pread.sh: Likewise.
24727         Suggested by Bruno Haible.
24728
24729         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24730         * tests/test-pread.sh: Write no data into the pipe, because
24731         test-pread actually reads none.  This avoids a diagnostic,
24732         "bash: echo: write error: Broken pipe", that arises in the unusual
24733         event something is ignoring SIGPIPE, and might be interpreted
24734         as some sort of failure.  Reported by Bruno Haible.
24735
24736 2009-11-25  Jim Meyering  <meyering@redhat.com>
24737
24738         test-pread: cover failure with ESPIPE and EINVAL
24739         * tests/test-pread.c (main): Test for failure, too.
24740         * tests/test-pread.sh: Invoke with stdin on a pipe.
24741         Suggested by Eric Blake.
24742
24743         pread: improvement and fix
24744         * modules/pread (Depends-on): Depend on lseek, for portability to
24745         e.g., mingw.  Suggested by Eric Blake.
24746         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24747
24748         unistd.in.h: correct declaration of pread
24749         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24750         Reported by Richard W.M. Jones.
24751
24752         test-pread.sh: distribute the test script
24753         * modules/pread-tests (Files): Include test-pread.sh.
24754
24755         test-pread.sh: clean up
24756         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24757         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24758         That is unnecessary, since it's always ".".
24759         Suggestion from Eric Blake.
24760
24761         test-pread.sh: make executable
24762         * tests/test-pread.sh: Set executable bit.
24763         Reported by Eric Blake.
24764
24765         correct typo in test-pread.sh
24766         * tests/test-pread.sh: Add #! line.
24767
24768         test pread
24769         * tests/test-pread.c: New file.
24770         * tests/test-pread.sh: Likewise.
24771         * modules/pread-tests: Likewise.
24772
24773         pread: new module
24774         * modules/pread: New file.
24775         * lib/unistd.in.h (pread): Define/declare.
24776         * lib/pread.c (pread): New file.
24777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24778         * modules/unistd (Makefile.am): Substitute witnesses.
24779         * doc/posix-functions/pread.texi (pread): Update.
24780         * MODULES.html.sh: Add pread.
24781
24782 2009-11-25  Jim Meyering  <meyering@redhat.com>
24783
24784         tests/init.sh: new file to be used via most *.sh tests
24785         * tests/init.sh: New file.
24786
24787 2009-11-25  Eric Blake  <ebb9@byu.net>
24788
24789         utimens: work around older Linux failure with symlinks
24790         * lib/utimens.c (lutimensat_works_really): New variable.
24791         (fdutimens, lutimens): Use it to manage kernels that support
24792         nanosecond times on files, but not on symlinks.
24793         Reported by OndÅ™ej Vašík.
24794
24795         utimes: fix configure grammar
24796         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24797
24798 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24799
24800         regex: Fix fastmap for multibyte character ranges.
24801         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24802         characters when a multibyte character range is included.
24803
24804 2009-11-22  Andy Wingo  <wingo@pobox.com>
24805
24806         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24807         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24808
24809 2009-11-24  Bruno Haible  <bruno@clisp.org>
24810
24811         doc: Most *_l functions exist in MacOS X 10.5.
24812         * doc/posix-functions/duplocale.texi: Update platforms list.
24813         * doc/posix-functions/freelocale.texi: Likewise.
24814         * doc/posix-functions/newlocale.texi: Likewise.
24815         * doc/posix-functions/uselocale.texi: Likewise.
24816         * doc/posix-functions/isalnum_l.texi: Likewise.
24817         * doc/posix-functions/isalpha_l.texi: Likewise.
24818         * doc/posix-functions/isblank_l.texi: Likewise.
24819         * doc/posix-functions/iscntrl_l.texi: Likewise.
24820         * doc/posix-functions/isdigit_l.texi: Likewise.
24821         * doc/posix-functions/isgraph_l.texi: Likewise.
24822         * doc/posix-functions/islower_l.texi: Likewise.
24823         * doc/posix-functions/isprint_l.texi: Likewise.
24824         * doc/posix-functions/ispunct_l.texi: Likewise.
24825         * doc/posix-functions/isspace_l.texi: Likewise.
24826         * doc/posix-functions/isupper_l.texi: Likewise.
24827         * doc/posix-functions/iswalnum_l.texi: Likewise.
24828         * doc/posix-functions/iswalpha_l.texi: Likewise.
24829         * doc/posix-functions/iswblank_l.texi: Likewise.
24830         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24831         * doc/posix-functions/iswctype_l.texi: Likewise.
24832         * doc/posix-functions/iswdigit_l.texi: Likewise.
24833         * doc/posix-functions/iswgraph_l.texi: Likewise.
24834         * doc/posix-functions/iswlower_l.texi: Likewise.
24835         * doc/posix-functions/iswprint_l.texi: Likewise.
24836         * doc/posix-functions/iswpunct_l.texi: Likewise.
24837         * doc/posix-functions/iswspace_l.texi: Likewise.
24838         * doc/posix-functions/iswupper_l.texi: Likewise.
24839         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24840         * doc/posix-functions/isxdigit_l.texi: Likewise.
24841         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24842         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24843         * doc/posix-functions/strcoll_l.texi: Likewise.
24844         * doc/posix-functions/strfmon_l.texi: Likewise.
24845         * doc/posix-functions/strftime_l.texi: Likewise.
24846         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24847         * doc/posix-functions/strxfrm_l.texi: Likewise.
24848         * doc/posix-functions/tolower_l.texi: Likewise.
24849         * doc/posix-functions/toupper_l.texi: Likewise.
24850         * doc/posix-functions/towctrans_l.texi: Likewise.
24851         * doc/posix-functions/towlower_l.texi: Likewise.
24852         * doc/posix-functions/towupper_l.texi: Likewise.
24853         * doc/posix-functions/wcscoll_l.texi: Likewise.
24854         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24855         * doc/posix-functions/wctrans_l.texi: Likewise.
24856         * doc/posix-functions/wctype_l.texi: Likewise.
24857         * doc/glibc-functions/strptime_l.texi: Likewise.
24858         * doc/glibc-functions/strtod_l.texi: Likewise.
24859         * doc/glibc-functions/strtof_l.texi: Likewise.
24860         * doc/glibc-functions/strtol_l.texi: Likewise.
24861         * doc/glibc-functions/strtold_l.texi: Likewise.
24862         * doc/glibc-functions/strtoll_l.texi: Likewise.
24863         * doc/glibc-functions/strtoul_l.texi: Likewise.
24864         * doc/glibc-functions/strtoull_l.texi: Likewise.
24865         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24866         * doc/glibc-functions/wcstod_l.texi: Likewise.
24867         * doc/glibc-functions/wcstof_l.texi: Likewise.
24868         * doc/glibc-functions/wcstol_l.texi: Likewise.
24869         * doc/glibc-functions/wcstold_l.texi: Likewise.
24870         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24871         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24872         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24873
24874 2009-11-24  Bruno Haible  <bruno@clisp.org>
24875
24876         duplocale: Fix logic bug.
24877         * lib/duplocale.c: Don't include <langinfo.h>.
24878         (_NL_LOCALE_NAME): Remove macro.
24879         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24880         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24881
24882 2009-11-23  Jim Meyering  <meyering@redhat.com>
24883
24884         test-update-copyright: don't hard-code /usr/bin/perl
24885         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24886         perl to print the current year.  Gilles Espinasse reported that
24887         the replaced use of perl was hard-coded as /usr/bin/perl.
24888
24889 2009-11-23  Bruno Haible  <bruno@clisp.org>
24890
24891         duplocale: Add support for glibc 2.3.x.
24892         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24893
24894 2009-11-22  Bruno Haible  <bruno@clisp.org>
24895
24896         vasnprintf: Tiny optimization.
24897         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24898         MacOS X.
24899
24900 2009-11-22  Bruno Haible  <bruno@clisp.org>
24901
24902         Tests for module 'duplocale'.
24903         * modules/duplocale-tests: New file.
24904         * tests/test-duplocale.c: New file.
24905
24906         New module 'duplocale'.
24907         * m4/duplocale.m4: New file.
24908         * lib/locale.in.h (duplocale): New declaration.
24909         * lib/duplocale.c: New file.
24910         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24911         gl_LOCALE_H_DEFAULTS): New macros.
24912         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24913         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24914         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24915         REPLACE_DUPLOCALE.
24916         * modules/duplocale: New file.
24917         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24918
24919 2009-11-22  Bruno Haible  <bruno@clisp.org>
24920
24921         * modules/locale-tests (configure.ac): Test for newlocale function.
24922         * tests/test-locale.c: When the system has extended locale functions,
24923         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24924
24925         locale: Make locale_t available when possible.
24926         * lib/locale.in.h: Include <xlocale.h> when it exists.
24927         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24928         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24929         * modules/locale (Depends-on): Add extensions.
24930         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24931         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24932
24933 2009-11-22  Bruno Haible  <bruno@clisp.org>
24934
24935         Add comments.
24936         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24937         invocation.
24938         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24939         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24940         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24941
24942 2009-11-22  Bruno Haible  <bruno@clisp.org>
24943
24944         error: account for the possibility of freopen (stdout).
24945         * lib/error.c: Include <unistd.h>.
24946         (flush_stdout): New function, extracted from error and error_at_line.
24947         Determine stdout's fd dynamically.
24948         (error, error_at_line): Invoke flush_stdout.
24949         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24950         * modules/error (Depends-on): Add unistd.
24951
24952 2009-11-22  Bruno Haible  <bruno@clisp.org>
24953
24954         diffseq: Add comment.
24955         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24956
24957 2009-11-22  Jim Meyering  <meyering@redhat.com>
24958
24959         c-stack: avoid defining an unused static function
24960         * lib/c-stack.c (find_stack_direction): Do not define this function
24961         when it will not be used.
24962
24963         diffseq: avoid spurious gcc warnings
24964         * lib/diffseq.h (IF_LINT2): Define.
24965         (compareseq): Use it to initialize two members of "part".
24966         This avoids two used-uninitialized warnings.
24967
24968 2009-11-21  Jim Meyering  <meyering@redhat.com>
24969
24970         c-stack: avoid "ignoring return value of `write'" warning
24971         * lib/c-stack.c: Include "ignore-value.h".
24972         (die): Explicitly ignore each write return value.
24973         * modules/c-stack (Depends-on): Add ignore-value.
24974
24975 2009-11-21  Bruno Haible  <bruno@clisp.org>
24976
24977         diffseq: reduce scope of variable 'best'.
24978         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24979         variable, earlier used for two different purposes.
24980
24981 2009-11-21  Jim Meyering  <meyering@redhat.com>
24982
24983         diffseq: remove useless assignment to "best"
24984         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24985         assignment.  At that point "best" is already guaranteed to be zero.
24986
24987 2009-11-20  Eric Blake  <ebb9@byu.net>
24988
24989         build: mention ftp redirector in release announcements
24990         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24991         values that used to come from cfg.mk; mention FTP redirect URL.
24992         * build-aux/announce-gen: Mention the mirror list.
24993         Suggested by Karl Berry.
24994
24995         nanosleep: improve port to mingw
24996         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24998         LIB_NANOSLEEP, but only when needed.
24999         * modules/select (Link): Document LIBSOCKET.
25000         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25001         enough.
25002
25003         nanosleep: work around cygwin bug
25004         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25005         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25006         bug.
25007         (getnow): Delete, not needed.
25008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25009         LIB_CLOCK_GETTIME.
25010         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25011         clock-time, gettime.
25012         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25013         bug.
25014         * modules/nanosleep-tests: New test.
25015         * tests/test-nanosleep.c: New file.
25016
25017         sleep: work around cygwin bug
25018         * lib/sleep.c (rpl_sleep): Work around the bug.
25019         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25020         (gl_PREREQ_SLEEP): Delete unused macro.
25021         * modules/sleep (Depends-on): Add verify.
25022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25023         * modules/unistd (Makefile.am): Substitute witness.
25024         * lib/unistd.in.h (sleep): Update prototype.
25025         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25026         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25027         * modules/sleep-tests (Depends-on): Check for alarm.
25028
25029 2009-11-20  Jim Meyering  <meyering@redhat.com>
25030
25031         maint.mk: improve sc_prohibit_magic_number_exit
25032         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25033         so it does not match uses like System.exit(1).
25034         Add comments showing how to correct all offenders.
25035
25036 2009-11-19  Eric Blake  <ebb9@byu.net>
25037
25038         xalloc-die-tests: add missing library
25039         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25040
25041         test-xvasprintf: silence compiler warnings
25042         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25043         empty string from gcc.
25044
25045 2009-11-19  Jim Meyering  <meyering@redhat.com>
25046
25047         xfreopen: new module, from coreutils
25048         * modules/xfreopen: New module.
25049         * lib/xfreopen.c: New file.
25050         * lib/xfreopen.h: New file.
25051         * MODULES.html.sh (File stream based Input/Output"): Add it.
25052
25053 2009-11-19  Eric Blake  <ebb9@byu.net>
25054
25055         manywarnings: depend on warnings
25056         * modules/manywarnings (Depends-on): Add warnings.
25057
25058         build: avoid compiler warnings
25059         * lib/select.c (rpl_select): Delete unused variable.
25060         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25061
25062 2009-11-18  Eric Blake  <ebb9@byu.net>
25063
25064         tests: avoid false negative with --with-packager
25065         * tests/test-version-etc.sh: Discard packager information.
25066         * tests/test-argp-version-etc-1.sh: Likewise.
25067         Reported by Mike Frysinger.
25068
25069         utimens: fix regression on Solaris
25070         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25071         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25072         can only change fd timestamps via futimesat.  Instead, use an
25073         additional witness macro to avoid BSD bug.
25074         Reported by Jim Meyering.
25075
25076 2009-11-17  Eric Blake  <ebb9@byu.net>
25077
25078         usleep: use it to simplify tests
25079         * modules/stat-time-tests (Depends-on): Add usleep.
25080         (configure.ac): Drop usleep check.
25081         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25082         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25083         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25084         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25085         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25086         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25087         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25088         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25089         Likewise.
25090         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25091         * tests/test-lchown.h (nap): Likewise.
25092         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25093         * tests/test-stat-time.c (nap): Likewise.
25094         * tests/test-utimens-common.h (nap): Update comments.
25095
25096         usleep: new module
25097         * modules/usleep: New file.
25098         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25099         * lib/usleep.c (usleep): Likewise.
25100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25101         * modules/unistd (Makefile.am): Substitute witnesses.
25102         * lib/unistd.in.h (usleep): Add declaration.
25103         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25104         * MODULES.html.sh (Date and time): Likewise.
25105         * modules/usleep-tests (Depends-on): New test.
25106         * tests/test-usleep.c: New file.
25107
25108         chown: work around OpenBSD bug
25109         * lib/chown.c (rpl_chown): Work around the bug.
25110         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25111         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25113         * modules/chown (Depends-on): Add stdbool.
25114         * modules/lchown (Depends-on): Likewise.
25115         * doc/posix-functions/chown.texi (chown): Document the bug.
25116         * doc/posix-functions/lchown.texi (lchown): Likewise.
25117         * tests/test-lchown.h (test_chown): Relax test.
25118
25119         mkstemp: avoid conflict with C++ keyword template
25120         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25121         * lib/mkostemp.c (mkostemp): Likewise.
25122         * lib/mkostemps.c (mkostemps): Likewise.
25123         * lib/mkstemp.c (mkstemp): Likewise.
25124         * lib/mkstemps.c (mkstemps): Likewise.
25125
25126         xalloc-die-tests: optimize
25127         * tests/test-xalloc-die.sh: Reduce number of processes.
25128
25129 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25130
25131         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25132         patch from ludo@gnu.org (Ludovic Courtès).
25133
25134 2009-11-17  Jim Meyering  <meyering@redhat.com>
25135
25136         version-etc: use proper license string
25137         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25138         * modules/version-etc-fsf: Likewise.
25139
25140 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25141
25142         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25143         printed to stdout.  Deal with EOL differences.
25144
25145 2009-11-17  Eric Blake  <ebb9@byu.net>
25146
25147         unsetenv: work around Solaris bug
25148         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25149         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25150         Reported by Jim Meyering.
25151
25152         vasnprintf: avoid compiler warnings
25153         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25154         variables.
25155         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25156
25157 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25158
25159         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25160         settings since xalloc-die is no longer the self test,
25161         xalloc-die.sh is.
25162
25163 2009-11-17  Jim Meyering  <meyering@redhat.com>
25164
25165         test-xalloc-die.sh: make the code agree with the commit log
25166         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25167         at the end, just in case you happen to have a test-xalloc-die
25168         program in some other PATH directory.
25169
25170         test-xalloc-die.sh: fix a portability bug
25171         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25172         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25173         Otherwise, argv[0] (as often seen in diagnostics) would be too
25174         system-dependent, sometimes with, and sometimes without the leading "./".
25175
25176         version-etc-fsf: relax license to LGPLv3+
25177         * modules/version-etc-fsf (License): Relax license.
25178
25179 2009-11-16  Eric Blake  <ebb9@byu.net>
25180
25181         xalloc-die-tests: avoid printing null pointer
25182         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25183         shell script.
25184         * tests/test-xalloc-die.c (program_name): Declare.
25185         * tests/test-xalloc-die.sh (tmpfiles): New file.
25186
25187         setenv, unsetenv: work around various bugs
25188         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25189         (setenv) [HAVE_SETENV]: Work around bugs.
25190         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25192         for bugs.
25193         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25194         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25196         * modules/stdlib (Makefile.am): Update substitutions.
25197         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25198         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25199         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25200         * modules/setenv-tests: New test.
25201         * modules/unsetenv-tests: Likewise.
25202         * tests/test-setenv.c: New file.
25203         * tests/test-unsetenv.c: Likewise.
25204
25205 2009-11-16  Jim Meyering  <meyering@redhat.com>
25206
25207         version-etc: relax license to LGPLv3+
25208         * modules/version-etc (License): Relax license.
25209
25210         better AC_REQUIRE expanded-before-required-warning avoidance
25211         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25212         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25213         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25214         which is no longer needed.
25215
25216 2009-11-16  Eric Blake  <ebb9@byu.net>
25217
25218         test-freading: clean up temporary file
25219         * tests/test-freading.c (main): Remove file on success, and use
25220         ASSERT more liberally.
25221         Reported by Jim Meyering.
25222
25223 2009-11-16  Jim Meyering  <meyering@redhat.com>
25224
25225         avoid new AC_REQUIRE expanded-before-required warnings
25226         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25227         merely using it.
25228         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25229         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25230
25231 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25232
25233         * tests/test-xalloc-die.c: New file.
25234         * modules/xalloc-die-tests: New file.
25235         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25236         XFAIL_TESTS so it can be appended by modules.
25237
25238 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25239
25240         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25241         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25242
25243 2009-11-14  Eric Blake  <ebb9@byu.net>
25244
25245         fnmatch: avoid compiler warning
25246         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25247         to silence compiler warning about mismatch signedness in ?:.
25248         Reported by Robert Millan.
25249
25250         intprops: add double-inclusion guard
25251         * lib/intprops.h: Allow idempotent includes.
25252         Suggested by Bruce Korb.
25253
25254         openat: detect Solaris fchownat bug
25255         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25256         penalizing glibc chownat when only lchownat is broken.
25257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25258         trailing slash bugs.
25259         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25260         * modules/openat-tests (Files): Include more files.
25261         (Depends-on): Add mgetgroups, sleep, stat-time.
25262         (configure.ac): Add additional checks.
25263         (Makefile.am): Build new test.
25264         * tests/test-fchownat.c: New file.
25265
25266         lchown: detect Solaris and FreeBSD bug
25267         * lib/lchown.c (rpl_lchown): Work around bug.
25268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25270         * modules/unistd (Makefile.am): Populate it.
25271         * lib/unistd.in.h (lchown): Update declaration.
25272         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25273         * modules/lchown-tests: New file.
25274         * tests/test-lchown.h (test_lchown): Likewise.
25275         * tests/test-lchown.c (main): Likewise.
25276
25277         chown: detect Solaris and FreeBSD bug
25278         * lib/chown.c (rpl_chown): Work around bug.
25279         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25280         (gl_PREREQ_CHOWN): Delete.
25281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25282         * modules/unistd (Makefile.am): Populate it.
25283         * lib/unistd.in.h (chown): Update declaration.
25284         * lib/lchown.c (chown): Update client.
25285         * modules/lchown (Depends-on): Add lstat.
25286         * doc/posix-functions/chown.texi (chown): Document the bug.
25287         * doc/posix-functions/getgroups.texi (getgroups): Document
25288         getgroups pitfall.
25289         * modules/chown-tests: New file.
25290         * tests/test-chown.h (test_chown): Likewise.
25291         * tests/test-chown.c (main): Likewise.
25292
25293 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25294
25295         gnulib-tool: correctly detect absence of m4 directories
25296         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25297
25298 2009-11-14  Jim Meyering  <meyering@redhat.com>
25299
25300         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25301         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25302
25303 2009-11-14  John W. Eaton  <jwe@gnu.org>
25304
25305         strftime.h: wrap funtion declaration in extern "C" block
25306         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25307
25308 2009-11-13  Eric Blake  <ebb9@byu.net>
25309
25310         getgroups: avoid compiler warning
25311         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25312
25313         getgroups: work around FreeBSD bug
25314         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25315         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25316         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25317         * tests/test-getgroups.c (main): Fix buffer overrun.
25318
25319         getgroups: avoid compilation failure
25320         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25321         * modules/getgroups (Depends-on): Add stdint.
25322
25323 2009-11-13  Jim Meyering  <meyering@redhat.com>
25324
25325         test-getgroups: avoid compilation failure
25326         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25327
25328 2009-11-13  Eric Blake  <ebb9@byu.net>
25329
25330         mgetgroups: new module, taken from coreutils
25331         * modules/mgetgroups: New file.
25332         * lib/mgetgroups.h: Likewise.
25333         * lib/mgetgroups.c (mgetgroups): Likewise.
25334         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25335         * MODULES.html.sh (Users and groups): Mention it.
25336
25337         getgroups: don't expose GETGROUPS_T to user
25338         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25339         an element at a time if GETGROUPS_T is wrong size.
25340         * lib/getugroups.h (getugroups): Change signature.
25341         * lib/unistd.in.h (getgroups): Likewise.
25342         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25343         signature needs fixing.
25344         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25345         AC_TYPE_GETGROUPS.
25346         * modules/group-member (Depends-on): Add getgroups.
25347         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25348         (group_member): Rely on getgroups replacement.
25349         * lib/getugroups.c (getugroups): Use gid_t.
25350         * tests/test-getgroups.c (main): Likewise.
25351         * NEWS: Mention the signature change.
25352         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25353         problem with signature.
25354         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25355         GETGROUPS_T is still useful for setgroups.
25356
25357         getgroups, getugroups: provide stubs for mingw
25358         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25359         * lib/getugroups.c (getugroups): Likewise.
25360         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25361         function.  Modernize replacement scheme.
25362         (gl_PREREQ_GETGROUPS): Delete.
25363         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25364         * modules/getgroups (configure.ac): Declare witness.
25365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25366         * modules/unistd (Depends-on): Substitute witness.
25367         * lib/unistd.in.h (getgroups): Declare replacement.
25368
25369         getgroups: avoid calling exit
25370         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25371         drop xalloc.
25372         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25373         dependencies.
25374         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25375         exiting, in the rare case of malloc failure.
25376
25377         getgroups: fix logic error
25378         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25379         has more than 20 groups.
25380         * modules/getgroups-tests: New test.
25381         * tests/test-getgroups.c: New file.
25382
25383 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25384
25385         * tests/test-base64.c: Improve.
25386
25387 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25388
25389         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25390         Blake <ebb9@byu.net>.
25391
25392 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25393
25394         * tests/test-xvasprintf.c: Add %s%s related checks.
25395
25396 2009-11-12  Eric Blake  <ebb9@byu.net>
25397
25398         version-etc: match standards.texi style
25399         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25400         and use <> only for URLs.
25401
25402 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25403
25404         fts: do not fail on a submount during traversal
25405         * lib/fts.c (fts_build): Read the stat info again after opening
25406         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25407         Original report at http://bugzilla.redhat.com/501848.
25408
25409 2009-11-12  Jim Meyering  <meyering@redhat.com>
25410
25411         bootstrap: sync from coreutils
25412         * build-aux/bootstrap (bootstrap_epilogue): New function.
25413         Use git_modules_config in one more place.  This make bootstrap's
25414         --gnulib-srcdir option more useful for testing.
25415
25416         bootstrap: generalize autoheader check
25417         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25418         AC_CONFIG_HEADERS.
25419
25420 2009-11-11  Eric Blake  <ebb9@byu.net>
25421
25422         mkfifoat: use new modules for Solaris and BSD bugs
25423         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25424         * lib/mkfifoat.c (mknodat): Split...
25425         * lib/mknodat.c (mknodat): ...into new file.
25426         * modules/mkfifoat (Files): Ship new file.
25427         (Depends-on): Add mkfifo, mknod.
25428         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25429         (Depends-on): Add symlink.
25430         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25431         redundant with test_mkfifo.h.
25432         (do_mkfifoat, do_mknodat): New helpers.
25433
25434         mknod: new module
25435         * modules/mknod: New file.
25436         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25437         * lib/mknod.c (mknod): Likewise.
25438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25439         defaults.
25440         * modules/sys_stat (Makefile.am): Substitute them.
25441         * lib/sys_stat.in.h (mknod): Declare replacement.
25442         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25443         Document it.
25444         * doc/posix-functions/mknod.texi (mknod): Likewise.
25445         * modules/mknod-tests: New test.
25446         * tests/test-mknod.c: Likewise.
25447
25448         mkfifo: new module
25449         * modules/mkfifo: New file.
25450         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25451         * lib/mkfifo.c (mkfifo): Likewise.
25452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25453         defaults.
25454         * modules/sys_stat (Makefile.am): Substitute them.
25455         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25456         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25457         Document it.
25458         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25459         * modules/mkfifo-tests: New test.
25460         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25461         from test-mkfifoat.c.
25462         * tests/test-mkfifo.c: New file.
25463
25464         readlink: detect FreeBSD bug
25465         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25466         slash on symlink.
25467         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25468         * tests/test-readlink.h (test_readlink): Enhance test.
25469
25470         symlink: detect FreeBSD bug
25471         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25472         slash on symlink.
25473         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25474         * tests/test-symlink.h (test_symlink): Enhance test.
25475
25476 2009-11-10  Eric Blake  <ebb9@byu.net>
25477
25478         link: detect FreeBSD bug
25479         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25480         symlink.
25481         * doc/posix-functions/link.texi (link): Document the bug.
25482         * tests/test-link.h (test_link): Enhance test.
25483         * tests/test-linkat.c (main): Update caller.
25484
25485         unlink, remove: detect FreeBSD bug
25486         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25487         slash on symlink.
25488         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25489         * doc/posix-functions/remove.texi (remove): Likewise.
25490         * tests/test-unlink.h (test_unlink): Enhance test.
25491         * tests/test-remove.c (main): Likewise.
25492
25493 2009-11-09  Eric Blake  <ebb9@byu.net>
25494
25495         rename: detect FreeBSD bug
25496         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25497         slash on symlink.
25498         * modules/renameat-tests (Depends-on): Add filenamecat.
25499         * tests/test-rename.h (test_rename): Allow one more errno.
25500         * tests/test-renameat.c (main): Likewise.
25501         * doc/posix-functions/rename.texi (rename): Document the bug.
25502
25503         open: detect FreeBSD bug
25504         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25505         symlink.
25506         * doc/posix-functions/open.texi (open): Document the bug.
25507         * doc/posix-functions/utimes.texi (utimes): Likewise.
25508         * tests/test-open.h (test_open): Add parameters, and test symlink
25509         handling.
25510         * tests/test-open.c (main): Adjust caller.
25511         * tests/test-fcntl-safer.c (main): Likewise.
25512         * modules/open-tests (Depends-on): Add stdbool, symlink.
25513         * modules/fcntl-safer-tests (Depends-on): Likewise.
25514         * tests/test-openat.c (main): Add test-open tests.
25515
25516         stat: detect FreeBSD bug
25517         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25518         symlink.
25519         * doc/posix-functions/stat.texi (stat): Document the bug.
25520         * tests/test-stat.h (test_stat_func): Add argument.
25521         * tests/test-stat.c (main): Adjust caller.
25522         * tests/test-fstatat.c (main): Likewise.
25523         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25524         Reported by Jim Meyering.
25525
25526 2009-11-09  James Youngman  <jay@gnu.org>
25527
25528         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25529         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25530
25531 2009-11-08  Jim Meyering  <meyering@redhat.com>
25532
25533         utimens: remove invalid futimesat call
25534         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25535         It used the file descriptor of the target file as the DIR_FD
25536         parameter and NULL as the file name.  That caused failure with
25537         errno == EFAULT on FreeBSD-8.0-rc2
25538
25539 2009-11-07  Eric Blake  <ebb9@byu.net>
25540
25541         fflush, freadseek: use fseeko, not fseek
25542         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25543         (clear_ungetc_buffer): Avoid potential problems on large files.
25544         * lib/freadseek.c (freadseek): Likewise.
25545         * modules/freadseek (Depends-on): Add fseeko.
25546         * modules/fseek (configure.ac): Set a witness.
25547         * tests/test-fflush.c (main): Use fseeko.
25548         * tests/test-fpurge.c (fseek): Disable link warning.
25549         * tests/test-freadable.c (fseek): Likewise.
25550         * tests/test-freading.c (fseek): Likewise.
25551         * tests/test-fseeko.c (fseek): Likewise.
25552         * tests/test-ftell.c (fseek): Likewise.
25553         * tests/test-ftello.c (fseek): Likewise.
25554         * tests/test-fwritable.c (fseek): Likewise.
25555         * tests/test-fwriting.c (fseek): Likewise.
25556
25557 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25558
25559         * modules/memchr (Depends-on): Drop getpagesize dependency.
25560
25561 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25562
25563         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25564         Reported by Ludovic Courtès.
25565         * build-aux/pmccabe2html: Improve example usage.
25566         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25567
25568 2009-11-06  Jim Meyering  <meyering@redhat.com>
25569
25570         do-release-commit-and-tag: New module.
25571         Automate the release-commit and tag process.
25572         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25573         * modules/do-release-commit-and-tag: New file.
25574         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25575
25576 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25577
25578         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25579         because test-select.c uses inet_pton.
25580
25581 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25582
25583         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25584         GETADDRINFO_LIB.  Bump serial number.
25585         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25586         Suggested by Eric Blake <ebb9@byu.net>.
25587
25588 2009-11-05  Eric Blake  <ebb9@byu.net>
25589
25590         strtod: detect darwin bug
25591         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25592         Reported by Leo Davis.
25593
25594         freopen-safer: new module
25595         * modules/freopen-safer: New module.
25596         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25597         * lib/freopen-safer.c (freopen_safer): New file.
25598         * lib/stdio-safer.h (freopen_safer): New declaration.
25599         * lib/stdio--.h (freopen): New override.
25600         * MODULES.html.sh (File stream based Input/Output): Mention it.
25601         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25602         freopen-safer module.
25603         * doc/posix-functions/stderr.texi (stderr): Likewise.
25604         * doc/posix-functions/stdin.texi (stdin): Likewise.
25605         * doc/posix-functions/stdout.texi (stdout): Likewise.
25606         * modules/freopen-safer-tests: New test.
25607         * tests/test-reopen-safer.c: New file.
25608
25609 2009-11-05  Jim Meyering  <meyering@redhat.com>
25610
25611         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25612         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25613
25614 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25615
25616         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25617
25618 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25619
25620         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25621
25622 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25623
25624         Fix link error.
25625         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25626         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25627
25628 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25629
25630         * tests/test-func.c: Also test value of __func__.
25631
25632 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25633
25634         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25635         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25636
25637 2009-11-05  Bruno Haible  <bruno@clisp.org>
25638
25639         Fix link error.
25640         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25641         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25642         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25643
25644 2009-11-05  Bruno Haible  <bruno@clisp.org>
25645
25646         Tests for module 'inet_pton'.
25647         * modules/inet_pton-tests: New file.
25648         * tests/test-inet_pton.c: New file.
25649
25650 2009-11-05  Bruno Haible  <bruno@clisp.org>
25651
25652         Tests for module 'inet_ntop'.
25653         * modules/inet_ntop-tests: New file.
25654         * tests/test-inet_ntop.c: New file.
25655
25656 2009-11-04  Eric Blake  <ebb9@byu.net>
25657
25658         stdlib-safer: wrap all mkstemp variants
25659         * modules/mkostemp (configure.ac): Set witness.
25660         * modules/mkostemps (configure.ac): Likewise.
25661         * modules/mkstemps (configure.ac): Likewise.
25662         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25663         (mkstemps_safer): Wrap more functions.
25664         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25665         wrapping.
25666         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25667         (mkstemps_safer): Implement the wrappers.
25668
25669         mkstemps, mkostemps: new modules
25670         * modules/mkostemps: New module.
25671         * modules/mkstemps: Likewise.
25672         * lib/mkostemps.c (mkostemps): New file.
25673         * lib/mkstemps.c (mkstemps): Likewise.
25674         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25675         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25677         * modules/stdlib (Makefile.am): Substitute them.
25678         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25679         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25680         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25681         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25682         * MODULES.html.sh (File system functions): Mention them.
25683
25684         tempname: resync from glibc
25685         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25686         same values for __GT_FILE as glibc.  Abort even when assertions
25687         are disabled.
25688         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25689         match its value otherwise.  Allow idempotent inclusion.
25690         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25691         * lib/mkostemp.c (mkostemp): Likewise.
25692         * lib/mkstemp.c (mkstemp): Likewise.
25693         * lib/tmpfile.c (tmpfile): Likewise.
25694         * NEWS: Document this.
25695
25696         utimens: fix use of futimens on older Linux
25697         * lib/utimens.c (fdutimens): Use updated, rather than original,
25698         timespec to avoid bug in older Linux kernel.
25699         Reported by Simon Josefsson.
25700
25701 2009-11-04  Bruno Haible  <bruno@clisp.org>
25702
25703         Make num_processors more flexible and consistent.
25704         * lib/nproc.h (enum nproc_query): New type.
25705         (num_processors): Add a 'query' argument.
25706         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25707         (num_processors): Add a 'query' argument. Test the value of the
25708         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25709         mingw, count the number of CPUs available for the current process.
25710         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25711         Check for sched_getaffinity and sched_getaffinity_np.
25712         * modules/nproc (Depends-on): Add c-ctype, extensions.
25713         * NEWS: Mention the change.
25714
25715 2009-11-03  Bruno Haible  <bruno@clisp.org>
25716
25717         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25718
25719 2009-11-03  Jim Meyering  <meyering@redhat.com>
25720
25721         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25722         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25723         if it is defined.
25724
25725 2009-11-02  Eric Blake  <ebb9@byu.net>
25726
25727         mktime, timegm: share common declaration
25728         * lib/mktime-internal.h: New file.
25729         * lib/mktime.c: Use it rather than open-coding a declaration.
25730         * lib/timegm.c: Likewise.
25731         * modules/mktime (Files): Ship it.
25732         * modules/timegm (Files): Likewise.
25733         Suggested by Bruno Haible.
25734
25735         test-update-copyright: update test to match script changes
25736         * tests/test-update-copyright.sh: Avoid hard-coding perl
25737         location.  Don't update *.bak created by earlier runs.
25738
25739 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25740             Simon Josefsson  <simon@josefsson.org>
25741             Bruno Haible  <bruno@clisp.org>
25742
25743         Fix link error on Solaris 8.
25744         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25745         also in libnsl. Define also INET_PTON_LIB.
25746         * modules/inet_pton (Link): New section.
25747
25748 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25749             Bruno Haible  <bruno@clisp.org>
25750
25751         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25752         * modules/inet_ntop (Link): New section.
25753         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25754
25755 2009-11-02  Eric Blake  <ebb9@byu.net>
25756
25757         maint: avoid compiler warnings in m4 macros
25758         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25760
25761 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25762
25763         * m4/pmccabe2html.m4: Remove file.
25764         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25765         function.  Change maintainer.
25766         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25767         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25768         Courtès).
25769
25770 2009-10-31  Eric Blake  <ebb9@byu.net>
25771
25772         fseeko: fix m4 regression
25773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25774         regression from 2009-10-27.
25775         Reported by Ralf Wildenhues.
25776
25777 2009-10-31  Jim Meyering  <meyering@redhat.com>
25778
25779         inttostr: aesthetics and improved (compile-time) safety
25780         Define inttype_is_signed rather than inttype_is_unsigned,
25781         since the sole use is via "#if inttype_is_signed".
25782         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25783         inttype_is_unsigned.
25784         * lib/offtostr.c (inttype_is_signed): Likewise.
25785         * lib/uinttostr.c (inttype_is_signed): Likewise.
25786         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25787         * lib/inttostr.c (inttostr): Use verify to cross-check the
25788         inttype_is_signed value and the signedness of the actual type.
25789         * modules/inttostr (Depends-on): Add verify.
25790
25791 2009-10-30  Eric Blake  <ebb9@byu.net>
25792
25793         build: avoid compiler warnings
25794         * lib/fchmodat.c (lchmod): Mark unused variables.
25795         * lib/getopt.c (_getopt_initialize): Likewise.
25796         * lib/mktime.c (__mktime_internal): Provide prototype.
25797         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25798         older gcc that do not understand #pragma GCC diagnostic.
25799         * lib/uinttostr.c (inttype_is_unsigned): Define.
25800         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25801
25802 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25803
25804         stat: fix compilation on AIX
25805         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25806         only see struct stat64.
25807
25808 2009-10-30  Eric Blake  <ebb9@byu.net>
25809
25810         exclude: make more robust
25811         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25812         rather than masking a coding bug.
25813         Suggested by Bruno Haible.
25814
25815 2009-10-30  Jim Meyering  <meyering@redhat.com>
25816
25817         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25818         Rather than putting #!/usr/bin/perl on the first line,
25819         start with a variant of what's recommended by "man perlrun" that
25820         invokes the first "perl" program from your shell's search path.
25821         * build-aux/gitlog-to-changelog: Replace #!... as above.
25822         Add a "Local Variables" perl mode setting.
25823         Prompted by a patch from Ludovic Courtès.
25824         Improved by Eric Blake.
25825         * build-aux/useless-if-before-free: Likewise.
25826         * build-aux/announce-gen: Likewise.
25827         * build-aux/update-copyright: Likewise.
25828
25829 2009-10-29  Eric Blake  <ebb9@byu.net>
25830
25831         filenamecat-lgpl: adjust clients
25832         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25833         filenamecat.
25834         * modules/renameat (Depends-on): Likewise.
25835
25836         filenamecat: split into filenamecat-lgpl
25837         * modules/filenamecat-lgpl: New module.
25838         * modules/filenamecat (Files): Move library-safe files into
25839         filenamecat-lgpl.
25840         (Depends-on): Add filenamecat-lgpl.
25841         (configure.ac): Declare witness.
25842         * lib/filenamecat.h (file_name_concat): Only declare when using
25843         GPL module.
25844         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25845         Move...
25846         * lib/filenamecat-lgpl.c: ...into new file.
25847         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25848         (gl_FILE_NAME_CONCAT): Use it.
25849         * MODULES.html.sh (File system functions): Mention new module.
25850
25851         argp: avoid memory leak
25852         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25853         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25854         base_name, since the latter malloc()s and can call exit().
25855         Leak introduced 2006-07-03.
25856
25857         dirname-lgpl: adjust clients that don't need full dirname
25858         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25859         * modules/filenamecat (Depends-on): Likewise.
25860         * modules/linkat (Depends-on): Likewise.
25861         * modules/mkancesdirs (Depends-on): Likewise.
25862         * modules/mkdir (Depends-on): Likewise.
25863         * modules/openat (Depends-on): Likewise.
25864         * modules/savewd (Depends-on): Likewise.
25865         * modules/rename (Depends-on): Likewise.
25866         (License): Relax license.
25867         * modules/mkdir-tests (Depends-on): Drop progname.
25868         (Makefile.am): Delete unneeded LDADD.
25869         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25870
25871         dirname: split into dirname-lgpl
25872         * modules/dirname-lgpl: New module.
25873         * modules/dirname (Files): Move library-safe files into
25874         dirname-lgpl.
25875         (Depends-on): Add dirname-lgpl.
25876         (configure.ac): Declare witness.
25877         * modules/double-slash-root (License): Relax license.
25878         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25879         module.
25880         * lib/dirname.c (dir_len, mdir_name): Move...
25881         * lib/dirname-lgpl.c: ...into new file.
25882         * lib/basename.c (last_component, base_len): Move...
25883         * lib/basename-lgpl.c: ...into new file.
25884         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25885         (gl_DIRNAME): Use it.
25886         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25887         Mention new module.
25888         * modules/dirname-tests (Depends-on): Add progname.
25889         * tests/test-dirname.c (program_name): Delete.
25890
25891         mkdir: make safe for libraries
25892         * modules/mkdir (Depends-on): Drop xalloc.
25893         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25894         exit.
25895
25896         tests: avoid some compiler warnings
25897         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25898         literals.
25899         * tests/test-memchr.c (main): Avoid type mismatch.
25900         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25901         * tests/test-base64.c (main): Likewise.
25902         * tests/test-getdelim.c (main): Likewise.
25903         * tests/test-gethostname.c (main): Likewise.
25904         * tests/test-getline.c (main): Likewise.
25905         * tests/test-netinet_in.c (main): Likewise.
25906         * tests/test-select.c (open_server_socket, main): Likewise.
25907         * tests/test-select-stdin.c (main): Likewise.
25908         * tests/test-sockets.c (main): Likewise.
25909         * tests/test-strsignal.c (main): Likewise.
25910         * tests/test-sys_select.c (main): Likewise.
25911         * tests/test-sys_socket.c (main): Likewise.
25912         * tests/test-u64.c (main): Likewise.
25913         * tests/test-xfprintf-posix.c (main): Likewise.
25914         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25915
25916         sockets: avoid compiler warning
25917         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25918
25919         maint: detect usage(1) and other suspicious exits
25920         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25921
25922 2009-10-29  Jim Meyering  <meyering@redhat.com>
25923
25924         timespec: long-to-int truncation could make timespec_cmp malfunction
25925         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25926         a multiple of 2^32 nanoseconds as no difference.
25927
25928 2009-10-28  Jim Meyering  <meyering@redhat.com>
25929
25930         fprintftime: wrap macro code argument in "do {...} while(0)"
25931         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25932         cpy macro must be a statement that can be followed by a semicolon.
25933         Now that the else clause contains a comment and is hence longer
25934         than one line, I require curly braces.  That in turn requires
25935         that we wrap this code block in the standard do...while(0).
25936
25937         fprintftime: remove stray semicolon from previous change
25938         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25939
25940         fprintftime: avoid a warning about ignored fwrite return value
25941         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25942         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25943         that is unsafe.
25944         * modules/fprintftime (Depends-on): Add ignore-value.
25945
25946         exclude: avoid an unwarranted warning
25947         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25948
25949 2009-10-27  Eric Blake  <ebb9@byu.net>
25950
25951         fseek: avoid compilation failure when fflush is replaced
25952         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25953         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25954         module is in use.
25955         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25956         module is not in use; since REPLACE_FSEEK worked otherwise.
25957         (GNULIB_FTELLO): Likewise for ftell.
25958         Reported by Ian Beckwith and others.
25959
25960 2009-10-27  Bruno Haible  <bruno@clisp.org>
25961
25962         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25963         Reported by Jim Meyering.
25964
25965 2009-10-27  Jim Meyering  <jim@meyering.net>
25966             Bruno Haible  <bruno@clisp.org>
25967
25968         Avoid warning despite dropping the return value of fwrite.
25969         * lib/unicodeio.c: Include ignore-value.h.
25970         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25971         * modules/unicodeio (Depends-on): Add ignore-value.
25972
25973 2009-10-26  Eric Blake  <ebb9@byu.net>
25974
25975         areadlinkat: fix fallback path
25976         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25977         pointer and zero.
25978
25979 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25980
25981         Use a better IO block size for modern systems
25982         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25983         * lib/md2.c: Likewise.
25984         * lib/md4.c: Likewise.
25985         * lib/md5.c: Likewise.
25986         * lib/sha1.c: Likewise.
25987         * lib/sha256.c: Likewise.
25988         * lib/sha512.c: Likewise.
25989
25990 2009-10-22  Eric Blake  <ebb9@byu.net>
25991
25992         tests: avoid several compiler warnings
25993         * tests/test-getcwd.c (main): Avoid buffer underflow.
25994         * tests/test-getdate.c (main): String literals are not safe with
25995         putenv, so use setenv.  Declare unused argument.
25996         * modules/getdate-tests (Depends-on): Add setenv.
25997         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25998         problems with string literals in char *.
25999         * tests/test-hash.c (main): Avoid shadowing declaration.
26000         (insert_new): Treat string literals as char const *.
26001         * tests/test-getopt.h (test_getopt): Likewise.
26002         (getopt_loop): Alter types to minimize casting elsewhere.
26003         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26004         (test_getopt_long_posix): Likewise.
26005         (do_getopt_long): Add wrapper to minimize casting.
26006         * tests/test-atexit.c (clear_temp_file): Use void.
26007         * tests/test-areadlink-with-size.c (main): Declare unused
26008         arguments.
26009         * tests/test-areadlink.c (main): Likewise.
26010         * tests/test-areadlinkat-with-size.c (main): Likewise.
26011         * tests/test-areadlinkat.c (main): Likewise.
26012         * tests/test-canonicalize-lgpl.c (main): Likewise.
26013         * tests/test-canonicalize.c (main): Likewise.
26014         * tests/test-dirent-safer.c (main): Likewise.
26015         * tests/test-dirname.c (main): Likewise.
26016         * tests/test-dup2.c (main): Likewise.
26017         * tests/test-fchdir.c (main): Likewise.
26018         * tests/test-fcntl-h.c (main): Likewise.
26019         * tests/test-fcntl-safer.c (main): Likewise.
26020         * tests/test-fdopendir.c (main): Likewise.
26021         * tests/test-fdutimensat.c (main): Likewise.
26022         * tests/test-fflush.c (main): Likewise.
26023         * tests/test-filenamecat.c (main): Likewise.
26024         * tests/test-filevercmp.c (main): Likewise.
26025         * tests/test-fopen-safer.c (main): Likewise.
26026         * tests/test-fopen.c (main): Likewise.
26027         * tests/test-fpending.c (main): Likewise.
26028         * tests/test-fpurge.c (main): Likewise.
26029         * tests/test-freading.c (main): Likewise.
26030         * tests/test-fstatat.c (main): Likewise.
26031         * tests/test-fsync.c (main): Likewise.
26032         * tests/test-futimens.c (main): Likewise.
26033         * tests/test-getndelim2.c (main): Likewise.
26034         * tests/test-gettimeofday.c (main): Likewise.
26035         * tests/test-getopt.c (main): Likewise.
26036         * tests/test-i-ring.c (main): Likewise.
26037         * tests/test-inttypes.c (main): Likewise.
26038         * tests/test-link.c (main): Likewise.
26039         * tests/test-lstat.c (main): Likewise.
26040         * tests/test-math.c (main): Likewise.
26041         * tests/test-md5.c (main): Likewise.
26042         * tests/test-memchr2.c (main): Likewise.
26043         * tests/test-memrchr.c (main): Likewise.
26044         * tests/test-mkdir.c (main): Likewise.
26045         * tests/test-mkdirat.c (main): Likewise.
26046         * tests/test-mkfifoat.c (main): Likewise.
26047         * tests/test-open.c (main): Likewise.
26048         * tests/test-openat-safer.c (main): Likewise.
26049         * tests/test-openat.c (main): Likewise.
26050         * tests/test-quotearg.c (main): Likewise.
26051         * tests/test-rawmemchr.c (main): Likewise.
26052         * tests/test-readlink.c (main): Likewise.
26053         * tests/test-remove.c (main): Likewise.
26054         * tests/test-rename.c (main): Likewise.
26055         * tests/test-renameat.c (main): Likewise.
26056         * tests/test-rmdir.c (main): Likewise.
26057         * tests/test-sha1.c (main): Likewise.
26058         * tests/test-signal.c (main): Likewise.
26059         * tests/test-sigaction.c (main): Likewise.
26060         * tests/test-stat.c (main): Likewise.
26061         * tests/test-stat-time.c (main): Likewise.
26062         * tests/test-stddef.c (main): Likewise.
26063         * tests/test-stdint.c (main): Likewise.
26064         * tests/test-stdio.c (main): Likewise.
26065         * tests/test-stdlib.c (main): Likewise.
26066         * tests/test-strchrnul.c (main): Likewise.
26067         * tests/test-strerror.c (main): Likewise.
26068         * tests/test-string.c (main): Likewise.
26069         * tests/test-strtod.c (main): Likewise.
26070         * tests/test-strverscmp.c (main): Likewise.
26071         * tests/test-symlink.c (main): Likewise.
26072         * tests/test-symlinkat.c (main): Likewise.
26073         * tests/test-sys_stat.c (main): Likewise.
26074         * tests/test-sys_time.c (main): Likewise.
26075         * tests/test-time.c (main): Likewise.
26076         * tests/test-unistd.c (main): Likewise.
26077         * tests/test-unlink.c (main): Likewise.
26078         * tests/test-unlinkat.c (main): Likewise.
26079         * tests/test-utimens.c (main): Likewise.
26080         * tests/test-utimensat.c (main): Likewise.
26081         * tests/test-version-etc.c (main): Likewise.
26082         * tests/test-wchar.c (main): Likewise.
26083         * tests/test-wctype.c (main): Likewise.
26084         * tests/test-xprintf-posix.c (main): Likewise.
26085         * tests/test-posixtm.c (main): Likewise.
26086         (STREQ): Delete unused macro.
26087         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26088         shadowed variables.
26089         * tests/test-memchr.c (main): Likewise.
26090
26091 2009-10-21  Eric Blake  <ebb9@byu.net>
26092
26093         areadlinkat: avoid failure on older glibc
26094         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26095         rather than mis-comparing 0 against FUNC_RESULT of char*.
26096
26097 2009-10-21  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/stpncpy (License): Relicense under LGPLv2+.
26100         Reported by David Lutterkort <lutter@redhat.com>.
26101
26102 2009-10-20  Eric Blake  <ebb9@byu.net>
26103
26104         utimensat: work around Solaris 9 bug
26105         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26106         has trailing slash bugs.
26107         * tests/test-lutimens.h (test_lutimens): Enhance test.
26108         * tests/test-utimens.h (test_utimens): Likewise.
26109         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26110         * doc/posix-functions/utimes.texi (utimes): Likewise.
26111         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26112         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26113         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26114         * doc/posix-functions/futimens.texi (futimens): Likewise.
26115
26116         fdutimensat: new module
26117         * modules/fdutimensat: New file.
26118         * lib/fdutimensat.c (fdutimensat): Likewise.
26119         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26120         * MODULES.html.sh (File system functions): Mention module.
26121         * modules/fdutimensat-tests: New test.
26122         * tests/test-fdutimensat.c: Likewise.
26123
26124         doc: regenerate INSTALL
26125         * doc/INSTALL: Reflect recent autoconf update.
26126         * doc/INSTALL.ISO: Likewise.
26127         * doc/INSTALL.UTF-8: Likewise.
26128
26129 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26130
26131         acl: warn if ACL support is not detected
26132         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26133
26134 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26135
26136         * lib/nproc.h: Add extern "C" block for C++.
26137
26138 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26139             Bruno Haible  <bruno@clisp.org>
26140
26141         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26142         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26143         * doc/posix-functions/isalpha.texi: Likewise.
26144         * doc/posix-functions/isblank.texi: Likewise.
26145         * doc/posix-functions/iscntrl.texi: Likewise.
26146         * doc/posix-functions/isdigit.texi: Likewise.
26147         * doc/posix-functions/isgraph.texi: Likewise.
26148         * doc/posix-functions/islower.texi: Likewise.
26149         * doc/posix-functions/isprint.texi: Likewise.
26150         * doc/posix-functions/ispunct.texi: Likewise.
26151         * doc/posix-functions/isspace.texi: Likewise.
26152         * doc/posix-functions/isupper.texi: Likewise.
26153         * doc/posix-functions/isxdigit.texi: Likewise.
26154
26155 2009-10-18  Bruno Haible  <bruno@clisp.org>
26156
26157         Tests for module 'isblank'.
26158         * modules/isblank-tests: New file.
26159         * tests/test-isblank.c: New file.
26160
26161         New module 'isblank'.
26162         * lib/isblank.c: New file.
26163         * m4/isblank.m4: New file.
26164         * modules/isblank: New file.
26165         * doc/posix-functions/isblank.texi: Mention the new module.
26166
26167 2009-10-18  Bruno Haible  <bruno@clisp.org>
26168
26169         New module 'ctype'.
26170         * lib/ctype.in.h: New file.
26171         * m4/ctype.m4: New file.
26172         * modules/ctype: New file.
26173         * doc/posix-headers/ctype.texi: Mention the new module.
26174
26175 2009-10-18  Jim Meyering  <meyering@redhat.com>
26176
26177         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26178         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26179         right after its initialization, rather than farther down.
26180         Keeping these in close proximity makes it easier to ensure
26181         that each such variable is initialized.  E.g.,
26182
26183             LIB_CLOCK_GETTIME=
26184             AC_SUBST([LIB_CLOCK_GETTIME])
26185
26186         This change also increments these serial numbers.
26187         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26190
26191 2009-10-18  Bruno Haible  <bruno@clisp.org>
26192
26193         Don't let environment variables perturb build.
26194         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26195         (gl_PREREQ_GETHRXTIME): ... not here.
26196
26197 2009-10-18  Bruno Haible  <bruno@clisp.org>
26198
26199         Avoid symlink attack in localcharset module.
26200         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26201         (O_NOFOLLOW): Define fallback.
26202         (get_charset_aliases): Don't open the file if it is a symbolic link.
26203         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26204         gl_FCNTL_H.
26205         (gl_FCNTL_H): Require it.
26206         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26207         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26208         Reported by Fergal Glynn <fglynn@veracode.com>.
26209
26210 2009-10-18  Bruno Haible  <bruno@clisp.org>
26211
26212         Implement nproc for mingw.
26213         * lib/nproc.c: Include <windows.h>
26214         (num_processors): On native Windows platforms, try GetSystemInfo.
26215
26216 2009-10-18  Bruno Haible  <bruno@clisp.org>
26217
26218         Implement nproc for IRIX.
26219         * lib/nproc.c: Include <sys/sysmp.h>.
26220         (num_processors): On IRIX systems, try sysmp.
26221         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26222
26223 2009-10-18  Bruno Haible  <bruno@clisp.org>
26224
26225         Implement nproc for HP-UX.
26226         * lib/nproc.c: Include <sys/pstat.h>
26227         (num_processors): On HP-UX systems, try pstat_getdynamic.
26228         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26229         pstat_getdynamic.
26230
26231 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26232             Bruno Haible  <bruno@clisp.org>
26233
26234         Implement nproc for NetBSD, OpenBSD.
26235         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26236         (ARRAY_SIZE): New macro.
26237         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26238         * m4/nproc.m4: New file.
26239         * modules/nproc (Files): Add m4/nproc.m4.
26240         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26241         (Makefile.am): Instead, augment lib_SOURCES.
26242
26243 2009-10-18  Bruno Haible  <bruno@clisp.org>
26244
26245         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26246         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26247         sys/param.h.
26248
26249 2009-10-16  Eric Blake  <ebb9@byu.net>
26250
26251         utimensat: new module
26252         * modules/utimensat: New file.
26253         * lib/utimensat.c (utimensat): Likewise.
26254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26255         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26256         so we can work around Linux bugs.
26257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26258         * modules/sys_stat (Makefile.am): Substitute them.
26259         * lib/sys_stat.in.h (utimensat): Declare it.
26260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26261         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26262         * modules/utimensat-tests: New test.
26263         * tests/test-utimensat.c: Likewise.
26264
26265         utimens: let lutimens work on non-symlinks
26266         * lib/utimens.c (lutimens): Fall back to utimens rather than
26267         failing with ENOSYS, when file is not a symlink.
26268         (utimens): Reduce redirection.
26269         * tests/test-lutimens.h (test_lutimens): Update test to cover
26270         non-symlinks.
26271         * tests/test-utimens.h (test_utimens): Update test to cover
26272         symlinks.
26273         * tests/test-utimens.c (main): Update caller.
26274
26275         utimens: cache whether utimensat syscall works
26276         * lib/utimens.c (utimensat_works_really): New cache variable.
26277         (fdutimens, lutimens): Use it to avoid failing syscall.
26278
26279         test-stat-time, test-utimens: improve portability
26280         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26281         ext4 on alpha, and for cygwin.
26282         * tests/test-utimens-common.h: New file.
26283         (nap): Factor delays into single function.
26284         * tests/test-lutimens.h (test_lutimens): Use new header.
26285         * tests/test-futimens.h (test_futimens): Likewise.
26286         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26287         timestamps to occur from same machine, as was done previously for
26288         test_utimens.
26289         * modules/utimens-tests (Files): Ship new file.
26290         * modules/futimens-tests (Files): Likewise.
26291         Reported in part by Jim Meyering.
26292
26293         sys_stat: sort replacement declarations
26294         * lib/sys_stat.in.h: Sort declarations.
26295         * lib/futimens.c (futimens): Fix typo.
26296
26297 2009-10-15  Jim Meyering  <meyering@redhat.com>
26298
26299         don't let environment settings perturb build
26300         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26301         could cause a configure-time and/or build-time malfunction.
26302         Typically, a configure-time function-in-library test is performed
26303         via code like this:
26304
26305           LIB_VAR=
26306           AC_SUBST([LIB_VAR])
26307           prefix_saved_LIBS=$LIBS
26308             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26309                        [test "$ac_cv_search_FUNC" = "none required" ||
26310                         LIB_VAR=$ac_cv_search_FUNC])
26311           LIBS=$prefix_saved_LIBS
26312
26313         However, in each of the files affected by this change, the LIB_VAR=
26314         initialization was omitted.  Thus, when set in the environment, its
26315         value would propagate into generated Makefiles when FUNC is not found
26316         in LIB_NAME.
26317         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26318         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26320
26321 2009-10-14  Eric Blake  <ebb9@byu.net>
26322
26323         fchdir: avoid infinite recursion in mingw
26324         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26325         recursing.
26326
26327         test-stat-time: port to mingw
26328         * tests/test-stat-time.c (force_unlink): Return a value.
26329         (test_ctime) [W32]: Fix compilation error.
26330         (nap): Don't call usleep with too large an argument.  Use
26331         force_unlink.
26332         * doc/pastposix-functions/usleep.texi (usleep): Document the
26333         portability issue.
26334
26335 2009-10-13  Jim Meyering  <meyering@redhat.com>
26336
26337         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26338         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26339         * modules/pipe-filter-ii: Likewise.
26340         * modules/sys_socket-tests: Likewise.
26341         * modules/tsearch-tests: Likewise.
26342         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26343         (check): Depend on it.
26344
26345 2009-10-12  Eric Blake  <ebb9@byu.net>
26346
26347         utimens-tests: port to NFS file systems
26348         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26349         comparisons to avoid spurious failures from timestamp drift
26350         between NFS machines.
26351
26352 2009-10-12  Eric Blake  <ebb9@byu.net>
26353
26354         stat-time-tests: minor cleanups
26355         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26356         * tests/test-stat-time.c (nap): Separate assignment from call.
26357         Suggested by Paolo Bonzini and Bruno Haible.
26358
26359         sys_stat: guarantee struct timespec
26360         * lib/sys_stat.in.h (includes): Always include <time.h>
26361         * modules/sys_stat (Depends-on): Add time.
26362         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26363         mode_t permission values.
26364         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26365         get at subsecond timestamps.
26366
26367 2009-10-10  Eric Blake  <ebb9@byu.net>
26368
26369         futimens: new module
26370         * modules/futimens: New file.
26371         * lib/futimens.c (futimens): Likewise.
26372         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26373         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26374         we can work around Linux bugs.
26375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26376         * modules/sys_stat (Makefile.am): Substitute them.
26377         * lib/sys_stat.in.h (futimens): Declare it.
26378         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26379         * doc/posix-functions/futimens.texi (futimens): Likewise.
26380         * modules/futimens-tests: New test.
26381         * tests/test-futimens.c: Likewise.
26382
26383         utimens: introduce fdutimens
26384         * lib/utimens.h (fdutimens): New prototype.
26385         * lib/utimens.c (gl_futimens): Move guts...
26386         (fdutimens): ...to new interface.
26387         * tests/test-utimens.c (do_fdutimens): Use it.
26388
26389         utimens: add UTIME_NOW and UTIME_OMIT support
26390         * lib/utimens.c (validate_timespec, update_timespec): New helper
26391         functions.
26392         (gl_futimens, lutimens): Use them.
26393         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26394         stdbool, sys_stat.
26395         (Link): Mention resulting library dependency.
26396         * modules/utimecmp (Link): Likewise.
26397         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26398         (Makefile.am): Pick up library dependency.
26399         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26400         definition.
26401         * tests/test-sys_stat.c: Test the definitions.
26402         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26403         * NEWS: Document library dependency.
26404
26405         utimecmp: support symlink timestamps
26406         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26407         hashing when possible.  Use pathconf when available.
26408         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26409         * modules/utimecmp (Depends-on): Add lstat.
26410
26411         utimens: add lutimens interface
26412         * lib/utimens.c (lutimens): New function.
26413         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26414         * lib/utimens.h (lutimens): Declare new interface.
26415         * tests/test-utimens.c (main): Enhance test.
26416         * tests/test-lutimens.h (test_lutimens): New file.
26417         * modules/utimens-tests (Files): Distribute it.
26418         (Depends-on): Add symlink.
26419         (configure.ac): Check for usleep.
26420
26421         utimens: validate futimens usage
26422         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26423         fewer syscalls on failure later on.  Avoid compiler warning on
26424         mingw.
26425         * modules/utimens (Depends-on): Add dup2.
26426
26427         utimens: add test
26428         * modules/utimens-tests: New test.
26429         * tests/test-utimens.h: New file.
26430         * tests/test-futimens.h: Likewise.
26431         * tests/test-utimens.c: Likewise.
26432
26433         doc: mention timestamp portability issues
26434         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26435         instead.
26436         * doc/posix-functions/utime.texi (utime): Likewise.
26437         * doc/posix-functions/utimes.texi (utimes): Likewise.
26438         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26439         instead.
26440         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26441         module.
26442         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26443         Mention weakness with symlink timestamps.
26444         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26445         to utimensat/futimens instead.
26446         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26447
26448         test-dup2: enhance test
26449         * tests/test-dup2.c (main): Also check AT_FDCWD.
26450
26451         test-stat-time: avoid more spurious failures
26452         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26453         xfs; and avoid race if the two timestamps cross quantization edge.
26454
26455         relocatable: prefer 'file system' over 'filesystem'
26456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26457         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26458         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26459         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26460         * lib/relocatable.c (compute_curr_prefix): Likewise.
26461
26462 2009-10-10  Jim Meyering  <meyering@redhat.com>
26463
26464         stat-time-tests: check for the usleep function
26465         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26466
26467 2009-10-10  Bruno Haible  <bruno@clisp.org>
26468
26469         * modules/xnanosleep: Put the Link section after the Include section.
26470
26471 2009-10-09  Eric Blake  <ebb9@byu.net>
26472
26473         dup2: work around FreeBSD 6.1 bug
26474         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26475         * doc/posix-functions/dup2.texi (dup2): Document it.
26476         Reported by Nelson H. F. Beebe and Jim Meyering.
26477
26478         test-stat-time: port to buggy NFS clients
26479         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26480         (test_ctime): Also skip test if mtime and ctime are skewed.
26481
26482         maint: prefer 'file system' over 'filesystem'
26483         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26484         * doc/posix-functions/lstat.texi (lstat): Likewise.
26485         * lib/file-has-acl.c (file_has_acl): Likewise.
26486         * lib/fwriteerror.c [TEST]: Likewise.
26487         * tests/test-areadlink.h (test_areadlink): Likewise.
26488         * tests/test-areadlinkat-with-size.c (main): Likewise.
26489         * tests/test-areadlinkat.c (main): Likewise.
26490         * tests/test-canonicalize-lgpl.c (main): Likewise.
26491         * tests/test-canonicalize.c (main): Likewise.
26492         * tests/test-fstatat.c (main): Likewise.
26493         * tests/test-linkat.c (main): Likewise.
26494         * tests/test-lstat.h (test_lstat_func): Likewise.
26495         * tests/test-mkdir.h (test_mkdir): Likewise.
26496         * tests/test-readlink.h (test_readlink): Likewise.
26497         * tests/test-remove.c (main): Likewise.
26498         * tests/test-rename.h (test_rename): Likewise.
26499         * tests/test-renameat.c (main): Likewise.
26500         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26501         * tests/test-symlink.h (test_symlink): Likewise.
26502         * tests/test-symlinkat.c (main): Likewise.
26503         * tests/test-unlink.h (test_unlink_func): Likewise.
26504         * tests/test-unlinkat.c (main): Likewise.
26505
26506         maint: make realtime library usage explicit
26507         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26508         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26509         * modules/settime (Link): Likewise.
26510         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26511
26512         test-stat-time: speed up execution
26513         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26514         warning on mingw.
26515         (nap): New helper function.
26516         (prepare_test): Use it to reduce sleep time.
26517         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26518         execution.
26519         * modules/stat-time-tests (configure.ac): Check for usleep.
26520
26521 2009-10-09  Jim Meyering  <meyering@redhat.com>
26522
26523         selinux-h: always use getfilecon wrappers
26524         * lib/getfilecon.c: New file.
26525         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26526         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26527         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26528         (fgetfilecon): Provide a stub.
26529         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26530         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26531         file unconditionally.
26532         When <selinux/selinux.h> is found, arrange to use wrappers.
26533         * modules/selinux-h (Files): Add getfilecon.c.
26534         (Makefile.am): Substitute include-next-related bits
26535         into the now-always-generated selinux/selinux.h file.
26536         * doc/glibc-functions/lgetfilecon.texi: New file.
26537         * doc/glibc-functions/fgetfilecon.texi: New file.
26538         * doc/glibc-functions/getfilecon.texi: New file.
26539         * doc/glibc-functions/getfilecon-desc.texi: New file.
26540         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26541         which to pull in the new files.
26542         * MODULES.html.sh (Misc): Add selinux-h.
26543
26544 2009-10-08  Jim Meyering  <meyering@redhat.com>
26545
26546         unistd: fix comment typo
26547         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26548
26549 2009-10-08  Eric Blake  <ebb9@byu.net>
26550
26551         areadlink: use SIZE_MAX consistently
26552         * modules/areadlink (Depends-on): Add stdint.
26553         * modules/areadlink-with-size (Depends-on): Likewise.
26554         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26555         gives NULL; drop sys/types, since unistd gives size_t; and add
26556         stdint for SIZE_MAX.
26557         (SIZE_MAX): Rely on headers.
26558         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26559         and add stdint.
26560         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26561         (SIZE_MAX): Likewise.
26562         (INITIAL_BUF_SIZE): Turn into enum.
26563         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26564
26565 2009-10-08  Jim Meyering  <meyering@redhat.com>
26566
26567         areadlinkat: avoid compilation failure
26568         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26569         Fix typo in comment.
26570
26571 2009-10-07  Eric Blake  <ebb9@byu.net>
26572
26573         areadlinkat-with-size: new module
26574         * modules/areadlinkat-with-size: New module.
26575         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26576         * lib/areadlink.h (areadlinkat): Declare it.
26577         * MODULES.html.sh (File system functions): Mention it.
26578         * modules/areadlinkat-with-size-tests: New test.
26579         * tests/test-areadlinkat-with-size.c: New file.
26580
26581         xreadlinkat: new module
26582         * modules/xreadlinkat: New module.
26583         * lib/xreadlinkat.c (xreadlinkat): New file.
26584         * lib/xreadlink.h (xreadlinkat): Declare it.
26585         * MODULES.html.sh (File system functions): Mention it.
26586
26587         areadlinkat: new module
26588         * lib/at-func.c (FUNC_FAIL): New define.
26589         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26590         * modules/areadlinkat: New module.
26591         * lib/linkat.c (areadlinkat): Move...
26592         * lib/areadlinkat.c (areadlinkat): ...to new file.
26593         * lib/areadlink.h (areadlinkat): Declare it.
26594         * modules/linkat (Depends-on): Add areadlinkat.
26595         * MODULES.html.sh (File system functions): Mention it.
26596         * modules/areadlinkat-tests: New test.
26597         * tests/test-areadlinkat.c: New file.
26598
26599         areadlink, areadlink-with-size: add tests
26600         * modules/areadlink-tests: New test.
26601         * modules/areadlink-with-size-tests: Likewise.
26602         * tests/test-areadlink.h: New file.
26603         * tests/test-areadlink.c: Likewise.
26604         * tests/test-areadlink-with-size.c: Likewise.
26605
26606         maint: minor cleanups
26607         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26608         _UNUSED_PARAMETER_ instead.
26609         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26610         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26611         * modules/linkat-tests (Files): Distribute test-link.h.
26612
26613         openat, utimens: whitespace cleanup
26614         * lib/openat.c: Prefer space throughout, rather than mix of 8
26615         spaces vs. tabs.
26616         * lib/at-func.c: Likewise.
26617         * lib/utimens.c: Likewise.
26618
26619         openat: avoid using wrong fd
26620         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26621         working directory chooses same fd.
26622         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26623
26624         mkdir, mkdirat: fix cygwin 1.5.x bug
26625         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26626         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26627         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26628         bug.
26629         (gl_PREREQ_MKDIR): Delete unused macro.
26630         * modules/mkdir (Files): Track file rename.
26631         (configure.ac): Update macro name.
26632         * modules/openat (Depends-on): Add mkdir.
26633         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26634
26635         mkdir, mkdirat: add tests
26636         * modules/mkdir-tests: New test.
26637         * tests/test-mkdir.h: New file.
26638         * tests/test-mkdir.c: Likewise.
26639         * tests/test-mkdirat.c: Likewise.
26640         * modules/openat-tests (Files): Add new files.
26641         (Makefile.am): Run new test.
26642
26643 2009-10-06  Eric Blake  <ebb9@byu.net>
26644
26645         doc: tweak *at function documentation
26646         * doc/posix-functions/faccessat.texi (faccessat): Mention
26647         known issue with replacement.
26648         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26649         * doc/posix-functions/linkat.texi (linkat): Likewise.
26650         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26651         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26652         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26653         * doc/posix-functions/renameat.texi (renameat): Likewise.
26654         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26655
26656         openat: fix GNU/Hurd bug in unlinkat
26657         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26658         broken.
26659         * doc/posix-functions/unlink.texi (unlink): Document this.
26660         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26661
26662         fdopendir: fix GNU/Hurd bug
26663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26664         allowing non-directory fds.
26665         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26666         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26667         * modules/dirent (Makefile.am): Substitute it.
26668         * lib/dirent.in.h (fdopendir): Declare replacement.
26669         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26670         * tests/test-fdopendir.c (main): Test something other than
26671         /dev/null, since on Hurd that behaves like a directory.
26672
26673         test-symlink: port to GNU/Hurd
26674         * tests/test-symlink.h (test_symlink): Relax expected errno.
26675
26676         doc: tweak more cygwin information
26677         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26678         now compatible with glibc.
26679         * doc/posix-functions/getopt.texi (getopt): Likewise.
26680
26681         getopt-gnu: add another test
26682         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26683         guarantee behavior relied on by m4.
26684         * tests/test-getopt.c (main): Use it.
26685         * modules/getopt-posix-tests (Depends-on): Add setenv.
26686         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26687
26688         getopt: fix compilation on darwin
26689         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26690         include.
26691         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26692         Reported by Ludovic Courtès.
26693
26694 2009-10-06  Bruno Haible  <bruno@clisp.org>
26695
26696         * modules/size_max (Description): Discourage its use.
26697         Reported by Simon Josefsson.
26698
26699 2009-10-06  Jim Meyering  <meyering@redhat.com>
26700
26701         linkat: avoid compilation failure
26702         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26703
26704 2009-10-05  Eric Blake  <ebb9@byu.net>
26705
26706         linkat: support Linux 2.6.17
26707         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26708         linkat on Linux, but allow cache variable override.
26709         * lib/linkat.c (rpl_linkat): Define override.
26710         * modules/linkat (Depends-on): Add symlinkat.
26711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26712         * modules/unistd (Makefile.am): Substitute it.
26713         * lib/unistd.in.h (linkat): Declare replacement.
26714         Reported by Pádraig Brady.
26715
26716         quotearg: port test to systems with C.UTF-8 locale
26717         * tests/test-quotearg.c (struct result_strings): Add another
26718         member, differentiating between C.ASCII and C.UTF-8 handling.
26719         (compare_strings): Add parameter.
26720         (main): Adjust all callers.
26721
26722         getopt: avoid clash with FreeBSD _getopt_internal
26723         * lib/getopt.in.h (_getopt_internal): Override the name.
26724         * lib/getopt_int.h (includes): Pick up any overrides.
26725         Reported by Reuben Thomas.
26726
26727         hash: allow C89 compilation
26728         * lib/hash.c (check_tuning): Move declaration before statement.
26729         Reported by Reuben Thomas.
26730
26731 2009-10-05  Karl Berry  <karl@gnu.org>
26732
26733         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26734
26735 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26736             Bruno Haible  <bruno@clisp.org>
26737
26738         * lib/uname.c (uname): Use a table-driven algorithm to compute
26739         Windows NT versions.
26740
26741 2009-10-04  Bruno Haible  <bruno@clisp.org>
26742
26743         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26744         program_invocation_short_name.
26745         * modules/progname (configure.ac): Test for presence of
26746         program_invocation_short_name.
26747         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26748
26749 2009-10-04  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/progname.c (set_program_name): Fix comment.
26752         Reported by Jim Meyering.
26753
26754 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26755             Bruno Haible  <bruno@clisp.org>
26756
26757         * lib/uname.c: Include <string.h>.
26758         (uname): Do only one call to GetVersionEx in the common case.
26759
26760 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26761             Bruno Haible  <bruno@clisp.org>
26762
26763         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26764         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26765         (uname): Add support for Windows CE and various non-x86 CPU types.
26766
26767 2009-10-03  Bruno Haible  <bruno@clisp.org>
26768
26769         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26770         invocation to tests/configure.ac.
26771         Reported by Ian Beckwith <ianb@erislabs.net>.
26772
26773 2009-10-02  Eric Blake  <ebb9@byu.net>
26774
26775         fchdir: avoid compiler warning
26776         * lib/fchdir.c (canonicalize_file_name)
26777         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26778
26779         test-open: support mingw errno values
26780         * tests/test-open.h (test_open): Relax test.
26781         * tests/test-fopen.h (test_fopen): Likewise.
26782         * tests/test-openat-safer.c (main): Likewise.
26783
26784         open: fix opening directory on mingw
26785         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26786
26787         test-open: on GNU/Hurd, /dev/null is a directory
26788         * tests/test-fopen.h (main): Rename...
26789         (test_fopen): ...to this.  Use a guaranteed non-directory when
26790         confirming open behavior on trailing slash.
26791         * tests/test-openat-safer.c (main): Likewise.
26792         * tests/test-open.h (main): Likewise....
26793         (test_open): ...to this.
26794         * tests/test-fopen.c (main): Adjust caller.
26795         * tests/test-fopen-safer.c (main): Likewise.
26796         * tests/test-open.c (main): Likewise.
26797         * tests/test-fcntl-safer.c (main): Likewise.
26798         Reported by Samuel Thibault.
26799
26800         rename, fchdir: don't ignore chdir failure
26801         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26802         * lib/rename.c (rpl_rename) [W32]: Likewise.
26803         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26804         an empty destination directory if source cannot be renamed,
26805         although there is still possibility for failure.
26806         * doc/posix-functions/rename.texi (rename): Document the race.
26807         Reported by Jim Meyering.
26808
26809         maint: cleanup whitespace in recent commits
26810         * lib/rename.c (rpl_rename): Remove tabs.
26811         * tests/test-link.h (test_link): Likewise.
26812         * lib/fchdir.c (get_name): Likewise.
26813         Reported by Jim Meyering.
26814
26815 2009-10-02  Ben Pfaff  <blp@gnu.org>
26816
26817         relocatable-prog-wrapper: Add missing dependency on
26818         double-slash-root.
26819         * modules/relocatable-prog-wrapper: Add dependency.
26820         Reported by Ian Beckwith <ianb@erislabs.net>.
26821
26822 2009-10-02  Eric Blake  <ebb9@byu.net>
26823
26824         renameat: fix Solaris bugs
26825         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26826         needed fixing.
26827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26828         * modules/stdio (Makefile.am): Substitute it.
26829         * lib/stdio.in.h (renameat): Declare replacement.
26830         * lib/renameat.c (rpl_renameat): Implement fix.
26831
26832         renameat: new module
26833         * modules/renameat: New file.
26834         * lib/renameat.c (renameat): Likewise.
26835         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26837         * modules/stdio (Makefile.am): Substitute them.
26838         * lib/stdio.in.h (renameat): Declare it.
26839         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26840         * doc/posix-functions/renameat.texi (renameat): Likewise.
26841         * modules/renameat-tests: New test.
26842         * tests/test-renameat.c: Likewise.
26843
26844         rename: fix mingw bugs
26845         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26846         directory overwrite bugs.
26847
26848         rename: fix another cygwin 1.5 bug
26849         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26850         checks.
26851         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26852         unnecessary cygwin workarounds.  Also work around bug with moving
26853         full directory onto an empty one.
26854         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26855
26856         rename-dest-slash: merge into rename module
26857         * modules/rename-dest-slash (Status): Mark obsolete.
26858         (Depends-on): Add rename.
26859         (Files): Let rename do it all.
26860         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26861         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26862         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26863         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26864         * lib/rename.c (rpl_rename): Update comments.
26865
26866         rename: fix cygwin 1.5.x bugs
26867         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26868         * lib/rename.c (rpl_rename): Work around them.
26869         * modules/rename (Depends-on): Add same-inode.
26870
26871         rename: fix Solaris 10 bug
26872         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26873         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26874         was the only bug.
26875
26876         rename: fix Solaris 9 bug
26877         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26878         on non-directory.  Avoid calling exit.
26879         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26880         strdup.
26881         * modules/rename-tests (Depends-on): Drop lstat.
26882         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26883         (gl_PREREQ_RENAME): Delete unused macro.
26884
26885         rename-dest-slash: fix NetBSD bug
26886         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26887         links.
26888         * modules/rename-dest-slash (Depends-on): Add same-inode.
26889
26890         rename-tests: new test, exposes several platform bugs
26891         * modules/rename-tests: New file.
26892         * tests/test-rename.h: Likewise.
26893         * tests/test-rename.c: Likewise.
26894         * doc/posix-functions/rename.texi (rename): Improve documentation,
26895         including bugs that will eventually be fixed in gnulib.
26896
26897 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26898
26899         * lib/uname.c: Include <stdlib.h>
26900         (uname): Assume version info is available.
26901
26902 2009-10-02  Jim Meyering  <meyering@redhat.com>
26903
26904         gnu-web-doc-update: correct --help output
26905         * build-aux/gnu-web-doc-update: Make --help output relevant.
26906
26907         gnu-web-doc-update: add standard options
26908         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26909
26910         gnu-web-doc-update: New module.
26911         Use this script to automatically update the on-line web documentation
26912         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26913         * modules/gnu-web-doc-update: New file, from coreutils.
26914         * build-aux/gnu-web-doc-update: New script.
26915
26916 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26917
26918         link: LoadLibrary is not needed.
26919         * lib/link.c: Use GetModuleHandle.
26920
26921 2009-10-01  Eric Blake  <ebb9@byu.net>
26922
26923         getopt: bump serial number
26924         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26925         change.
26926
26927         tests: tighten link, rmdir, and remove tests
26928         * tests/test-link.h (includes): No need to use <config.h> here.
26929         Clean up if directory hard link was created, otherwise test for
26930         trailing '.'.
26931         * tests/test-linkat.c (main): Simplify.
26932         * tests/test-remove.c (main): Enhance test for trailing '.'.
26933         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26934
26935 2009-10-01  Jim Meyering  <meyering@redhat.com>
26936
26937         maint.mk: requiring "make major" was annoying, for a "minor" release.
26938         What is intended is "stable", to contrast with alpha and beta,
26939         so require "make stable", not "make major".
26940         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26941         (get_tool_versions): Likewise.
26942         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26943
26944 2009-09-30  Ben Pfaff  <blp@gnu.org>
26945
26946         Fix broken build of replacement for Windows tmpfile().
26947         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26948         flags argument added along with the 'mkostemp' module.
26949
26950 2009-09-28  Bruno Haible  <bruno@clisp.org>
26951
26952         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26953         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26954         to 'remove_elt'.
26955         (gl_list_remove): Update.
26956         * lib/gl_list.c (gl_list_remove): Update.
26957         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26958         to 'remove_elt'.
26959         (gl_oset_remove): Update.
26960         * lib/gl_list.c (gl_oset_remove): Update.
26961         Reported by Eric Blake.
26962
26963 2009-09-28  Eric Blake  <ebb9@byu.net>
26964
26965         doc: mention yet more cygwin 1.7 status
26966         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26967         cygwin.
26968         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26969         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26970
26971         argp: fix test failure
26972         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26973         that are not upper-case.  Pass correct range to tolower.
26974
26975 2009-09-27  Jim Meyering  <meyering@redhat.com>
26976
26977         test-yesno: work around sparc-dash here-document infelicity
26978         Without this change, the literal \177 byte in a here document
26979         would make dash 0.5.5.1-3 access uninitialized memory.
26980         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26981         Instead, use a marker, "@", and filter through tr to create the desired
26982         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26983
26984 2009-09-27  Bruno Haible  <bruno@clisp.org>
26985
26986         Disable untested support for new flavours of ACLs on AIX.
26987         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26988         progress.
26989         * lib/set-mode-acl.c (qset_acl): Likewise.
26990
26991 2008-12-07  Bruno Haible  <bruno@clisp.org>
26992
26993         Add support for new flavours of ACLs on AIX. (Untested.)
26994         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26995         (file_has_acl): Add support for newer AIX.
26996         * lib/set-mode-acl.c (qset_acl): Likewise.
26997         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26998         Rainer Tammer <tammer@tammer.net>.
26999
27000 2009-09-26  Eric Blake  <ebb9@byu.net>
27001
27002         argp: fix compilation of getopt
27003         * lib/getopt.in.h (includes): Use different guard than glibc.
27004         Reported by Sergey Poznyakoff.
27005
27006         doc: mention more cygwin 1.7 status
27007         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27008         bug.
27009         * doc/posix-functions/execl.texi (execl): Likewise.
27010         * doc/posix-functions/execle.texi (execle): Likewise.
27011         * doc/posix-functions/execlp.texi (execlp): Likewise.
27012         * doc/posix-functions/execv.texi (execv): Likewise.
27013         * doc/posix-functions/execve.texi (execve): Likewise.
27014         * doc/posix-functions/execvp.texi (execvp): Likewise.
27015         * doc/glibc-functions/canonicalize_file_name.texi
27016         (canonicalize_file_name): Cygwin 1.7 now provides this.
27017         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27018         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27019         on AT_SYMLINK_NOFOLLOW.
27020
27021 2009-09-24  Eric Blake  <ebb9@byu.net>
27022
27023         test-linkat: make test more robust
27024         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27025
27026         getopt: fix inclusion guards for cygwin
27027         * modules/getopt-posix (Depends-on): Add include-next.
27028         (Makefile.am): Substitute more items in replacement header.
27029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27030         <getopt.h>.
27031         * lib/getopt.in.h (includes): Use split inclusion guard, and
27032         prefer <getopt.h> over include <unistd.h> when one is present.
27033         (option): Also override name of 'struct option'.
27034
27035         same-inode: revert prior change; it is not yet ready
27036         * NEWS: Undo mention of this change.
27037         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27038         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27039         * lib/cycle-check.c (cycle_check): Likewise.
27040         * lib/same.c (same_name): Likewise.
27041         * lib/at-func2.c (at_func2): Likewise.
27042
27043 2009-09-23  Eric Blake  <ebb9@byu.net>
27044
27045         linkat: new module
27046         * modules/linkat: New file.
27047         * lib/at-func2.c (at_func2): Likewise.
27048         * lib/linkat.c (linkat): Likewise.
27049         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27050         * lib/openat-priv.h (at_func2): Add declaration.
27051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27052         * modules/unistd (Makefile.am): Substitute them.
27053         * lib/unistd.in.h (linkat): Declare it.
27054         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27055         * doc/posix-functions/linkat.texi (linkat): Likewise.
27056         * doc/posix-functions/link.texi (link): Tweak wording.
27057         * tests/test-link.c (main): Move guts...
27058         * tests/test-link.h (test_link): ...into new file.
27059         * modules/linkat-tests: New test.
27060         * tests/test-linkat.c: Likewise.
27061         * modules/link-tests (Files): Ship new file.
27062         (Depends-on): Add stdbool.
27063
27064         dirname: add library-safe mdir_name
27065         * lib/dirname.h (mdir_name): New prototype.
27066         * lib/dirname.c (dir_name): Move guts...
27067         (mdir_name): ...to new function that avoids xalloc_die.
27068
27069         fchdir: another mingw fix
27070         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27071         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27072         on mingw (where it has not yet been ported), and make it optional
27073         elsewhere.
27074         (_gl_register_fd): Use it.
27075
27076         same-inode: make SAME_INODE tri-state, to port to mingw
27077         * NEWS: Mention this change.
27078         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27079         st_ino always being 0.
27080         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27081         * lib/cycle-check.c (cycle_check): Likewise.
27082         * lib/same.c (same_name): Likewise.
27083
27084         lstat: avoid mingw compilation error
27085         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27086         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27087         lstat ourselves.
27088         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27089         was adequate.
27090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27091         the checks for lstat.
27092         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27093
27094         link: fix test failure on Solaris 9
27095         * lib/link.c (rpl_link): Don't assume link will catch bogus
27096         trailing slash on source.
27097
27098         test-symlinkat: enhance test
27099         * tests/test-readlink.c (main): Move guts...
27100         * tests/test-readlink.h (test_readlink): ...into new file.
27101         * tests/test-symlink.c (main): Move guts...
27102         * tests/test-symlink.h (test_symlink): ...into new file.
27103         * tests/test-symlinkat.c (main): Use new files for further
27104         coverage.
27105         (do_symlink, do_readlink): New helper functions.
27106         * modules/symlink-tests (Files): Ship new file.
27107         (Depends-on): Add stdbool.
27108         * modules/readlink-tests (Files): Ship new file.
27109         (Depends-on): Add stdbool.
27110         * modules/symlinkat-tests (Files): Use new files.
27111
27112 2009-09-23  Eric Blake  <ebb9@byu.net>
27113
27114         readlink: document portability issue with symlink length
27115         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27116         systems have bogus st_size on symlinks, and mention the
27117         areadlink-with-size module.
27118         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27119         * doc/posix-functions/readlink.texi (readlink): Mention the
27120         areadlink module, and ERANGE failure.
27121         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27122         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27123
27124         readlink: fix Solaris 9 bug with trailing slash
27125         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27126         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27127         * doc/posix-functions/readlink.texi (readlink): Document this.
27128         * modules/readlink-tests: New test.
27129         * tests/test-readlink.c: Likewise.
27130
27131         readlink: fix cygwin 1.5.x bug with return type
27132         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27133         * lib/unistd.in.h (readlink): Use ssize_t.
27134         * lib/readlink.c (readlink): Likewise.
27135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27136         * modules/unistd (Makefile.am): Substitute it.
27137         * lib/unistd.in.h (readlink): Declare replacement.
27138         * doc/posix-functions/readlink.texi (readlink): Document this.
27139
27140         symlink: use throughout gnulib
27141         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27142         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27143         symlink is not used.
27144         * modules/symlinkat (Depends-on): Add symlink.
27145         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27146         * modules/canonicalize-tests (Depends-on): Likewise.
27147         * modules/lstat-tests (Depends-on): Likewise.
27148         * modules/openat-tests (Depends-on): Likewise.
27149         * modules/remove-tests (Depends-on): Likewise.
27150         * modules/rmdir-tests (Depends-on): Likewise.
27151         * modules/unlink-tests (Depends-on): Likewise.
27152         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27153         * tests/test-canonicalize.c (symlink): Likewise.
27154         * tests/test-fstatat.c (symlink): Likewise.
27155         * tests/test-lstat.c (symlink): Likewise.
27156         * tests/test-remove.c (symlink): Likewise.
27157         * tests/test-rmdir.c (symlink): Likewise.
27158         * tests/test-unlink.c (symlink): Likewise.
27159         * tests/test-unlinkat.c (symlink): Likewise.
27160
27161         symlink: new module, for Solaris 9 bug
27162         * modules/symlink: New file.
27163         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27164         * lib/symlink.c: Likewise.
27165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27166         * modules/unistd (Makefile.am): Substitute them.
27167         * lib/unistd.in.h (symlink): Declare replacement.
27168         * MODULES.html.sh (File system functions): Mention it.
27169         * doc/posix-functions/symlink.texi (symlink): Likewise.
27170         * modules/symlink-tests: New test.
27171         * tests/test-symlink.c: Likewise.
27172
27173 2009-09-23  Bruno Haible  <bruno@clisp.org>
27174
27175         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27176         when needed.
27177         Test case: gnulib-tool --import --with-tests atexit inttypes.
27178         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27179
27180 2009-09-23  Bruno Haible  <bruno@clisp.org>
27181
27182         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27183         subcommand, not in a subshell.
27184
27185 2009-09-22  Eric Blake  <ebb9@byu.net>
27186
27187         unistd: sort replacement declarations
27188         * lib/unistd.in.h: Sort declarations.
27189
27190         open, openat: minor optimization
27191         * lib/open.c (open): If open succeeded, len is non-zero.
27192         * lib/openat.c (rpl_openat): Likewise.
27193
27194         link-follow: ensure correct result
27195         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27196         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27197         distinguish between possible failures.
27198
27199 2009-09-21  Eric Blake  <ebb9@byu.net>
27200
27201         fts: avoid compiler warning
27202         * lib/fts.c (dirent_inode_sort_may_be_useful)
27203         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27204
27205 2009-09-19  Bruno Haible  <bruno@clisp.org>
27206
27207         * lib/progreloc.c (canonicalize_file_name): New declaration.
27208
27209 2009-09-19  Eric Blake  <ebb9@byu.net>
27210
27211         link: fix quoting
27212         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27213
27214         openat: fix openat bugs on Solaris 9
27215         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27216         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27217         * modules/openat (Depends-on): Add open.
27218         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27219         * modules/fcntl-h (Makefile.am): Substitute it.
27220         * lib/fcntl.in.h (openat): Declare replacement.
27221         * doc/posix-functions/openat.texi (openat): Document this.
27222
27223         openat: move fstatat and unlinkat into correct files
27224         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27225         compiled.
27226         * lib/openat.c (fstatat, unlinkat): Move...
27227         * lib/fstatat.c (fstatat): ...into correct files.
27228         * lib/unlinkat.c (unlinkat): Likewise.
27229
27230         openat: fix unlinkat bugs on Solaris 9
27231         * lib/unlinkat.c (unlinkat): New file.
27232         * modules/openat (Depends-on): Add unlink.
27233         (Files): Distribute it.
27234         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27235         trailing slash behavior is broken.
27236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27237         * modules/unistd (Makefile.am): Substitute it.
27238         * lib/unistd.in.h (unlinkat): Declare replacement.
27239         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27240
27241         openat: fix fstatat bugs on Solaris 9
27242         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27243         stat.
27244         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27245
27246         test-unlinkat: enhance test, to expose Solaris 9 bug
27247         * tests/test-unlink.c (main): Factor guts...
27248         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27249         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27250         * tests/test-rmdir.c (main): Adjust caller.
27251         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27252         (unlinker): New helper function.
27253         (rmdirat): Enhance check.
27254         * modules/rmdir-tests (Depends-on): Add stdbool.
27255         * modules/unlink-tests (Depends-on): Likewise.
27256         (Files): Add test-unlink.h.
27257         * modules/openat-tests (Files): Likewise.
27258         (Depends-on): Add unlinkdir.
27259
27260         test-fstatat: new test, to expose Solaris 9 bugs
27261         * tests/test-stat.c (main): Factor guts...
27262         * tests/test-stat.h (test_stat_func): ...into new file.
27263         * tests/test-lstat.c (main): Factor guts...
27264         * tests/test-lstat.h (test_lstat_func): ...into new file.
27265         * tests/test-fstatat.c: New file.
27266         * modules/stat-tests (Files): Add test-stat.h.
27267         * modules/lstat-tests (Files): Add test-lstat.h.
27268         (Depends-on): Add stdbool.
27269         * modules/openat-tests (Depends-on): Add pathmax.
27270         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27271         (Makefile.am): Run new test.
27272
27273         remove: new module, for mingw and Solaris 9 bugs
27274         * modules/remove: New file.
27275         * lib/remove.c: Likewise.
27276         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27278         * modules/stdio (Makefile.am): Use them.
27279         * lib/stdio.in.h (remove): Declare replacement.
27280         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27281         * doc/posix-functions/remove.texi (remove): Likewise.
27282         * modules/remove-tests: New test.
27283         * tests/test-remove.c: Likewise.
27284
27285         unlink: new module, for Solaris 9 bug
27286         * modules/unlink: New file.
27287         * lib/unlink.c: Likewise.
27288         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27290         * modules/unistd (Makefile.am): Use them.
27291         * lib/unistd.in.h (stat): Declare replacement.
27292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27293         * doc/posix-functions/unlink.texi (unlink): Likewise.
27294         * modules/unlink-tests: New test.
27295         * tests/test-unlink.c: Likewise.
27296
27297         lstat: fix Solaris 9 bug
27298         * lib/lstat.c (lstat): Also check for trailing slash on
27299         non-symlink, non-directories.  Use stat module to simplify logic.
27300         * doc/posix-functions/lstat.texi (lstat): Document it.
27301         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27302         (configure.ac): Check for symlink.
27303         * tests/test-lstat.c (main): Add more tests.
27304
27305         stat: add as dependency to other modules
27306         * modules/chown (Depends-on): Add stat.
27307         * modules/euidaccess (Depends-on): Likewise.
27308         * modules/fchdir (Depends-on): Likewise.
27309         * modules/isdir (Depends-on): Likewise.
27310         * modules/link (Depends-on): Likewise.
27311         * modules/lstat (Depends-on): Likewise.
27312         * modules/mkdir-p (Depends-on): Likewise.
27313         * modules/modechange (Depends-on): Likewise.
27314         * modules/open (Depends-on): Likewise.
27315         * modules/readlink (Depends-on): Likewise.
27316         * modules/same (Depends-on): Likewise.
27317
27318         stat: fix Solaris 9 bug
27319         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27320         slash.
27321         * lib/stat.c (rpl_stat): Work around it.
27322         * doc/posix-functions/stat.texi (stat): Update documentation.
27323
27324         stat: new module, for mingw bug
27325         * modules/stat: New file.
27326         * lib/stat.c: Likewise.
27327         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27329         * modules/sys_stat (Makefile.am): Use them.
27330         * lib/sys_stat.in.h (stat): Declare replacement.
27331         * lib/openat.c (fstatat): Deal with lstat and stat being function
27332         macros.
27333         * modules/openat (Depends-on): Add inline.
27334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27335         * doc/posix-functions/stat.texi (stat): Likewise.
27336         * modules/stat-tests: New test.
27337         * tests/test-stat.c: Likewise.
27338
27339 2009-09-19  Jim Meyering  <meyering@redhat.com>
27340
27341         syntax-check: detect unnecessary inclusion of canonicalize.h
27342         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27343
27344 2009-09-19  Eric Blake  <ebb9@byu.net>
27345
27346         canonicalize-lgpl: adjust clients to use correct header
27347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27348         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27349         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27350         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27351         * lib/progreloc.c (includes): Likewise.
27352
27353 2009-09-19  Jim Meyering  <meyering@redhat.com>
27354
27355         test-posixtm.c: correct a comment
27356         * tests/test-posixtm.c: Correct first-line comment.
27357         Spotted by Eric Blake.
27358
27359 2009-09-16  Jim Meyering  <meyering@redhat.com>
27360
27361         posixtm-tests: make T const-correct; add a test case
27362         * tests/test-posixtm.c (T): Declare const.
27363         Add a test for -(2^31+1).
27364         Remove useless can-succeed-only-in-2002 test.
27365
27366         posixtm-tests: adjust the sole failing test
27367         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27368         expected output matches what mktime now produces.  Cross-checked via
27369         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27370
27371         posixtm: move #ifdef'd tests into a new module
27372         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27373         * tests/test-posixtm.c: ... this new file.
27374         * modules/posixtm-tests: New module.
27375
27376 2009-09-19  Eric Blake  <ebb9@byu.net>
27377
27378         openat: simplify use of at-func.c
27379         * lib/at-func.c (includes): Include prerequisites here, to
27380         simplify requirements on client files.
27381         * lib/openat-priv.h: Add double-inclusion guard.
27382         * lib/faccessat.c (includes): Simplify.
27383         * lib/fchmodat.c (includes): Likewise.
27384         * lib/fchownat.c (includes): Likewise.
27385         * lib/mkdirat.c (includes): Likewise.
27386         * lib/mkfifoat.c (includes): Likewise.
27387         * lib/symlinkat.c (includes): Likewise.
27388
27389         openat: allow return of fd 0
27390         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27391         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27392         unistd-safer.
27393         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27394         <fcntl.h>; this module does not leak fds.
27395         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27396         must be allowed to return 0, leaving openat_safer to add the
27397         safety.
27398         (openat_permissive): Avoid writing to just-opened fd 2 if
27399         restoring the current directory fails.
27400         * lib/openat-die.c (openat_restore_fail): Add comment.
27401         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27402         (save_cwd): Guarantee safe fd, but without use of open_safer.
27403         * tests/test-openat.c: New test.
27404         * modules/openat-tests (Files, Makefile.am): Distribute and build
27405         new file.
27406
27407         relocatable-prog-wrapper: fix build
27408         * modules/relocatable-prog-wrapper (Files): Update name of
27409         canonicalize m4 file, broken on 2009-09-17.
27410         Reported by emad hajjar <aleppos@hotmail.com>.
27411
27412 2009-09-19  Bruno Haible  <bruno@clisp.org>
27413
27414         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27415         * lib/safe-alloc.c: Likewise.
27416         Reported by Ian Beckwith <ianb@erislabs.net>.
27417
27418 2009-09-18  Bruno Haible  <bruno@clisp.org>
27419
27420         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27421         Reported by <erobles@sensacd.com.mx>.
27422
27423 2009-09-17  Eric Blake  <ebb9@byu.net>
27424
27425         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27426         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27427         slashes when checking if last component is missing.
27428         * tests/test-canonicalize.c (main): Test this.
27429
27430         canonicalize, canonicalize-lgpl: honor // if distinct from /
27431         * modules/canonicalize (Files): Add double-slash-root.m4.
27432         * modules/canonicalize-lgpl (Files): Likewise.
27433         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27434         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27435         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27436         fallback definition.
27437         (canonicalize_filename_mode): Use it to protect //.
27438         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27439         (__realpath): Likewise.
27440         * tests/test-canonicalize.c (main): Test this.
27441         * tests/test-canonicalize-lgpl.c (main): Likewise.
27442         * modules/canonicalize-tests (Depends-on): Add same-inode.
27443         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27444
27445         canonicalize-lgpl: fix glibc bug with trailing slash
27446         * m4/canonicalize-lgpl.m4: Move contents...
27447         * m4/canonicalize.m4: ...here.
27448         (gl_CANONICALIZE_LGPL): Factor realpath check...
27449         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27450         glibc 2.3.5 bug, fixed 2005-04-27.
27451         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27452         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27453         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27454         * modules/canonicalize-lgpl (Files): Manage file rename.
27455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27456         * modules/stdlib (Makefile.am): Substitute witness.
27457         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27458         is needed.
27459         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27460         replacement is required.
27461         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27462         * doc/glibc-functions/canonicalize_file_name.texi
27463         (canonicalize_file_name): Document this.
27464         * doc/posix-functions/realpath.texi (realpath): Likewise.
27465
27466         canonicalize-lgpl: reject non-directory with trailing slash
27467         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27468         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27469         catches failures in glibc 2.3.5.
27470         * tests/test-canonicalize.c (main): Likewise.
27471
27472         canonicalize-lgpl: use native realpath if it works
27473         * lib/canonicalize-lgpl.c (realpath): Guard with
27474         FUNC_REALPATH_WORKS.
27475         * lib/stdlib.in.h (realpath): Make declaration optional based on
27476         HAVE_REALPATH.
27477         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27478         native realpath works.
27479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27480         * modules/stdlib (Makefile.am): Substitute witness.
27481
27482         canonicalize, canonicalize-lgpl: use <stdlib.h>
27483         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27484         (Include): Mention <stdlib.h>.
27485         (configure.ac): Mention functions we provide.
27486         * modules/canonicalize (configure.ac): Likewise.
27487         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27488         realpath if canonicalize_file_name is missing.
27489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27490         * modules/stdlib (Makefile.am): Substitute witnesses.
27491         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27492         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27493         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27494         * NEWS: Document this.
27495         * doc/glibc-functions/canonicalize_file_name.texi
27496         (canonicalize_file_name): Likewise.
27497         * doc/posix-functions/realpath.texi (realpath): Likewise.
27498         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27499
27500         test-canonicalize: consolidate into single C program
27501         * tests/test-canonicalize.sh: Delete; move setup into...
27502         * tests/test-canonicalize.c (main): ...the program, making it
27503         easier to run in debugger.  Add some tests.
27504         * modules/canonicalize-tests (Files): Remove unused file.
27505         (Depends-on): Add progname.
27506         (configure.ac, Makefile.am): Simplify.
27507
27508         test-canonicalize-lgpl: consolidate into single C program
27509         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27510         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27511         easier to run in debugger.  Add some tests.
27512         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27513         (configure.ac, Makefile.am): Simplify.
27514
27515         canonicalize: avoid resolvepath
27516         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27517         unnecessary checks.
27518         * lib/canonicalize.c (includes): Simplify.
27519         (canonicalize_file_name): Drop resolvepath implementation.
27520         * modules/canonicalize (Depends-on): Drop filenamecat.
27521
27522         canonicalize: don't lose errno
27523         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27524         over calls to free.
27525
27526         canonicalize: simplify errno handling
27527         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27528         assignment.
27529
27530         canonicalize, canonicalize-lgpl: update module dependencies
27531         * modules/canonicalize (Depends-on): Add extensions, lstat,
27532         pathmax, stdlib.
27533         (Files): Drop pathmax.h.
27534         (configure.ac): Adjust macro name.
27535         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27536         lstat, stdlib, sys_stat.
27537         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27538         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27539         extensions.
27540         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27541         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27542         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27543         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27544         declaration, if available.
27545         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27546         we can rely on the readlink module.
27547         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27548         (includes): Use <unistd.h> unconditionally.
27549
27550 2009-09-17  Eric Blake  <ebb9@byu.net>
27551
27552         maint: make Include sections of modules consistent
27553         * modules/alloca: Use only header name; no need to list #include.
27554         * modules/alloca-opt: Likewise.
27555         * modules/arpa_inet: Likewise.
27556         * modules/canon-host: Likewise.
27557         * modules/configmake: Likewise.
27558         * modules/dirent: Likewise.
27559         * modules/eealloc: Likewise.
27560         * modules/environ: Likewise.
27561         * modules/fchdir: Likewise.
27562         * modules/fcntl: Likewise.
27563         * modules/fcntl-h: Likewise.
27564         * modules/gethrxtime: Likewise.
27565         * modules/gettime: Likewise.
27566         * modules/ignore-value: Likewise.
27567         * modules/inet_ntop: Likewise.
27568         * modules/inet_pton: Likewise.
27569         * modules/inttypes: Likewise.
27570         * modules/isnand-nolibm: Likewise.
27571         * modules/isnanf-nolibm: Likewise.
27572         * modules/mbchar: Likewise.
27573         * modules/mbfile: Likewise.
27574         * modules/mbiter: Likewise.
27575         * modules/mbuiter: Likewise.
27576         * modules/netdb: Likewise.
27577         * modules/netinet_in: Likewise.
27578         * modules/nproc: Likewise.
27579         * modules/pagealign_alloc: Likewise.
27580         * modules/poll: Likewise.
27581         * modules/printf-frexp: Likewise.
27582         * modules/pthread: Likewise.
27583         * modules/putenv: Likewise.
27584         * modules/random_r: Likewise.
27585         * modules/relocatable-prog: Likewise.
27586         * modules/search: Likewise.
27587         * modules/select: Likewise.
27588         * modules/selinux-h: Likewise.
27589         * modules/settime: Likewise.
27590         * modules/signal: Likewise.
27591         * modules/size_max: Likewise.
27592         * modules/socklen: Likewise.
27593         * modules/ssize_t: Likewise.
27594         * modules/stdarg: Likewise.
27595         * modules/stdbool: Likewise.
27596         * modules/stddef: Likewise.
27597         * modules/stdint: Likewise.
27598         * modules/stdio: Likewise.
27599         * modules/stdlib: Likewise.
27600         * modules/string: Likewise.
27601         * modules/strings: Likewise.
27602         * modules/sys_file: Likewise.
27603         * modules/sys_ioctl: Likewise.
27604         * modules/sys_select: Likewise.
27605         * modules/sys_socket: Likewise.
27606         * modules/sys_stat: Likewise.
27607         * modules/sys_time: Likewise.
27608         * modules/sys_times: Likewise.
27609         * modules/sys_utsname: Likewise.
27610         * modules/sys_wait: Likewise.
27611         * modules/sysexits: Likewise.
27612         * modules/time: Likewise.
27613         * modules/times: Likewise.
27614         * modules/tmpfile: Likewise.
27615         * modules/trim: Likewise.
27616         * modules/unistd: Likewise.
27617         * modules/wchar: Likewise.
27618         * modules/wctype: Likewise.
27619
27620 2009-09-17  Bruno Haible  <bruno@clisp.org>
27621
27622         Make getdate.y compile on QNX and NetBSD 5 / i386.
27623         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27624         TIME_T_FITS_IN_LONG_INT.
27625         * lib/getdate.y (long_time_t): New type.
27626         (relative_time): Change type of 'seconds' field to long_time_t.
27627         (get_date): Update types of local variables. Check against overflow
27628         during conversion from long_time_t to time_t.
27629         Reported by Matt Kraai <kraai@ftbfs.org>
27630         and Hasso Tepper <hasso@netbsd.org>.
27631
27632 2009-09-17  Bruno Haible  <bruno@clisp.org>
27633
27634         * modules/COPYING: Update copyright years.
27635         * modules/README: Likeiwse.
27636         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27637         Reported by Ian Beckwith <ianb@erislabs.net>.
27638
27639 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27640
27641         * users.txt: Update references for gnuit package.
27642
27643 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27644
27645         * m4/getdelim.m4: Fix typo in copyright line.
27646
27647 2009-09-17  Bruno Haible  <bruno@clisp.org>
27648
27649         * lib/atoll.c: Use the standard header with GPL copyright.
27650         * lib/argz.in.h: Likewise.
27651         * lib/glob.c: Likewise.
27652         * lib/glob-libc.h: Likewise.
27653         * lib/random_r.c: Likewise.
27654         * lib/siglist.h: Likewise.
27655         * lib/strsignal.c: Likewise.
27656         Reported by Ian Beckwith <ianb@erislabs.net>.
27657
27658 2009-09-17  Eric Blake  <ebb9@byu.net>
27659
27660         rmdir: ensure correct dependency order
27661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27662
27663 2009-09-17  Bruno Haible  <bruno@clisp.org>
27664
27665         Disable assertion that fails on NetBSD 5 / i386.
27666         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27667         Reported by Sam Steingold <sds@gnu.org>
27668         and Hasso Tepper <hasso@netbsd.org>.
27669
27670 2009-09-16  Eric Blake  <ebb9@byu.net>
27671
27672         unlinkdir: port to mingw
27673         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27674         on which no one can unlink a directory.
27675
27676         stdlib: sort witness names
27677         * modules/stdlib (Makefile.am): Sort replacements.
27678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27679         * lib/stdlib.in.h: Likewise.
27680
27681         parse-duration-tests: avoid link failure
27682         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27683         LIBINTL.
27684         Reported by Tom G. Christensen.
27685
27686         openat-tests: ensure unlinkat behaves like rmdir
27687         * tests/test-rmdir.c (main): Factor guts...
27688         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27689         * modules/rmdir-tests (Files): Ship new file.
27690         * modules/openat-tests: New test.
27691         * tests/test-unlinkat.c: Likewise.
27692
27693         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27694         * modules/rmdir-errno (Status, Notice): Now obsolete.
27695
27696         rmdir: work around cygwin 1.5.x and mingw bugs
27697         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27698         * lib/rmdir.c (rmdir): Work around it.
27699         * modules/rmdir (Status, Notice): No longer obsolete.
27700         (Files): Add dos.m4.
27701         (Depends-on): Add unistd.
27702         (configure.ac): Set witnesses.
27703         (License): Relax to LGPLv2+.
27704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27705         * modules/unistd (Makefile.am): Substitute witnesses.
27706         * lib/unistd.in.h (rmdir): Declare replacement.
27707         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27708         * modules/rmdir-tests: New tests.
27709         * tests/test-rmdir.c: Likewise.
27710
27711 2009-09-15  Eric Blake  <ebb9@byu.net>
27712
27713         fchdir: improve use of replacement functions
27714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27717         REPLACE_CLOSEDIR.
27718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27719         * modules/sys_stat (Makefile.am): Substitute correct witness.
27720         * modules/dirent (Makefile.am): Likewise.
27721         * modules/unistd (Makefile.am): Likewise.
27722         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27723         * lib/unistd.in.h (dup): Likewise.
27724         * lib/sys_stat.in.h (fstat): Likewise.
27725
27726         maint: ignore gnulib-tool temp files
27727         * .gitignore: Ignore files created during gnulib-tool --test.
27728
27729 2009-09-13  Jim Meyering  <meyering@redhat.com>
27730
27731         posixtm: don't reject a time that specify "60" as the number of seconds
27732         * lib/posixtm.c (posixtime): The code to reject invalid dates
27733         would also reject a time specified with the .60 suffix.
27734         But POSIX allows that, in order to accommodate leap seconds.
27735         So don't reject it.
27736         (main): Adjust tests accordingly.
27737         * modules/posixtm (Depends-on): Add stpcpy.
27738
27739 2009-09-11  Jim Meyering  <meyering@redhat.com>
27740
27741         announce-gen: include [$release_type] in emitted Subject:
27742         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27743         e.g., [stable] in the emitted Subject: line.
27744
27745 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27746
27747         Remove obsolete macros from several modules.
27748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27749         obsolete Autoconf macros with their modern counterparts.
27750         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27751         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27755         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27758         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27759         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27760         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27762         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27763         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27764         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27765         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27766         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27767         * m4/time_r.m4 (gl_TIME_R): Likewise.
27768         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27769         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27770         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27771
27772         Fix copyright header in build-aux scripts.
27773         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27774         recommendation.
27775         * build-aux/ncftpput-ftp: Likewise.
27776         * build-aux/update-copyright: Likewise.
27777
27778 2009-09-09  Eric Blake  <ebb9@byu.net>
27779
27780         test-link: allow Linux choice of errno
27781         * tests/test-link.c (main): Relax test for alternate error.
27782
27783         strndup: fix improper m4 caching
27784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27785         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27786         (gl_PREREQ_STRNDUP): Delete.
27787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27788         * modules/string (Makefile.am): Substitute it.
27789         * lib/string.in.h (strndup): Modernize prototype.
27790
27791         getcwd: port to mingw
27792         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27793         different from the POSIX assumptions made throughout the getcwd
27794         module; fortunately, the mingw getcwd does not need replacement.
27795         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27796         * modules/getcwd-tests: New test.
27797         * tests/test-getcwd.c: Likewise.
27798
27799         link: fix platform bugs
27800         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27801         * lib/link.c (link): Work around them.  Fix related mingw bug.
27802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27803         * modules/unistd (Makefile.am): Substitute it.
27804         * lib/unistd.in.h (link): Declare replacement.
27805         * doc/posix-functions/link.texi (link): Document this.
27806         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27807
27808         test-link: consolidate into single C program, test more cases
27809         * tests/test-link.sh: Delete.
27810         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27811         at least Cygwin and Solaris.
27812         * modules/link-tests (Files): Remove unused file.
27813         (Depends-on): Add errno, sys_stat.
27814         (Makefile.am): Simplify.
27815
27816 2009-09-08  Bruno Haible  <bruno@clisp.org>
27817
27818         Work around towlower, towupper bug on mingw.
27819         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27820         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27821         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27822         * doc/posix-functions/towupper.texi: Likewise.
27823         Reported by Eric Blake.
27824
27825 2009-09-08  Jim Meyering  <meyering@redhat.com>
27826
27827         build: don't try to run autoheader if we don't use it
27828         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27829         is not used in configure.ac.
27830
27831 2009-09-08  Eric Blake  <ebb9@byu.net>
27832
27833         euidaccess: fix compilation error
27834         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27835
27836         rawmemchr: relax license
27837         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27838         okay.
27839         Reported by Jim Meyering.
27840
27841         mkfifoat: new module
27842         * modules/mkfifoat: New file.
27843         * lib/mkfifoat.c: Likewise.
27844         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27846         * modules/sys_stat (Makefile.am): Use them.
27847         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27848         * MODULES.html.sh (File system functions): Mention module.
27849         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27850         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27851         * modules/mkfifoat-tests: New test.
27852         * tests/test-mkfifoat.c: Likewise.
27853
27854         strchrnul: relax license
27855         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27856         okay.
27857         Reported by Jim Meyering.
27858
27859 2009-09-08  Eric Blake  <ebb9@byu.net>
27860
27861         fstatat: fix compilation on Solaris
27862         * lib/fstatat.c (includes): Add fcntl.h.
27863         Reported by Pádraig Brady.
27864
27865 2009-09-07  Eric Blake  <ebb9@byu.net>
27866
27867         rename: modernize replacement
27868         * modules/rename (Depends-on): Add stdio.
27869         (configure.ac): Declare witness.
27870         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27871         stdio take care of replacement.
27872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27873         * modules/stdio (Makefile.am): Substitute them.
27874         * lib/stdio.in.h (rename): Declare replacement.
27875         * lib/rename.c (includes): Allow cross-compilation to non-windows
27876         machines.
27877         * doc/posix-functions/rename.texi (rename): Improve
27878         documentation.
27879
27880         stdio: sort witness names
27881         * modules/stdio (Makefile.am): Sort replacements.
27882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27883         * lib/stdio.in.h: Likewise.
27884
27885         getcwd: minor cleanups
27886         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27887         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27888
27889         openat: provide more convenience names
27890         * modules/faccessat (configure.ac): Add C witness.
27891         * lib/unistd.in.h (readlinkat): Fix typo.
27892         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27893         convenience wrappers.
27894         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27895         wrappers in syntax checks.
27896
27897 2009-09-06  Eric Blake  <ebb9@byu.net>
27898
27899         doc: fix comments in recent patches
27900         * lib/faccessat.c: Mention correct function.
27901         * lib/fchmodat.c: Likewise.
27902         * lib/fchownat.c: Likewise.
27903         * lib/symlinkat.c: Likewise.
27904         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27905         constants.
27906
27907         faccessat, symlinkat: continue cleanup of previous patch
27908         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27909         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27910         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27912         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27913         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27914         set.
27915
27916 2009-09-06  Bruno Haible  <bruno@clisp.org>
27917
27918         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27919         (fstatat): Declare if GNULIB_FSTATAT is set.
27920         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27921         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27922         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27923         * modules/fcntl-h (Files): Remove m4/openat.m4.
27924         * modules/sys_stat (Files): Remove m4/openat.m4.
27925         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27926         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27927         * modules/unistd (Files): Remove m4/openat.m4.
27928         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27929         GNULIB_OPENAT.
27930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27931         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27933         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27934         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27935         gl_OPENAT_DEFAULTS.
27936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27937         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27938         Don't require gl_OPENAT_DEFAULTS.
27939         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27940         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27941         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27942         (gl_OPENAT_DEFAULTS): Remove macro.
27943
27944 2009-09-06  Bruno Haible  <bruno@clisp.org>
27945
27946         * modules/openat (configure.ac): Remove unneeded witness.
27947
27948 2009-09-06  Bruno Haible  <bruno@clisp.org>
27949
27950         Set errno to ENOSYS when a function is entirely unsupported.
27951         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27952         EOPNOTSUPP.
27953         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27954         * modules/chown (Depends-on): Remove errno.
27955
27956 2009-09-06  Bruno Haible  <bruno@clisp.org>
27957
27958         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27959
27960 2009-09-06  Bruno Haible  <bruno@clisp.org>
27961
27962         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27963
27964 2009-09-06  Ben Pfaff  <blp@gnu.org>
27965             Bruno Haible  <bruno@clisp.org>
27966
27967         Work around a glibc bug in strtok_r.
27968         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27969         Undefine if UNDEFINE_STRTOK_R is set.
27970         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27972         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27973         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27974         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27975         UNDEFINE_STRTOK_R.
27976         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27977
27978 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27979
27980         exclude: minor fix
27981         * lib/exclude.c: Include wctype.h
27982
27983 2009-09-06  Akim Demaille  <demaille@gostai.com>
27984
27985         bootstrap: improve error message
27986         * build-aux/bootstrap (find_tool): Upon failure, report the list
27987         of candidates.
27988         Honor the initial value of the envvar.
27989
27990 2009-09-05  Eric Blake  <ebb9@byu.net>
27991
27992         symlinkat: new module
27993         * modules/symlinkat: New file.
27994         * lib/symlinkat.c: Likewise.
27995         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27997         * modules/unistd (Makefile.am): Use them.
27998         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27999         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28000         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28001         * MODULES.html.sh (File system functions): Mention module.
28002         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28003         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28004         * modules/symlinkat-tests: New test.
28005         * tests/test-symlinkat.c: Likewise.
28006
28007         test-openat-safer: add more checks
28008         * tests/test-openat-safer.c (main): Check more code paths.
28009
28010 2009-09-05  Jim Meyering  <meyering@redhat.com>
28011
28012         syntax-check: detect unnecessary inclusion of openat.h
28013         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28014
28015 2009-09-05  Bruno Haible  <bruno@clisp.org>
28016
28017         Support towlower, towupper.
28018         * doc/posix-functions/towlower.texi: Mention module wctype.
28019         * doc/posix-functions/towupper.texi: Likewise.
28020         * lib/wctype.in.h (towlower, towupper): New functions.
28021         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28022         (ASSERT): New macro.
28023         (e): New variable.
28024         (main): Test also towlower, towupper. Test WEOF argument.
28025         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28026
28027 2009-09-05  Bruno Haible  <bruno@clisp.org>
28028
28029         Fix conversion behaviour when the input is invalid.
28030         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28031         mark occurring in first pass of indirect conversion.
28032         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28033         input.
28034         Found by clang's static analyzer.
28035
28036 2009-09-05  Bruno Haible  <bruno@clisp.org>
28037
28038         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28039         where direct conversion is possible.
28040
28041 2009-09-04  Eric Blake  <ebb9@byu.net>
28042
28043         openat: fail with ENOENT on empty name
28044         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28045         buffer.
28046
28047         link-follow: fix logic bug in prior patch
28048         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28049         reversed sense of yes and no in prior patch.  Avoid confusing
28050         compilation failure with desired semantics.
28051
28052         link-follow: accomodate mingw and cross-compilation
28053         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28054         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28055         cross-compilation results to -1, to make linkat easier to
28056         implement when cross-compiling.  Trivially support mingw.
28057         * modules/link-follow (configure.ac): Call new name.
28058         * NEWS: Mention this.
28059
28060 2009-09-03  Eric Blake  <ebb9@byu.net>
28061
28062         faccessat: compile replacement
28063         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28064         needed.
28065
28066         fts: fix compilation error
28067         * lib/fts.c (includes): Re-add "openat.h", for
28068         openat_needs_fchdir.
28069
28070         faccessat: new module
28071         * modules/faccessat: New file.
28072         * lib/faccessat.c: Likewise.
28073         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28075         * modules/unistd (Makefile.am): Use it.
28076         * lib/unistd.in.h (faccessat): Declare it.
28077         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28078         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28079         * MODULES.html.sh (File system functions): Mention it.
28080         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28081         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28082
28083         euidaccess: prefer POSIX over non-standard implementation
28084         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28085         * lib/euidaccess.c (euidaccess): Use it if available.
28086
28087         openat: make template easier to use
28088         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28089         AT_FUNC_F2 to be undefined.
28090         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28091         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28092         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28093         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28094         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28095         Likewise.
28096         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28097         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28098         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28099         Likewise.
28100
28101         openat: declare in POSIX headers
28102         * NEWS: Mention this.
28103         * modules/openat (configure.ac): Declare witnesses.
28104         (Depends-on): Add fcntl-h, sys_stat, unistd.
28105         (Include): Mention correct headers.
28106         * modules/fcntl-h (Depends-on): Add link-warning.
28107         (Files): Add openat.m4.
28108         (Makefile.am): Substitute witnesses.
28109         * modules/sys_stat (Files, Makefile.am): Likewise.
28110         * modules/unistd (Files, Makefile.am): Likewise.
28111         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28112         (gl_OPENAT_DEFAULTS): New macro.
28113         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28116         (SYS_STAT_H): Remove unused variable.
28117         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28118         * lib/fcntl--.h (includes): Remove unneeded header.
28119         * lib/openat-safer.c (includes): Likewise.
28120         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28121         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28122         appropriate headers.
28123         (__OPENAT_PREFIX): Delete.
28124         * lib/fcntl.in.h (openat): Provide declaration.
28125         (AT_FDCWD): Fix Solaris bug.
28126         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28127         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28128         * lib/fchmodat.c (includes):  Adjust to find declaration.
28129         * lib/fchownat.c (includes): Likewise.
28130         * lib/mkdirat.c (includes): Likewise.
28131         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28132         still visible.
28133
28134 2009-09-02  Eric Blake  <ebb9@byu.net>
28135
28136         errno: use consistently
28137         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28138         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28139         * lib/canonicalize.c (ELOOP): Likewise.
28140         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28141         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28142         * lib/lchown.c (EOPNOTSUPP): Likewise.
28143         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28144         * lib/savewd.c (ESTALE): Likewise.
28145         * lib/settime.c (ENOSYS): Likewise.
28146         * lib/utimens.c (ENOSYS): Likewise.
28147         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28148         * lib/chdir-safer.c (ELOOP): Likewise.
28149         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28150         * modules/c-stack (Depends-on): Add errno.
28151         * modules/canonicalize (Depends-on): Likewise.
28152         * modules/chdir-safer (Depends-on): Likewise.
28153         * modules/fdopendir (Depends-on): Likewise.
28154         * modules/inet_ntop (Depends-on): Likewise.
28155         * modules/inet_pton (Depends-on): Likewise.
28156         * modules/lchown (Depends-on): Likewise.
28157         * modules/openat (Depends-on): Likewise.
28158         * modules/savewd (Depends-on): Likewise.
28159         * modules/settime (Depends-on): Likewise.
28160         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28161
28162         fts: avoid leaking fds
28163         * modules/fts (Depends-on): Add cloexec.
28164         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28165         flag.
28166
28167         fts: make directory fds more robust
28168         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28169         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28170
28171         backupfile, chdir-long, fts, savedir: make safer
28172         * lib/backupfile.c (includes): Use "dirent--.h", since
28173         numbered_backup can write to stderr during readdir.
28174         * lib/savedir.c (includes): Likewise.
28175         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28176         emulation can write to stderr on failure.
28177         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28178         * lib/getcwd.c: Document why opendir_safer is unused.
28179         * lib/glob.c: Likewise.
28180         * lib/scandir.c: Likewise.
28181         * lib/openat-proc.c: Likewise, for open_safer.
28182         * modules/backupfile (Depends-on): Add dirent-safer.
28183         * modules/savedir (Depends-on): Likewise.
28184         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28185         * modules/chdir-long (Depends-on): Add openat-safer.
28186
28187         openat-safer: new module
28188         * modules/openat-safer: New file.
28189         * lib/openat-safer.c: Likewise.
28190         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28191         * lib/fcntl-safer.h (openat_safer): Declare.
28192         * lib/fcntl--.h (openat): Override.
28193         * MODULES.html.sh (File descriptor based I/O): Mention it.
28194         * lib/openat.h: Add double-inclusion guards.
28195         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28196         "fcntl--.h", so we can implement openat.
28197         * modules/openat-safer-tests: New test.
28198         * tests/test-openat-safer.c: New file.
28199
28200         dirent-safer: new module
28201         * modules/dirent-safer: New file.
28202         * lib/dirent--.h: Likewise.
28203         * lib/dirent-safer.h: Likewise.
28204         * lib/opendir-safer.c: Likewise.
28205         * m4/dirent-safer.m4: Likewise.
28206         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28207         * modules/dirent-safer-tests: New test.
28208         * tests/test-dirent-safer.c: New file.
28209         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28210
28211         fdopendir: optimize on mingw
28212         * lib/unistd.in.h (_gl_directory_name): New prototype.
28213         * lib/fchdir.c (_gl_directory_name): Implement it.
28214         (fchdir): Use it to simplify implementation.
28215         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28216         fchdir, when available, to avoid calling [f]chdir().
28217
28218         fdopendir: split into its own module
28219         * lib/openat.c (fdopendir): Move...
28220         * lib/fdopendir.c: ...into new file.
28221         * modules/fdopendir: New module.
28222         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28223         * modules/openat (Depends-on): Add fdopendir.
28224         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28225         fdopendir here.
28226         * modules/savedir (Depends-on): Only need fdopendir, not full
28227         openat.
28228         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28229         * lib/openat.h (fdopendir): Drop prototype.
28230         * lib/dirent.in.h (fdopendir): Provide prototype.
28231         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28232         * modules/dirent (Makefile.am): Substitute them.
28233         * MODULES.html.sh (File system functions): Mention it.
28234         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28235         * modules/fdopendir-tests: New file.
28236         * tests/test-fdopendir.c: Likewise.
28237
28238         fchdir: use more consistent macro convention
28239         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28240         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28241         REPLACE_FCHDIR, rather than relying on config.h macros.
28242         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28243         inside a single make-time REPLACE_FCHDIR block, rather than using
28244         the config.h FCHDIR_REPLACEMENT.
28245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28246         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28247         Manage fstat replacement.
28248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28249         REPLACE_FCHDIR.
28250         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28251         (Makefile.am): Substitute REPLACE_FCHDIR.
28252         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28253         FCHDIR_REPLACEMENT.
28254         * lib/dup-safer.c (dup_safer): Likewise.
28255         * lib/dup2.c (rpl_dup2): Likewise.
28256         * lib/dup3.c (rpl_dup3): Likewise.
28257         * lib/open.c (rpl_open): Likewise.
28258
28259         fchdir: simplify error handling, and support dup3
28260         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28261         stdbool, malloc-posix, realloc-posix.
28262         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28263         (ensure_dirs_slot): Return false on allocation failure.
28264         (rpl_dup2): Delete.
28265         (_gl_register_dup): New function.
28266         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28267         (_gl_register_fd): Close fd on allocation failure.
28268         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28269         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28270         prototype.
28271         (rpl_dup2_fchdir): Delete prototype.
28272         * lib/open.c (open): Update caller.
28273         * lib/dup2.c (dup2): Track fchdir metadata.
28274         * lib/dup3.c (dup3): Likewise.
28275         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28277
28278 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28279
28280         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28281         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28282         don't pass arguments to AC_OUTPUT.
28283
28284 2009-09-02  Bruno Haible  <bruno@clisp.org>
28285
28286         * modules/mkdtemp (License): Relicense under LGPLv2+.
28287         Reported by Paolo Bonzini.
28288
28289 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28290
28291         Replace uses of obsolete autoconf macros in Jim's modules.
28292         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28293         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28294         can evoke a warning from autoconf when run with -Wobsolete
28295         enabled.  They were declared obsolete for good reasons (see
28296         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28297         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28298         should not continue using the deprecated macros.
28299         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28300         obsolete Autoconf macros with modern counterparts.
28301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28302         * m4/dos.m4 (gl_AC_DOS): Likewise.
28303         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28305         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28306         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28307         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28308         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28309         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28310         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28311         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28312         Likewise.
28313         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28314         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28315         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28316         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28317         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28318         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28319
28320 2009-09-01  Eric Blake  <ebb9@byu.net>
28321
28322         fchdir: fix off-by-one bug in previous patch
28323         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28324         (_gl_unregister_fd): Delete useless if.
28325
28326 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28327
28328         maint.mk: sort the list of syntax-check rules
28329         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28330         easier to get a sense of progress when the rules are run sequentially
28331         and take a long time.
28332
28333 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28334
28335         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28336         * modules/netinet_in: Likewise.
28337         * modules/sys_file: Likewise.
28338         * modules/sys_ioctl: Likewise.
28339         * modules/sys_select: Likewise.
28340         * modules/sys_socket: Likewise.
28341         * modules/sys_stat: Likewise.
28342         * modules/sys_time: Likewise.
28343         * modules/sys_times: Likewise.
28344         * modules/sys_utsname: Likewise.
28345         * modules/sys_wait: Likewise.
28346
28347 2009-09-01  Jim Meyering  <meyering@redhat.com>
28348
28349         fts: help ensure that return values are not ignored
28350         * lib/fts_.h (__GNUC_PREREQ): Define.
28351         (__attribute_warn_unused_result__): Define.
28352         (fts_children, fts_close, fts_open, fts_read): Declare with
28353         __attribute_warn_unused_result__.
28354
28355         fts: fts_close now fails also when closing a dir file descriptor fails
28356         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28357         and propagate to caller, along with errno.
28358
28359         announce-gen: correct formatting in --help output
28360         * build-aux/announce-gen (usage): Move the one-line description in
28361         --help output "up", to where it belongs, just after Usage:.
28362
28363 2009-08-31  Eric Blake  <ebb9@byu.net>
28364
28365         fchdir: port to mingw
28366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28367         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28368         opened, then use a substitute.
28369         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28370         replacement.
28371         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28372         (_gl_register_fd): No need to check stat if open already filters
28373         all directories.
28374         (fchdir): Fix error condition to match POSIX.
28375         * modules/fchdir (Depends-on): Add sys_stat.
28376         * doc/posix-functions/open.texi (open): Document the limitation.
28377         * modules/fchdir-tests: New file.
28378         * tests/test-fchdir.c: Likewise.
28379
28380         canonicalize: allow cross-testing from cygwin to mingw
28381         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28382         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28383         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28384         Likewise.
28385         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28386         target does not support symlinks.
28387         * tests/test-canonicalize-lgpl.sh: Likewise.
28388
28389         chown: avoid compilation warning on mingw
28390         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28391         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28392         mingw.
28393         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28394         * modules/chown (Depends-on): Add errno.
28395
28396 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28397
28398         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28399         command.
28400
28401 2009-08-31  Jim Meyering  <meyering@redhat.com>
28402
28403         canonicalize: remove useless initialization
28404         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28405         initialization of local, "end".
28406
28407 2009-08-30  Bruno Haible  <bruno@clisp.org>
28408
28409         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28410         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28411         ENOSYS.
28412
28413 2009-08-30  Bruno Haible  <bruno@clisp.org>
28414
28415         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28416         /usr/xpg4/bin/tr when it exists.
28417         * tests/test-pipe-filter-gi1.sh: Likewise.
28418
28419 2009-08-30  Bruno Haible  <bruno@clisp.org>
28420
28421         Work around deficient /usr/bin/id program on Solaris.
28422         * tests/test-file-has-acl.sh (ID): New variable.
28423         * tests/test-set-mode-acl.sh (ID): Likewise.
28424         * tests/test-copy-acl.sh (ID): Likewise.
28425         * tests/test-copy-file.sh (ID): Likewise.
28426
28427 2009-08-30  Bruno Haible  <bruno@clisp.org>
28428
28429         New module 'xstriconveh'.
28430         * lib/xstriconveh.h: New file.
28431         * lib/xstriconveh.c: New file.
28432         * modules/xstriconveh: New file.
28433
28434 2009-08-30  Bruno Haible  <bruno@clisp.org>
28435
28436         Make it easier to use mem_cd_iconveh.
28437         * lib/striconveh.h (iconveh_t): New type.
28438         (iconveh_open, iconveh_close): New declarations.
28439         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28440         with a single 'const iconveh_t *' argument.
28441         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28442         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28443         with a single 'const iconveh_t *' argument.
28444         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28445         * tests/test-striconveh.c (main): Update.
28446         * NEWS: Mention the change.
28447
28448 2009-08-30  Bruno Haible  <bruno@clisp.org>
28449
28450         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28451         problem.
28452
28453 2009-08-30  Bruno Haible  <bruno@clisp.org>
28454
28455         Work around iconv_open problem on Solaris.
28456         * lib/iconv_open-solaris.gperf: New file.
28457         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28458         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28459         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28460         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28461         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28462         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28463
28464 2009-08-29  Jim Meyering  <meyering@redhat.com>
28465
28466         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28467         * top/maint.mk (cvs-check): Remove target; it was just an alias
28468         to the better-named vc-diff-check.
28469         (maintainer-distcheck): Remove rule.  It was used only from
28470         the (alpha/beta/major) target, and all of its commands but one
28471         were coreutils-specific.
28472         (vc-dist): Remove rule.
28473         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28474         Run vc-diff-check, not vc-dist.
28475         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28476
28477 2009-08-27  Bruno Haible  <bruno@clisp.org>
28478
28479         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28480         of 0.
28481
28482 2009-08-27  Bruno Haible  <bruno@clisp.org>
28483
28484         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28485         compilers.
28486         * doc/func.texi: Document the SunPRO C bug.
28487
28488 2009-08-27  Bruno Haible  <bruno@clisp.org>
28489
28490         Fix link error on Solaris.
28491         * tests/test-parse-duration.c (xstrdup): Remove function.
28492
28493 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28494
28495         ignore-value: handle pointer types, too
28496         * lib/ignore-value.h (__attribute__): Remove definition.
28497         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28498         of a more concise and more-often effective "(void) i" statement.
28499         (ignore_ptr): New function to suppress warnings from functions that
28500         return pointers, and to make it explicit that one function doesn't
28501         handle all cases.
28502
28503 2009-08-25  Bruno Haible  <bruno@clisp.org>
28504
28505         dup2: work around a Linux bug.
28506         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28507         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28508         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28509         Reported by Simon Josefsson.
28510
28511 2009-08-25  Jim Meyering  <meyering@redhat.com>
28512
28513         libguestfs uses gnulib
28514         * users.txt: Add libguestfs.
28515
28516 2009-08-24  Eric Blake  <ebb9@byu.net>
28517
28518         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28519         * lib/pipe2.c (includes): Add binary-io.h.
28520         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28521
28522 2009-08-24  Bruno Haible  <bruno@clisp.org>
28523
28524         Tolerate declared but missing accept4 syscall.
28525         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28526         available.
28527         * lib/sys_socket.in.h (accept4): If the function is already present,
28528         override it.
28529         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28530         * modules/accept4 (Makefile.am): Compile accept4.c always.
28531         Reported by Paolo Bonzini and Eric Blake.
28532
28533 2009-08-23  Bruno Haible  <bruno@clisp.org>
28534
28535         New module 'accept4'.
28536         * lib/sys_socket.in.h (accept4): New declaration.
28537         * lib/accept4.c: New file.
28538         * m4/accept4.m4: New file.
28539         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28540         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28541         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28542         HAVE_ACCEPT4.
28543         * modules/accept4: New file.
28544         * doc/glibc-functions/accept4.texi: Mention the new module.
28545
28546 2009-08-24  Jim Meyering  <meyering@redhat.com>
28547
28548         progname: also set global program_invocation_name, when possible
28549         Before this change, a libtool-enabled program that calls glibc's
28550         error function would report the program name as
28551         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28552         * modules/progname (configure.ac): Check for a declaration of
28553         program_invocation_name.
28554         * lib/progname.c:  Include <errno.h>.
28555         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28556         Set program_invocation_name.
28557
28558 2009-08-23  Bruno Haible  <bruno@clisp.org>
28559
28560         * lib/dup3.c: Include <string.h>.
28561
28562 2009-08-23  Bruno Haible  <bruno@clisp.org>
28563
28564         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28565         * lib/pipe2.c (pipe2): Likewise.
28566         Suggested by Eric Blake.
28567
28568 2009-08-23  Bruno Haible  <bruno@clisp.org>
28569
28570         Tolerate declared but missing dup3 syscall.
28571         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28572         * lib/unistd.in.h (dup3): If the function is already present,
28573         override it.
28574         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28575         * modules/dup3 (Makefile.am): Compile dup3.c always.
28576         Reported by Paolo Bonzini.
28577
28578 2009-08-23  Bruno Haible  <bruno@clisp.org>
28579
28580         Tolerate declared but missing pipe2 syscall.
28581         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28582         available.
28583         * lib/unistd.in.h (pipe2): If the function is already present,
28584         override it.
28585         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28586         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28587         Reported by Paolo Bonzini.
28588
28589 2009-08-23  Bruno Haible  <bruno@clisp.org>
28590
28591         * lib/pipe2.c (pipe2): Move #ifs inside function.
28592
28593 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28594
28595         quotearg: document limitations of quote_these_too
28596         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28597         those limitations are created.
28598         * lib/quotearg.h (set_char_quoting): Document that digits and
28599         letters that are special after backslash are not permitted.
28600         (quotearg_char): Cross-reference set_char_quoting documentation.
28601
28602 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28603
28604         quotearg: implement custom_quoting_style
28605         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28606         right_quote fields.
28607         (set_custom_quoting): New public function.
28608         (quotearg_buffer_restyled): Add left_quote and right_quote
28609         arguments, handle them very much like locale quoting, and update
28610         all uses.
28611         (quotearg_n_custom): New public function.
28612         (quotearg_n_custom_mem): New public function.
28613         (quotearg_custom): New public function.
28614         (quotearg_custom_mem): New public function.
28615         * lib/quotearg.h: Prototype and document new public functions.
28616         (enum quoting_style): For escape_quoting_style and
28617         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28618         ignored even though they're otherwise like c_quoting_style.
28619         Add custom_quoting_style member and document with comparison to
28620         clocale_quoting_style.
28621         * tests/test-quotearg.c (custom_quotes): New array.
28622         (custom_results): New array.
28623         (main): Extend to test custom quoting.
28624
28625 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28626
28627         quotearg: fix right quote escaping when it's in quote_these_too
28628         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28629         quote, be sure to prepend only one backslash.
28630         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28631         (main): Test it.
28632
28633 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28634
28635         quotearg-tests: test escaping of embedded locale quotes
28636         * tests/test-quotearg.c (struct result_strings): Add member for
28637         new input.
28638         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28639         (inputs): Add new input.
28640         (results_g): Add expected results.
28641         (flag_results): Likewise.
28642         (locale_results): Likewise.
28643         (compare_strings): Check those.
28644
28645 2009-08-23  Bruno Haible  <bruno@clisp.org>
28646
28647         Tests for module 'dup3'.
28648         * modules/dup3-tests: New file.
28649         * tests/test-dup3.c: New file.
28650
28651         New module 'dup3'.
28652         * lib/unistd.in.h (dup3): New declaration.
28653         * lib/dup3.c: New file.
28654         * m4/dup3.m4: New file.
28655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28656         HAVE_DUP3.
28657         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28658         * modules/dup3: New file.
28659         * doc/glibc-functions/dup3.texi: Mention the new module.
28660
28661 2009-08-23  Bruno Haible  <bruno@clisp.org>
28662
28663         Tweak the dup2 test.
28664         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28665         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28666         the test file is still empty. Fix argument order of lseek.
28667
28668 2009-08-23  Bruno Haible  <bruno@clisp.org>
28669
28670         Avoid test link errors when the modules getopt-gnu, gettext are used.
28671         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28673
28674 2009-08-23  Bruno Haible  <bruno@clisp.org>
28675
28676         Fix getdtablesize() on mingw.
28677         * lib/getdtablesize.c (getdtablesize): Implement differently.
28678         * lib/unistd.in.h (getdtablesize): Improve comment.
28679
28680 2009-08-23  Bruno Haible  <bruno@clisp.org>
28681
28682         New module 'mkostemp'.
28683         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28684         * lib/stdlib.in.h (mksotemp): New declaration.
28685         * lib/mkostemp.c: New file, from glibc with modifications.
28686         * lib/tempname.h (GT_FILE): Remove outdated comment.
28687         (gen_tempname): Add flags argument.
28688         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28689         (__GT_FILE): Map to 1.
28690         (small_open, large_open): Remove macros.
28691         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28692         * lib/mkstemp.c (mkstemp): Update.
28693         * lib/mkdtemp.c (mkdtemp): Likewise.
28694         * m4/mkostemp.m4: New file.
28695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28696         HAVE_MKOSTEMP.
28697         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28698         HAVE_MKOSTEMP.
28699         * modules/mkostemp: New file, based on modules/mkstemp.
28700         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28701         * NEWS: Mention the change.
28702
28703 2009-08-23  Bruno Haible  <bruno@clisp.org>
28704
28705         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28706         Reported by Eric Blake.
28707
28708 2009-08-23  Bruno Haible  <bruno@clisp.org>
28709
28710         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28711         Reported by Eric Blake.
28712
28713 2009-08-23  Bruno Haible  <bruno@clisp.org>
28714
28715         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28716         * modules/pipe2 (Depends-on): Likewise.
28717
28718 2009-08-23  Eric Blake  <ebb9@byu.net>
28719
28720         fcntl-h: add O_TTY_INIT support
28721         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28722         * tests/test-fcntl-h.c (o): Test it.
28723         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28724
28725         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28726         * modules/fcntl: Move <fcntl.h> header replacement...
28727         * modules/fcntl-h: ...to new name, so as not to collide with
28728         like-named function.
28729         * tests/test-fcntl.c: Rename...
28730         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28731         * modules/fcntl-tests: Rename...
28732         * modules/fcntl-h-tests: ...to this.  Update test file name.
28733         * modules/chdir-long (Depends-on): Update clients.
28734         * modules/chdir-safer (Depends-on): Likewise.
28735         * modules/fcntl-safer (Depends-on): Likewise.
28736         * modules/fts (Depends-on): Likewise.
28737         * modules/mkancesdirs (Depends-on): Likewise.
28738         * modules/mkdir-p (Depends-on): Likewise.
28739         * modules/open (Depends-on): Likewise.
28740         * modules/savewd (Depends-on): Likewise.
28741         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28742         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28743
28744 2009-08-22  Bruno Haible  <bruno@clisp.org>
28745
28746         * modules/binary-io (License): Relicense under LGPL.
28747         * modules/pipe2 (License): Likewise.
28748
28749 2009-08-22  Bruno Haible  <bruno@clisp.org>
28750
28751         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28752         return value.
28753         * lib/pipe-filter-gi.c (filter_init): Likewise.
28754         Reported by Eric Blake.
28755
28756 2009-08-22  Bruno Haible  <bruno@clisp.org>
28757
28758         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28759         * modules/pipe (Depends-on): Add pipe2.
28760
28761 2009-08-22  Bruno Haible  <bruno@clisp.org>
28762
28763         Tests for module 'pipe2'.
28764         * modules/pipe2-tests: New file.
28765         * tests/test-pipe2.c: New file.
28766
28767         New module 'pipe2'.
28768         * lib/unistd.in.h (pipe2): New declaration.
28769         * lib/pipe2.c: New file.
28770         * m4/pipe2.m4: New file.
28771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28772         HAVE_PIPE2.
28773         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28774         * modules/pipe2: New file.
28775         * doc/glibc-functions/pipe2.texi: Mention the new module.
28776
28777 2009-08-22  Bruno Haible  <bruno@clisp.org>
28778
28779         Reference some new glibc functions.
28780         * doc/glibc-functions/accept4.texi: New file.
28781         * doc/glibc-functions/dup3.texi: New file.
28782         * doc/glibc-functions/mkostemp.texi: New file.
28783         * doc/glibc-functions/pipe2.texi: New file.
28784         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28785         (Glibc sys/socket.h): Refer to accept4.
28786         (Glibc unistd.h): Refer to dup3, pipe2.
28787         Reported by Eric Blake.
28788
28789 2009-08-22  Jim Meyering  <meyering@redhat.com>
28790             Bruno Haible  <bruno@clisp.org>
28791
28792         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28793         This makes it so packages using automake-1.11's silent-rules option
28794         can print e.g., a single "GEN    configmake.h" line, rather than
28795         the 30+ statements that perform the job.  If you want to see the
28796         actual commands, you can still run "make V=1".
28797         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28798         so that make output is abbreviated when those variables are defined
28799         appropriately.
28800         * modules/argz: Likewise.
28801         * modules/arpa_inet: Likewise.
28802         * modules/byteswap: Likewise.
28803         * modules/configmake: Likewise.
28804         * modules/dirent: Likewise.
28805         * modules/errno: Likewise.
28806         * modules/fcntl: Likewise.
28807         * modules/float: Likewise.
28808         * modules/fnmatch: Likewise.
28809         * modules/getopt-posix: Likewise.
28810         * modules/glob: Likewise.
28811         * modules/iconv_open: Likewise.
28812         * modules/inttypes: Likewise.
28813         * modules/localcharset: Likewise.
28814         * modules/locale: Likewise.
28815         * modules/math: Likewise.
28816         * modules/netdb: Likewise.
28817         * modules/netinet_in: Likewise.
28818         * modules/poll: Likewise.
28819         * modules/posix_spawnp-tests: Likewise.
28820         * modules/sched: Likewise.
28821         * modules/search: Likewise.
28822         * modules/selinux-h: Likewise.
28823         * modules/signal: Likewise.
28824         * modules/spawn: Likewise.
28825         * modules/stdarg: Likewise.
28826         * modules/stdbool: Likewise.
28827         * modules/stddef: Likewise.
28828         * modules/stdint: Likewise.
28829         * modules/stdio: Likewise.
28830         * modules/stdlib: Likewise.
28831         * modules/string: Likewise.
28832         * modules/strings: Likewise.
28833         * modules/sys_file: Likewise.
28834         * modules/sys_ioctl: Likewise.
28835         * modules/sys_select: Likewise.
28836         * modules/sys_socket: Likewise.
28837         * modules/sys_stat: Likewise.
28838         * modules/sys_time: Likewise.
28839         * modules/sys_times: Likewise.
28840         * modules/sys_utsname: Likewise.
28841         * modules/sys_wait: Likewise.
28842         * modules/sysexits: Likewise.
28843         * modules/time: Likewise.
28844         * modules/unistd: Likewise.
28845         * modules/wchar: Likewise.
28846         * modules/wctype: Likewise.
28847
28848 2009-08-22  Jim Meyering  <meyering@redhat.com>
28849
28850         announce-gen: detect write failure
28851         * build-aux/announce-gen: Add Coda at end.
28852         Remove equivalent-but-more-verbose block at top.
28853
28854 2009-08-19  Akim Demaille  <demaille@gostai.com>
28855
28856         bootstrap: --help to stdout.
28857         * bootstrap (usage): Don't send --help to stderr.
28858         Use a here doc instead of a long string.
28859
28860 2009-08-21  Eric Blake  <ebb9@byu.net>
28861
28862         test-popen-safer: split from test-popen
28863         * tests/test-popen.c (main): Move...
28864         * tests/test-popen.h: ...into new file.
28865         * tests/test-popen-safer2.c: New file.
28866         * modules/popen-tests (Files): Add test-popen.h.
28867         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28868         Suggested by Bruno Haible.
28869
28870         test-fcntl-safer: split from test-open
28871         * tests/test-open.c (main): Move...
28872         * tests/test-open.h: ...into new file.
28873         * tests/test-fcntl-safer.c: New file.
28874         * modules/open-tests (Files): Add test-open.h.
28875         * modules/fcntl-safer-tests: New file.
28876         Suggested by Bruno Haible.
28877
28878         test-fopen-safer: split from test-fopen
28879         * tests/test-fopen.c (main): Move...
28880         * tests/test-fopen.h: ...into new file.
28881         * tests/test-fopen-safer.c: New file.
28882         * modules/fopen-tests (Files): Add test-fopen.h.
28883         * modules/fopen-safer-tests: New file.
28884         Suggested by Bruno Haible.
28885
28886 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28887
28888         popen-safer: test O_CLOEXEC at run-time.
28889         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28890
28891 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28892
28893         fcntl: move more flags to the header
28894         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28895         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28896         * lib/fcntl.in.h: Do both things here.
28897
28898 2009-08-21  Jim Meyering  <meyering@redhat.com>
28899
28900         consistently remove $@-t before redirecting to it
28901         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28902         * modules/alloca-opt: Likewise.
28903         * modules/byteswap: Likewise.
28904         * modules/fnmatch: Likewise.
28905         * modules/getopt-posix: Likewise.
28906         * modules/glob: Likewise.
28907         * modules/poll: Likewise.
28908         * modules/posix_spawnp-tests: Likewise.
28909         * modules/sys_socket: Likewise.
28910         * modules/sysexits: Likewise.
28911
28912 2009-08-21  Eric Blake  <ebb9@byu.net>
28913
28914         popen: simplify access to original popen
28915         * lib/popen.c (rpl_popen): No need to worry about popen being a
28916         macro.
28917         Reported by Bruno Haible.
28918
28919 2009-08-20  Eric Blake  <ebb9@byu.net>
28920
28921         build: avoid some compiler warnings
28922         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28923         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28924         type.
28925         (new_exclude_segment, excluded_file_pattern_p)
28926         (excluded_file_name_p): Reduce scope.
28927         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28928         old-style declaration.
28929
28930 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28931
28932         * tests/test-exclude1.sh: Handle Windows EOL.
28933         * tests/test-exclude2.sh: Likewise.
28934         * tests/test-exclude3.sh: Likewise.
28935         * tests/test-exclude4.sh: Likewise.
28936         * tests/test-exclude5.sh: Likewise.
28937         * tests/test-exclude6.sh: Likewise.
28938         * tests/test-exclude7.sh: Likewise.
28939
28940 2009-08-19  Akim Demaille  <demaille@gostai.com>
28941
28942         bootstrap: find sha1sum when named gsha1sum.
28943         * bootstrap (find_tool): New.
28944         ($SHA1SUM): New.
28945         Use it.
28946
28947 2009-08-20  Jim Meyering  <meyering@redhat.com>
28948
28949         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28950         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28951         expression that converts "." in a file name to "\." in the resulting
28952         regexp.  Start with a dummy statement, so that prior shell variable
28953         definitions are expanded portably.  Reported by Simon Josefsson.
28954
28955 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28956
28957         Fix polling for writeability of a screen buffer.
28958         * lib/poll.c: Distinguish input and screen buffers for the
28959         Win32 implementation.
28960         * lib/select.c: Likewise.
28961
28962 2009-08-19  Eric Blake  <ebb9@byu.net>
28963
28964         popen-safer: prevent popen from clobbering std descriptors
28965         * modules/popen-safer: New file.
28966         * lib/popen-safer.c: Likewise.
28967         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28968         * lib/stdio--.h (popen): Provide override.
28969         * lib/stdio-safer.h (popen_safer): Provide declaration.
28970         * tests/test-popen.c (includes): Partially test this.
28971         * modules/popen-safer-tests: New file, for more tests.
28972         * tests/test-popen-safer.c: Likewise.
28973         * MODULES.html.sh (file stream based Input/Output): Mention it.
28974
28975         tests: test some of the *-safer modules
28976         * modules/fopen-safer (Depends-on): Add fopen.
28977         * modules/fcntl-safer (Depends-on): Add fcntl.
28978         * modules/stdlib-safer (Depends-on): Add stdlib.
28979         (configure.ac): Set indicator.
28980         * modules/unistd-safer (configure.ac): Likewise.
28981         * modules/tmpfile-safer (configure.ac): Likewise.
28982         (Depends-on): Add tmpfile.
28983         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28984         active.
28985         * tests/test-fopen.c (includes): Test safer versions when they are
28986         in use.
28987         * tests/test-open.c (includes): Likewise.
28988
28989         popen: fix cygwin 1.5 bug when stdin closed
28990         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28991         * modules/popen: New file.
28992         * modules/popen-tests: Likewise.
28993         * tests/test-popen.c: Likewise.
28994         * m4/popen.m4: Likewise.
28995         * lib/popen.c: Likewise.
28996         * lib/stdio.in.h (popen): New declaration.
28997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28998         * modules/stdio (Makefile.am): Likewise.
28999         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29000
29001 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29002
29003         maint.mk: give full control over update-copyright exclusions
29004         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29005         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29006         (update-copyright): Don't force inclusion of top-level
29007         ChangeLog.  Don't force exclusion of all COPYING files, but make
29008         them the default exclusion instead.
29009
29010 2009-08-16  Bruno Haible  <bruno@clisp.org>
29011
29012         Fix test failures on Solaris 10.
29013         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29014         tests when Solaris iconv() is used.
29015         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29016         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29017         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29018         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29019         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29020
29021 2009-08-16  Bruno Haible  <bruno@clisp.org>
29022
29023         Fix test failures on Solaris 10.
29024         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29025         'tr' program and pass it as first argument.
29026         * tests/test-pipe-filter-gi1.sh: Likewise.
29027         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29028         program as first argument.
29029         * tests/test-pipe-filter-gi1.c (main): Likewise.
29030
29031 2009-08-16  Eric Blake  <ebb9@byu.net>
29032
29033         fpurge: fix previous commits
29034         * modules/fpurge (Makefile.am): Make replacement conditional,
29035         partially reverting 2007-04-29 change; missed in previous
29036         attempt.
29037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29038         is missing.
29039
29040 2009-08-16  Bruno Haible  <bruno@clisp.org>
29041
29042         Clarify fpurge's effect on the file position.
29043         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29044         * tests/test-fpurge.c (main): Make a second pass for checking the file
29045         position.
29046
29047 2009-08-16  Bruno Haible  <bruno@clisp.org>
29048
29049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29050         declaration of fpurge is missing.
29051         * tests/test-fpurge.c (main): Check that the file has not more contents
29052         than expected. Close the file before removing it.
29053
29054 2009-08-15  Eric Blake  <ebb9@byu.net>
29055
29056         fpurge: don't wrap working cygwin implementation
29057         * lib/fpurge.c (fpurge): Fix comment typo.
29058         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29059         1.7 to avoid replacement.
29060         * tests/test-fpurge.c (main): Enhance test.
29061
29062 2009-08-15  Eric Blake  <ebb9@byu.net>
29063         and Jim Meyering  <meyering@redhat.com>
29064
29065         test-update-copyright: skip if perl is insufficient
29066         * tests/test-update-copyright.sh: Failure to run maintainer tool
29067         should not cause testsuite failure on cygwin 1.5.
29068
29069 2009-08-14  Eric Blake  <ebb9@byu.net>
29070
29071         doc: mention more functions added in cygwin 1.7.0
29072         * doc/posix-headers/limits.texi (limits.h): Update for recent
29073         cygwin additions.
29074         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29075         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29076         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29077         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29078         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29079
29080 2009-08-14  Eric Blake  <ebb9@byu.net>
29081
29082         maint.mk: simplify update-copyright rule
29083         * top/maint.mk (update-copyright-local): Delete, and document how
29084         to do it in cfg.mk instead.
29085         (update-copyright-exclude-regexp): Delete, and document how to do
29086         it in .x-update-copyright instead.
29087         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29088         exclude ChangeLog.
29089
29090 2009-08-14  Bruno Haible  <bruno@clisp.org>
29091
29092         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29093
29094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29095
29096         maint.mk: support update-copyright-env
29097         * top/maint.mk (update-copyright-env): Define place-holder.
29098         (update-copyright): Expand $(update-copyright-env) before
29099         invoking update-copyright.
29100
29101 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29102
29103         update-copyright: implement forced reformatting
29104         * build-aux/update-copyright: Implement and document
29105         UPDATE_COPYRIGHT_FORCE.
29106         * tests/test-update-copyright.sh: Test it.
29107
29108 2009-08-14  Eric Blake  <ebb9@byu.net>
29109         and Bruno Haible  <bruno@clisp.org>
29110
29111         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29112         * tests/test-locale.c: Revert previous patch related to NULL.
29113         * tests/test-stdio.c: Likewise.
29114         * tests/test-stdlib.c: Likewise.
29115         * tests/test-string.c: Likewise.
29116         * tests/test-unistd.c: Likewise.
29117         * modules/time-tests (Depends-on): Add verify.
29118         * modules/wchar-tests (Depends-on): Likewise.
29119         * tests/test-time.c: Test for NULL compliance.
29120         * tests/test-wchar.c: Likewise.
29121         * modules/locale (Depends-on): Add stddef.
29122         * modules/stdio (Depends-on): Likewise.
29123         * modules/stdlib (Depends-on): Likewise.
29124         * modules/string (Depends-on): Likewise.
29125         * modules/time (Depends-on): Likewise.
29126         * modules/unistd (Depends-on): Likewise.
29127         * modules/wchar (Depends-on): Likewise.
29128         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29129         * lib/stdlib.in.h (includes): Likewise.
29130         * lib/string.in.h (includes): Likewise.
29131         * lib/time.in.h (includes): Likewise.
29132         * lib/unistd.in.h (includes): Likewise.
29133         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29134         replaced.
29135         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29136         * m4/stddef_h.m4: New file.
29137         * modules/stddef: Likewise.
29138         * lib/stddef.in.h: Likewise.
29139         * modules/stddef-tests: Likewise.
29140         * tests/test-stddef.c: Likewise.
29141         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29142         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29143         * doc/posix-headers/locale.texi (locale.h): Likewise.
29144         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29145         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29146         * doc/posix-headers/string.texi (string.h): Likewise.
29147         * doc/posix-headers/time.texi (time.h): Likewise.
29148         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29149         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29150
29151 2009-08-14  Eric Blake  <ebb9@byu.net>
29152
29153         doc: improve git diff of texinfo files
29154         * .gitattributes: Add rule for *.texi files, with hint on how to
29155         use it.
29156         Copied from m4, and based on a report by Bruno Haible.
29157
29158 2009-08-14  Bruno Haible  <bruno@clisp.org>
29159
29160         Disable multithread support by default on Cygwin 1.5.x for real.
29161         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29162
29163 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29164
29165         update-copyright: much ado about intervals
29166         * build-aux/update-copyright: Implement and document
29167         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29168         of copyright year intervals.
29169         Also, document UPDATE_COPYRIGHT_YEAR.
29170         * tests/test-update-copyright.sh: Test it.
29171
29172         update-copyright: convert 2-digit to 4-digit years
29173         * build-aux/update-copyright: Implement and document.
29174         * tests/test-update-copyright.sh: Update.
29175
29176 2009-08-14  Jim Meyering  <meyering@redhat.com>
29177
29178         test-exclude: avoid coreutils "make check" failure
29179         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29180         just as in test-argmatch.c.
29181
29182 2009-08-13  Eric Blake  <ebb9@byu.net>
29183
29184         test-dup2: fix bad assumption
29185         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29186         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29187
29188         test-version-etc: fix CRLF portability issue
29189         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29190         recognize \r.
29191         * tests/test-argp-version-etc-1.sh: Likewise.
29192
29193         getopt: update client modules
29194         * modules/argp (Depends-on): Use getopt-gnu.
29195         * modules/git-merge-changelog (Depends-on): Likewise.
29196         * modules/long-options (Depends-on): Likewise.
29197         * modules/xstrtol (Depends-on): Likewise.
29198
29199 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29200
29201         * tests/test-version-etc.sh: Don't fail on different
29202         project/version.  Don't fail on CRLF differences.  Rewrite to use
29203         multiple -e instead of multiple sed forks, suggested by Eric Blake
29204         <ebb9@byu.net>.
29205         * tests/test-argp-version-etc-1.sh: Likewise.
29206
29207 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29208
29209         * tests/test-version-etc.sh: Don't fail on different
29210         project/version.
29211
29212 2009-08-12  Bruno Haible  <bruno@clisp.org>
29213
29214         Tests for modules 'getopt-posix', 'getopt-gnu'.
29215         * modules/getopt-posix-tests: New file.
29216         * tests/test-getopt.c: New file.
29217         * tests/test-getopt.h: New file.
29218         * tests/test-getopt_long.h: New file.
29219
29220         New modules 'getopt-posix', 'getopt-gnu'.
29221         * modules/getopt-gnu: New file, renamed from modules/getopt.
29222         * modules/getopt-posix: New file.
29223         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29224         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29225         (gl_GETOPT): Remove macro.
29226         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29227         Disable the test against BSD systems that declare optreset. Test
29228         against mingw bug. Test against lack of support of optional arguments
29229         on many platforms.
29230         * doc/glibc-headers/getopt.texi: Update module name and list of
29231         relevant platforms.
29232         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29233         'getopt-gnu' and more portability problems.
29234         * NEWS: Mention the changes.
29235
29236 2009-08-12  Bruno Haible  <bruno@clisp.org>
29237
29238         Ensure that optarg etc. get declared by <unistd.h>.
29239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29240         AC_USE_SYSTEM_EXTENSIONS.
29241         * modules/getopt (Depends-on): Add 'extensions'.
29242
29243 2009-08-12  Bruno Haible  <bruno@clisp.org>
29244
29245         Avoid test link errors.
29246         * modules/pipe-filter-ii-tests (Makefile.am): Define
29247         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29248         * modules/pipe-filter-gi-tests (Makefile.am): Define
29249         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29251
29252 2009-08-12  Bruno Haible  <bruno@clisp.org>
29253
29254         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29255         gl_GETOPT_SUBSTITUTE before.
29256         (gl_GETOPT): Use it.
29257         * m4/argp.m4 (gl_ARGP): Update.
29258         Reported by Sergey Poznyakoff.
29259
29260         * m4/getopt.m4: Reorder macros.
29261         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29262         (gl_GETOPT_SUBSTITUTE): Remove macro.
29263
29264 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29265
29266         Minor improvement in gitlog-to-changelog
29267
29268         * build-aux/gitlog-to-changelog: New option `--format' makes
29269         output format string configurable.
29270
29271 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29272
29273         Optimize exclude: use hash tables for non-wildcard patterns.
29274
29275         * lib/exclude.c: Include hash.h and mbuiter.h
29276         (struct exclude_pattern, exclude_segment): New data types.
29277         (struct exclude): Rewrite.
29278         (fnmatch_pattern_has_wildcards): New function.
29279         (new_exclude_segment, free_exclude_segment): New functions.
29280         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29281         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29282         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29283         * modules/exclude: Depend on hash and mbuiter.
29284
29285         * modules/exclude-tests: New file.
29286         * tests/test-exclude.c: New file.
29287         * tests/test-exclude1.sh: New file.
29288         * tests/test-exclude2.sh: New file.
29289         * tests/test-exclude3.sh: New file.
29290         * tests/test-exclude4.sh: New file.
29291         * tests/test-exclude5.sh: New file.
29292         * tests/test-exclude6.sh: New file.
29293         * tests/test-exclude7.sh: New file.
29294
29295 2009-08-12  Bruno Haible  <bruno@clisp.org>
29296
29297         Ensure that getopt() gets declared by <unistd.h>.
29298         * lib/unistd.in.h: Conditionally include getopt.h.
29299         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29300         Set GNULIB_UNISTD_H_GETOPT.
29301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29302         GNULIB_UNISTD_H_GETOPT.
29303         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29304
29305 2009-08-12  Bruno Haible  <bruno@clisp.org>
29306
29307         Clarify logic.
29308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29309         gl_replace_getopt instead of GETOPT_H.
29310
29311 2009-08-12  Bruno Haible  <bruno@clisp.org>
29312
29313         * m4/getopt.m4: Add comments.
29314
29315 2009-08-12  Bruno Haible  <bruno@clisp.org>
29316
29317         Disable multithread support by default on Cygwin 1.5.x.
29318         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29319         set gl_use_threads=no if not specified otherwise.
29320
29321 2009-08-11  Bruno Haible  <bruno@clisp.org>
29322
29323         Avoid compilation error on NetBSD 5.0.
29324         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29325         * tests/test-stdio.c: Likewise.
29326         * tests/test-stdlib.c: Likewise.
29327         * tests/test-string.c: Likewise.
29328         * tests/test-unistd.c: Likewise.
29329         Reported by Greg Troxel <gdt@ir.bbn.com>
29330         at <https://savannah.gnu.org/support/?106973>.
29331
29332 2009-08-11  Bruno Haible  <bruno@clisp.org>
29333
29334         * modules/dup2-tests (Depends-on): Remove close.
29335
29336         Undo 2009-07-19 commit.
29337         * modules/acl-tests (Depends-on): Remove close.
29338         * modules/binary-io-tests (Depends-on): Likewise.
29339         * modules/closein-tests (Depends-on): Likewise.
29340         * modules/flock-tests (Depends-on): Likewise.
29341         * modules/fsync-tests (Depends-on): Likewise.
29342         * modules/lseek-tests (Depends-on): Likewise.
29343         * modules/pipe-tests (Depends-on): Likewise.
29344         * modules/posix_spawn-tests (Depends-on): Likewise.
29345         * modules/posix_spawnp-tests (Depends-on): Likewise.
29346         * modules/stat-time-tests (Depends-on): Likewise.
29347         * modules/yesno-tests (Depends-on): Likewise.
29348
29349 2009-08-10  Bruno Haible  <bruno@clisp.org>
29350
29351         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29352
29353 2009-08-10  Bruno Haible  <bruno@clisp.org>
29354
29355         Fix a gcc warning.
29356         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29357
29358 2009-08-10  Bruno Haible  <bruno@clisp.org>
29359
29360         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29361         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29362         not only the first time.
29363         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29364         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29365         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29366         is 1, not only the the first time.
29367
29368 2009-08-10  Bruno Haible  <bruno@clisp.org>
29369
29370         Make it possible to use module 'gethostname' without module 'close'.
29371         * lib/unistd.in.h (close): Evoke a link error only if
29372         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29374         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29375         * modules/unistd (Makefile.am): Substitute
29376         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29377         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29378         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29380         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29381         * modules/sys_ioctl (Makefile.am): Substitute
29382         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29383         * modules/socket (configure.ac): On native Windows, set
29384         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29385         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29386         Reported by Sam Steingold <sds@gnu.org>.
29387
29388 2009-08-10  Bruno Haible  <bruno@clisp.org>
29389
29390         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29391         * modules/ioctl (configure.ac): Likewise.
29392
29393 2009-08-10  Bruno Haible  <bruno@clisp.org>
29394
29395         Avoid collision between gnulib wrapper and libintl wrapper.
29396         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29397         already defined in intl/printf.c.
29398         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29399         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29400
29401 2009-08-09  Bruno Haible  <bruno@clisp.org>
29402
29403         Make <sys/select.h> really self-contained, also on Solaris 10.
29404         * lib/sys_select.in.h: Include <string.h>.
29405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29406         Solaris 10 problem.
29407         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29408         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29409         Reported by Jim Meyering.
29410
29411 2009-08-09  Bruno Haible  <bruno@clisp.org>
29412
29413         Avoid warnings from 'aclocal' that are due to a use of macro name
29414         AM_XGETTEXT_OPTION that is not defined in automake.
29415         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29416         automake.
29417         * modules/error (configure.ac): Likewise.
29418         * modules/propername (configure.ac): Likewise.
29419         * modules/vasprintf (configure.ac): Likewise.
29420         * modules/verror (configure.ac): Likewise.
29421         * modules/xprintf (configure.ac): Likewise.
29422         * modules/xvasprintf (configure.ac): Likewise.
29423
29424 2009-08-08  Bruno Haible  <bruno@clisp.org>
29425
29426         Avoid compilation error in C++ mode.
29427         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29428         Reported by Sam Steingold <sds@gnu.org>.
29429
29430 2009-08-08  Bruno Haible  <bruno@clisp.org>
29431
29432         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29433         for the various Unix platforms.
29434         * doc/posix-headers/limits.texi: Update platforms list regarding
29435         HOST_NAME_MAX.
29436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29437
29438 2009-08-07  Jim Meyering  <meyering@redhat.com>
29439
29440         selinux-at: fix typo in a comment
29441         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29442         Spotted by Paolo Bonzini.
29443
29444         selinux-at: remove redundant m4 code, add documentation
29445         * modules/selinux-at (configure.ac): Remove redundant code.
29446         LIB_SELINUX is already set via the dependent module, selinux-h.
29447         (Include): Add quotes around selinux-at.h.
29448         * lib/selinux-at.h: Add documentation.
29449         Reported by Bruno Haible in
29450         http://marc.info/?l=gnulib-bug&m=124958988300749
29451
29452 2009-08-07  Bruno Haible  <bruno@clisp.org>
29453
29454         Avoid link error on MacOS X 10.3 and 10.4.
29455         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29456         on non-ELF systems.
29457         * lib/argp-pv.c (argp_program_version): Likewise.
29458         Reported by Simon Josefsson.
29459
29460 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29461
29462         * tests/test-version-etc.sh: Use $EXEEXT.
29463
29464 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29465
29466         update-copyright: update documentation to point to maint.mk
29467         * build-aux/update-copyright: Here.
29468
29469 2009-08-06  Jim Meyering  <meyering@redhat.com>
29470
29471         maint.mk: support update-copyright-local
29472         * top/maint.mk (update-copyright-local): Define place-holder.
29473         (update-copyright): Depend on $(update-copyright-local).
29474
29475 2009-08-06  Jim Meyering  <meyering@redhat.com>
29476
29477         selinux-at: new module
29478         Initially written for coreutils, this module will soon be
29479         used by findutils, too.
29480         * MODULES.html.sh [Misc]: Add selinux-at.
29481         * lib/selinux-at.h: New file, from coreutils.
29482         * lib/selinux-at.c: Likewise.
29483         * modules/selinux-at: Likewise.
29484         (License): Change from LGPL to GPL, since it depends
29485         on the GPL'd openat module.
29486
29487         doc: update README
29488         * README: Remove references to cogito.
29489         Remove cvs-repo-updating instructions from 2007.
29490         Don't imply that CVS is better if you have limited disk space.
29491
29492 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29493
29494         update-copyright: support C-style comments
29495         * build-aux/update-copyright: Implement and document.
29496         * tests/test-update-copyright.sh: Test.
29497
29498 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29499
29500         update-copyright: support omitted "(C)"
29501         * build-aux/update-copyright: Implement and document.  Also,
29502         allow variable whitespace before "(C)".
29503         * tests/test-update-copyright.sh: Test.
29504
29505 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29506
29507         update-copyright: don't trip on non-FSF copyright statements
29508         * build-aux/update-copyright: Fix so that the first correctly
29509         formatted FSF copyright statement is recognized no matter what
29510         appears before it.  Update documentation.
29511         * tests/test-update-copyright.sh: Test that.
29512
29513 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29514
29515         update-copyright: clean up code a little
29516         * build-aux/update-copyright: Append "_re" to the name of any
29517         variable holding a regular expression.
29518         Replace "old" and "new" with "stmt" in variable names.
29519         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29520         handled correctly.
29521         Format code more consistently.
29522
29523 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29524
29525         update-copyright-tests: improve portability
29526         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29527         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29528
29529 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29530
29531         update-copyright: support @copyright{} and &copy;
29532         * build-aux/update-copyright: Implement and document.
29533         * tests/test-update-copyright.sh: Test.
29534
29535 2009-08-04  Jim Meyering  <meyering@redhat.com>
29536
29537         update-copyright-tests: correctly test EOL=\r\n handling
29538         * tests/test-update-copyright.sh: Put \r at the end of some lines
29539         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29540
29541         maint.mk: make update-copyright exclusion list more configurable
29542         * top/maint.mk (update-copyright): Default to excluding COPYING,
29543         but allow an override, in case someone does want to update that file.
29544
29545         maint.mk: don't update copyright date in COPYING
29546         * top/maint.mk (update-copyright): Exclude COPYING.
29547
29548         maint.mk: add a copyright-updating rule
29549         * top/maint.mk (update-copyright): New rule.
29550         Derived from coreutils/Makefile.am.
29551
29552         update-copyright: rename some variables
29553         * build-aux/update-copyright: Rename a few variables for clarity.
29554         Tweak syntax.  List Joel E. Denny as coauthor.
29555
29556 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29557
29558         update-copyright: fix bug for 2-digit last year and add tests
29559         * build-aux/update-copyright: Fix bug.
29560         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29561         specified.
29562         * modules/update-copyright-tests: New
29563         * tests/test-update-copyright.sh: New.
29564
29565 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29566
29567         update-copyright: handle leading tabs in line prefix
29568         * build-aux/update-copyright: Count leading tabs as 8 spaces
29569         when computing margin.  This helps with the formatting of
29570         ChangeLogs, for example.
29571         Fix documentation a little.
29572
29573 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29574
29575         update-copyright: support EOL=\r\n
29576         * build-aux/update-copyright: Implement that.
29577
29578 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29579
29580         update-copyright: automatically format copyright statements
29581         * build-aux/update-copyright: Implement that.
29582         Also, be a little more predictable and safer by always failing
29583         when the full copyright format is not perfectly recognized as an
29584         unbroken whole.  Discussed at
29585         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29586         Rewrite documentation.
29587
29588 2009-08-03  Bruno Haible  <bruno@clisp.org>
29589
29590         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29591
29592 2009-08-02  Bruno Haible  <bruno@clisp.org>
29593
29594         Tests for module 'uname'.
29595         * modules/uname-tests: New file.
29596         * tests/test-uname.c: New file.
29597
29598         New module 'uname'.
29599         * lib/uname.c: New file.
29600         * m4/uname.m4: New file.
29601         * modules/uname: New file.
29602         * doc/posix-functions/uname.texi: Mention the new module.
29603
29604 2009-08-02  Bruno Haible  <bruno@clisp.org>
29605
29606         Tests for module 'sys_utsname'.
29607         * modules/sys_utsname-tests: New file.
29608         * tests/test-sys_utsname.c: New file.
29609
29610         New module 'sys_utsname'.
29611         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29612         * m4/sys_utsname_h.m4: New file.
29613         * modules/sys_utsname: New file.
29614         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29615
29616 2009-08-02  Bruno Haible  <bruno@clisp.org>
29617
29618         Implicitly initialize the sockets library.
29619         * lib/gethostname.c: Include sockets.h.
29620         (rpl_gethostname): Invoke gl_sockets_startup.
29621         * lib/socket.c: Include sockets.h.
29622         (rpl_socket): Invoke gl_sockets_startup.
29623         * modules/gethostname (Depends-on): Add sockets.
29624         * modules/socket (Depends-on): Likewise.
29625         * tests/test-poll.c: Don't include sockets.h.
29626         (main): Don't invoke gl_sockets_startup.
29627         * tests/test-select.c: Don't include sockets.h.
29628         (main): Don't invoke gl_sockets_startup.
29629
29630 2009-08-02  Bruno Haible  <bruno@clisp.org>
29631
29632         Allow multiple calls to gl_sockets_startup.
29633         * lib/sockets.c (initialized_sockets_version): New variable.
29634         (gl_sockets_startup): Do nothing if already called for this or a higher
29635         version.
29636         (gl_sockets_cleanup): Reset initialized_sockets_version.
29637
29638 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29639
29640         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29641         different project/version.
29642
29643 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29644             Bruno Haible  <bruno@clisp.org>
29645
29646         Tests for module 'pipe-filter-gi'.
29647         * modules/pipe-filter-gi-tests: New file.
29648         * tests/test-pipe-filter-gi1.sh: New file.
29649         * tests/test-pipe-filter-gi1.c: New file.
29650         * tests/test-pipe-filter-gi2.sh: New file.
29651         * tests/test-pipe-filter-gi2-main.c: New file.
29652         * tests/test-pipe-filter-gi2-child.c: New file.
29653
29654         New module 'pipe-filter-gi'.
29655         * lib/pipe-filter-gi.c: New file.
29656         * modules/pipe-filter-gi: New file.
29657
29658 2009-08-02  Bruno Haible  <bruno@clisp.org>
29659             Paolo Bonzini  <bonzini@gnu.org>
29660
29661         Tests for module 'pipe-filter-ii'.
29662         * modules/pipe-filter-ii-tests: New file.
29663         * tests/test-pipe-filter-ii1.sh: New file.
29664         * tests/test-pipe-filter-ii1.c: New file.
29665         * tests/test-pipe-filter-ii2.sh: New file.
29666         * tests/test-pipe-filter-ii2-main.c: New file.
29667         * tests/test-pipe-filter-ii2-child.c: New file.
29668
29669         New module 'pipe-filter-ii'.
29670         * lib/pipe-filter.h: New file.
29671         * lib/pipe-filter-ii.c: New file.
29672         * lib/pipe-filter-aux.h: New file.
29673         * modules/pipe-filter-ii: New file.
29674
29675 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29676
29677         * lib/gc-libgcrypt.c: Change copyright to FSF.
29678         * lib/gc-gnulib.c: Likewise.
29679
29680 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29681
29682         * lib/gethostname.c: Include limits.h.
29683
29684 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29685             Bruno Haible  <bruno@clisp.org>
29686
29687         Ensure HOST_NAME_MAX as part of the gethostname module.
29688         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29689         define also HOST_NAME_MAX.
29690         * tests/test-gethostname.c: Include <limits.h>.
29691         (main): Check also HOST_NAME_MAX.
29692         * doc/posix-headers/limits.texi: Document the mingw problem.
29693
29694 2009-08-02  Bruno Haible  <bruno@clisp.org>
29695
29696         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29697         Add comments.
29698
29699 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29700
29701         * lib/gethostname.c: Add Windows wrapper.
29702         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29703         * modules/gethostname: Depend on sys_socket & errno, for also
29704         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29705         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29706
29707 2009-07-31  Jim Meyering  <meyering@redhat.com>
29708
29709         getloadavg: fix symbol name in comment
29710         * lib/getloadavg.c: Correct a typo I introduced when adding
29711         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29712         Matt Kraai spotted the problem.
29713
29714 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29715
29716         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29717         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29718         code also if ! defined N_NAME_POINTER.
29719         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29720         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29721         but the n_name member is a 12-byte array.
29722
29723 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29724
29725         update-copyright: generalize comment handling
29726         * build-aux/update-copyright: Handle copyright statements
29727         within more comment styles.
29728         Document usage.
29729         Report any file with an external copyright holder or parse failure.
29730
29731 2009-07-29  Jim Meyering  <meyering@redhat.com>
29732
29733         mktime: correct setting of REPLACE_MKTIME
29734         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29735
29736         update-copyright: new module
29737         * modules/update-copyright: New file.
29738         * build-aux/update-copyright: New file.
29739         * MODULES.html.sh (maint+release support): Add update-copyright.
29740
29741 2009-07-27  Bruno Haible  <bruno@clisp.org>
29742
29743         Fix compilation error when <ctime> is used and mktime is replaced.
29744         * lib/time.in.h (mktime): New declaration.
29745         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29746         REPLACE_MKTIME instead of defining mktime in config.h.
29747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29748         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29749         Reported by Ross McFarland <rwmcfa1@neces.com>.
29750
29751 2009-07-27  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29754         Reported by Matt Kraai <mkraai@beckman.com>.
29755
29756 2009-07-25  Jim Meyering  <meyering@redhat.com>
29757
29758         maint.mk: avoid warnings about missing files
29759         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29760         diagnostic when .prev-version does not exist.
29761         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29762         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29763         nonexistent cfg.mk.
29764         Suggestions from Simon Josefsson.
29765
29766 2009-07-25  Bruno Haible  <bruno@clisp.org>
29767
29768         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29769         defined as macros. Needed on QNX 6.4.1.
29770         Reported by Matt Kraai <mkraai@beckman.com>.
29771
29772 2009-07-23  Jim Meyering  <meyering@redhat.com>
29773
29774         maint.mk: invoke "make dist" with a working value of XZ_OPT
29775         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29776
29777 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29778
29779         Make fseeko.c compile on QNX.
29780         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29781
29782 2009-07-22  Peter Simons  <simons@cryp.to>
29783
29784         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29785         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29786         * lib/md4.h: Likewise.
29787         * lib/md5.h: Likewise.
29788         * lib/sha1.h: Likewise.
29789         * lib/sha256.h: Likewise.
29790         * lib/sha512.h: Likewise.
29791
29792         tests-sha1: don't assign literal string to 'char *' variable
29793         * tests/test-sha1.c (main): Declare locals with "const" to match
29794         attributes of the right hand side.
29795
29796 2009-07-21  Eric Blake  <ebb9@byu.net>
29797
29798         dup2: fix more mingw problems
29799         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29800         fd to itself.
29801         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29802         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29803         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29804         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29805         care of mingw bugs.
29806
29807 2009-07-21  Jim Meyering  <meyering@redhat.com>
29808
29809         vc-list-files: avoid failure when /bin/sh is dash
29810         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29811         On some Debian based systems, /bin/sh is a symlink to dash, and running
29812         this command would omit the "/" following each 'tests' prefix:
29813           dash -x build-aux/vc-list-files -C . tests
29814         That is because bash and dash work differently:
29815           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29816           bash ok
29817           dash odd
29818
29819 2009-07-21  Eric Blake  <ebb9@byu.net>
29820
29821         dup2-tests: test previous patch
29822         * modules/dup2-tests: New file.
29823         * tests/test-dup2.c: Likewise.
29824         * tests/test-open.c (main): Avoid unspecified behavior.
29825         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29826         test.
29827
29828         dup2: work around mingw and cygwin 1.5 bug
29829         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29831         * modules/unistd (Makefile.am): Substitute it.
29832         * lib/unistd.in.h (dup2): Declare the replacement.
29833         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29834         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29835         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29836         * modules/execute (Depends-on): Add dup2.
29837         * modules/fseterr (Depends-on): Likewise.
29838         * modules/pipe (Depends-on): Likewise.
29839         * modules/posix_spawn-internal (Depends-on): Likewise.
29840
29841 2009-07-21  Bruno Haible  <bruno@clisp.org>
29842
29843         * modules/.gitattributes: New file.
29844
29845 2009-07-20  Bruno Haible  <bruno@clisp.org>
29846
29847         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29848         (main): Use it.
29849
29850 2009-07-20  Eric Blake  <ebb9@byu.net>
29851
29852         test-pipe: make a bit more robust.
29853         * tests/test-pipe.c (myerr): Allow error messages regardless of
29854         what we do to stderr.
29855         (test_pipe): Rearrange to avoid deadlock.
29856         (child_main): Try a larger read, to ensure we avoided deadlock.
29857         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29858         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29859         if misused.
29860
29861 2009-07-19  Jim Meyering  <meyering@redhat.com>
29862
29863         fts: avoid false-positive cycle-detection
29864         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29865         for each new command line argument.
29866
29867 2009-07-19  Bruno Haible  <bruno@clisp.org>
29868
29869         Fix build error on mingw with the modules sys_select and unistd.
29870         * modules/acl-tests (Depends-on): Add close.
29871         * modules/binary-io-tests (Depends-on): Likewise.
29872         * modules/closein-tests (Depends-on): Likewise.
29873         * modules/flock-tests (Depends-on): Likewise.
29874         * modules/fsync-tests (Depends-on): Likewise.
29875         * modules/lseek-tests (Depends-on): Likewise.
29876         * modules/pipe-tests (Depends-on): Likewise.
29877         * modules/posix_spawn-tests (Depends-on): Likewise.
29878         * modules/posix_spawnp-tests (Depends-on): Likewise.
29879         * modules/stat-time-tests (Depends-on): Likewise.
29880         * modules/yesno-tests (Depends-on): Likewise.
29881
29882 2009-07-19  Bruno Haible  <bruno@clisp.org>
29883
29884         Unify conditionals.
29885         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29886         macros, not at the compiler macros.
29887         * lib/pipe.c: Likewise.
29888         * lib/execute.c: Likewise.
29889         * lib/spawni.c: Likewise.
29890
29891 2009-07-19  Bruno Haible  <bruno@clisp.org>
29892
29893         Fix handling of closed stdin/stdout/stderr on mingw.
29894         * lib/w32spawn.h: Include unistd.h.
29895         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29896         file descriptor with O_NOINHERIT flag.
29897         (fd_safer_noinherit): New function, based on fd-safer.c.
29898         (dup_safer_noinherit): New function, based on dup-safer.c.
29899         (undup_safer_noinherit): New function.
29900         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29901         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29902         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29903         instead of fd_safer.
29904         * tests/test-pipe.c: Include <windows.h>.
29905         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29906         result.
29907
29908         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29909         from main.
29910         (test_pipe): Pass an extra argument for disambiguation.
29911         (main): Invoke parent_main or child_main.
29912
29913         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29914         consistently.
29915
29916 2009-07-18  Eric Blake  <ebb9@byu.net>
29917
29918         test-pipe: fix mingw build
29919         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29920
29921 2009-07-18  Bruno Haible  <bruno@clisp.org>
29922
29923         * modules/pipe-tests (Makefile.am): Fix typo.
29924
29925 2009-07-18  Eric Blake  <ebb9@byu.net>
29926
29927         error: fix mingw build
29928         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29929         Reported by Bruno Haible.
29930
29931         error: avoid undefined use of stdout
29932         * lib/error.c (error, error_at_line): Check that fd 1 is open
29933         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29934         is handling faults and the close_stdout module wants to report the
29935         detection of closed stdout as an error.
29936
29937 2009-07-17  Eric Blake  <ebb9@byu.net>
29938
29939         pipe: be robust in face of closed fds
29940         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29941         should cause child to misbehave.
29942         * modules/pipe-tests: New module.
29943         * tests/test-pipe.c: New file.
29944         * tests/test-pipe.sh: New file.
29945         Reported by Akim Demaille.
29946
29947 2009-07-14  Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29950         Reported by anonymous kc.
29951
29952 2009-07-07  Jim Meyering  <meyering@redhat.com>
29953
29954         maint.mk: don't look for translatable strings in *.m4 or *.mk
29955         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29956         when searching for translatable strings.
29957
29958 2009-07-05  Jim Meyering  <meyering@redhat.com>
29959
29960         remove superfluous parentheses in STREQ definition
29961         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29962         * lib/getugroups.c (STREQ): Likewise.
29963         * lib/fnmatch.c (STREQ): Likewise.
29964         Spotted by Bruno Haible.
29965
29966 2009-07-04  Jim Meyering  <meyering@redhat.com>
29967
29968         argv-iter: new module
29969         * MODULES.html.sh: Add argv-iter.
29970         * lib/argv-iter.c, lib/argv-iter.h: New files.
29971         * modules/argv-iter: New file.
29972         * modules/argv-iter-tests: New file.
29973         * tests/test-argv-iter.c: Test it.
29974
29975 2009-07-04  Bruno Haible  <bruno@clisp.org>
29976
29977         Fix assertion.
29978         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29979         contains more exact copies of a given entry than file2, leave the extra
29980         copies unpaired rather than aborting.
29981         Reported by Eric Blake.
29982
29983 2009-07-02  Bruno Haible  <bruno@clisp.org>
29984
29985         Speedup git-merge-changelog for git cherry-pick.
29986         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29987         (entries_mapping_get): New function, extracted from compute_mapping.
29988         (entries_mapping_reverse_get): New function.
29989         (compute_mapping): Add a 'full' argument. Return the result in a
29990         'struct entries_mapping'.
29991         (main): Update. Access the mappings through entries_mapping_get.
29992         Reported by Eric Blake.
29993
29994 2009-07-02  Bruno Haible  <bruno@clisp.org>
29995
29996         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29997         best_i.
29998
29999 2009-07-02  Bruno Haible  <bruno@clisp.org>
30000
30001         Speed up approximate search for matching ChangeLog entries.
30002         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30003         argument. Call fstrcmp_bounded instead of fstrcmp.
30004         (compute_mapping, try_split_merged_entry, main): Update callers.
30005
30006 2009-07-02  Bruno Haible  <bruno@clisp.org>
30007
30008         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30009
30010 2009-06-30  Bruno Haible  <bruno@clisp.org>
30011
30012         Reduce the number of uc_is_cased calls.
30013         * lib/unicase.h (casing_suffix_context_t): Add
30014         'first_char_except_ignorable' field.
30015         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30016         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30017         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30018         Update initializer.
30019         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30020         case-ignorable characters.
30021         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30022         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30023         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30024         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30025         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30026
30027 2009-06-30  Bruno Haible  <bruno@clisp.org>
30028
30029         Tests for module 'unicase/ignorable'.
30030         * modules/unicase/ignorable-tests: New file.
30031         * tests/unicase/test-ignorable.c: New file, generated by
30032         gen-uni-tables.
30033
30034         Tests for module 'unicase/cased'.
30035         * modules/unicase/cased-tests: New file.
30036         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30037         * tests/unicase/test-predicate-part1.h: New file, derived from
30038         tests/unictype/test-predicate-part1.h.
30039         * tests/unicase/test-predicate-part2.h: New file, same as
30040         tests/unictype/test-predicate-part2.h.
30041
30042         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30043         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30044         (output_casing_properties): New function.
30045         (main): Call it.
30046         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30047         * lib/unicase/cased.c: Include unictype/bitmap.h.
30048         (uc_is_cased): Define through a bitmap lookup.
30049         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30050         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30051         (uc_is_case_ignorable): Define through a bitmap lookup.
30052         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30053         lib/unictype/bitmap.h.
30054         (Depends-on): Add inline. Clean up.
30055         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30056         lib/unictype/bitmap.h.
30057         (Depends-on): Add inline. Clean up.
30058         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30059         recognition.
30060         * tests/unicase/test-u16-tolower.c (main): Likewise.
30061         * tests/unicase/test-u32-tolower.c (main): Likewise.
30062
30063 2009-06-30  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30066         * lib/unicase/u16-casemap.c: Likewise.
30067         * lib/unicase/u32-casemap.c: Likewise.
30068
30069 2009-06-29  Bruno Haible  <bruno@clisp.org>
30070
30071         Define u32_casefold as a wrapper around u32_ct_casefold.
30072         * lib/unicase/u32-casefold.c: Update.
30073         * modules/unicase/u32-casefold (Depends-on): Add
30074         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30075         unicase/empty-suffix-context. Clean up.
30076
30077         Define u16_casefold as a wrapper around u16_ct_casefold.
30078         * lib/unicase/u16-casefold.c: Update.
30079         * modules/unicase/u16-casefold (Depends-on): Add
30080         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30081         unicase/empty-suffix-context. Clean up.
30082
30083         Define u8_casefold as a wrapper around u8_ct_casefold.
30084         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30085         * lib/unicase/u8-casefold.c: Update.
30086         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30087         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30088
30089         Define u32_totitle as a wrapper around u32_ct_totitle.
30090         * lib/unicase/u32-totitle.c: Update.
30091         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30092         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30093
30094         Define u16_totitle as a wrapper around u16_ct_totitle.
30095         * lib/unicase/u16-totitle.c: Update.
30096         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30097         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30098
30099         Define u8_totitle as a wrapper around u8_ct_totitle.
30100         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30101         functions.
30102         (FUNC): Delegate to U_CT_TOTITLE.
30103         * lib/unicase/u8-totitle.c: Update.
30104         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30105         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30106
30107         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30108         invocation.
30109         * modules/unicase/u32-tolower (Depends-on): Add
30110         unicase/empty-prefix-context, unicase/empty-suffix-context.
30111
30112         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30113         invocation.
30114         * modules/unicase/u16-tolower (Depends-on): Add
30115         unicase/empty-prefix-context, unicase/empty-suffix-context.
30116
30117         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30118         * modules/unicase/u8-tolower (Depends-on): Add
30119         unicase/empty-prefix-context, unicase/empty-suffix-context.
30120
30121         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30122         invocation.
30123         * modules/unicase/u32-toupper (Depends-on): Add
30124         unicase/empty-prefix-context, unicase/empty-suffix-context.
30125
30126         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30127         invocation.
30128         * modules/unicase/u16-toupper (Depends-on): Add
30129         unicase/empty-prefix-context, unicase/empty-suffix-context.
30130
30131         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30132         * modules/unicase/u8-toupper (Depends-on): Add
30133         unicase/empty-prefix-context, unicase/empty-suffix-context.
30134
30135         New module 'unicase/u32-ct-casefold'.
30136         * lib/unicase/u32-ct-casefold.c: New file.
30137         * modules/unicase/u32-ct-casefold: New file.
30138
30139         New module 'unicase/u16-ct-casefold'.
30140         * lib/unicase/u16-ct-casefold.c: New file.
30141         * modules/unicase/u16-ct-casefold: New file.
30142
30143         New module 'unicase/u8-ct-casefold'.
30144         * lib/unicase/u8-ct-casefold.c: New file.
30145         * lib/unicase/u-ct-casefold.h: New file, derived from
30146         lib/unicase/u-casefold.h.
30147         * modules/unicase/u8-ct-casefold: New file.
30148
30149         New module 'unicase/u32-ct-totitle'.
30150         * lib/unicase/u32-ct-totitle.c: New file.
30151         * modules/unicase/u32-ct-totitle: New file.
30152
30153         New module 'unicase/u16-ct-totitle'.
30154         * lib/unicase/u16-ct-totitle.c: New file.
30155         * modules/unicase/u16-ct-totitle: New file.
30156
30157         New module 'unicase/u8-ct-totitle'.
30158         * lib/unicase/u8-ct-totitle.c: New file.
30159         * lib/unicase/u-ct-totitle.h: New file, derived from
30160         lib/unicase/u-totitle.h.
30161         * modules/unicase/u8-ct-totitle: New file.
30162
30163         New module 'unicase/u32-ct-tolower'.
30164         * lib/unicase/u32-ct-tolower.c: New file.
30165         * modules/unicase/u32-ct-tolower: New file.
30166
30167         New module 'unicase/u16-ct-tolower'.
30168         * lib/unicase/u16-ct-tolower.c: New file.
30169         * modules/unicase/u16-ct-tolower: New file.
30170
30171         New module 'unicase/u8-ct-tolower'.
30172         * lib/unicase/u8-ct-tolower.c: New file.
30173         * modules/unicase/u8-ct-tolower: New file.
30174
30175         New module 'unicase/u32-ct-toupper'.
30176         * lib/unicase/u32-ct-toupper.c: New file.
30177         * modules/unicase/u32-ct-toupper: New file.
30178
30179         New module 'unicase/u16-ct-toupper'.
30180         * lib/unicase/u16-ct-toupper.c: New file.
30181         * modules/unicase/u16-ct-toupper: New file.
30182
30183         New module 'unicase/u8-ct-toupper'.
30184         * lib/unicase/u8-ct-toupper.c: New file.
30185         * modules/unicase/u8-ct-toupper: New file.
30186
30187         Add context arguments to u*_casemap functions.
30188         * lib/unicase/unicasemap.h: Include unicase.h.
30189         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30190         suffix_context arguments.
30191         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30192         functions.
30193         (FUNC): Add prefix_context and suffix_context arguments. Use
30194         uc_is_cased and uc_is_case_ignorable.
30195         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30196         * lib/unicase/u16-casemap.c: Likewise.
30197         * lib/unicase/u32-casemap.c: Likewise.
30198         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30199         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30200         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30201         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30202         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30203         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30204
30205         New module 'unicase/u32-suffix-context'.
30206         * lib/unicase/u32-suffix-context.c: New file.
30207         * modules/unicase/u32-suffix-context: New file.
30208
30209         New module 'unicase/u16-suffix-context'.
30210         * lib/unicase/u16-suffix-context.c: New file.
30211         * modules/unicase/u16-suffix-context: New file.
30212
30213         New module 'unicase/u8-suffix-context'.
30214         * lib/unicase/u8-suffix-context.c: New file.
30215         * lib/unicase/u-suffix-context.h: New file.
30216         * modules/unicase/u8-suffix-context: New file.
30217
30218         New module 'unicase/empty-suffix-context'.
30219         * lib/unicase/empty-suffix-context.c: New file.
30220         * modules/unicase/empty-suffix-context: New file.
30221
30222         New module 'unicase/u32-prefix-context'.
30223         * lib/unicase/u32-prefix-context.c: New file.
30224         * modules/unicase/u32-prefix-context: New file.
30225
30226         New module 'unicase/u16-prefix-context'.
30227         * lib/unicase/u16-prefix-context.c: New file.
30228         * modules/unicase/u16-prefix-context: New file.
30229
30230         New module 'unicase/u8-prefix-context'.
30231         * lib/unicase/u8-prefix-context.c: New file.
30232         * lib/unicase/u-prefix-context.h: New file.
30233         * lib/unicase/context.h: New file.
30234         * modules/unicase/u8-prefix-context: New file.
30235
30236         New module 'unicase/empty-prefix-context'.
30237         * lib/unicase/empty-prefix-context.c: New file.
30238         * modules/unicase/empty-prefix-context: New file.
30239
30240         New module 'unicase/ignorable'.
30241         * lib/unicase/ignorable.c: New file.
30242         * modules/unicase/ignorable: New file.
30243
30244         New module 'unicase/cased'.
30245         * lib/unicase/caseprop.h: New file.
30246         * lib/unicase/cased.c: New file.
30247         * modules/unicase/cased: New file.
30248
30249         New functions for case mapping of substrings.
30250         * lib/unicase.h (casing_prefix_context_t): New type.
30251         (unicase_empty_prefix_context): New variable.
30252         (u8_casing_prefix_context, u16_casing_prefix_context,
30253         u32_casing_prefix_context, u8_casing_prefixes_context,
30254         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30255         declarations.
30256         (casing_suffix_context_t): New type.
30257         (unicase_empty_suffix_context): New variable.
30258         (u8_casing_suffix_context, u16_casing_suffix_context,
30259         u32_casing_suffix_context, u8_casing_suffixes_context,
30260         u16_casing_suffixes_context, u32_casing_suffixes_context,
30261         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30262         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30263         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30264         declarations.
30265
30266 2009-06-28  Jim Meyering  <meyering@redhat.com>
30267
30268         boostrap: indent only with spaces
30269         * build-aux/bootstrap: Indent only with spaces, never TABs.
30270
30271         bootstrap: split long lines
30272         * build-aux/bootstrap: Keep line length < 80.
30273
30274         bootstrap: sync from coreutils
30275         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30276         just as autoreconf does.  Verify a list of prerequisite
30277         package-name,version-number pairs if defined in bootstrap.conf.
30278         Refer to README-prereq, if prerequisites are not satisfied.
30279
30280 2009-06-27  Eric Blake  <ebb9@byu.net>
30281
30282         tests: add test for bogus NULL definition
30283         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30284         * tests/test-stdlib.c: Likewise.
30285         * tests/test-string.c: Likewise.
30286         * tests/test-locale.c: Likewise.
30287         * tests/test-unistd.c: Likewise.
30288         * modules/stdio-tests (Depends-on): Add verify.
30289         * modules/stdlib-tests (Depends-on): Likewise.
30290         * modules/string-tests (Depends-on): Likewise.
30291         * modules/locale-tests (Depends-on): Likewise.
30292         * modules/unistd-tests (Depends-on): Likewise.
30293
30294 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30295
30296         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30297         self-explaining comment.
30298         * m4/selinux-selinux-h: Update serial.
30299         (gl_LIBSELINUX): New macro, adding a warning for missing development
30300         packages to code extracted from...
30301         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30302         Add warning for missing development packages here, too.
30303
30304 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30305
30306         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30307
30308 2009-06-25  Eric Blake  <ebb9@byu.net>
30309
30310         version-etc: fix regression
30311         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30312         gcc.
30313         (version_etc): Use it, to catch bugs with trailing NULL.
30314         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30315         (version_etc_va): Fix logic bug.
30316         * modules/version-etc-tests: Add test.
30317         * tests/test-version-etc.c: New file.
30318         * tests/test-version-etc.sh: Likewise.
30319
30320 2009-06-25  Sam Steingold  <sds@gnu.org>
30321
30322         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30323         mbtowc declaration.
30324
30325 2009-06-25  Eric Blake  <ebb9@byu.net>
30326
30327         fpurge: migrate into <stdio.h>
30328         * lib/fpurge.h: Delete...
30329         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30330         * lib/fpurge.c (fpurge): Change declaring header.
30331         * modules/fpurge (Files): Drop deleted file.
30332         (Depends-on): Add stdio.
30333         (configure.ac): Set witness.
30334         * modules/stdio (Makefile.am): Support fpurge macros.
30335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30336         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30337         * lib/fflush.c: Update client.
30338         * tests/test-fpurge.c: Likewise.
30339         * NEWS: Mention the change.
30340
30341 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30342
30343         * lib/argp-version-etc.c (program_authors): Add const
30344         qualifier.
30345         * lib/version-etc.c: Fix typos in the comments.
30346         * modules/argp-version-etc: Depends on version-etc.
30347
30348 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30349
30350         argp-version-etc: new module.
30351
30352         * lib/argp-version-etc.c: New file.
30353         * lib/argp-version-etc.h: New file.
30354         * modules/argp-version-etc: New file.
30355         * modules/argp-version-etc-tests: New file.
30356         * tests/test-argp-version-etc.c: New test.
30357         * tests/test-argp-version-etc-1.sh: New test.
30358
30359 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30360
30361         Provide additional interfaces and documentation for version-etc
30362         module.
30363
30364         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30365         interfaces.
30366         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30367         prototypes.
30368
30369 2009-06-24  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30372         HAVE_LIB${NAME} macro.
30373         Reported by Sam Steingold <sds@gnu.org>.
30374
30375 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30376
30377         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30378         needed.
30379
30380 2009-06-21  Bruno Haible  <bruno@clisp.org>
30381
30382         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30383         work.
30384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30385         together with LIB${NAME}, LTLIB${NAME}.
30386         Reported by Sam Steingold <sds@gnu.org>.
30387
30388 2009-06-20  Jim Meyering  <meyering@redhat.com>
30389
30390         tests: make sc_require_test_exit_idiom more generic
30391         * top/maint.mk (Exit_witness_file): New overridable variable.
30392         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30393         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30394
30395 2009-06-19  Jim Meyering  <meyering@redhat.com>
30396
30397         hash: reverse order of src/dst parameters in an internal interface
30398         * lib/hash.c (transfer_entries): Reverse order of parameters to
30399         put DST before SRC.  Adjust callers.
30400
30401         tests: test-hash: avoid wholesale duplication
30402         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30403         Instead, use a loop and add a single conditional.
30404
30405         tests: test-hash: allow seed selection via a command line argument
30406         * tests/test-hash.c (get_seed): New function.
30407         (main): Use it.
30408
30409 2009-06-19  Eric Blake  <ebb9@byu.net>
30410
30411         hash: avoid memory leak on allocation failure
30412         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30413         failure.  Factor repeated algorithm...
30414         (transfer_entries): ...into new helper routine.
30415         (hash_delete): React to hash_rehash return value.
30416
30417         hash: reduce memory pressure in hash_rehash no-op case
30418         * lib/hash.c (next_prime): Avoid overflow.
30419         (hash_initialize): Factor bucket size computation...
30420         (compute_bucket_size): ...into new helper function.
30421         (hash_rehash): Use new function and open coding to reduce memory
30422         pressure, and avoid a memory leak in USE_OBSTACK code.
30423         Reported by Jim Meyering.
30424
30425 2009-06-18  Eric Blake  <ebb9@byu.net>
30426
30427         hash: make rotation more obvious
30428         * modules/hash (Depends-on): Add bitrotate and stdint.
30429         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30430         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30431         (SIZE_MAX): Rely on headers for definition.
30432         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30433         (raw_hasher): Use rotr_sz.
30434         Suggested by Jim Meyering.
30435
30436         hash: fix memory leak in last patch
30437         * lib/hash.c (hash_rehash): Avoid memory leak.
30438
30439         hash: avoid no-op rehashing
30440         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30441
30442         hash: provide default callback functions
30443         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30444         (hash_initialize): Use them as defaults.
30445         * tests/test-hash.c (main): Test this.
30446
30447         hash: minor optimization
30448         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30449         when possible.
30450         (hash_initialize): Document this promise.
30451         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30452         * tests/test-hash.c (hash_compare_strings): Test this.
30453
30454 2009-06-18  Bruno Haible  <bruno@clisp.org>
30455
30456         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30457         going to be replaced anyway.
30458
30459 2009-06-18  Bruno Haible  <bruno@clisp.org>
30460
30461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30462         in one place.
30463         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30464         be replaced anyway.
30465
30466 2009-06-18  Eric Blake  <ebb9@byu.net>
30467
30468         hash: check for resize before insertion
30469         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30470         threshold before insertion, so that a pathological hash_rehash
30471         that fills every bucket can still trigger another rehash.
30472
30473 2009-06-18  Jim Meyering  <meyering@redhat.com>
30474
30475         hash-tests: add a loop around the small tests
30476         * tests/test-hash.c (main): Repeat small tests with selected
30477         small initial table sizes.
30478
30479 2009-06-17  Eric Blake  <ebb9@byu.net>
30480
30481         hash: minor cleanups
30482         * lib/hash.h (hash_entry): Make opaque, by moving...
30483         * lib/hash.c (hash_entry): ...here.
30484         (hash_insert): Clarify restrictions on what can be inserted.
30485         (hash_get_next): Clarify when it is safe to remove an element
30486         during traversal.
30487         (check_tuning): Skip verification when tuning is known safe.
30488         (hash_initialize): Clarify restrictions on tuning.
30489
30490 2009-06-17  Jim Meyering  <jim@meyering.net>
30491         and Eric Blake  <ebb9@byu.net>
30492
30493         hash-tests: new module
30494         * modules/hash-tests: New file.
30495         * tests/test-hash.c: New file.
30496
30497 2009-06-17  Eric Blake  <ebb9@byu.net>
30498
30499         strstr-simple: document new module
30500         * MODULES.html.sh: Document new module.
30501
30502         strstr, strcasestr: replace on platforms with broken memchr
30503         * modules/strstr: Split into...
30504         * modules/strstr-simple: ...new module that does not care about
30505         performance, but does care about glibc bug.
30506         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30507         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30508         if platform memchr is broken, per Debian bug 521737.
30509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30510         memchr.
30511         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30512         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30513         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30514         * modules/mountlist (Depends-on): Add strstr-simple.
30515         * modules/gen-uni-tables (Depends-on): Likewise.
30516         * modules/argz (Depends-on): Add strstr.
30517
30518 2009-06-17  Bruno Haible  <bruno@clisp.org>
30519
30520         * modules/posix_spawn-internal (Depends-on): Add errno.
30521
30522 2009-06-17  Bruno Haible  <bruno@clisp.org>
30523
30524         Define missing ESTALE on Interix 3.5.
30525         * lib/errno.in.h (ESTALE): Assign a value if missing.
30526         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30528         missing.
30529         * doc/posix-headers/errno.texi: Mention the Interix bug.
30530         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30531
30532 2009-06-15  Eric Blake  <ebb9@byu.net>
30533
30534         memchr, memchr2: add valgrind exception
30535         * lib/memchr.valgrind: New file.
30536         * lib/memchr2.valgrind: New file.
30537         * modules/memchr (Files): Distribute valgrind file.
30538         * modules/memchr2 (Files): Likewise.
30539
30540         docs: memchr is no longer obsolete
30541         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30542         * lib/string.in.h (memchr): Simplify logic.
30543
30544 2009-06-14  Jim Meyering  <meyering@redhat.com>
30545
30546         link-follow: fix the "checking..." message to not mention trailing slash
30547         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30548         never considered trailing slashes.
30549
30550 2009-06-14  Bruno Haible  <bruno@clisp.org>
30551
30552         * m4/memchr.m4: Mention also the bug on IA-64.
30553         * doc/posix-functions/memchr.texi: Likewise.
30554
30555 2009-06-12  Eric Blake  <ebb9@byu.net>
30556
30557         memchr: detect broken x86_64 and alpha implementations
30558         * modules/memchr-tests (Depends-on): Move mmap detection...
30559         * modules/memchr (Depends-on): ...here.
30560         (configure.ac): Set indicator.
30561         * lib/string.in.h (memchr): Declare replacement.
30562         * modules/string (Makefile.am): Trigger replacement.
30563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30564         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30565         bugs.
30566         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30567         * modules/getpagesize (License): Relax license.
30568
30569 2009-06-11  Bruno Haible  <bruno@clisp.org>
30570
30571         * lib/idpriv.h: Add more references.
30572
30573 2009-06-08  Bruno Haible  <bruno@clisp.org>
30574
30575         Tests for module 'idpriv-droptemp'.
30576         * modules/idpriv-droptemp-tests: New file.
30577         * tests/test-idpriv-droptemp.sh: New file.
30578         * tests/test-idpriv-droptemp.su.sh: New file.
30579         * tests/test-idpriv-droptemp.c: New file.
30580
30581         New module 'idpriv-droptemp'.
30582         * lib/idpriv-droptemp.c: New file.
30583         * modules/idpriv-droptemp: New file.
30584
30585 2009-06-08  Bruno Haible  <bruno@clisp.org>
30586
30587         Tests for module 'idpriv-drop'.
30588         * modules/idpriv-drop-tests: New file.
30589         * tests/test-idpriv-drop.sh: New file.
30590         * tests/test-idpriv-drop.su.sh: New file.
30591         * tests/test-idpriv-drop.c: New file.
30592
30593         New module 'idpriv-drop'.
30594         * lib/idpriv.h: New file.
30595         * lib-idpriv-drop.c: New file.
30596         * m4/idpriv.m4: New file.
30597         * modules/idpriv-drop: New file.
30598
30599 2009-06-08  Bruno Haible  <bruno@clisp.org>
30600
30601         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30602         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30603         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30604         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30605         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30606         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30607         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30608
30609 2009-06-08  Eric Blake  <ebb9@byu.net>
30610
30611         test-strstr: use memory fence, when possible
30612         * tests/test-strstr.c (main): Use memory fence, in order to be
30613         more likely to trigger Debian bug 521737.
30614         * modules/strstr-tests (Files): Pull in additional files.
30615
30616         memchr: no longer obsolete, for wider field testing
30617         * modules/memchr (Status, Notice): Delete, this module is no
30618         longer obsolete.
30619         * modules/vasnprintf (Depends-on): Add memchr.
30620
30621 2009-06-07  Jim Meyering  <meyering@redhat.com>
30622
30623         hash: declare some functions with the warn_unused_result attribute
30624         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30625
30626 2009-06-07  Bruno Haible  <bruno@clisp.org>
30627
30628         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30629         Reported by Eric Blake.
30630
30631 2009-06-06  Eric Blake  <ebb9@byu.net>
30632
30633         test-alignof: fix typo with long double
30634         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30635         compiler error.
30636
30637 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30638
30639         Escape non-texinfo { and }s.
30640         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30641         markup error.
30642
30643 2009-06-04  Jim Meyering  <meyering@redhat.com>
30644
30645         gitlog-to-changelog: don't infloop on an empty commit log
30646         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30647         Reported by Boris Petersen <transacid@centerim.org>.
30648
30649 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30650
30651         version-etc: extend for packagers
30652         Add three new configure options, intended for packagers:
30653           --with-packager="packager name"
30654           --with-packager-version="packager-specific version"
30655           --with-packager-bug-reports="packager bug reporting"
30656         An example with coreutils:
30657           $ ./configure \
30658             --with-packager=Gentoo \
30659             --with-packager-bug-report=http://bugs.gentoo.org/ \
30660             --with-packager-version="patchset 1.6"
30661           $ ./src/ls --version | head -n2
30662           ls (GNU coreutils) 7.1-dirty
30663           Packaged by Gentoo (patchset 1.6)
30664         Note that the bug reporting info via --help doesn't show up because
30665         coreutils uses its own custom emit_bug_reporting_address() implementation
30666         in src/system.h.  If it didn't, it'd look like:
30667           $ ./src/ls --help | tail -n4
30668           Report bugs to <bug-coreutils@gnu.org>.
30669           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30670           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30671           General help using GNU software: <http://www.gnu.org/gethelp/>.
30672         * lib/version-etc.c: Print new information, if provided.
30673         * m4/version-etc.m4: New file.
30674         * modules/version-etc (Files): Add m4/version-etc.m4.
30675         (configure.ac): Add gl_VERSION_ETC.
30676
30677 2009-05-31  Bruno Haible  <bruno@clisp.org>
30678
30679         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30680         and 'int64_t'.
30681         * modules/alignof-tests (Dependencies): Add stdint.
30682         Reported by Eric Blake.
30683
30684 2009-05-31  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30687         restriction due to compiler bugs.
30688         Reported by Eric Blake.
30689
30690 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30691             Bruno Haible  <bruno@clisp.org>
30692
30693         Fix test-alignof failure.
30694         * lib/alignof.h (alignof_slot): New macro.
30695         (alignof_type): New macro, with the same semantics as the previous
30696         'alignof'.
30697         (alignof): Alias to alignof_slot.
30698         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30699         check that the results are usable as constant expressions.
30700
30701 2009-05-31  Bruno Haible  <bruno@clisp.org>
30702
30703         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30704         * tests/test-memchr.c (main): Check that memchr does not read past the
30705         first occurrence of the byte.
30706         * tests/test-strstr.c (main): Update comment.
30707         Suggested by Eric Blake.
30708
30709 2009-05-30  Bruno Haible  <bruno@clisp.org>
30710
30711         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30712         detail how to use dumpbin.
30713         Reported by David Byron <dbyron@dbyron.com>.
30714
30715 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30716
30717         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30718
30719 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30720
30721         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30722
30723 2009-05-28  Bruno Haible  <bruno@clisp.org>
30724
30725         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30726         build-aux/ files.
30727
30728 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30729
30730         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30731
30732 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30733
30734         * gnulib-tool (sed_transform_main_lib_file)
30735         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30736         regexps.
30737
30738 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30739
30740         * tests/test-strstr.c: Add another self-test.
30741         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30742         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30743
30744 2009-05-23  Bruno Haible  <bruno@clisp.org>
30745
30746         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30747         change.
30748
30749 2009-05-21  Bruno Haible  <bruno@clisp.org>
30750
30751         Simplify use of mode_t varargs.
30752         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30753         uses 'mode_t' or 'int'.
30754         * lib/openat.c (openat): Likewise.
30755         * lib/open-safer.c (open_safer): Likewise.
30756         * m4/mode_t.m4: New file.
30757         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30758         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30759         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30760         * modules/open (Files): Add m4/mode_t.m4.
30761         * modules/openat (Files): Likewise.
30762         * modules/fcntl-safer (Files): Likewise.
30763         Suggested by Eric Blake.
30764
30765 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30766
30767         * doc/glibc-functions/fallocate.texi: New file.
30768         * doc/gnulib.texi: Include it.
30769
30770 2009-05-21  Eric Blake  <ebb9@byu.net>
30771             Bruno Haible  <bruno@clisp.org>
30772
30773         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30774         invocations.
30775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30776
30777 2009-05-21  Eric Blake  <ebb9@byu.net>
30778             Bruno Haible  <bruno@clisp.org>
30779
30780         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30781         include_next. Fix of 2008-11-20 commit.
30782         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30783         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30784         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30785         NEXT_MATH_H.
30786         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30787         instead of NEXT_MATH_H.
30788
30789 2009-05-21  Bruno Haible  <bruno@clisp.org>
30790
30791         Avoid redefinition warnings for SIZE_MAX.
30792         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30793         Reported by Simon Josefsson.
30794
30795 2009-05-21  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30798         AC_CACHE_VAL.
30799
30800 2009-05-20  Bruno Haible  <bruno@clisp.org>
30801
30802         Make zeroptr.h work on mingw.
30803         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30804         mprotect.
30805         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30806         * modules/memchr2-tests (configure.ac): Likewise.
30807         * modules/memcmp-tests (configure.ac): Likewise.
30808         * modules/memmem-tests (configure.ac): Likewise.
30809         * modules/memrchr-tests (configure.ac): Likewise.
30810         Reported by Simon Josefsson.
30811
30812 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30813
30814         * tests/test-glob.c: Include string.h for strcmp prototype.
30815
30816 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30817
30818         * modules/getdelim (Depends-on): Add explicit stdint, although it
30819         was implicitly already pulled in via realloc-posix.
30820         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30821
30822 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30823
30824         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30825         G. Christensen" <tgc@jupiterrise.com>.
30826         * m4/sys_socket_h.m4: Check for sa_family_t.
30827         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30828         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30829         * tests/test-sys_socket.c: Check that sa_family_t works.
30830
30831 2009-05-18  Eric Blake  <ebb9@byu.net>
30832
30833         maint.mk: allow gnulib_dir in VPATH build
30834         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30835
30836 2009-05-15  Jim Meyering  <meyering@redhat.com>
30837
30838         maint.mk: Give gnulib_dir a default definition.
30839         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30840         Thus, most packages no longer need to specify this variable in cfg.mk
30841
30842 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30843
30844         rename.m4: fix typos that would make non-mingw cross-configure fail
30845         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30846
30847 2009-05-13  Eric Blake  <ebb9@byu.net>
30848
30849         mmap-anon: avoid out-of-order autoconf expansion
30850         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30851         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30852         * modules/memchr-tests (Depends-on): Add extensions.
30853         * modules/memchr2-tests (Depends-on): Add extensions.
30854         * modules/memcmp-tests (Depends-on): Add extensions.
30855         * modules/memmem-tests (Depends-on): Add extensions.
30856         * modules/memrchr-tests (Depends-on): Add extensions.
30857
30858 2009-05-13  Bruno Haible  <bruno@clisp.org>
30859
30860         Make some tests ISO C 99 compliant.
30861         * tests/zerosize-ptr.h: New file.
30862         * tests/test-memchr.c: Include zerosize-ptr.h.
30863         (main): Use a zero-size object pointer instead of NULL.
30864         * tests/test-memchr2.c: Include zerosize-ptr.h.
30865         (main): Use a zero-size object pointer instead of NULL.
30866         * tests/test-memcmp.c: Include zerosize-ptr.h.
30867         (main): Use a zero-size object pointer instead of NULL.
30868         * tests/test-memmem.c: Include zerosize-ptr.h.
30869         (main): Use a zero-size object pointer instead of NULL.
30870         * tests/test-memrchr.c: Include zerosize-ptr.h.
30871         (main): Use a zero-size object pointer instead of NULL.
30872         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30873         m4/mmap-anon.m4.
30874         (Depends-on): Add getpagesize.
30875         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30876         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30877         m4/mmap-anon.m4.
30878         (Depends-on): Add getpagesize.
30879         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30880         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30881         m4/mmap-anon.m4.
30882         (Depends-on): Add getpagesize.
30883         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30884         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30885         m4/mmap-anon.m4.
30886         (Depends-on): Add getpagesize.
30887         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30888         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30889         m4/mmap-anon.m4.
30890         (Depends-on): Add getpagesize.
30891         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30892
30893 2009-05-12  Bruno Haible  <bruno@clisp.org>
30894
30895         Tests for module 'alignof'.
30896         * modules/alignof-tests: New file.
30897         * tests/test-alignof.c: New file.
30898
30899 2009-05-12  Bruno Haible  <bruno@clisp.org>
30900
30901         Fix alignof macro.
30902         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30903         vendor compilers that are always correct.
30904
30905 2009-05-12  Bruno Haible  <bruno@clisp.org>
30906
30907         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30909         not whether its fully works.
30910
30911 2009-05-12  Bruno Haible  <bruno@clisp.org>
30912
30913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30914
30915 2009-05-12  Jim Meyering  <meyering@redhat.com>
30916
30917         * top/maint.mk: Adjust backslash alignment.
30918
30919 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30920
30921         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30922
30923 2009-05-11  Eric Blake  <ebb9@byu.net>
30924
30925         argp: avoid undefined behavior
30926         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30927         macros.
30928
30929 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30930
30931         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30932         user.name to prevent git commit from complaining.
30933
30934 2009-05-10  Bruno Haible  <bruno@clisp.org>
30935
30936         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30937         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30938         it rewrites every file name only once.
30939         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30940
30941 2009-05-08  Bruno Haible  <bruno@clisp.org>
30942
30943         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30944         instead of 'max'.
30945
30946 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30947
30948         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30949         sockaddr_storage test.
30950
30951 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30952
30953         * modules/sys_socket (Makefile.am): Substitute
30954         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30955         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30956         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30957         * tests/test-sys_socket.c: Check sockaddr_storage.
30958
30959 2009-05-08  Bruno Haible  <bruno@clisp.org>
30960
30961         New module 'alignof'.
30962         * lib/alignof.h: New file.
30963         * modules/alignof: New file.
30964
30965 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30966             Bruno Haible  <bruno@clisp.org>
30967
30968         Fix test-file-has-acl on FreeBSD.
30969         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30970         mask is implicitly added.
30971         * tests/test-file-has-acl.c: Include <signal.h>.
30972         (main): Terminate the test after 5 seconds.
30973         * modules/acl-tests (configure.ac): Check for alarm function.
30974
30975 2009-05-04  Bruno Haible  <bruno@clisp.org>
30976
30977         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30979         * modules/errno (configure.ac): Drop AC_REQUIRE.
30980         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30981         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30982
30983 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30984
30985         * modules/glob-tests: New module.
30986         * tests/test-glob.c: Add.
30987
30988 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30989
30990         * modules/fnmatch-tests: New module.
30991         * tests/test-fnmatch.c: Add.
30992
30993 2009-05-04  Eric Blake  <ebb9@byu.net>
30994
30995         maint: make the new no-submodule-changes rule VPATH-safe
30996         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30997
30998 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30999             Bruno Haible  <bruno@clisp.org>
31000
31001         acl: Fix infinite loop on FreeBSD.
31002         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31003         of return value from acl_get_entry.
31004         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31005         Likewise.
31006
31007 2009-05-03  Bruno Haible  <bruno@clisp.org>
31008
31009         * lib/acl-internal.h (acl_entries): Clarify return value.
31010         * lib/acl_entries.c (acl_entries): Likewise.
31011
31012 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31013
31014         Bug fix in acl module.
31015         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31016
31017 2009-05-03  Bruno Haible  <bruno@clisp.org>
31018
31019         Create gperf-generated file in the source dir, not in the build dir.
31020         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31021         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31022         * modules/unicase/locale-language (unicase/locale-languages.h):
31023         Likewise.
31024         * modules/unicase/special-casing (unicase/special-casing-table.h):
31025         Likewise.
31026         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31027         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31028         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31029         Reported by Ralf Wildenhues.
31030
31031 2009-05-03  Bruno Haible  <bruno@clisp.org>
31032
31033         * modules/fnmatch (Description, configure.ac): Taken from
31034         fnmatch-posix.
31035         * modules/fnmatch-posix: Turn into a symbolic reference to the
31036         'fnmatch' module, and deprecate.
31037         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31038
31039 2009-05-03  Bruno Haible  <bruno@clisp.org>
31040
31041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31042         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31043         Reported by Ralf Wildenhues.
31044
31045 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31046
31047         * m4/fnmatch.m4: Fix fnmatch re-define.
31048
31049 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31050
31051         priv-set: new module and tests; adapt write-any-file
31052         * lib/priv-set.c: New file.
31053         * lib/priv-set.h: New file.
31054         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31055         * lib/write-any-file.c: Simplify by using priv-set module.
31056         * m4/priv-set.m4: New file.
31057         * modules/priv-set: New file.
31058         * modules/unlinkdir: Add dependency on priv-set module.
31059         * modules/write-any-file: Likewise.
31060
31061         Tests for module 'priv-set'.
31062         * modules/priv-set-tests: New file.
31063         * tests/test-priv-set.c: New file.
31064
31065 2009-05-03  Jim Meyering  <meyering@redhat.com>
31066             Bruno Haible  <bruno@clisp.org>
31067
31068         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31069         use the converted UTF-8 variant of the name instead.
31070
31071 2009-05-03  Jim Meyering  <meyering@redhat.com>
31072
31073         tests: tighten some getdate tests
31074         * tests/test-getdate.c (main): Tighten tests: require equality,
31075         not just greater than.  Set TZ envvar to UTC0.
31076
31077 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31078
31079         getdate: correctly interpret "next monday" when run on a Monday
31080         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31081         that e.g., "next tues" (when run on a tuesday) results in a date
31082         that is one week in the future, and not today's date.
31083         I.e., add a week when the wday is the same as the current one.
31084         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31085         and earlier by Martin Bernreuther and Jan Minář.
31086         * tests/test-getdate.c (main): Check that "next DAY" is always in
31087         the future and that "last DAY" is always in the past.
31088
31089 2009-05-02  Jim Meyering  <meyering@redhat.com>
31090
31091         build: ensure that a release build fails when a submodule is unclean
31092         * top/maint.mk (no-submodule-changes): New rule.
31093         (alpha beta major): Depend on it.
31094
31095 2009-05-02  Bruno Haible  <bruno@clisp.org>
31096
31097         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31098         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31099         shell variable gl_fnmatch_required to detect which variant is
31100         requested.
31101         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31102         gl_FUNC_FNMATCH_POSIX.
31103         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31104         exclude fnmatch-posix.
31105
31106 2009-05-02  Bruno Haible  <bruno@clisp.org>
31107
31108         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31109         * modules/mbsrtowcs (License): Change to LGPLv2+.
31110         * modules/strnlen1 (License): Likewise.
31111         Reported by Simon Josefsson.
31112
31113 2009-05-02  Bruno Haible  <bruno@clisp.org>
31114
31115         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31116         "cross".
31117         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31118         gnulib-tool was called with option --source-base=lib.
31119
31120 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31121
31122         Use automake *-local hooks without commands, for extensibility.
31123         * modules/localcharset (Makefile.am): Rename install-exec-local
31124         rule to install-exec-localcharset, and make it a prerequisite of
31125         install-exec-local.  Likewise, rename the uninstall-local rule to
31126         uninstall-localcharset, and make it a prerequisite of the former.
31127
31128 2009-05-01  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31131         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31132         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31134         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31135         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31136         m4/locale-zh.m4, m4/codeset.m4.
31137
31138         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31139         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31140         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31141         m4/locale-zh.m4.
31142
31143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31144         REPLACE_WCRTOMB if mbstate_t must be replaced.
31145         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31146         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31147
31148 2009-05-01  Bruno Haible  <bruno@clisp.org>
31149
31150         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31151         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31152         dngettext, dcngettext, textdomain, bindtextdomain,
31153         bind_textdomain_codeset): Undefine before redefining.
31154
31155 2009-04-30  Bruno Haible  <bruno@clisp.org>
31156
31157         Fix bug introduced on 2009-04-25.
31158         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31159         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31160         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31161         is defined.
31162         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31163         is defined.
31164         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31165         is defined.
31166         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31167
31168 2009-04-28  Bruno Haible  <bruno@clisp.org>
31169
31170         Comment tweaks.
31171         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31172         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31173         * lib/unicase.h (u*_casexfrm): Likewise.
31174         Reported by Paolo Bonzini.
31175
31176 2009-04-28  Bruno Haible  <bruno@clisp.org>
31177
31178         Fix a compilation error.
31179         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31180         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31181         Reported by Jim Meyering.
31182
31183 2009-04-27  Bruno Haible  <bruno@clisp.org>
31184
31185         New module 'libunistring'.
31186         * modules/libunistring: New file.
31187         * m4/libunistring.m4: New file.
31188         * MODULES.html.sh (Unicode string functions): Add it.
31189
31190 2009-04-27  Eric Blake  <ebb9@byu.net>
31191
31192         maint.mk: allow package-specific header to provide <config.h>
31193         * top/maint.mk (sc_require_config_h): New variable.
31194         (sc_require_config_h, sc_require_config_h_first): Use it.
31195
31196 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31197
31198         * top/maint.mk (sc_avoid_if_before_free): Except
31199         useless-if-before-free script.
31200
31201 2009-04-27  Eric Blake  <ebb9@byu.net>
31202
31203         maintainer-makefile: depend on all required helper scripts
31204         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31205         useless-if-before-free.
31206         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31207         version, rather than assuming gnulib checkout is available.
31208         Reported by Simen Josefsson.
31209
31210 2009-04-26  Bruno Haible  <bruno@clisp.org>
31211
31212         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31213         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31214         "../" or "..".
31215
31216 2009-04-26  Bruno Haible  <bruno@clisp.org>
31217
31218         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31219         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31220         AC_LIB_HAVE_LINKFLAGS.
31221
31222 2009-04-26  Bruno Haible  <bruno@clisp.org>
31223
31224         Simplify calling convention of u*_conv_from_encoding.
31225         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31226         u32_conv_from_encoding): Expect a resultbuf argument and return the
31227         result directly as a pointer.
31228         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31229         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31230         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31231         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31232         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31233         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31234         Update.
31235         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31236         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31237         * lib/vasnprintf.c (VASNPRINTF): Update.
31238         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31239         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31240         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31241         * NEWS: Mention the change.
31242
31243 2009-04-26  Bruno Haible  <bruno@clisp.org>
31244
31245         Simplify calling convention of u*_conv_to_encoding.
31246         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31247         u32_conv_to_encoding): Expect a resultbuf argument and return the
31248         result directly as a pointer.
31249         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31250         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31251         freeing scaled_offsets if mem_iconveha failed.
31252         * lib/unicase/u-casexfrm.h (FUNC): Update.
31253         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31254         * lib/vasnprintf.c (VASNPRINTF): Update.
31255         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31256         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31257         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31258         * NEWS: Mention the change.
31259
31260 2009-04-26  Bruno Haible  <bruno@clisp.org>
31261
31262         Avoid test failures on AIX and OSF/1.
31263         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31264         malloc(0).
31265         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31266         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31267         Likewise.
31268         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31269         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31270         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31271         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31272         * doc/posix-functions/malloc.texi: Document the portability problem
31273         related to malloc(0).
31274
31275 2009-04-26  Bruno Haible  <bruno@clisp.org>
31276
31277         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31278         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31279         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31280
31281 2009-04-25  Bruno Haible  <bruno@clisp.org>
31282
31283         Avoid link error when creating a namespace clean library.
31284         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31285         as macro with arguments if already defined as an alias.
31286         * lib/signbitf.c (gl_signbitf): Don't undefine.
31287         * lib/signbitd.c (gl_signbitd): Don't undefine.
31288         * lib/signbitl.c (gl_signbitl): Don't undefine.
31289
31290 2009-04-25  Jim Meyering  <meyering@redhat.com>
31291
31292         vc-list-files: fix another quoting bug
31293         * build-aux/vc-list-files: Avoid sed backslash expansion
31294         of pathological directory names.
31295
31296 2009-04-25  Eric Blake  <ebb9@byu.net>
31297
31298         vc-list-files: fix shell quoting error
31299         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31300         timestamp.
31301
31302 2009-04-25  Jim Meyering  <meyering@redhat.com>
31303
31304         vc-list-files: restore lost functionality with subdir argument
31305         * build-aux/vc-list-files: When given a non-"." sub-directory
31306         argument, substitute the $dir/ prefix back onto each resulting name.
31307         Otherwise, coreutils' root_tests check would fail.
31308
31309 2009-04-24  Eric Blake  <ebb9@byu.net>
31310
31311         vc-list-files: ignore git symlinks
31312         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31313         than ls-files, to ignore git symlinks.
31314
31315         maint.mk: import improvements from m4
31316         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31317         (move_if_change): Delete unused macro.
31318         (news-date-check, vc-diff-check): Support VPATH builds.
31319         (announcement): Likewise.  Split --bootstrap-tools list...
31320         (boostrap-tools): ...into separate list, which can be overridden
31321         in cfg.mk.
31322         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31323         requiring dependency on useless-if-before-free module.
31324         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31325         Support VPATH builds.
31326
31327 2009-04-24  Jim Meyering  <meyering@redhat.com>
31328
31329         maint.mk: remove coreutils-specific rules and variables
31330         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31331         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31332         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31333
31334         maint.mk: remove obsolete rule
31335         * top/maint.mk (rel-check): Remove rule.
31336         (WGET, WGETFLAGS): Remove now-unused variables.
31337
31338 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31339
31340         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31341         consistency.
31342
31343         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31344         '$(PATH_SEPARATOR)' instead of ':'.
31345
31346 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31347
31348         * lib/getopt1.c (main): Use 'const' for static array.
31349
31350 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31351
31352         * top/maint.mk: Sync with coreutils.
31353         * NEWS: Explain incompatibilities.
31354
31355 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31356             Bruno Haible  <bruno@clisp.org>
31357
31358         Fix cross-compilation results.
31359         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31360         statement, as third argument of AC_TRY_RUN.
31361         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31362         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31363         Likewise.
31364         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31365         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31366         Likewise.
31367         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31369         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31370
31371 2009-04-20  Bruno Haible  <bruno@clisp.org>
31372
31373         Avoid test failure on mingw.
31374         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31375
31376 2009-04-20  Bruno Haible  <bruno@clisp.org>
31377
31378         Avoid compilation error on mingw.
31379         * modules/localename-tests (Depends-on): Add locale.
31380
31381 2009-04-19  Bruno Haible  <bruno@clisp.org>
31382
31383         Support for building a shared library on Windows platforms.
31384         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31385         (main): Test the presence of UNINORM_NFC here.
31386         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31387         (main): Test the presence of UNINORM_NFD here.
31388         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31389         (main): Test the presence of UNINORM_NFKC here.
31390         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31391         (main): Test the presence of UNINORM_NFKD here.
31392
31393 2009-04-19  Bruno Haible  <bruno@clisp.org>
31394
31395         Avoid a compiler warning.
31396         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31397         Change type of variable 'sequence'.
31398
31399 2009-04-19  Bruno Haible  <bruno@clisp.org>
31400
31401         * modules/configmake (Makefile.am): When the contents of configmake.h
31402         does not change, arrange to preserve its modification time.
31403
31404 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31405
31406         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31407         gettext domain.
31408
31409 2009-04-16  Jim Meyering  <meyering@redhat.com>
31410
31411         useless-if-before-free: improve conversion code
31412         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31413         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31414
31415 2009-04-14  Bruno Haible  <bruno@clisp.org>
31416
31417         * modules/fcntl (Depends-on): Add extensions.
31418         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31419
31420 2009-04-12  Ben Pfaff  <blp@gnu.org>
31421
31422         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31423         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31424
31425 2009-03-20  Ben Pfaff  <blp@gnu.org>
31426
31427         Make rename replace existing destinations on Windows.
31428         * m4/rename.m4: Add test for Mingw.
31429         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31430         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31431         * doc/posix-functions/rename.texi: Document.
31432
31433 2009-04-10  Bruno Haible  <bruno@clisp.org>
31434
31435         New include file "iconveh.h".
31436         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31437         * lib/striconveh.h: Include it.
31438         (enum iconv_ilseq_handler): Remove definition.
31439         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31440         striconveh.h.
31441         * lib/striconveha.c: Include striconveh.h.
31442         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31443         * modules/striconveh (Files): Add lib/iconveh.h.
31444         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31445         lib/striconveh.h.
31446
31447 2009-04-10  Bruno Haible  <bruno@clisp.org>
31448
31449         * lib/uniconv.h: Update comment.
31450
31451 2009-04-10  Bruno Haible  <bruno@clisp.org>
31452
31453         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31454         always.
31455         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31456         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31457         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31458         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31459         "unistring-notinline.h", so that the function gets defined always.
31460         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31461         * lib/unistr/u8-uctomb.c: Likewise.
31462         * lib/unistr/u16-mbtouc.c: Likewise.
31463         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31464         * lib/unistr/u16-uctomb.c: Likewise.
31465         * lib/unistr/u32-mbtouc.c: Likewise.
31466         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31467         * lib/unistr/u32-uctomb.c: Likewise.
31468
31469 2009-04-10  Bruno Haible  <bruno@clisp.org>
31470
31471         Mark 'utime' obsolete.
31472         * modules/utime (Status, Notice): New sections.
31473         Suggested by Jim Meyering.
31474
31475         Fix cross-compile guess for utime test.
31476         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31477         autoconf.
31478         * doc/posix-functions/utime.texi: Give more precisions.
31479         Reported by Jan <ipif@ymail.com>.
31480
31481 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31482
31483         filevercmp: correct today's change
31484         * lib/filevercmp.c: Also handle coreutils' test inputs.
31485         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31486
31487         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31488         for reporting it.
31489         * lib/filevercmp.c: Special handle for "", "." and "..".
31490         * tests/test-filevercmp.c: Enlarge the set suite.
31491
31492 2009-04-07  Jim Meyering  <meyering@redhat.com>
31493
31494         useless-if-before-free: show how to remove braced useless free, too
31495         * build-aux/useless-if-before-free: still only in a comment, though.
31496
31497 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31498
31499         maint.mk: import changes to syntax-check macros from coreutils
31500         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31501         Use them in the relevant macros.
31502
31503 2009-04-06  Bruno Haible  <bruno@clisp.org>
31504
31505         Fix unportable use of bit-fields.
31506         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31507         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31508         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31509
31510 2009-04-06  Bruno Haible  <bruno@clisp.org>
31511
31512         Avoid test failures on AIX and OSF/1.
31513         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31514         that malloc(0) = NULL.
31515         * tests/unicase/test-u8-tolower.c (check): Likewise.
31516         * tests/unicase/test-u8-totitle.c (check): Likewise.
31517         * tests/unicase/test-u8-toupper.c (check): Likewise.
31518         * tests/unicase/test-u16-casefold.c (check): Likewise.
31519         * tests/unicase/test-u16-tolower.c (check): Likewise.
31520         * tests/unicase/test-u16-totitle.c (check): Likewise.
31521         * tests/unicase/test-u16-toupper.c (check): Likewise.
31522         * tests/unicase/test-u32-casefold.c (check): Likewise.
31523         * tests/unicase/test-u32-tolower.c (check): Likewise.
31524         * tests/unicase/test-u32-totitle.c (check): Likewise.
31525         * tests/unicase/test-u32-toupper.c (check): Likewise.
31526         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31527         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31528         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31529         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31530         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31531         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31532         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31533         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31534         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31535         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31536         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31537         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31538
31539 2009-04-05  Bruno Haible  <bruno@clisp.org>
31540
31541         Work around an autoconf limitation.
31542         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31543         comment line if it would be longer than 3 KB.
31544
31545 2009-04-05  Bruno Haible  <bruno@clisp.org>
31546
31547         Avoid test failure with libiconv-1.13.
31548         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31549         of the expected test results.
31550
31551 2009-04-05  Bruno Haible  <bruno@clisp.org>
31552
31553         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31554         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31555         that it should be installed.
31556
31557 2009-04-05  Bruno Haible  <bruno@clisp.org>
31558
31559         * gnulib-tool: New option --copy-file.
31560         (func_usage): Document it.
31561         (func_dest_tmpfilename): Moved out of func_import.
31562         (func_add_file, func_update_file): New functions, extracted from
31563         func_import.
31564         (func_import): Update.
31565
31566 2009-04-05  Karl Berry  <karl@gnu.org>
31567
31568         * README: prominently mention gnulib-tool.
31569         Rearrange sections so getting the code is near the top.
31570
31571 2009-04-05  Bruno Haible  <bruno@clisp.org>
31572
31573         * lib/unicase.h: Mention u*_cmp2.
31574         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31575         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31576         * lib/unicase/ulc-casecmp.c: Likewise.
31577         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31578         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31579         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31580         unistr/u8-cmp.
31581         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31582         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31583         unistr/u16-cmp.
31584         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31585         unistr/u32-cmp.
31586
31587         * lib/uninorm.h: Mention u*_cmp2.
31588         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31589         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31590         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31591         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31592         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31593         unistr/u8-cmp.
31594         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31595         unistr/u16-cmp.
31596         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31597         unistr/u32-cmp.
31598
31599         New module 'unistr/u32-cmp2'.
31600         * lib/unistr/u32-cmp2.c: New file.
31601         * modules/unistr/u32-cmp2: New file.
31602
31603         New module 'unistr/u16-cmp2'.
31604         * lib/unistr/u16-cmp2.c: New file.
31605         * modules/unistr/u16-cmp2: New file.
31606
31607         New module 'unistr/u8-cmp2'.
31608         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31609         * lib/unistr/u8-cmp2.c: New file.
31610         * lib/unistr/u-cmp2.h: New file.
31611         * modules/unistr/u8-cmp2: New file.
31612
31613 2009-04-05  Bruno Haible  <bruno@clisp.org>
31614
31615         * lib/unictype.h (uc_property_is_valid): New macro.
31616         * tests/unictype/test-pr_byname.c (main): Use it.
31617
31618         * lib/unistr.h: Doc fixes.
31619         * lib/uniconv.h: Doc fixes.
31620         * lib/unictype.h: Doc fixes.
31621
31622 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         Port coreutils 7.2 to Solaris 8.
31625
31626         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31627         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31628         for Solaris 8.  This is a bit of a hack, as it means it's the
31629         caller's responsibility to add -lnsl if needed, but most likely it
31630         won't be needed since only getaddrinfo uses this and getaddrinfo
31631         isn't needed on Solaris 8.
31632
31633         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31634         problem to Solaris 8 encountered with coreutils 7.2, which
31635         resulted in a message "fnmatch.c:292: warning: passing argument 4
31636         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31637         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31638
31639 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31640
31641         * m4/ld-version-script.m4: Add FIXME comment.
31642
31643 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31644
31645         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31646         SOVERSION variable.
31647
31648 2009-04-02  Bruno Haible  <bruno@clisp.org>
31649
31650         * Makefile (info, html, dvi, pdf): Combine the rules.
31651         Suggested by Jim Meyering.
31652
31653 2009-04-01  Bruno Haible  <bruno@clisp.org>
31654
31655         * Makefile (info, html, dvi, pdf): New targets.
31656         Reported by Reuben Thomas <rrt@sc3d.org>.
31657
31658 2009-04-01  Bruno Haible  <bruno@clisp.org>
31659
31660         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31661         can be put into PATH.
31662         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31663
31664 2009-04-01  Bruno Haible  <bruno@clisp.org>
31665
31666         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31667
31668 2009-04-01  Bruno Haible  <bruno@clisp.org>
31669
31670         Rename module 'visibility'.
31671         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31672         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31673         * doc/gnulib.texi: Update.
31674         * MODULES.html.sh (Misc): Update.
31675         * NEWS: Mention the change.
31676
31677 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31678
31679         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31680         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31681         Eric Blake <ebb9@byu.net> for review.
31682         * MODULES.html.sh: Add lib-msvc-compat.
31683         * doc/gnulib.texi: Link to new section.
31684         * m4/ld-output-def.m4: New file.
31685         * doc/ld-output-def.texi: New file.
31686
31687 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31688
31689         Rename ld-version-script to lib-symbol-versions.  Suggested by
31690         Bruno Haible <bruno@clisp.org>.
31691         * modules/ld-version-script: Renamed to lib-symbol-versions.
31692         * doc/ld-version-script.texi: Fix module name.
31693         * MODULES.html.sh: Add lib-symbol-versions.
31694
31695 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31696
31697         * modules/u64-tests: New file.
31698         * tests/test-u64.c: New file.
31699
31700 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31701
31702         * MODULES.html.sh: Mention u64.
31703         * modules/u64: New module.
31704         * modules/crypto/sha512: Depend on u64 module instead of providing
31705         u64.h.
31706
31707 2009-03-27  Eric Blake  <ebb9@byu.net>
31708
31709         test-strerror: make debugging EAI_SYSTEM easier
31710         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31711         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31712         failure was EAI_SYSTEM.
31713
31714 2009-03-25  Bruno Haible  <bruno@clisp.org>
31715
31716         Fix a problem with --enable-relocatable on Solaris 7.
31717         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31718         since 2008-02-24.
31719
31720 2009-03-25  Eric Blake  <ebb9@byu.net>
31721
31722         test-sockets: avoid gcc warning
31723         * tests/test-sockets.c (main): Silence compiler warning.
31724
31725 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31726
31727         New modules nproc, pthread, contributed by Glen Lenker.
31728
31729         * MODULES.html.sh: Add pthread, nproc.
31730         * lib/nproc.c: New file.
31731         * lib/nproc.h: New file.
31732         * lib/pthread.in.h: New file.
31733         * m4/pthread.m4: New file.
31734         * modules/nproc: New file.
31735         * modules/pthread: New file.
31736
31737 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31738
31739         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31740         New variable.
31741
31742 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31743
31744         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31745         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31746         * tests/test-filevercmp.c: Add tests for backup suffixes.
31747
31748 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31749
31750         * modules/stdlib (Depends-on): Add stdint, needed when defining
31751         struct random_data on, for example, HP-UX 10.20.  Reported by
31752         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31753
31754 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31755
31756         * lib/readline.c (readline): Call fflush on stdout after printing
31757         prompt.
31758
31759 2009-03-20  Bruno Haible  <bruno@clisp.org>
31760
31761         Remove dependency from 'close' module to -lws2_32 on native Windows.
31762         * lib/close-hook.h: New file.
31763         * lib/close-hook.c: New file.
31764         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31765         w32sock.h.
31766         (_gl_close_fd_maybe_socket): Remove function.
31767         (rpl_close): Invoke execute_all_close_hooks instead of
31768         _gl_close_fd_maybe_socket.
31769         * lib/sockets.c: Include close-hook.h, w32sock.h.
31770         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31771         (close_sockets_hook): New variable.
31772         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31773         (gl_sockets_cleanup): Unregister it.
31774         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31775         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31776         * modules/close-hook: New file.
31777         * modules/close (Files): Remove lib/w32sock.h.
31778         (Depends-on): Add close-hook.
31779         (Link): Remove section.
31780         * modules/sockets (Files): Add lib/w32sock.h.
31781         (Depends-on): Add close-hook.
31782         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31783         invocation.
31784         * NEWS: Mention that LIB_CLOSE is gone.
31785
31786 2009-03-23  Eric Blake  <ebb9@byu.net>
31787
31788         signal-tests: test previous patch
31789         * tests/test-signal.c: New file.
31790         * modules/signal-tests: Likewise.
31791
31792         signal.h: always support 'volatile sig_atomic_t'
31793         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31794         (gl_SIGNAL_H_DEFAULTS): Add a default.
31795         * modules/signal (Makefile.am): Substitute if needed.
31796         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31797         users can blindly add volatile.
31798         * doc/posix-headers/signal.texi (signal.h): Document it.
31799         Reported by Matthew Woehlke.
31800
31801 2009-03-23  Jim Meyering  <meyering@redhat.com>
31802
31803         pathmax: PATH_MAX: use pathconf only when available
31804         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31805         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31806         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31807         This avoids a link failure in a PSP cross-compilation environment
31808         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31809
31810         * lib/vasnprintf.c (divide): Fix typo in comment.
31811
31812 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31813
31814         * gnulib-tool (func_filter_filelist): Fix comment.
31815
31816 2009-03-20  Bruno Haible  <bruno@clisp.org>
31817
31818         Make sockets.h self-contained.
31819         * lib/sockets.c: Include sockets.h first.
31820         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31821
31822 2009-03-19  Eric Blake  <ebb9@byu.net>
31823
31824         doc: mention more functions added in cygwin 1.7.0
31825         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31826         addition.
31827         * doc/posix-functions/log2f.texi: Likewise.
31828
31829 2009-03-19  Jim Meyering  <meyering@redhat.com>
31830
31831         fsusage: avoid syntax error due to statement-before-declaration
31832         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31833         after all declarations.  Reported by Matthew Woehlke in
31834         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31835
31836 2009-03-18  Eric Blake  <ebb9@byu.net>
31837
31838         build-aux/compile: sync from automake
31839         * build-aux/compile: New file, from automake.
31840         * config/srclist.txt: Mention build-aux/compile.
31841
31842 2009-03-17  Bruno Haible  <bruno@clisp.org>
31843
31844         * lib/git-merge-changelog.c: Fix typo in comment.
31845         Reported by Reuben Thomas <rrt@sc3d.org>.
31846
31847 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31848
31849         * m4/regex.m4: update and improve help for
31850         --without-included-regex.
31851
31852 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31853
31854         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31855         failure on missing include files.
31856
31857 2009-03-17  Eric Blake  <ebb9@byu.net>
31858
31859         doc: mention more functions added in cygwin 1.7.0
31860         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31861         addition.
31862         * doc/posix-functions/fwscanf.texi: Likewise.
31863         * doc/posix-functions/swprintf.texi: Likewise.
31864         * doc/posix-functions/swscanf.texi: Likewise.
31865         * doc/posix-functions/vfwprintf.texi: Likewise.
31866         * doc/posix-functions/vfwscanf.texi: Likewise.
31867         * doc/posix-functions/vswprintf.texi: Likewise.
31868         * doc/posix-functions/vswscanf.texi: Likewise.
31869         * doc/posix-functions/vwprintf.texi: Likewise.
31870         * doc/posix-functions/vwscanf.texi: Likewise.
31871         * doc/posix-functions/wcscasecmp.texi: Likewise.
31872         * doc/posix-functions/wcsdup.texi: Likewise.
31873         * doc/posix-functions/wcsftime.texi: Likewise.
31874         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31875         * doc/posix-functions/wprintf.texi: Likewise.
31876         * doc/posix-functions/wscanf.texi: Likewise.
31877         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31878
31879 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31880
31881         maint.mk: really add $(AM_MAKEFLAGS)
31882         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31883         was inadvertently omitted in the last commit.
31884         Spotted by Bruno Haible.
31885
31886         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31887         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31888         $(AM_MAKEFLAGS)' rather than plain `make'.
31889
31890         gnulib-tool: execute $MAKE not make
31891         * gnulib-tool: Default $MAKE to 'make'.
31892         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31893         than make.  Initialize $MAKE in the do-autobuild script.
31894
31895         gnulib-tool: use $MAKE not make in generated files
31896         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31897         make, in generated files.  Initialize $MAKE in the do-autobuild
31898         script.
31899
31900         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31901
31902         GNUmakefile: disable parallelism only for multiple, recursive targets
31903         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31904         additions in the Makefile.
31905         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31906         by Automake.
31907         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31908         are listed on the command line and at least one of them is
31909         listed in $(ALL_RECURSIVE_TARGETS).
31910
31911 2009-03-14  Bruno Haible  <bruno@clisp.org>
31912
31913         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31914         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31915         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31916         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31917         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31918         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31919         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31920         unistr/u8-uctomb.
31921         * modules/unistr/u8-strchr (Depends-on): Likewise.
31922         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31923         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31924         unistr/u16-uctomb.
31925         * modules/unistr/u16-strchr (Depends-on): Likewise.
31926         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31927
31928 2009-03-12  Bruno Haible  <bruno@clisp.org>
31929
31930         Work around select() bug on Interix 3.5.
31931         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31932         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31933         * m4/select.m4: New file.
31934         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31935         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31936         * modules/select (Files): Add m4/select.m4.
31937         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31938         * modules/nanosleep (Depends-on): Add select.
31939         * modules/poll (Depends-on): Likewise.
31940         * doc/posix-functions/select.texi: Mention the Interix bug.
31941         Reported by Markus Duft <mduft@gentoo.org>.
31942
31943         * lib/select.c: Renamed from lib/winsock-select.c.
31944         * modules/select (Files): Add lib/select.c, remove
31945         lib/winsock-select.c.
31946         (configure.ac): Update.
31947
31948 2009-03-12  Jim Meyering  <meyering@redhat.com>
31949
31950         avoid gcc warnings about unused macro definitions
31951         * lib/readtokens.c (STREQ): Remove unused definition.
31952         * lib/xmalloc.c (SIZE_MAX): Likewise.
31953         * lib/openat-die.c (N_): Likewise.
31954         * lib/mountlist.c (SIZE_MAX): Remove definition.
31955         Instead, include <stdint.h>.
31956         * lib/readutmp.c: Likewise.
31957         * modules/readutmp (Depends-on): Add stdint.
31958         * modules/mountlist (Depends-on): Add stdint.
31959         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31960
31961 2009-03-10  Bruno Haible  <bruno@clisp.org>
31962
31963         Tests for module 'mbmemcasecoll'.
31964         * modules/mbmemcasecoll-tests: New file.
31965         * tests/test-mbmemcasecoll1.sh: New file.
31966         * tests/test-mbmemcasecoll2.sh: New file.
31967         * tests/test-mbmemcasecoll3.sh: New file.
31968         * tests/test-mbmemcasecoll.c: New file.
31969
31970         New module 'mbmemcasecoll'.
31971         * lib/mbmemcasecoll.h: New file.
31972         * lib/mbmemcasecoll.c: New file.
31973         * modules/mbmemcasecoll: New file.
31974
31975         * tests/test-mbmemcasecmp.h: New file, extracted from
31976         tests/test-mbmemcasecmp.c.
31977         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31978         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31979         (main): Update.
31980         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31981
31982 2009-03-09  Bruno Haible  <bruno@clisp.org>
31983
31984         Tests for module 'mbmemcasecmp'.
31985         * modules/mbmemcasecmp-tests: New file.
31986         * tests/test-mbmemcasecmp1.sh: New file.
31987         * tests/test-mbmemcasecmp2.sh: New file.
31988         * tests/test-mbmemcasecmp3.sh: New file.
31989         * tests/test-mbmemcasecmp.c: New file.
31990
31991         New module 'mbmemcasecmp'.
31992         * lib/mbmemcasecmp.h: New file.
31993         * lib/mbmemcasecmp.c: New file.
31994         * modules/mbmemcasecmp: New file.
31995
31996 2009-03-09  Bruno Haible  <bruno@clisp.org>
31997
31998         Tests for module 'unicase/ulc-casecoll'.
31999         * modules/unicase/ulc-casecoll-tests: New file.
32000         * tests/unicase/test-ulc-casecoll1.sh: New file.
32001         * tests/unicase/test-ulc-casecoll2.sh: New file.
32002         * tests/unicase/test-ulc-casecoll.c: New file.
32003
32004         New module 'unicase/ulc-casecoll'.
32005         * lib/unicase.h (ulc_casecoll): New declaration.
32006         * lib/unicase/ulc-casecoll.c: New file.
32007         * modules/unicase/ulc-casecoll: New file.
32008
32009         New module 'unicase/ulc-casexfrm'.
32010         * lib/unicase.h (ulc_casexfrm): New declaration.
32011         * lib/unicase/ulc-casexfrm.c: New file.
32012         * modules/unicase/ulc-casexfrm: New file.
32013
32014 2009-03-09  Bruno Haible  <bruno@clisp.org>
32015
32016         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32017         invocations.
32018
32019         * m4/mbscasecmp.m4: Remove file.
32020         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32021         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32022
32023         * m4/mbscasestr.m4: Remove file.
32024         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32025         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32026
32027         * m4/mbschr.m4: Remove file.
32028         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32029         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32030
32031         * m4/mbscspn.m4: Remove file.
32032         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32033         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32034
32035         * m4/mbslen.m4: Remove file.
32036         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32037         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32038
32039         * m4/mbsncasecmp.m4: Remove file.
32040         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32041         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32042
32043         * m4/mbsnlen.m4: Remove file.
32044         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32045         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32046
32047         * m4/mbspbrk.m4: Remove file.
32048         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32049         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32050
32051         * m4/mbspcasecmp.m4: Remove file.
32052         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32053         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32054
32055         * m4/mbsrchr.m4: Remove file.
32056         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32057         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32058
32059         * m4/mbssep.m4: Remove file.
32060         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32061         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32062
32063         * m4/mbsspn.m4: Remove file.
32064         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32065         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32066
32067         * m4/mbsstr.m4: Remove file.
32068         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32069         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32070
32071         * m4/mbstok_r.m4: Remove file.
32072         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32073         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32074
32075         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32076
32077         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32078         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32079
32080         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32081
32082 2009-03-08  Bruno Haible  <bruno@clisp.org>
32083
32084         Tests for module 'unicase/ulc-casecmp'.
32085         * modules/unicase/ulc-casecmp-tests: New file.
32086         * tests/unicase/test-ulc-casecmp1.sh: New file.
32087         * tests/unicase/test-ulc-casecmp2.sh: New file.
32088         * tests/unicase/test-ulc-casecmp.c: New file.
32089
32090         New module 'unicase/ulc-casecmp'.
32091         * lib/unicase.h (ulc_casecmp): New declaration.
32092         * lib/unicase/ulc-casecmp.c: New file.
32093         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32094         'const SRC_UNIT *'.
32095         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32096         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32097         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32098         * modules/unicase/ulc-casecmp: New file.
32099
32100         Tests for module 'unicase/u32-is-cased'.
32101         * modules/unicase/u32-is-cased-tests: New file.
32102         * tests/unicase/test-u32-is-cased.c: New file.
32103
32104         Tests for module 'unicase/u16-is-cased'.
32105         * modules/unicase/u16-is-cased-tests: New file.
32106         * tests/unicase/test-u16-is-cased.c: New file.
32107
32108         Tests for module 'unicase/u8-is-cased'.
32109         * modules/unicase/u8-is-cased-tests: New file.
32110         * tests/unicase/test-u8-is-cased.c: New file.
32111         * tests/unicase/test-is-cased.h: New file.
32112
32113         New module 'unicase/u32-is-cased'.
32114         * lib/unicase/u32-is-cased.c: New file.
32115         * modules/unicase/u32-is-cased: New file.
32116
32117         New module 'unicase/u16-is-cased'.
32118         * lib/unicase/u16-is-cased.c: New file.
32119         * modules/unicase/u16-is-cased: New file.
32120
32121         New module 'unicase/u8-is-cased'.
32122         * lib/unicase/u8-is-cased.c: New file.
32123         * lib/unicase/u-is-cased.h: New file.
32124         * modules/unicase/u8-is-cased: New file.
32125
32126         Tests for module 'unicase/u32-is-casefolded'.
32127         * modules/unicase/u32-is-casefolded-tests: New file.
32128         * tests/unicase/test-u32-is-casefolded.c: New file.
32129
32130         Tests for module 'unicase/u16-is-casefolded'.
32131         * modules/unicase/u16-is-casefolded-tests: New file.
32132         * tests/unicase/test-u16-is-casefolded.c: New file.
32133
32134         Tests for module 'unicase/u8-is-casefolded'.
32135         * modules/unicase/u8-is-casefolded-tests: New file.
32136         * tests/unicase/test-u8-is-casefolded.c: New file.
32137         * tests/unicase/test-is-casefolded.h: New file.
32138
32139         New module 'unicase/u32-is-casefolded'.
32140         * lib/unicase/u32-is-casefolded.c: New file.
32141         * modules/unicase/u32-is-casefolded: New file.
32142
32143         New module 'unicase/u16-is-casefolded'.
32144         * lib/unicase/u16-is-casefolded.c: New file.
32145         * modules/unicase/u16-is-casefolded: New file.
32146
32147         New module 'unicase/u8-is-casefolded'.
32148         * lib/unicase/u8-is-casefolded.c: New file.
32149         * modules/unicase/u8-is-casefolded: New file.
32150
32151         Tests for module 'unicase/u32-is-titlecase'.
32152         * modules/unicase/u32-is-titlecase-tests: New file.
32153         * tests/unicase/test-u32-is-titlecase.c: New file.
32154
32155         Tests for module 'unicase/u16-is-titlecase'.
32156         * modules/unicase/u16-is-titlecase-tests: New file.
32157         * tests/unicase/test-u16-is-titlecase.c: New file.
32158
32159         Tests for module 'unicase/u8-is-titlecase'.
32160         * modules/unicase/u8-is-titlecase-tests: New file.
32161         * tests/unicase/test-u8-is-titlecase.c: New file.
32162         * tests/unicase/test-is-titlecase.h: New file.
32163
32164         New module 'unicase/u32-is-titlecase'.
32165         * lib/unicase/u32-is-titlecase.c: New file.
32166         * modules/unicase/u32-is-titlecase: New file.
32167
32168         New module 'unicase/u16-is-titlecase'.
32169         * lib/unicase/u16-is-titlecase.c: New file.
32170         * modules/unicase/u16-is-titlecase: New file.
32171
32172         New module 'unicase/u8-is-titlecase'.
32173         * lib/unicase/u8-is-titlecase.c: New file.
32174         * modules/unicase/u8-is-titlecase: New file.
32175
32176         Tests for module 'unicase/u32-is-lowercase'.
32177         * modules/unicase/u32-is-lowercase-tests: New file.
32178         * tests/unicase/test-u32-is-lowercase.c: New file.
32179
32180         Tests for module 'unicase/u16-is-lowercase'.
32181         * modules/unicase/u16-is-lowercase-tests: New file.
32182         * tests/unicase/test-u16-is-lowercase.c: New file.
32183
32184         Tests for module 'unicase/u8-is-lowercase'.
32185         * modules/unicase/u8-is-lowercase-tests: New file.
32186         * tests/unicase/test-u8-is-lowercase.c: New file.
32187         * tests/unicase/test-is-lowercase.h: New file.
32188
32189         New module 'unicase/u32-is-lowercase'.
32190         * lib/unicase/u32-is-lowercase.c: New file.
32191         * modules/unicase/u32-is-lowercase: New file.
32192
32193         New module 'unicase/u16-is-lowercase'.
32194         * lib/unicase/u16-is-lowercase.c: New file.
32195         * modules/unicase/u16-is-lowercase: New file.
32196
32197         New module 'unicase/u8-is-lowercase'.
32198         * lib/unicase/u8-is-lowercase.c: New file.
32199         * modules/unicase/u8-is-lowercase: New file.
32200
32201         Tests for module 'unicase/u32-is-uppercase'.
32202         * modules/unicase/u32-is-uppercase-tests: New file.
32203         * tests/unicase/test-u32-is-uppercase.c: New file.
32204
32205         Tests for module 'unicase/u16-is-uppercase'.
32206         * modules/unicase/u16-is-uppercase-tests: New file.
32207         * tests/unicase/test-u16-is-uppercase.c: New file.
32208
32209         Tests for module 'unicase/u8-is-uppercase'.
32210         * modules/unicase/u8-is-uppercase-tests: New file.
32211         * tests/unicase/test-u8-is-uppercase.c: New file.
32212         * tests/unicase/test-is-uppercase.h: New file.
32213
32214         New module 'unicase/u32-is-uppercase'.
32215         * lib/unicase/u32-is-uppercase.c: New file.
32216         * modules/unicase/u32-is-uppercase: New file.
32217
32218         New module 'unicase/u16-is-uppercase'.
32219         * lib/unicase/u16-is-uppercase.c: New file.
32220         * modules/unicase/u16-is-uppercase: New file.
32221
32222         New module 'unicase/u8-is-uppercase'.
32223         * lib/unicase/u8-is-uppercase.c: New file.
32224         * modules/unicase/u8-is-uppercase: New file.
32225
32226         New module 'unicase/u32-is-invariant'.
32227         * lib/unicase/u32-is-invariant.c: New file.
32228         * modules/unicase/u32-is-invariant: New file.
32229
32230         New module 'unicase/u16-is-invariant'.
32231         * lib/unicase/u16-is-invariant.c: New file.
32232         * modules/unicase/u16-is-invariant: New file.
32233
32234         New module 'unicase/u8-is-invariant'.
32235         * lib/unicase/u8-is-invariant.c: New file.
32236         * lib/unicase/invariant.h: New file.
32237         * lib/unicase/u-is-invariant.h: New file.
32238         * modules/unicase/u8-is-invariant: New file.
32239
32240         Tests for module 'unicase/u32-casecoll'.
32241         * modules/unicase/u32-casecoll-tests: New file.
32242         * tests/unicase/test-u32-casecoll.c: New file.
32243
32244         Tests for module 'unicase/u16-casecoll'.
32245         * modules/unicase/u16-casecoll-tests: New file.
32246         * tests/unicase/test-u16-casecoll.c: New file.
32247
32248         Tests for module 'unicase/u8-casecoll'.
32249         * modules/unicase/u8-casecoll-tests: New file.
32250         * tests/unicase/test-u8-casecoll.c: New file.
32251
32252         New module 'unicase/u32-casecoll'.
32253         * lib/unicase/u32-casecoll.c: New file.
32254         * modules/unicase/u32-casecoll: New file.
32255
32256         New module 'unicase/u16-casecoll'.
32257         * lib/unicase/u16-casecoll.c: New file.
32258         * modules/unicase/u16-casecoll: New file.
32259
32260         New module 'unicase/u8-casecoll'.
32261         * lib/unicase/u8-casecoll.c: New file.
32262         * lib/unicase/u-casecoll.h: New file.
32263         * modules/unicase/u8-casecoll: New file.
32264
32265         New module 'unicase/u32-casexfrm'.
32266         * lib/unicase/u32-casexfrm.c: New file.
32267         * modules/unicase/u32-casexfrm: New file.
32268
32269         New module 'unicase/u16-casexfrm'.
32270         * lib/unicase/u16-casexfrm.c: New file.
32271         * modules/unicase/u16-casexfrm: New file.
32272
32273         New module 'unicase/u8-casexfrm'.
32274         * lib/unicase/u8-casexfrm.c: New file.
32275         * lib/unicase/u-casexfrm.h: New file.
32276         * modules/unicase/u8-casexfrm: New file.
32277
32278         Tests for module 'unicase/u32-casecmp'.
32279         * modules/unicase/u32-casecmp-tests: New file.
32280         * tests/unicase/test-u32-casecmp.c: New file.
32281
32282         Tests for module 'unicase/u16-casecmp'.
32283         * modules/unicase/u16-casecmp-tests: New file.
32284         * tests/unicase/test-u16-casecmp.c: New file.
32285
32286         Tests for module 'unicase/u8-casecmp'.
32287         * modules/unicase/u8-casecmp-tests: New file.
32288         * tests/unicase/test-u8-casecmp.c: New file.
32289         * tests/unicase/test-casecmp.h: New file.
32290
32291         New module 'unicase/u32-casecmp'.
32292         * lib/unicase/u32-casecmp.c: New file.
32293         * modules/unicase/u32-casecmp: New file.
32294
32295         New module 'unicase/u16-casecmp'.
32296         * lib/unicase/u16-casecmp.c: New file.
32297         * modules/unicase/u16-casecmp: New file.
32298
32299         New module 'unicase/u8-casecmp'.
32300         * lib/unicase/u8-casecmp.c: New file.
32301         * lib/unicase/u-casecmp.h: New file.
32302         * modules/unicase/u8-casecmp: New file.
32303
32304         Tests for module 'unicase/u32-casefold'.
32305         * modules/unicase/u32-casefold-tests: New file.
32306         * tests/unicase/test-u32-casefold.c: New file.
32307
32308         Tests for module 'unicase/u16-casefold'.
32309         * modules/unicase/u16-casefold-tests: New file.
32310         * tests/unicase/test-u16-casefold.c: New file.
32311
32312         Tests for module 'unicase/u8-casefold'.
32313         * modules/unicase/u8-casefold-tests: New file.
32314         * tests/unicase/test-u8-casefold.c: New file.
32315
32316         New module 'unicase/u32-casefold'.
32317         * lib/unicase/u32-casefold.c: New file.
32318         * modules/unicase/u32-casefold: New file.
32319
32320         New module 'unicase/u16-casefold'.
32321         * lib/unicase/u16-casefold.c: New file.
32322         * modules/unicase/u16-casefold: New file.
32323
32324         New module 'unicase/u8-casefold'.
32325         * lib/unicase/u8-casefold.c: New file.
32326         * lib/unicase/u-casefold.h: New file.
32327         * modules/unicase/u8-casefold: New file.
32328
32329         New module 'unicase/tocasefold'.
32330         * lib/unicase/casefold.h: New file.
32331         * lib/unicase/tocasefold.c: New file.
32332         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32333         * modules/unicase/tocasefold: New file.
32334
32335         Tests for module 'unicase/u32-totitle'.
32336         * modules/unicase/u32-totitle-tests: New file.
32337         * tests/unicase/test-u32-totitle.c: New file.
32338
32339         Tests for module 'unicase/u16-totitle'.
32340         * modules/unicase/u16-totitle-tests: New file.
32341         * tests/unicase/test-u16-totitle.c: New file.
32342
32343         Tests for module 'unicase/u8-totitle'.
32344         * modules/unicase/u8-totitle-tests: New file.
32345         * tests/unicase/test-u8-totitle.c: New file.
32346
32347         New module 'unicase/u32-totitle'.
32348         * lib/unicase/u32-totitle.c: New file.
32349         * modules/unicase/u32-totitle: New file.
32350
32351         New module 'unicase/u16-totitle'.
32352         * lib/unicase/u16-totitle.c: New file.
32353         * modules/unicase/u16-totitle: New file.
32354
32355         New module 'unicase/u8-totitle'.
32356         * lib/unicase/u8-totitle.c: New file.
32357         * lib/unicase/u-totitle.h: New file.
32358         * modules/unicase/u8-totitle: New file.
32359
32360         Tests for module 'unicase/u32-tolower'.
32361         * modules/unicase/u32-tolower-tests: New file.
32362         * tests/unicase/test-u32-tolower.c: New file.
32363
32364         Tests for module 'unicase/u16-tolower'.
32365         * modules/unicase/u16-tolower-tests: New file.
32366         * tests/unicase/test-u16-tolower.c: New file.
32367
32368         Tests for module 'unicase/u8-tolower'.
32369         * modules/unicase/u8-tolower-tests: New file.
32370         * tests/unicase/test-u8-tolower.c: New file.
32371
32372         New module 'unicase/u32-tolower'.
32373         * lib/unicase/u32-tolower.c: New file.
32374         * modules/unicase/u32-tolower: New file.
32375
32376         New module 'unicase/u16-tolower'.
32377         * lib/unicase/u16-tolower.c: New file.
32378         * modules/unicase/u16-tolower: New file.
32379
32380         New module 'unicase/u8-tolower'.
32381         * lib/unicase/u8-tolower.c: New file.
32382         * modules/unicase/u8-tolower: New file.
32383
32384         Tests for module 'unicase/u32-toupper'.
32385         * modules/unicase/u32-toupper-tests: New file.
32386         * tests/unicase/test-u32-toupper.c: New file.
32387
32388         Tests for module 'unicase/u16-toupper'.
32389         * modules/unicase/u16-toupper-tests: New file.
32390         * tests/unicase/test-u16-toupper.c: New file.
32391
32392         Tests for module 'unicase/u8-toupper'.
32393         * modules/unicase/u8-toupper-tests: New file.
32394         * tests/unicase/test-u8-toupper.c: New file.
32395
32396         New module 'unicase/u32-toupper'.
32397         * lib/unicase/u32-toupper.c: New file.
32398         * modules/unicase/u32-toupper: New file.
32399
32400         New module 'unicase/u16-toupper'.
32401         * lib/unicase/u16-toupper.c: New file.
32402         * modules/unicase/u16-toupper: New file.
32403
32404         New module 'unicase/u8-toupper'.
32405         * lib/unicase/u8-toupper.c: New file.
32406         * modules/unicase/u8-toupper: New file.
32407
32408         New module 'unicase/u32-casemap'.
32409         * lib/unicase/u32-casemap.c: New file.
32410         * modules/unicase/u32-casemap: New file.
32411
32412         New module 'unicase/u16-casemap'.
32413         * lib/unicase/u16-casemap.c: New file.
32414         * modules/unicase/u16-casemap: New file.
32415
32416         New module 'unicase/u8-casemap'.
32417         * lib/unicase/unicasemap.h: New file.
32418         * lib/unicase/u8-casemap.c: New file.
32419         * lib/unicase/u-casemap.h: New file.
32420         * modules/unicase/u8-casemap: New file.
32421
32422         New module 'unicase/special-casing'.
32423         * lib/unicase/special-casing.h: New file.
32424         * lib/unicase/special-casing.c: New file.
32425         * lib/unicase/special-casing-table.gperf: New file, generated by
32426         gen-uni-tables.c.
32427         * modules/unicase/special-casing: New file.
32428
32429         Tests for module 'unicase/locale-language'.
32430         * modules/unicase/locale-language-tests: New file.
32431         * tests/unicase/test-locale-language.sh: New file.
32432         * tests/unicase/test-locale-language.c: New file.
32433
32434         New module 'unicase/locale-language'.
32435         * lib/unicase/locale-language.c: New file.
32436         * lib/unicase/locale-languages.gperf: New file.
32437         * modules/unicase/locale-language: New file.
32438
32439         Generate more tables for case conversion and case folding.
32440         * lib/gen-uni-tables.c (SCC_*): New enum items.
32441         (struct special_casing_rule): New type.
32442         (casing_rules, num_casing_rules, allocated_casing_rules): New
32443         variables.
32444         (add_casing_rule, fill_casing_rules): New functions.
32445         (struct casefold_rule): New type.
32446         (casefolding_rules, num_casefolding_rules,
32447         allocated_casefolding_rules): New variables.
32448         (fill_casefolding_rules): New function.
32449         (unicode_casefold): New variable.
32450         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32451         sort_casing_rules, output_casing_rules): New functions.
32452         (main): Accept to more arguments: SpecialCasing.txt and
32453         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32454         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32455         Output mapping for casefolding.
32456
32457         * lib/unicase.h: Include stdbool.h, uninorm.h.
32458         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32459         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32460         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32461         arguments.
32462         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32463         resultp arguments.
32464         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32465         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32466         resultp arguments.
32467         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32468         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32469         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32470         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32471         declarations.
32472         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32473
32474 2009-03-08  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32477         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32478         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32479         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32480
32481 2009-03-07  Bruno Haible  <bruno@clisp.org>
32482
32483         Adjust u*_normcmp, u*_normcoll API.
32484         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32485         u16_normcoll, u32_normcoll): Change failure conventions.
32486         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32487         errno and return -1.
32488         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32489
32490 2009-03-07  Bruno Haible  <bruno@clisp.org>
32491
32492         Tests for module 'uninorm/u32-normcoll'.
32493         * modules/uninorm/u32-normcoll-tests: New file.
32494         * tests/uninorm/test-u32-normcoll.c: New file.
32495
32496         Tests for module 'uninorm/u16-normcoll'.
32497         * modules/uninorm/u16-normcoll-tests: New file.
32498         * tests/uninorm/test-u16-normcoll.c: New file.
32499
32500         Tests for module 'uninorm/u8-normcoll'.
32501         * modules/uninorm/u8-normcoll-tests: New file.
32502         * tests/uninorm/test-u8-normcoll.c: New file.
32503
32504 2009-03-07  Bruno Haible  <bruno@clisp.org>
32505
32506         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32507         tests/uninorm/test-u32-normcmp.c.
32508         * tests/uninorm/test-u32-normcmp.c: Include it.
32509         (test_nonascii): New function, extracted from main. Add some more
32510         tests.
32511         (main): Invoke test_ascii and test_nonascii.
32512         * modules/uninorm/u32-normcmp-tests (Files): Add
32513         tests/uninorm/test-u32-normcmp.h.
32514         (Depends-on): Remove uninorm/u32-normcmp.
32515
32516         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32517         tests/uninorm/test-u16-normcmp.c.
32518         * tests/uninorm/test-u16-normcmp.c: Include it.
32519         (test_nonascii): New function, extracted from main. Add some more
32520         tests.
32521         (main): Invoke test_ascii and test_nonascii.
32522         * modules/uninorm/u16-normcmp-tests (Files): Add
32523         tests/uninorm/test-u16-normcmp.h.
32524         (Depends-on): Remove uninorm/u16-normcmp.
32525
32526         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32527         tests/uninorm/test-u8-normcmp.c.
32528         * tests/uninorm/test-u8-normcmp.c: Include it.
32529         (test_nonascii): New function, extracted from main. Add some more
32530         tests.
32531         (main): Invoke test_ascii and test_nonascii.
32532         * modules/uninorm/u8-normcmp-tests (Files): Add
32533         tests/uninorm/test-u8-normcmp.h.
32534         (Depends-on): Remove uninorm/u8-normcmp.
32535
32536 2009-03-07  Bruno Haible  <bruno@clisp.org>
32537
32538         New module 'uninorm/u32-normcoll'.
32539         * lib/uninorm/u32-normcoll.c: New file.
32540         * modules/uninorm/u32-normcoll: New file.
32541
32542         New module 'uninorm/u16-normcoll'.
32543         * lib/uninorm/u16-normcoll.c: New file.
32544         * modules/uninorm/u16-normcoll: New file.
32545
32546         New module 'uninorm/u8-normcoll'.
32547         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32548         declarations.
32549         * lib/uninorm/u8-normcoll.c: New file.
32550         * lib/uninorm/u-normcoll.h: New file.
32551         * modules/uninorm/u8-normcoll: New file.
32552
32553         New module 'uninorm/u32-normxfrm'.
32554         * lib/uninorm/u32-normxfrm.c: New file.
32555         * modules/uninorm/u32-normxfrm: New file.
32556
32557         New module 'uninorm/u16-normxfrm'.
32558         * lib/uninorm/u16-normxfrm.c: New file.
32559         * modules/uninorm/u16-normxfrm: New file.
32560
32561         New module 'uninorm/u8-normxfrm'.
32562         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32563         declarations.
32564         * lib/uninorm/u8-normxfrm.c: New file.
32565         * lib/uninorm/u-normxfrm.h: New file.
32566         * modules/uninorm/u8-normxfrm: New file.
32567
32568 2009-03-07  Bruno Haible  <bruno@clisp.org>
32569
32570         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32571         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32572         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32573
32574 2009-03-07  Bruno Haible  <bruno@clisp.org>
32575
32576         New module 'memxfrm'.
32577         * lib/memxfrm.h: New file.
32578         * lib/memxfrm.c: New file.
32579         * modules/memxfrm: New file.
32580
32581 2009-03-07  Bruno Haible  <bruno@clisp.org>
32582
32583         New module 'memcmp2'.
32584         * lib/memcmp2.h: New file.
32585         * lib/memcmp2.c: New file.
32586         * modules/memcmp2: New file.
32587
32588 2009-03-07  Bruno Haible  <bruno@clisp.org>
32589
32590         Tests for module 'uninorm/decomposing-form'.
32591         * modules/uninorm/decomposing-form-tests: New file.
32592         * tests/uninorm/test-decomposing-form.c: New file.
32593
32594         New module 'uninorm/decomposing-form'.
32595         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32596         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32597         Add 'decomposing_variant' field.
32598         * lib/uninorm/decomposing-form.c: New file.
32599         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32600         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32601         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32602         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32603         * modules/uninorm/decomposing-form: New file.
32604         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32605         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32606
32607 2009-03-07  Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32610         strings.
32611
32612 2009-03-06  Bruno Haible  <bruno@clisp.org>
32613
32614         Tests for module 'uninorm/u32-normcmp'.
32615         * tests/uninorm/test-u32-normcmp.c: New file.
32616         * modules/uninorm/u32-normcmp-tests: New file.
32617
32618         Tests for module 'uninorm/u16-normcmp'.
32619         * tests/uninorm/test-u16-normcmp.c: New file.
32620         * modules/uninorm/u16-normcmp-tests: New file.
32621
32622         Tests for module 'uninorm/u8-normcmp'.
32623         * tests/uninorm/test-u8-normcmp.c: New file.
32624         * modules/uninorm/u8-normcmp-tests: New file.
32625
32626         New module 'uninorm/u32-normcmp'.
32627         * lib/uninorm/u32-normcmp.c: New file.
32628         * modules/uninorm/u32-normcmp: New file.
32629
32630         New module 'uninorm/u16-normcmp'.
32631         * lib/uninorm/u16-normcmp.c: New file.
32632         * modules/uninorm/u16-normcmp: New file.
32633
32634         New module 'uninorm/u8-normcmp'.
32635         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32636         declarations.
32637         * lib/uninorm/u8-normcmp.c: New file.
32638         * lib/uninorm/u-normcmp.h: New file.
32639         * modules/uninorm/u8-normcmp: New file.
32640
32641 2009-03-06  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32644         Reported by Eric Blake.
32645
32646 2009-03-06  Eric Blake  <ebb9@byu.net>
32647             Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32650         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32651         condition.
32652         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32653         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32654         condition.
32655         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32656
32657 2009-03-06  Eric Blake  <ebb9@byu.net>
32658
32659         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32660         to avoid compiler warnings.
32661         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32662
32663 2009-03-05  Bruno Haible  <bruno@clisp.org>
32664
32665         * tests/test-ftell.c (main): Disable test beyond end of file on
32666         FreeMiNT.
32667         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32668
32669 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32670
32671         * lib/filevercmp.c: Move hidden files up in ordering.
32672         * tests/test-filevercmp.c: Add tests for hidden files.
32673
32674 2009-03-04  Bruno Haible  <bruno@clisp.org>
32675
32676         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32677         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32678         AM_CFLAGS.
32679         Reported by Simon Josefsson.
32680
32681 2009-03-03  Bruno Haible  <bruno@clisp.org>
32682
32683         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32684         Reported by Simon Josefsson.
32685
32686         * doc/ld-version-script.texi: Update node reference.
32687
32688 2009-03-03  Bruno Haible  <bruno@clisp.org>
32689
32690         * modules/visibility (License): Change to 'unlimited'.
32691         Suggested by Simon Josefsson.
32692
32693 2009-03-03  Jim Meyering  <meyering@redhat.com>
32694
32695         unlinkdir: cannot_unlink_dir may modify process state
32696         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32697         it's neither thread-safe nor appropriate for use in a library.
32698
32699 2009-03-03  Eric Blake  <ebb9@byu.net>
32700
32701         test-closein: silence test under Darwin
32702         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32703         care if it dies from EPIPE or EBADF.
32704
32705 2009-03-03  Bruno Haible  <bruno@clisp.org>
32706
32707         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32708         earlier.
32709         * doc/visibility.texi: Fix @node and @section.
32710
32711 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32712
32713         * doc/gnulib.texi: Link to sections for ld version script and
32714         visibility.
32715         * doc/visibility.texi: Add @node and @section.
32716         * modules/ld-version-script: New module.
32717         * m4/ld-version-script.m4: New file.
32718         * doc/ld-version-script.texi: New file.
32719
32720 2009-03-02  David Lutterkort  <lutter@redhat.com>
32721
32722         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32724
32725 2009-03-02  Bruno Haible  <bruno@clisp.org>
32726
32727         * doc/visibility.texi: Mention libtool's -export-symbols option.
32728
32729 2009-03-02  Jim Meyering  <meyering@redhat.com>
32730
32731         announce-gen: new option: --no-print-checksums
32732         * build-aux/announce-gen (usage): Describe it.
32733         (print_checksums): Print a newline here, not in the [*] footnote.
32734         (main): Honor it.
32735
32736 2009-03-01  Bruno Haible  <bruno@clisp.org>
32737
32738         Use socklen_t in the native Windows replacements prototypes.
32739         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32740         instead of 'int'.
32741         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32742         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32743         * modules/getsockopt (Depends-on): Add socklen.
32744         * modules/setsockopt (Depends-on): Add socklen.
32745
32746 2009-03-01  Bruno Haible  <bruno@clisp.org>
32747
32748         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32749         least 4.2.
32750
32751 2009-03-01  Eric Blake  <ebb9@byu.net>
32752             Bruno Haible  <bruno@clisp.org>
32753
32754         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32755         error messages.
32756         * lib/wait-process.c (wait_subprocess): Omit error message about
32757         deadly signal sent to the child of termsigp != NULL.
32758
32759 2009-03-01  Eric Blake  <ebb9@byu.net>
32760
32761         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32762
32763 2009-03-01  Bruno Haible  <bruno@clisp.org>
32764
32765         Avoid a gcc warning.
32766         * tests/test-sched.c (b): Make global.
32767         Reported by Eric Blake.
32768
32769 2009-01-19  Martin Lambers  <marlam@marlam.de>
32770
32771         Provide POSIX semantics for socket timeout options on W32.
32772         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32773         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32774         * modules/setsockopt: Depend on sys_time module for struct timeval.
32775         * modules/getsockopt: Depend on sys_time module for struct timeval.
32776
32777 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32778
32779         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32780         __USE_GNU, for consistency with netdb.in.h.
32781         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32782
32783 2009-03-01  Bruno Haible  <bruno@clisp.org>
32784
32785         More support for FreeMiNT.
32786         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32787         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32788
32789 2009-03-01  Bruno Haible  <bruno@clisp.org>
32790
32791         More support for FreeMiNT.
32792         * lib/fpurge.c (fpurge): Correct last commit.
32793         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32794
32795 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32796
32797         Fix unportable awk script in vc-list-files.
32798         * build-aux/vc-list-files: In the replacement awk script, use
32799         substr with a second argument of 1, not zero.
32800         Report by Simon Josefsson.
32801
32802 2009-02-28  Bruno Haible  <bruno@clisp.org>
32803
32804         More support for FreeMiNT.
32805         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32806         to FreeMiNT today.
32807         * lib/fwriting.c (fwriting): Likewise.
32808         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32809
32810 2009-02-28  Bruno Haible  <bruno@clisp.org>
32811
32812         * tests/test-freadseek.c (main): Disable test beyond end of file on
32813         FreeMiNT.
32814         * tests/test-ftello.c (main): Likewise.
32815         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32816
32817 2009-02-28  Bruno Haible  <bruno@clisp.org>
32818
32819         Add tentative support for FreeMiNT.
32820         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32821         * lib/fpurge.c (fpurge): Likewise.
32822         * lib/freadable.c (freadable): Likewise.
32823         * lib/freading.c (freading): Likewise.
32824         * lib/freadptr.c (freadptr): Likewise.
32825         * lib/freadseek.c (freadptrinc): Likewise.
32826         * lib/fseeko.c (rpl_fseeko): Likewise.
32827         * lib/fseterr.c (fseterr): Likewise.
32828         * lib/fwritable.c (fwritable): Likewise.
32829         * lib/fwriting.c (fwriting): Likewise.
32830         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32831         Hourihane.
32832         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32833
32834 2009-02-28  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32837         SIGCHLD.
32838         Reported by Jim Meyering.
32839
32840 2009-02-28  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32843         Mention the results of these tests on various platforms.
32844         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32845         order.
32846         * doc/posix-functions/printf.texi: Likewise.
32847         * doc/posix-functions/snprintf.texi: Likewise.
32848         * doc/posix-functions/sprintf.texi: Likewise.
32849         * doc/posix-functions/vfprintf.texi: Likewise.
32850         * doc/posix-functions/vprintf.texi: Likewise.
32851         * doc/posix-functions/vsnprintf.texi: Likewise.
32852         * doc/posix-functions/vsprintf.texi: Likewise.
32853         * doc/glibc-functions/obstack_printf.texi: Likewise.
32854         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32855
32856 2009-02-28  Bruno Haible  <bruno@clisp.org>
32857
32858         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32859         Reported by Loïc Minier <lool@dooz.org>.
32860
32861 2009-02-27  Bruno Haible  <bruno@clisp.org>
32862
32863         * gnulib-tool (func_import): Make the sed expression used to create the
32864         sed script for updating the .gitignore file POSIX compliant.
32865         Reported by Eric Blake.
32866
32867 2009-02-27  Bruno Haible  <bruno@clisp.org>
32868
32869         * gnulib-tool (sed): Don't alias as "sed --posix".
32870         Reported by Eric Blake.
32871
32872 2009-02-27  Bruno Haible  <bruno@clisp.org>
32873
32874         Avoid test link errors.
32875         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32876         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32877         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32878         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32880
32881 2009-02-27  Bruno Haible  <bruno@clisp.org>
32882
32883         Avoid spurious "(cached)" in configure output.
32884         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32885         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32886         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32887         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32888         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32889         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32890         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32891         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32892         Reported by Eric Blake.
32893
32894 2009-02-27  Eric Blake  <ebb9@byu.net>
32895
32896         printf: fix regression in previous patch
32897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32898
32899 2009-02-27  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32902         value.
32903         * lib/stdint.in.h: Likewise.
32904         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32905
32906 2009-02-27  Eric Blake  <ebb9@byu.net>
32907
32908         doc: mention more functions added in cygwin 1.7.0
32909         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32910         addition.
32911         * doc/posix-functions/open_wmemstream.texi: Likewise.
32912         * doc/posix-functions/wcsnlen.texi: Likewise.
32913         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32914         * doc/posix-functions/wcstod.texi: Likewise.
32915         * doc/posix-functions/wcstof.texi: Likewise.
32916         * doc/posix-functions/wcstoimax.texi: Likewise.
32917         * doc/posix-functions/wcstok.texi: Likewise.
32918         * doc/posix-functions/wcstoumax.texi: Likewise.
32919
32920         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32922         * doc/posix-functions/fprintf.texi: Update.
32923         * doc/posix-functions/printf.texi: Update.
32924         * doc/posix-functions/snprintf.texi: Update.
32925         * doc/posix-functions/sprintf.texi: Update.
32926         * doc/posix-functions/vfprintf.texi: Update.
32927         * doc/posix-functions/vprintf.texi: Update.
32928         * doc/posix-functions/vsnprintf.texi: Update.
32929         * doc/posix-functions/vsprintf.texi: Update.
32930         * doc/glibc-functions/obstack_printf.texi: Update.
32931         * doc/glibc-functions/obstack_vprintf.texi: Update.
32932
32933 2009-02-26  Eric Blake  <ebb9@byu.net>
32934
32935         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32936         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32937         compilation bug by using runtime conversion.
32938         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32939         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32940         * modules/ceill-tests (Files): Use nan.h.
32941         * modules/floorl-tests (Files): Likewise.
32942         * modules/frexpl-tests (Files): Likewise.
32943         * modules/isnanl-tests (Files): Likewise.
32944         * modules/ldexpl-tests (Files): Likewise.
32945         * modules/roundl-tests (Files): Likewise.
32946         * modules/truncl-tests (Files): Likewise.
32947         * tests/test-ceill.c (main): Use a working NaN.
32948         * tests/test-floorl.c (main): Likewise.
32949         * tests/test-frexpl.c (main): Likewise.
32950         * tests/test-isnan.c (test_long_double): Likewise.
32951         * tests/test-isnanl.h (main): Likewise.
32952         * tests/test-ldexpl.h (main): Likewise.
32953         * tests/test-roundl.h (main): Likewise.
32954         * tests/test-truncl.h (main): Likewise.
32955         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32956
32957 2009-02-26  Eric Blake  <ebb9@byu.net>
32958             Bruno Haible  <bruno@clisp.org>
32959
32960         Work around a *printf bug with %ls on Solaris.
32961         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32962         precision is specified, sprintf stops converting the wide string
32963         argument when the number of bytes that have been produced by this
32964         conversion equals or exceeds the precision.
32965         * doc/posix-functions/fprintf.texi: Update.
32966         * doc/posix-functions/printf.texi: Update.
32967         * doc/posix-functions/snprintf.texi: Update.
32968         * doc/posix-functions/sprintf.texi: Update.
32969         * doc/posix-functions/vfprintf.texi: Update.
32970         * doc/posix-functions/vprintf.texi: Update.
32971         * doc/posix-functions/vsnprintf.texi: Update.
32972         * doc/posix-functions/vsprintf.texi: Update.
32973         * doc/glibc-functions/obstack_printf.texi: Update.
32974         * doc/glibc-functions/obstack_vprintf.texi: Update.
32975
32976 2009-02-26  Eric Blake  <ebb9@byu.net>
32977
32978         stdlib: favor compiler check of random.h
32979         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32980         to avoid an ObjC random.h installed by Swarm.
32981
32982 2009-02-26  Bruno Haible  <bruno@clisp.org>
32983
32984         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32985         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32986         Reported by Gary V. Vaughan <gary@gnu.org>.
32987
32988 2009-02-26  Bruno Haible  <bruno@clisp.org>
32989
32990         Fix *printf behaviour regarding the %ls directive.
32991         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32992         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32993         NEED_PRINTF_DIRECTIVE_LS.
32994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32995         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32997         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32998         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32999         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33005         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33009         * doc/posix-functions/fprintf.texi: Update.
33010         * doc/posix-functions/printf.texi: Update.
33011         * doc/posix-functions/snprintf.texi: Update.
33012         * doc/posix-functions/sprintf.texi: Update.
33013         * doc/posix-functions/vfprintf.texi: Update.
33014         * doc/posix-functions/vprintf.texi: Update.
33015         * doc/posix-functions/vsnprintf.texi: Update.
33016         * doc/posix-functions/vsprintf.texi: Update.
33017         * doc/glibc-functions/obstack_printf.texi: Update.
33018         * doc/glibc-functions/obstack_vprintf.texi: Update.
33019         Reported by Eric Blake.
33020
33021 2009-02-25  Bruno Haible  <bruno@clisp.org>
33022
33023         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33024         with known value.
33025         Reported by Gary V. Vaughan <gary@gnu.org>.
33026
33027 2009-02-25  Bruno Haible  <bruno@clisp.org>
33028
33029         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33030         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33031         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33032         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33033         Reported by Gary V. Vaughan <gary@gnu.org>.
33034
33035 2009-02-25  Bruno Haible  <bruno@clisp.org>
33036
33037         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33038         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33039         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33040         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33041         Reported by Gary V. Vaughan <gary@gnu.org>.
33042
33043 2009-02-25  Eric Blake  <ebb9@byu.net>
33044
33045         tests: skip fseek/ftell tests if ungetc is broken
33046         * m4/ungetc.m4: New file.
33047         * modules/fseek-tests: Split test, so ungetc dependency is
33048         separate from rest of test.
33049         * modules/fseeko-tests: Likewise.
33050         * modules/ftell-tests: Likewise.
33051         * modules/ftello-tests: Likewise.
33052         * tests/test-fseek.c (main): Isolate ungetc dependency.
33053         * tests/test-fseeko.c (main): Likewise.
33054         * tests/test-ftell.c (main): Likewise.
33055         * tests/test-ftello.c (main): Likewise.
33056         * tests/test-fseek2.sh: New file.
33057         * tests/test-fseeko2.sh: Likewise.
33058         * tests/test-ftell2.sh: Likewise.
33059         * tests/test-ftello2.sh: Likewise.
33060
33061 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33062
33063         test-getaddrinfo: fix usage of skip return code 77
33064         * tests/test-gettaddrinfo.c: Return skip code 77 only
33065         for first occurance of skip (4x77 is not 77)
33066
33067 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33068
33069         strtod: avoid C99 decl-after-statement
33070         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33071
33072 2009-02-24  Eric Blake  <ebb9@byu.net>
33073
33074         strtod: detect HP-UX 11.31 bug
33075         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33076         Reported by Gary V. Vaughan.
33077
33078 2009-02-23  Bruno Haible  <bruno@clisp.org>
33079
33080         Fix invalid read past end of memory block.
33081         * lib/vasnprintf.c (DCHAR_SET): Define.
33082         (local_wcslen): Define only when needed.
33083         (local_strnlen, local_wcsnlen): New functions.
33084         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33085         directives that involve a conversion ourselves.
33086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33087         wcsnlen, mbrtowc, wcrtomb.
33088         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33089         * tests/test-vasprintf-posix.c (test_function): Likewise.
33090         * tests/test-snprintf-posix.h (test_function): Likewise.
33091         * tests/test-sprintf-posix.h (test_function): Likewise.
33092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33093
33094 2009-02-22  Bruno Haible  <bruno@clisp.org>
33095
33096         Implement new clarified decomposition of Hangul syllables.
33097         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33098         of type LTV, return only a pairwise decomposition.
33099         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33100         Likewise.
33101         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33102         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33103         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33104
33105 2009-02-22  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33108         zero-length results and shrink excess allocated memory.
33109         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33110         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33111         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33112         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33113         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33114         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33115         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33116         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33117         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33118         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33119         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33120         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33121
33122 2009-02-21  Bruno Haible  <bruno@clisp.org>
33123
33124         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33125         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33126         spaces after a period. Put a space between a macro name and its
33127         argument list. Trivial rewordings.
33128         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33129         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33130         (main): Return 0 explicitly.
33131
33132 2009-02-21  Bruno Haible  <bruno@clisp.org>
33133
33134         Tests for module 'uninorm/filter'.
33135         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33136         * modules/uninorm/filter-tests: New file.
33137
33138         New module 'uninorm/filter'.
33139         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33140         uninorm_filter_flush, uninorm_filter_free): New declarations.
33141         * lib/uninorm/uninorm-filter.c: New file.
33142         * modules/uninorm/filter: New file.
33143
33144 2009-02-21  Bruno Haible  <bruno@clisp.org>
33145
33146         Tests for module 'uninorm/nfkc'.
33147         * tests/uninorm/test-nfkc.c: New file.
33148         * tests/uninorm/test-u8-nfkc.c: New file.
33149         * tests/uninorm/test-u16-nfkc.c: New file.
33150         * tests/uninorm/test-u32-nfkc.c: New file.
33151         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33152         * tests/uninorm/test-u32-nfkc-big.c: New file.
33153         * modules/uninorm/nfkc-tests: New file.
33154
33155         New module 'uninorm/nfkc'.
33156         * lib/uninorm/nfkc.c: New file.
33157         * modules/uninorm/nfkc: New file.
33158
33159         Tests for module 'uninorm/nfkd'.
33160         * tests/uninorm/test-nfkd.c: New file.
33161         * tests/uninorm/test-u8-nfkd.c: New file.
33162         * tests/uninorm/test-u16-nfkd.c: New file.
33163         * tests/uninorm/test-u32-nfkd.c: New file.
33164         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33165         * tests/uninorm/test-u32-nfkd-big.c: New file.
33166         * modules/uninorm/nfkd-tests: New file.
33167
33168         New module 'uninorm/nfkd'.
33169         * lib/uninorm/nfkd.c: New file.
33170         * modules/uninorm/nfkd: New file.
33171
33172         Tests for module 'uninorm/nfc'.
33173         * tests/uninorm/test-nfc.c: New file.
33174         * tests/uninorm/test-u8-nfc.c: New file.
33175         * tests/uninorm/test-u16-nfc.c: New file.
33176         * tests/uninorm/test-u32-nfc.c: New file.
33177         * tests/uninorm/test-u32-nfc-big.sh: New file.
33178         * tests/uninorm/test-u32-nfc-big.c: New file.
33179         * modules/uninorm/nfc-tests: New file.
33180
33181         New module 'uninorm/nfc'.
33182         * lib/uninorm/nfc.c: New file.
33183         * modules/uninorm/nfc: New file.
33184
33185         Tests for module 'uninorm/nfd'.
33186         * tests/uninorm/test-nfd.c: New file.
33187         * tests/uninorm/test-u8-nfd.c: New file.
33188         * tests/uninorm/test-u16-nfd.c: New file.
33189         * tests/uninorm/test-u32-nfd.c: New file.
33190         * tests/uninorm/test-u32-nfd-big.sh: New file.
33191         * tests/uninorm/test-u32-nfd-big.c: New file.
33192         * tests/uninorm/test-u32-normalize-big.h: New file.
33193         * tests/uninorm/test-u32-normalize-big.c: New file.
33194         * tests/uninorm/NormalizationTest.txt: New file, created from
33195         Unicode 5.1.0 NormalizationTest.txt.
33196         * modules/uninorm/nfd-tests: New file.
33197
33198         New module 'uninorm/nfd'.
33199         * lib/uninorm/nfd.c: New file.
33200         * modules/uninorm/nfd: New file.
33201
33202         New module 'uninorm/u32-normalize'.
33203         * lib/uninorm/u32-normalize.c: New file.
33204         * modules/uninorm/u32-normalize: New file.
33205
33206         New module 'uninorm/u16-normalize'.
33207         * lib/uninorm/u16-normalize.c: New file.
33208         * modules/uninorm/u16-normalize: New file.
33209
33210         New module 'uninorm/u8-normalize'.
33211         * lib/uninorm/u8-normalize.c: New file.
33212         * lib/uninorm/normalize-internal.h: New file.
33213         * lib/uninorm/u-normalize-internal.h: New file.
33214         * modules/uninorm/u8-normalize: New file.
33215
33216         New module 'uninorm/decompose-internal'.
33217         * lib/uninorm/decompose-internal.c: New file.
33218         * modules/uninorm/decompose-internal: New file.
33219
33220         Tests for module 'uninorm/composition'.
33221         * tests/uninorm/test-composition.c: New file.
33222         * modules/uninorm/composition-tests: New file.
33223
33224         New module 'uninorm/composition'.
33225         * lib/uninorm/composition.c: New file.
33226         * lib/uninorm/composition-table.gperf: New file, generated by
33227         gen-uni-tables.
33228         * modules/uninorm/composition: New file.
33229
33230         Tests for module 'uninorm/compat-decomposition'.
33231         * tests/uninorm/test-compat-decomposition.c: New file.
33232         * modules/uninorm/compat-decomposition-tests: New file.
33233
33234         New module 'uninorm/compat-decomposition'.
33235         * lib/uninorm/decompose-internal.h: New file.
33236         * lib/uninorm/compat-decomposition.c: New file.
33237         * modules/uninorm/compat-decomposition: New file.
33238
33239         Tests for module 'uninorm/canonical-decomposition'.
33240         * tests/uninorm/test-canonical-decomposition.c: New file.
33241         * modules/uninorm/canonical-decomposition-tests: New file.
33242
33243         New module 'uninorm/canonical-decomposition'.
33244         * lib/uninorm/canonical-decomposition.c: New file.
33245         * modules/uninorm/canonical-decomposition: New file.
33246
33247         Tests for module 'uninorm/decomposition'.
33248         * tests/uninorm/test-decomposition.c: New file.
33249         * modules/uninorm/decomposition-tests: New file.
33250
33251         New module 'uninorm/decomposition'.
33252         * lib/uninorm/decomposition.c: New file.
33253         * modules/uninorm/decomposition: New file.
33254
33255         New module 'uninorm/decomposition-table'.
33256         * lib/uninorm/decomposition-table.h: New file.
33257         * lib/uninorm/decomposition-table.c: New file.
33258         * lib/uninorm/decomposition-table1.h: New file, generated by
33259         gen-uni-tables.
33260         * lib/uninorm/decomposition-table2.h: New file, generated by
33261         gen-uni-tables.
33262         * modules/uninorm/decomposition-table: New file.
33263
33264         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33265         (UC_DECOMP_*): New enumeration items.
33266         (get_decomposition): New function.
33267         (struct decomp_table): New type.
33268         (output_decomposition, output_decomposition_tables): New functions.
33269         (unicode_composition_exclusions): New variable.
33270         (fill_composition_exclusions, debug_output_composition_tables): New
33271         functions.
33272         (main): Accept one more argument. Invoke fill_composition_exclusions.
33273         Output decomposition and composition tables.
33274
33275         New module 'uninorm/base'.
33276         * lib/uninorm.h: New file.
33277         * lib/unictype.h: Update comment.
33278         * modules/uninorm/base: New file.
33279
33280 2009-02-21  David Lutterkort  <lutter@redhat.com>
33281
33282         Tests for module 'safe-alloc'.
33283         * tests/test-safe-alloc.c: New file.
33284         * modules/safe-alloc-tests: New file.
33285
33286         New module 'safe-alloc'.
33287         * lib/safe-alloc.h: New file.
33288         * lib/safe-alloc.c: New file.
33289         * m4/safe-alloc.m4: New file.
33290         * modules/safe-alloc: New file.
33291         * doc/safe-alloc.texi: New file.
33292         * doc/gnulib.texi: Include it.
33293         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33294         safe-alloc.
33295
33296 2009-02-18  Bruno Haible  <bruno@clisp.org>
33297
33298         Fix link error on non-glibc systems.
33299         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33300         variable.
33301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33302
33303 2009-02-18  Jim Meyering  <meyering@redhat.com>
33304
33305         fts: avoid used-uninitialized error due to recent change
33306         * lib/fts.c (fts_read): Guard uses of the new member,
33307         parent->fts_n_dirs_remaining, since it's not relevant for
33308         the parent of a directory specified on the command-line.
33309
33310 2009-02-17  James Youngman  <jay@gnu.org>
33311             Bruno Haible  <bruno@clisp.org>
33312
33313         * m4/include_next.m4: Reformulate comment.
33314
33315 2009-02-16  Jim Meyering  <meyering@redhat.com>
33316
33317         fts: add #if guards so that the fts_lgpl module still builds
33318         * lib/fts.c: Guard just-added hash-table-using parts with
33319         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33320         Reported by Simon Josefsson.
33321
33322 2009-02-15  Bruno Haible  <bruno@clisp.org>
33323
33324         * modules/array-mergesort-tests: New file.
33325         * tests/test-array-mergesort.c: New file.
33326
33327         New module 'array-mergesort'.
33328         * modules/array-mergesort: New file.
33329         * lib/array-mergesort.h: New file.
33330
33331 2009-02-15  Bruno Haible  <bruno@clisp.org>
33332
33333         Fix 2009-02-07 commit.
33334         * lib/gen-uni-tables.c (output_predicate, output_category,
33335         output_combclass, output_bidi_category, output_decimal_digit,
33336         output_digit, output_numeric, output_mirror, output_scripts,
33337         output_ident_category, output_simple_mapping): Fix format directives.
33338         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33339
33340 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33341
33342         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33343         fixes are available from IBM.
33344
33345 2009-02-13  Jim Meyering  <meyering@redhat.com>
33346
33347         fts: arrange not to stat non-directories in more cases
33348         This makes GNU find (when it doesn't need to stat each file)
33349         *much* more efficient at traversing reiserfs file systems.
33350         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33351         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33352         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33353         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33354         (leaf_optimization_applies): New function.
33355         (LCO_hash, LCO_compare): New helper functions.
33356         (link_count_optimize_ok): New function.
33357         (fts_stat): Initialize new member (if dir).
33358         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33359         we've just stat'ed a directory.  Skip the stat call when possible.
33360         ---
33361         Note this AFS-related exchange:
33362         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33363         and note find's pioctl call in find/fstype.c.
33364         But that is necessary only if you want to enable the
33365         optimization for AFS, and for now, I don't.
33366
33367         fts: move a function definition "up" (no semantic change)
33368         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33369         "up" to precede upcoming use of a related function.
33370
33371 2009-02-11  Jim Meyering  <meyering@redhat.com>
33372
33373         fts: correct internal computation of nlinks (optimization-related)
33374         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33375         whether the current entry is a directory, so don't test it.
33376
33377 2009-02-10  Bruno Haible  <bruno@clisp.org>
33378
33379         Tests for module 'uniwbrk/ulc-wordbreaks'.
33380         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33381         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33382         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33383
33384         Tests for module 'uniwbrk/u32-wordbreaks'.
33385         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33386         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33387
33388         Tests for module 'uniwbrk/u16-wordbreaks'.
33389         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33390         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33391
33392         Tests for module 'uniwbrk/u8-wordbreaks'.
33393         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33394         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33395
33396 2009-02-10  Bruno Haible  <bruno@clisp.org>
33397
33398         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33399         property.
33400         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33401         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33402         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33403
33404 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33405
33406         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33407         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33408
33409 2009-02-10  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33412         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33413         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33414         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33415         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33416         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33417
33418 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33419
33420         * lib/sockets.h (gl_fd_to_handle): New function.
33421
33422         * tests/test-sockets.c: Call gl_fd_to_handle.
33423
33424 2009-02-09  Bruno Haible  <bruno@clisp.org>
33425
33426         * doc/havelib.texi: Document the conventions on bi-arch systems.
33427
33428 2009-02-08  Bruno Haible  <bruno@clisp.org>
33429
33430         Document the AC_LIB_LINKFLAGS macro.
33431         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33432         * doc/gnulib.texi: Include it.
33433
33434 2009-02-08  Bruno Haible  <bruno@clisp.org>
33435
33436         Fix wrong order of sections, compared to TOC.
33437         * doc/gnulib.texi: Include relocatable-maint.texi after the
33438         "Regular expressions" node, not before.
33439
33440 2009-02-08  Bruno Haible  <bruno@clisp.org>
33441
33442         Tests for module 'unicase/totitle'.
33443         * modules/unicase/totitle-tests: New file.
33444
33445         Tests for module 'unicase/tolower'.
33446         * modules/unicase/tolower-tests: New file.
33447
33448         Tests for module 'unicase/toupper'.
33449         * modules/unicase/toupper-tests: New file.
33450         * tests/unicase/test-mapping-part1.h: New file.
33451         * tests/unicase/test-mapping-part2.h: New file.
33452
33453         New module 'unicase/totitle'.
33454         * modules/unicase/totitle: New file.
33455         * lib/unicase/totitle.c: New file.
33456
33457         New module 'unicase/tolower'.
33458         * modules/unicase/tolower: New file.
33459         * lib/unicase/tolower.c: New file.
33460
33461         New module 'unicase/toupper'.
33462         * modules/unicase/toupper: New file.
33463         * lib/unicase/toupper.c: New file.
33464         * lib/unicase/simple-mapping.h: New file.
33465
33466         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33467         (mapping_table): New structure.
33468         (output_simple_mapping): New function.
33469         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33470         * modules/gen-uni-tables (Description): Update.
33471         * lib/unicase/toupper.h: New file, automatically generated by
33472         gen-uni-tables.
33473         * lib/unicase/tolower.h: New file, automatically generated by
33474         gen-uni-tables.
33475         * lib/unicase/totitle.h: New file, automatically generated by
33476         gen-uni-tables.
33477         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33478         gen-uni-tables.
33479         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33480         gen-uni-tables.
33481         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33482         gen-uni-tables.
33483
33484         New module 'unicase/base'.
33485         * modules/unicase/base: New file.
33486         * lib/unicase.h: New file.
33487
33488 2009-02-08  Bruno Haible  <bruno@clisp.org>
33489
33490         New module 'uniwbrk/ulc-wordbreaks'.
33491         * modules/uniwbrk/ulc-wordbreaks: New file.
33492         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33493
33494         New module 'uniwbrk/u32-wordbreaks'.
33495         * modules/uniwbrk/u32-wordbreaks: New file.
33496         * lib/uniwbrk/u32-wordbreaks.c: New file.
33497
33498         New module 'uniwbrk/u16-wordbreaks'.
33499         * modules/uniwbrk/u16-wordbreaks: New file.
33500         * lib/uniwbrk/u16-wordbreaks.c: New file.
33501
33502         New module 'uniwbrk/u8-wordbreaks'.
33503         * modules/uniwbrk/u8-wordbreaks: New file.
33504         * lib/uniwbrk/u8-wordbreaks.c: New file.
33505         * lib/uniwbrk/u-wordbreaks.h: New file.
33506
33507         New module 'uniwbrk/table'.
33508         * modules/uniwbrk/table: New file.
33509         * lib/uniwbrk/wbrktable.h: New file.
33510         * lib/uniwbrk/wbrktable.c: New file.
33511
33512         New module 'uniwbrk/wordbreak-property'.
33513         * modules/uniwbrk/wordbreak-property: New file.
33514         * lib/uniwbrk/wordbreak-property.c: New file.
33515
33516         * lib/gen-uni-tables.c (WBP_*): New enum items.
33517         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33518         (unicode_org_wbp): New variable.
33519         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33520         New functions.
33521         (wbp_table): New structure.
33522         (output_wbp, output_wbrk_tables): New functions.
33523         (main): Accept additional argument. Invoke fill_org_wbp,
33524         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33525         output_wbrk_tables.
33526         * modules/gen-uni-tables (Description): Update.
33527         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33528         gen-uni-tables.
33529
33530         New module 'uniwbrk/base'.
33531         * modules/uniwbrk/base: New file.
33532         * lib/uniwbrk.h: New file.
33533
33534 2009-02-08  Bruno Haible  <bruno@clisp.org>
33535
33536         Update to Unicode 5.1.0.
33537         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33538         U+2185..U+2188.
33539         (is_property_default_ignorable_code_point): Don't include characters
33540         of category Cc or Cs and not-a-characters.
33541         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33542         U+0D79, U+109E, U+109F, U+A60C.
33543         * lib/unictype/bidi_of.h: Regenerated.
33544         * lib/unictype/blocks.h: Regenerated.
33545         * lib/unictype/categ_C.h: Regenerated.
33546         * lib/unictype/categ_Cf.h: Regenerated.
33547         * lib/unictype/categ_Cn.h: Regenerated.
33548         * lib/unictype/categ_L.h: Regenerated.
33549         * lib/unictype/categ_Ll.h: Regenerated.
33550         * lib/unictype/categ_Lm.h: Regenerated.
33551         * lib/unictype/categ_Lo.h: Regenerated.
33552         * lib/unictype/categ_Lu.h: Regenerated.
33553         * lib/unictype/categ_M.h: Regenerated.
33554         * lib/unictype/categ_Mc.h: Regenerated.
33555         * lib/unictype/categ_Me.h: Regenerated.
33556         * lib/unictype/categ_Mn.h: Regenerated.
33557         * lib/unictype/categ_N.h: Regenerated.
33558         * lib/unictype/categ_Nd.h: Regenerated.
33559         * lib/unictype/categ_Nl.h: Regenerated.
33560         * lib/unictype/categ_No.h: Regenerated.
33561         * lib/unictype/categ_P.h: Regenerated.
33562         * lib/unictype/categ_Pd.h: Regenerated.
33563         * lib/unictype/categ_Pe.h: Regenerated.
33564         * lib/unictype/categ_Pf.h: Regenerated.
33565         * lib/unictype/categ_Pi.h: Regenerated.
33566         * lib/unictype/categ_Po.h: Regenerated.
33567         * lib/unictype/categ_Ps.h: Regenerated.
33568         * lib/unictype/categ_S.h: Regenerated.
33569         * lib/unictype/categ_Sk.h: Regenerated.
33570         * lib/unictype/categ_Sm.h: Regenerated.
33571         * lib/unictype/categ_So.h: Regenerated.
33572         * lib/unictype/categ_of.h: Regenerated.
33573         * lib/unictype/combining.h: Regenerated.
33574         * lib/unictype/ctype_alnum.h: Regenerated.
33575         * lib/unictype/ctype_alpha.h: Regenerated.
33576         * lib/unictype/ctype_graph.h: Regenerated.
33577         * lib/unictype/ctype_lower.h: Regenerated.
33578         * lib/unictype/ctype_print.h: Regenerated.
33579         * lib/unictype/ctype_punct.h: Regenerated.
33580         * lib/unictype/ctype_upper.h: Regenerated.
33581         * lib/unictype/decdigit.h: Regenerated.
33582         * lib/unictype/digit.h: Regenerated.
33583         * lib/unictype/mirror.h: Regenerated.
33584         * lib/unictype/numeric.h: Regenerated.
33585         * lib/unictype/pr_alphabetic.h: Regenerated.
33586         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33587         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33588         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33589         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33590         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33591         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33592         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33593         * lib/unictype/pr_combining.h: Regenerated.
33594         * lib/unictype/pr_dash.h: Regenerated.
33595         * lib/unictype/pr_decimal_digit.h: Regenerated.
33596         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33597         * lib/unictype/pr_deprecated.h: Regenerated.
33598         * lib/unictype/pr_diacritic.h: Regenerated.
33599         * lib/unictype/pr_extender.h: Regenerated.
33600         * lib/unictype/pr_format_control.h: Regenerated.
33601         * lib/unictype/pr_grapheme_base.h: Regenerated.
33602         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33603         * lib/unictype/pr_grapheme_link.h: Regenerated.
33604         * lib/unictype/pr_id_continue.h: Regenerated.
33605         * lib/unictype/pr_id_start.h: Regenerated.
33606         * lib/unictype/pr_ideographic.h: Regenerated.
33607         * lib/unictype/pr_ignorable_control.h: Regenerated.
33608         * lib/unictype/pr_lowercase.h: Regenerated.
33609         * lib/unictype/pr_math.h: Regenerated.
33610         * lib/unictype/pr_numeric.h: Regenerated.
33611         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33612         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33613         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33614         * lib/unictype/pr_other_id_continue.h: Regenerated.
33615         * lib/unictype/pr_other_lowercase.h: Regenerated.
33616         * lib/unictype/pr_other_math.h: Regenerated.
33617         * lib/unictype/pr_punctuation.h: Regenerated.
33618         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33619         * lib/unictype/pr_soft_dotted.h: Regenerated.
33620         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33621         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33622         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33623         * lib/unictype/pr_uppercase.h: Regenerated.
33624         * lib/unictype/pr_xid_continue.h: Regenerated.
33625         * lib/unictype/pr_xid_start.h: Regenerated.
33626         * lib/unictype/pr_zero_width.h: Regenerated.
33627         * lib/unictype/scripts.h: Regenerated.
33628         * lib/unictype/scripts_byname.gperf: Regenerated.
33629         * lib/unictype/sy_java_ident.h: Regenerated.
33630         * lib/unilbrk/lbrkprop1.h: Regenerated.
33631         * lib/unilbrk/lbrkprop2.h: Regenerated.
33632         * tests/unictype/test-categ_C.c: Regenerated.
33633         * tests/unictype/test-categ_Cf.c: Regenerated.
33634         * tests/unictype/test-categ_Cn.c: Regenerated.
33635         * tests/unictype/test-categ_L.c: Regenerated.
33636         * tests/unictype/test-categ_Ll.c: Regenerated.
33637         * tests/unictype/test-categ_Lm.c: Regenerated.
33638         * tests/unictype/test-categ_Lo.c: Regenerated.
33639         * tests/unictype/test-categ_Lu.c: Regenerated.
33640         * tests/unictype/test-categ_M.c: Regenerated.
33641         * tests/unictype/test-categ_Mc.c: Regenerated.
33642         * tests/unictype/test-categ_Me.c: Regenerated.
33643         * tests/unictype/test-categ_Mn.c: Regenerated.
33644         * tests/unictype/test-categ_N.c: Regenerated.
33645         * tests/unictype/test-categ_Nd.c: Regenerated.
33646         * tests/unictype/test-categ_Nl.c: Regenerated.
33647         * tests/unictype/test-categ_No.c: Regenerated.
33648         * tests/unictype/test-categ_P.c: Regenerated.
33649         * tests/unictype/test-categ_Pd.c: Regenerated.
33650         * tests/unictype/test-categ_Pe.c: Regenerated.
33651         * tests/unictype/test-categ_Pf.c: Regenerated.
33652         * tests/unictype/test-categ_Pi.c: Regenerated.
33653         * tests/unictype/test-categ_Po.c: Regenerated.
33654         * tests/unictype/test-categ_Ps.c: Regenerated.
33655         * tests/unictype/test-categ_S.c: Regenerated.
33656         * tests/unictype/test-categ_Sk.c: Regenerated.
33657         * tests/unictype/test-categ_Sm.c: Regenerated.
33658         * tests/unictype/test-categ_So.c: Regenerated.
33659         * tests/unictype/test-ctype_alnum.c: Regenerated.
33660         * tests/unictype/test-ctype_alpha.c: Regenerated.
33661         * tests/unictype/test-ctype_graph.c: Regenerated.
33662         * tests/unictype/test-ctype_lower.c: Regenerated.
33663         * tests/unictype/test-ctype_print.c: Regenerated.
33664         * tests/unictype/test-ctype_punct.c: Regenerated.
33665         * tests/unictype/test-ctype_upper.c: Regenerated.
33666         * tests/unictype/test-decdigit.h: Regenerated.
33667         * tests/unictype/test-digit.h: Regenerated.
33668         * tests/unictype/test-numeric.h: Regenerated.
33669         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33670         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33671         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33672         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33673         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33674         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33675         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33676         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33677         * tests/unictype/test-pr_combining.c: Regenerated.
33678         * tests/unictype/test-pr_dash.c: Regenerated.
33679         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33680         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33681         * tests/unictype/test-pr_deprecated.c: Regenerated.
33682         * tests/unictype/test-pr_diacritic.c: Regenerated.
33683         * tests/unictype/test-pr_extender.c: Regenerated.
33684         * tests/unictype/test-pr_format_control.c: Regenerated.
33685         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33686         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33687         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33688         * tests/unictype/test-pr_id_continue.c: Regenerated.
33689         * tests/unictype/test-pr_id_start.c: Regenerated.
33690         * tests/unictype/test-pr_ideographic.c: Regenerated.
33691         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33692         * tests/unictype/test-pr_lowercase.c: Regenerated.
33693         * tests/unictype/test-pr_math.c: Regenerated.
33694         * tests/unictype/test-pr_numeric.c: Regenerated.
33695         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33696         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33697         Regenerated.
33698         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33699         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33700         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33701         * tests/unictype/test-pr_other_math.c: Regenerated.
33702         * tests/unictype/test-pr_punctuation.c: Regenerated.
33703         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33704         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33705         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33706         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33707         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33708         * tests/unictype/test-pr_uppercase.c: Regenerated.
33709         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33710         * tests/unictype/test-pr_xid_start.c: Regenerated.
33711         * tests/unictype/test-pr_zero_width.c: Regenerated.
33712
33713         Update to Unicode 5.1.0.
33714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33715         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33716         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33717         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33718         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33719         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33720         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33721         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33722         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33723         (nonspacing_table_ind): Update.
33724         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33725
33726         Update to Unicode 5.1.0.
33727         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33728         code transform.
33729         * lib/uniname/uniname.c (unicode_character_name,
33730         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33731         * lib/uniname/uninames.h: Regenerated.
33732         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33733
33734 2009-02-07  Bruno Haible  <bruno@clisp.org>
33735
33736         Merge gen-ctype and gen-lbrk into a single program.
33737         * lib/gen-uni-tables.c: New file, incorporating
33738         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33739         Add directory prefixes to the names of the generated files.
33740         * lib/unictype/gen-ctype.c: Remove file.
33741         * lib/unilbrk/gen-lbrk.c: Remove file.
33742         * modules/gen-uni-tables: New file.
33743         * modules/unictype/gen-ctype: Remove file.
33744         * modules/unilbrk/gen-lbrk: Remove file.
33745
33746 2009-02-07  Bruno Haible  <bruno@clisp.org>
33747
33748         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33749
33750         New module 'unistr/u32-strcoll'.
33751         * modules/unistr/u32-strcoll: New file.
33752         * lib/unistr/u32-strcoll.c: New file.
33753
33754         New module 'unistr/u16-strcoll'.
33755         * modules/unistr/u16-strcoll: New file.
33756         * lib/unistr/u16-strcoll.c: New file.
33757
33758         New module 'unistr/u8-strcoll'.
33759         * modules/unistr/u8-strcoll: New file.
33760         * lib/unistr/u8-strcoll.c: New file.
33761         * lib/unistr/u-strcoll.h: New file.
33762
33763 2009-02-07  Bruno Haible  <bruno@clisp.org>
33764
33765         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33766         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33767         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33768         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33769         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33770         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33771
33772 2009-02-07  Bruno Haible  <bruno@clisp.org>
33773
33774         Make 64-bit clean.
33775         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33776         output_combclass, output_bidi_category, output_decimal_digit,
33777         output_digit, output_numeric, output_mirror, output_scripts,
33778         output_ident_category): Use proper width specifier in format strings.
33779
33780 2009-02-07  Bruno Haible  <bruno@clisp.org>
33781
33782         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33783         failure behaviour.
33784
33785 2009-02-07  Jim Meyering  <meyering@redhat.com>
33786
33787         regex: avoid compilation failure with upcoming gcc-4.4
33788         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33789         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33790         "... error: integer overflow in preprocessor expression".
33791
33792 2009-02-05  Ben Pfaff  <blp@gnu.org>
33793
33794         Fix link errors on Windows when close module is used.
33795         * modules/close: Add $(LIB_CLOSE) to Link section.
33796         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33797         $(LIB_CLOSE) on Windows.
33798
33799 2009-02-05  Jim Meyering  <meyering@redhat.com>
33800
33801         still avoid unused-parameter warnings, but do it cleanly
33802         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33803         (get_fs_usage): Cast to void instead.
33804         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33805         (dev_from_mount_options, read_file_system_list): Cast to void.
33806         Prompted by Bruno Haible.
33807
33808 2009-02-04  Jim Meyering  <meyering@redhat.com>
33809
33810         fsusage.c: correct copyright year
33811         * lib/fsusage.c: Reflect year in which the change is pushed into
33812
33813         avoid misc. warnings
33814         * lib/fsusage.c (UNUSED_PARAM): Define.
33815         (get_fs_usage): Mark parameter "disk" as unused.
33816         * lib/getugroups.c (getgrent): Use "void" in prototype.
33817         * lib/mountlist.c: Mark unused parameters.
33818         (read_file_system_list): Declare a local with "const".
33819         * lib/nanosleep.c (getnow): Declare static.
33820         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33821
33822         dirfd: set errno upon failure
33823         * lib/dirfd.c: Include <errno.h>.
33824         Set errno to ENOTSUP when returning -1.
33825         * modules/dirfd (Depends-on): Add errno.
33826         Suggested by John Kodis <kodis@comcast.net>.
33827
33828 2009-02-01  Bruno Haible  <bruno@clisp.org>
33829
33830         Don't assume sizeof (long) >= sizeof (void *).
33831         * lib/memcmp.c: Include stdint.h.
33832         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33833         srcp2 to 'const byte *'.
33834         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33835         types to uintptr_t.
33836         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33837         * modules/memcmp (Depends-on): Add stdint.
33838         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33839
33840 2009-01-30  Eric Blake  <ebb9@byu.net>
33841
33842         fix more require-before-expand issues
33843         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33844         expand, AC_PROG_AWK.
33845         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33846
33847 2009-01-28  Eric Blake  <ebb9@byu.net>
33848
33849         version-etc: use consistent URL formatting
33850         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33851         Improve formatting.  Use fputs for string without %.
33852
33853 2009-01-28  Jim Meyering  <meyering@redhat.com>
33854
33855         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33856         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33857         "underquoted definition of NAME" from autoconf-2.59.
33858
33859 2009-01-28  Bruno Haible  <bruno@clisp.org>
33860
33861         * doc/gnulib.texi: Add "Obsolete modules" to index.
33862
33863 2009-01-28  Jim Meyering  <meyering@redhat.com>
33864
33865         useless-if-before-free: recognize more variants
33866         * build-aux/useless-if-before-free: Also recognize e.g.,
33867         if (NULL != p) free (p);
33868
33869 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33870
33871         test-getaddrinfo: skip (don't fail) this test when there's no network
33872         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33873         on the presumption that it means you lack network access.
33874
33875 2009-01-26  Jim Meyering  <meyering@redhat.com>
33876
33877         fflush: avoid warnings on modern systems
33878         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33879         pos and result, into scopes where they're used.
33880
33881 2009-01-26  Eric Blake  <ebb9@byu.net>
33882
33883         Silence warning reintroduced by recent extensions patch.
33884         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33885         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33886         autoconf.
33887
33888         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33889         * m4/00gnulib.m4: New file.
33890         * gnulib-tool (func_get_filelist): Always use it.
33891         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33892         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33893
33894 2009-01-25  Bruno Haible  <bruno@clisp.org>
33895
33896         Make test-quotearg work on MacOS X and AIX.
33897         * tests/test-quotearg.sh: New file.
33898         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33899         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33900         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33901         include <libintl.h>.
33902         (fake_locale): Remove variable.
33903         (gettext, dgettext, dcgettext): Remove functions.
33904         (main): Instead of setting a fake locale, set a real locale. Call
33905         textdomain and bindtextdomain.
33906         * modules/quotearg-tests (Files): Add the new files.
33907         (Depends-on): Add gettext, setenv, unsetenv.
33908         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33909         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33910         Augment TESTS_ENVIRONMENT.
33911
33912 2009-01-25  Bruno Haible  <bruno@clisp.org>
33913
33914         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33915         fr_FR.ISO8859-1 locale on MacOS X.
33916         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33917         ja_JP.eucJP locale on MacOS X.
33918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33919         zh_CN.GB18030 locale on MacOS X.
33920
33921 2009-01-25  Bruno Haible  <bruno@clisp.org>
33922
33923         Avoid link errors on MacOS X 10.3.
33924         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33925         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33926
33927 2009-01-25  Bruno Haible  <bruno@clisp.org>
33928
33929         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33930         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33931         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33932         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33933         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33934         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33935         posix_spawnattr_init, posix_spawnattr_setsigmask,
33936         posix_spawnattr_setflags, posix_spawnattr_destroy.
33937
33938         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33939         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33940         * modules/execute (Files): Remove m4/posix_spawn.m4.
33941         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33942         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33943         posix_spawnattr_init, posix_spawnattr_setsigmask,
33944         posix_spawnattr_setflags, posix_spawnattr_destroy.
33945
33946 2009-01-25  Bruno Haible  <bruno@clisp.org>
33947
33948         * lib/glthread/threadlib.c: Include <stdlib.h>.
33949
33950 2009-01-25  Bruno Haible  <bruno@clisp.org>
33951
33952         * lib/glthread/threadlib.c (dummy): New declaration.
33953
33954 2009-01-25  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33957         multibyte characters also for the GB18030 encoding. Don't crash when
33958         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33959
33960 2009-01-25  Bruno Haible  <bruno@clisp.org>
33961
33962         Avoid redefining 'struct random_data' on OSF/1 5.1.
33963         * lib/stdlib.in.h: Include <random.h> if it exists.
33964         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33965         HAVE_RANDOM_H. Include <random.h> when testing whether
33966         'struct random_data' exists.
33967         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33968
33969 2009-01-25  Bruno Haible  <bruno@clisp.org>
33970
33971         Don't install charset.alias on MacOS X >= 10.3.
33972         * lib/localcharset.c (DARWIN7): New macro.
33973         (get_charset_aliases): Hardcode the result for Darwin7.
33974         * modules/localcharset (install-exec-local): Don't install
33975         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33976
33977 2009-01-25  Bruno Haible  <bruno@clisp.org>
33978
33979         Don't install charset.alias on mingw and Cygwin.
33980         * modules/localcharset (install-exec-local): Don't install
33981         charset.alias on mingw and Cygwin, if the file does not yet exist.
33982         The result for these platforms is hardcoded in localcharset.c.
33983
33984 2009-01-25  Bruno Haible  <bruno@clisp.org>
33985
33986         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33988         before requiring AC_USE_SYSTEM_EXTENSIONS.
33989
33990 2009-01-25  Jim Meyering  <meyering@redhat.com>
33991
33992         c-strtod: avoid warnings
33993         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33994         "assignment discards qualifiers from pointer target type" warnings.
33995
33996 2009-01-24  Bruno Haible  <bruno@clisp.org>
33997
33998         Add support for non-UTF-8 locales on MacOS X.
33999         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34000         canonical encodings. For Darwin 7 and newer, don't map traditional
34001         encodings to UTF-8.
34002         Reported by Vincent Lefevre <vincent@vinc17.org>
34003         at <http://savannah.gnu.org/bugs/?25235>.
34004
34005 2009-01-24  Bruno Haible  <bruno@clisp.org>
34006
34007         * doc/gnulib.texi (Obsolete modules): New section.
34008         Reported by Mike Frysinger <vapier@gentoo.org>.
34009
34010 2009-01-24  Bruno Haible  <bruno@clisp.org>
34011
34012         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34013         (%.dvi): New rule.
34014
34015 2009-01-24  Bruno Haible  <bruno@clisp.org>
34016
34017         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34018         Reported by Eric Blake.
34019
34020 2009-01-24  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34023         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34024         Reported by Gary V. Vaughan <gary@gnu.org>.
34025
34026 2009-01-24  Bruno Haible  <bruno@clisp.org>
34027
34028         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34029
34030 2009-01-23  Bruno Haible  <bruno@clisp.org>
34031
34032         Make c-strtod, c-strtold usable in libraries.
34033         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34034         (C_STRTOD): Call strdup instead of xstrdup.
34035         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34036         * modules/c-strtold (Depends-on): Likewise.
34037         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34038         * NEWS: Mention the change.
34039         Reported by Michael Gold <mgold@ncf.ca>.
34040
34041 2009-01-23  Jim Meyering  <meyering@redhat.com>
34042
34043         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34044         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34045         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34046
34047 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34048
34049         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34050         GNU CoreUtils.
34051         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34052         * modules/version-etc (Description): Update.
34053
34054 2009-01-22  Bruno Haible  <bruno@clisp.org>
34055
34056         Cache the C locale object.
34057         * lib/c-strtod.c (c_locale_cache): New variable.
34058         (c_locale): New function.
34059         (C_STRTOD): Use it, and don't call freelocale.
34060         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34061         Suggested by Paolo Bonzini.
34062
34063 2009-01-21  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34066         conditions other than overflow.
34067
34068 2009-01-21  Bruno Haible  <bruno@clisp.org>
34069
34070         * lib/c-strtod.c: Include errno.h.
34071         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34072         value from STRTOD_L and STRTOD.
34073
34074 2009-01-21  Bruno Haible  <bruno@clisp.org>
34075         and Jim Meyering  <meyering@redhat.com>
34076
34077         nanosleep: skip configure test (fail it) for apple universal builds
34078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34079         universal builds, assume that nanosleep does not work.
34080         * modules/nanosleep (Depends-on): Add multiarch.
34081
34082         mktime: skip configure test (fail it) for apple universal builds
34083         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34084         universal builds, assume that mktime does not work.
34085         * modules/mktime (Depends-on): Add multiarch.
34086
34087 2009-01-21  Eric Blake  <ebb9@byu.net>
34088
34089         multiarch: avoid expand-before-require warning
34090         * modules/multiarch (configure.ac): Require, rather than expand,
34091         gl_MULTIARCH.
34092         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34093         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34094         enforce that all clients require it.  Partial reversion of
34095         2008-12-29 patch.
34096
34097         error: avoid expand-before-require warning
34098         * modules/errno (configure.ac): Require, rather than expand,
34099         gl_HEADER_ERRNO_H.
34100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34101         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34102         enforce that all clients require it.
34103
34104         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34105         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34106         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34107         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34108
34109 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34110
34111         Revert:
34112         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34113
34114         regex: do not depend on obsolete modules.
34115         * modules/regex: Remove memcmp and memmove.
34116
34117 2009-01-20  Bruno Haible  <bruno@clisp.org>
34118
34119         Make the 'link' module link on Windows NT 4.
34120         * lib/link.c (_WIN32_WINNT): Don't define.
34121         (CreateHardLinkFuncType): New type.
34122         (CreateHardLinkFunc, initialized): New variables.
34123         (initialize): New function.
34124         (link): Invoke CreateHardLink indirectly through the function pointer.
34125
34126 2009-01-20  Bruno Haible  <bruno@clisp.org>
34127
34128         Fix compilation failure on mingw.
34129         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34130
34131 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34132
34133         * doc/c-strtod.texi: Mention a couple of restrictions.
34134
34135 2009-01-20  Jim Meyering  <meyering@redhat.com>
34136
34137         gettimeofday: move more declarations out of functions
34138         * lib/gettimeofday.c: Move extern declarations of tzset and
34139         gmtime out of containing functions.  Prompted by Bruno Haible.
34140
34141 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34142
34143         regex: do not depend on obsolete modules.
34144         * modules/regex: Remove memcmp and memmove.
34145
34146 2009-01-19  Bruno Haible  <bruno@clisp.org>
34147
34148         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34149         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34150         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34151         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34152         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34153
34154 2009-01-19  Bruno Haible  <bruno@clisp.org>
34155
34156         * tests/test-link.c: Include <errno.h>.
34157         (main): Exit with code 77 when a hard link cannot be created due to
34158         the file system.
34159         * tests/test-link.sh: Skip test when a hard link cannot be created due
34160         to the file system.
34161         Suggested by Eric Blake.
34162
34163 2009-01-19  Martin Lambers  <marlam@marlam.de>
34164
34165         * modules/link-tests: New file.
34166         * tests/test-link.sh: New file.
34167         * tests/test-link.c: New file.
34168
34169 2009-01-19  Eric Blake  <ebb9@byu.net>
34170
34171         doc: mention another function added in cygwin 1.7.0
34172         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34173         Another new function in cygwin 1.7.
34174
34175 2009-01-19  Bruno Haible  <bruno@clisp.org>
34176
34177         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34178         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34179         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34180         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34182         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34183         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34184         * m4/md4.m4 (gl_MD4): Likewise.
34185         * m4/md5.m4 (gl_MD5): Likewise.
34186         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34187         * m4/sha1.m4 (gl_SHA1): Likewise.
34188         * m4/sha256.m4 (gl_SHA256): Likewise.
34189         * m4/sha512.m4 (gl_SHA512): Likewise.
34190
34191 2009-01-19  Bruno Haible  <bruno@clisp.org>
34192
34193         * modules/uniname/uniname-tests (Depends-on): Add progname.
34194         * tests/uniname/test-uninames.c: Include progname.h.
34195         (main): Call set_program_name.
34196
34197         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34198         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34199         (main): Call set_program_name.
34200
34201         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34202         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34203         (main): Call set_program_name.
34204
34205         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34206         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34207         (main): Call set_program_name.
34208
34209         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34210         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34211         (main): Call set_program_name.
34212
34213         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34214         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34215         (main): Call set_program_name.
34216
34217         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34218         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34219         (main): Call set_program_name.
34220
34221         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34222         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34223         (main): Call set_program_name.
34224
34225         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34226         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34227         (main): Call set_program_name.
34228
34229 2009-01-19  Eric Blake  <ebb9@byu.net>
34230
34231         test-unistd: test previous patch
34232         * tests/test-unistd.c: Test *_FILENO macros.
34233
34234         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34235         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34236         Guarantee a definition.
34237         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34238         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34239         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34240         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34241         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34242         Likewise.
34243         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34244         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34245         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34246         Likewise.
34247         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34248         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34249         (STDERR_FILENO): Likewise.
34250         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34251         (STDERR_FILENO): Likewise.
34252         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34253         (STDERR_FILENO): Likewise.
34254         Reported by Elbert Pol.
34255
34256 2009-01-19  Eric Blake  <ebb9@byu.net>
34257
34258         doc: mention more functions added in cygwin 1.7.0
34259         * doc/posix-functions/abort.texi (abort): Update wording related
34260         to cygwin.
34261         * doc/posix-functions/daylight.texi (daylight): Likewise.
34262         * doc/posix-functions/optarg.texi (optarg): Likewise.
34263         * doc/posix-functions/optarg.texi (opterr): Likewise.
34264         * doc/posix-functions/optarg.texi (optind): Likewise.
34265         * doc/posix-functions/optarg.texi (optopt): Likewise.
34266         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34267         worked in 1.5.x, and was withdrawn in 1.7.
34268         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34269         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34270         cygwin versions.
34271         * doc/posix-functions/perror.texi (perror): Likewise.
34272         * doc/posix-functions/printf.texi (printf): Likewise.
34273         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34274         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34275         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34276         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34277         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34278         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34279         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34280         Likewise.
34281         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34282         Likewise.
34283         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34284         this function.
34285         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34286         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34287         Likewise.
34288         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34289         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34290         * doc/posix-functions/confstr.texi (confstr): Likewise.
34291         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34292         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34293         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34294         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34295         * doc/posix-functions/fputws.texi (fputws): Likewise.
34296         * doc/posix-functions/fwide.texi (fwide): Likewise.
34297         * doc/posix-functions/getwc.texi (getwc): Likewise.
34298         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34299         * doc/posix-functions/putwc.texi (putwc): Likewise.
34300         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34301         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34302         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34303         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34304         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34305         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34306         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34307         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34308         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34309         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34310         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34311
34312 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34313
34314         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34315         * lib/ioctl.c: Include <sys/ioctl.h>.
34316
34317 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34318
34319         * modules/getdate-tests (Depends-on): Add progname.
34320         * tests/test-getdate.c: Use progname module, to avoid link errors
34321         on non-glibc systems.
34322
34323 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34324
34325         * modules/filenamecat-tests (Depends-on): Add progname.
34326         * modules/fstrcmp-tests (Depends-on): Likewise.
34327
34328         * tests/test-filenamecat.c: Use progname module, to avoid link
34329         errors on non-glibc systems.
34330         * tests/test-fstrcmp.c: Likewise.
34331
34332 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34333
34334         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34335         * lib/gettimeofday.c: Move extern declaration out of function.
34336
34337 2009-01-18  Bruno Haible  <bruno@clisp.org>
34338
34339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34340         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34341         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34342
34343 2009-01-18  Bruno Haible  <bruno@clisp.org>
34344
34345         * lib/strftime.c (MEMPCPY): Remove unused macro.
34346         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34347
34348 2009-01-18  Martin Lambers  <marlam@marlam.de>
34349
34350         New module 'link'.
34351         * lib/unistd.in.h (link): New declaration.
34352         * lib/link.c: New file.
34353         * m4/link.m4: New file.
34354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34355         HAVE_LINK.
34356         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34357         * modules/link: New file.
34358         * doc/posix-functions/link.texi: Mention the new module.
34359
34360 2009-01-18  Bruno Haible  <bruno@clisp.org>
34361
34362         * tests/test-avltree_list.c (main): Call set_program_name.
34363         * tests/test-avltree_oset.c (main): Likewise.
34364         * tests/test-obstack-printf.c: Include progname.h.
34365         (main): Call set_program_name.
34366         * tests/test-quotearg.c: Include progname.h.
34367         (main): Call set_program_name.
34368         * tests/test-xmemdup0.c: Include progname.h.
34369         (main): Call set_program_name.
34370
34371 2009-01-18  Bruno Haible  <bruno@clisp.org>
34372
34373         New module 'alphasort'.
34374         * lib/dirent.in.h (alphasort): New declaration.
34375         * lib/alphasort.c: New file, from glibc with modifications.
34376         * m4/alphasort.m4: New file.
34377         * modules/alphasort: New file.
34378         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34379         HAVE_ALPHASORT.
34380         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34381         HAVE_ALPHASORT.
34382         * doc/posix-functions/alphasort.texi: Mention the new module and the
34383         portability problems.
34384
34385 2009-01-18  Bruno Haible  <bruno@clisp.org>
34386
34387         New module 'scandir'.
34388         * lib/dirent.in.h (scandir): New declaration.
34389         * lib/scandir.c: New file, from glibc with modifications.
34390         * m4/scandir.m4: New file.
34391         * modules/scandir: New file.
34392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34393         HAVE_SCANDIR.
34394         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34395         HAVE_SCANDIR.
34396         * doc/posix-functions/scandir.texi: Mention the new module and the
34397         portability problems.
34398
34399 2009-01-17  Bruno Haible  <bruno@clisp.org>
34400
34401         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34402         Update documentation.
34403         (func_remove_suffix): Escape all dots in the suffix. Update
34404         documentation.
34405         (func_filter_filelist): Update documentation.
34406         Reported by Ralf Wildenhues.
34407
34408 2009-01-17  Bruno Haible  <bruno@clisp.org>
34409
34410         * modules/dprintf-posix-tests: New file.
34411         * tests/test-dprintf-posix.sh: New file.
34412         * tests/test-dprintf-posix.c: New file.
34413
34414         New modules 'dprintf', 'dprintf-posix'.
34415         * lib/stdio.in.h (dprintf): New declaration.
34416         * lib/dprintf.c: New file.
34417         * m4/dprintf.m4: New file.
34418         * m4/dprintf-posix.m4: New file.
34419         * modules/dprintf: New file.
34420         * modules/dprintf-posix: New file.
34421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34422         HAVE_DPRINTF, REPLACE_DPRINTF.
34423         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34424         HAVE_DPRINTF, REPLACE_DPRINTF.
34425         * doc/posix-functions/dprintf.texi: Mention the new modules.
34426
34427 2009-01-17  Bruno Haible  <bruno@clisp.org>
34428
34429         * modules/vdprintf-posix-tests: New file.
34430         * tests/test-vdprintf-posix.sh: New file.
34431         * tests/test-vdprintf-posix.c: New file.
34432
34433         New modules 'vdprintf', 'vdprintf-posix'.
34434         * lib/stdio.in.h (vdprintf): New declaration.
34435         * lib/vdprintf.c: New file.
34436         * m4/vdprintf.m4: New file.
34437         * m4/vdprintf-posix.m4: New file.
34438         * modules/vdprintf: New file.
34439         * modules/vdprintf-posix: New file.
34440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34441         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34442         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34443         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34444         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34445
34446 2009-01-17  Bruno Haible  <bruno@clisp.org>
34447
34448         Fix replacement of fopen on mingw.
34449         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34450         mingw.
34451
34452 2009-01-17  Bruno Haible  <bruno@clisp.org>
34453
34454         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34455         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34456
34457 2009-01-17  Bruno Haible  <bruno@clisp.org>
34458
34459         Avoid test-fflush2.sh failure on mingw.
34460         * tests/test-fflush2.c: Include binary-io.h.
34461         (main): Put standard input into binary mode.
34462         * modules/fflush-tests (Depends-on): Add binary-io.
34463
34464 2009-01-17  Bruno Haible  <bruno@clisp.org>
34465
34466         * lib/wchar.in.h: In another particular situation, include only the
34467         system's <wchar.h> file.
34468         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34469         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34470         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34471
34472 2009-01-17  Bruno Haible  <bruno@clisp.org>
34473
34474         Support for stripping executables in --enable-relocatable.
34475         * build-aux/install-reloc: Expect one more argument, or an environment
34476         variable RELOC_STRIP_PROG. If set, strip the destination program and
34477         its wrapper.
34478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34479         RELOC_STRIP_PROG.
34480         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34481         to set RELOCATABLE_STRIP.
34482         * NEWS: Mention the new Makefile requirement.
34483
34484 2009-01-17  Bruno Haible  <bruno@clisp.org>
34485
34486         * build-aux/install-reloc: Remove debugging information left over by
34487         C compiler on MacOS X.
34488
34489 2009-01-17  Bruno Haible  <bruno@clisp.org>
34490
34491         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34492         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34493         _NSGetExecutablePath.
34494
34495 2009-01-16  Jim Meyering  <meyering@redhat.com>
34496
34497         strerror: avoid warnings about discarding "const"
34498         * lib/strerror.c (rpl_strerror): Instead of returning a const
34499         string from each and every "case", use a variable, and add a single
34500         cast after the switch.
34501
34502 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34503
34504         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34505
34506 2009-01-16  Bruno Haible  <bruno@clisp.org>
34507
34508         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34509         array initializer syntax that also works in C++ mode.
34510         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34511
34512 2009-01-16  Jim Meyering  <meyering@redhat.com>
34513
34514         poll: suppress a warning
34515         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34516         to ignore "...unsigned expression < 0 is always false" warnings.
34517
34518 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34519
34520         poll: remove declarations of unused variables
34521         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34522         sockbuf and optlen.
34523
34524 2009-01-15  Bruno Haible  <bruno@clisp.org>
34525
34526         Make fflush-after-ungetc POSIX compliant on BSD systems.
34527         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34528         (clear_ungetc_buffer): Implement also for other systems.
34529         (rpl_fflush): On glibc systems, invoke
34530         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34531         clear_ungetc_buffer after fetching the stream's position, not before.
34532
34533 2009-01-15  Bruno Haible  <bruno@clisp.org>
34534
34535         Make fflush-after-ungetc POSIX compliant on glibc systems.
34536         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34537         after ungetc.
34538         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34539         (rpl_fflush): On glibc systems, simply call the system's fflush
34540         function after clearing the ungetc buffer.
34541         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34542         Instead, lseek only to the end of file, then use the system's fseeko
34543         for the rest. On glibc systems, reset the EOF indicator bit.
34544
34545 2009-01-15  Jim Meyering  <meyering@redhat.com>
34546
34547         openmp.m4: revert quote-adding change, for portability to older autoconf
34548         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34549         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34550         Simon Josefsson noticed the problem when using autoconf-2.61.
34551
34552 2009-01-15  Bruno Haible  <bruno@clisp.org>
34553
34554         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34555         * tests/test-fflush2.c (ASSERT): Always fail.
34556         (main): Add two tests for fflush() after ungetc(), taking into account
34557         the Austin Group's clarification.
34558         Suggested by Eric Blake.
34559
34560 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34561
34562         mktime.m4: remove K&R-style function prototypes
34563         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34564         for the Sun C++ compiler.
34565
34566 2009-01-14  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34569         while including <wchar.h>.
34570         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34571         the system's <wchar.h> file.
34572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34573
34574 2009-01-14  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/csharp.m4: Don't mention gettext on the serial number line.
34577         * m4/csharpexec.m4: Likewise.
34578         * m4/eaccess.m4: Likewise.
34579         * m4/javaexec.m4: Likewise.
34580         * m4/sig_atomic_t.m4: Likewise.
34581         * m4/tmpdir.m4: Likewise.
34582         * m4/intldir.m4: Bump gettext version.
34583         * m4/lib-ld.m4: Likewise.
34584
34585 2009-01-14  Bruno Haible  <bruno@clisp.org>
34586
34587         * lib/progname.c (set_program_name): Add more comments.
34588         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34589
34590 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34591
34592         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34593         were sys/stat.h does not define it.
34594
34595 2009-01-14  Jim Meyering  <meyering@redhat.com>
34596
34597         many *.m4 files: improve m4 quoting
34598         99% of this change was performed by running the following commands:
34599         git ls-files | grep '\.m4$' | xargs perl -pi \
34600           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34601           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34602           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34603           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34604         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34605         The remainder were to add Copyright dates, increment serial numbers,
34606         undo some changes in comments, exclude m4/intl.m4, and add quotes
34607         around the "1" in ",1" where the unusual spacing prohibited the
34608         above regexps from doing the job.  For more details, see
34609         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34610         * m4/acl.m4: Modified.
34611         * m4/afs.m4: Likewise.
34612         * m4/alloca.m4: Likewise.
34613         * m4/argp.m4: Likewise.
34614         * m4/argz.m4: Likewise.
34615         * m4/atexit.m4: Likewise.
34616         * m4/bison-i18n.m4: Likewise.
34617         * m4/bison.m4: Likewise.
34618         * m4/byteswap.m4: Likewise.
34619         * m4/c-stack.m4: Likewise.
34620         * m4/c-strtod.m4: Likewise.
34621         * m4/calloc.m4: Likewise.
34622         * m4/canonicalize-lgpl.m4: Likewise.
34623         * m4/chown.m4: Likewise.
34624         * m4/clock_time.m4: Likewise.
34625         * m4/codeset.m4: Likewise.
34626         * m4/copy-file.m4: Likewise.
34627         * m4/csharp.m4: Likewise.
34628         * m4/csharpcomp.m4: Likewise.
34629         * m4/csharpexec.m4: Likewise.
34630         * m4/d-ino.m4: Likewise.
34631         * m4/d-type.m4: Likewise.
34632         * m4/dirfd.m4: Likewise.
34633         * m4/double-slash-root.m4: Likewise.
34634         * m4/eaccess.m4: Likewise.
34635         * m4/eealloc.m4: Likewise.
34636         * m4/environ.m4: Likewise.
34637         * m4/errno_h.m4: Likewise.
34638         * m4/euidaccess.m4: Likewise.
34639         * m4/execute.m4: Likewise.
34640         * m4/fatal-signal.m4: Likewise.
34641         * m4/fchdir.m4: Likewise.
34642         * m4/fcntl_h.m4: Likewise.
34643         * m4/fileblocks.m4: Likewise.
34644         * m4/filenamecat.m4: Likewise.
34645         * m4/findprog.m4: Likewise.
34646         * m4/flexmember.m4: Likewise.
34647         * m4/fnmatch.m4: Likewise.
34648         * m4/fopen.m4: Likewise.
34649         * m4/fpending.m4: Likewise.
34650         * m4/fprintf-posix.m4: Likewise.
34651         * m4/free.m4: Likewise.
34652         * m4/frexp.m4: Likewise.
34653         * m4/frexpl.m4: Likewise.
34654         * m4/fsusage.m4: Likewise.
34655         * m4/ftruncate.m4: Likewise.
34656         * m4/gc-camellia.m4: Likewise.
34657         * m4/gc-random.m4: Likewise.
34658         * m4/gc.m4: Likewise.
34659         * m4/getaddrinfo.m4: Likewise.
34660         * m4/getcwd-abort-bug.m4: Likewise.
34661         * m4/getcwd-path-max.m4: Likewise.
34662         * m4/getdate.m4: Likewise.
34663         * m4/getdomainname.m4: Likewise.
34664         * m4/getgroups.m4: Likewise.
34665         * m4/gethostname.m4: Likewise.
34666         * m4/gethrxtime.m4: Likewise.
34667         * m4/getline.m4: Likewise.
34668         * m4/getloadavg.m4: Likewise.
34669         * m4/getndelim2.m4: Likewise.
34670         * m4/getpass.m4: Likewise.
34671         * m4/gettext.m4: Likewise.
34672         * m4/gettime.m4: Likewise.
34673         * m4/gettimeofday.m4: Likewise.
34674         * m4/gnulib-common.m4: Likewise.
34675         * m4/group-member.m4: Likewise.
34676         * m4/host-os.m4: Likewise.
34677         * m4/iconv.m4: Likewise.
34678         * m4/iconv_open.m4: Likewise.
34679         * m4/inet_ntop.m4: Likewise.
34680         * m4/inet_pton.m4: Likewise.
34681         * m4/inline.m4: Likewise.
34682         * m4/intldir.m4: Likewise.
34683         * m4/intlmacosx.m4: Likewise.
34684         * m4/intmax.m4: Likewise.
34685         * m4/intmax_t.m4: Likewise.
34686         * m4/inttypes.m4: Likewise.
34687         * m4/inttypes_h.m4: Likewise.
34688         * m4/inttypes-pri.m4: Likewise.
34689         * m4/isapipe.m4: Likewise.
34690         * m4/isnand.m4: Likewise.
34691         * m4/isnanf.m4: Likewise.
34692         * m4/isnanl.m4: Likewise.
34693         * m4/javacomp.m4: Likewise.
34694         * m4/javaexec.m4: Likewise.
34695         * m4/jm-winsz1.m4: Likewise.
34696         * m4/jm-winsz2.m4: Likewise.
34697         * m4/lchown.m4: Likewise.
34698         * m4/lcmessage.m4: Likewise.
34699         * m4/ldexpl.m4: Likewise.
34700         * m4/lib-ld.m4: Likewise.
34701         * m4/lib-link.m4: Likewise.
34702         * m4/libsigsegv.m4: Likewise.
34703         * m4/link-follow.m4: Likewise.
34704         * m4/localcharset.m4: Likewise.
34705         * m4/locale-fr.m4: Likewise.
34706         * m4/locale-ja.m4: Likewise.
34707         * m4/locale-tr.m4: Likewise.
34708         * m4/locale-zh.m4: Likewise.
34709         * m4/lock.m4: Likewise.
34710         * m4/longlong.m4: Likewise.
34711         * m4/ls-mntd-fs.m4: Likewise.
34712         * m4/lstat.m4: Likewise.
34713         * m4/malloc.m4: Likewise.
34714         * m4/mathl.m4: Likewise.
34715         * m4/mbrtowc.m4: Likewise.
34716         * m4/mbstate_t.m4: Likewise.
34717         * m4/mbswidth.m4: Likewise.
34718         * m4/memchr.m4: Likewise.
34719         * m4/memcmp.m4: Likewise.
34720         * m4/memcpy.m4: Likewise.
34721         * m4/memmem.m4: Likewise.
34722         * m4/memmove.m4: Likewise.
34723         * m4/mempcpy.m4: Likewise.
34724         * m4/memrchr.m4: Likewise.
34725         * m4/memset.m4: Likewise.
34726         * m4/minmax.m4: Likewise.
34727         * m4/mkdir-slash.m4: Likewise.
34728         * m4/mkdtemp.m4: Likewise.
34729         * m4/mktime.m4: Likewise.
34730         * m4/mmap-anon.m4: Likewise.
34731         * m4/mountlist.m4: Likewise.
34732         * m4/nanosleep.m4: Likewise.
34733         * m4/nls.m4: Likewise.
34734         * m4/nocrash.m4: Likewise.
34735         * m4/open.m4: Likewise.
34736         * m4/openat.m4: Likewise.
34737         * m4/openmp.m4: Likewise.
34738         * m4/pathmax.m4: Likewise.
34739         * m4/perl.m4: Likewise.
34740         * m4/physmem.m4: Likewise.
34741         * m4/pipe.m4: Likewise.
34742         * m4/po.m4: Likewise.
34743         * m4/poll.m4: Likewise.
34744         * m4/posixtm.m4: Likewise.
34745         * m4/posixver.m4: Likewise.
34746         * m4/printf-frexp.m4: Likewise.
34747         * m4/printf-frexpl.m4: Likewise.
34748         * m4/printf-posix.m4: Likewise.
34749         * m4/printf-posix-rpl.m4: Likewise.
34750         * m4/printf.m4: Likewise.
34751         * m4/progtest.m4: Likewise.
34752         * m4/putenv.m4: Likewise.
34753         * m4/readline.m4: Likewise.
34754         * m4/readlink.m4: Likewise.
34755         * m4/readutmp.m4: Likewise.
34756         * m4/realloc.m4: Likewise.
34757         * m4/regex.m4: Likewise.
34758         * m4/relocatable.m4: Likewise.
34759         * m4/relocatable-lib.m4: Likewise.
34760         * m4/rename-dest-slash.m4: Likewise.
34761         * m4/rename.m4: Likewise.
34762         * m4/rmdir-errno.m4: Likewise.
34763         * m4/rmdir.m4: Likewise.
34764         * m4/roundf.m4: Likewise.
34765         * m4/roundl.m4: Likewise.
34766         * m4/rpmatch.m4: Likewise.
34767         * m4/save-cwd.m4: Likewise.
34768         * m4/selinux-selinux-h.m4: Likewise.
34769         * m4/setenv.m4: Likewise.
34770         * m4/settime.m4: Likewise.
34771         * m4/sig2str.m4: Likewise.
34772         * m4/sig_atomic_t.m4: Likewise.
34773         * m4/signalblocking.m4: Likewise.
34774         * m4/signbit.m4: Likewise.
34775         * m4/sigpipe.m4: Likewise.
34776         * m4/sockets.m4: Likewise.
34777         * m4/sockpfaf.m4: Likewise.
34778         * m4/st_dm_mode.m4: Likewise.
34779         * m4/stat-time.m4: Likewise.
34780         * m4/stdbool.m4: Likewise.
34781         * m4/stdint.m4: Likewise.
34782         * m4/stdint_h.m4: Likewise.
34783         * m4/stpcpy.m4: Likewise.
34784         * m4/stpncpy.m4: Likewise.
34785         * m4/strcase.m4: Likewise.
34786         * m4/strchrnul.m4: Likewise.
34787         * m4/strcspn.m4: Likewise.
34788         * m4/strdup.m4: Likewise.
34789         * m4/strftime.m4: Likewise.
34790         * m4/strndup.m4: Likewise.
34791         * m4/strnlen.m4: Likewise.
34792         * m4/strpbrk.m4: Likewise.
34793         * m4/strptime.m4: Likewise.
34794         * m4/strsep.m4: Likewise.
34795         * m4/strtod.m4: Likewise.
34796         * m4/strtoimax.m4: Likewise.
34797         * m4/strtok_r.m4: Likewise.
34798         * m4/strtol.m4: Likewise.
34799         * m4/strtoll.m4: Likewise.
34800         * m4/strtoul.m4: Likewise.
34801         * m4/strtoull.m4: Likewise.
34802         * m4/strtoumax.m4: Likewise.
34803         * m4/strverscmp.m4: Likewise.
34804         * m4/threadlib.m4: Likewise.
34805         * m4/timegm.m4: Likewise.
34806         * m4/tm_gmtoff.m4: Likewise.
34807         * m4/tmpdir.m4: Likewise.
34808         * m4/tmpfile.m4: Likewise.
34809         * m4/tzset.m4: Likewise.
34810         * m4/uintmax_t.m4: Likewise.
34811         * m4/unlinkdir.m4: Likewise.
34812         * m4/unlocked-io.m4: Likewise.
34813         * m4/uptime.m4: Likewise.
34814         * m4/userspec.m4: Likewise.
34815         * m4/utimbuf.m4: Likewise.
34816         * m4/utime.m4: Likewise.
34817         * m4/utimes-null.m4: Likewise.
34818         * m4/utimes.m4: Likewise.
34819         * m4/vararrays.m4: Likewise.
34820         * m4/vasnprintf.m4: Likewise.
34821         * m4/vfprintf-posix.m4: Likewise.
34822         * m4/vprintf-posix.m4: Likewise.
34823         * m4/wait-process.m4: Likewise.
34824         * m4/wchar_t.m4: Likewise.
34825         * m4/wint_t.m4: Likewise.
34826         * m4/write-any-file.m4: Likewise.
34827         * m4/yield.m4: Likewise.
34828
34829 2009-01-13  Bruno Haible  <bruno@clisp.org>
34830
34831         Avoid test-copy-file.sh failures when ACL support insufficient.
34832         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34833         TESTS_ENVIRONMENT.
34834         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34835         Reported by Jim Meyering.
34836
34837 2009-01-13  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34840         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34841         * modules/unistdio/u8-printf-parse (Files): Likewise.
34842         * modules/unistdio/u32-printf-parse (Files): Likewise.
34843         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34844
34845 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34846
34847         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34848         and m4/inttypes_h.m4 too.
34849
34850 2009-01-12  Eric Blake  <ebb9@byu.net>
34851
34852         tests: IRIX 6.2 cc can't compile -0.0 into .data
34853         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34854         rather than at compile-time.
34855         * tests/test-floorl.c (minus_zero): Likewise.
34856         * tests/test-frexpl.c (minus_zero): Likewise.
34857         * tests/test-isnan.c (minus_zerol): Likewise.
34858         * tests/test-isnanl.h (minus_zero): Likewise.
34859         * tests/test-ldexpl.c (minus_zero): Likewise.
34860         * tests/test-roundl.c (minus_zero): Likewise.
34861         * tests/test-signbit.c (minus_zerol): Likewise.
34862         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34863         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34864         * tests/test-truncl.c (minus_zero): Likewise.
34865         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34866         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34867         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34868
34869 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34870
34871         regex: fix glibc bug 9697
34872         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34873         handling.
34874
34875 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34876
34877         regex: fix glibc bug 697
34878         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34879         being NULL also if there are no backreferences.
34880
34881 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34882
34883         regex: merge glibc changes
34884         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34885         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34886         re_string_skip_chars, re_string_reconstruct): Likewise.
34887         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34888
34889 2009-01-07  Jim Meyering  <meyering@redhat.com>
34890
34891         poll: filter through cppi
34892         * lib/poll.c: Indent cpp directives to reflect nesting.
34893
34894 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34895
34896         poll: don't return uninitialized
34897         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34898
34899 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34900
34901         avoid compile failure on AIX 6.1
34902         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34903         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34904
34905 2009-01-04  Jim Meyering  <meyering@redhat.com>
34906
34907         remove duplicate inclusion of <stdio.h>
34908         * tests/test-fprintf-posix.c: Likewise.
34909         * tests/test-printf-posix.c: Likewise.
34910         * tests/test-snprintf-posix.c: Likewise.
34911         * tests/test-sprintf-posix.c: Likewise.
34912         * tests/test-vasprintf-posix.c: Likewise.
34913         * tests/test-vfprintf-posix.c: Likewise.
34914         * tests/test-vprintf-posix.c: Likewise.
34915         * tests/test-vsnprintf-posix.c: Likewise.
34916         * tests/test-vsprintf-posix.c: Likewise.
34917
34918 2009-01-03  Jim Meyering  <meyering@redhat.com>
34919
34920         gnulib-tool: fix sed-based filtering
34921         * gnulib-tool (func_filter_filelist): Remove extra backslash
34922         in sed_fff_filter definition.
34923
34924 2009-01-02  Jim Meyering  <meyering@redhat.com>
34925
34926         strftime: avoid compilation failure on Solaris 2.6
34927         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34928         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34929         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34930         be available.  Reported by Tom G. Christensen.  Details in
34931         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34932
34933 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34934             Bruno Haible  <bruno@clisp.org>
34935
34936         Speed up gnulib-tool by doing more string processing through shell
34937         built-ins.
34938         * gnulib-tool (fast_func_append): New variable.
34939         (func_remove_prefix, func_remove_suffix): New functions.
34940         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34941         (func_filter_filelist): New function.
34942         (func_get_dependencies): Use func_remove_suffix instead of sed.
34943         (func_get_automake_snippet): Use func_filter_filelist instead of a
34944         subshell and sed invocation.
34945
34946 2009-01-01  Bruno Haible  <bruno@clisp.org>
34947
34948         Fix a security bug.
34949         * gnulib-tool (func_import, import, update): Don't allow the characters
34950         '"', '$', '`', '\' in macro arguments that become part of commands that
34951         are evaluated.
34952
34953 2009-01-01  Bruno Haible  <bruno@clisp.org>
34954
34955         * gnulib-tool (func_reset_sigpipe): Add more comments.
34956
34957 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34958
34959         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34960         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34961         already know the answer.
34962
34963 2009-01-01  Jim Meyering  <meyering@redhat.com>
34964
34965         * lib/version-etc.c (version_etc_va): Update copyright year.
34966
34967 2008-12-30  Bruno Haible  <bruno@clisp.org>
34968
34969         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34970         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34971         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34972
34973 2008-12-29  Eric Blake  <ebb9@byu.net>
34974
34975         multiarch: avoid autoconf AC_REQUIRE bug
34976         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34977         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34978         2.63 and older.
34979         Reported by Bruno Haible, and analyzed in
34980         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34981
34982 2008-12-29  Bruno Haible  <bruno@clisp.org>
34983
34984         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34985         files in subdirectories correctly.
34986         Reported by Ralf Wildenhues.
34987
34988 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34989
34990         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34991         rather than 'join FILE -', for Solaris join.
34992
34993 2008-12-29  Bruno Haible  <bruno@clisp.org>
34994
34995         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34996         quoting.
34997         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34998         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34999         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35000         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35001         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35002         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35003         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35004         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35005         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35006         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35007         * m4/nls.m4 (AM_NLS): Likewise.
35008         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35009         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35010         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35011         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35012         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35013         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35014         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35015         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35016         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35017         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35018         * m4/xsize.m4 (gl_XSIZE): Likewise.
35019         Suggested by Jim Meyering.
35020
35021 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35022
35023         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35024         * lib/parse-duration.c: use a switch instead of cascading if's.
35025
35026 2008-12-29  Eric Blake  <ebb9@byu.net>
35027
35028         wchar.h: supply WEOF on Irix 5.3
35029         * lib/wchar.in.h (wint_t): Also supply WEOF.
35030         * lib/wctype.in.h (wint_t): Likewise.
35031         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35032         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35033         Reported by Tom G. Christensen.
35034
35035 2008-12-26  Bruno Haible  <bruno@clisp.org>
35036
35037         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35038         i486, i586, i686.
35039
35040 2008-12-26  Bruno Haible  <bruno@clisp.org>
35041
35042         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35043
35044 2008-12-26  Bruno Haible  <bruno@clisp.org>
35045
35046         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35047         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35048         not __STDC_CONSTANT_MACROS.
35049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35050
35051 2008-12-25  Bruno Haible  <bruno@clisp.org>
35052
35053         Add support for universal builds to vasnprintf.
35054         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35055         universal builds, guess no.
35056         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35057         * modules/vasprintf-posix (Depends-on): Likewise.
35058         * modules/fprintf-posix (Depends-on): Likewise.
35059         * modules/vfprintf-posix (Depends-on): Likewise.
35060         * modules/snprintf-posix (Depends-on): Likewise.
35061         * modules/vsnprintf-posix (Depends-on): Likewise.
35062         * modules/sprintf-posix (Depends-on): Likewise.
35063         * modules/vsprintf-posix (Depends-on): Likewise.
35064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35071
35072         Add support for universal builds to <inttypes.h>.
35073         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35074         _SCNu64_PREFIX): In Apple
35075         universal builds, define directly, using _LP64.
35076         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35077         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35078         * modules/inttypes (Depends-on): Add multiarch.
35079         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35080
35081         Add support for universal builds to <stdint.h>.
35082         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35083         universal builds, define directly, using _LP64.
35084         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35085         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35086         and size_t.
35087         * modules/stdint (Depends-on): Add multiarch.
35088         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35089
35090         New module 'multiarch'.
35091         * modules/multiarch: New file.
35092         * m4/multiarch.m4: New file.
35093
35094 2008-12-25  Bruno Haible  <bruno@clisp.org>
35095
35096         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35097
35098 2008-12-25  Bruno Haible  <bruno@clisp.org>
35099
35100         * modules/btowc (License): Relicense under LGPLv2+.
35101         * modules/mbsinit (License): Likewise.
35102         * modules/mbrtowc (License): Likewise.
35103         * modules/wcrtomb (License): Likewise.
35104         * modules/streq (License): Likewise.
35105         Reported by David Lutterkort <lutter@redhat.com>.
35106
35107 2008-12-23  Bruno Haible  <bruno@clisp.org>
35108
35109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35110
35111 2008-12-23  Bruno Haible  <bruno@clisp.org>
35112
35113         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35115         GETADDRINFO_LIB, not in LIBS.
35116         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35117         * modules/canon-host (Link): Likewise.
35118         * NEWS: Mention the change.
35119         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35120         GETADDRINFO_LIB.
35121
35122 2008-12-22  Bruno Haible  <bruno@clisp.org>
35123
35124         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35125         * doc/posix-functions/iswalpha_l.texi: Likewise.
35126         * doc/posix-functions/iswblank_l.texi: Likewise.
35127         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35128         * doc/posix-functions/iswctype_l.texi: Likewise.
35129         * doc/posix-functions/iswdigit_l.texi: Likewise.
35130         * doc/posix-functions/iswgraph_l.texi: Likewise.
35131         * doc/posix-functions/iswlower_l.texi: Likewise.
35132         * doc/posix-functions/iswprint_l.texi: Likewise.
35133         * doc/posix-functions/iswpunct_l.texi: Likewise.
35134         * doc/posix-functions/iswspace_l.texi: Likewise.
35135         * doc/posix-functions/iswupper_l.texi: Likewise.
35136         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35137         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35138         * doc/posix-functions/open_wmemstream.texi: Likewise.
35139         * doc/posix-functions/swscanf.texi: Likewise.
35140         * doc/posix-functions/towctrans_l.texi: Likewise.
35141         * doc/posix-functions/towlower.texi: Likewise.
35142         * doc/posix-functions/towlower_l.texi: Likewise.
35143         * doc/posix-functions/towupper.texi: Likewise.
35144         * doc/posix-functions/towupper_l.texi: Likewise.
35145         * doc/posix-functions/vfwprintf.texi: Likewise.
35146         * doc/posix-functions/vfwscanf.texi: Likewise.
35147         * doc/posix-functions/vswscanf.texi: Likewise.
35148         * doc/posix-functions/vwprintf.texi: Likewise.
35149         * doc/posix-functions/vwscanf.texi: Likewise.
35150         * doc/posix-functions/wcpcpy.texi: Likewise.
35151         * doc/posix-functions/wcpncpy.texi: Likewise.
35152         * doc/posix-functions/wcscasecmp.texi: Likewise.
35153         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35154         * doc/posix-functions/wcscoll_l.texi: Likewise.
35155         * doc/posix-functions/wcsdup.texi: Likewise.
35156         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35157         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35158         * doc/posix-functions/wcsnlen.texi: Likewise.
35159         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35160         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35161         * doc/posix-functions/wctrans_l.texi: Likewise.
35162         * doc/posix-functions/wctype_l.texi: Likewise.
35163         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35164         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35165         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35166         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35167         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35168         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35169         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35170         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35171         * doc/glibc-functions/wcschrnul.texi: Likewise.
35172         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35173         * doc/glibc-functions/wcstod_l.texi: Likewise.
35174         * doc/glibc-functions/wcstof_l.texi: Likewise.
35175         * doc/glibc-functions/wcstol_l.texi: Likewise.
35176         * doc/glibc-functions/wcstold_l.texi: Likewise.
35177         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35178         * doc/glibc-functions/wcstoq.texi: Likewise.
35179         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35180         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35181         * doc/glibc-functions/wcstouq.texi: Likewise.
35182         * doc/glibc-functions/wmempcpy.texi: Likewise.
35183
35184 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35185             Eric Blake  <ebb9@byu.net>
35186             Paolo Bonzini  <bonzini@gnu.org>
35187             Bruno Haible  <bruno@clisp.org>
35188
35189         Make c-stack work on Haiku.
35190         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35191         (c_stack_action): Use SA_ONSTACK flag.
35192
35193 2008-12-22  Bruno Haible  <bruno@clisp.org>
35194
35195         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35196
35197 2008-12-22  Bruno Haible  <bruno@clisp.org>
35198
35199         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35200         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35201         being overridden.
35202         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35203         New macros.
35204         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35206         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35207         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35208
35209 2008-12-22  Bruno Haible  <bruno@clisp.org>
35210
35211         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35212         from test code.
35213
35214 2008-12-22  Eric Blake  <ebb9@byu.net>
35215
35216         Avoid gcc warnings on cygwin.
35217         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35218         Avoid unused variable.
35219         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35220         Likewise.
35221
35222 2008-12-22  Bruno Haible  <bruno@clisp.org>
35223
35224         Remove HAVE_MBRTOWC conditionals.
35225         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35226         (mbscasecmp): Assume mbrtowc function.
35227         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35228         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35229         * lib/mbschr.c: Include mbuiter.h unconditionally.
35230         (mbschr): Assume mbrtowc function.
35231         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35232         (mbscspn): Assume mbrtowc function.
35233         * lib/mbslen.c: Include mbuiter.h unconditionally.
35234         (mbslen): Assume mbrtowc function.
35235         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35236         (mbsncasecmp): Assume mbrtowc function.
35237         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35238         (mbsnlen): Assume mbrtowc function.
35239         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35240         (mbspbrk): Assume mbrtowc function.
35241         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35242         (mbspcasecmp): Assume mbrtowc function.
35243         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35244         (mbsrchr): Assume mbrtowc function.
35245         * lib/mbssep.c: Include mbuiter.h unconditionally.
35246         (mbssep): Assume mbrtowc function.
35247         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35248         (mbsspn): Assume mbrtowc function.
35249         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35250         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35251         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35252         (mbstok_r): Assume mbrtowc function.
35253         * lib/propername.c: Include mbuiter.h unconditionally.
35254         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35255         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35256         (trim2): Assume mbrtowc function.
35257         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35258         (mbsnwidth): Assume mbrtowc function.
35259         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35260         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35261         fallback definitions.
35262         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35263
35264 2008-12-22  Bruno Haible  <bruno@clisp.org>
35265
35266         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35267
35268 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35269
35270         * modules/regex: Request emulations for the mb*/wc* functions we need.
35271         * m4/regex.m4: Don't look for those functions here.
35272         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35273
35274 2008-12-22  Bruno Haible  <bruno@clisp.org>
35275
35276         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35277
35278 2008-12-21  Bruno Haible  <bruno@clisp.org>
35279
35280         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35281         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35282         (Include): Remove conditionalization.
35283         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35284         (Include): Remove conditionalization.
35285         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35286         (Include): Remove conditionalization.
35287         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35288         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35289         * NEWS: Mention the change.
35290         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35291         via Sergey Poznyakoff <gray@gnu.org.ua>.
35292
35293 2008-12-21  Bruno Haible  <bruno@clisp.org>
35294
35295         * MODULES.html.sh (Extended multibyte and wide character utilities
35296         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35297         wcrtomb, wcsrtombs.
35298         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35299         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35300         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35301         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35302
35303 2008-12-21  Bruno Haible  <bruno@clisp.org>
35304
35305         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35306
35307 2008-12-21  Bruno Haible  <bruno@clisp.org>
35308
35309         * modules/wcsnrtombs-tests: New file.
35310         * tests/test-wcsnrtombs1.sh: New file.
35311         * tests/test-wcsnrtombs2.sh: New file.
35312         * tests/test-wcsnrtombs3.sh: New file.
35313         * tests/test-wcsnrtombs4.sh: New file.
35314         * tests/test-wcsnrtombs.c: New file.
35315
35316         New module 'wcsnrtombs'.
35317         * lib/wchar.in.h (wcsnrtombs): New declaration.
35318         * lib/wcsnrtombs.c: New file.
35319         * lib/wcsrtombs-state.c: New file.
35320         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35321         (internal_state): Remove variable.
35322         * m4/wcsnrtombs.m4: New file.
35323         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35324         compilation units.
35325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35326         HAVE_WCSNRTOMBS.
35327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35328         HAVE_WCSNRTOMBS.
35329         * modules/wcsnrtombs: New file.
35330         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35331         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35332
35333 2008-12-21  Bruno Haible  <bruno@clisp.org>
35334
35335         * modules/wcsrtombs-tests: New file.
35336         * tests/test-wcsrtombs1.sh: New file.
35337         * tests/test-wcsrtombs2.sh: New file.
35338         * tests/test-wcsrtombs3.sh: New file.
35339         * tests/test-wcsrtombs4.sh: New file.
35340         * tests/test-wcsrtombs.c: New file.
35341
35342         New module 'wcsrtombs'.
35343         * lib/wchar.in.h (wcsrtombs): New declaration.
35344         * lib/wcsrtombs.c: New file.
35345         * m4/wcsrtombs.m4: New file.
35346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35347         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35349         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35350         * modules/wcsrtombs: New file.
35351         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35352         bugs.
35353
35354 2008-12-21  Bruno Haible  <bruno@clisp.org>
35355
35356         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35357         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35359         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35360         if not correct.
35361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35362         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35363         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35364         m4/locale-zh.m4, m4/codeset.m4.
35365         * doc/posix-functions/wcrtomb.texi: Document the bug.
35366
35367 2008-12-21  Bruno Haible  <bruno@clisp.org>
35368
35369         Work around a btowc() bug on IRIX 6.5.
35370         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35371         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35372         REPLACE_WTOBC if not.
35373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35374         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35375         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35376
35377 2008-12-21  Bruno Haible  <bruno@clisp.org>
35378
35379         * modules/wcrtomb-tests: New file.
35380         * tests/test-wcrtomb.sh: New file.
35381         * tests/test-wcrtomb.c: New file.
35382
35383         New module 'wcrtomb'.
35384         * lib/wchar.in.h (wcrtomb): New declaration.
35385         * lib/wcrtomb.c: New file.
35386         * m4/wcrtomb.m4: New file.
35387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35388         HAVE_WCRTOMB.
35389         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35390         HAVE_WCRTOMB.
35391         * modules/wcrtomb: New file.
35392         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35393
35394 2008-12-21  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35397         * modules/mbsrtowcs (Files): Likewise.
35398         * modules/wctob (Files): Likewise.
35399         * modules/c-strcase-tests (Files): Likewise.
35400         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35401         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35402         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35403         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35404         * modules/vasnprintf-posix-tests (Files): Likewise.
35405
35406 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35407
35408         gitlog-to-changelog: pass all command-line arguments to git-log
35409         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35410         it is sometimes convenient to filter the commits in various ways.
35411         gitlog-to-changelog only allows --since to specify a start date,
35412         but git-log itself supports many other filtering mechanisms.
35413         At the moment, I want to filter by branch name.  Rather than
35414         adding a --branch option to gitlog-to-changelog, it seems more
35415         flexible to simply pass all options directly to git-log and let
35416         git do the work.  Notice that this effectively makes --since a
35417         redundant option for gitlog-to-changelog, but removing it would
35418         require current usage to change since calls would then require
35419         an additional '--'.
35420
35421 2008-12-21  Bruno Haible  <bruno@clisp.org>
35422
35423         * modules/mbsnrtowcs-tests: New file.
35424         * tests/test-mbsnrtowcs1.sh: New file.
35425         * tests/test-mbsnrtowcs2.sh: New file.
35426         * tests/test-mbsnrtowcs3.sh: New file.
35427         * tests/test-mbsnrtowcs4.sh: New file.
35428         * tests/test-mbsnrtowcs.c: New file.
35429
35430         New module 'mbsnrtowcs'.
35431         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35432         * lib/mbsnrtowcs.c: New file.
35433         * lib/mbsrtowcs-state.c: New file.
35434         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35435         (internal_state): Remove variable.
35436         * m4/mbsnrtowcs.m4: New file.
35437         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35438         compilation units.
35439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35440         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35441         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35442         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35443         * modules/mbsnrtowcs: New file.
35444         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35445         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35446         portability problem.
35447
35448 2008-12-21  Bruno Haible  <bruno@clisp.org>
35449
35450         Work around mbsrtowcs bug.
35451         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35452         (gl_FUNC_MBSRTOWCS): Invoke it.
35453         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35454         m4/locale-zh.m4.
35455         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35456
35457 2008-12-21  Bruno Haible  <bruno@clisp.org>
35458
35459         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35460
35461 2008-12-21  Bruno Haible  <bruno@clisp.org>
35462
35463         Update doc for AIX.
35464         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35465         16-bit wchar_t type.
35466         * doc/posix-functions/btowc.texi: Likewise.
35467         * doc/posix-functions/fgetwc.texi: Likewise.
35468         * doc/posix-functions/fgetws.texi: Likewise.
35469         * doc/posix-functions/fputwc.texi: Likewise.
35470         * doc/posix-functions/fputws.texi: Likewise.
35471         * doc/posix-functions/fwide.texi: Likewise.
35472         * doc/posix-functions/fwprintf.texi: Likewise.
35473         * doc/posix-functions/fwscanf.texi: Likewise.
35474         * doc/posix-functions/getwchar.texi: Likewise.
35475         * doc/posix-functions/getwc.texi: Likewise.
35476         * doc/posix-functions/iswalnum.texi: Likewise.
35477         * doc/posix-functions/iswalpha.texi: Likewise.
35478         * doc/posix-functions/iswblank.texi: Likewise.
35479         * doc/posix-functions/iswcntrl.texi: Likewise.
35480         * doc/posix-functions/iswctype.texi: Likewise.
35481         * doc/posix-functions/iswdigit.texi: Likewise.
35482         * doc/posix-functions/iswgraph.texi: Likewise.
35483         * doc/posix-functions/iswlower.texi: Likewise.
35484         * doc/posix-functions/iswprint.texi: Likewise.
35485         * doc/posix-functions/iswpunct.texi: Likewise.
35486         * doc/posix-functions/iswspace.texi: Likewise.
35487         * doc/posix-functions/iswupper.texi: Likewise.
35488         * doc/posix-functions/iswxdigit.texi: Likewise.
35489         * doc/posix-functions/mbrtowc.texi: Likewise.
35490         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35491         * doc/posix-functions/mbstowcs.texi: Likewise.
35492         * doc/posix-functions/mbtowc.texi: Likewise.
35493         * doc/posix-functions/putwchar.texi: Likewise.
35494         * doc/posix-functions/putwc.texi: Likewise.
35495         * doc/posix-functions/swprintf.texi: Likewise.
35496         * doc/posix-functions/tolower.texi: Likewise.
35497         * doc/posix-functions/toupper.texi: Likewise.
35498         * doc/posix-functions/towctrans.texi: Likewise.
35499         * doc/posix-functions/ungetwc.texi: Likewise.
35500         * doc/posix-functions/vswprintf.texi: Likewise.
35501         * doc/posix-functions/wcrtomb.texi: Likewise.
35502         * doc/posix-functions/wcscat.texi: Likewise.
35503         * doc/posix-functions/wcschr.texi: Likewise.
35504         * doc/posix-functions/wcscmp.texi: Likewise.
35505         * doc/posix-functions/wcscoll.texi: Likewise.
35506         * doc/posix-functions/wcscpy.texi: Likewise.
35507         * doc/posix-functions/wcscspn.texi: Likewise.
35508         * doc/posix-functions/wcsftime.texi: Likewise.
35509         * doc/posix-functions/wcslen.texi: Likewise.
35510         * doc/posix-functions/wcsncat.texi: Likewise.
35511         * doc/posix-functions/wcsncmp.texi: Likewise.
35512         * doc/posix-functions/wcsncpy.texi: Likewise.
35513         * doc/posix-functions/wcspbrk.texi: Likewise.
35514         * doc/posix-functions/wcsrchr.texi: Likewise.
35515         * doc/posix-functions/wcsrtombs.texi: Likewise.
35516         * doc/posix-functions/wcsspn.texi: Likewise.
35517         * doc/posix-functions/wcsstr.texi: Likewise.
35518         * doc/posix-functions/wcstod.texi: Likewise.
35519         * doc/posix-functions/wcstof.texi: Likewise.
35520         * doc/posix-functions/wcstoimax.texi: Likewise.
35521         * doc/posix-functions/wcstok.texi: Likewise.
35522         * doc/posix-functions/wcstold.texi: Likewise.
35523         * doc/posix-functions/wcstoll.texi: Likewise.
35524         * doc/posix-functions/wcstol.texi: Likewise.
35525         * doc/posix-functions/wcstombs.texi: Likewise.
35526         * doc/posix-functions/wcstoull.texi: Likewise.
35527         * doc/posix-functions/wcstoul.texi: Likewise.
35528         * doc/posix-functions/wcstoumax.texi: Likewise.
35529         * doc/posix-functions/wcswidth.texi: Likewise.
35530         * doc/posix-functions/wcsxfrm.texi: Likewise.
35531         * doc/posix-functions/wctob.texi: Likewise.
35532         * doc/posix-functions/wctomb.texi: Likewise.
35533         * doc/posix-functions/wctrans.texi: Likewise.
35534         * doc/posix-functions/wctype.texi: Likewise.
35535         * doc/posix-functions/wcwidth.texi: Likewise.
35536         * doc/posix-functions/wmemchr.texi: Likewise.
35537         * doc/posix-functions/wmemcmp.texi: Likewise.
35538         * doc/posix-functions/wmemcpy.texi: Likewise.
35539         * doc/posix-functions/wmemmove.texi: Likewise.
35540         * doc/posix-functions/wmemset.texi: Likewise.
35541         * doc/posix-functions/wprintf.texi: Likewise.
35542         * doc/posix-functions/wscanf.texi: Likewise.
35543
35544 2008-12-21  Bruno Haible  <bruno@clisp.org>
35545
35546         Update doc for HP-UX 11.11.
35547         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35548         in HP-UX version 11.00, not in all versions of HP-UX 11.
35549         * doc/posix-functions/fwide.texi: Likewise.
35550         * doc/posix-functions/fwprintf.texi: Likewise.
35551         * doc/posix-functions/fwscanf.texi: Likewise.
35552         * doc/posix-functions/inet_ntop.texi: Likewise.
35553         * doc/posix-functions/inet_pton.texi: Likewise.
35554         * doc/posix-functions/mbrlen.texi: Likewise.
35555         * doc/posix-functions/mbrtowc.texi: Likewise.
35556         * doc/posix-functions/mbsinit.texi: Likewise.
35557         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35558         * doc/posix-functions/swprintf.texi: Likewise.
35559         * doc/posix-functions/swscanf.texi: Likewise.
35560         * doc/posix-functions/towctrans.texi: Likewise.
35561         * doc/posix-functions/vfwprintf.texi: Likewise.
35562         * doc/posix-functions/vswprintf.texi: Likewise.
35563         * doc/posix-functions/vwprintf.texi: Likewise.
35564         * doc/posix-functions/wcrtomb.texi: Likewise.
35565         * doc/posix-functions/wcsrtombs.texi: Likewise.
35566         * doc/posix-functions/wcsstr.texi: Likewise.
35567         * doc/posix-functions/wctob.texi: Likewise.
35568         * doc/posix-functions/wctrans.texi: Likewise.
35569         * doc/posix-functions/wmemchr.texi: Likewise.
35570         * doc/posix-functions/wmemcmp.texi: Likewise.
35571         * doc/posix-functions/wmemcpy.texi: Likewise.
35572         * doc/posix-functions/wmemmove.texi: Likewise.
35573         * doc/posix-functions/wmemset.texi: Likewise.
35574         * doc/posix-functions/wprintf.texi: Likewise.
35575         * doc/posix-functions/wscanf.texi: Likewise.
35576
35577 2008-12-21  Bruno Haible  <bruno@clisp.org>
35578
35579         Work around a portability problem.
35580         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35581         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35582
35583 2008-12-20  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35587         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35589         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35590
35591         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35592         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35593         set.
35594         (GNULIB_defined_mbstate_t): New macro.
35595         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35596         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35597         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35598         reuses the system's mbrtowc function but works around the bugs.
35599         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35600         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35601         macros.
35602         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35603         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35604         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35605         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35606         REPLACE_MBSINIT if mbsinit needs to be overridden.
35607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35608         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35609         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35610         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35611         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35612         m4/locale-zh.m4.
35613         (Depends): Add mbsinit.
35614         * modules/mbsinit (Depends): Add mbrtowc.
35615         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35616
35617 2008-12-20  Bruno Haible  <bruno@clisp.org>
35618
35619         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35620         so that there are no conversion errors on AIX.
35621         * tests/test-mbsrtowcs.c (main): LIkewise.
35622
35623 2008-12-20  Bruno Haible  <bruno@clisp.org>
35624
35625         Work around wctob bug on Solaris <= 9.
35626         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35627         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35629         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35630         * modules/wctob (Files): Add m4/locale-fr.m4.
35631         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35632
35633 2008-12-20  Bruno Haible  <bruno@clisp.org>
35634
35635         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35636         /dev/null.
35637         * tests/test-select-in.sh: Likewise.
35638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35639
35640 2008-12-20  Bruno Haible  <bruno@clisp.org>
35641
35642         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35643         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35644         Cygwin 1.5.x.
35645
35646 2008-12-20  Bruno Haible  <bruno@clisp.org>
35647
35648         Ensure mbstate_t is defined on HP-UX 11.11.
35649         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35650         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35651         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35652         AC_USE_SYSTEM_EXTENSIONS.
35653         * modules/fnmatch (Depends-on): Add extensions.
35654         * modules/mbrlen (Depends-on): Likewise.
35655         * modules/mbrtowc (Depends-on): Likewise.
35656         * modules/mbsinit (Depends-on): Likewise.
35657         * modules/mbsrtowcs (Depends-on): Likewise.
35658         * modules/mbswidth (Depends-on): Likewise.
35659         * modules/quotearg (Depends-on): Likewise.
35660         * modules/strftime (Depends-on): Likewise.
35661
35662 2008-12-20  Bruno Haible  <bruno@clisp.org>
35663
35664         Ensure wctob is declared on IRIX 6.5.
35665         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35666         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35667         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35669         of HAVE_WCTOB.
35670         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35671         HAVE_WCTOB.
35672         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35673
35674 2008-12-19  Bruno Haible  <bruno@clisp.org>
35675
35676         * modules/mbsrtowcs-tests: New file.
35677         * tests/test-mbsrtowcs1.sh: New file.
35678         * tests/test-mbsrtowcs2.sh: New file.
35679         * tests/test-mbsrtowcs3.sh: New file.
35680         * tests/test-mbsrtowcs4.sh: New file.
35681         * tests/test-mbsrtowcs.c: New file.
35682
35683         New module 'mbsrtowcs'.
35684         * lib/wchar.in.h (mbsrtowcs): New declaration.
35685         * lib/mbsrtowcs.c: New file.
35686         * m4/mbsrtowcs.m4: New file.
35687         * modules/mbsrtowcs: New file.
35688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35689         HAVE_MBSRTOWCS.
35690         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35691         HAVE_MBSRTOWCS.
35692         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35693
35694 2008-12-19  Bruno Haible  <bruno@clisp.org>
35695
35696         New module 'mbrlen'.
35697         * lib/wchar.in.h (mbrlen): New declaration.
35698         * lib/mbrlen.c: New file.
35699         * m4/mbrlen.m4: New file.
35700         * modules/mbrlen: New file.
35701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35702         HAVE_MBRLEN.
35703         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35704         HAVE_MBRLEN.
35705         * doc/posix-functions/mbrlen.texi: Document the new module.
35706
35707 2008-12-19  Bruno Haible  <bruno@clisp.org>
35708
35709         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35710         * modules/mbrtowc (Depends-on): Add verify.
35711         Suggested by Paul Eggert.
35712
35713 2008-12-18  Bruno Haible  <bruno@clisp.org>
35714
35715         * modules/mbsinit-tests: New file.
35716         * tests/test-mbsinit.sh: New file.
35717         * tests/test-mbsinit.c: New file.
35718
35719 2008-12-18  Bruno Haible  <bruno@clisp.org>
35720
35721         * modules/mbrtowc-tests: New file.
35722         * tests/test-mbrtowc1.sh: New file.
35723         * tests/test-mbrtowc2.sh: New file.
35724         * tests/test-mbrtowc3.sh: New file.
35725         * tests/test-mbrtowc4.sh: New file.
35726         * tests/test-mbrtowc.c: New file.
35727
35728         New module 'mbrtowc'.
35729         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35730         mbsinit and mbrtowc.
35731         (mbrtowc): New declaration.
35732         * lib/mbrtowc.c: New file.
35733         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35734         * modules/mbrtowc: New file.
35735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35736         HAVE_MBRTOWC.
35737         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35738         HAVE_MBRTOWC.
35739         * doc/posix-functions/mbrtowc.texi: Document the new module.
35740
35741 2008-12-18  Bruno Haible  <bruno@clisp.org>
35742
35743         New module 'wctob'.
35744         * lib/wchar.in.h (wctob): New declaration.
35745         * lib/wctob.c: New file.
35746         * m4/wctob.m4: New file.
35747         * modules/wctob: New file.
35748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35749         HAVE_WCTOB.
35750         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35751         * doc/posix-functions/wctob.texi: Document the new module.
35752
35753 2008-12-18  Bruno Haible  <bruno@clisp.org>
35754
35755         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35756         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35757
35758 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35759
35760         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35761         G. Christensen" <tgc@jupiterrise.com>.
35762
35763         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35764         G. Christensen" <tgc@jupiterrise.com>.
35765
35766         * lib/flock.c: Need to include string.h.  Reported by "Tom
35767         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35768         <ebb9@byu.net>.
35769
35770 2008-12-18  Bruno Haible  <bruno@clisp.org>
35771
35772         * m4/locale-ja.m4: New file, from GNU gettext.
35773
35774 2008-12-17  Bruno Haible  <bruno@clisp.org>
35775
35776         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35777         Suggested by Eric Blake.
35778
35779 2008-12-17  Bruno Haible  <bruno@clisp.org>
35780
35781         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35782
35783 2008-12-17  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35786         * modules/mbsinit (Depends-on): Add verify.
35787         Suggested by Paul Eggert.
35788
35789 2008-12-17  Bruno Haible  <bruno@clisp.org>
35790
35791         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35792         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35793         gl_FUNC_MBRTOWC.
35794         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35795         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35796         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35797         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35798         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35799         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35800         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35801         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35802         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35803         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35804         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35805         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35806         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35807         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35808         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35809         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35810         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35811         * modules/trim (configure.ac): Likewise.
35812
35813 2008-12-17  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/btowc-tests: New file.
35816         * tests/test-btowc1.sh: New file.
35817         * tests/test-btowc2.sh: New file.
35818         * tests/test-btowc.c: New file.
35819
35820         New module 'btowc'.
35821         * lib/wchar.in.h (btowc): New declaration.
35822         * lib/btowc.c: New file.
35823         * m4/btowc.m4: New file.
35824         * modules/btowc: New file.
35825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35826         HAVE_BTOWC.
35827         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35828         * doc/posix-functions/btowc.texi: Document the new module.
35829
35830 2008-12-17  Bruno Haible  <bruno@clisp.org>
35831
35832         New module 'mbsinit'.
35833         * lib/wchar.in.h (mbsinit): New declaration.
35834         * lib/mbsinit.c: New file.
35835         * m4/mbsinit.m4: New file.
35836         * modules/mbsinit: New file.
35837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35838         HAVE_MBSINIT.
35839         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35840         HAVE_MBSINIT.
35841         * doc/posix-functions/mbsinit.texi: Document the new module.
35842
35843 2008-12-16  Bruno Haible  <bruno@clisp.org>
35844
35845         * lib/unistd.in.h: Add comment.
35846         * tests/test-environ.c: Don't include <stdlib.h>.
35847
35848 2008-12-16  Bruno Haible  <bruno@clisp.org>
35849
35850         * lib/parse-duration.h (parse_duration): Document return value
35851         convention.
35852         * lib/parse-duration.c: Include specification header first. Add
35853         comments.
35854         (_): Remove macro.
35855         (parse_year_month_day, parse_hour_minute_second): Move side effects
35856         outside of strchr call.
35857         (parse_non_iso8601): Move side effects outside of isspace call.
35858         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35859         call.
35860
35861 2008-12-16  Bruno Haible  <bruno@clisp.org>
35862
35863         * tests/test-parse-duration.sh: Produce no output when the test
35864         succeeds.
35865
35866 2008-12-16  Bruno Haible  <bruno@clisp.org>
35867
35868         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35869         expressions.
35870
35871 2008-12-15  Bruno Haible  <bruno@clisp.org>
35872
35873         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35874         * doc/glibc-functions/flistxattr.texi: Likewise.
35875         * doc/glibc-functions/fopencookie.texi: Likewise.
35876         * doc/glibc-functions/fremovexattr.texi: Likewise.
35877         * doc/glibc-functions/fsetxattr.texi: Likewise.
35878         * doc/glibc-functions/getxattr.texi: Likewise.
35879         * doc/glibc-functions/lgetxattr.texi: Likewise.
35880         * doc/glibc-functions/listxattr.texi: Likewise.
35881         * doc/glibc-functions/llistxattr.texi: Likewise.
35882         * doc/glibc-functions/lremovexattr.texi: Likewise.
35883         * doc/glibc-functions/lsetxattr.texi: Likewise.
35884         * doc/glibc-functions/removexattr.texi: Likewise.
35885         * doc/glibc-functions/setxattr.texi: Likewise.
35886         * doc/posix-functions/open_memstream.texi: Likewise.
35887
35888 2008-12-15  Eric Blake  <ebb9@byu.net>
35889
35890         Update doc for cygwin 1.7.
35891         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35892         functions.
35893         * doc/posix-functions/fchmodat.texi: Likewise.
35894         * doc/posix-functions/fchownat.texi: Likewise.
35895         * doc/posix-functions/fdopendir.texi: Likewise.
35896         * doc/posix-functions/fmemopen.texi: Likewise.
35897         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35898         * doc/posix-functions/fstatat.texi: Likewise.
35899         * doc/posix-functions/futimens.texi: Likewise.
35900         * doc/posix-functions/gai_strerror.texi: Likewise.
35901         * doc/posix-functions/getaddrinfo.texi: Likewise.
35902         * doc/posix-functions/getnameinfo.texi: Likewise.
35903         * doc/posix-functions/if_freenameindex.texi: Likewise.
35904         * doc/posix-functions/if_indextoname.texi: Likewise.
35905         * doc/posix-functions/if_nameindex.texi: Likewise.
35906         * doc/posix-functions/if_nametoindex.texi: Likewise.
35907         * doc/posix-functions/insque.texi: Likewise.
35908         * doc/posix-functions/linkat.texi: Likewise.
35909         * doc/posix-functions/llrint.texi: Likewise.
35910         * doc/posix-functions/llrintf.texi: Likewise.
35911         * doc/posix-functions/llrintl.texi: Likewise.
35912         * doc/posix-functions/lockf.texi: Likewise.
35913         * doc/posix-functions/lrintl.texi: Likewise.
35914         * doc/posix-functions/mkdirat.texi: Likewise.
35915         * doc/posix-functions/mkfifoat.texi: Likewise.
35916         * doc/posix-functions/mknodat.texi: Likewise.
35917         * doc/posix-functions/mq_close.texi: Likewise.
35918         * doc/posix-functions/mq_getattr.texi: Likewise.
35919         * doc/posix-functions/mq_notify.texi: Likewise.
35920         * doc/posix-functions/mq_open.texi: Likewise.
35921         * doc/posix-functions/mq_receive.texi: Likewise.
35922         * doc/posix-functions/mq_send.texi: Likewise.
35923         * doc/posix-functions/mq_setattr.texi: Likewise.
35924         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35925         * doc/posix-functions/mq_timedsend.texi: Likewise.
35926         * doc/posix-functions/mq_unlink.texi: Likewise.
35927         * doc/posix-functions/open_memstream.texi: Likewise.
35928         * doc/posix-functions/openat.texi: Likewise.
35929         * doc/posix-functions/posix_fadvise.texi: Likewise.
35930         * doc/posix-functions/posix_fallocate.texi: Likewise.
35931         * doc/posix-functions/posix_madvise.texi: Likewise.
35932         * doc/posix-functions/posix_memalign.texi: Likewise.
35933         * doc/posix-functions/posix_openpt.texi: Likewise.
35934         * doc/posix-functions/readlinkat.texi: Likewise.
35935         * doc/posix-functions/remque.texi: Likewise.
35936         * doc/posix-functions/renameat.texi: Likewise.
35937         * doc/posix-functions/rintl.texi: Likewise.
35938         * doc/posix-functions/sem_unlink.texi: Likewise.
35939         * doc/posix-functions/shm_open.texi: Likewise.
35940         * doc/posix-functions/shm_unlink.texi: Likewise.
35941         * doc/posix-functions/signgam.texi: Likewise.
35942         * doc/posix-functions/sigset.texi: Likewise.
35943         * doc/posix-functions/stpcpy.texi: Likewise.
35944         * doc/posix-functions/stpncpy.texi: Likewise.
35945         * doc/posix-functions/strerror.texi: Likewise.
35946         * doc/posix-functions/strtod.texi: Likewise.
35947         * doc/posix-functions/symlinkat.texi: Likewise.
35948         * doc/posix-functions/unlinkat.texi: Likewise.
35949         * doc/posix-functions/utimensat.texi: Likewise.
35950         * doc/glibc-functions/bindresvport.texi: Likewise.
35951         * doc/glibc-functions/dn_expand.texi: Likewise.
35952         * doc/glibc-functions/exp10.texi: Likewise.
35953         * doc/glibc-functions/exp10f.texi: Likewise.
35954         * doc/glibc-functions/fgetxattr.texi: Likewise.
35955         * doc/glibc-functions/flistxattr.texi: Likewise.
35956         * doc/glibc-functions/fopencookie.texi: Likewise.
35957         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35958         * doc/glibc-functions/fremovexattr.texi: Likewise.
35959         * doc/glibc-functions/fsetxattr.texi: Likewise.
35960         * doc/glibc-functions/getifaddrs.texi: Likewise.
35961         * doc/glibc-functions/getxattr.texi: Likewise.
35962         * doc/glibc-functions/lgetxattr.texi: Likewise.
35963         * doc/glibc-functions/listxattr.texi: Likewise.
35964         * doc/glibc-functions/llistxattr.texi: Likewise.
35965         * doc/glibc-functions/lremovexattr.texi: Likewise.
35966         * doc/glibc-functions/lsetxattr.texi: Likewise.
35967         * doc/glibc-functions/pow10.texi: Likewise.
35968         * doc/glibc-functions/pow10f.texi: Likewise.
35969         * doc/glibc-functions/rcmd_af.texi: Likewise.
35970         * doc/glibc-functions/removexattr.texi: Likewise.
35971         * doc/glibc-functions/res_init.texi: Likewise.
35972         * doc/glibc-functions/res_mkquery.texi: Likewise.
35973         * doc/glibc-functions/res_query.texi: Likewise.
35974         * doc/glibc-functions/res_querydomain.texi: Likewise.
35975         * doc/glibc-functions/res_send.texi: Likewise.
35976         * doc/glibc-functions/rresvport_af.texi: Likewise.
35977         * doc/glibc-functions/setxattr.texi: Likewise.
35978         * doc/glibc-functions/strcasestr.texi: Likewise.
35979
35980 2008-12-15  Bruno Haible  <bruno@clisp.org>
35981
35982         Fix compilation error on OSF/1 4.0.
35983         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35984         <sys/time.h>, simply delegate to the system header.
35985         Reported by Daniel Richard G. <oss@teragram.com>.
35986
35987 2008-12-15  Bruno Haible  <bruno@clisp.org>
35988
35989         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35990         * doc/posix-functions/fchmodat.texi: Likewise.
35991         * doc/posix-functions/fchownat.texi: Likewise.
35992         * doc/posix-functions/fdopendir.texi: Likewise.
35993         * doc/posix-functions/fstatat.texi: Likewise.
35994         * doc/posix-functions/mkdirat.texi: Likewise.
35995         * doc/posix-functions/unlinkat.texi: Likewise.
35996
35997 2008-12-14  Bruno Haible  <bruno@clisp.org>
35998
35999         Update doc for POSIX:2008.
36000         * doc/posix-functions/faccessat.texi: New file.
36001         * doc/posix-functions/fchmodat.texi: New file.
36002         * doc/posix-functions/fchownat.texi: New file.
36003         * doc/posix-functions/fdopendir.texi: New file.
36004         * doc/posix-functions/fstatat.texi: New file.
36005         * doc/posix-functions/futimens.texi: New file.
36006         * doc/posix-functions/linkat.texi: New file.
36007         * doc/posix-functions/mkdirat.texi: New file.
36008         * doc/posix-functions/mkfifoat.texi: New file.
36009         * doc/posix-functions/mknodat.texi: New file.
36010         * doc/posix-functions/open_wmemstream.texi: New file.
36011         * doc/posix-functions/openat.texi: New file.
36012         * doc/posix-functions/psiginfo.texi: New file.
36013         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36014         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36015         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36016         * doc/posix-functions/readlinkat.texi: New file.
36017         * doc/posix-functions/renameat.texi: New file.
36018         * doc/posix-functions/strerror_l.texi: New file.
36019         * doc/posix-functions/symlinkat.texi: New file.
36020         * doc/posix-functions/unlinkat.texi: New file.
36021         * doc/posix-functions/utimensat.texi: New file.
36022         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36023
36024 2008-12-14  Bruno Haible  <bruno@clisp.org>
36025
36026         Update doc for POSIX:2008.
36027         * doc/posix-functions/alphasort.texi: Renamed from
36028         doc/glibc-functions/alphasort.texi.
36029         * doc/posix-functions/dirfd.texi: Renamed from
36030         doc/glibc-functions/dirfd.texi.
36031         * doc/posix-functions/dprintf.texi: Renamed from
36032         doc/glibc-functions/dprintf.texi.
36033         * doc/posix-functions/duplocale.texi: Renamed from
36034         doc/glibc-functions/duplocale.texi.
36035         * doc/posix-functions/fexecve.texi: Renamed from
36036         doc/glibc-functions/fexecve.texi.
36037         * doc/posix-functions/fmemopen.texi: Renamed from
36038         doc/glibc-functions/fmemopen.texi.
36039         * doc/posix-functions/freelocale.texi: Renamed from
36040         doc/glibc-functions/freelocale.texi.
36041         * doc/posix-functions/getdate_err.texi: Renamed from
36042         doc/glibc-functions/getdate_err.texi.
36043         * doc/posix-functions/isalnum_l.texi: Renamed from
36044         doc/glibc-functions/isalnum_l.texi.
36045         * doc/posix-functions/isalpha_l.texi: Renamed from
36046         doc/glibc-functions/isalpha_l.texi.
36047         * doc/posix-functions/isblank_l.texi: Renamed from
36048         doc/glibc-functions/isblank_l.texi.
36049         * doc/posix-functions/iscntrl_l.texi: Renamed from
36050         doc/glibc-functions/iscntrl_l.texi.
36051         * doc/posix-functions/isdigit_l.texi: Renamed from
36052         doc/glibc-functions/isdigit_l.texi.
36053         * doc/posix-functions/isgraph_l.texi: Renamed from
36054         doc/glibc-functions/isgraph_l.texi.
36055         * doc/posix-functions/islower_l.texi: Renamed from
36056         doc/glibc-functions/islower_l.texi.
36057         * doc/posix-functions/isprint_l.texi: Renamed from
36058         doc/glibc-functions/isprint_l.texi.
36059         * doc/posix-functions/ispunct_l.texi: Renamed from
36060         doc/glibc-functions/ispunct_l.texi.
36061         * doc/posix-functions/isspace_l.texi: Renamed from
36062         doc/glibc-functions/isspace_l.texi.
36063         * doc/posix-functions/isupper_l.texi: Renamed from
36064         doc/glibc-functions/isupper_l.texi.
36065         * doc/posix-functions/iswalnum_l.texi: Renamed from
36066         doc/glibc-functions/iswalnum_l.texi.
36067         * doc/posix-functions/iswalpha_l.texi: Renamed from
36068         doc/glibc-functions/iswalpha_l.texi.
36069         * doc/posix-functions/iswblank_l.texi: Renamed from
36070         doc/glibc-functions/iswblank_l.texi.
36071         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36072         doc/glibc-functions/iswcntrl_l.texi.
36073         * doc/posix-functions/iswctype_l.texi: Renamed from
36074         doc/glibc-functions/iswctype_l.texi.
36075         * doc/posix-functions/iswdigit_l.texi: Renamed from
36076         doc/glibc-functions/iswdigit_l.texi.
36077         * doc/posix-functions/iswgraph_l.texi: Renamed from
36078         doc/glibc-functions/iswgraph_l.texi.
36079         * doc/posix-functions/iswlower_l.texi: Renamed from
36080         doc/glibc-functions/iswlower_l.texi.
36081         * doc/posix-functions/iswprint_l.texi: Renamed from
36082         doc/glibc-functions/iswprint_l.texi.
36083         * doc/posix-functions/iswpunct_l.texi: Renamed from
36084         doc/glibc-functions/iswpunct_l.texi.
36085         * doc/posix-functions/iswspace_l.texi: Renamed from
36086         doc/glibc-functions/iswspace_l.texi.
36087         * doc/posix-functions/iswupper_l.texi: Renamed from
36088         doc/glibc-functions/iswupper_l.texi.
36089         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36090         doc/glibc-functions/iswxdigit_l.texi.
36091         * doc/posix-functions/isxdigit_l.texi: Renamed from
36092         doc/glibc-functions/isxdigit_l.texi.
36093         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36094         doc/glibc-functions/mbsnrtowcs.texi.
36095         * doc/posix-functions/mkdtemp.texi: Renamed from
36096         doc/glibc-functions/mkdtemp.texi.
36097         * doc/posix-functions/newlocale.texi: Renamed from
36098         doc/glibc-functions/newlocale.texi.
36099         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36100         doc/glibc-functions/nl_langinfo_l.texi.
36101         * doc/posix-functions/open_memstream.texi: Renamed from
36102         doc/glibc-functions/open_memstream.texi.
36103         * doc/posix-functions/opterr.texi: Renamed from
36104         doc/glibc-functions/opterr.texi.
36105         * doc/posix-functions/optind.texi: Renamed from
36106         doc/glibc-functions/optind.texi.
36107         * doc/posix-functions/optopt.texi: Renamed from
36108         doc/glibc-functions/optopt.texi.
36109         * doc/posix-functions/psignal.texi: Renamed from
36110         doc/glibc-functions/psignal.texi.
36111         * doc/posix-functions/scandir.texi: Renamed from
36112         doc/glibc-functions/scandir.texi.
36113         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36114         doc/glibc-functions/sched_get_priority_min.texi.
36115         * doc/posix-functions/signgam.texi: Renamed from
36116         doc/glibc-functions/signgam.texi.
36117         * doc/posix-functions/stpcpy.texi: Renamed from
36118         doc/glibc-functions/stpcpy.texi.
36119         * doc/posix-functions/stpncpy.texi: Renamed from
36120         doc/glibc-functions/stpncpy.texi.
36121         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36122         doc/glibc-functions/strcasecmp_l.texi.
36123         * doc/posix-functions/strcoll_l.texi: Renamed from
36124         doc/glibc-functions/strcoll_l.texi.
36125         * doc/posix-functions/strfmon_l.texi: Renamed from
36126         doc/glibc-functions/strfmon_l.texi.
36127         * doc/posix-functions/strftime_l.texi: Renamed from
36128         doc/glibc-functions/strftime_l.texi.
36129         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36130         doc/glibc-functions/strncasecmp_l.texi.
36131         * doc/posix-functions/strndup.texi: Renamed from
36132         doc/glibc-functions/strndup.texi.
36133         * doc/posix-functions/strnlen.texi: Renamed from
36134         doc/glibc-functions/strnlen.texi.
36135         * doc/posix-functions/strsignal.texi: Renamed from
36136         doc/glibc-functions/strsignal.texi.
36137         * doc/posix-functions/strxfrm_l.texi: Renamed from
36138         doc/glibc-functions/strxfrm_l.texi.
36139         * doc/posix-functions/timer_gettime.texi: Renamed from
36140         doc/glibc-functions/timer_gettime.texi.
36141         * doc/posix-functions/tolower_l.texi: Renamed from
36142         doc/glibc-functions/tolower_l.texi.
36143         * doc/posix-functions/toupper_l.texi: Renamed from
36144         doc/glibc-functions/toupper_l.texi.
36145         * doc/posix-functions/towctrans_l.texi: Renamed from
36146         doc/glibc-functions/towctrans_l.texi.
36147         * doc/posix-functions/towlower_l.texi: Renamed from
36148         doc/glibc-functions/towlower_l.texi.
36149         * doc/posix-functions/towupper_l.texi: Renamed from
36150         doc/glibc-functions/towupper_l.texi.
36151         * doc/posix-functions/uselocale.texi: Renamed from
36152         doc/glibc-functions/uselocale.texi.
36153         * doc/posix-functions/vdprintf.texi: Renamed from
36154         doc/glibc-functions/vdprintf.texi.
36155         * doc/posix-functions/wcpcpy.texi:
36156         Renamed from doc/glibc-functions/wcpcpy.texi.
36157         * doc/posix-functions/wcpncpy.texi: Renamed from
36158         doc/glibc-functions/wcpncpy.texi.
36159         * doc/posix-functions/wcscasecmp.texi: Renamed from
36160         doc/glibc-functions/wcscasecmp.texi.
36161         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36162         doc/glibc-functions/wcscasecmp_l.texi.
36163         * doc/posix-functions/wcscoll_l.texi: Renamed from
36164         doc/glibc-functions/wcscoll_l.texi.
36165         * doc/posix-functions/wcsdup.texi: Renamed from
36166         doc/glibc-functions/wcsdup.texi.
36167         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36168         doc/glibc-functions/wcsncasecmp.texi.
36169         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36170         doc/glibc-functions/wcsncasecmp_l.texi.
36171         * doc/posix-functions/wcsnlen.texi: Renamed from
36172         doc/glibc-functions/wcsnlen.texi.
36173         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36174         doc/glibc-functions/wcsnrtombs.texi.
36175         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36176         doc/glibc-functions/wcsxfrm_l.texi.
36177         * doc/posix-functions/wctrans_l.texi: Renamed from
36178         doc/glibc-functions/wctrans_l.texi.
36179         * doc/posix-functions/wctype_l.texi: Renamed from
36180         doc/glibc-functions/wctype_l.texi.
36181         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36182         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36183         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36184         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36185         these subsections.
36186         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36187         Remove sections.
36188
36189 2008-12-14  Bruno Haible  <bruno@clisp.org>
36190
36191         Update doc for POSIX:2008.
36192         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36193
36194 2008-12-14  Bruno Haible  <bruno@clisp.org>
36195
36196         Update doc for POSIX:2008.
36197         * doc/pastposix-functions/bcmp.texi: Renamed from
36198         doc/posix-functions/bcmp.texi.
36199         * doc/pastposix-functions/bcopy.texi: Renamed from
36200         doc/posix-functions/bcopy.texi.
36201         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36202         doc/posix-functions/bsd_signal.texi.
36203         * doc/pastposix-functions/bzero.texi: Renamed from
36204         doc/posix-functions/bzero.texi.
36205         * doc/pastposix-functions/ecvt.texi: Renamed from
36206         doc/posix-functions/ecvt.texi.
36207         * doc/pastposix-functions/fcvt.texi: Renamed from
36208         doc/posix-functions/fcvt.texi.
36209         * doc/pastposix-functions/ftime.texi: Renamed from
36210         doc/posix-functions/ftime.texi.
36211         * doc/pastposix-functions/gcvt.texi: Renamed from
36212         doc/posix-functions/gcvt.texi.
36213         * doc/pastposix-functions/getcontext.texi: Renamed from
36214         doc/posix-functions/getcontext.texi.
36215         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36216         doc/posix-functions/gethostbyaddr.texi.
36217         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36218         doc/posix-functions/gethostbyname.texi.
36219         * doc/pastposix-functions/getwd.texi: Renamed from
36220         doc/posix-functions/getwd.texi.
36221         * doc/pastposix-functions/h_errno.texi: Renamed from
36222         doc/posix-functions/h_errno.texi.
36223         * doc/pastposix-functions/index.texi: Renamed from
36224         doc/posix-functions/index.texi.
36225         * doc/pastposix-functions/makecontext.texi: Renamed from
36226         doc/posix-functions/makecontext.texi.
36227         * doc/pastposix-functions/mktemp.texi: Renamed from
36228         doc/posix-functions/mktemp.texi.
36229         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36230         doc/posix-functions/pthread_attr_getstackaddr.texi.
36231         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36232         doc/posix-functions/pthread_attr_setstackaddr.texi.
36233         * doc/pastposix-functions/rindex.texi: Renamed from
36234         doc/posix-functions/rindex.texi.
36235         * doc/pastposix-functions/scalb.texi: Renamed from
36236         doc/posix-functions/scalb.texi.
36237         * doc/pastposix-functions/setcontext.texi: Renamed from
36238         doc/posix-functions/setcontext.texi.
36239         * doc/pastposix-functions/swapcontext.texi: Renamed from
36240         doc/posix-functions/swapcontext.texi.
36241         * doc/pastposix-functions/ualarm.texi: Renamed from
36242         doc/posix-functions/ualarm.texi.
36243         * doc/pastposix-functions/usleep.texi: Renamed from
36244         doc/posix-functions/usleep.texi.
36245         * doc/pastposix-functions/vfork.texi: Renamed from
36246         doc/posix-functions/vfork.texi.
36247         * doc/pastposix-functions/wcswcs.texi: Renamed from
36248         doc/posix-functions/wcswcs.texi.
36249         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36250         (Function Substitutes): Update.
36251
36252 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36253
36254         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36255         m4/strerror.m4.
36256
36257 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36258             Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36261
36262 2008-12-13  Bruno Haible  <bruno@clisp.org>
36263
36264         * modules/strtoull (Depends-on): Remove unistd.
36265
36266 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36267
36268         * modules/strtoull (Depends-on): Add stdlib.
36269
36270 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36271
36272         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36273
36274 2008-12-10  Jim Meyering  <meyering@redhat.com>
36275
36276         gl_ASSERT: don't say assertions are disabled when they're not
36277         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36278         "checking whether to enable assertions... no", when they are in
36279         fact enabled.  This is solely a bug in the output of configure.
36280         In spite of saying "no", NDEBUG was not defined in that case.
36281         Also, as noted by Eric Blake, leave assertions enabled upon
36282         --enable-assert=INVALID.
36283
36284 2008-12-10  Bruno Haible  <bruno@clisp.org>
36285
36286         Change MODULES.html to refer to POSIX:2008 where possible.
36287         * MODULES.html.sh (POSIX2008_URL): New variable.
36288         (posix_headers): Remove sys/timeb, ucontext.
36289         (posix2001_headers): New variable.
36290         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36291         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36292         index, makecontext, mktemp, pthread_attr_getstackaddr,
36293         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36294         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36295         (posix2001_functions): New variable.
36296         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36297         otherwise.
36298
36299 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36300
36301         add missing include to parse-duration.c
36302         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36303         * modules/parse-duration (Depends-on): Add xalloc.
36304
36305         fix sed script reading maint.mk
36306         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36307         (syntax-check-rules): Use it.
36308
36309 2008-12-09  Bruno Haible  <bruno@clisp.org>
36310
36311         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36312         MacOS X 10.4/PowerPC.
36313         Reported by Simon Josefsson.
36314
36315 2008-12-08  Jim Meyering  <meyering@redhat.com>
36316
36317         work around mingw's lack of some S_IF definitions
36318         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36319         Reported by Simon Josefsson.
36320
36321 2008-12-08  Bruno Haible  <bruno@clisp.org>
36322
36323         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36324         applied to variables. Needed on MacOS X 10.4/PowerPC.
36325         Reported by Simon Josefsson.
36326
36327 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36328         and Eric Blake  <ebb9@byu.net>
36329
36330         assert: honor --enable-assert
36331         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36332         order to honor --enable-assert, rather than treating it as a
36333         synonym for --disable-assert.
36334
36335 2008-12-08  Jim Meyering  <meyering@redhat.com>
36336
36337         * lib/posixtm.c: Remove now-useless declaration of mktime.
36338
36339         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36340
36341 2008-12-07  Bruno Haible  <bruno@clisp.org>
36342
36343         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36344         test_once): Mark functions as static.
36345         * tests/test-tls.c (test_tls): Likewise.
36346
36347 2008-12-07  Bruno Haible  <bruno@clisp.org>
36348
36349         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36350         iconv_register_autodetect.
36351
36352 2008-12-07  Jim Meyering  <meyering@redhat.com>
36353
36354         posixtm.c: avoid a warning
36355         * lib/posixtm.c (posixtime): Don't initialize tm0.
36356         It's no longer needed to placate gcc4's -Wuninitialized,
36357         and the attempt to placate would elicit a new warning.
36358
36359         unicodeio.c: mark unused parameters
36360         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36361         (fallback_failure_callback): Likewise.
36362
36363 2008-12-07  Bruno Haible  <bruno@clisp.org>
36364
36365         * gnulib-tool (func_create_testdir): When building the tests
36366         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36367         Reported by Simon Josefsson.
36368
36369 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36370
36371         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36372
36373 2008-12-06  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36376         Suggested by Eric Blake.
36377
36378 2008-12-06  Bruno Haible  <bruno@clisp.org>
36379
36380         Fix a c-stack test failure on MacOS X.
36381         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36382         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36383         handler for SIGBUS as well.
36384         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36385         install a signal handler for SIGBUS as well.
36386         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36387
36388 2008-12-06  Bruno Haible  <bruno@clisp.org>
36389
36390         Advocacy documentation.
36391         * doc/gnulib-intro.texi (Benefits): New section.
36392         * doc/gnulib.texi: Update.
36393
36394 2008-12-06  Bruno Haible  <bruno@clisp.org>
36395
36396         Document the 'manywarnings' module.
36397         * doc/manywarnings.texi: New file.
36398         * doc/gnulib.texi: Include it.
36399
36400 2008-12-05  Eric Blake  <ebb9@byu.net>
36401
36402         tests: silence some gcc warnings
36403         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36404         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36405         type mismatches.
36406
36407 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36408             Bruno Haible  <bruno@clisp.org>
36409
36410         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36411
36412 2008-11-29  Jim Meyering  <meyering@redhat.com>
36413
36414         unicodeio.c: mark unused parameters
36415         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36416         (fallback_failure_callback): Likewise.
36417
36418         fts: fix a thinko
36419         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36420         (set_stat_type): Return S_IF*-valued "type" directly.
36421         Prompted by James Youngman's spotting a related bug.
36422         Confirmed by further testing through find.
36423
36424         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36425         * lib/fts.c (D_TYPE): Define.
36426         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36427         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36428         (s_ifmt_shift_bits): New function.
36429         (set_stat_type): New function.
36430         (fts_build): When not calling fts_stat, call set_stat_type
36431         to propagate dirent.d_type info to fts_read caller.
36432         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36433         fts_statp->st_mode type information may be valid.
36434
36435 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36436
36437         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36438         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36439         <sds@gnu.org>.
36440
36441 2008-11-20  Bruno Haible  <bruno@clisp.org>
36442
36443         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36444         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36445         INCLUDE_NEXT.
36446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36447         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36448         * modules/math (Makefile.am): Substitute
36449         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36451
36452 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36453             Bruno Haible  <bruno@clisp.org>
36454
36455         * lib/stdint.in.h: Define all type macros so that their expansion is
36456         a single typedef'ed token. Fixes a compilation failure in Boost which
36457         does "using ::int8_t;".
36458
36459 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36460
36461         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36462         gl_MANYWARN_ALL_GCC.
36463         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36464         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36465         * modules/manywarnings: New file.
36466         * MODULES.html.sh: Mention manywarnings module.
36467
36468 2008-11-18  Bruno Haible  <bruno@clisp.org>
36469
36470         * doc/gnulib-tool.texi (Unit tests): New section.
36471
36472 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36473
36474         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36475         paths like 'lib/po/foo.po'.
36476
36477 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36478
36479         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36480         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36481
36482 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36483
36484         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36485         parameter works.
36486
36487 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36488
36489         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36490
36491 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36492
36493         * modules/parse-duration-tests: New file.
36494         * tests/test-parse-duration.sh: New file.
36495         * tests/test-parse-duration.c: New file.
36496
36497         New module 'parse-duration'.
36498         * lib/parse-duration.h: New file.
36499         * lib/parse-duration.c: New file.
36500         * modules/parse-duration: New file.
36501
36502 2008-11-17  Bruno Haible  <bruno@clisp.org>
36503
36504         * tests/test-select-out.sh: Comment out the first pipe test.
36505         Reported by Simon Josefsson.
36506
36507 2008-11-17  Bruno Haible  <bruno@clisp.org>
36508
36509         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36511         gl_HOSTENT.
36512
36513 2008-11-17  Bruno Haible  <bruno@clisp.org>
36514
36515         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36516         -lnetwork and -lnet. Needed for Haiku and BeOS.
36517
36518 2008-11-16  Bruno Haible  <bruno@clisp.org>
36519
36520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36521
36522 2008-11-16  Bruno Haible  <bruno@clisp.org>
36523
36524         Avoid test failure on Haiku.
36525         * tests/test-fsync.c: Include <errno.h>.
36526         (main): Don't require that fsync (0) fails.
36527
36528 2008-11-15  Bruno Haible  <bruno@clisp.org>
36529
36530         New module 'hostent'.
36531         * modules/hostent: New file.
36532         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36533
36534 2008-11-15  Bruno Haible  <bruno@clisp.org>
36535
36536         New module 'servent'.
36537         * modules/servent: New file.
36538         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36539
36540 2008-11-15  Bruno Haible  <bruno@clisp.org>
36541
36542         Avoid generating same test program with two different rules.
36543         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36544         test-frexp to test-frexp-nolibm.
36545         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36546         test-frexpl to test-frexpl-nolibm.
36547
36548 2008-11-15  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36551         $(FREXPL_LIBM).
36552
36553 2008-11-15  Bruno Haible  <bruno@clisp.org>
36554
36555         * lib/netdb.in.h: Activate the definitions also when the system's
36556         <netdb.h> has 'struct addrinfo'.
36557         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36558         EAI_OVERFLOW or AI_NUMERICSERV.
36559         * doc/posix-headers/netdb.texi: Document the problem.
36560
36561 2008-11-15  Bruno Haible  <bruno@clisp.org>
36562
36563         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36564
36565         Make the 'sched' module work on platforms where <sched.h> exists but
36566         is incomplete (such as Haiku).
36567         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36568         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36569         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36570         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36571         HAVE_STRUCT_SCHED_PARAM.
36572         * modules/sched (Depends-on): Add include_next.
36573         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36574         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36575         * doc/posix-headers/sched.texi: Document the issue.
36576
36577 2008-11-13  Jim Meyering  <meyering@redhat.com>
36578
36579         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36580         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36581         test would fail due to the difference in the Report bugs to ...
36582         line.  The expected address is empty, "<>", while the actual
36583         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36584
36585 2008-11-12  Bruno Haible  <bruno@clisp.org>
36586
36587         lstat: don't compile lstat.c on systems lacking lstat
36588         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36589         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36590         Reported by Daniel P. Berrange via Jim Meyering.
36591
36592 2008-11-12  Jim Meyering  <meyering@redhat.com>
36593
36594         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36595
36596 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36597
36598         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36599         instead.
36600
36601 2008-11-12  Bruno Haible  <bruno@clisp.org>
36602
36603         * lib/unicodeio.c: Include unistr.h.
36604         (utf8_wctomb): Remove function.
36605         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36606
36607 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36608
36609         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36610         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36611         <bruno@clisp.org>.
36612         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36613
36614 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36615
36616         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36617         * doc/gnulib.texi: Add section for warnings.
36618
36619 2008-11-11  Bruno Haible  <bruno@clisp.org>
36620
36621         * lib/sockets.h: Add a comment.
36622
36623 2008-11-11  Karl Berry  <karl@gnu.org>
36624
36625         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36626
36627 2008-11-11  Eric Blake  <ebb9@byu.net>
36628
36629         fdl.texi: avoid git symlinks
36630         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36631
36632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36633
36634         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36635
36636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36637
36638         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36639         (gl_WARN_ADD): Substitute $2 if literal.
36640
36641 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36642
36643         * m4/warning.m4: Remove.
36644
36645 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36646
36647         * m4/warnings.m4: Almost complete rewrite. :-)
36648
36649 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36650
36651         * modules/warnings: New module.
36652         * m4/warnings.m4: New file.
36653         * MODULES.html.sh: Mention warnings module.
36654         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36655         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36656
36657 2008-11-10  Eric Blake  <ebb9@byu.net>
36658
36659         fdl.texi: make a symlink to the latest version
36660         * doc/standards.texi: Revert today's earlier change.
36661         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36662         * doc/fdl.texi: ...and replace this with a symlink to the newer
36663         fdl-1.3.texi.
36664
36665 2008-11-10  Bruno Haible  <bruno@clisp.org>
36666
36667         * tests/test-select-fd.c (main): Accept the result file name as fourth
36668         argument.
36669         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36670         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36671
36672 2008-11-10  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36675         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36676         as autoconf-substituted macros.
36677         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36679         gl_NETDB_H_DEFAULTS. Set these variables.
36680         * modules/netdb (Makefile.am): Substitute these variables.
36681
36682 2008-11-10  Eric Blake  <ebb9@byu.net>
36683
36684         standards.texi: include correct file for FDL 1.3
36685         * doc/standards.texi (GNU Free Documentation License): Change
36686         include file to pull in FDL 1.3, not 1.2.
36687
36688         fdl.texi: revert accidental change to license
36689         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36690
36691 2008-11-10  Bruno Haible  <bruno@clisp.org>
36692
36693         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36694         cross-compiling guesses also when the native compile gives no result.
36695
36696 2008-11-10  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/spawni.c (__spawni): Force variable into the stack.
36699
36700 2008-11-10  Bruno Haible  <bruno@clisp.org>
36701
36702         Add support for Haiku.
36703         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36704         glibc and BeOS, but also on Haiku.
36705         * lib/fpurge.c (fpurge): Likewise.
36706         * lib/freadable.c (freadable): Likewise.
36707         * lib/freadahead.c (freadahead): Likewise.
36708         * lib/freading.c (freading): Likewise.
36709         * lib/freadptr.c (freadptr): Likewise.
36710         * lib/freadseek.c (freadptrinc): Likewise.
36711         * lib/fseeko.c (rpl_fseeko): Likewise.
36712         * lib/fseterr.c (fseterr): Likewise.
36713         * lib/fwritable.c (fwritable): Likewise.
36714         * lib/fwriting.c (fwriting): Likewise.
36715         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36716
36717 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36718
36719         * lib/config.charset: Treat Haiku like BeOS.
36720
36721 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36722
36723         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36724         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36725
36726 2008-11-08  Bruno Haible  <bruno@clisp.org>
36727
36728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36729         AC_CACHE_CHECK.
36730
36731 2008-11-08  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36734
36735 2008-11-08  Bruno Haible  <bruno@clisp.org>
36736
36737         * tests/test-select-fd.c: New file.
36738         * tests/test-select-in.sh: New file.
36739         * tests/test-select-out.sh: New file.
36740         * tests/test-select-stdin.c: New file.
36741         * modules/select-tests (Files): Add the new files.
36742         (Depends-on): Add gettimeofday.
36743         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36744         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36745         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36746
36747 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36748             Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36751
36752 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36753
36754         * build-aux/pmccabe2html: Added support for C++ source files.
36755
36756 2008-11-05  Ben Pfaff  <blp@gnu.org>
36757
36758         Fix lib/close.c build on Windows.
36759         * modules/close (Files): Add lib/w32sock.h.
36760
36761 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36762
36763         Accept Bison's NEWS format.
36764         * build-aux/announce-gen (print_news_deltas): Tweak
36765         $re_prefix.
36766
36767 2008-11-04  Bruno Haible  <bruno@clisp.org>
36768
36769         * modules/random_r (Maintainer): Add glibc.
36770
36771 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36772
36773         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36774         by karl@freefriends.org (Karl Berry).
36775         * doc/alloca.texi: Likewise.
36776         * doc/c-ctype.texi: Likewise.
36777         * doc/c-strcase.texi: Likewise.
36778         * doc/c-strcaseeq.texi: Likewise.
36779         * doc/c-strcasestr.texi: Likewise.
36780         * doc/c-strstr.texi: Likewise.
36781         * doc/c-strtod.texi: Likewise.
36782         * doc/c-strtold.texi: Likewise.
36783         * doc/ctime.texi: Likewise.
36784         * doc/error.texi: Likewise.
36785         * doc/fdl.texi: Likewise.
36786         * doc/gcd.texi: Likewise.
36787         * doc/getdate.texi: Likewise.
36788         * doc/gnulib-intro.texi: Likewise.
36789         * doc/gnulib-tool.texi: Likewise.
36790         * doc/gnulib.texi: Likewise.
36791         * doc/inet_ntoa.texi: Likewise.
36792         * doc/maintain.texi: Likewise.
36793         * doc/make-stds.texi: Likewise.
36794         * doc/quote.texi: Likewise.
36795         * doc/regexprops-generic.texi: Likewise.
36796         * doc/standards.texi: Likewise.
36797         * doc/verify.texi: Likewise.
36798         * doc/visibility.texi: Likewise.
36799         * doc/gnulib.texi (GNU Free Documentation License): Include
36800         fdl-1.3.texi instead of fdl.texi.
36801
36802 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36803
36804         * doc/fdl-1.3.texi: New file, from
36805         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36806         * modules/fdl-1.3: Add.
36807         * MODULES.html.sh: Add fdl-1.3.
36808
36809 2008-11-03  Bruno Haible  <bruno@clisp.org>
36810
36811         Make determination of absolute name of header file work with AIX xlc.
36812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36813         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36814         preprocessing.
36815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36816         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36817
36818 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36819
36820         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36821         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36822         <ludo@gnu.org>.
36823
36824 2008-11-02  Bruno Haible  <bruno@clisp.org>
36825
36826         Mark 'strpbrk' obsolete.
36827         * modules/strpbrk (Status, Notice): New sections.
36828         * modules/strtok_r (Depends-on): Add strpbrk.
36829
36830 2008-11-02  Bruno Haible  <bruno@clisp.org>
36831
36832         Mark 'strdup' obsolete.
36833         * modules/strdup (Status, Notice): New sections.
36834         * modules/findprog (Depends-on): Add strdup.
36835         * modules/getaddrinfo (Depends-on): Likewise.
36836         * modules/localename (Depends-on): Likewise.
36837         * modules/relocatable-lib (Depends-on): Likewise.
36838         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36839         * modules/relocatable-prog (Depends-on): Likewise.
36840         * modules/trim (Depends-on): Likewise.
36841         * modules/unictype/gen-ctype (Depends-on): Likewise.
36842         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36843
36844 2008-11-02  Bruno Haible  <bruno@clisp.org>
36845
36846         Mark 'strcspn' obsolete.
36847         * modules/strcspn (Status, Notice): New sections.
36848
36849 2008-11-02  Bruno Haible  <bruno@clisp.org>
36850
36851         Mark 'rmdir' obsolete.
36852         * modules/rmdir (Status, Notice): New sections.
36853         * modules/clean-temp (Depends-on): Add rmdir.
36854         * modules/openat (Depends-on): Likewise.
36855
36856 2008-11-02  Bruno Haible  <bruno@clisp.org>
36857
36858         Mark 'raise' obsolete.
36859         * modules/raise (Status, Notice): New sections.
36860         (Include): Specify <signal.h>.
36861         * modules/stdio (Depends-on): Add raise.
36862         * modules/write (Depends-on): Likewise.
36863
36864 2008-11-02  Bruno Haible  <bruno@clisp.org>
36865
36866         Mark 'memset' obsolete.
36867         * modules/memset (Status, Notice): New sections.
36868
36869 2008-11-02  Bruno Haible  <bruno@clisp.org>
36870
36871         Mark 'memmove' obsolete.
36872         * modules/memmove (Status, Notice): New sections.
36873         * modules/argp (Depends-on): Add memmove.
36874         * modules/argz (Depends-on): Likewise.
36875         * modules/canonicalize (Depends-on): Likewise.
36876         * modules/canonicalize-lgpl (Depends-on): Likewise.
36877         * modules/fts (Depends-on): Likewise.
36878         * modules/getcwd (Depends-on): Likewise.
36879         * modules/human (Depends-on): Likewise.
36880         * modules/regex (Depends-on): Likewise.
36881         * modules/striconveh (Depends-on): Likewise.
36882         * modules/trim (Depends-on): Likewise.
36883         * modules/unistr/u8-move (Depends-on): Likewise.
36884         * modules/unistr/u16-move (Depends-on): Likewise.
36885         * modules/unistr/u32-move (Depends-on): Likewise.
36886
36887 2008-11-02  Bruno Haible  <bruno@clisp.org>
36888
36889         Mark 'memcpy' obsolete.
36890         * modules/memcpy (Status, Notice): New sections.
36891
36892 2008-11-02  Bruno Haible  <bruno@clisp.org>
36893
36894         Mark 'memcmp' obsolete.
36895         * modules/memcmp (Status, Notice): New sections.
36896         * modules/argmatch (Depends-on): Add memchr.
36897         * modules/backupfile (Depends-on): Likewise.
36898         * modules/c-strcasestr (Depends-on): Likewise.
36899         * modules/crypto/des (Depends-on): Likewise.
36900         * modules/csharpcomp (Depends-on): Likewise.
36901         * modules/fnmatch (Depends-on): Likewise.
36902         * modules/git-merge-changelog (Depends-on): Likewise.
36903         * modules/isnand (Depends-on): Likewise.
36904         * modules/isnand-nolibm (Depends-on): Likewise.
36905         * modules/isnanf (Depends-on): Likewise.
36906         * modules/isnanf-nolibm (Depends-on): Likewise.
36907         * modules/isnanl (Depends-on): Likewise.
36908         * modules/isnanl-nolibm (Depends-on): Likewise.
36909         * modules/mbchar (Depends-on): Likewise.
36910         * modules/memcoll (Depends-on): Likewise.
36911         * modules/quotearg (Depends-on): Likewise.
36912         * modules/regex (Depends-on): Likewise.
36913         * modules/relocatable-prog (Depends-on): Likewise.
36914         * modules/same (Depends-on): Likewise.
36915         * modules/signbit (Depends-on): Likewise.
36916         * modules/strcasestr-simple (Depends-on): Likewise.
36917         * modules/unictype/gen-ctype (Depends-on): Likewise.
36918         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36919         * modules/uniname/uniname (Depends-on): Likewise.
36920         * modules/unistr/u8-cmp (Depends-on): Likewise.
36921
36922 2008-11-02  Bruno Haible  <bruno@clisp.org>
36923
36924         Mark 'memchr' obsolete.
36925         * modules/memchr (Status, Notice): New sections.
36926         * modules/argp (Depends-on): Add memchr.
36927         * modules/base64 (Depends-on): Likewise.
36928         * modules/c-strcasestr (Depends-on): Likewise.
36929         * modules/chdir-long (Depends-on): Likewise.
36930         * modules/fnmatch (Depends-on): Likewise.
36931         * modules/getsubopt (Depends-on): Likewise.
36932         * modules/git-merge-changelog (Depends-on): Likewise.
36933         * modules/glob (Depends-on): Likewise.
36934         * modules/strcasestr-simple (Depends-on): Likewise.
36935         * modules/strnlen (Depends-on): Likewise.
36936
36937 2008-11-02  Bruno Haible  <bruno@clisp.org>
36938
36939         Mark 'atexit' obsolete.
36940         * modules/atexit (Status, Notice): New sections.
36941         * modules/chdir-long (Depends-on): Add atexit.
36942         * modules/wait-process (Depends-on): Likewise.
36943
36944 2008-11-02  Bruno Haible  <bruno@clisp.org>
36945
36946         * gnulib-tool: New option --with-obsolete.
36947         (func_usage): Document it.
36948         (func_modules_transitive_closure): Drop obsolete dependencies if
36949         incobsolete is not true.
36950         (func_import): Read and save the incobsolete variable to the cache.
36951
36952 2008-11-02  Bruno Haible  <bruno@clisp.org>
36953
36954         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36955         * gnulib-tool: New option --extract-status.
36956         (func_usage): Document it.
36957         (sed_extract_prog): Recognize it.
36958         (func_get_status): New function.
36959
36960 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36961
36962         * modules/sockets (License): Change from LGPL to LGPLv2+.
36963
36964 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36965
36966         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36967
36968 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36969
36970         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36971         Mention times and sys_times.
36972         * modules/sys_times, modules/sys_times-tests: New modules.
36973         * modules/times, modules/times-tests: Likewise
36974         * m4/sys_times_h.m4: New file.
36975         * lib/sys_times.in.h: Likewise
36976         * lib/times.c: Likewise.
36977         * tests/test-sys_times.c: Likewise.
36978         * tests/test-times.c: Likewise.
36979         * doc/posix-headers/sys_times.texi: Update.
36980         * doc/posix-functions/times.texi: Update.
36981
36982 2008-10-28  Jim Meyering  <meyering@redhat.com>
36983
36984         * modules/tempname (Depends-on): Add lstat.
36985
36986         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36987
36988 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36989
36990         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36991         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36992         using idiom used elsewhere in gnulib.
36993
36994 2008-10-27  Jim Meyering  <meyering@redhat.com>
36995
36996         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36997
36998 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36999
37000         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37001         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37002         programs.
37003         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37004
37005 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37006
37007         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37008
37009 2008-10-27  Bruno Haible  <bruno@clisp.org>
37010
37011         * tests/test-lstat.c: Include <stdio.h>.
37012
37013 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37014
37015         * modules/lstat-tests: New module.
37016         * tests/test-lstat.c: New file.
37017
37018 2008-10-26  Jim Meyering  <meyering@redhat.com>
37019
37020         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37021
37022 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37023             Bruno Haible  <bruno@clisp.org>
37024
37025         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37026         * modules/configmake (Include): Add a note that the include must come
37027         after all system headers.
37028         * lib/javaversion.c: Include configmake.h after all other includes.
37029
37030 2008-10-26  Bruno Haible  <bruno@clisp.org>
37031
37032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37033         HAVE_STRUCT_RANDOM_DATA to 1.
37034         (gl_STDLIB_H): Simplify.
37035
37036 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37037
37038         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37039         substitute HAVE_STRUCT_RANDOM_DATA.
37040         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37041         random_data.
37042         * modules/stdlib (Makefile.am): Substitute
37043         HAVE_STRUCT_RANDOM_DATA.
37044
37045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37046
37047         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37048         * doc/gnulib-intro.texi (Copyright): Likewise.
37049
37050 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37051
37052         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37053         findings.
37054
37055 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37056             Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/unistd.in.h: Include <winsock2.h>.
37059         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37060         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37061         Provide dummy declarations.
37062         (gethostname): Override.
37063         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37064         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37065         gl_PREREQ_SYS_H_WINSOCK2.
37066         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37067         * doc/posix-functions/gethostname.texi: More details.
37068
37069 2008-10-25  Bruno Haible  <bruno@clisp.org>
37070
37071         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37072         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37073         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37074
37075         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37076         here ...
37077         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37078         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37079         gl_UNISTD_H_DEFAULTS.
37080
37081 2008-10-25  Eric Blake  <ebb9@byu.net>
37082
37083         signbit: avoid spurious compiler failure
37084         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37085         declarations inside function.
37086
37087 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37088             Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37091         * modules/random_r (Depends-on): Add stdint.
37092
37093 2008-10-24  Bruno Haible  <bruno@clisp.org>
37094
37095         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37096         Eggert.
37097         * modules/strerror (License): Likewise.
37098
37099 2008-10-24  Jim Meyering  <meyering@redhat.com>
37100
37101         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37102         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37103
37104 2008-10-24  Eric Blake  <ebb9@byu.net>
37105
37106         getgroups: fix compilation when getgroups is available
37107         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37108         but with <config.h> override of getgroups disabled.
37109
37110 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37111
37112         * doc/gnulib.texi (Header files): Add note about C++ problems.
37113         Explained by Bruno Haible <bruno@clisp.org>.
37114
37115 2008-10-23  Bruno Haible  <bruno@clisp.org>
37116
37117         Define a dummy SA_NODEFER macro on Interix.
37118         * lib/signal.in.h (SA_NODEFER): Define fallback.
37119         Reported by Aleksey Cheusov <cheusov@tut.by> via
37120         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37121
37122 2008-10-23  Bruno Haible  <bruno@clisp.org>
37123
37124         * modules/freadahead (License): Change to LGPLv2+.
37125         Suggested by Simon Josefsson.
37126
37127 2008-10-23  Jim Meyering  <meyering@redhat.com>
37128
37129         random_r: new module
37130         * modules/random_r: New file.
37131         * m4/random_r.m4: New file.
37132         * lib/random_r.c: New file, from glibc.
37133         * modules/random_r-tests: New file.
37134         * tests/test-random_r.c: New file.
37135         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37136          Declare.
37137         (RAND_MAX): Define.
37138         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37139         * modules/stdlib: Substitute them, too.
37140         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37141         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37142         * doc/glibc-functions/random_r.texi: Likewise.
37143         * doc/glibc-functions/setstate_r.texi: Likewise.
37144         * doc/glibc-functions/srandom_r.texi: Likewise.
37145         * config/srclist.txt: Mention it.
37146
37147 2008-10-23  David Lutterkort  <lutter@redhat.com>
37148
37149         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37150         link requirement
37151
37152 2008-10-23  Jim Meyering  <meyering@redhat.com>
37153
37154         selinux-h: mark parameters of stub functions as intentionally unused
37155         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37156         * lib/se-context.in.h: Likewise.
37157
37158 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37159
37160         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37161
37162 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37163
37164         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37165
37166 2008-10-22  Eric Blake  <ebb9@byu.net>
37167
37168         glthread/thread: avoid compiler warning
37169         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37170         Add unreachable abort to silence compiler.
37171
37172 2008-10-22  Eric Blake  <ebb9@byu.net>
37173
37174         netdb: also supply struct addrinfo for cygwin 1.5.x
37175         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37176         older cygwin.
37177         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37178         cygwin.
37179         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37180
37181 2008-10-22  Bruno Haible  <bruno@clisp.org>
37182
37183         * users.txt: Update entry about pspp.
37184
37185 2008-10-21  Bruno Haible  <bruno@clisp.org>
37186
37187         Simplification.
37188         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37189         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37190
37191         Simplification.
37192         * lib/ioctl.c (ioctl): Don't undefine.
37193         * lib/socket.c (socket): Don't undefine.
37194
37195         Remove unused module indicator macros.
37196         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37197         GNULIB_$1 as a C macro.
37198
37199         * doc/posix-functions/close.texi: Undo last change.
37200         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37201         Windows platforms.
37202
37203 2008-10-21  Bruno Haible  <bruno@clisp.org>
37204
37205         Add gethostname() declaration to <unistd.h>.
37206         * lib/unistd.in.h (gethostname): New declaration.
37207         * lib/gethostname.c: Include <unistd.h>.
37208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37209         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37211         and HAVE_GETHOSTNAME.
37212         * modules/gethostname (Depends-on): Add unistd.
37213         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37214         (Include): Specify <unistd.h>.
37215         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37216         HAVE_GETHOSTNAME.
37217         * tests/test-gethostname.c: Include <unistd.h> first.
37218
37219 2008-10-21  Bruno Haible  <bruno@clisp.org>
37220
37221         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37222         * modules/select-tests (Depends-on): Likewise.
37223         Reported by Simon Josefsson.
37224
37225 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37226
37227         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37228         * lib/accept.c: New file, based on winsock.c.
37229         * lib/bind.c: New file, based on winsock.c.
37230         * lib/connect.c: New file, based on winsock.c.
37231         * lib/getpeername.c: New file, based on winsock.c.
37232         * lib/getsockname.c: New file, based on winsock.c.
37233         * lib/getsockopt.c: New file, based on winsock.c.
37234         * lib/ioctl.c: New file, based on winsock.c.
37235         * lib/listen.c: New file, based on winsock.c.
37236         * lib/recv.c: New file, based on winsock.c.
37237         * lib/recvfrom.c: New file, based on winsock.c.
37238         * lib/send.c: New file, based on winsock.c.
37239         * lib/sendto.c: New file, based on winsock.c.
37240         * lib/setsockopt.c: New file, based on winsock.c.
37241         * lib/shutdown.c: New file, based on winsock.c.
37242         * lib/socket.c: New file, based on winsock.c.
37243         * lib/w32sock.h: New file, based on winsock.c.
37244         * lib/winsock.c: Remove file.
37245         * modules/accept: Likewise.
37246         * modules/bind: Likewise.
37247         * modules/connect: Likewise.
37248         * modules/getpeername: Likewise.
37249         * modules/getsockname: Likewise.
37250         * modules/getsockopt: Likewise.
37251         * modules/ioctl: Likewise.
37252         * modules/listen: Likewise.
37253         * modules/recv: Likewise.
37254         * modules/recvfrom: Likewise.
37255         * modules/send: Likewise.
37256         * modules/sendto: Likewise.
37257         * modules/setsockopt: Likewise.
37258         * modules/shutdown: Likewise.
37259         * modules/socket: Use socket.c instead of winsock.c.
37260         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37261         * doc/posix-functions/accept.texi: Doc fix.
37262         * doc/posix-functions/bind.texi: Doc fix.
37263         * doc/posix-functions/close.texi: Doc fix.
37264         * doc/posix-functions/connect.texi: Doc fix.
37265         * doc/posix-functions/getpeername.texi: Doc fix.
37266         * doc/posix-functions/getsockname.texi: Doc fix.
37267         * doc/posix-functions/getsockopt.texi: Doc fix.
37268         * doc/posix-functions/ioctl.texi: Doc fix.
37269         * doc/posix-functions/listen.texi: Doc fix.
37270         * doc/posix-functions/recv.texi: Doc fix.
37271         * doc/posix-functions/recvfrom.texi: Doc fix.
37272         * doc/posix-functions/send.texi: Doc fix.
37273         * doc/posix-functions/sendto.texi: Doc fix.
37274         * doc/posix-functions/setsockopt.texi: Doc fix.
37275         * doc/posix-functions/shutdown.texi: Doc fix.
37276         * doc/posix-functions/socket.texi: Doc fix.
37277
37278 2008-10-20  Bruno Haible  <bruno@clisp.org>
37279
37280         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37281         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37282         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37283         as an alias for SIGABRT.
37284         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37285         (sigaction): Map it to SIGABRT.
37286         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37287
37288 2008-10-20  Bruno Haible  <bruno@clisp.org>
37289
37290         * lib/fts.c: Don't include lstat.h.
37291         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37292
37293         Move the lstat() declaration to <sys/stat.h>.
37294         * lib/lstat.h: Remove file.
37295         * lib/sys_stat.in.h: Add special invocation convention.
37296         (lstat): New declaration.
37297         * lib/lstat.c (orig_lstat): New function.
37298         (rpl_lstat): Use orig_lstat instead of lstat.
37299         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37300         AC_C_INLINE. Set REPLACE_LSTAT.
37301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37302         and REPLACE_LSTAT.
37303         * modules/lstat (Files): Remove lib/lstat.h.
37304         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37305         (Include): Specify <sys/stat.h> instead of lstat.h.
37306         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37307         REPLACE_LSTAT.
37308         * NEWS: Mention the change.
37309
37310 2008-10-20  Bruno Haible  <bruno@clisp.org>
37311
37312         * modules/posix_spawn-tests: New file.
37313         * tests/test-posix_spawn3.c: New file.
37314
37315 2008-10-20  Bruno Haible  <bruno@clisp.org>
37316
37317         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37318         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37319         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37320         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37321         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37322
37323 2008-10-20  Bruno Haible  <bruno@clisp.org>
37324
37325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37326         of posix_spawn on AIX 5.3.
37327
37328 2008-10-20  Bruno Haible  <bruno@clisp.org>
37329
37330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37331
37332 2008-10-20  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37335         of AC_LANG_PROGRAM.
37336
37337 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37338
37339         * lib/netdb.in.h: Don't define GNU specific constants until they
37340         are supported or needed.  Reported by Bruno Haible
37341         <bruno@clisp.org>.
37342
37343 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37344
37345         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37346
37347 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37348
37349         * lib/getaddrinfo.h: Remove file.
37350         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37351         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37352         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37353         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37354         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37355         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37356         * tests/test-getaddrinfo.c: Likewise.
37357         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37358         * NEWS: Mention change.
37359
37360 2008-10-19  Bruno Haible  <bruno@clisp.org>
37361
37362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37363
37364 2008-10-19  Bruno Haible  <bruno@clisp.org>
37365
37366         * lib/wait-process.c: Include simply <sys/wait.h>.
37367         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37368         WIFSTOPPED): Remove fallback definitions.
37369         * modules/wait-process (Depends-on): Add sys_wait.
37370
37371         New module 'sys_wait'.
37372         * modules/sys_wait: New file.
37373         * lib/sys_wait.in.h: New file, partially copied from
37374         lib/wait-process.c.
37375         * m4/sys_wait_h.m4: New file.
37376         * doc/posix-headers/sys_wait.texi: Mention the new module.
37377
37378 2008-10-19  Bruno Haible  <bruno@clisp.org>
37379
37380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37381
37382 2008-10-19  Bruno Haible  <bruno@clisp.org>
37383
37384         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37385         * lib/wait-process.c (WAIT_T): Remove type.
37386         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37387         (wait_subprocess): Update.
37388
37389 2008-10-19  Bruno Haible  <bruno@clisp.org>
37390
37391         New module 'atoll'.
37392         * modules/atoll: New file.
37393         * lib/stdlib.in.h (atoll): New declaration.
37394         * lib/atoll.c: New file, from glibc with modifications.
37395         * m4/atoll.m4: New file.
37396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37397         HAVE_ATOLL.
37398         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37399         * doc/posix-functions/atoll.texi: Mention the new module.
37400
37401 2008-10-19  Bruno Haible  <bruno@clisp.org>
37402
37403         Add strtoull() declaration to <stdlib.h>.
37404         * lib/stdlib.in.h (strtoull): New declaration.
37405         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37406         Set HAVE_STRTOULL.
37407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37408         HAVE_STRTOULL.
37409         * modules/strtoull (Depends-on): Add stdlib.
37410         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37411         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37412         HAVE_STRTOULL.
37413
37414 2008-10-19  Bruno Haible  <bruno@clisp.org>
37415
37416         Add strtoll() declaration to <stdlib.h>.
37417         * lib/stdlib.in.h (strtoll): New declaration.
37418         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37419         Set HAVE_STRTOLL.
37420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37421         HAVE_STRTOLL.
37422         * modules/strtoll (Depends-on): Add stdlib.
37423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37424         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37425
37426 2008-10-19  Bruno Haible  <bruno@clisp.org>
37427
37428         * modules/bcopy (Depends-on): Add strings.
37429         (Include): Specify <strings.h>.
37430
37431 2008-10-19  Bruno Haible  <bruno@clisp.org>
37432
37433         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37434
37435 2008-10-19  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37438         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37439         mingw.
37440
37441 2008-10-19  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/atanl.c: Don't include isnanl.h.
37444         * lib/cosl.c: Likewise.
37445         * lib/ldexpl.c: Likewise.
37446         * lib/logl.c: Likewise.
37447         * lib/sinl.c: Likewise.
37448         * lib/sqrtl.c: Likewise.
37449         * lib/tanl.c: Likewise.
37450
37451         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37452         * lib/isnanf.h: Remove file.
37453         * lib/isnand.h: Remove file.
37454         * lib/isnanl.h: Remove file.
37455         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37456         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37457         macros.
37458         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37459         HAVE_ISNANF, don't define it as a C macro.
37460         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37461         HAVE_ISNAND, don't define it as a C macro.
37462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37463         HAVE_ISNANL, don't define it as a C macro.
37464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37465         HAVE_ISNAN[FDL].
37466         * modules/isnanf (Files): Remove lib/isnanf.h.
37467         (Depends-on): Add math.
37468         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37469         (Include): Specify <math.h> instead of isnanf.h.
37470         * modules/isnand (Files): Remove lib/isnand.h.
37471         (Depends-on): Add math.
37472         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37473         (Include): Specify <math.h> instead of isnand.h.
37474         * modules/isnanl (Files): Remove lib/isnanl.h.
37475         (Depends-on): Add math.
37476         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37477         (Include): Specify <math.h> instead of isnanl.h.
37478         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37479         HAVE_ISNAN[FDL].
37480         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37481         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37482         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37483         * NEWS: Mention the change.
37484
37485 2008-10-18  Bruno Haible  <bruno@clisp.org>
37486
37487         Add getusershell(), setusershell(), endusershell() declarations to
37488         <unistd.h>.
37489         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37490         declarations.
37491         * lib/getusershell.c: Include unistd.h.
37492         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37493         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37494         HAVE_GETUSERSHELL.
37495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37496         and HAVE_GETUSERSHELL.
37497         * modules/getusershell (Depends-on): Add unistd, extensions.
37498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37499         (Include): Specify <unistd.h>.
37500         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37501         HAVE_GETUSERSHELL.
37502
37503 2008-10-18  Bruno Haible  <bruno@clisp.org>
37504
37505         Add a getloadavg() declaration to <stdlib.h>.
37506         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37507         getloadavg declaration.
37508         (getloadavg): New declaration.
37509         * lib/getloadavg.c: Include <stdlib.h> first.
37510         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37511         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37512         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37514         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37515         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37517         (Include): Specify <stdlib.h>.
37518         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37519         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37520
37521 2008-10-18  Bruno Haible  <bruno@clisp.org>
37522
37523         * lib/dirchownmod.c: Don't include lchmod.h.
37524
37525         Move the lchmod() declaration to <sys/stat.h>.
37526         * lib/lchmod.h: Remove file.
37527         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37528         (lchmod): New declaration, moved here from lib/lchown.h.
37529         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37530         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37532         and HAVE_LCHMOD.
37533         * modules/lchmod (Files): Remove lib/lchmod.h.
37534         (Depends-on): Add sys_stat, extensions.
37535         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37536         (Include): Specify <sys/stat.h> instead of lchmod.h.
37537         * modules/sys_stat (Depends-on): Add link-warning.
37538         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37539         definition of GL_LINK_WARNING.
37540         * NEWS: Mention the change.
37541
37542 2008-10-18  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/fchdir.c: Don't include dirfd.h.
37545         * lib/fts.c: Likewise.
37546         * lib/getcwd.c: Likewise.
37547         * lib/glob.c: Likewise.
37548
37549         Move the dirfd() declaration to <dirent.h>.
37550         * lib/dirfd.h: Remove file.
37551         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37552         (dirfd): New declaration.
37553         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37554         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37555         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37556         HAVE_DECL_DIRFD.
37557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37558         HAVE_DECL_DIRFD.
37559         * modules/dirfd (Files): Remove lib/dirfd.h.
37560         (Depends-on): Add dirent, extensions.
37561         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37562         (Include): Specify <dirent.h> instead of dirfd.h.
37563         * modules/dirent (Depends-on): Add link-warning.
37564         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37565         definition of GL_LINK_WARNING.
37566         * NEWS: Mention the change.
37567
37568 2008-10-18  Bruno Haible  <bruno@clisp.org>
37569
37570         Move the euidaccess() declaration to <unistd.h>.
37571         * lib/euidaccess.h: Remove file.
37572         * lib/unistd.in.h (euidaccess): New declaration.
37573         * lib/euidaccess.c: Don't include euidaccess.h.
37574         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37575         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37577         and HAVE_EUIDACCESS.
37578         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37579         (Depends-on): Add unistd.
37580         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37581         (Include): Specify <unistd.h> instead of euidaccess.h.
37582         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37583         HAVE_EUIDACCESS.
37584         * NEWS: Mention the change.
37585
37586 2008-10-18  Bruno Haible  <bruno@clisp.org>
37587
37588         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37589
37590         Move the getdomainname() declaration to <unistd.h>.
37591         * lib/getdomainname.h: Remove file.
37592         * lib/unistd.in.h (getdomainname): New declaration.
37593         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37594         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37595         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37596         HAVE_GETDOMAINNAME.
37597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37598         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37599         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37600         (Depends-on): Add unistd, extensions.
37601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37602         (Includes): Specify <unistd.h> instead of getdomainname.h.
37603         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37604         HAVE_GETDOMAINNAME.
37605         * NEWS: Mention the change.
37606
37607 2008-10-18  Bruno Haible  <bruno@clisp.org>
37608
37609         * modules/dirent: New file.
37610         * m4/dirent_h.m4: New file.
37611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37612         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37613         * modules/fchdir (Files): Remove lib/dirent.in.h.
37614         (Depends-on): Add dirent.
37615         (Makefile.am): Move rules to modules/dirent.
37616         * doc/posix-headers/dirent.texi: Mention the new module.
37617
37618 2008-10-18  Bruno Haible  <bruno@clisp.org>
37619
37620         Avoid -Wunused-parameter warnings in public gnulib header files.
37621         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37622         macro.
37623         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37624
37625 2008-10-18  Bruno Haible  <bruno@clisp.org>
37626
37627         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37628         * doc/glibc-functions/error.texi: Mention the module 'error'.
37629         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37630         * doc/glibc-functions/getdomainname.texi: Mention the module
37631         'getdomainname'.
37632         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37633         * doc/glibc-functions/getpagesize.texi: Mention the module
37634         'getpagesize'.
37635         * doc/glibc-functions/getusershell.texi: Mention the module
37636         'getusershell'.
37637         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37638         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37639         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37640         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37641         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37642         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37643         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37644         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37645         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37646         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37647         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37648         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37649         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37650         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37651
37652 2008-10-17  Bruno Haible  <bruno@clisp.org>
37653
37654         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37655         HP-UX and IRIX, use -0.0L.
37656         * tests/test-ceill.c (minus_zero): Likewise.
37657         * tests/test-floorl.c (minus_zero): Likewise.
37658         * tests/test-frexpl.c (minus_zero): Likewise.
37659         * tests/test-isnan.c (minus_zerol): Likewise.
37660         * tests/test-isnanl.h (minus_zero): Likewise.
37661         * tests/test-ldexpl.c (minus_zero): Likewise.
37662         * tests/test-roundl.c (minus_zero): Likewise.
37663         * tests/test-signbit.c (minus_zerol): Likewise.
37664         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37665         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37666         * tests/test-truncl.c (minus_zero): Likewise.
37667         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37668         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37669         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37670         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37671
37672 2008-10-17  Bruno Haible  <bruno@clisp.org>
37673
37674         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37675         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37676         that it gets activated only for gcc >= 3.0.
37677         * lib/dirent.in.h: Likewise.
37678         * lib/errno.in.h: Likewise.
37679         * lib/fcntl.in.h: Likewise.
37680         * lib/float.in.h: Likewise.
37681         * lib/iconv.in.h: Likewise.
37682         * lib/inttypes.in.h: Likewise.
37683         * lib/locale.in.h: Likewise.
37684         * lib/math.in.h: Likewise.
37685         * lib/netdb.in.h: Likewise.
37686         * lib/netinet_in.in.h: Likewise.
37687         * lib/search.in.h: Likewise.
37688         * lib/signal.in.h: Likewise.
37689         * lib/spawn.in.h: Likewise.
37690         * lib/stdarg.in.h: Likewise.
37691         * lib/stdint.in.h: Likewise.
37692         * lib/stdio.in.h: Likewise.
37693         * lib/stdlib.in.h: Likewise.
37694         * lib/string.in.h: Likewise.
37695         * lib/strings.in.h: Likewise.
37696         * lib/sys_file.in.h: Likewise.
37697         * lib/sys_ioctl.in.h: Likewise.
37698         * lib/sys_select.in.h: Likewise.
37699         * lib/sys_socket.in.h: Likewise.
37700         * lib/sys_stat.in.h: Likewise.
37701         * lib/sys_time.in.h: Likewise.
37702         * lib/sysexits.in.h: Likewise.
37703         * lib/time.in.h: Likewise.
37704         * lib/unistd.in.h: Likewise.
37705         * lib/wchar.in.h: Likewise.
37706         * lib/wctype.in.h: Likewise.
37707         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37708
37709 2008-10-17  Jim Meyering  <meyering@redhat.com>
37710
37711         ignore-value: don't depend on inline module
37712         * modules/ignore-value (Depends-on): Remove 'inline'.
37713         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37714         Suggestion from Bruno Haible.
37715
37716 2008-10-17  Bruno Haible  <bruno@clisp.org>
37717
37718         New implementation of condition variables for Win32.
37719         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37720         (gl_linked_waitqueue_t): New type.
37721         (gl_cond_t): Use it.
37722         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37723         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37724         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37725         (glthread_cond_init_func, glthread_cond_wait_func,
37726         glthread_cond_timedwait_func, glthread_cond_signal_func,
37727         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37728         Reimplemented on the basis of gl_linked_waitqueue_t.
37729         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37730         gl_waitqueue_t.
37731         (gl_rwlock_t): Update.
37732         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37733
37734 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37735
37736         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37737         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37738
37739 2008-10-17  Jim Meyering  <meyering@redhat.com>
37740
37741         ignore-value: new module
37742         * modules/ignore-value: New file.
37743         * lib/ignore-value.h: New file.
37744         * MODULES.html.sh (Compiler warning management): New section,
37745         just for this module.  More to come.
37746
37747 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37748
37749         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37750         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37751         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37752
37753 2008-10-16  Jim Meyering  <meyering@redhat.com>
37754
37755         openat-die.c: avoid 'no previous prototype' warning
37756         * lib/openat-die.c: Include "openat.h".
37757         Reported by Reuben Thomas <rrt@sc3d.org>.
37758
37759 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37760
37761         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37762         * lib/netdb.in.h: Fix typo.
37763         Reported by Bruno Haible  <bruno@clisp.org>
37764
37765         * lib/netdb.in.h: Include sys/socket.h for platforms without
37766         netdb.h, to get structures like hostent on MinGW.
37767         * modules/netdb (Depends-on): Add sys_socket.
37768
37769 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37770
37771         * modules/netdb, modules/netdb-tests: New file.
37772         * m4/netdb_h.m4: New file.
37773         * lib/netdb.in.h: Add, currently just an empty file pending
37774         definitions.
37775         * tests/test-netdb.c: New file.
37776         * doc/posix-headers/netdb.texi: Mention that we replace it if
37777         needed.
37778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37779         netdb.
37780
37781 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37782
37783         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37784         with code.
37785
37786 2008-10-13  Bruno Haible  <bruno@clisp.org>
37787
37788         * lib/glthread/cond.c (glthread_cond_wait_func,
37789         glthread_cond_timedwait_func): Add a comment.
37790
37791 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37792
37793         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37794         * tests/test-select.c: Likewise,
37795
37796 2008-10-13  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/glthread/cond.c (glthread_cond_wait_func,
37799         glthread_cond_timedwait_func): Fix variable name.
37800         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37801
37802 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37803
37804         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37806         struct sockaddr.sa_len.
37807         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37808
37809 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37810
37811         * build-aux/pmccabe2html: Add css and css_url parameters.
37812
37813 2008-10-12  Bruno Haible  <bruno@clisp.org>
37814
37815         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37816         calling aclx_get.
37817         Reported by Rainer Tammer <tammer@tammer.net>.
37818
37819 2008-10-12  Bruno Haible  <bruno@clisp.org>
37820
37821         Use msvcrt aware primitives for creation/termination of Win32 threads.
37822         * lib/glthread/thread.c: Include <process.h>.
37823         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37824         (wrapper_func): Update signature.
37825         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37826
37827 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37828             Bruno Haible  <bruno@clisp.org>
37829
37830         Provide a Win32 implementation of the 'cond' module.
37831         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37832         * lib/glthread/cond.c (glthread_cond_init_func,
37833         glthread_cond_wait_func, glthread_cond_timedwait_func,
37834         glthread_cond_signal_func, glthread_cond_broadcast_func,
37835         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37836         * modules/cond (Dependencies): Add gettimeofday.
37837
37838 2008-10-11  Bruno Haible  <bruno@clisp.org>
37839
37840         Make sleep work on older versions of mingw.
37841         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37842         only whether it exists.
37843         * doc/posix-functions/sleep.texi: Mention the problem with older
37844         versions of mingw.
37845
37846 2008-10-11  Bruno Haible  <bruno@clisp.org>
37847
37848         New module 'shutdown'.
37849         * modules/shutdown: New file.
37850         * lib/sys_socket.in.h (shutdown): New declaration.
37851         * lib/winsock.c (shutdown): New function.
37852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37853         GNULIB_SHUTDOWN.
37854         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37855         * doc/posix-functions/shutdown.texi: Document the new module.
37856
37857 2008-10-11  Jim Meyering  <meyering@redhat.com>
37858
37859         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37860
37861 2008-10-11  Bruno Haible  <bruno@clisp.org>
37862
37863         New module 'fclose'.
37864         * modules/fclose: New file.
37865         * lib/stdio.in.h (fclose): New declaration.
37866         * lib/fclose.c: New file.
37867         * m4/fclose.m4: New file.
37868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37869         REPLACE_FCLOSE.
37870         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37871         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37872         REPLACE_FCLOSE.
37873         * modules/close (Depends-on): fclose.
37874         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37875
37876 2008-10-11  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37879         set errno and don't call _close.
37880
37881 2008-10-10  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37884         ACL, not afterwards. Fixes test failure on Cygwin.
37885
37886 2008-10-09  Ben Pfaff  <blp@gnu.org>
37887
37888         * build-aux/announce-gen: Fix gnulib version related part of usage
37889         message.  Die with a useful error message if no tarballs are
37890         found.
37891
37892 2008-10-10  Jim Meyering  <meyering@redhat.com>
37893
37894         bootstrap: use git's --depth=N option only if it's supported
37895         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37896         recognize the --depth option.  Reported by Pádraig Brady.
37897
37898 2008-10-09  Bruno Haible  <bruno@clisp.org>
37899
37900         New module 'ioctl'.
37901         * modules/ioctl: New file.
37902         * lib/sys_socket.in.h (ioctl): Remove declaration.
37903         * lib/winsock.c: Include <sys/ioctl.h>.
37904         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37905         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37906         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37907         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37908         * doc/posix-functions/ioctl.texi: Mention the new module.
37909
37910 2008-10-09  Bruno Haible  <bruno@clisp.org>
37911
37912         New module 'sys_ioctl'.
37913         * lib/sys_ioctl.in.h: New file.
37914         * m4/sys_ioctl_h.m4: New file.
37915         * modules/sys_ioctl: New file.
37916         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37917
37918 2008-10-09  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37921         * lib/winsock.c: Include <stdarg.h>.
37922         (rpl_ioctl): Change to second argument 'int' and then varargs.
37923
37924 2008-10-09  Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37927         when the sys_socket module is present and the system has <winsock2.h>.
37928
37929 2008-10-09  Bruno Haible  <bruno@clisp.org>
37930
37931         * doc/posix-functions/close.texi: Mention module 'close' instead of
37932         module 'sys_socket'.
37933
37934 2008-10-09  Bruno Haible  <bruno@clisp.org>
37935
37936         * doc/glibc-headers/sys_ioctl.texi: New file.
37937         * doc/gnulib.texi: Include it.
37938
37939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37940             Bruno Haible  <bruno@clisp.org>
37941
37942         Combine the two replacements of 'close'.
37943         * lib/sys_socket.in.h (close): Define to a reminder to include
37944         <unistd.h>.
37945         (_gl_close_fd_maybe_socket): New declaration.
37946         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37947         * lib/winsock.c (close): Remove undefinition.
37948         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37949         needed for the gnulib module 'close'.
37950         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37951         define to an error symbol or to a warning, if suitable.
37952         * lib/close.c: Include <sys/socket.h>.
37953         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37954         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37955         UNISTD_H_HAVE_WINSOCK2_H.
37956         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37958         UNISTD_H_HAVE_WINSOCK2_H.
37959         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37960         (configure.ac): Set a module indicator.
37961         (Makefile.am): Substitute GNULIB_CLOSE.
37962         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37963         * modules/poll-tests (Depends-on): Add close.
37964         * modules/select-tests (Depends-on): Likewise.
37965
37966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37967             Bruno Haible  <bruno@clisp.org>
37968
37969         New module 'close'.
37970         * modules/close: New file.
37971         * lib/unistd.in.h (close): Move declaration out of the
37972         FCHDIR_REPLACEMENT scope.
37973         (_gl_unregister_fd): New declaration.
37974         * lib/close.c: New file.
37975         * lib/fchdir.c (rpl_close): Remove function.
37976         * m4/close.m4: New file.
37977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37978         close.
37979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37980         REPLACE_CLOSE.
37981         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37982         REPLACE_CLOSE.
37983         * modules/fchdir (Depends-on): Add close.
37984
37985 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37986             Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/fcntl.in.h (open): Simplify conditionals.
37989         (_gl_register_fd): New declaration.
37990         * lib/fchdir.c (rpl_open): Remove function.
37991         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37992         also.
37993         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37995         open.
37996
37997 2008-10-09  Jim Meyering  <meyering@redhat.com>
37998
37999         GNUmakefile: use the more name-space-friendly "_version"
38000         * top/GNUmakefile (_dummy): Update.
38001         (_version): Rename from "version".
38002
38003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38004             Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38007         rpl_close.
38008         (_gl_register_fd): New function, extracted from rpl_open.
38009         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38010         (rpl_open, rpl_opendir): Use _gl_register_fd.
38011
38012 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38013
38014         Fix organization of 'open' replacement.
38015         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38016         (gl_FUNC_OPEN): Use it.
38017         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38018
38019 2008-10-08  Bruno Haible  <bruno@clisp.org>
38020
38021         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38022
38023 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38024
38025         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38026         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38027         listen).
38028
38029 2008-10-08  Eric Blake  <ebb9@byu.net>
38030
38031         GNUmakefile: add 'make version' target
38032         * top/GNUmakefile (_curr-ver): Split version update rules...
38033         (version): ...into a target.
38034
38035 2008-10-07  Bruno Haible  <bruno@clisp.org>
38036
38037         Use a more portable replacement expression for -0.0L.
38038         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38039         instead of -0.0L. Fix m4 quotation.
38040
38041         * tests/test-signbit.c: Include <float.h>.
38042         (minus_zero): New variable.
38043         (test_signbitl): Use minus_zero instead of -zero.
38044         * modules/signbit-tests (Depends-on): Add float.
38045
38046         * tests/test-ceill.c: Include <float.h>.
38047         (zero): Remove variable.
38048         (minus_zero): New variable.
38049         (main): Use minus_zero instead of -zero.
38050         * modules/ceill-tests (Depends-on): Add float.
38051
38052         * tests/test-floorl.c: Include <float.h>.
38053         (zero): Remove variable.
38054         (minus_zero): New variable.
38055         (main): Use minus_zero instead of -zero.
38056         * modules/floorl-tests (Depends-on): Add float.
38057
38058         * tests/test-roundl.c: Include <float.h>.
38059         (zero): Remove variable.
38060         (minus_zero): New variable.
38061         (main): Use minus_zero instead of -zero.
38062         * modules/roundl-tests (Depends-on): Add float.
38063
38064         * tests/test-truncl.c: Include <float.h>.
38065         (zero): Remove variable.
38066         (minus_zero): New variable.
38067         (main): Use minus_zero instead of -zero.
38068         * modules/truncl-tests (Depends-on): Add float.
38069
38070         * tests/test-frexpl.c (zero): Remove variable.
38071         (minus_zero): New variable.
38072         (main): Use minus_zero instead of -zero.
38073         * modules/frexpl-tests (Depends-on): Add float.
38074
38075         * tests/test-isnan.c (zerol): Remove variable.
38076         (minus_zerol): New variable.
38077         (test_long_double): Use minus_zerol instead of -zerol.
38078         * modules/isnan-tests (Depends-on): Add float.
38079
38080         * tests/test-isnanl.h (zero): Remove variable.
38081         (minus_zero): New variable.
38082         (main): Use minus_zero instead of -zero.
38083         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38084         * modules/isnanl-tests (Depends-on): Add float.
38085
38086         * tests/test-ldexpl.c (zero): Remove variable.
38087         (minus_zero): New variable.
38088         (main): Use minus_zero instead of -zero.
38089         * modules/ldexpl-tests (Depends-on): Add float.
38090
38091         * tests/test-snprintf-posix.h (zerol): Remove variable.
38092         (minus_zerol): New variable.
38093         (test_function): Use minus_zerol instead of -zerol.
38094         * modules/snprintf-posix-tests (Depends-on): Add float.
38095         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38096
38097         * tests/test-sprintf-posix.h (zerol): Remove variable.
38098         (minus_zerol): New variable.
38099         (test_function): Use minus_zerol instead of -zerol.
38100         * modules/sprintf-posix-tests (Depends-on): Add float.
38101         * modules/vsprintf-posix-tests (Depends-on): Add float.
38102
38103         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38104         (minus_zerol): New variable.
38105         (test_function): Use minus_zerol instead of -zerol.
38106         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38107
38108         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38109         (minus_zerol): New variable.
38110         (test_function): Use minus_zerol instead of -zerol.
38111         * modules/vasprintf-posix-tests (Depends-on): Add float.
38112
38113 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38114
38115         * MODULES.html.sh (Support for building documentation): Mention
38116         pmccabe2html.  Sort entries.
38117
38118         Add pmccabe2html module, from gnupdf.
38119         * build-aux/pmccabe.css: New file.
38120         * build-aux/pmccabe2html: New file.
38121         * m4/pmccabe2html.m4: New file.
38122         * modules/pmccabe2html: New file.
38123
38124 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38125
38126         flock: new module
38127         * MODULES.html.sh: Add to list of modules.
38128         * lib/flock.c: flock implementation for Windows and Unix systems
38129         which have fcntl.
38130         * doc/glibc-functions/flock.texi: Update documentation.
38131         * lib/sys_file.in.h: <sys/file.h> header file.
38132         * m4/flock.m4: M4 macros.
38133         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38134         * modules/flock: flock module.
38135         * modules/flock-tests: flock tests module.
38136         * modules/sys_file: sys/file.h module.
38137         * tests/test-flock.c: test suite for flock.
38138
38139 2008-10-06  Jim Meyering  <meyering@redhat.com>
38140
38141         bootstrap: check for LT_INIT more portably still ;-)
38142         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38143         Spotted by Bruno Haible.
38144
38145 2008-10-06  Eric Blake  <ebb9@byu.net>
38146
38147         test-signbit: avoid tripping Irix cc bug on -0.0L
38148         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38149         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38150         entire testsuite consistent and avoids an Irix 6.2 bug.
38151
38152 2008-10-05  Bruno Haible  <bruno@clisp.org>
38153             Jim Meyering  <jim@meyering.net>
38154
38155         Add an option for ignoring EPIPE during close_stdout.
38156         * lib/closeout.h: Include <stdbool.h>.
38157         (close_stdout_set_ignore_EPIPE): New declaration.
38158         * lib/closeout.c: Include <stdbool.h>.
38159         (ignore_EPIPE): New variable.
38160         (close_stdout_set_ignore_EPIPE): New function.
38161         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38162         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38163         failure.
38164         * modules/closeout (Depends-on): Add stdbool.
38165
38166 2008-10-05  Bruno Haible  <bruno@clisp.org>
38167
38168         * modules/accept: New file.
38169         * modules/bind: New file.
38170         * modules/connect: New file.
38171         * modules/getpeername: New file.
38172         * modules/getsockname: New file.
38173         * modules/getsockopt: New file.
38174         * modules/listen: New file.
38175         * modules/recv: New file.
38176         * modules/recvfrom: New file.
38177         * modules/send: New file.
38178         * modules/sendto: New file.
38179         * modules/setsockopt: New file.
38180         * modules/socket: New file.
38181         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38182         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38183         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38184         the particular module is requested. Add a link warning when the
38185         particular module is not requested.
38186         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38187         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38188         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38189         the particular module is requested.
38190         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38191         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38192         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38193         * modules/sys_socket (Depends-on): Add link-warning.
38194         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38195         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38196         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38197         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38198         GL_LINK_WARNING.
38199         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38200         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38201         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38202         * doc/posix-functions/getpeername.texi: Mention the new module
38203         'getpeername'.
38204         * doc/posix-functions/getsockname.texi: Mention the new module
38205         'getsockname'.
38206         * doc/posix-functions/getsockopt.texi: Mention the new module
38207         'getsockopt'.
38208         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38209         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38210         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38211         * doc/posix-functions/send.texi: Mention the new module 'send'.
38212         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38213         * doc/posix-functions/setsockopt.texi: Mention the new module
38214         'setsockopt'.
38215         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38216         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38217         listen, connect, accept.
38218         * modules/select-tests (Depends-on): Likewise.
38219
38220 2008-10-05  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/winsock.c (strerror): Remove unused #undef.
38223         (rpl_close): Remove unused local variable.
38224
38225         * modules/sys_socket (Depends-on); Add errno.
38226
38227 2008-10-05  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38230         (select): Add a link warning when the 'select' module is not used.
38231         * modules/sys_select (Depends-on): Add link-warning.
38232         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38233         Suggested by Paolo Bonzini.
38234
38235 2008-10-05  Jim Meyering  <meyering@redhat.com>
38236
38237         bootstrap: check for LT_INIT more portably
38238         * build-aux/bootstrap: Avoid using grep -E, since it's not
38239         portable enough.  Suggestion from Bruno Haible.
38240
38241 2008-10-05  Bruno Haible  <bruno@clisp.org>
38242
38243         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38244         as being fixed by gnulib.
38245
38246 2008-10-05  Bruno Haible  <bruno@clisp.org>
38247
38248         * modules/select-tests: New file, mostly copied from
38249         modules/sys_select-tests.
38250         * tests/test-select.c: New file, mostly copied from
38251         tests/test-sys_select.c.
38252         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38253         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38254         (Makefile.am): Remove test_sys_select_LDADD.
38255
38256         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38257         to an undefined symbol, for an error message.
38258         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38259         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38260         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38261         winsock-select.c here.
38262         * modules/sys_select (Files): Remove lib/winsock-select.c.
38263         (Depends-on): Remove alloca.
38264         (Makefile.am): Substitute GNULIB_SELECT.
38265         * modules/select: New file.
38266         * doc/posix-functions/select.texi: Update.
38267
38268 2008-10-05  Bruno Haible  <bruno@clisp.org>
38269
38270         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38271         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38272         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38273         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38274         getdtablesize.
38275         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38276         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38277
38278 2008-10-05  Bruno Haible  <bruno@clisp.org>
38279
38280         * modules/getdtablesize-tests: New file.
38281         * tests/test-getdtablesize.c: New file.
38282
38283         New module 'getdtablesize'.
38284         * lib/unistd.in.h (getdtablesize): New declaration.
38285         * lib/getdtablesize.c: New file.
38286         * m4/getdtablesize.m4: New file.
38287         * modules/getdtablesize: New file.
38288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38289         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38290         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38291         HAVE_GETDTABLESIZE.
38292         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38293
38294 2008-10-05  Bruno Haible  <bruno@clisp.org>
38295
38296         * modules/sched (Makefile.am): Fix typo.
38297         Reported by Simon Josefsson.
38298
38299 2008-10-05  Jim Meyering  <meyering@redhat.com>
38300
38301         bootstrap: check for LT_INIT, too
38302         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38303         are deprecated.  Suggestion from Ralf Wildenhues.
38304
38305 2008-10-05  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38308         overriding them by ours.
38309         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38310
38311 2008-10-05  Jim Meyering  <meyering@redhat.com>
38312
38313         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38314         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38315         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38316
38317 2008-10-04  Bruno Haible  <bruno@clisp.org>
38318
38319         * modules/dup2 (License): Change to LGPLv2+.
38320         * modules/sleep (License): Likewise.
38321         * modules/perror (License): Likewise.
38322         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38323         Blake.
38324         * modules/signal (License): Likewise.
38325         * modules/sigprocmask (License): Likewise.
38326         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38327         Meyering.
38328
38329 2008-10-04  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38332         Reported by Rainer Tammer <tammer@tammer.net>.
38333
38334 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38335             Bruno Haible  <bruno@clisp.org>
38336
38337         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38338         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38339         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38340
38341 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38342
38343         filevercmp: new module
38344         * lib/filevercmp.h: New function filevercmp comparing version strings.
38345         * lib/filevercmp.c: Implementation of filevercmp function.
38346         * modules/filevercmp: Module metadata.
38347         * tests/test-filevercmp.c: Unit test for new module.
38348         * modules/filevercmp-tests: Unit test metadata.
38349         * MODULES.html.sh: Add filevercmp module.
38350
38351 2008-10-03  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/c-ctype.h: Add comment.
38354         Reported by Jim Meyering.
38355
38356 2008-10-02  Bruno Haible  <bruno@clisp.org>
38357
38358         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38359
38360 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38361
38362         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38363         name of bootstrap.conf accordingly.
38364
38365 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38366
38367         * build-aux/bootstrap: Install git-merge-changelog configuration
38368         items into .gitconfig if needed.
38369
38370 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38371
38372         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38373         git repository, and initialize/update it accordingly.
38374
38375 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38376
38377         * modules/fsync-tests: New file.
38378         * tests/test-fsync.c: New file.
38379
38380         New module 'fsync'.
38381         * lib/fsync.c: New file.
38382         * m4/fsync.m4: New file.
38383         * modules/fsync: New file.
38384         * lib/unistd.in.h (fsync): New declaration.
38385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38386         GNULIB_FSYNC and HAVE_FSYNC.
38387         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38388         * MODULES.html.sh (posix_functions): Add fsync.
38389         * doc/posix-functions/fsync.texi: Mention the new module.
38390
38391 2008-10-02  Jim Meyering  <meyering@redhat.com>
38392
38393         fts.c: sync with similar code from coreutils' remove.c
38394         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38395         Guard also with "#if defined __linux__", since for now at least,
38396         this code is Linux-kernel-specific.
38397
38398 2008-10-02  Jim Meyering  <meyering@redhat.com>
38399
38400         fts: bug fixes
38401         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38402         Include <sys/vfs.h>, not <sys/statfs.h>.
38403
38404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38405         Include <sys/vfs.h>, not <sys/statfs.h>.
38406
38407 2008-10-01  Bruno Haible  <bruno@clisp.org>
38408
38409         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38410         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38411         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38412         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38413         * doc/posix-functions/posix_spawnp.texi: Likewise.
38414         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38415         whether posix_spawn actually works.
38416         * m4/pipe.m4 (gl_PIPE): Likewise.
38417         * modules/execute (Files): Add m4/posix_spawn.m4.
38418         * modules/pipe (Files): Add m4/posix_spawn.m4.
38419         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38420
38421 2008-10-01  Jim Meyering  <meyering@redhat.com>
38422
38423         remove trailing spaces
38424         * NEWS: Likewise.
38425         * lib/poll.c (poll): Likewise.
38426         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38427         * lib/winsock.c (rpl_close): Likewise.
38428         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38429         * modules/yield: Likewise.
38430         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38431         * tests/test-sys_select.c (connect_to_socket): Likewise.
38432
38433         fts.c: adjust a new interface to be more generally useful
38434         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38435         (fts_build): Adjust caller.
38436
38437 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38438
38439         * modules/cond-tests: New file.
38440         * tests/test-cond.c: New file.
38441
38442 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38443             Bruno Haible  <bruno@clisp.org>
38444
38445         * modules/cond (Dependencies): Add errno, time.
38446         * lib/glthread/cond.h: Include <time.h>.
38447         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38448         across platforms.
38449
38450 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38451             Bruno Haible  <bruno@clisp.org>
38452
38453         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38454
38455 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38456             Bruno Haible  <bruno@clisp.org>
38457
38458         * modules/tls-tests (Depends-on): Add thread, yield.
38459         (configure.ac): Remove all checks.
38460         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38461         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38462         gl_thread_self): Remove definitions. Include glthread/thread.h and
38463         glthread/yield.h instead.
38464         (test_tls): Pass an additional NULL argument to gl_thread_join.
38465
38466 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38467             Bruno Haible  <bruno@clisp.org>
38468
38469         * modules/lock-tests (Depends-on): Add thread, yield.
38470         (configure.ac): Remove all checks.
38471         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38472         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38473         gl_thread_self): Remove definitions. Include glthread/thread.h and
38474         glthread/yield.h instead.
38475         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38476         additional NULL argument to gl_thread_join.
38477
38478 2008-09-30  Bruno Haible  <bruno@clisp.org>
38479
38480         Fix the Win32 implementation of the 'thread' module.
38481         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38482         pointer type.
38483         (gl_thread_self): Invoke gl_thread_self_func.
38484         (gl_thread_self_func): New declaration.
38485         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38486         (do_init_self_key, init_self_key): New functions.
38487         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38488         Remove some fields.
38489         (running_threads, running_lock): Remove variables.
38490         (get_current_thread_handle): New function.
38491         (gl_thread_self_func, wrapper_func, glthread_create_func,
38492         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38493         simplified.
38494
38495 2008-09-30  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38498         files.
38499
38500 2008-09-30  Jim Meyering  <meyering@redhat.com>
38501
38502         fts.m4: correct the test for statfs.f_type
38503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38504         when checking for statfs.f_type.
38505
38506 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38507
38508         tests: avoid some compiler warnings
38509         * tests/test-memchr.c (main): Pass NULL indirectly.
38510         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38511
38512 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38513
38514         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38515         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38516         exactly specified dayshifts.
38517         (dayshift): New rule.
38518         (rel): Add dayshift.
38519         (relative_time_table) [tomorrow, yesterday, today, now]:
38520         Use tDAY_SHIFT in place of tDAY_UNIT.
38521         * tests/test-getdate.c: Add tests for now-disallowed countable
38522         dayshifts, e.g., "4 yesterday ago".
38523
38524 2008-09-29  Bruno Haible  <bruno@clisp.org>
38525
38526         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38527         * tests/test-posix_spawn1.in.sh: Renamed from
38528         tests/test-posix_spawn.in.sh.
38529         * tests/test-posix_spawn2.c: New file.
38530         * tests/test-posix_spawn2.in.sh: New file.
38531         * modules/posix_spawnp-tests (Files): Update.
38532         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38533
38534 2008-09-29  Bruno Haible  <bruno@clisp.org>
38535
38536         Propagate effects of putenv/setenv/unsetenv to child processes.
38537         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38538         * lib/pipe.c (create_pipe): Likewise.
38539
38540 2008-09-29  Bruno Haible  <bruno@clisp.org>
38541
38542         Enable use of shell scripts as executables in mingw.
38543         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38544         run the program as a shell script.
38545         * lib/pipe.c (create_pipe): Likewise.
38546         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38547         resulting array.
38548
38549 2008-09-29  Eric Blake  <ebb9@byu.net>
38550
38551         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38552
38553 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38554
38555         * doc/posix-functions/accept.texi: Update mingw problems.
38556         * doc/posix-functions/bind.texi: Update mingw problems.
38557         * doc/posix-functions/close.texi: Update mingw problems.
38558         * doc/posix-functions/connect.texi: Update mingw problems.
38559         * doc/posix-functions/getpeername.texi: Update mingw problems.
38560         * doc/posix-functions/getsockname.texi: Update mingw problems.
38561         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38562         * doc/posix-functions/ioctl.texi: Update mingw problems.
38563         * doc/posix-functions/listen.texi: Update mingw problems.
38564         * doc/posix-functions/recv.texi: Update mingw problems.
38565         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38566         * doc/posix-functions/select.texi: Update mingw problems.
38567         * doc/posix-functions/send.texi: Update mingw problems.
38568         * doc/posix-functions/sendto.texi: Update mingw problems.
38569         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38570         * doc/posix-functions/socket.texi: Update mingw problems.
38571
38572 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38573             Bruno Haible  <bruno@clisp.org>
38574
38575         * lib/sys_select.in.h: Include sys/time.h.
38576         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38577         * modules/sys_select: Depend on sys_time.
38578         * tests/test-sys_select.c: Test that sys/select.h defines struct
38579         timeval fully.
38580
38581 2008-09-29  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38584         * lib/sys_select.in.h: Likewise.
38585
38586 2008-09-29  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38589
38590 2008-09-29  Bruno Haible  <bruno@clisp.org>
38591
38592         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38593         Set LIBSOCKET instead of augmenting LIBS.
38594         * modules/sockets (Link): New section.
38595         * modules/sockets-tests (test_sockets_LDADD): New variable.
38596         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38597         * modules/poll-tests (test_poll_LDADD): New variable.
38598         * NEWS: Document the change.
38599
38600 2008-09-29  Bruno Haible  <bruno@clisp.org>
38601
38602         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38603         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38604         ARPA_INET_H directly.
38605         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38606
38607 2008-09-28  Bruno Haible  <bruno@clisp.org>
38608
38609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38610         from gl_HEADER_SYS_SOCKET.
38611         (gl_HEADER_SYS_SOCKET): Invoke it.
38612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38613
38614 2008-09-28  Bruno Haible  <bruno@clisp.org>
38615
38616         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38617         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38618         Needed on OSF/1 4.0.
38619
38620 2008-09-28  Bruno Haible  <bruno@clisp.org>
38621
38622         Override open more carefully.
38623         * lib/open.c (orig_open): New function.
38624         (rpl_open): Use orig_open instead of open.
38625         * lib/fcntl.in.h: Add special invocation convention.
38626         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38627         (gl_FUNC_OPEN): Invoke it.
38628
38629         Override freopen more carefully.
38630         * lib/freopen.c (orig_freopen): New function.
38631         (rpl_freopen): Use orig_freopen instead of freopen.
38632         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38633         (gl_FUNC_FREOPEN): Invoke it.
38634
38635         Override fopen more carefully.
38636         * lib/fopen.c (orig_fopen): New function.
38637         (rpl_fopen): Use orig_fopen instead of fopen.
38638         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38639         (gl_FUNC_FOPEN): Invoke it.
38640         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38641
38642 2008-09-28  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38645         SIGPIPE.
38646
38647 2008-09-28  Bruno Haible  <bruno@clisp.org>
38648
38649         * tests/test-sigaction.c (handler, main): Disable the check whether
38650         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38651         glibc systems with LinuxThreads.
38652
38653 2008-09-28  Bruno Haible  <bruno@clisp.org>
38654
38655         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38656
38657         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38658         with AIX xlc.
38659         * lib/fcntl.in.h (open): Likewise.
38660         Reported by Rainer Tammer <tammer@tammer.net>.
38661
38662 2008-09-28  Bruno Haible  <bruno@clisp.org>
38663
38664         * modules/posix_spawnp-tests: New file.
38665         * tests/test-posix_spawn.c: New file.
38666         * tests/test-posix_spawn.in.sh: New file.
38667
38668         New module 'posix_spawnp'.
38669         * modules/posix_spawnp: New file.
38670         * lib/spawnp.c: New file, from GNU libc with modifications.
38671         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38672
38673         New module 'posix_spawn'.
38674         * modules/posix_spawn: New file.
38675         * lib/spawn.c: New file, from GNU libc with modifications.
38676         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38677
38678         New module 'posix_spawnattr_destroy'.
38679         * modules/posix_spawnattr_destroy: New file.
38680         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38681         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38682         module.
38683
38684         New module 'posix_spawnattr_setsigmask'.
38685         * modules/posix_spawnattr_setsigmask: New file.
38686         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38687         modifications.
38688         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38689         new module.
38690
38691         New module 'posix_spawnattr_getsigmask'.
38692         * modules/posix_spawnattr_getsigmask: New file.
38693         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38694         modifications.
38695         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38696         new module.
38697
38698         New module 'posix_spawnattr_setsigdefault'.
38699         * modules/posix_spawnattr_setsigdefault: New file.
38700         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38701         modifications.
38702         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38703         new module.
38704
38705         New module 'posix_spawnattr_getsigdefault'.
38706         * modules/posix_spawnattr_getsigdefault: New file.
38707         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38708         modifications.
38709         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38710         new module.
38711
38712         New module 'posix_spawnattr_setschedpolicy'.
38713         * modules/posix_spawnattr_setschedpolicy: New file.
38714         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38715         modifications.
38716         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38717         new module.
38718
38719         New module 'posix_spawnattr_getschedpolicy'.
38720         * modules/posix_spawnattr_getschedpolicy: New file.
38721         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38722         modifications.
38723         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38724         new module.
38725
38726         New module 'posix_spawnattr_setschedparam'.
38727         * modules/posix_spawnattr_setschedparam: New file.
38728         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38729         modifications.
38730         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38731         new module.
38732
38733         New module 'posix_spawnattr_getschedparam'.
38734         * modules/posix_spawnattr_getschedparam: New file.
38735         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38736         modifications.
38737         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38738         new module.
38739
38740         New module 'posix_spawnattr_setpgroup'.
38741         * modules/posix_spawnattr_setpgroup: New file.
38742         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38743         modifications.
38744         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38745         module.
38746
38747         New module 'posix_spawnattr_getpgroup'.
38748         * modules/posix_spawnattr_getpgroup: New file.
38749         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38750         modifications.
38751         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38752         module.
38753
38754         New module 'posix_spawnattr_setflags'.
38755         * modules/posix_spawnattr_setflags: New file.
38756         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38757         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38758         module.
38759
38760         New module 'posix_spawnattr_getflags'.
38761         * modules/posix_spawnattr_getflags: New file.
38762         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38763         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38764         module.
38765
38766         New module 'posix_spawnattr_init'.
38767         * modules/posix_spawnattr_init: New file.
38768         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38769         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38770         module.
38771
38772         New module 'posix_spawn_file_actions_destroy'.
38773         * modules/posix_spawn_file_actions_destroy: New file.
38774         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38775         modifications.
38776         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38777         the new module.
38778
38779         New module 'posix_spawn_file_actions_addopen'.
38780         * modules/posix_spawn_file_actions_addopen: New file.
38781         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38782         modifications.
38783         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38784         the new module.
38785
38786         New module 'posix_spawn_file_actions_adddup2'.
38787         * modules/posix_spawn_file_actions_adddup2: New file.
38788         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38789         modifications.
38790         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38791         the new module.
38792
38793         New module 'posix_spawn_file_actions_addclose'.
38794         * modules/posix_spawn_file_actions_addclose: New file.
38795         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38796         modifications.
38797         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38798         the new module.
38799
38800         New module 'posix_spawn_file_actions_init'.
38801         * modules/posix_spawn_file_actions_init: New file.
38802         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38803         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38804         new module.
38805
38806         New module 'posix_spawn-internal'.
38807         * modules/posix_spawn-internal: New file.
38808         * lib/spawn_int.h: New file, from GNU libc with modifications.
38809         * lib/spawni.c: New file, from GNU libc with modifications.
38810         * m4/posix_spawn.m4: New file.
38811
38812         New module 'spawn'.
38813         * modules/spawn: New file.
38814         * lib/spawn.in.h: New file, from GNU libc with modifications.
38815         * m4/spawn_h.m4: New file.
38816         * doc/posix-headers/spawn.texi: Mention the new module.
38817
38818 2008-09-28  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/sched-tests: New file.
38821         * tests/test-sched.c: New file.
38822
38823         New module 'sched'.
38824         * modules/sched: New file.
38825         * lib/sched.in.h: New file.
38826         * m4/sched_h.m4: New file.
38827         * doc/posix-headers/sched.texi: Mention the new module.
38828
38829 2008-09-27  Eric Blake  <ebb9@byu.net>
38830
38831         Fix previous patch, and tweak references to $0.
38832         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38833         (func_version, func_gnulib_dir): Don't call this program
38834         gnulib-tool.
38835         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38836         with using $0 in function.
38837         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38838         (func_fatal_error): Reuse the name the user invoked us with.
38839
38840 2008-09-27  Bruno Haible  <bruno@clisp.org>
38841
38842         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38843         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38844         (gl_ICONV_H): Not here.
38845         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38846         instead of assigning ICONV_H directly.
38847
38848         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38850         WCHAR_H directly.
38851
38852 2008-09-27  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38855         * modules/arpa_inet (Depends-on): Add link-warning.
38856         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38857         * modules/unistd (Makefile.am): Likewise.
38858
38859 2008-09-26  Bruno Haible  <bruno@clisp.org>
38860
38861         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38862         variables.
38863         (func_version): Essentially copied from gnulib-tool.
38864         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38865         func_readlink): Copied from gnulib-tool.
38866
38867 2008-09-26  Bruno Haible  <bruno@clisp.org>
38868
38869         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38870         invoking git-version-gen.
38871
38872 2008-09-26  Bruno Haible  <bruno@clisp.org>
38873
38874         * posix-modules: Update to directory names changed on 2008-01-19.
38875         Remove commas in output before splitting into words. No more need to
38876         avoid 'ftruncate' since 2007-02-19.
38877
38878 2008-09-26  Bruno Haible  <bruno@clisp.org>
38879
38880         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38881
38882 2008-09-26  Bruno Haible  <bruno@clisp.org>
38883
38884         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38885         * modules/fwriteerror (Depends-on): Add errno.
38886
38887 2008-09-26  Bruno Haible  <bruno@clisp.org>
38888
38889         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38890         * tests/test-vc-list-files-cvs.sh: Likewise.
38891
38892 2008-09-26  Bruno Haible  <bruno@clisp.org>
38893
38894         * doc/posix-headers/sys_resource.texi: Reorder items.
38895
38896 2008-09-26  Jim Meyering  <meyering@redhat.com>
38897
38898         fts: tweak inode comparison function
38899         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38900         inode numbers, as documented.
38901
38902         fts: sort dirent entries on inode number before traversing
38903         This avoids a quadratic, seek-related performance penalty when
38904         operating on a directory containing many entries (measurable at 10k;
38905         3.5 hours at 2 million entries with a cold cache) on certain types
38906         of file systems, including ext3 and ext4, but not tmpfs.
38907         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38908         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38909         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38910         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38911         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38912         (fts_build): Set the stat.st_ino member from D_INO.
38913         If it is likely to be useful, sort dirent entries on inode number.
38914
38915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38916         and the struct statfs.f_type member.
38917         * modules/fts (Depends-on): Add d-ino.
38918
38919 2008-09-26  Bruno Haible  <bruno@clisp.org>
38920
38921         * modules/sigpipe-die (Depends-on): Add sigpipe.
38922
38923         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38924         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38925         and GNULIB_STDIO_H_SIGPIPE are set.
38926         * lib/stdio-write.c: New file.
38927         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38928         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38929         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38930         REPLACE_STDIO_WRITE_FUNCS.
38931         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38932         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38933         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38934         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38935         * modules/stdio (Files): Add lib/stdio-write.c.
38936         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38937         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38938         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38939         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38940         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38941         REPLACE_FPRINTF_POSIX.
38942         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38943         REPLACE_PRINTF_POSIX.
38944         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38945         REPLACE_VFPRINTF_POSIX.
38946         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38947         REPLACE_VPRINTF_POSIX.
38948         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38949         SIGPIPE issue.
38950         * doc/posix-functions/fputc.texi: Likewise.
38951         * doc/posix-functions/fputs.texi: Likewise.
38952         * doc/posix-functions/fwrite.texi: Likewise.
38953         * doc/posix-functions/printf.texi: Likewise.
38954         * doc/posix-functions/putc.texi: Likewise.
38955         * doc/posix-functions/putchar.texi: Likewise.
38956         * doc/posix-functions/puts.texi: Likewise.
38957         * doc/posix-functions/vfprintf.texi: Likewise.
38958         * doc/posix-functions/vprintf.texi: Likewise.
38959
38960         * modules/safe-write (Depends-on): Add write.
38961
38962         * modules/sigpipe-tests: New file.
38963         * tests/test-sigpipe.c: New file.
38964         * tests/test-sigpipe.sh: New file.
38965
38966         * modules/write: New file.
38967         * lib/unistd.in.h: Include <sys/types.h>.
38968         (write): New declaration.
38969         * lib/write.c: New file.
38970         * m4/write.m4: New file.
38971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38972         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38973         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38974         GNULIB_WRITE, REPLACE_WRITE.
38975         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38976         and the SIGPIPE issue.
38977
38978         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38979         (raise): New declaration.
38980         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38981         (ext_signal): New function.
38982         (rpl_raise): New function.
38983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38984         GNULIB_SIGNAL_H_SIGPIPE.
38985         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38986         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38987
38988         * modules/sigpipe: New file.
38989         * m4/sigpipe.m4: New file.
38990
38991 2008-09-25  Derek Price  <derek@ximbiot.com>
38992             Bruno Haible  <bruno@clisp.org>
38993
38994         * gnulib-tool (func_import): Report all license incompatibilities, not
38995         just the first one.
38996
38997 2008-09-25  Bruno Haible  <bruno@clisp.org>
38998
38999         * gnulib-tool (func_import): When computing the edits, consider not
39000         only the Makefile.ams that exist but also those that will be generated.
39001
39002 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39003
39004         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39005         fixes gnulib-tool --test warning about duplicate dependency.
39006
39007 2008-09-25  Bruno Haible  <bruno@clisp.org>
39008
39009         * gnulib-tool: Don't ask the user to perform edits in the generated
39010         Makefile.ams.
39011         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39012         apply to the Makefile.am being generated.
39013         (func_emit_tests_Makefile_am): Execute edits that apply to the
39014         Makefile.am being generated.
39015         (func_import): Setup list of Makefile.am edits before emitting the
39016         Makefile.ams, not at the end.
39017         (func_create_testdir): Update.
39018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39019
39020 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39021
39022         * gnulib-tool (func_import): Store the --tests-base option in the
39023         comment in gnulib-cache.m4.
39024
39025 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39026
39027         * NEWS: Document increased portability that sys_select now provides.
39028
39029         * lib/sys_select.in.h: Install select wrapper.
39030         * lib/sys_socket.in.h: Use more descriptive name when there is no
39031         select wrapper.
39032         * lib/winsock-select.c: New.
39033         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39034         Require gl_HEADER_SYS_SOCKET.
39035         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39036         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39037         * tests/test-sys_select.c: Add functional tests.
39038
39039 2008-09-24  Eric Blake  <ebb9@byu.net>
39040
39041         open, fopen: close fd leak in last patch
39042         * lib/open.c (rpl_open): Close fd before returning error.
39043         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39044         * doc/posix-functions/open.texi (open): Document that Irix also
39045         has the bug.
39046         * doc/posix-functions/fopen.texi (fopen): Likewise.
39047         Reported by Paolo Bonzini.
39048
39049 2008-09-24  Bruno Haible  <bruno@clisp.org>
39050
39051         Ensure that a filename ending in a slash cannot be used to access a
39052         non-directory.
39053         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39054         to check whether it's really a directory.
39055         * lib/fopen.c: Include fcntl.h, unistd.h.
39056         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39057         and fdopen().
39058         * modules/fopen (Depends-on): Add unistd.
39059         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39060         * tests/test-fopen.c (main): Likewise.
39061         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39062         * doc/posix-functions/fopen.texi: Likewise.
39063         Reported by Eric Blake.
39064
39065 2008-09-23  Eric Blake  <ebb9@byu.net>
39066
39067         c-stack: avoid compiler optimizations when provoking overflow
39068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39069         recursion harder to optimize, to ensure a stack overflow occurs.
39070         * tests/test-c-stack.c (recurse): Likewise.
39071         Borrowed from libsigsegv.
39072
39073         c-stack: work around Irix sigaltstack bug
39074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39075         whether sigaltstack uses wrong end of stack_t (copied in part from
39076         libsigsegv).
39077         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39078         Irix bug, without requiring an over-allocation.
39079         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39080         bug.
39081
39082         fopen: document mingw bug on directories
39083         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39084         not allowing a stream visiting a directory, even though reading
39085         from such a stream is not portable.
39086
39087 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39088
39089         * lib/poll.c: Rewrite.
39090         * modules/poll: Depend on alloca.
39091
39092 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39093
39094         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39095         instead define prototypes for a full set of wrappers.  Ensure
39096         that Cygwin does not use the compatibility code, which is only
39097         for MinGW.
39098         * lib/winsock.c: New.
39099         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39100         * modules/sys_socket: Add lib/winsock.c.
39101
39102         * modules/poll-tests: Add errno and perror.
39103         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39104
39105 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39106
39107         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39108
39109 2008-09-23  Bruno Haible  <bruno@clisp.org>
39110
39111         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39112         * doc/glibc-functions/*: Likewise.
39113
39114 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39115
39116         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39117         success.
39118
39119 2008-09-22  Eric Blake  <ebb9@byu.net>
39120             Bruno Haible  <bruno@clisp.org>
39121
39122         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39123         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39124         supply %A but mishandle pseudo-NaN.
39125         Reported by Simon Josefsson.
39126
39127 2008-09-21  Bruno Haible  <bruno@clisp.org>
39128
39129         * tests/test-lock.c (main): Tweak skip message.
39130         * tests/test-tls.c (main): Likewise.
39131
39132 2008-09-21  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39135         whether 'struct sigaction' has sa_sigaction here...
39136         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39137         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39138
39139 2008-09-21  Bruno Haible  <bruno@clisp.org>
39140
39141         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39142         section.
39143         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39144         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39145         the new section.
39146         (Support for obsolete systems lacking POSIX:2001): New section.
39147         (String handling <string.h>): Move strdup to the new section.
39148         Suggested by Simon Josefsson and Paolo Bonzini.
39149
39150 2008-09-21  Bruno Haible  <bruno@clisp.org>
39151
39152         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39153         exponents in %e and %g results on 'long double'. Needed for mingw's
39154         improved *printf functions.
39155         * tests/test-vasprintf-posix.c (test_function): Likewise.
39156         * tests/test-snprintf-posix.h (test_function): Likewise.
39157         * tests/test-sprintf-posix.h (test_function): Likewise.
39158         Reported by Eric Blake.
39159
39160 2008-09-21  Bruno Haible  <bruno@clisp.org>
39161
39162         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39163         * tests/test-sprintf-posix.h (test_function): Likewise.
39164
39165 2008-09-21  Bruno Haible  <bruno@clisp.org>
39166
39167         * modules/getpass (Depends-on): Add strdup-posix.
39168
39169         New module 'strdup-posix'.
39170         * modules/strdup-posix: New file.
39171         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39172         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39174         REPLACE_STRDUP.
39175         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39176         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39178         strdup-posix.
39179
39180         * modules/strdup (Depends-on): Remove malloc-posix.
39181
39182 2008-09-20  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39185         Wildenhues.
39186
39187 2008-09-20  Bruno Haible  <bruno@clisp.org>
39188
39189         Ensure that wint_t gets defined on IRIX 5.3.
39190         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39191         * lib/wctype.in.h (wint_t): Likewise.
39192         (__wctype_wint_t): Remove type.
39193         (isw*): Use wint_t instead of __wctype_wint_t.
39194         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39195         * modules/wchar (Files): Add m4/wint_t.m4.
39196         (Makefile.am): Substitute HAVE_WINT_T.
39197         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39198         * tests/test-wctype.c: Check that wint_t is defined.
39199         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39200         * doc/posix-headers/wctype.texi: Likewise.
39201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39202
39203 2008-09-18  Bruno Haible  <bruno@clisp.org>
39204
39205         * gnulib-tool (func_exit): Update comment.
39206
39207 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39208
39209         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39210         assumes strdup exists and does not depend on strdup to return
39211         ENOMEM on out of memory conditions.
39212
39213 2008-09-18  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39216         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39217         digits for the exponent.
39218
39219 2008-09-18  Jim Meyering  <meyering@redhat.com>
39220             Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/vasnprintf.c (decimal_point_char): Define also if
39223         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39224
39225 2008-09-16  Bruno Haible  <bruno@clisp.org>
39226         and Eric Blake  <ebb9@byu.net>
39227
39228         vasnprintf: support Irix 5.3
39229         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39230         that mishandle long double infinity.
39231         Reported by Tom G. Christensen.
39232
39233 2008-09-16  Bruno Haible  <bruno@clisp.org>
39234
39235         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39236         Solaris 9.
39237         * doc/glibc-functions/alphasort.texi: Likewise.
39238         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39239
39240 2008-09-16  Jim Meyering  <meyering@redhat.com>
39241
39242         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39243         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39244         a umask modification leak out of a subshell.  Otherwise, the
39245         opensolaris /bin/sh would be accepted and thus cause unwarranted
39246         failures in the coreutils test suite.
39247
39248 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39249
39250         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39251         to succeed.
39252
39253 2008-09-16  Jim Meyering  <meyering@redhat.com>
39254
39255         avoid spurious test failure when library is built without ACL support
39256         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39257         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39258         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39259         * tests/test-copy-acl.sh: Likewise.
39260
39261 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39262
39263         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39264         based on character occurrence counts.
39265
39266 2008-09-15  Eric Blake  <ebb9@byu.net>
39267
39268         tests: avoid some compiler warnings
39269         * tests/test-memchr.c (main): Pass NULL indirectly.
39270         * tests/test-closein.c (main): Avoid unused variable.
39271
39272 2008-09-15  Bruno Haible  <bruno@clisp.org>
39273
39274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39275         are missing on OpenBSD 4.0 individually.
39276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39277
39278 2008-09-15  Bruno Haible  <bruno@clisp.org>
39279
39280         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39281         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39282         * doc/posix-functions/perror.texi: Likewise.
39283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39284         is missing.
39285         Reported by Eric Blake.
39286
39287         * lib/errno.in.h: Use replacement values >= 2000.
39288         Reported by Eric Blake.
39289
39290 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39291
39292         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39293         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39294         limit.
39295         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39296         compareseq was aborted.
39297
39298 2008-09-14  Bruno Haible  <bruno@clisp.org>
39299
39300         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39301         yvec_edit_count.
39302         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39303         (fstrcmp_bounded): Simplify result computation accordingly.
39304
39305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39306
39307         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39308         (fstrcmp): Define in terms of fstrcmp_bounded.
39309         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39310         lower_bound argument.
39311         Return quickly if the result is certainly < lower_bound.
39312         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39313
39314 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39315
39316         * lib/diffseq.h (EARLY_ABORT): New macro.
39317         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39318         evaluates to true.
39319
39320 2008-09-14  Bruno Haible  <bruno@clisp.org>
39321
39322         * modules/perror-tests: New file.
39323         * tests/test-perror.sh: New file.
39324         * tests/test-perror.c: New file.
39325
39326         New module 'perror'.
39327         * lib/stdio.in.h (perror): New declaration.
39328         * lib/perror.c: New file.
39329         * m4/perror.m4: New file.
39330         * modules/perror: New file.
39331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39332         * doc/posix-functions/perror.texi: Mention the perror module.
39333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39334         REPLACE_PERROR.
39335         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39336         REPLACE_PERROR.
39337
39338 2008-09-14  Bruno Haible  <bruno@clisp.org>
39339
39340         * modules/stdio (Makefile.am): Reorder to match the order in
39341         lib/stdio.in.h.
39342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39343
39344 2008-09-13  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39347
39348 2008-09-13  Bruno Haible  <bruno@clisp.org>
39349
39350         Extend strerror to cover the added errno values.
39351         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39352         (rpl_strerror): Provide error messages for the added errno values and
39353         for the WSA* values.
39354         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39355         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39356         strerror.
39357         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39358         * modules/strerror (Depends-on): Add errno.
39359         * doc/posix-functions/strerror.texi: Document the change.
39360         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39361         and EOVERFLOW.
39362
39363 2008-09-13  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/EOVERFLOW: Remove file.
39366         * m4/eoverflow.m4: Remove file.
39367         * modules/EOVERFLOW-tests: Remove file.
39368         * tests/test-EOVERFLOW.c: Remove file.
39369         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39370         * modules/ftell (Depends-on): Likewise.
39371         * modules/getdelim (Depends-on): Likewise.
39372         * modules/getugroups (Depends-on): Likewise.
39373         * modules/poll (Depends-on): Likewise.
39374         * modules/snprintf (Depends-on): Likewise.
39375         * modules/sprintf-posix (Depends-on): Likewise.
39376         * modules/vasnprintf (Depends-on): Likewise.
39377         * modules/vasprintf (Depends-on): Likewise.
39378         * modules/vfprintf-posix (Depends-on): Likewise.
39379         * modules/vsnprintf (Depends-on): Likewise.
39380         * modules/vsprintf-posix (Depends-on): Likewise.
39381         * modules/xvasprintf (Depends-on): Likewise.
39382         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39383         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39384         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39385         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39386         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39387         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39388         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39389         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39391         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39392         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39393         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39394         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39395         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39396         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39397         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39399         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39400         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39401         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39402         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39403         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39404         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39405         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39406         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39407         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39408         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39409         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39410         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39411         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39412         * MODULES.html.sh: Remove EOVERFLOW.
39413         * NEWS: Mention the change.
39414
39415 2008-09-13  Bruno Haible  <bruno@clisp.org>
39416
39417         * modules/errno-tests: New file.
39418         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39419
39420         * lib/errno.in.h: New file.
39421         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39422         * modules/errno: New file.
39423         * doc/posix-headers/errno.texi: Update documentation.
39424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39425
39426 2008-09-13  Bruno Haible  <bruno@clisp.org>
39427
39428         * tests/test-poll.c: Use #if for native Windows, rather than testing
39429         __MSVCRT__.
39430
39431 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39432             Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/glob.c: Don't include <pwd.h> on native Windows.
39435         (WINDOWS32): New macro.
39436         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39437
39438 2008-09-13  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39441         (ETIMEDOUT): Remove macro.
39442         (glthread_cond_timedwait_multithreaded): New declaration.
39443         (glthread_cond_timedwait): Use it.
39444         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39445         (glthread_cond_timedwait_multithreaded): New function.
39446
39447 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39448
39449         * modules/poll-tests: Do not check for io.h.
39450         * tests/test-poll.c: Check for __MSVCRT__ instead.
39451
39452 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39453
39454         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39455         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39456         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39457
39458 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39459
39460         * modules/poll-tests: New.
39461         * tests/test-poll.c: New.
39462
39463 2008-09-12  Eric Blake  <ebb9@byu.net>
39464
39465         frexp: test for NetBSD failure on -0.0
39466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39467         not all, bugs from NetBSD 3.0 have been fixed.
39468         * doc/posix-functions/frexp.texi (frexp): Document bug.
39469         Reported by Thomas Klausner.
39470
39471         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39472         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39473         literal -0.0.
39474         Reported by Jonathan C. Patschke <jp@centtech.com>.
39475
39476 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39477
39478         * lib/glthread/cond.h: Use dummy implementation also if
39479         USE_WIN32_THREADS.
39480
39481 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39482
39483         * modules/fnmatch-posix (License): Change to LGPLv2+.
39484         * modules/fnmatch-gnu (License): Likewise.
39485
39486 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39487
39488         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39489
39490 2008-09-11  Jim Meyering  <meyering@redhat.com>
39491
39492         * users.txt: Add gtk-vnc.
39493
39494 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39495
39496         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39497         rotate amounts.
39498
39499         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39500         required for 16-bit and 8-bit rotates.
39501         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39502         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39503         UINT8_MAX instead of hard-coded constants.
39504         Suggested by Paul Eggert.
39505
39506 2008-09-07  Bruno Haible  <bruno@clisp.org>
39507
39508         * tests/test-striconveh.c (main): Check behaviour when converting from
39509         UTF-7.
39510
39511         Make striconveh work better with stateful encodings.
39512         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39513         that iconv does not increment the inptr when returning -1/EINVAL.
39514
39515 2008-09-07  Bruno Haible  <bruno@clisp.org>
39516
39517         * build-aux/config.rpath: Update according to libtool-2.2.6.
39518         * build-aux/config.libpath: Likewise.
39519
39520 2008-09-06  Bruno Haible  <bruno@clisp.org>
39521
39522         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39523         * lib/freadptr.c (freadptr): Likewise.
39524         * lib/freadseek.c (freadptrinc): Likewise.
39525         Reported by Simon Josefsson.
39526
39527 2008-09-06  Bruno Haible  <bruno@clisp.org>
39528
39529         * modules/freadptr (License): Change to LGPLv2+.
39530         * modules/freadseek (License): Likewise.
39531         Suggested by Eric Blake.
39532
39533         * modules/memchr2 (License): Change to LGPLv2+.
39534         Approved by Eric Blake.
39535
39536 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39537             Bruno Haible  <bruno@clisp.org>
39538
39539         Make gnulib-tool work with native 'sed' on AIX.
39540         * gnulib-tool (sed_noop): New variable.
39541         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39542         func_add_or_update, func_create_testdir): Use it to initialize sed
39543         script variables.
39544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39545
39546 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39547             Bruno Haible  <bruno@clisp.org>
39548
39549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39550         also works after #include directives.
39551
39552 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39553
39554         getdate.y: reject an out-of-range timezone value
39555         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39556         the range [-24...+24].  When specified with only one or two digits,
39557         * tests/test-getdate.c: Tests for the fix.
39558         * doc/getdate.texi: Document this change.
39559
39560 2008-09-03  Bruno Haible  <bruno@clisp.org>
39561
39562         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39563
39564 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39565
39566         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39567         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39568         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39569         Blake <ebb9@byu.net>.
39570
39571         * tests/test-bitrotate.c: Add more test vectors.
39572
39573 2008-09-02  Eric Blake  <ebb9@byu.net>
39574
39575         vasnprintf-posix: handle large precision via %.*d
39576         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39577         when handling it ourselves.
39578         * tests/test-vasnprintf-posix.c (test_function): Add test.
39579         * tests/test-snprintf-posix.h (test_function): Likewise.
39580         * tests/test-sprintf-posix.h (test_function): Likewise.
39581         * tests/test-vasprintf-posix.c (test_function): Likewise.
39582         Reported by Alain Guibert.
39583
39584 2008-09-01  Eric Blake  <ebb9@byu.net>
39585
39586         c-stack: make configure-time check more robust
39587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39588         successful sigaction call.
39589         Reported by Tom G. Christensen.
39590
39591 2008-09-01  Bruno Haible  <bruno@clisp.org>
39592
39593         New module 'findprog-lgpl'.
39594         * modules/findprog-lgpl: New file.
39595         * lib/findprog-lgpl.c: New file.
39596         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39597         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39598         to decide whether to use strdup or xstrdup, concatenated_filename or
39599         xconcatenated_filename.
39600
39601 2008-09-01  Bruno Haible  <bruno@clisp.org>
39602
39603         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39604         'xconcat-filename' (GPL).
39605         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39606         (License): Change to LGPLv2+.
39607         * modules/xconcat-filename: New file.
39608         * lib/concat-filename.h (concatenated_filename): Change specification.
39609         (xconcatenated_filename): New declaration.
39610         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39611         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39612         memory situations.
39613         * lib/xconcat-filename.c: New file.
39614         * NEWS: Mention the change.
39615         * lib/findprog.c: Include concat-filename.h, not filename.h.
39616         (find_in_path): Use xconcatenated_filename instead of
39617         concatenated_filename.
39618         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39619         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39620         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39621         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39622         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39623         instead of concatenated_filename.
39624         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39625         (execute_java_class): Use xconcatenated_filename instead of
39626         concatenated_filename.
39627         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39628         * modules/javacomp (Depends-on): Likewise.
39629         * modules/javaexec (Depends-on): Likewise.
39630
39631 2008-09-01  Bruno Haible  <bruno@clisp.org>
39632
39633         Split module 'filename' into 'filename' and 'concat-filename'.
39634         * modules/filename: Keep only lib/filename.h.
39635         (License): Change to LGPLv2+.
39636         * modules/concat-filename: New file, extracted from modules/filename.
39637         * lib/filename.h (concatenated_filename): Remove declaration.
39638         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39639         * lib/concat-filename.c: Include concat-filename.h.
39640         * NEWS: Mention the change.
39641
39642 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39643
39644         * lib/bitrotate.h (rotl8, rotr8): Add.
39645
39646         * modules/bitrotate (configure.ac): Need
39647         AC_REQUIRE([AC_C_INLINE]).
39648         (Description): Mention stdint.h.  Reported by Bruno Haible
39649         <bruno@clisp.org>.
39650
39651         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39652         Paolo Bonzini <bonzini@gnu.org>.
39653
39654 2008-08-31  Bruno Haible  <bruno@clisp.org>
39655
39656         Assume Solaris specific bi-arch conventions on Solaris systems.
39657         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39658         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39660         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39661         like acl_libdirstem.
39662         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39663         acl_libdirstem.
39664         * NEWS: Mention the change.
39665         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39666
39667 2008-08-31  Jim Meyering  <meyering@redhat.com>
39668
39669         * lib/strftime.h: Add comments describing the two added arguments.
39670
39671         remove duplicate #include directives
39672         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39673         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39674
39675 2008-08-31  Bruno Haible  <bruno@clisp.org>
39676
39677         New module 'sigpipe-die'.
39678         * modules/sigpipe-die: New file.
39679         * lib/sigpipe-die.h: New file.
39680         * lib/sigpipe-die.c: New file.
39681         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39682
39683 2008-08-31  Bruno Haible  <bruno@clisp.org>
39684
39685         Don't override previously installed signal handlers.
39686         * lib/fatal-signal.c (saved_sigactions): New variable.
39687         (uninstall_handlers): Reset the signal to the saved handler, not
39688         to SIG_DFL (except when ignored).
39689         (install_handlers): Save the previous handlers.
39690
39691 2008-08-30  Bruno Haible  <bruno@clisp.org>
39692
39693         * gnulib-tool (func_reset_sigpipe): New function.
39694         (func_get_automake_snippet, func_modules_transitive_closure,
39695         func_import): Invoke it before a join command that reads from stdin,
39696         to avoid "echo: write error: Broken pipe" error messages on stderr.
39697         Reported by Sam Steingold <sds@gnu.org>.
39698
39699 2008-08-30  Bruno Haible  <bruno@clisp.org>
39700
39701         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39702         Code copied from m4/open.m4.
39703         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39704         access and the filename ends in a slash. Code copied from lib/open.c.
39705         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39706         * tests/test-fopen.c (main): Check against bug with trailing slash.
39707
39708 2008-08-29  Bruno Haible  <bruno@clisp.org>
39709
39710         Avoid some "gcc -pedantic" warnings.
39711         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39712         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39713         * lib/dirent.in.h: Likewise.
39714         * lib/fcntl.in.h: Likewise.
39715         * lib/float.in.h: Likewise.
39716         * lib/iconv.in.h: Likewise.
39717         * lib/inttypes.in.h: Likewise.
39718         * lib/locale.in.h: Likewise.
39719         * lib/math.in.h: Likewise.
39720         * lib/netinet_in.in.h: Likewise.
39721         * lib/search.in.h: Likewise.
39722         * lib/signal.in.h: Likewise.
39723         * lib/stdarg.in.h: Likewise.
39724         * lib/stdint.in.h: Likewise.
39725         * lib/stdio.in.h: Likewise.
39726         * lib/stdlib.in.h: Likewise.
39727         * lib/string.in.h: Likewise.
39728         * lib/strings.in.h: Likewise.
39729         * lib/sys_select.in.h: Likewise.
39730         * lib/sys_socket.in.h: Likewise.
39731         * lib/sys_stat.in.h: Likewise.
39732         * lib/sys_time.in.h: Likewise.
39733         * lib/sysexits.in.h: Likewise.
39734         * lib/time.in.h: Likewise.
39735         * lib/unistd.in.h: Likewise.
39736         * lib/wchar.in.h: Likewise.
39737         * lib/wctype.in.h: Likewise.
39738         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39739         * modules/fchdir (Makefile.am): Likewise.
39740         * modules/fcntl (Makefile.am): Likewise.
39741         * modules/float (Makefile.am): Likewise.
39742         * modules/iconv_open (Makefile.am): Likewise.
39743         * modules/inttypes (Makefile.am): Likewise.
39744         * modules/locale (Makefile.am): Likewise.
39745         * modules/math (Makefile.am): Likewise.
39746         * modules/netinet_in (Makefile.am): Likewise.
39747         * modules/search (Makefile.am): Likewise.
39748         * modules/signal (Makefile.am): Likewise.
39749         * modules/stdarg (Makefile.am): Likewise.
39750         * modules/stdint (Makefile.am): Likewise.
39751         * modules/stdio (Makefile.am): Likewise.
39752         * modules/stdlib (Makefile.am): Likewise.
39753         * modules/string (Makefile.am): Likewise.
39754         * modules/strings (Makefile.am): Likewise.
39755         * modules/sys_select (Makefile.am): Likewise.
39756         * modules/sys_socket (Makefile.am): Likewise.
39757         * modules/sys_stat (Makefile.am): Likewise.
39758         * modules/sys_time (Makefile.am): Likewise.
39759         * modules/sysexits (Makefile.am): Likewise.
39760         * modules/time (Makefile.am): Likewise.
39761         * modules/unistd (Makefile.am): Likewise.
39762         * modules/wchar (Makefile.am): Likewise.
39763         * modules/wctype (Makefile.am): Likewise.
39764         Reported by Reuben Thomas <rrt@sc3d.org>.
39765
39766 2008-08-29  Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39769         any more.
39770
39771 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39772
39773         * MODULES.html.sh (Misc): Add bitrotate.
39774
39775         * modules/bitrotate: New file.
39776
39777         * lib/bitrotate.h: New file.
39778
39779         * modules/bitrotate-tests: New file.
39780
39781         * tests/test-bitrotate.c: New file.
39782
39783         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39784         on the bitrotate module.
39785
39786         * lib/arctwo.c: Use new bitrotate module.
39787
39788 2008-08-29  Jim Meyering  <meyering@redhat.com>
39789
39790         bootstrap: merge changes from coreutils
39791         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39792         of copied files.  Remove a kludge, now that this is fixed.
39793         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39794         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39795         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39796
39797 2008-08-29  Bruno Haible  <bruno@clisp.org>
39798
39799         * MODULES.html.sh: Remove --cvs-urls option.
39800
39801 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39802
39803         maint.mk: adjust to file name change
39804         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39805
39806 2008-08-28  Jim Meyering  <meyering@redhat.com>
39807
39808         * modules/getndelim2 (License): Relicense to LGPLv2+.
39809         Approved by Richard Stallman for the version of 1995, and by
39810         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39811
39812 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39813
39814         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39815         dummy if one is not available.  Do not touch them if
39816         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39817         (getc_maybe_unlocked): New.
39818         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39819
39820 2008-08-26  Eric Blake  <ebb9@byu.net>
39821
39822         doc/INSTALL: resync from autoconf
39823         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39824         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39825         moving...
39826         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39827         * INSTALL: Regenerate.
39828         * INSTALL.ISO: New file.
39829         * INSTALL.UTF-8: Likewise.
39830
39831 2008-08-26  Jim Meyering  <meyering@redhat.com>
39832
39833         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39834         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39835         these definitions conditional, so that they may be overridden, too.
39836
39837 2008-08-26  Bruno Haible  <bruno@clisp.org>
39838
39839         Generate INSTALL file variants with prettier quotes.
39840         * doc/Makefile (INSTALL_PRELUDE): New macro.
39841         (INSTALL): Use it.
39842         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39843
39844 2008-08-26  Bruno Haible  <bruno@clisp.org>
39845
39846         Run makeinfo in an English locale.
39847         * doc/Makefile (MAKEINFO): New variable.
39848
39849 2008-08-26  Bruno Haible  <bruno@clisp.org>
39850
39851         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39852         Suggested by Eric Blake.
39853
39854 2008-08-25  Bruno Haible  <bruno@clisp.org>
39855
39856         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39857
39858 2008-08-25  Eric Blake  <ebb9@byu.net>
39859
39860         c-stack: test that stack overflow can be caught
39861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39862         that platform allows handling stack overflow; at least OS/2 EMX
39863         has sigaltstack, but crashes before transferring control to
39864         handler on stack overflow.
39865         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39866         check for HAVE_STACK_OVERFLOW_HANDLING.
39867         Reported by Elbert Pol.
39868
39869 2008-08-25  Bruno Haible  <bruno@clisp.org>
39870
39871         * doc/posix-functions/strftime.texi: Fix description of strftime
39872         module.
39873
39874 2008-08-24  Bruno Haible  <bruno@clisp.org>
39875
39876         * tests/uniwidth/test-uc_width2.c: New file.
39877         * tests/uniwidth/test-uc_width2.sh: New file.
39878         * modules/uniwidth/width-tests (Files): Add the new files.
39879         (TESTS): Add uniwidth/test-uc_width2.sh.
39880         (TESTS_ENVIRONMENT): New variable.
39881         (check_PROGRAMS): Add test-uc_width2.
39882         (test_uc_width2_SOURCES): New variable.
39883
39884         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39885         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39886         not 0x00AB.
39887         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39888
39889 2008-08-22  Eric Blake  <ebb9@byu.net>
39890
39891         test-lock, test-tls: mention why a test is skipped
39892         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39893         skipped.
39894         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39895
39896         count-one-bits: relax license
39897         * modules/count-one-bits (License): Relicense to LGPLv2+.
39898         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39899
39900 2008-08-22  Andreas Schwab  <schwab@suse.de>
39901
39902         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39903         Remove spurious space in assignment.
39904
39905 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39906
39907         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39908         Paul Eggert <eggert@CS.UCLA.EDU>.
39909
39910 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39911
39912         * modules/gettext: Add m4/threadlib.m4.
39913
39914 2008-08-19  Eric Blake  <ebb9@byu.net>
39915
39916         test-c-stack: fix compilation failure on FreeBSD 5.0
39917         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39918         headers before <sys/resource.h>.
39919         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39920         the bug.
39921         Reported by Nelson H. F. Beebe.
39922
39923         strverscmp: migrate from "strverscmp.h" to <string.h>
39924         * modules/string (Makefile.am): Add new hooks.
39925         * modules/strverscmp (Files): Remove strverscmp.h.
39926         (Depends-on): Add string.
39927         (configure.ac): Add indicator.
39928         (Include): Mention new header.
39929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39930         defaults.
39931         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39932         results.
39933         * lib/strverscmp.h: Delete.
39934         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39935         * tests/test-strverscmp.c (includes): Adjust client.
39936         * lib/check-version.c (includes): Likewise.
39937         * NEWS: Document the change.
39938
39939         strverscmp: add unit test
39940         * modules/strverscmp-tests: New file.
39941         * tests/test-strverscmp.c: Likewise.
39942
39943 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39944
39945         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39946         regarding Windows crypto stuff, from Mono.
39947
39948 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39949
39950         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39951         if present, for intel RND.  Return error on failures.
39952
39953 2008-08-18  Ben Pfaff  <blp@gnu.org>
39954
39955         gitlog-to-changelog: give better diagnostic for failed pipe-open
39956         * build-aux/gitlog-to-changelog: Improve error message: suggest
39957         that the version of Git may be too old.
39958
39959 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39960
39961         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39962         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39963
39964 2008-08-18  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39967         pthread_in_use().
39968
39969 2008-08-18  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/glthread/threadlib.c: Include <pthread.h>.
39972
39973 2008-08-18  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39976         glthread_recursive_lock_* macros.
39977         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39978         Fix syntax error.
39979
39980 2008-08-18  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/glthread/thread.c: Avoid forcing a context switch right after
39983         thread creation.
39984
39985 2008-08-17  Bruno Haible  <bruno@clisp.org>
39986
39987         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39988         * lib/glthread/thread.h: Provide Win32 specific implementation.
39989         * modules/thread (Files): Add lib/glthread/thread.c.
39990         (Depends-on): Add lock.
39991         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39992
39993 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39994
39995         New module 'yield'.
39996         * modules/yield: New file.
39997         * lib/glthread/yield.h: New file.
39998         * m4/yield.m4: New file.
39999         * MODULES.html.sh (Multithreading): Add yield.
40000
40001 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40002
40003         New module 'thread'.
40004         * modules/thread: New file.
40005         * lib/glthread/thread.h: New file.
40006         * m4/thread.m4: New file.
40007         * MODULES.html.sh (Multithreading): Add thread.
40008
40009 2008-08-17  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/glthread/lock.h: Include <stdlib.h> always.
40012         * lib/glthread/tls.h: Likewise.
40013         * lib/glthread/cond.h: Likewise.
40014
40015 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40016
40017         New module 'cond'.
40018         * modules/cond: New file.
40019         * lib/glthread/cond.h: New file.
40020         * lib/glthread/cond.c: New file.
40021         * m4/cond.m4: New file.
40022         * MODULES.html.sh (Multithreading): Add cond.
40023
40024 2008-08-16  Eric Blake  <ebb9@byu.net>
40025
40026         c-stack: fix regression on Irix 5.3 from 2008-06-21
40027         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40028         sa_sigaction...
40029         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40030         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40032         * modules/signal (Makefile.am): Use the value.
40033         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40034         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40035         * doc/posix-headers/signal.texi (signal.h): Document this
40036         portability issue.
40037         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40038         Reported by Tom G. Christensen.
40039
40040 2008-08-17  Bruno Haible  <bruno@clisp.org>
40041
40042         New module 'threadlib'.
40043         * modules/threadlib: New file.
40044         * lib/glthread/threadlib.c: New file, extracted from
40045         lib/glthread/lock.c.
40046         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40047         functions.
40048         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40049         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40050         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40051         macros.
40052         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40053         (gl_DISABLE_THREADS): Remove macro.
40054         * modules/lock (Files): Remove build-aux/config.rpath.
40055         (Depends-on): Remove havelib. Add threadlib.
40056         (configure.ac-early): Remove section.
40057         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40058         * modules/tls (Depends-on): Remove lock. Add threadlib.
40059         (Link): New section, copied from threadlib.
40060         * MODULES.html.sh (Multithreading): Add threadlib.
40061
40062 2008-08-14  Bruno Haible  <bruno@clisp.org>
40063
40064         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40065         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40066         glthread_rwlock_unlock, glthread_rwlock_destroy,
40067         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40068         glthread_recursive_lock_destroy): Define as macros always.
40069         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40070         glthread_lock_lock.
40071         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40072         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40073         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40074         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40075         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40076         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40077         (glthread_recursive_lock_lock_func): Renamed from
40078         glthread_recursive_lock_lock.
40079         (glthread_recursive_lock_unlock_func): Renamed from
40080         glthread_recursive_lock_unlock.
40081         (glthread_recursive_lock_destroy_func): Renamed from
40082         glthread_recursive_lock_destroy.
40083
40084 2008-08-14  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/glthread/lock.h: Renamed from lib/lock.h.
40087         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40088         * lib/glthread/tls.h: Renamed from lib/tls.h.
40089         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40090         * lib/fstrcmp.c: Update includes.
40091         * lib/strsignal.c: Update includes.
40092         * modules/lock (Files, Makefile.am): Update.
40093         (Include): Change to "glthread/lock.h".
40094         * modules/tls (Files, Makefile.am): Update.
40095         (Include): Change to "glthread/tls.h".
40096         * tests/test-lock.c: Update includes.
40097         * tests/test-tls.c: Update includes.
40098         * NEWS: Mention the renamed header files.
40099
40100 2008-08-11  Jim Meyering  <meyering@redhat.com>
40101
40102         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40103
40104 2008-08-11  Eric Blake  <ebb9@byu.net>
40105
40106         test-c-stack: avoid C99-ism
40107         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40108         before statement.
40109         Reported by Alain Guibert.
40110
40111 2008-08-10  Jim Meyering  <meyering@redhat.com>
40112
40113         ensure that return value of uinttostr et al are not ignored
40114         * lib/inttostr.h (__GNUC_PREREQ): Define.
40115         (__attribute_warn_unused_result__): Define.
40116         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40117
40118 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40119
40120         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40121         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40122
40123 2008-08-07  Jim Meyering  <meyering@redhat.com>
40124
40125         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40126
40127         * modules/mkstemp (License): Relicense under LGPLv2+.
40128         * modules/tempname (License): Likewise.
40129
40130 2008-08-06  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/poll.c (poll): Further micro-optimization.
40133
40134 2008-08-06  Jim Meyering  <meyering@redhat.com>
40135
40136         inet_pton.c: use locale-independent tolower
40137         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40138         (inet_pton6): Use c_tolower rather than tolower.
40139         * modules/inet_pton (Depends-on): Add c-ctype.
40140
40141 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40142
40143         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40144         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40145
40146 2008-08-06  Jim Meyering  <meyering@redhat.com>
40147
40148         * modules/inet_pton (License): Relicense under LGPLv2+.
40149
40150 2008-08-03  Bruno Haible  <bruno@clisp.org>
40151
40152         Additional non-aborting API for lock and tls.
40153         * lib/lock.h: Include <errno.h>.
40154         (glthread_lock_init): New macro/function.
40155         (gl_lock_init): Define as wrapper around glthread_lock_init.
40156         (glthread_lock_lock): New macro/function.
40157         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40158         (glthread_lock_unlock): New macro/function.
40159         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40160         (glthread_lock_destroy): New macro/function.
40161         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40162         (glthread_rwlock_init): New macro/function.
40163         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40164         (glthread_rwlock_rdlock): New macro/function.
40165         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40166         (glthread_rwlock_wrlock): New macro/function.
40167         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40168         (glthread_rwlock_unlock): New macro/function.
40169         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40170         (glthread_rwlock_destroy): New macro/function.
40171         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40172         (glthread_recursive_lock_init): New macro/function.
40173         (gl_recursive_lock_init): Define as wrapper around
40174         glthread_recursive_lock_init.
40175         (glthread_recursive_lock_lock): New macro/function.
40176         (gl_recursive_lock_lock): Define as wrapper around
40177         glthread_recursive_lock_lock.
40178         (glthread_recursive_lock_unlock): New macro/function.
40179         (gl_recursive_lock_unlock): Define as wrapper around
40180         glthread_recursive_lock_unlock.
40181         (glthread_recursive_lock_destroy): New macro/function.
40182         (gl_recursive_lock_destroy): Define as wrapper around
40183         glthread_recursive_lock_destroy.
40184         (glthread_once): New macro/function.
40185         (gl_once): Define as wrapper around glthread_once.
40186         Update function declarations.
40187         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40188         glthread_rwlock_init. Return error code.
40189         (glthread_rwlock_rdlock_multithreaded): Renamed from
40190         glthread_rwlock_rdlock. Return error code.
40191         (glthread_rwlock_wrlock_multithreaded): Renamed from
40192         glthread_rwlock_wrlock. Return error code.
40193         (glthread_rwlock_unlock_multithreaded): Renamed from
40194         glthread_rwlock_unlock. Return error code.
40195         (glthread_rwlock_destroy_multithreaded): Renamed from
40196         glthread_rwlock_destroy. Return error code.
40197         (glthread_recursive_lock_init_multithreaded): Renamed from
40198         glthread_recursive_lock_init. Return error code.
40199         (glthread_recursive_lock_lock_multithreaded): Renamed from
40200         glthread_recursive_lock_lock. Return error code.
40201         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40202         glthread_recursive_lock_unlock. Return error code.
40203         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40204         glthread_recursive_lock_destroy. Return error code.
40205         (glthread_once_call): Make static.
40206         (glthread_once_multithreaded): Renamed from glthread_once.
40207         * lib/tls.h: Include <errno.h>.
40208         (glthread_tls_key_init): New macro/function.
40209         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40210         (glthread_tls_set): New macro/function.
40211         (gl_tls_set): Define as wrapper around glthread_tls_set.
40212         (glthread_tls_key_destroy): New macro/function.
40213         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40214         Update function declarations.
40215         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40216         glthread_tls_get.
40217         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40218
40219 2008-08-04  Eric Blake  <ebb9@byu.net>
40220
40221         gnumakefile: use space, not TAB, outside of targets
40222         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40223
40224 2008-08-02  Jim Meyering  <meyering@redhat.com>
40225
40226         getdate.y: avoid locale-dependent date parsing failure
40227         In Turkish locales, getdate would fail to recognize keywords
40228         containing a lowercase "i".  The solution is not to rely on
40229         locale-sensitive case-conversion.
40230         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40231         (lookup_word): Use c_toupper in place of toupper.
40232         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40233         Reported by Vefa Bicakci <bicave@superonline.com> in
40234         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40235         * modules/getdate (Depends-on): Add c-ctype.
40236
40237 2008-08-02  Bruno Haible  <bruno@clisp.org>
40238
40239         * gnulib-tool (func_import): When updating or creating a .gitignore
40240         file, prepend each added line with a slash, and ignore leading slashes
40241         from the existing lines.
40242         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40243
40244 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40245
40246         Portability fix for GNU make 3.79.1.
40247         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40248         versions do not understand.
40249
40250 2008-08-01  Bruno Haible  <bruno@clisp.org>
40251
40252         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40253         * tests/test-isnanf.h (zero): New variable.
40254         (main): Avoid literal -0.0f.
40255         * tests/test-isnand.h (zero): New variable.
40256         (main): Avoid literal -0.0.
40257         * tests/test-isnanl.h (zero): New variable.
40258         (main): Avoid literal -0.0L.
40259         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40260         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40261         -0.0, -0.0L.
40262         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40263         (test_signbitd): Avoid literal -0.0.
40264         (test_signbitl): Avoid literal -0.0L.
40265         * tests/test-ceilf1.c (zero): New variable.
40266         (main): Avoid literal -0.0f.
40267         * tests/test-ceill.c (zero): New variable.
40268         (main): Avoid literal -0.0L.
40269         * tests/test-floorf1.c (zero): New variable.
40270         (main): Avoid literal -0.0f.
40271         * tests/test-floorl.c (zero): New variable.
40272         (main): Avoid literal -0.0L.
40273         * tests/test-roundf1.c (zero): New variable.
40274         (main): Avoid literal -0.0f.
40275         * tests/test-round1.c (zero): New variable.
40276         (main): Avoid literal -0.0.
40277         * tests/test-roundl.c (zero): New variable.
40278         (main): Avoid literal -0.0L.
40279         * tests/test-truncf1.c (zero): New variable.
40280         (main): Avoid literal -0.0f.
40281         * tests/test-trunc1.c (zero): New variable.
40282         (main): Avoid literal -0.0.
40283         * tests/test-truncl.c (zero): New variable.
40284         (main): Avoid literal -0.0L.
40285         * tests/test-frexp.c (zero): New variable.
40286         (main): Avoid literal -0.0.
40287         * tests/test-frexpl.c (zero): New variable.
40288         (main): Avoid literal -0.0L.
40289         * tests/test-ldexpl.c (zero): New variable.
40290         (main): Avoid literal -0.0L.
40291         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40292         (zerod, zerol): New variables.
40293         (test_function): Avoid literals -0.0, -0.0L.
40294         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40295         (zerod, zerol): New variables.
40296         (test_function): Avoid literals -0.0, -0.0L.
40297         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40298         (zerod, zerol): New variables.
40299         (test_function): Avoid literals -0.0, -0.0L.
40300         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40301         (zerod, zerol): New variables.
40302         (test_function): Avoid literals -0.0, -0.0L.
40303         * tests/test-strtod.c (zero): New variable.
40304         (main): Avoid literal -0.0.
40305         Reported by Jonathan C. Patschke <jp@centtech.com>.
40306
40307 2008-07-31  Jim Meyering  <meyering@redhat.com>
40308
40309         sha256.h: correct definition of SHA224_DIGEST_SIZE
40310         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40311         Reported by Paulie Pena IV <paulie4@gmail.com>.
40312         Define as 224 / 8, rather than as a literal.
40313         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40314         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40315         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40316
40317 2008-07-31  Bruno Haible  <bruno@clisp.org>
40318
40319         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40320         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40321         Reported by Jonathan Patschke <jp@centtech.com>.
40322
40323 2008-07-31  Bruno Haible  <bruno@clisp.org>
40324
40325         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40326         Reported by Paolo Bonzini <bonzini@gnu.org>.
40327
40328 2008-07-30  Eric Blake  <ebb9@byu.net>
40329
40330         test-strtod: allow compilation without -lm
40331         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40332         Reported by Dennis Clarke <blastwave@gmail.com>.
40333
40334 2008-07-28  Jim Meyering  <meyering@redhat.com>
40335
40336         bootstrap: work also when there are no .po files in po/
40337         * build-aux/bootstrap (update_po_files): Complete the change
40338         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40339
40340 2008-07-27  Jim Meyering  <meyering@redhat.com>
40341
40342         * users.txt: Add zile.
40343
40344 2008-07-26  Ben Pfaff  <blp@gnu.org>
40345
40346         Add missing dependencies on new m4/exponent[fdl].m4 files.
40347         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40348         * modules/isnand-nolibm: Add m4/exponentd.m4.
40349         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40350         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40351         m4/isnan[fdl].m4, because the macros actually used moved.
40352         Reported by Jim Meyering.
40353
40354 2008-07-14  Ben Pfaff  <blp@gnu.org>
40355
40356         Add isinf module.
40357         * lib/isinf.c: New file.
40358         * lib/math.in.h: Define isinf macro if we have decided to replace
40359         it.
40360         * m4/isinf.m4: New file.
40361         * m4/math_h.m4: Initialize and substitute variables for isinf
40362         module.
40363         * modules/isinf: New file.
40364         * modules/isinf-tests: New file.
40365         * modules/math: Add substitutions for new module.
40366         * tests/test-isinf.c: New file.
40367         * doc/posix-functions/isinf.texi: Mention new module.
40368         * MODULES.html.sh: Mention new module.
40369
40370 2008-07-14  Ben Pfaff  <blp@gnu.org>
40371
40372         Factor out some macros for use by additional modules.
40373         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40374         exponentf.m4.
40375         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40376         exponentd.m4.
40377         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40378         file exponentl.m4.
40379         * m4/exponentf.m4: New file.
40380         * m4/exponentd.m4: New file.
40381         * m4/exponentl.m4: New file.
40382         * modules/isnanf: Use new file m4/exponentf.m4.
40383         * modules/isnand: Use new file m4/exponentd.m4.
40384         * modules/isnanl: Use new file m4/exponentl.m4.
40385
40386 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40387
40388         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40389         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40390         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40391         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40392
40393         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40394         readlink on platforms without PATH_MAX.
40395
40396 2008-07-21  Eric Blake  <ebb9@byu.net>
40397
40398         Warn, not fail, on stale version.
40399         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40400
40401         Don't allow installation with stale devel version number.
40402         * top/GNUmakefile (_is-install-target): New macro.
40403         (_curr-ver): Forbid installation with stale version number.
40404
40405 2008-07-20  Bruno Haible  <bruno@clisp.org>
40406
40407         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40408         TESTS_ENVIRONMENT.
40409         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40410
40411 2008-07-20  Bruno Haible  <bruno@clisp.org>
40412
40413         * lib/c-stack.h (c_stack_action): Add documentation.
40414         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40415
40416 2008-07-20  Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40419         * modules/readlink (License): Likewise.
40420
40421 2008-07-17  Eric Blake  <ebb9@byu.net>
40422
40423         * modules/c-stack (Link): Fix typo.
40424
40425         Make c-stack use libsigsegv, when available.
40426         * modules/c-stack (Depends-on): Add libsigsegv.
40427         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40428         needed.
40429         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40430         (segv_handler, overflow_handler, c_stack_action)
40431         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40432         implementation when libsigsegv is available, but only when using
40433         the library is necessary.
40434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40435         comment, explaining why XSI check fails on Linux.
40436         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40437         * tests/test-c-stack2.sh: Tweak skip message.
40438         * NEWS: Document new link-time requirements.
40439
40440 2008-07-16  Eric Blake  <ebb9@byu.net>
40441
40442         c-stack: Expose false positives when not using libsigsegv.
40443         * modules/c-stack-tests (Files): Expand test.
40444         * tests/test-c-stack.c (main): Add means to conditionally trigger
40445         non-overflow SIGSEGV.
40446         * tests/test-c-stack2.sh: New file.
40447
40448 2008-07-14  Bruno Haible  <bruno@clisp.org>
40449
40450         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40451         Reported by Eric Blake.
40452
40453 2008-07-14  Sam Steingold  <sds@gnu.org>
40454             Bruno Haible  <bruno@clisp.org>
40455
40456         New module libsigsegv.
40457         * modules/libsigsegv: New file.
40458         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40459         modifications.
40460         * MODULES.html.sh (Signal handling): New section.
40461
40462 2008-07-14  Bruno Haible  <bruno@clisp.org>
40463
40464         * modules/unictype/ctype-* (Description): Add the word "function".
40465         Improves the resulting doc in MODULES.html.
40466
40467 2008-07-12  Ben Pfaff  <blp@gnu.org>
40468
40469         Add longlong module.
40470         * modules/longlong: New file.
40471
40472 2008-07-12  Bruno Haible  <bruno@clisp.org>
40473
40474         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40475         to empty.
40476
40477 2008-07-10  Ben Pfaff  <blp@gnu.org>
40478
40479         Add isnan module.
40480         * doc/posix-functions/isnan.texi: Mention new module.
40481         * lib/math.in.h: Define isnan macro if we have decided to replace
40482         it.
40483         * m4/isnan.m4: New file.
40484         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40485         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40486         also.
40487         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40488         redundancy.
40489         * m4/math_h.m4: Initialize and substitute variables for isnan
40490         module.
40491         * modules/isnan: New file.
40492         * modules/isnan-tests: New file.
40493         * modules/math: Add substitutions for new module.
40494         * tests/test-isnan.c: New file.
40495         * MODULES.html.sh: Mention new module.
40496
40497 2008-07-10  Ben Pfaff  <blp@gnu.org>
40498
40499         Add isnanf module.
40500         * lib/isnanf.m4: New file.
40501         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40502         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40503         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40504         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40505         * modules/isnanf: New file.
40506         * modules/isnanf-tests: New file.
40507         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40508         files.
40509         * tests/test-isnanf-nolibm.c: factored most of its contents into
40510         new file tests/test-isnanf.h.
40511         * tests/test-isnanf.h: New file.
40512         * tests/test-isnanf.c: New file.
40513         * MODULES.html.sh: Mention new module.
40514         * doc/glibc-functions/isnanf.texi: Mention new module.
40515
40516 2008-07-10  Ben Pfaff  <blp@gnu.org>
40517
40518         Add isnand module.
40519         * lib/isnand.h: New file.
40520         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40521         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40522         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40523         functionality also.
40524         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40525         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40526         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40527         * modules/isnand: New file.
40528         * modules/isnand-tests: New file.
40529         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40530         files.
40531         * tests/test-isnand-nolibm.c: factored most of its contents into
40532         new file tests/test-isnand.h.
40533         * tests/test-isnand.h: New file.
40534         * tests/test-isnand.c: New file.
40535         * MODULES.html.sh: Mention new module.
40536
40537 2008-07-10  Ben Pfaff  <blp@gnu.org>
40538
40539         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40540         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40541         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40542         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40543         * modules/isnanf-nolibm: Update references to renamed files.
40544         * modules/isnand-nolibm: Likewise.
40545         * modules/isnanf-nolibm-tests: Likewise.
40546         * modules/isnand-nolibm-tests: Likewise.
40547         * lib/frexp.c: Likewise.
40548         * lib/isfinite.c: Likewise.
40549         * lib/signbitd.c: Likewise.
40550         * lib/signbitf.c: Likewise.
40551         * lib/vasnprintf.c: Likewise.
40552         * tests/test-ceilf1.c: Likewise.
40553         * tests/test-ceilf2.c: Likewise.
40554         * tests/test-floorf1.c: Likewise.
40555         * tests/test-floorf2.c: Likewise.
40556         * tests/test-frexp.c: Likewise.
40557         * tests/test-round1.c: Likewise.
40558         * tests/test-round2.c: Likewise.
40559         * tests/test-roundf1.c: Likewise.
40560         * tests/test-strtod.c: Likewise.
40561         * tests/test-trunc1.c: Likewise.
40562         * tests/test-trunc2.c: Likewise.
40563         * tests/test-truncf1.c: Likewise.
40564         * tests/test-truncf2.c: Likewise.
40565         * NEWS: Mention the renamed header files.
40566
40567 2008-07-11  Jim Meyering  <meyering@redhat.com>
40568
40569         vc-list-files: make the last-resort awk code more portable
40570         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40571         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40572         does not support it.
40573
40574 2008-07-10  Eric Blake  <ebb9@byu.net>
40575
40576         Work with tar's bootstrap.
40577         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40578         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40579         an m4 comment.
40580
40581 2008-07-09  Jim Meyering  <meyering@redhat.com>
40582
40583         posix-shell.m4: fix typo that made this test malfunction
40584         * m4/posix-shell.m4: Remove capitalization in variable name.
40585
40586 2008-07-08  Bruno Haible  <bruno@clisp.org>
40587
40588         * m4/onceonly.m4: Update comments.
40589         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40590
40591 2008-07-04  Jim Meyering  <meyering@redhat.com>
40592
40593         * users.txt: Add vc-dwim.
40594         (bison, coreutils): Use the gitweb URL.
40595
40596 2008-07-03  Jim Meyering  <meyering@redhat.com>
40597
40598         * users.txt: Add libffcall.  From Sam Steingold.
40599
40600 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40601
40602         getdate.y: do not ignore TZ with relative day, month or year offset
40603         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40604         relative-date-handling, since otherwise, the latter would clobber the
40605         sole output (an updated Start value) of the tz-handling block.
40606         * tests/test-getdate.c: Tests for the fix
40607
40608 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40609
40610         Recognize 'foo_LIBRARIES += libgnu.a'.
40611         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40612         makefile snippet has already specified an installation location,
40613         also using '+='.
40614
40615 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40616
40617         getdate.y: factor out common actions
40618         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40619         Use them in place of open-coded actions.
40620
40621 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40622
40623         Add self-test for getdate module.
40624         * modules/getdate-tests: New file.
40625         * tests/test-getdate.c: New file.
40626
40627 2008-06-29  Bruno Haible  <bruno@clisp.org>
40628
40629         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40630         .gitignore.
40631         Reported by Sylvain Beucler <beuc@beuc.net>.
40632
40633 2008-06-29  Bruno Haible  <bruno@clisp.org>
40634
40635         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40636         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40637
40638 2008-06-29  Bruno Haible  <bruno@clisp.org>
40639
40640         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40641         EXTRA_DIST.
40642         Reported by Sylvain Beucler <beuc@beuc.net>.
40643
40644 2008-06-26  Jim Meyering  <meyering@redhat.com>
40645
40646         make several modules depend on the "open" module
40647         This provides slightly increased consistency when opening-for-write
40648         the name of a non-directory spelled with a trailing slash.
40649         * modules/chdir-safer: Likewise.
40650         * modules/chown: Likewise.
40651         * modules/clean-temp: Likewise.
40652         * modules/copy-file: Likewise.
40653         * modules/fchdir: Likewise.
40654         * modules/fcntl-safer: Likewise.
40655         * modules/pipe: Likewise.
40656         * modules/utime: Likewise.
40657         Prompted by Eric Blake and Bruno Haible.
40658
40659 2008-06-24  Andreas Schwab  <schwab@suse.de>
40660
40661         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40662         literals can be used as initializers for global variables.
40663
40664 2008-06-23  Eric Blake  <ebb9@byu.net>
40665
40666         Make gnulib-cache.m4 easier to diff.
40667         * gnulib-tool (func_import): Allow newlines when reading cached
40668         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40669
40670 2008-06-23  Bruno Haible  <bruno@clisp.org>
40671
40672         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40673         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40674         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40675         m4/signalblocking.m4.
40676         (gl_PREREQ_SIGACTION): Don't invoke it.
40677         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40678         gl_PREREQ_SIG_HANDLER_H.
40679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40680         Don't check for sigaction here.
40681
40682 2008-06-23  Bruno Haible  <bruno@clisp.org>
40683
40684         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40685         (install_handlers): Don't set the SA_RESETHAND flag.
40686
40687 2008-06-23  Bruno Haible  <bruno@clisp.org>
40688
40689         * m4/sigaction.m4: Comment fixes.
40690         * lib/signal.in.h: Likewise.
40691
40692 2008-06-23  Eric Blake  <ebb9@byu.net>
40693
40694         Fix typo.
40695         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40696
40697         Avoid SA_ namespace.
40698         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40699         Reported by Ralf Wildenhues.
40700
40701         Avoid test failure due to SA_RESTORER.
40702         * tests/test-sigaction.c (SA_MASK): New macro.
40703         (main): Avoid failing due to extension flags being set.
40704         Reported by Jim Meyering.
40705
40706         Revert use of sig-handler.h in sigprocmask.c.
40707         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40708         it requires the existence of struct sigaction.
40709         * lib/sigprocmask.c (handler_t): Restore typedef.
40710         (rpl_signal, old_handlers): Use local type.
40711
40712 2008-06-22  Bruno Haible  <bruno@clisp.org>
40713
40714         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40715         conditionally.
40716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40717
40718 2008-06-22  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/posix-functions/siginterrupt.texi: Move note.
40721
40722         * lib/signal.in.h (SA_RESTART): New macro.
40723         * lib/sigaction.c: Update comment.
40724
40725         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40726
40727         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40728         (gl_PREREQ_SIGPROCMASK): Invoke it.
40729         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40730
40731         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40732
40733         * lib/sigprocmask.c: Update a comment.
40734
40735 2008-06-21  Eric Blake  <ebb9@byu.net>
40736
40737         Use sigaction module rather than signal().
40738         * modules/c-stack (Depends-on): Add sigaction.
40739         * modules/fatal-signal (Depends-on): Likewise.
40740         * modules/nanosleep (Depends-on): Likewise.
40741         * modules/sigprocmask (Files): Add sig-handler.h.
40742         * modules/sigaction (Files): Likewise.
40743         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40744         Eggert.
40745         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40746         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40747         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40748         (init_fatal_signals): Likewise.
40749         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40750         (siginterrupt): Delete fallback.
40751         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40752         instead.
40753         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40754         siginterrupt.
40755
40756         New module sigaction, for mingw.
40757         * modules/sigaction: New module...
40758         * modules/sigaction-tests: ...and its test.
40759         * m4/sigaction.m4: New file.
40760         * lib/sigaction.c: Likewise.
40761         * tests/test-sigaction.c: Likewise.
40762         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40763         * modules/signal (Makefile.am): Likewise.
40764         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40765         needed.
40766         * doc/posix-headers/signal.texi (signal.h): Mention provided
40767         types.
40768         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40769         that sigaction is preferable.
40770         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40771         module.
40772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40773         sigaction.
40774
40775         Improve robustness of sigprocmask by overriding signal.
40776         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40777         is in use.
40778         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40779         (SIGKILL, SIGSTOP): Provide fallbacks.
40780         (rpl_signal): Implement.
40781         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40782         signal can be called inside handlers.
40783
40784         Fix nanosleep module on mingw.
40785         * modules/nanosleep (Depends-on): Add sys_select.
40786         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40787
40788         Fix licensing of sigprocmask.
40789         * modules/raise (License): Relicense as LGPL.
40790
40791 2008-06-21  Bruno Haible  <bruno@clisp.org>
40792
40793         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40794         result if it contains question marks.
40795         Reported by Michael Geng <linux@michaelgeng.de>.
40796
40797 2008-06-19  Bruno Haible  <bruno@clisp.org>
40798
40799         Fix CVS-ism.
40800         * doc/gnulib.texi: Include updated-stamp.texi.
40801         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40802         (updated-stamp.texi): New rule.
40803         (gnulib.info): Depend on it.
40804         * doc/.gitignore: Add updated-stamp.texi.
40805         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40806
40807 2008-06-19  Bruno Haible  <bruno@clisp.org>
40808
40809         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40810         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40811
40812 2008-06-19  Eric Blake  <ebb9@byu.net>
40813
40814         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40815         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40816         Reported by Stepan Kasal.
40817
40818 2008-06-18  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40821         Reported by Eric Blake.
40822
40823 2008-06-18  Eric Blake  <ebb9@byu.net>
40824
40825         Work around cygwin 1.5.25 strsignal bug.
40826         * tests/test-strsignal.c: Allow for const char *.
40827         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40828
40829 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40830
40831         * users.txt: Update URL to article and add author/date
40832         information.
40833
40834 2008-06-17  Bruno Haible  <bruno@clisp.org>
40835
40836         New macro gl_DISABLE_THREADS.
40837         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40838         if the user did not pass --enable-threads or --disable-threads option.
40839         (gl_DISABLE_THREADS): New macro.
40840         Reported by Eric Blake <ebb9@byu.net>.
40841
40842 2008-06-17  Bruno Haible  <bruno@clisp.org>
40843
40844         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40845         when the macro ignores it.
40846         Based on a patch by Eric Blake <ebb9@byu.net>.
40847
40848 2008-06-17  Bruno Haible  <bruno@clisp.org>
40849
40850         * modules/tls (License): Change to LGPLv2+.
40851         Reported by Eric Blake.
40852
40853 2008-06-17  Eric Blake  <ebb9@byu.net>
40854
40855         Simplify c-stack prerequisites.
40856         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40858         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40859         check.
40860         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40861         <sys/resource.h>.
40862
40863         Move c-stack test into testsuite.
40864         * modules/c-stack-tests: New file.
40865         * lib/c-stack.c [DEBUG]: Move test program...
40866         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40867         fail test if sigaltstack is lacking.
40868         * tests/test-c-stack.sh: New driver file.
40869
40870 2008-06-16  Eric Blake  <ebb9@byu.net>
40871
40872         Use raise module consistently.
40873         * modules/fatal-signal (Depends-on): Add raise.
40874         * modules/sigprocmask (Depends-on): Likewise.
40875         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40876         * lib/sigprocmask.c (sigprocmask): Likewise.
40877         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40878         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40879
40880         Fix compliance bug in sigpending.
40881         * lib/sigprocmask.c (sigpending): Return pending array via
40882         parameter, not return value.
40883
40884 2008-06-14  Eric Blake  <ebb9@byu.net>
40885
40886         Improve obstack-printf test code.
40887         * tests/test-obstack-printf.c (test_function): Fix comment, and
40888         simplify usage of obstack_* in macros.  Add a test for coverage.
40889         Reported by Bruno Haible.
40890
40891 2008-06-14  Bruno Haible  <bruno@clisp.org>
40892
40893         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40894         array size as a constant, not as a const variable.
40895         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40896         AC_USE_SYSTEM_EXTENSIONS.
40897         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40898         Test whether the obstack_printf function actually exists.
40899         * modules/obstack-printf (Depends-on): Add extensions.
40900         (Include): Remove obstack.h.
40901         * modules/obstack-printf-posix (Depends-on): Add extensions.
40902         (Include): Remove obstack.h.
40903
40904 2008-06-13  Eric Blake  <ebb9@byu.net>
40905
40906         Add obstack-printf and obstack-printf-posix modules.
40907         * modules/obstack-printf: New file.
40908         * modules/obstack-printf-posix: Likewise.
40909         * MODULES.html.sh (Misc): Mention them.
40910         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40911         Likewise.
40912         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40913         Likewise.
40914         * modules/stdio (Makefile.am): Accomodate new modules.
40915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40916         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40917         Declare.
40918         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40919         functions.
40920         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40921         (gl_REPLACE_OBSTACK_PRINTF): New macros
40922         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40923         * tests/test-obstack-printf.c: New file.
40924         * modules/obstack-printf-tests: Likewise.
40925         * modules/obstack-printf-posix-tests: Likewise.
40926
40927 2008-06-11  Bruno Haible  <bruno@clisp.org>
40928
40929         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40930         * lib/open.c: Include errno.h.
40931         (open): Fail when attempting to write to a file that has a trailing
40932         slash.
40933         * tests/test-open.c (main): Test against trailing slash bug.
40934         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40935
40936 2008-06-10  Bruno Haible  <bruno@clisp.org>
40937
40938         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40939         for $? to work inside the trap command, with various /bin/sh-s.
40940         * tests/test-vc-list-files-cvs.sh: Likewise.
40941
40942 2008-06-10  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/acl-internal.h: Don't include gettext.h here.
40945         * lib/set-mode-acl.c: Include gettext.h here.
40946         * lib/copy-acl.c: Likewise.
40947
40948 2008-06-10  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40951         * lib/wait-process.c (wait_subprocess): Likewise.
40952         * lib/execute.h (execute): Add termsigp argument.
40953         * lib/execute.c (execute): Likewise.
40954         * lib/csharpcomp.c (compile_csharp_using_pnet,
40955         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40956         * lib/csharpexec.c (execute_csharp_using_pnet,
40957         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40958         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40959         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40960         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40961         is_jikes_present): Update.
40962         * lib/javaexec.c (execute_java_class): Update.
40963         * lib/javaversion.c (execute_and_read_line): Update.
40964         * NEWS: Document the changes.
40965         Reported by Eric Blake.
40966
40967 2008-06-10  Eric Blake  <ebb9@byu.net>
40968
40969         Add missing include.
40970         * tests/test-strstr.c (includes): Add <signal.h>.
40971         * tests/test-strcasestr.c (includes): Likewise.
40972         * tests/test-memmem.c (includes): Likewise.
40973
40974 2008-06-10  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/wait-process.c (wait_subprocess): Add an assertion.
40977
40978 2008-06-10  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40981
40982 2008-06-10  Bruno Haible  <bruno@clisp.org>
40983
40984         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40985         using alarm().
40986         * tests/test-strcasestr.c (main): Likewise.
40987         * tests/test-strstr.c (main): Likewise.
40988
40989 2008-06-09  Bruno Haible  <bruno@clisp.org>
40990
40991         Work around the Solaris 10 ACE ACLs ABI change.
40992         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40993         declare if ACL_NO_TRIVIAL is present.
40994         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40995         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40996         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40997         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40998         define if ACL_NO_TRIVIAL is present.
40999         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41000         and use the current ABI.
41001         (file_has_acl): Use same #if condition as elsewhere.
41002         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41003         in use, and use the current ABI.
41004         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41005         Reported by Jim Meyering.
41006
41007 2008-06-09  Eric Blake  <ebb9@byu.net>
41008
41009         Work around environments that (stupidly) ignore SIGALRM.
41010         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41011         before using alarm().
41012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41014         Reported by Ian Beckwith <ianb@erislabs.net>.
41015
41016         Produce autobuild blurb earlier in log.
41017         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41018
41019 2008-06-09  Jim Meyering  <meyering@redhat.com>
41020         and OndÅ™ej Vašík  <ovasik@redhat.com>
41021
41022         utimens.c: correct kernel bug work-around
41023         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41024         failure, not success, and the kernel bug we're trying to work
41025         around affects not just the utimensat call, but also the fallback
41026         futimens call.
41027         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41028         not success.
41029         [HAVE_FUTIMENS]: Use the same work-around, here.
41030
41031 2008-06-09  Jim Meyering  <meyering@redhat.com>
41032
41033         add more guards around definition of ACE_-related code
41034         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41035         ALLOW and ACE_OWNER are also defined.
41036
41037 2008-06-08  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/acl-internal.h: Add me as co-author.
41040         * lib/file-has-acl.c: Likewise.
41041         * lib/set-mode-acl.c: Likewise.
41042         * lib/copy-acl.c: Likewise.
41043
41044 2008-06-08  Bruno Haible  <bruno@clisp.org>
41045
41046         Add support for AIX ACLs.
41047         * lib/acl-internal.h (acl_nontrivial): New declaration.
41048         * lib/file-has-acl.c (acl_nontrivial): New function.
41049         (file_has_acl): Add implementation using AIX 4 ACL API.
41050         * lib/set-mode-acl.c (qset_acl): Likewise.
41051         * lib/copy-acl.c (qcopy_acl): Likewise.
41052
41053 2008-06-08  Bruno Haible  <bruno@clisp.org>
41054
41055         Add support for HP-UX ACLs.
41056         * lib/acl-internal.h (acl_nontrivial): New declaration.
41057         * lib/file-has-acl.c (acl_nontrivial): New function.
41058         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41059         * lib/set-mode-acl.c (qset_acl): Likewise.
41060         * lib/copy-acl.c (qcopy_acl): Likewise.
41061
41062 2008-06-08  Bruno Haible  <bruno@clisp.org>
41063
41064         Add support for Cygwin ACLs.
41065         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41066         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41067         the chmod_or_fchmod call.
41068         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41069
41070 2008-06-08  Bruno Haible  <bruno@clisp.org>
41071
41072         Fix bug with setuid modes in Solaris 10+ code.
41073         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41074         succeeded, when the mode contains some special bits.
41075
41076 2008-06-08  Bruno Haible  <bruno@clisp.org>
41077
41078         Add support for Solaris 7..10 ACLs.
41079         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41080         declarations.
41081         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41082         functions.
41083         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41084         * lib/set-mode-acl.c (qset_acl): Likewise.
41085         * lib/copy-acl.c (qcopy_acl): Likewise.
41086
41087 2008-06-08  Bruno Haible  <bruno@clisp.org>
41088
41089         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41090         declaration.
41091         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41092         (acl_access_nontrivial): Remove MacOS X case.
41093         (file_has_acl): Use acl_extended_nontrivial.
41094         * lib/copy-acl.c (qcopy_acl): Likewise.
41095
41096 2008-06-08  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41099
41100 2008-06-08  Jim Meyering  <meyering@redhat.com>
41101
41102         * modules/acl (Maintainer): Add Bruno Haible.
41103
41104 2008-06-07  Bruno Haible  <bruno@clisp.org>
41105
41106         Improve support for Tru64 ACLs.
41107         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41108         ACL on OSF/1.
41109
41110 2008-06-07  Bruno Haible  <bruno@clisp.org>
41111
41112         Add support for MacOS X ACLs.
41113         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41114         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41115         * lib/set-mode-acl.c (qset_acl): Likewise.
41116         * lib/copy-acl.c (qcopy_acl): Likewise.
41117
41118 2008-06-07  Bruno Haible  <bruno@clisp.org>
41119
41120         Fix memory leak introduced on 2008-05-22.
41121         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41122         use.
41123
41124 2008-06-07  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41127         to construct an empty ACL.
41128
41129 2008-06-07  Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41132         precisely.
41133         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41134
41135 2008-06-07  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41138         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41139
41140 2008-06-07  Bruno Haible  <bruno@clisp.org>
41141
41142         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41143         regardless of POSIX.
41144         * doc/posix-functions/_longjmp.texi: Likewise.
41145         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41146         SystemV platform in this case.
41147
41148 2008-06-06  Eric Blake  <ebb9@byu.net>
41149
41150         Document abort() bugs.
41151         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41152
41153         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41154         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41155         sigsetjmp.
41156         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41157         siglongjmp, but only as a macro.
41158         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41159         is obsolete.
41160         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41161
41162         Tweak documentation to cover cygwin argz bugs.
41163         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41164         argz bug fix; no code change needed since no cygwin releases
41165         occurred between the last fix and the bug being tested.
41166         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41167         module and recently fixed cygwin bugs.
41168         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41169         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41170         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41171         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41172         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41173         Likewise.
41174         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41175         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41176         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41177         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41178         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41179         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41180         Likewise.
41181
41182         Avoid gcc warning on cygwin.
41183         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41184         !ACL_NO_TRIVIAL]: Avoid unused variable.
41185
41186 2008-06-05  Eric Blake  <ebb9@byu.net>
41187
41188         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41189         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41190         git-version-gen fails to come up with a version.
41191         Reported by Simon Josefsson.
41192
41193 2008-06-05  Jim Meyering  <meyering@redhat.com>
41194             Paul Eggert  <eggert@cs.ucla.edu>
41195
41196         utimens.c: work around a probable Linux kernel bug
41197         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41198         appears to be a kernel bug that causes utimensat to return 280
41199         instead of 0, indicating success.
41200
41201 2008-06-04  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41204         2008-06-01 commit.
41205
41206 2008-06-04  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41209         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41210         (file_has_acl): Use it. Save errno afterwards.
41211         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41212
41213 2008-06-03  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41216         draft code. Simplify #ifs.
41217         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41218         Put Solaris code after POSIX-draft code. Fix comments regarding
41219         Solaris 10, HP-UX. Mention Cygwin.
41220         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41221
41222 2008-06-03  Eric Blake  <ebb9@byu.net>
41223
41224         Provide fallback for older kernels.
41225         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41226         Provide runtime fallback if kernel lacks support.
41227         Reported by Mike Frysinger.
41228
41229 2008-06-02  Bruno Haible  <bruno@clisp.org>
41230
41231         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41232         it exists.
41233
41234 2008-06-02  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41237         * lib/copy-acl.c (qcopy_acl): Update comment.
41238
41239 2008-06-02  Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41242         like ACL APIs.
41243
41244 2008-06-02  Bruno Haible  <bruno@clisp.org>
41245
41246         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41247         * tests/test-set-mode-acl.sh: Likewise.
41248         * tests/test-copy-acl.sh: Likewise.
41249         * tests/test-copy-file.sh: Likewise.
41250
41251 2008-06-02  Bruno Haible  <bruno@clisp.org>
41252
41253         * tests/test-file-has-acl.sh: Remove unused code.
41254
41255 2008-06-01  Bruno Haible  <bruno@clisp.org>
41256
41257         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41258         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41259         messages.
41260         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41261
41262 2008-06-01  Bruno Haible  <bruno@clisp.org>
41263
41264         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41265         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41266         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41267         APIs.
41268         * modules/acl-tests (configure.ac): Remove tests now contained in
41269         m4/acl.m4.
41270
41271 2008-06-02  Jim Meyering  <meyering@redhat.com>
41272
41273         announce-gen: use a better key-server host name
41274         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41275         it may be more consistently reliable.  Suggested by Werner Koch
41276         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41277
41278 2008-06-01  Bruno Haible  <bruno@clisp.org>
41279
41280         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41281         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41282
41283 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41284
41285         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41286
41287 2008-06-01  Bruno Haible  <bruno@clisp.org>
41288
41289         New ACL tests.
41290         * tests/test-file-has-acl.sh: New file.
41291         * tests/test-file-has-acl.c: New file.
41292         * tests/test-set-mode-acl.sh: New file.
41293         * tests/test-set-mode-acl.c: New file.
41294         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41295         * tests/test-copy-acl.c: New file.
41296         * modules/acl-tests: New file, based on modules/copy-file-tests.
41297         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41298         (Depends-on): Add acl-tests.
41299         (configure.ac): Remove checks.
41300         (Makefile.am): Don't create test-sameacls program here any more.
41301
41302 2008-06-01  Bruno Haible  <bruno@clisp.org>
41303
41304         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41305         * tests/test-sameacls.c: Include progname.h.
41306         (main): Invoke set_program_name. Portability fixes for MacOS X,
41307         Solaris, HP-UX.
41308
41309 2008-06-01  Bruno Haible  <bruno@clisp.org>
41310
41311         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41312         function.
41313         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41314
41315 2008-06-01  Bruno Haible  <bruno@clisp.org>
41316
41317         * modules/rpmatch (Depends-on): Add strdup.
41318
41319 2008-06-01  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/pipe.c: Include unistd-safer.h.
41322         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41323         * modules/pipe (Depends-on): Add unistd-safer.
41324
41325 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41326
41327         * modules/autobuild (configure.ac): Call AB_INIT.
41328
41329 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41330
41331         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41332         Suggested by Bruno Haible <bruno@clisp.org>.
41333
41334 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41335
41336         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41337         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41338         <bruno@clisp.org>.
41339
41340 2008-05-29  Eric Blake  <ebb9@byu.net>
41341
41342         Prefer new POSIX 200x interfaces over futimesat.
41343         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41344         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41345         when available.
41346         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41347
41348 2008-05-28  Bruno Haible  <bruno@clisp.org>
41349
41350         * modules/stpcpy (License): Change to LGPLv2+.
41351         Requested by David Lutterkort <dlutter@redhat.com>.
41352
41353 2008-05-27  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41356         current mingw.
41357         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41358
41359 2008-05-27  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/iconv_open (Link): New section, from module 'iconv'.
41362         * modules/striconv (Link): Likewise.
41363         * modules/striconveh (Link): Likewise.
41364         * modules/xstriconv (Link): Likewise.
41365         * modules/unicodeio (Link): Likewise.
41366         * modules/propername (Link): Likewise.
41367         Reported by Jim Meyering.
41368
41369 2008-05-26  Jim Meyering  <meyering@redhat.com>
41370
41371         sha256: do not artificially restrict buffer length to be < 2^32
41372         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41373         uint32_t to size_t.
41374         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41375         to match.
41376
41377         avoid unaligned access errors, e.g., on sparc
41378         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41379         direct access through a possibly-unaligned uint64* pointer.
41380         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41381         direct access through a possibly-unaligned uint32* pointer.
41382         Prompted by this patch from Tom "spot" Callaway:
41383         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41384
41385         sha512.c: fix typo in comment
41386         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41387
41388 2008-05-25  Bruno Haible  <bruno@clisp.org>
41389
41390         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41391         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41392         (Makefile.am): Update lib_SOURCES.
41393
41394 2008-05-25  Bruno Haible  <bruno@clisp.org>
41395
41396         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41397
41398 2008-05-25  Jim Meyering  <meyering@redhat.com>
41399
41400         useless-if-before-free: freed expr may have white-space differences
41401         * build-aux/useless-if-before-free: Recognize cases in which the
41402         freed expression differs from the tested one in embedded white
41403         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41404         $1 was used, so we can't make any regexp shy.  Improved tests now
41405         detect this.
41406
41407         useless-if-before-free: accept white space in the expression.
41408         * build-aux/useless-if-before-free: For now, any white space
41409         in the expression must be identical in the free argument.
41410
41411         useless-if-before-free: efficiency tweak
41412         * build-aux/useless-if-before-free: Make the expression-matching
41413         regexp "shy".
41414         Make the *outer* regexp shy, not the expr-matching one.
41415
41416         update code-in-comment to accept cast of free arg
41417         * build-aux/useless-if-before-free: Update regexp.
41418
41419 2008-05-25  Bruno Haible  <bruno@clisp.org>
41420
41421         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41422         * modules/copy-file-tests (Files, Makefile.am): Update.
41423         * tests/test-copy-file.c (func_test_copy): Update.
41424
41425 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41426
41427         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41428
41429 2008-05-23  Bruno Haible  <bruno@clisp.org>
41430
41431         Improve support for ACLs on OSF/1.
41432         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41433         Remove fallback for unknown flavors of ACLs.
41434
41435 2008-05-22  Bruno Haible  <bruno@clisp.org>
41436
41437         Add support for ACLs on OSF/1.
41438         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41439         replacements.
41440         (acl_free_text): New macro fallback.
41441         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41442         acl_free.
41443         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41444         acl_free_text function. Require AC_C_INLINE.
41445
41446 2008-05-22  Bruno Haible  <bruno@clisp.org>
41447
41448         Make copy_acl work on MacOS X 10.5.
41449         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41450         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41451         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41452         If MODE_INSIDE_ACL, don't assume that every system has the same text
41453         representation for ACLs as FreeBSD.
41454         * lib/copy-acl.c (copy_acl): Add support for platforms with
41455         !MODE_INSIDE_ACL.
41456         * lib/file-has-acl.c (file_has_acl): Likewise.
41457         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41458         FreeBSD, MacOS X, or IRIX, respectively.
41459
41460 2008-05-22  Bruno Haible  <bruno@clisp.org>
41461
41462         * lib/acl.h: Don't include <sys/acl.h>.
41463         (GETACLCNT): Move fallback to lib/acl-internal.h.
41464         * lib/acl-internal.h: Include <sys/acl.h> here.
41465         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41466
41467 2008-05-22  Bruno Haible  <bruno@clisp.org>
41468
41469         Split off copy_acl function to separate file.
41470         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41471         * lib/acl.c (copy_acl): Moved function to separate file.
41472         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41473         * modules/acl (Files): Add lib/copy-acl.c.
41474         (Makefiles.am): Augment lib_SOURCES.
41475
41476 2008-05-22  Bruno Haible  <bruno@clisp.org>
41477
41478         * modules/copy-file-tests: New file.
41479         * tests/test-copy-file.sh: New file.
41480         * tests/test-copy-file.c: New file.
41481         * tests/test-copy-file-sameacls.c: New file.
41482
41483 2008-05-22  Eric Blake  <ebb9@byu.net>
41484
41485         Avoid gcc warning.
41486         * tests/test-memcmp.c (main): Pass NULL indirectly.
41487
41488 2008-05-21  Bruno Haible  <bruno@clisp.org>
41489
41490         Add reference doc about ACLs.
41491         * doc/acl-resources.txt: New file.
41492         * doc/acl-cygwin.txt: New file.
41493
41494 2008-05-21  Bruno Haible  <bruno@clisp.org>
41495
41496         Avoid one more warning from gcc.
41497         * lib/vasnprintf.c (IF_LINT): Update comments.
41498         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41499
41500 2008-05-21  Jim Meyering  <meyering@redhat.com>
41501
41502         avoid a warning from gcc
41503         * lib/vasnprintf.c (IF_LINT): Define.
41504         (scale10_round_decimal_long_double):
41505         Use it to avoid a "may be used uninitialized" warning.
41506         (scale10_round_decimal_double): Likewise.
41507
41508 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41509
41510         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41511         declared.
41512
41513 2008-05-20  Bruno Haible  <bruno@clisp.org>
41514
41515         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41516         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41517
41518 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41519
41520         * modules/memcmp-tests: New file.
41521         * tests/test-memcmp.c: New file.
41522
41523 2008-05-19  Bruno Haible  <bruno@clisp.org>
41524
41525         * modules/propername (Notice, configure.ac): Put quoted "..." into
41526         --keyword option.
41527         * lib/propername.h: Update comments accordingly.
41528         Reported by Eric Blake.
41529
41530 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41531
41532         * modules/getpass-gnu (Depends-on): Add fseeko.
41533
41534 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41535
41536         * modules/base64-tests: New file.
41537
41538 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41539
41540         * lib/base64.c (base64_decode_ctx): If a decode context structure
41541         was passed in use it to ignore newlines.  If a context structure
41542         was _not_ passed in, continue to treat newlines as garbage (this
41543         is the historical behavior).  Formerly base64_decode.
41544         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41545         takes a decode context structure.
41546         * lib/base64.h (base64_decode): Macro for four-argument calls.
41547         (base64_decode_alloc): Likewise.
41548         * lib/base64.c (base64_decode_ctx): If a decode context structure
41549         was passed in use it to ignore newlines.  If a context structure
41550         was _not_ passed in, continue to treat newlines as garbage (this
41551         is the historical behavior).  Formerly base64_decode.
41552         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41553         takes a decode context structure.
41554         * lib/base64.h (base64_decode): Macro for four-argument calls.
41555         (base64_decode_alloc): Likewise.
41556
41557 2008-05-19  Jim Meyering  <meyering@redhat.com>
41558
41559         avoid a warning from gcc
41560         * lib/trim.c (IF_LINT): Define.
41561         (trim2): Use it to avoid a "may be used uninitialized" warning.
41562
41563         Fix doc typo.
41564         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41565
41566 2008-05-19  Bruno Haible  <bruno@clisp.org>
41567
41568         * doc/glibc-functions/getpass.texi: Document limits of other
41569         implementations.
41570
41571 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41572             Bruno Haible <bruno@clisp.org>
41573
41574         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41575
41576 2008-05-18  Bruno Haible  <bruno@clisp.org>
41577
41578         * modules/propername: New file, from GNU gettext.
41579         * lib/propername.h: New file, from GNU gettext.
41580         * lib/propername.c: New file, from GNU gettext.
41581         * MODULES.html.sh (Internationalization functions): Add propername.
41582
41583 2008-05-16  Jim Meyering  <meyering@redhat.com>
41584             Bruno Haible  <bruno@clisp.org>
41585
41586         Avoid some warnings from "gcc -Wshadow".
41587         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41588
41589 2008-05-15  Eric Blake  <ebb9@byu.net>
41590
41591         Extend previous patch to cygwin 1.7.0.
41592         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41593         fast implementation in cygwin >= 1.7.0.
41594         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41596
41597 2008-05-15  Bruno Haible  <bruno@clisp.org>
41598
41599         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41600         implementation in glibc >= 2.9.
41601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41603
41604 2008-05-15  Bruno Haible  <bruno@clisp.org>
41605
41606         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41607         (Unicode string functions): Add unilbrk/*.
41608         Reported by Karl Berry.
41609
41610 2008-05-15  Eric Blake  <ebb9@byu.net>
41611
41612         Fix violation of <stdbool.h> replacement in regex.
41613         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41614         * lib/regexec.c (re_search_internal): Likewise.
41615         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41616
41617 2008-05-15  Jim Meyering  <meyering@redhat.com>
41618
41619         avoid distracting test output when git or cvs is not found
41620         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41621         * tests/test-vc-list-files-git.sh: Likewise.
41622
41623 2008-05-15  Eric Blake  <ebb9@byu.net>
41624
41625         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41626         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41627         glibc version.
41628         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41629         * doc/posix-functions/strstr.texi (strstr): Likewise.
41630         * lib/str-two-way.h (MAX): Sychronize with glibc.
41631
41632 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41633
41634         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41635         opr.ctx_type.
41636         (calc_first): Initialize constraint field.
41637         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41638         Fix grammar.
41639         (duplicate_node): Merge constraint field for all node types.
41640         (calc_eclosure_iter): Look at constraint field for all node types.
41641         * lib/regex_internal.c (create_cd_newstate): Don't look at
41642         opr.ctx_type.
41643
41644 2008-05-14  Bruno Haible  <bruno@clisp.org>
41645
41646         Help GCC to do better code generation.
41647         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41648         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41649         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41650         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41651         Declare with attribute 'malloc' if supported.
41652
41653 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41654
41655         use "echo STR|wc -c" rather than unportable "expr length STR"
41656         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41657         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41658
41659 2008-05-14  Jim Meyering  <meyering@redhat.com>
41660
41661         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41662         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41663         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41664         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41665         via Collin Lasse.
41666
41667 2008-05-14  Eric Blake  <ebb9@byu.net>
41668
41669         Avoid quadratic growth in gl_LIBSOURCES.
41670         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41671         Suggested by Bruno Haible.
41672
41673         Test xmemdup0.
41674         * modules/xmemdup0-tests: New file.
41675         * tests/test-xmemdup0.c: Likewise.
41676
41677 2008-05-13  Eric Blake  <ebb9@byu.net>
41678
41679         Split xmemdup0 into its own module.
41680         * modules/xmemdup0: New file.
41681         * lib/xmemdup0.h: Likewise.
41682         * lib/xmemdup0.c: Likewise.
41683         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41684         * lib/xalloc.h (xmemdup0): Remove.
41685         * lib/xmalloc.c (xmemdup0): Likewise.
41686
41687 2008-05-13  Eric Blake  <ebb9@byu.net>
41688             Bruno Haible  <bruno@clisp.org>
41689
41690         Reduce number of forks required during autoconf.
41691         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41692         and gl_LIBSOURCES_DIR.
41693         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41694         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41695         m4_syscmd per file.
41696         <m4_foreach_w>: Move...
41697         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41698
41699 2008-05-13  Eric Blake  <ebb9@byu.net>
41700
41701         * gnulib-tool: Fix various comment typos.
41702
41703 2008-05-12  Bruno Haible  <bruno@clisp.org>
41704
41705         Tailor the linebreaking algorithm.
41706         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41707
41708 2008-05-12  Bruno Haible  <bruno@clisp.org>
41709
41710         Update to Unicode 5.0.0.
41711         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41712         LBP_JV, LBP_JT. Redistribute values.
41713         (unilbrk_table): Change size.
41714         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41715         Unicode TR#14 rev. 22.
41716         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41717         LBP_JV, LBP_JT. Redistribute values.
41718         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41719         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41720         Update.
41721         * lib/unilbrk/lbrkprop1.h: Regenerated.
41722         * lib/unilbrk/lbrkprop2.h: Regenerated.
41723         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41724         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41725         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41726         Likewise.
41727         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41728         Likewise.
41729         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41730         result.
41731         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41732         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41733         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41734         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41735         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41736         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41737
41738 2008-05-11  Bruno Haible  <bruno@clisp.org>
41739
41740         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41741
41742 2008-05-11  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41745         * modules/unilbrk/gen-lbrk: New file.
41746
41747 2008-05-11  Bruno Haible  <bruno@clisp.org>
41748
41749         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41750         * m4/sha512.m4 (gl_SHA512): Likewise.
41751
41752 2008-05-11  Jim Meyering  <meyering@redhat.com>
41753
41754         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41755         * modules/crypto/sha256: New file.
41756         * modules/crypto/sha512: Likewise.
41757         * lib/sha256.c: Likewise.
41758         * lib/sha256.h: Likewise.
41759         * lib/sha512.c: Likewise.
41760         * lib/sha512.h: Likewise.
41761         * lib/u64.h: Likewise.
41762         * m4/sha256.m4: Likewise.
41763         * m4/sha512.m4: Likewise.
41764         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41765
41766 2008-05-10  Bruno Haible  <bruno@clisp.org>
41767
41768         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41769         (Input/Output <stdio.h>): Add xprintf.
41770         (Signal handling <signal.h>): Add strsignal.
41771         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41772         (Core language properties): Add func.
41773         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41774         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41775         strings.
41776         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41777         (Input/output): New section.
41778         (File system functions): Add openat-die, stat-macros.
41779         (Networking functions): Add sockets.
41780         (Unicode string functions): Add unictype/*.
41781         (Support for building libraries and executables): Add gperf.
41782         (Support for building documentation): Add agpl-3.0.
41783         (Misc): Add nocrash.
41784
41785 2008-05-10  Bruno Haible  <bruno@clisp.org>
41786
41787         * modules/unictype/gen-ctype: New file.
41788
41789 2008-05-10  Jim Meyering  <meyering@redhat.com>
41790
41791         Make chdir-safer.c more efficient on a system with no symlinks.
41792         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41793         also if ELOOP is zero.  Suggested by Bruno Haible.
41794
41795         Make chdir-safer.c slightly safer.
41796         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41797         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41798
41799         Avoid compile failure on systems without ELOOP (like mingw).
41800         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41801         Reported by Bruno Haible.
41802
41803 2008-05-10  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41806         (is_utf8_encoding): Use a case-insensitive comparison.
41807         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41808         streq.
41809
41810 2008-05-10  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41813         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41814         * lib/unilbrk/ulc-common.h (iconv_string_length,
41815         iconv_string_keeping_offsets): Remove declarations.
41816         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41817         Don't include <iconv.h>, streq.h, xsize.h.
41818         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41819         conversion.
41820         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41821         <iconv.h>, streq.h, xsize.h.
41822         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41823         conversion.
41824         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41825         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41826         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41827         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41828
41829 2008-05-10  Bruno Haible  <bruno@clisp.org>
41830
41831         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41832         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41833
41834         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41835         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41836
41837         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41838         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41839
41840         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41841         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41842
41843         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41844         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41845
41846         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41847         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41848
41849         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41850         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41851
41852         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41853         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41854
41855 2008-05-10  Bruno Haible  <bruno@clisp.org>
41856
41857         Split up 'linebreak' module.
41858         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41859         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41860         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41861         modifications.
41862         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41863         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41864         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41865         lib/linebreak.c.
41866         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41867         lib/linebreak.c.
41868         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41869         lib/linebreak.c.
41870         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41871         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41872         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41873         lib/linebreak.c.
41874         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41875         lib/linebreak.c.
41876         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41877         lib/linebreak.c.
41878         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41879         lib/linebreak.c.
41880         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41881         lib/linebreak.c.
41882         * modules/unilbrk/base: New file.
41883         * modules/unilbrk/tables: New file.
41884         * modules/unilbrk/u8-possible-linebreaks: New file.
41885         * modules/unilbrk/u16-possible-linebreaks: New file.
41886         * modules/unilbrk/u32-possible-linebreaks: New file.
41887         * modules/unilbrk/ulc-common: New file.
41888         * modules/unilbrk/ulc-possible-linebreaks: New file.
41889         * modules/unilbrk/u8-width-linebreaks: New file.
41890         * modules/unilbrk/u16-width-linebreaks: New file.
41891         * modules/unilbrk/u32-width-linebreaks: New file.
41892         * modules/unilbrk/ulc-width-linebreaks: New file.
41893         * lib/linebreak.h: Remove file.
41894         * lib/linebreak.c: Remove file.
41895         * m4/linebreak.m4: Remove file.
41896         * modules/linebreak: Remove file.
41897         * NEWS: Mention the changes.
41898
41899 2008-05-09  Eric Blake  <ebb9@byu.net>
41900
41901         Add xmemdup0.
41902         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41903         implementation.
41904         * lib/xmalloc.c (xmemdup0): New C implementation.
41905
41906 2008-05-08  Bruno Haible  <bruno@clisp.org>
41907
41908         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41909
41910 2008-05-07  Eric Blake  <ebb9@byu.net>
41911
41912         Support cross-compilation of <wctype.h>.
41913         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41914         AC_CACHE_CHECK.
41915
41916 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41917
41918         * build-aux/vc-list-files: Add support for bzr.
41919
41920 2008-05-03  Jim Meyering  <meyering@redhat.com>
41921
41922         avoid failed assertion with tight malloc
41923         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41924
41925 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41926
41927         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41928         are needed from arpa/inet.h.
41929         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41930         Reported by Bruno Haible.
41931
41932 2008-05-02  Jim Meyering  <meyering@redhat.com>
41933
41934         avoid compilation error on FreeBSD 6
41935         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41936
41937 2008-05-01  Jim Meyering  <meyering@redhat.com>
41938
41939         useless-if-before-free: correct --help's exit status description
41940         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41941         for one or more matches, etc.  Reported by Bruno Haible.
41942
41943         vc-list-files: make the stand-alone gnulib test work
41944         * modules/vc-list-files-tests (configure.ac):
41945         Define and AC_SUBST abs_aux_dir.
41946         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41947         $(abs_top_srcdir) to each script and having each of them
41948         duplicate the work of setting PATH, set PATH here, using
41949         the new variable, abs_aux_dir instead.
41950         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41951         * tests/test-vc-list-files-git.sh: Likewise.
41952         Reported by Bruno Haible.
41953
41954 2008-05-01  Bruno Haible  <bruno@clisp.org>
41955
41956         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41957         reallocation. Rename 'done' to 'found_delimiter'.
41958
41959 2008-05-01  Jim Meyering  <meyering@redhat.com>
41960
41961         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41962         * build-aux/vc-list-files: Use `...`, not $(...).
41963
41964 2008-04-30  Jim Meyering  <meyering@redhat.com>
41965
41966         add tests for vc-list-files
41967         * modules/vc-list-files-tests: New module.
41968         * tests/test-vc-list-files-cvs.sh: New file.
41969         * tests/test-vc-list-files-git.sh: New file.
41970
41971         avoid a warning from gcc
41972         * lib/getndelim2.c (IF_LINT): Define.
41973         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41974
41975         vc-list-files: work properly with build-aux/cvsu, too
41976         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41977         to all cvs-based clauses.
41978
41979         vc-list-files: work properly in the CVS+awk case, too
41980         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41981
41982         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41983         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41984         take more than one file argument, so .  Add quotes, just in case $dir
41985         ever contains a shell meta-character.  Prompted by Soren Hansen in
41986         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41987
41988 2008-04-29  Eric Blake  <ebb9@byu.net>
41989
41990         Optimize getndelim2 to use block operations when possible.
41991         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41992         freadseek, and memchr2.
41993         * lib/getndelim2.c (getndelim2): Use them for block reads.
41994
41995 2008-04-29  Bruno Haible  <bruno@clisp.org>
41996
41997         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41998         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41999         * modules/inet_ntop (Depends-on): Add extensions.
42000         * modules/inet_pton (Depends-on): Likewise.
42001         Reported by Simon Josefsson.
42002
42003 2008-04-29  Jim Meyering  <meyering@redhat.com>
42004
42005         When the is more than one match in a block, match all of them.
42006         * build-aux/useless-if-before-free: Iterate through each block
42007         until there are no more matches.
42008
42009         Fix broken useless-if-before-free script.
42010         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42011         the expression to match cast of argument to free-like function.
42012
42013 2008-04-29  Eric Blake  <ebb9@byu.net>
42014
42015         Use new header.
42016         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42017
42018 2008-04-29  Jim Meyering  <meyering@redhat.com>
42019
42020         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42021         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42022         by gnulib to exist and to declare e.g., inet_ntop.
42023         Don't include "inet_ntop.h", now removed.
42024
42025         * m4/arpa_inet_h.m4: Remove trailing blanks.
42026
42027 2008-04-29  Eric Blake  <ebb9@byu.net>
42028
42029         Silence valgrind on safe reads beyond potential array bounds.
42030         * lib/rawmemchr.valgrind: New file.
42031         * lib/strchrnul.valgrind: Likewise.
42032         * modules/rawmemchr (Files): Distribute new file.
42033         * modules/strchrnul (Files): Likewise.
42034         Suggested by Bruno Haible.
42035
42036 2008-04-29  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42039         (inet_ntop, inet_pton): Change portability warning's wording.
42040         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42041         Invoke gl_CHECK_NEXT_HEADERS.
42042         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42043         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42044         set ARPA_INET_H.
42045         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42046         * modules/arpa_inet (Description): No longer only for systems that
42047         lack it.
42048         (Depends-on): Add include_next.
42049         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42050         HAVE_ARPA_INET_H.
42051
42052 2008-04-29  Jim Meyering  <meyering@redhat.com>
42053
42054         * modules/mkdir (License): Re-license as LGPLv2+.
42055
42056 2008-04-29  Bruno Haible  <bruno@clisp.org>
42057
42058         * modules/rawmemchr (Maintainer): Set to Eric.
42059         * modules/strchrnul (Maintainer): Likewise.
42060
42061 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42062
42063         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42064         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42065
42066         * modules/arpa_inet (arpa/inet.h): Use them.
42067
42068 2008-04-28  Eric Blake  <ebb9@byu.net>
42069
42070         Test getndelim2.
42071         * modules/getndelim2-tests: New file.
42072         * tests/test-getndelim2.c: Likewise.
42073         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42074         stream.
42075         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42076
42077         * MODULES.html.sh: Document new module.
42078
42079 2008-04-20  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/c-stack.c (die): Use raise.
42082         * modules/c-stack (Depends-on): Add raise.
42083
42084 2008-04-28  Bruno Haible  <bruno@clisp.org>
42085
42086         Expect rpmatch to be declared.
42087         * lib/yesno.c (rpmatch): Remove declaration.
42088
42089         Declare rpmatch.
42090         * lib/stdlib.in.h (rpmatch): New declaration.
42091         * lib/rpmatch.c: Include <stdlib.h> first.
42092         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42093         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42095         HAVE_RPMATCH.
42096         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42098         (Include): Set to <stdlib.h>.
42099         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42100         HAVE_RPMATCH.
42101         * NEWS: Document the change.
42102
42103 2008-04-28  Bruno Haible  <bruno@clisp.org>
42104
42105         Change rpmatch to use nl_langinfo when appropriate.
42106         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42107         (N_): New macro.
42108         (localized_pattern): New function/macro.
42109         (try): Remove match, nomatch arguments. Copy the pattern into safe
42110         memory before caching it.
42111         (rpmatch): Use localized_pattern. Add translator comments.
42112         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42113         Suggested by Eric Blake.
42114         * modules/rpmatch (Depends-on): Add stdbool.
42115
42116 2008-04-28  Eric Blake  <ebb9@byu.net>
42117
42118         Add rawmemchr module, matching glibc.
42119         * modules/string (Makefile.am): New indicator.
42120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42121         * lib/string.in.h (rawmemchr): Declare when appropriate.
42122         * modules/rawmemchr: New file.
42123         * m4/rawmemchr.m4: Likewise.
42124         * lib/rawmemchr.c: Likewise.
42125         * modules/rawmemchr-tests: Likewise.
42126         * tests/test-rawmemchr.c: Likewise.
42127         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42128         module.
42129         * modules/strchrnul (Depends-on): Add rawmemchr.
42130         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42131
42132         Whitespace cleanup.
42133         * tests/test-strchrnul.c: Reindent.
42134         * lib/strchrnul.c: Likewise.
42135
42136         Optimize and test strchrnul.
42137         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42138         * modules/strchrnul-tests: New file.
42139         * tests/test-strchrnul.c: Likewise.
42140
42141         Remove intprops dependency.
42142         * modules/memchr (Depends-on): Remove intprops.
42143         * modules/memrchr (Depends-on): Likewise.
42144         * modules/memchr2 (Depends-on): Likewise.
42145         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42146         * lib/memrchr.c (__memrchr): Likewise.
42147         * lib/memrchr2.c (memchr2): Likewise.
42148         Reported by Simon Josefsson.
42149
42150 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42151
42152         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42153         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42154
42155 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42156
42157         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42158
42159         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42160
42161         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42162
42163         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42164         declarations.
42165         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42166
42167         * m4/inet_pton.m4: Don't check for header files.
42168
42169         * m4/inet_ntop.m4: Don't check for header files.
42170
42171 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42172
42173         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42174         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42175         trigger for cygwin).
42176         Reported by Bruno Haible  <bruno@clisp.org>.
42177
42178 2008-04-28  Bruno Haible  <bruno@clisp.org>
42179
42180         * doc/posix-functions/strdup.texi: Mention mingw problem.
42181
42182 2008-04-27  Bruno Haible  <bruno@clisp.org>
42183
42184         * modules/stat-time-tests (Depends-on): Add sleep.
42185         * tests/test-stat-time.c (force_unlink): New function.
42186         (cleanup): Use it.
42187         (test_mtime): Remove the ctime related tests.
42188         (test_ctime): New function, containing the ctime related tests.
42189         (main): Call test_ctime, except on native Windows platforms.
42190
42191 2008-04-27  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/rpmatch.c (rpmatch): Add some comments.
42194         Reported by James Youngman <jay@gnu.org>.
42195
42196 2008-04-27  Bruno Haible  <bruno@clisp.org>
42197
42198         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42199         quiet NaNs.
42200
42201 2008-04-27  Bruno Haible  <bruno@clisp.org>
42202
42203         Make test-yesno.sh work on mingw.
42204         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42205         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42206         (main): Set stdin to binary mode.
42207         * modules/yesno-tests (Depends-on): Add binary-io.
42208
42209 2008-04-27  Bruno Haible  <bruno@clisp.org>
42210
42211         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42212         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42213         argument that lie outside the IEEE 854 domain.
42214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42215         (gl_ISFINITE): Use it.
42216         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42217
42218 2008-04-27  Bruno Haible  <bruno@clisp.org>
42219
42220         Allow local renaming in config.h.
42221         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42222
42223 2008-04-27  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/memchr.c (__memchr): Change type of 'i'.
42226         * lib/memchr2.c (memchr2): Likewise.
42227
42228 2008-04-26  Eric Blake  <ebb9@byu.net>
42229         and Bruno Haible  <bruno@clisp.org>
42230
42231         Optimize and test memrchr.
42232         * modules/memrchr (Depends-on): Add intprops.
42233         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42234         * modules/memrchr-tests: New file.
42235         * tests/test-memrchr.c: New file.
42236
42237 2008-04-26  Bruno Haible  <bruno@clisp.org>
42238
42239         Add tentative support for DragonFly BSD.
42240         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42241         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42242         fp.
42243         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42244         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42245         * lib/fpurge.c (fpurge): Likewise.
42246         * lib/freadable.c (freaadable): Likewise.
42247         * lib/freadahead.c (freadahead): Likewise.
42248         * lib/freading.c (freading): Likewise.
42249         * lib/freadptr.c (freadptr): Likewise.
42250         * lib/freadseek.c (freadptrinc): Likewise.
42251         * lib/fseeko.c (fseeko): Likewise.
42252         * lib/fseterr.c (fseterr): Likewise.
42253         * lib/fwritable.c (fwritable): Likewise.
42254         * lib/fwriting.c (fwriting): Likewise.
42255
42256 2008-04-26  Bruno Haible  <bruno@clisp.org>
42257
42258         * lib/stdio-impl.h: New file.
42259         * lib/fbufmode.c: Include stdio-impl.h.
42260         (fbufmode): Use fp_, remove redundant #defines.
42261         * lib/fflush.c: Include stdio-impl.h.
42262         (clear_ungetc_buffer): Remove redundant #defines.
42263         * lib/fpurge.c: Include stdio-impl.h.
42264         (fpurge): Remove redundant #defines.
42265         * lib/freadable.c: Include stdio-impl.h.
42266         (freadable): Remove redundant #defines.
42267         * lib/freadahead.c: Include stdio-impl.h.
42268         (freadahead): Remove redundant #defines.
42269         * lib/freading.c: Include stdio-impl.h.
42270         (freading): Remove redundant #defines.
42271         * lib/freadptr.c: Include stdio-impl.h.
42272         (freadptr): Remove redundant #defines.
42273         * lib/freadseek.c: Include stdio-impl.h.
42274         (freadptrinc): Remove redundant #defines.
42275         * lib/fseeko.c: Include stdio-impl.h.
42276         (rpl_fseeko): Remove redundant #defines.
42277         * lib/fseterr.c: Include stdio-impl.h.
42278         (fseterr): Remove redundant #defines.
42279         * lib/fwritable.c: Include stdio-impl.h.
42280         (fwritable: Remove redundant #defines.
42281         * lib/fwriting.c: Include stdio-impl.h.
42282         (fwriting): Remove redundant #defines.
42283         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42284         * modules/fflush (Files): Likewise.
42285         * modules/fpurge (Files): Likewise.
42286         * modules/freadable (Files): Likewise.
42287         * modules/freadahead (Files): Likewise.
42288         * modules/freading (Files): Likewise.
42289         * modules/freadptr (Files): Likewise.
42290         * modules/freadseek (Files): Likewise.
42291         * modules/fseeko (Files): Likewise.
42292         * modules/fseterr (Files): Likewise.
42293         * modules/fwritable (Files): Likewise.
42294         * modules/fwriting (Files): Likewise.
42295
42296 2008-04-26  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42299         restore_seek_optimization, update_fpos_cache): New functions, extracted
42300         from rpl_fflush.
42301         (rpl_fflush): Use them.
42302         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42303         (gl_REPLACE_FFLUSH): Use it.
42304
42305 2008-04-26  Bruno Haible  <bruno@clisp.org>
42306
42307         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42308         on Solaris.
42309         * tests/test-xstrtoimax.sh: Likewise.
42310         * tests/test-xstrtoumax.sh: Likewise.
42311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42312
42313 2008-04-26  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/memchr-tests: New file.
42316         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42317
42318 2008-04-26  Eric Blake  <ebb9@byu.net>
42319             Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/memchr.c: Include intprops.h.
42322         (__memchr): Optimize parallel detection of matching bytes. Rename local
42323         variables. Add explanatory comments.
42324
42325 2008-04-26  Bruno Haible  <bruno@clisp.org>
42326
42327         Fix module 'memchr', broken since 2000-10-28.
42328         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42329
42330 2008-04-26  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42333         comments.
42334
42335 2008-04-25  Eric Blake  <ebb9@byu.net>
42336
42337         Use native fstatat on cygwin 1.7.0.
42338         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42339         first.
42340
42341 2008-04-23  Eric Blake  <ebb9@byu.net>
42342
42343         Improve memchr2 performance.
42344         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42345         NUL bytes.
42346         * modules/memchr2 (Depends-on): Use intprops.h.
42347
42348 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42349
42350         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42351         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42352         <blp@cs.stanford.edu>.
42353
42354 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42355
42356         * lib/arpa_inet.in.h: New file.
42357
42358         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42359         (Makefile.am): Sed in substitute header file.
42360
42361         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42362         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42363
42364         * modules/inet_ntop (configure.ac): Use
42365         gl_ARPA_INET_MODULE_INDICATOR.
42366
42367         * modules/inet_pton (configure.ac): Use
42368         gl_ARPA_INET_MODULE_INDICATOR.
42369
42370 2008-04-22  Jim Meyering  <meyering@redhat.com>
42371
42372         * modules/verify (License): Re-license as LGPLv2+.
42373
42374 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42375
42376         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42377         parameter to void* as per POSIX standard (MinGW uses char*).
42378
42379 2008-04-21  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42382         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42383         Define to replacements if REPLACE_ISWCNTRL is 1.
42384         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42385         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42386         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42387         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42388         what it fixes.
42389         * doc/posix-functions/iswalpha.texi: Likewise.
42390         * doc/posix-functions/iswblank.texi: Likewise.
42391         * doc/posix-functions/iswcntrl.texi: Likewise.
42392         * doc/posix-functions/iswdigit.texi: Likewise.
42393         * doc/posix-functions/iswgraph.texi: Likewise.
42394         * doc/posix-functions/iswlower.texi: Likewise.
42395         * doc/posix-functions/iswprint.texi: Likewise.
42396         * doc/posix-functions/iswpunct.texi: Likewise.
42397         * doc/posix-functions/iswspace.texi: Likewise.
42398         * doc/posix-functions/iswupper.texi: Likewise.
42399         * doc/posix-functions/iswxdigit.texi: Likewise.
42400         Reported by Alain Guibert.
42401
42402 2008-04-21  Bruno Haible  <bruno@clisp.org>
42403
42404         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42405         Patch by Alain Guibert.
42406
42407 2008-04-21  Bruno Haible  <bruno@clisp.org>
42408
42409         Fix test failures on mingw.
42410         * tests/test-xstrtol.c (print_no_progname): New function.
42411         (main): Install it in error_print_progname hook.
42412         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42413         * tests/test-xstrtoimax.sh: Likewise.
42414         * tests/test-xstrtoumax.sh: Likewise.
42415
42416 2008-04-21  Bruno Haible  <bruno@clisp.org>
42417
42418         Fix test failure on mingw.
42419         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42420
42421 2008-04-21  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42424         Actually assign a value.
42425
42426 2008-04-20  Bruno Haible  <bruno@clisp.org>
42427
42428         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42429         take 2.
42430         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42431         'canonicalize-lgpl' module is also used.
42432         * lib/canonicalize-lgpl.c: Undo last change.
42433         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42434
42435 2008-04-20  Bruno Haible  <bruno@clisp.org>
42436
42437         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42438         config.h. Provide _mkdir based fallback for mingw.
42439         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42440         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42441         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42442         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42443         rather than defining mkdir in config.h.
42444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42445         (gl_SYS_STAT_H_DEFAULTS): New macro.
42446         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42447         HAVE_IO_H any more.
42448         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42449         HAVE_DECL_MKDIR and HAVE_IO_H.
42450
42451 2008-04-20  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/isapipe.c: Port to native Windows platforms.
42454
42455 2008-04-20  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42458
42459 2008-04-21  Eric Blake  <ebb9@byu.net>
42460
42461         Work around preprocessors that don't handle UINTMAX_MAX.
42462         * lib/memchr2.c (memchr2): Avoid embedded #if.
42463         Reported by Alain Guibert, fix suggested by Bruno Haible.
42464
42465 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42466
42467         * doc/posix-functions/strftime.texi (strftime): Explain better
42468         Windows incompatibility.  Suggested by Micah Cowan
42469         <micah@cowan.name>.
42470
42471 2008-04-20  Bruno Haible  <bruno@clisp.org>
42472
42473         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42474         unistr/u8-mblen.
42475
42476 2008-04-20  Bruno Haible  <bruno@clisp.org>
42477
42478         Fix test failure on platforms with non-GNU iconv.
42479         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42480         (U_TO_U8): Use it, rather than u16_to_u8.
42481         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42482         units at the end of the input string.
42483         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42484
42485 2008-04-20  Bruno Haible  <bruno@clisp.org>
42486
42487         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42488         when the resulting length is 0.
42489         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42490
42491 2008-04-20  Bruno Haible  <bruno@clisp.org>
42492
42493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42494         works.
42495         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42496
42497 2008-04-20  Bruno Haible  <bruno@clisp.org>
42498
42499         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42500         * modules/tsearch-tests (configure.ac): Test for initstate function.
42501
42502 2008-04-20  Bruno Haible  <bruno@clisp.org>
42503
42504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42505         for nlink_t if missing.
42506         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42507
42508 2008-04-19  Bruno Haible  <bruno@clisp.org>
42509
42510         Work around snprintf bug on Linux libc5.
42511         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42513         gl_SNPRINTF_SIZE1.
42514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42515         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42516         that test failed.
42517         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42518         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42519         * modules/snprintf (Files): Add m4/printf.m4.
42520         * modules/vsnprintf (Files): Likewise.
42521         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42522         * doc/posix-functions/vsnprintf.texi: Likewise.
42523
42524 2008-04-19  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42527         from 0.0058 to less than 10^-7.
42528
42529 2008-04-19  Bruno Haible  <bruno@clisp.org>
42530
42531         Fix rounding when a precision is given.
42532         * lib/vasnprintf.c (is_borderline): New function.
42533         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42534         9...9x.
42535         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42536         %e, %g.
42537         * tests/test-vasprintf-posix.c (test_function): Likewise.
42538         * tests/test-snprintf-posix.h (test_function): Likewise.
42539         * tests/test-sprintf-posix.h (test_function): Likewise.
42540         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42541         * tests/test-printf-posix.h (test_function): Likewise.
42542         * tests/test-printf-posix.output: Update.
42543         Reported by John Darrington <john@darrington.wattle.id.au> via
42544         Ben Pfaff <blp@cs.stanford.edu>.
42545
42546 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42547
42548         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42549         Suggested by Bruno Haible <bruno@clisp.org>.
42550
42551 2008-04-17  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42554         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42555         implementation.
42556         Patch by Bruce Merry <bmerry@gmail.com>.
42557
42558 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42559
42560         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42561         doesn't work under Windows.
42562
42563 2008-04-16  Bruno Haible  <bruno@clisp.org>
42564
42565         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42566         New macros.
42567         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42568         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42569         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42570         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42571         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42572         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42573         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42574         macros.
42575         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42576         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42577         Northern Sotho, Uighur.
42578
42579 2008-04-16  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42582         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42583         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42584         Reported by Daniel Bergström <daniel@octocode.com>.
42585
42586 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42587             Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42590         function.
42591         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42592         New functions, mostly extracted from gl_locale_name_default.
42593         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42594
42595 2008-04-16  Eric Blake  <ebb9@byu.net>
42596
42597         Adjust strtod detection to catch glibc 2.7 bug.
42598         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42599         Reported by John Gatewood Ham.
42600
42601 2008-04-16  Bruno Haible  <bruno@clisp.org>
42602
42603         Add tentative support for Linux libc5.
42604         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42605         * lib/fpurge.c (fpurge): Likewise.
42606         * lib/freadable.c (freadable): Likewise.
42607         * lib/freadahead.c (freadahead): Likewise.
42608         * lib/freading.c (freading): Likewise.
42609         * lib/freadptr.c (freadptr): Likewise.
42610         * lib/freadseek.c (freadptrinc): Likewise.
42611         * lib/fseeko.c (rpl_fseeko): Likewise.
42612         * lib/fseterr.c (fseterr): Likewise.
42613         * lib/fwritable.c (fwritable): Likewise.
42614         * lib/fwriting.c (fwriting): Likewise.
42615         Reported by Alain Guibert <alguibert+bts@free.fr>.
42616
42617 2008-04-15  Bruno Haible  <bruno@clisp.org>
42618
42619         * modules/mathl (configure.ac): Define module indicator.
42620
42621 2008-04-15  Bruno Haible  <bruno@clisp.org>
42622
42623         * lib/logl.c (logl): Remove unused variables.
42624
42625 2008-04-15  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42628         fails.
42629
42630 2008-04-15  Bruno Haible  <bruno@clisp.org>
42631
42632         * lib/trim.c (trim2): Fix argument of isspace() macro.
42633
42634 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42635
42636         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42637         to 0.
42638         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42639
42640 2008-04-14  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42643         AC_LANG_PROGRAM argument.
42644         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42645         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42647         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42648         * m4/math_h.m4 (gl_MATH_H): Likewise.
42649         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42651         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42652         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42653         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42654         * m4/regex.m4 (gl_REGEX): Likewise.
42655         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42656         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42658         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42659         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42660         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42663
42664 2008-04-14  Jim Meyering  <meyering@redhat.com>
42665
42666         test-strtod: fix typos: s/abs/fabs/
42667         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42668
42669 2008-04-13  Bruno Haible  <bruno@clisp.org>
42670
42671         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42672         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42673         module is also used and while not building the reloc-wrapper.
42674
42675 2008-04-13  Bruno Haible  <bruno@clisp.org>
42676
42677         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42678
42679 2008-04-13  Bruno Haible  <bruno@clisp.org>
42680
42681         Fix AIX compilation failure introduced on 2008-04-02.
42682         * tests/test-frexp.c (exp): Undefine before redefining.
42683         * tests/test-frexpl.c (exp): Likewise.
42684
42685 2008-04-13  Bruno Haible  <bruno@clisp.org>
42686
42687         Work around a HP-UX stdio bug.
42688         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42689         * tests/test-ftello.c (main): Likewise.
42690         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42691         * doc/posix-functions/ftello.texi: Likewise.
42692
42693 2008-04-13  Bruno Haible  <bruno@clisp.org>
42694
42695         Make test-signbit pass on HP-UX/hppa.
42696         * tests/test-signbit.c (minus_zerol): New variable.
42697         (test_signbitl): Use it.
42698
42699 2008-04-13  Bruno Haible  <bruno@clisp.org>
42700
42701         Make truncl work on OSF/1 4.0.
42702         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42703         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42704         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42706         HAVE_DECL_TRUNCL.
42707         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42708         HAVE_DECL_TRUNCL.
42709         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42710
42711 2008-04-13  Bruno Haible  <bruno@clisp.org>
42712
42713         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42714
42715 2008-04-13  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42718         expression, so as to avoid HP-UX 11 cc compiler bug.
42719
42720 2008-04-13  Bruno Haible  <bruno@clisp.org>
42721
42722         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42723
42724 2008-04-13  Bruno Haible  <bruno@clisp.org>
42725
42726         * lib/git-merge-changelog.c: Remove empty declaration outside of
42727         functions.
42728
42729 2008-04-13  Bruno Haible  <bruno@clisp.org>
42730
42731         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42732
42733 2008-04-13  Bruno Haible  <bruno@clisp.org>
42734
42735         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42736         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42737         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42738         also if it exists but lacks definitions of the SHUT_* macros.
42739         * modules/sys_socket (Description): Update.
42740         Reported by Elbert Pol <e.pol@chello.nl>.
42741
42742 2008-04-13  Bruno Haible  <bruno@clisp.org>
42743
42744         * lib/localcharset.c (OS2): Don't redefine if already defined.
42745         Reported by Elbert Pol <e.pol@chello.nl>.
42746
42747 2008-04-13  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/binary-io.h [__EMX__]: Include <io.h>.
42750         Reported by Elbert Pol <e.pol@chello.nl>.
42751
42752 2008-04-12  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/fpucw.h: Enable the definitions also for x86_64.
42755         Needed for NetBSD/x86_64.
42756         Reported by Thomas Klausner <tk@giga.or.at>.
42757
42758 2008-04-12  Bruno Haible  <bruno@clisp.org>
42759
42760         * tests/test-strtod.c: Include isnand.h.
42761         (main): Use isnand instead of isnan.
42762         Reported by Jim Meyering.
42763
42764 2008-04-12  Bruno Haible  <bruno@clisp.org>
42765
42766         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42767         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42768
42769 2008-04-12  Jim Meyering  <meyering@redhat.com>
42770
42771         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42772
42773 2008-04-12  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42776         Reported by Elbert Pol <e.pol@chello.nl>.
42777
42778 2008-04-12  Eric Blake  <ebb9@byu.net>
42779
42780         Work around Solaris 10 math.h bug.
42781         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42782         (gl_MATH_H_DEFAULTS): Set up default.
42783         * modules/math (Makefile.am): Replace new indicators.
42784         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42785         * tests/test-math.c (main): Test this.
42786         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42787         * doc/posix-headers/math.texi (math.h): Mention bug.
42788         Reported by Nelson H. F. Beebe and Jim Meyering.
42789
42790 2008-04-11  Bruno Haible  <bruno@clisp.org>
42791
42792         Adapt to future versions of Apple GCC.
42793         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42794         Reported by Peter O'Gorman <peter@pogma.com>.
42795
42796 2008-04-11  Bruno Haible  <bruno@clisp.org>
42797
42798         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42799
42800 2008-04-11  Bruno Haible  <bruno@clisp.org>
42801
42802         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42803
42804         * modules/getaddrinfo-tests (Makefile.am): Define
42805         test_getaddrinfo_LDADD.
42806
42807 2008-04-11  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42810         (init): Fix syntax error.
42811         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42812         is declared.
42813
42814 2008-04-11  Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42817         * modules/glob (Depends-on): Add stdbool.
42818
42819 2008-04-11  Bruno Haible  <bruno@clisp.org>
42820
42821         * lib/trim.c: Include <string.h>.
42822
42823 2008-04-11  Eric Blake  <ebb9@byu.net>
42824
42825         Avoid compile failure on OS/2.
42826         * lib/regex_internal.h (internal_function): Disable optimization
42827         on OS/2 (__EMX__), where it caused compiler error.
42828         Reported by Elbert Pol.
42829
42830 2008-04-11  Bruno Haible  <bruno@clisp.org>
42831
42832         Flush the standard error stream before aborting. Needed on mingw.
42833         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42834         * tests/test-array_list.c (ASSERT): Likewise.
42835         * tests/test-array_oset.c (ASSERT): Likewise.
42836         * tests/test-avltree_list.c (ASSERT): Likewise.
42837         * tests/test-avltree_oset.c (ASSERT): Likewise.
42838         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42839         * tests/test-binary-io.c (ASSERT): Likewise.
42840         * tests/test-byteswap.c (ASSERT): Likewise.
42841         * tests/test-c-ctype.c (ASSERT): Likewise.
42842         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42843         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42844         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42845         * tests/test-c-strstr.c (ASSERT): Likewise.
42846         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42847         * tests/test-canonicalize.c (ASSERT): Likewise.
42848         * tests/test-carray_list.c (ASSERT): Likewise.
42849         * tests/test-ceilf1.c (ASSERT): Likewise.
42850         * tests/test-ceilf2.c (ASSERT): Likewise.
42851         * tests/test-ceill.c (ASSERT): Likewise.
42852         * tests/test-count-one-bits.c (ASSERT): Likewise.
42853         * tests/test-fbufmode.c (ASSERT): Likewise.
42854         * tests/test-fflush2.c (ASSERT): Likewise.
42855         * tests/test-floorf1.c (ASSERT): Likewise.
42856         * tests/test-floorf2.c (ASSERT): Likewise.
42857         * tests/test-floorl.c (ASSERT): Likewise.
42858         * tests/test-fopen.c (ASSERT): Likewise.
42859         * tests/test-fpending.c (ASSERT): Likewise.
42860         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42861         * tests/test-fpurge.c (ASSERT): Likewise.
42862         * tests/test-freadable.c (ASSERT): Likewise.
42863         * tests/test-freadahead.c (ASSERT): Likewise.
42864         * tests/test-freading.c (ASSERT): Likewise.
42865         * tests/test-freadptr.c (ASSERT): Likewise.
42866         * tests/test-freadptr2.c (ASSERT): Likewise.
42867         * tests/test-freadseek.c (ASSERT): Likewise.
42868         * tests/test-freopen.c (ASSERT): Likewise.
42869         * tests/test-frexp.c (ASSERT): Likewise.
42870         * tests/test-frexpl.c (ASSERT): Likewise.
42871         * tests/test-fseek.c (ASSERT): Likewise.
42872         * tests/test-fseeko.c (ASSERT): Likewise.
42873         * tests/test-fstrcmp.c (ASSERT): Likewise.
42874         * tests/test-ftell.c (ASSERT): Likewise.
42875         * tests/test-ftello.c (ASSERT): Likewise.
42876         * tests/test-func.c (ASSERT): Likewise.
42877         * tests/test-fwritable.c (ASSERT): Likewise.
42878         * tests/test-fwriting.c (ASSERT): Likewise.
42879         * tests/test-getdelim.c (ASSERT): Likewise.
42880         * tests/test-getline.c (ASSERT): Likewise.
42881         * tests/test-i-ring.c (ASSERT): Likewise.
42882         * tests/test-iconv-utf.c (ASSERT): Likewise.
42883         * tests/test-iconv.c (ASSERT): Likewise.
42884         * tests/test-isfinite.c (ASSERT): Likewise.
42885         * tests/test-isnand.c (ASSERT): Likewise.
42886         * tests/test-isnanf.c (ASSERT): Likewise.
42887         * tests/test-isnanl.h (ASSERT): Likewise.
42888         * tests/test-ldexpl.c (ASSERT): Likewise.
42889         * tests/test-linked_list.c (ASSERT): Likewise.
42890         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42891         * tests/test-localename.c (ASSERT): Likewise.
42892         * tests/test-lseek.c (ASSERT): Likewise.
42893         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42894         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42895         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42896         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42897         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42898         * tests/test-mbschr.c (ASSERT): Likewise.
42899         * tests/test-mbscspn.c (ASSERT): Likewise.
42900         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42901         * tests/test-mbspbrk.c (ASSERT): Likewise.
42902         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42903         * tests/test-mbsrchr.c (ASSERT): Likewise.
42904         * tests/test-mbsspn.c (ASSERT): Likewise.
42905         * tests/test-mbsstr1.c (ASSERT): Likewise.
42906         * tests/test-mbsstr2.c (ASSERT): Likewise.
42907         * tests/test-mbsstr3.c (ASSERT): Likewise.
42908         * tests/test-memchr2.c (ASSERT): Likewise.
42909         * tests/test-memmem.c (ASSERT): Likewise.
42910         * tests/test-open.c (ASSERT): Likewise.
42911         * tests/test-printf-frexp.c (ASSERT): Likewise.
42912         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42913         * tests/test-printf-posix.c (ASSERT): Likewise.
42914         * tests/test-quotearg.c (ASSERT): Likewise.
42915         * tests/test-rbtree_list.c (ASSERT): Likewise.
42916         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42917         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42918         * tests/test-round1.c (ASSERT): Likewise.
42919         * tests/test-roundf1.c (ASSERT): Likewise.
42920         * tests/test-roundl.c (ASSERT): Likewise.
42921         * tests/test-signbit.c (ASSERT): Likewise.
42922         * tests/test-sleep.c (ASSERT): Likewise.
42923         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42924         * tests/test-snprintf.c (ASSERT): Likewise.
42925         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42926         * tests/test-stat-time.c (ASSERT): Likewise.
42927         * tests/test-strcasestr.c (ASSERT): Likewise.
42928         * tests/test-strerror.c (ASSERT): Likewise.
42929         * tests/test-striconv.c (ASSERT): Likewise.
42930         * tests/test-striconveh.c (ASSERT): Likewise.
42931         * tests/test-striconveha.c (ASSERT): Likewise.
42932         * tests/test-strsignal.c (ASSERT): Likewise.
42933         * tests/test-strstr.c (ASSERT): Likewise.
42934         * tests/test-strtod.c (ASSERT): Likewise.
42935         * tests/test-trunc1.c (ASSERT): Likewise.
42936         * tests/test-trunc2.c (ASSERT): Likewise.
42937         * tests/test-truncf1.c (ASSERT): Likewise.
42938         * tests/test-truncf2.c (ASSERT): Likewise.
42939         * tests/test-truncl.c (ASSERT): Likewise.
42940         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42941         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42942         * tests/test-vasnprintf.c (ASSERT): Likewise.
42943         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42944         * tests/test-vasprintf.c (ASSERT): Likewise.
42945         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42946         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42947         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42948         * tests/test-vsnprintf.c (ASSERT): Likewise.
42949         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42950         * tests/test-wcwidth.c (ASSERT): Likewise.
42951         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42952         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42953         * tests/test-xvasprintf.c (ASSERT): Likewise.
42954         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42955         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42956         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42957         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42958         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42959         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42960         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42961         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42962         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42963         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42964         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42965         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42966         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42967         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42968         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42969         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42970         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42971         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42972         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42973         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42974         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42975         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42976         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42977         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42978         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42979         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42980         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42981         * tests/unictype/test-combining.c (ASSERT): Likewise.
42982         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42983         * tests/unictype/test-digit.c (ASSERT): Likewise.
42984         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42985         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42986         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42987         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42988         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42989         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42990         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42991         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42992         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42993         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42994         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42995         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42996         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42997         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42998         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42999         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43000         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43001         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43002         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43003         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43004         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43005         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43006         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43007         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43008         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43009         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43010         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43011         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43012         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43013         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43014         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43015         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43016         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43017         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43018         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43019         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43020         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43021         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43022         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43023         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43024         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43025         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43026         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43027         Reported by Eric Blake.
43028
43029 2008-04-11  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/wchar.in.h: Tweak comment.
43032
43033 2008-04-11  Bruno Haible  <bruno@clisp.org>
43034
43035         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43036         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43037         gl_COMMON.
43038         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43039
43040 2008-04-11  Bruno Haible  <bruno@clisp.org>
43041
43042         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43043
43044 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43045
43046         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43047         of attempting to use non-existing /dev/*random.  Based on patch
43048         from Adam Strzelecki <ono@java.pl> in
43049         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43050
43051 2008-04-08  Bruno Haible  <bruno@clisp.org>
43052
43053         Add tentative support for emx+gcc.
43054         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43055         * lib/fpurge.c (fpurge): Likewise.
43056         * lib/freadable.c (freadable): Likewise.
43057         * lib/freadahead.c (freadahead): Likewise.
43058         * lib/freading.c (freading): Likewise.
43059         * lib/freadptr.c (freadptr): Likewise.
43060         * lib/freadseek.c (freadptrinc): Likewise.
43061         * lib/fseeko.c (rpl_fseeko): Likewise.
43062         * lib/fseterr.c (fseterr): Likewise.
43063         * lib/fwritable.c (fwritable): Likewise.
43064         * lib/fwriting.c (fwriting): Likewise.
43065         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43066
43067 2008-04-09  Eric Blake  <ebb9@byu.net>
43068
43069         Avoid some autoconf warnings.
43070         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43071         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43072         * m4/afs.m4 (gl_AFS): Likewise.
43073         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43074         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43076         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43077         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43078         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43079         (AC_CHECK_DECLS_ONCE): Likewise.
43080         Rename file...
43081         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43082         gnulib-tool requires autoconf 2.59 or better.
43083         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43084
43085 2008-04-08  Eric Blake  <ebb9@byu.net>
43086
43087         Use 'git describe --match' if present (added in git 1.5.5).
43088         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43089         if possible.
43090
43091 2008-04-08  Bruno Haible  <bruno@clisp.org>
43092
43093         Add tentative support for OpenServer.
43094         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43095         _ptr, _cnt.
43096         * lib/fpurge.c (fpurge): Likewise.
43097         * lib/freadable.c (freadable): Likewise.
43098         * lib/freadahead.c (freadahead): Likewise.
43099         * lib/freading.c (freading): Likewise.
43100         * lib/freadptr.c (freadptr): Likewise.
43101         * lib/freadseek.c (freadptrinc): Likewise.
43102         * lib/fseeko.c (rpl_fseeko): Likewise.
43103         * lib/fseterr.c (fseterr): Likewise.
43104         * lib/fwritable.c (fwritable): Likewise.
43105         * lib/fwriting.c (fwriting): Likewise.
43106         Reported by Roger Cornelius <rac@tenzing.org> and
43107         Brian K. White <brian@aljex.com>.
43108
43109 2008-04-06  Jim Meyering  <meyering@redhat.com>
43110
43111         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43112
43113 2008-04-06  Bruno Haible  <bruno@clisp.org>
43114
43115         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43116         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43117         * tests/test-printf-posix.sh: Likewise.
43118         * tests/test-vfprintf-posix.sh: Likewise.
43119         * tests/test-vprintf-posix.sh: Likewise.
43120         * tests/test-xprintf-posix.sh: Likewise.
43121
43122 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43123
43124         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43125         hide error from 'ls', needed on OS/2.
43126         Report by Elbert Pol <elbert.pol@gmail.com>.
43127
43128 2008-04-04  Eric Blake  <ebb9@byu.net>
43129
43130         Make test-fseeko.c failures meaningful.
43131         * tests/test-fseeko.c: Print line number on failure.
43132         * tests/test-fseek.c: Likewise.
43133         Reported by Nelson H. F. Beebe.
43134
43135         Improve strtod bug detection check.
43136         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43137         required for Solaris 10.
43138         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43139
43140 2008-04-04  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43143         by m4/setenv.m4.
43144
43145 2008-04-03  Eric Blake  <ebb9@byu.net>
43146
43147         Ensure sane .version contents.
43148         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43149         version string.
43150         * build-aux/git-version-gen: Improve documentation.
43151
43152         Make GNU make output nicer.
43153         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43154         MAKECMDGOALS to enforce message for all command line targets.  Set
43155         srcdir for use in maint.mk.
43156
43157         Another maintainer tweak.
43158         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43159         a target that regenerates version.
43160
43161 2008-04-03  Jim Meyering  <meyering@redhat.com>
43162
43163         vc-list-files: don't cause coreutils "make po-check" failure
43164         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43165
43166 2008-04-03  Eric Blake  <ebb9@byu.net>
43167
43168         Allow VPATH usage of vc-list-files.
43169         * build-aux/vc-list-files (scriptversion): Add timestamp.
43170         (options): Add --help, --version, -C.
43171         (CVS): Support installed cvsu.
43172
43173 2008-04-02  Bruno Haible  <bruno@clisp.org>
43174
43175         Avoid some "statement with no effect" warnings from gcc.
43176         * tests/test-wctype.c (main): Explicitly ignore unused values.
43177         Reported by Jim Meyering.
43178
43179 2008-04-02  Jim Meyering  <meyering@redhat.com>
43180
43181         Avoid some warnings from "gcc -Wshadow".
43182         * tests/test-frexp.c (exp): Define to a different identifier.
43183         * tests/test-frexpl.c (exp): Likewise.
43184
43185 2008-04-03  Jim Meyering  <meyering@redhat.com>
43186
43187         bootstrap: remove dangling *.[ch] symlinks from lib
43188         * build-aux/bootstrap [dangling symlink removal]: Move find's
43189         -depth option to precede all others, to avoid a warning.
43190         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43191
43192 2008-04-02  Bruno Haible  <bruno@clisp.org>
43193
43194         Avoid some warnings from "gcc -Wshadow".
43195         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43196         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43197         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43198         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43199         Reported by Jim Meyering.
43200
43201 2008-04-01  Bruno Haible  <bruno@clisp.org>
43202
43203         Fix test to work on IRIX 6.5 with cc.
43204         * tests/test-math.c (numeric_equal): New function.
43205         (main): Use it.
43206
43207 2008-04-01  Bruno Haible  <bruno@clisp.org>
43208
43209         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43210
43211 2008-04-01  Bruno Haible  <bruno@clisp.org>
43212
43213         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43214         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43215         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43216         (Depends-on): Remove math.
43217
43218         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43219         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43220         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43221         (Depends-on): Remove math.
43222
43223         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43224         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43225         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43226         (Depends-on): Remove math.
43227         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43228         (Depends-on): Remove math.
43229
43230         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43231         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43232         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43233         (Depends-on): Remove math.
43234         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43235         (Depends-on): Remove math.
43236
43237         * tests/test-round1.c: Include nan.h.
43238         (main): Use NaNd instead of NAN.
43239         * modules/round-tests (Files): Add tests/nan.h.
43240
43241         * tests/test-trunc1.c: Include nan.h.
43242         (main): Use NaNd instead of NAN.
43243         * modules/trunc-tests (Files): Add tests/nan.h.
43244
43245         * tests/test-roundf1.c: Include nan.h.
43246         (main): Use NaNf instead of NAN.
43247         * modules/roundf-tests (Files): Add tests/nan.h.
43248
43249         * tests/test-truncf1.c: Include nan.h.
43250         (main): Use NaNf instead of NAN.
43251         * modules/truncf-tests (Files): Add tests/nan.h.
43252
43253         * tests/test-ceilf1.c: Include nan.h.
43254         (main): Use NaNf instead of NAN.
43255         * modules/ceilf-tests (Files): Add tests/nan.h.
43256
43257         * tests/test-floorf1.c: Include nan.h.
43258         (main): Use NaNf instead of NAN.
43259         * modules/floorf-tests (Files): Add tests/nan.h.
43260
43261         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43262         (main): Use NaNf instead of NAN.
43263         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43264
43265         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43266         (main): Use NaNd instead of NAN.
43267         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43268
43269         * tests/test-frexp.c: Include nan.h.
43270         (main): Use NaNd instead of NAN.
43271         * modules/frexp-tests (Files): Add tests/nan.h.
43272
43273         * lib/isnan.c: Don't include <math.h>.
43274         (FUNC): Don't use NAN macro.
43275         * modules/isnand-nolibm (Depends-on): Remove math.
43276         * modules/isnanf-nolibm (Depends-on): Remove math.
43277         * modules/isnanl (Depends-on): Remove math.
43278         * modules/isnanl-nolibm (Depends-on): Remove math.
43279
43280         * tests/nan.h: New file.
43281
43282 2008-04-01  Eric Blake  <ebb9@byu.net>
43283
43284         Fix typos.
43285         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43286         values to be the right type.
43287
43288         For now, cater to gnulib strtod inaccuracies.
43289         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43290         fractional results.  While not as nice from a QoI perspective, it
43291         is a quicker patch than correctly implementing decimal to binary
43292         rounding.
43293
43294 2008-03-31  Eric Blake  <ebb9@byu.net>
43295
43296         Guarantee a definition of NAN.
43297         * lib/math.in.h (NAN): Define if missing.
43298         * tests/test-math.c (main): Test it.
43299         * doc/posix-headers/math.texi (math.h): Document this.
43300         * lib/isnan.c (rpl_isnand): Use it.
43301         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43302         * tests/test-floorf1.c (NaN): Likewise.
43303         * tests/test-frexp.c (NaN): Likewise.
43304         * tests/test-isnand.c (NaN): Likewise.
43305         * tests/test-isnanf.c (NaN): Likewise.
43306         * tests/test-round1.c (NaN): Likewise.
43307         * tests/test-roundf1.c (NaN): Likewise.
43308         * tests/test-snprintf-posix.h (NaN): Likewise.
43309         * tests/test-sprintf-posix.h (NaN): Likewise.
43310         * tests/test-trunc1.c (NaN): Likewise.
43311         * tests/test-truncf1.c (NaN): Likewise.
43312         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43313         * tests/test-vasprintf-posix.c (NaN): Likewise.
43314         * modules/isnand-nolibm (Depends-on): Add math.
43315         * modules/isnanf-nolibm (Depends-on): Likewise.
43316         * modules/isnanl (Depends-on): Likewise.
43317         * modules/isnanl-nolibm (Depends-on): Likewise.
43318         * modules/snprintf-posix-tests (Depends-on): Likewise.
43319         * modules/sprintf-posix-tests (Depends-on): Likewise.
43320         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43321         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43322         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43323         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43324
43325 2008-03-31  Bruno Haible  <bruno@clisp.org>
43326
43327         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43328         * doc/posix-functions/strtod.texi: Likewise.
43329
43330 2008-03-31  Bruno Haible  <bruno@clisp.org>
43331
43332         * tests/test-strtod.c (main): Don't use C99 syntax.
43333
43334 2008-03-31  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43337         Reported by Eric Blake.
43338
43339 2008-03-31  Jim Meyering  <meyering@redhat.com>
43340
43341         Don't compare actual signbit return values.
43342         * tests/test-strtod.c (main): Rather, compare only their
43343         zero/non-zero nature.
43344
43345 2008-03-31  Eric Blake  <ebb9@byu.net>
43346
43347         More strtod documentation.
43348         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43349         failures as distinct bugs.
43350
43351 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43352
43353         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43354         Problem reported by Erik Benada in
43355         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43356
43357 2008-03-30  Bruno Haible  <bruno@clisp.org>
43358
43359         * tests/test-strtod.c: Add comments about which assertion fails on which
43360         platform.
43361         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43362
43363 2008-03-30  Eric Blake  <ebb9@byu.net>
43364
43365         Test signbit behavior on zeros.
43366         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43367         (test_signbitd, test_signbitl): Likewise.
43368
43369         More strtod touchups.
43370         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43371         sign of negative underflow, for now.  Use .5, not .1.
43372         * doc/posix-functions/strtod.texi (strtod): Mention these
43373         limitations.
43374         Reported by Jim Meyering.
43375
43376 2008-03-30  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43379         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43380
43381 2008-03-30  Bruno Haible  <bruno@clisp.org>
43382
43383         Avoid failure when attempting to return empty iconv results on some
43384         platforms.
43385         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43386         allocation, don't report ENOMEM when the resulting string is empty.
43387
43388 2008-03-30  Bruno Haible  <bruno@clisp.org>
43389
43390         Fix buffer overrun.
43391         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43392         Don't consider the width for tmp_length. Check count against tmp_length
43393         before doing the padding. Ensure enough allocation during padding.
43394
43395 2008-03-30  Eric Blake  <ebb9@byu.net>
43396
43397         strtod touchups.
43398         * lib/strtod.c (strtod): Avoid compiler warnings.
43399         Reported by Jim Meyering.
43400
43401 2008-03-30  Bruno Haible  <bruno@clisp.org>
43402
43403         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43404         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43405         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43406         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43407         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43408         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43409         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43410         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43411
43412         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43413         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43414         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43415         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43416         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43417         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43418         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43419         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43420
43421         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43422         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43423         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43424         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43425         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43426         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43427         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43428         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43429
43430         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43431         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43432
43433         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43434         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43435
43436         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43437         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43438
43439         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43441         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43442
43443         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43445         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43446
43447         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43449         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43450
43451         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43453         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43454
43455         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43456         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43458         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43459         (Depends-on): Add EOVERFLOW.
43460         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43461         (Depends-on): Add EOVERFLOW.
43462         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43463         (Depends-on): Add EOVERFLOW.
43464         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43465         (Depends-on): Add EOVERFLOW.
43466         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43467         (Depends-on): Add EOVERFLOW.
43468         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43469         (Depends-on): Add EOVERFLOW.
43470         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43471         (Depends-on): Add EOVERFLOW.
43472         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43473         (Depends-on): Add EOVERFLOW.
43474
43475         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43477         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43478
43479         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43481         * modules/snprintf (Depends-on): Add EOVERFLOW.
43482
43483         * lib/poll.c (EOVERFLOW): Remove fallback.
43484         * modules/poll (Depends-on): Add EOVERFLOW.
43485
43486         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43487         * modules/getugroups (Depends-on): Add EOVERFLOW.
43488
43489         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43490         * modules/getdelim (Depends-on): Add EOVERFLOW.
43491
43492         * lib/ftell.c (EOVERFLOW): Remove fallback.
43493         * modules/ftell (Depends-on): Add EOVERFLOW.
43494
43495         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43497         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43498
43499         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43500
43501         * modules/EOVERFLOW-tests: New file.
43502         * tests/test-EOVERFLOW.c: New file.
43503
43504         * modules/EOVERFLOW: New file.
43505         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43506
43507 2008-03-30  Bruno Haible  <bruno@clisp.org>
43508
43509         Fix bug introduced on 2007-06-10.
43510         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43511         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43512
43513 2008-03-30  Bruno Haible  <bruno@clisp.org>
43514
43515         Improve freadseek's efficiency after ungetc.
43516         * lib/freadseek.c: Include freadahead.h.
43517         (freadptrinc): New function, extracted from freadseek.
43518         (freadseek): Use it in a loop. Use freadahead to determine the number
43519         of loop iterations.
43520         * modules/freadseek (Depends-on): Add freadahead.
43521         (configure.ac): Require AC_C_INLINE.
43522
43523 2008-03-30  Bruno Haible  <bruno@clisp.org>
43524
43525         * lib/freadseek.c (freadseek): Don't ignore the return value of
43526         freadptr.
43527
43528 2008-03-29  Eric Blake  <ebb9@byu.net>
43529
43530         Add hex float support.
43531         * modules/strtod (Depends-on): Add c-ctype.
43532         (Link): Mention POW_LIB.
43533         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43534         whitespace between 'e' and exponent.
43535         * tests/test-strtod.c (main): Enable hex float tests.
43536         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43537         now provides.
43538
43539         Document various strtod bugs, with some fixes.
43540         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43541         "-0x", "inf", "nan", and hex constants.
43542         * doc/posix-functions/atof.texi (atof): Likewise.
43543         * modules/stdlib (Makefile.am): Support strtod.
43544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43545         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43546         detect additional strtod bugs.
43547         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43548         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43549         bool where appropriate.  Parse 'inf' and 'nan'.
43550         * tests/test-strtod.c: New file.
43551         * modules/strtod (Depends-on): Add stdbool, stdlib.
43552         (configure.ac): Turn on module indicator.
43553         * modules/strtod-tests: New module.
43554
43555 2008-03-29  Eric Blake  <ebb9@byu.net>
43556
43557         Fix ftell on mingw.
43558         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43559         * modules/ftell-tests (Depends-on): Add binary-io.
43560         * modules/ftello-tests (Depends-on): Likewise.
43561         * tests/test-ftell.c (main): Enhance test to cover behavior after
43562         ungetc.  Enforce binary mode.
43563         * tests/test-ftello.c (main): Likewise.
43564
43565         Pass test-freadseek on cygwin.
43566         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43567         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43568         ungetc buffer.
43569
43570         * tests/test-fflush2.c (main): Fix typo.
43571
43572 2008-03-29  Bruno Haible  <bruno@clisp.org>
43573
43574         * tests/test-fflush2.c (main): Temporarily disable the contents of
43575         this test.
43576         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43577         Reported by Eric Blake.
43578
43579 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43580
43581         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43582         (GC_SHA224_DIGEST_SIZE): Add.
43583
43584         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43585         (gc_hash_digest_length): Likewise.
43586         (gc_hash_buffer): Likewise.
43587
43588 2008-03-25  Bruno Haible  <bruno@clisp.org>
43589
43590         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43591         detail which gettext release to use.
43592         Reported by Simon Josefsson.
43593
43594 2008-03-26  Jim Meyering  <meyering@redhat.com>
43595
43596         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43597         * modules/gnumakefile (clean-GNUmakefile): Also, use
43598         test ... && ... || : syntax rather than if-then ... fi.
43599
43600         gnumakefile: Don't double-quote-expand $(VPATH) value.
43601         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43602
43603 2008-03-24  Eric Blake  <ebb9@byu.net>
43604
43605         Alter GNUmakefile to install into top directory.
43606         * modules/maintainer-makefile: Split, and add dependency...
43607         * modules/gnumakefile: to this new module.
43608         * build-aux/GNUmakefile: Move...
43609         * top/GNUmakefile: ...here.
43610         * build-aux/maint.mk: Move...
43611         * top/maint.mk: ...here.
43612         * MODULES.html.sh (Support for maintaining...): Document new
43613         module.
43614
43615 2008-03-23  Bruno Haible  <bruno@clisp.org>
43616
43617         * gnulib-tool: New options --vc-files, --no-vc-files.
43618         (func_usage): Document them.
43619         (vc_files): New variable.
43620         (func_import): Consider vc_files.
43621         (func_create_testdir): Set vc_files to empty.
43622         Suggested by Jim Meyering and Karl Berry.
43623
43624 2008-03-23  Bruno Haible  <bruno@clisp.org>
43625
43626         Fix regex compilation error on HP-UX 11.
43627         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43628         * modules/regex (Files): Add m4/mbstate_t.m4.
43629         Reported by Ton Voon <ton.voon@altinity.com>.
43630
43631 2008-03-23  Bruno Haible  <bruno@clisp.org>
43632
43633         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43634
43635 2008-03-23  Eric Blake  <ebb9@byu.net>
43636             Bruno Haible  <bruno@clisp.org>
43637
43638         Install files from top/ in the destination directory.
43639         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43640         augmentation also for the files from top/.
43641         (func_import, func_create_testdir): Rewrite file names:
43642         top/filename -> filename.
43643
43644 2008-03-23  Bruno Haible  <bruno@clisp.org>
43645
43646         Tweak "gnulib --version" output.
43647         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43648
43649 2008-03-23  Bruno Haible  <bruno@clisp.org>
43650
43651         Tweak "gnulib --version" output.
43652         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43653         rather than contents of ChangeLog, when possible.
43654
43655 2008-03-21  Eric Blake  <ebb9@byu.net>
43656
43657         More --version tweaks.
43658         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43659         date of last ChangeLog entry.
43660
43661 2008-03-21  Jim Meyering  <meyering@redhat.com>
43662
43663         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43664
43665 2008-03-20  Eric Blake  <ebb9@byu.net>
43666
43667         VPATH fix.
43668         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43669
43670 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43671
43672         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43673         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43674
43675 2008-03-20  Eric Blake  <ebb9@byu.net>
43676
43677         Sync GNUmakefile with coreutils.
43678         * build-aux/GNUmakefile (have-Makefile): Rename...
43679         (_have-Makefile): ...to this, for namespace consideration.
43680         (GNUmakefile.cfg): Include, if present.
43681         (_autoreconf): Define a default.
43682         (_is-dist-target): New rule for rebuilds to pick up intra-release
43683         version.
43684         (maint-cfg.mk): Rename...
43685         (cfg.mk): ...to this.
43686
43687 2008-03-18  Jim Meyering  <meyering@redhat.com>
43688
43689         New script and module: mktempd
43690         * MODULES.html.sh (maint+release support): Add mktempd.
43691         * build-aux/mktempd: New file.
43692         * modules/mktempd: New file.
43693
43694 2008-03-15  Jim Meyering  <meyering@redhat.com>
43695
43696         Undo last change.
43697         * lib/sha1.c, lib/md5.c: 63 != ~63.
43698         Reported by Andreas Schwab.
43699
43700         sha1.c, md5.c: Hoist a redundant expression.
43701         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43702         "ctx->buflen" only once, before calling *_process_block.
43703         * lib/md5.c (md5_process_bytes): Likewise.
43704
43705 2008-03-14  Eric Blake  <ebb9@byu.net>
43706
43707         Bump copyright year in files generated by gnulib-tool.
43708         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43709         gnulib-tool, rather than hard-coding it.
43710
43711         Fix 'gnulib-tool --version' output to work with git.
43712         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43713         (startup): ...here.
43714         (func_version): Use it to invoke git-version-gen, rather than
43715         relying on CVS keyword expansion.  Modernize wording.
43716         (cvsdatestamp, last_checkin_date, version): Kill unused
43717         variables.
43718
43719 2008-03-12  Jim Meyering  <meyering@redhat.com>
43720
43721         Recognize optional cast of the argument to free.
43722         * build-aux/useless-if-before-free: Update regexps.
43723
43724         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43725
43726 2008-03-11  Bruno Haible  <bruno@clisp.org>
43727
43728         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43729         by a single package.
43730         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43731         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43732         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43733         Reported by Sam Steingold <sds@gnu.org>.
43734
43735 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43736
43737         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43738         repositories.
43739
43740 2008-03-11  Bruno Haible  <bruno@clisp.org>
43741
43742         Avoid conflicts between local macro definitions.
43743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43744         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43745
43746 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43747             Bruno Haible  <bruno@clisp.org>
43748
43749         Make va_copy work with some version of xlc on AIX 5.1.
43750         * lib/stdarg.in.h: New file.
43751         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43752         On AIX, use a <stdarg.h> file substitute.
43753         * modules/stdarg (Files): Add lib/stdarg.in.h.
43754         (Depends-on): Add include_next.
43755         (Makefile.am): Build a stdarg.h substitute if requested.
43756         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43757
43758 2008-03-10  Bruno Haible  <bruno@clisp.org>
43759
43760         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43761         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43762         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43763
43764 2008-03-10  Bruno Haible  <bruno@clisp.org>
43765
43766         * modules/stdlib (Depends-on): Add include_next, remove
43767         absolute-header.
43768
43769 2008-03-09  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/freadahead.h (freadahead): Document more precisely.
43772         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43773         the sum of both buffer sizes.
43774         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43775         * NEWS: Document the change.
43776
43777 2008-03-09  Bruno Haible  <bruno@clisp.org>
43778
43779         Extend freadptr to return also the buffer size.
43780         * lib/freadptr.h (freadptr): Add sizep argument.
43781         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43782         (freadptr): Add sizep argument. Determine buffer size like freadahead
43783         does.
43784         * tests/test-freadptr.c: Don't include freadahead.h.
43785         (main): Adapt for new calling convention of freadptr.
43786         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43787         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43788         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43789         tests/test-freadptr2.sh.
43790         (Depends): Remove freadahead.
43791         (TESTS): Add test-freadptr2.sh.
43792         (check_PROGRAMS): Add test-freadptr2.
43793
43794 2008-03-09  Bruno Haible  <bruno@clisp.org>
43795
43796         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43797         Report and solution by Simon Josefsson.
43798
43799 2008-03-06  Bruno Haible  <bruno@clisp.org>
43800
43801         Make fflush after ungetc work on BSD platforms.
43802         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43803         * tests/test-fflush2.c: New file.
43804         * tests/test-fflush2.sh: New file.
43805         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43806         tests/test-fflush2.c.
43807         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43808         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43809
43810 2008-03-06  Eric Blake  <ebb9@byu.net>
43811
43812         Likewise for ftello.
43813         * modules/ftello (Dependencies): Add extensions.
43814         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43815
43816 2008-03-06  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/fseeko (Dependencies): Add extensions.
43819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43820         Needed on glibc systems.
43821
43822 2008-03-06  Bruno Haible  <bruno@clisp.org>
43823
43824         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43825         email address.
43826         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43827
43828 2008-03-06  Bruno Haible  <bruno@clisp.org>
43829
43830         * users.txt: Add libgnupdf.
43831
43832 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43833
43834         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43835         (Header File Substitutes, Function Substitutes,
43836         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43837         (Build robot for gnulib): Fix typo.
43838
43839 2008-03-06  Bruno Haible  <bruno@clisp.org>
43840
43841         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43842         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43843
43844 2008-03-06  Bruno Haible  <bruno@clisp.org>
43845
43846         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43847         * doc/gnulib.texi: Include it.
43848
43849 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43850
43851         * modules/func (License): Change license to unlimited; there was
43852         no LGPL parts in the module anyway.
43853
43854 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43855
43856         * modules/__func__: Renamed to modules/func.
43857         * modules/__func__-tests: Renamed to modules/func-tests.
43858         * tests/test-__func__.c: Renamed to tests/test-func.c.
43859         * m4/__func__.m4: Renamed to m4/func.m4.
43860         * doc/gnulib.texi (__func__): Section renamed to func.
43861         Suggested by Eric Blake <ebb9@byu.net>.
43862
43863 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43864
43865         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43866         about __func__.  Make example self-contained.  Suggested by Eric
43867         Blake <ebb9@byu.net>.
43868
43869         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43870         Suggested by Eric Blake <ebb9@byu.net>.
43871
43872 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43873
43874         * modules/__func__: New file.
43875         * modules/__func__-tests: New file.
43876         * tests/test-__func__.c: New file.
43877         * m4/__func__.m4: New file.
43878         * doc/gnulib.texi (__func__): Document __func__ module.
43879
43880 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43881
43882         * modules/byteswap (License): Re-license as LGPLv2+.
43883
43884 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43885
43886         * doc/Makefile: Add pdf target.
43887
43888 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43889
43890         * modules/inline (License): Use 'unlimited', since there are only
43891         *.m4 files in this module.
43892
43893 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43894             Bruno Haible  <bruno@clisp.org>
43895
43896         Add support for HP C 7.1 on OpenVMS 8.3.
43897         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43898
43899 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43900
43901         Update VMS specifics.
43902         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43903
43904 2008-03-02  Jim Meyering  <meyering@redhat.com>
43905
43906         Remove the last dependency on the "free" module.
43907         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43908         Reported by Bob Proulx.
43909
43910         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43911
43912         Remove useless "if" tests before free.  Deprecate "free" module.
43913         * doc/posix-functions/free.texi: Mention that this
43914         module is no longer useful.
43915         * modules/free (Notice): Say this module is obsolete.
43916         * modules/readutmp (Depends-on): Remove free.
43917         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43918         * lib/putenv.c (putenv): Likewise.
43919         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43920         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43921         * tests/test-c-strcasestr.c (main): Likewise.
43922         * tests/test-c-strstr.c (main): Likewise.
43923         * tests/test-mbscasestr1.c (main): Likewise.
43924         * tests/test-mbscasestr2.c (main): Likewise.
43925         * tests/test-mbsstr1.c (main): Likewise.
43926         * tests/test-mbsstr2.c (main): Likewise.
43927         * tests/test-memmem.c (main): Likewise.
43928         * tests/test-strcasestr.c (main): Likewise.
43929         * tests/test-striconv.c (main): Likewise.
43930         * tests/test-striconveh.c (main): Likewise.
43931         * tests/test-striconveha.c (main): Likewise.
43932         * tests/test-strstr.c (main): Likewise.
43933
43934         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43935
43936         bootstrap: sync from coreutils again
43937         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43938
43939 2008-03-01  Jim Meyering  <meyering@redhat.com>
43940
43941         bootstrap: sync from coreutils
43942         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43943         also when the target doesn't exist.
43944
43945 2008-03-01  Eric Blake  <ebb9@byu.net>
43946
43947         Fix bugs in last patch.
43948         * lib/memchr2.c (memchr2): Fix typo.
43949         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43950         extension.
43951         Reported by Bruce Korb.
43952
43953         New module 'memchr2'.
43954         * modules/memchr2: New file.
43955         * modules/memchr2-tests: Likewise.
43956         * lib/memchr2.h: Likewise.
43957         * lib/memchr2.c: Likewise, based on memchr.c.
43958         * tests/test-memchr2.c: New test.
43959         * MODULES.html.sh (String handling): Add memchr2.
43960
43961 2008-02-29  Bruno Haible  <bruno@clisp.org>
43962
43963         * modules/freadseek-tests: New file.
43964         * tests/test-freadseek.sh: New file.
43965         * tests/test-freadseek.c: New file.
43966
43967         New module 'freadseek'.
43968         * modules/freadseek: New file.
43969         * lib/freadseek.h: New file.
43970         * lib/freadseek.c: New file.
43971         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43972
43973 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43974
43975         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43976         wydawca.
43977
43978         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43979         program_invocation_name and program_invocation_short_name are
43980         present.
43981
43982 2008-02-28  Bruno Haible  <bruno@clisp.org>
43983
43984         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43985         * tests/test-freadptr.sh: Also test non-seekable stdin.
43986
43987 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43988
43989         * build-aux/bootstrap (source_base, m4_base)
43990         (doc_base, tests_base): New variables.
43991         (gnulib_tool_options): Do not hardcode base directories, use
43992         the above variables instead.
43993
43994 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43995
43996         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43997
43998 2008-02-28  Bruno Haible  <bruno@clisp.org>
43999
44000         * modules/freadptr-tests: New file.
44001         * tests/test-freadptr.sh: New file.
44002         * tests/test-freadptr.c: New file.
44003
44004         New module 'freadptr'.
44005         * modules/freadptr: New file.
44006         * lib/freadptr.h: New file.
44007         * lib/freadptr.c: New file.
44008         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44009
44010 2008-02-26  Karl Berry  <karl@freefriends.org>
44011
44012         Sync from Libtool:
44013         * libltdl/argz.c (argz_add, argz_count): New functions.
44014         * libltdl/argz.in.h: Declare them.
44015         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44016
44017 2008-02-22  Bruno Haible  <bruno@clisp.org>
44018
44019         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44020         is a pointer type.  Needed for HP-UX 10.
44021         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44022         * doc/posix-functions/gmtime_r.texi: Likewise.
44023         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44024
44025 2008-02-24  Bruno Haible  <bruno@clisp.org>
44026
44027         * modules/environ-tests: New file.
44028         * tests/test-environ.c: New file.
44029
44030         New module 'environ'.
44031         * modules/environ: New file.
44032         * lib/unistd.in.h (environ): New declaration.
44033         * m4/environ.m4: New file.
44034         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44035         after use.
44036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44037         HAVE_DECL_ENVIRON.
44038         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44039         HAVE_DECL_ENVIRON.
44040         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44041         wrong claim that 'environ' is missing on some systems.
44042         * modules/execute (Depends-on): Add environ.
44043         * lib/execute.c (environ): Remove fallback declaration.
44044         * modules/pipe (Depends-on): Add environ.
44045         * lib/pipe.c (environ): Remove fallback declaration.
44046         * modules/setenv (Depends-on): Add environ.
44047         * lib/setenv.c (environ): Remove fallback declaration.
44048         * modules/unsetenv (Depends-on): Add environ.
44049         * lib/unsetenv.c (environ): Remove fallback declaration.
44050         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44051         m4/environ.m4.
44052         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44053         (gl_PREREQ_UNSETENV): Likewise.
44054
44055 2008-02-24  Bruno Haible  <bruno@clisp.org>
44056
44057         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44058
44059 2008-02-20  Bob Proulx  <bob@proulx.com>
44060
44061         Enable use of older two part flavor 'git describe'.
44062         * build-aux/git-version-gen: If using the older two part flavor of
44063         git version then recreate the third part now present in the
44064         newer three part flavor of git describe.
44065
44066 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44067
44068         * lib/fts.c (fts_build): Typo correction to comment.
44069
44070 2008-02-17  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44073         generating no-op conflicts.
44074
44075 2008-02-17  Bruno Haible  <bruno@clisp.org>
44076
44077         Speed up by 10%.
44078         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44079         result_entries, rather than an index-based loop.
44080
44081 2008-02-17  Bruno Haible  <bruno@clisp.org>
44082
44083         Speed up by 25%.
44084         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44085         'hashcode_cached'.
44086         (entry_create): New function.
44087         (entry_hashcode): Use the cached hashcode if possible.
44088         (read_changelog_file, try_split_merged_entry): Use entry_create.
44089
44090 2008-02-17  Bruno Haible  <bruno@clisp.org>
44091
44092         Speed up from O(n^2) to O(n) for long ChangeLog files.
44093         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44094         (read_changelog_file): Change implementation of entries_reversed list
44095         to rbtreehash.
44096         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44097
44098 2008-02-17  Bruno Haible  <bruno@clisp.org>
44099
44100         New option --split-merged-entry.
44101         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44102         (find_paragraph_end, try_split_merged_entry): New functions.
44103         (long_options): Add option --split-merged-entry.
44104         (usage): Document option --split-merged-entry.
44105         (main): Implement option --split-merged-entry.
44106         Reported by Eric Blake.
44107
44108 2008-02-17  Bruno Haible  <bruno@clisp.org>
44109
44110         * lib/git-merge-changelog.c: Include c-strstr.h.
44111         (main): Support the "git pull --rebase" situation.
44112         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44113         Reported by Eric Blake.
44114
44115 2008-02-16  Eric Blake  <ebb9@byu.net>
44116
44117         Avoid doubling \ in common case of "c-maybe" quoting style.
44118         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44119         eliding outer quotes.
44120         * lib/quotearg.h: Document this.
44121         * tests/test-quotearg.c (result_strings, inputs, results_g)
44122         (flag_results, locale_results): Test it by adding a new string to
44123         each test group.
44124         (compare_strings): Test new string.
44125
44126 2008-02-13  Eric Blake  <ebb9@byu.net>
44127
44128         Avoid trigraph quoting in default output.
44129         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44130         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44131         unless explicitly requested.
44132         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44133
44134 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44135
44136         Don't rely on signed integer overflowing to negative value.
44137         * lib/getugroups.c (getugroups): Include <limits.h>.
44138         Instead, compare against INT_MAX, and increment only if the test passes.
44139
44140 2008-02-13  Jim Meyering  <meyering@redhat.com>
44141         and Eric Blake  <ebb9@byu.net>
44142
44143         Avoid shadowing warning and compile errors on Linux.
44144         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44145         forwarding macros on Linux.
44146         (dcgettext): Define a stub, for Linux.
44147         (results_g, main): Avoid warnings.
44148
44149 2008-02-12  Eric Blake  <ebb9@byu.net>
44150
44151         Silence warning in last patch.
44152         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44153
44154         Quotearg part 4: add tests, fix c-maybe colon quoting.
44155         * lib/quotearg.h: Improve documentation.
44156         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44157         escapes when adding outer quotes.  When quoting trigraphs, use
44158         valid C notation.  When quoting NUL, omit extra characters if next
44159         character is not digit.  Alter prototype.
44160         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44161         callers.
44162         * modules/quotearg-tests: New module.
44163         * tests/test-quotearg.c: New test.
44164
44165 2008-02-07  Eric Blake  <ebb9@byu.net>
44166
44167         Quotearg part 3: add flag to control outer quote elision.
44168         * lib/quotearg.h (c_maybe_quoting_style): New style.
44169         (enum quoting_flags): Better documentation of flags.
44170         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44171         c-maybe style.
44172         (quotearg_buffer_restyled): Handle new flag to elide outer
44173         quotes.
44174
44175         Quotearg part 2: add flag that can control NUL elision.
44176         * lib/quotearg.h (set_quoting_flags): New prototype.
44177         * lib/quotearg.c (struct quoting_options): Add flag field.
44178         (set_quoting_flags): New function.
44179         (quotearg_buffer_restyled): Add flags parameter.
44180         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44181         (quotearg_n_options): Set the flag, since length cannot be
44182         returned.
44183         (quoting_options_from_style): Default flags correctly.
44184
44185         Quotearg part 1: more wrappers, restore quotearg_char state.
44186         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44187         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44188         (quotearg_colon_mem): New wrappers.
44189         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44190         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44191         functions.
44192         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44193         (quotearg_colon_mem): New functions.
44194
44195 2008-02-11  Bruno Haible  <bruno@clisp.org>
44196
44197         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44198         library in the current directory: it does not work with parallel make.
44199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44200
44201 2008-02-11  Bruno Haible  <bruno@clisp.org>
44202
44203         * .gitattributes: New file.
44204
44205 2008-02-11  Jim Meyering  <meyering@redhat.com>
44206
44207         useless-if-before-free: Fix reversed exit values.
44208         * build-aux/useless-if-before-free: Use correct values
44209         for EXIT_MATCH and EXIT_NO_MATCH.
44210
44211         * build-aux/useless-if-before-free: Close stdout carefully.
44212
44213 2008-02-10  Bruno Haible  <bruno@clisp.org>
44214
44215         New module 'git-merge-changelog'.
44216         * modules/git-merge-changelog: New file.
44217         * lib/git-merge-changelog.c: New file.
44218
44219 2008-02-10  Jim Meyering  <meyering@redhat.com>
44220
44221         useless-if-before-free: New option: --list (-l).
44222
44223         useless-if-before-free: Don't exit immediately upon open failure.
44224         * build-aux/useless-if-before-free: Exit 2 for errors.
44225         Upon failure to open a file, don't exit immediately.
44226         Rather, just warn and continue with any remaining files.
44227
44228 2008-02-10  Bruno Haible  <bruno@clisp.org>
44229
44230         New abstract list operation 'node_set_value'.
44231         * lib/gl_list.h (gl_list_node_set_value): New function.
44232         (struct gl_list_implementation): New field node_set_value.
44233         * lib/gl_list.c (gl_list_node_set_value): New function.
44234         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44235         (gl_array_list_implementation): Update.
44236         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44237         (gl_carray_list_implementation): Update.
44238         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44239         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44240         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44241         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44242         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44243         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44244         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44245         Update.
44246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44247         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44248         (gl_sublist_list_implementation): Update.
44249
44250 2008-02-10  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44253         Needed when ELEMENT is #defined to 'some_type *'.
44254
44255 2008-02-10  Jim Meyering  <meyering@redhat.com>
44256
44257         New script and module: useless-if-before-free
44258         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44259         * build-aux/useless-if-before-free: New file.
44260         * modules/useless-if-before-free: New file.
44261
44262         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44263
44264         xstrtol_error: Fix typo.
44265         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44266         s/exit_failure/exit_status/.
44267
44268 2008-02-09  Jim Meyering  <meyering@redhat.com>
44269
44270         New script and module: gitlog-to-changelog
44271         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44272         * modules/gitlog-to-changelog: New file.
44273         * build-aux/gitlog-to-changelog: New file.
44274
44275 2008-02-08  Jim Meyering  <meyering@redhat.com>
44276
44277         Avoid two "parameter unused" warnings.
44278         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44279         Mark "st" as used.
44280
44281         Use "git COMMAND", not "git-COMMAND".
44282         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44283         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44284         * build-aux/git-version-gen: Use "git status", not "git-status".
44285
44286 2008-02-07  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44289         Avoids a crash on Windows Vista.
44290         Reported by Adam Strzelecki <ono@java.pl> via
44291         Simon Josefsson <simon@josefsson.org>.
44292
44293 2008-02-06  Bruno Haible  <bruno@clisp.org>
44294
44295         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44296         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44297         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44299         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44301         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44302         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44310         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44311         left-adjust flag.
44312         * tests/test-snprintf-posix.h (test_function): Likewise.
44313         * tests/test-sprintf-posix.h (test_function): Likewise.
44314         * tests/test-vasprintf-posix.c (test_function): Likewise.
44315         * doc/posix-functions/fprintf.texi: Update.
44316         * doc/posix-functions/printf.texi: Update.
44317         * doc/posix-functions/snprintf.texi: Update.
44318         * doc/posix-functions/sprintf.texi: Update.
44319         * doc/posix-functions/vfprintf.texi: Update.
44320         * doc/posix-functions/vprintf.texi: Update.
44321         * doc/posix-functions/vsnprintf.texi: Update.
44322         * doc/posix-functions/vsprintf.texi: Update.
44323         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44324
44325 2008-02-06  Bruno Haible  <bruno@clisp.org>
44326
44327         Fix bug introduced on 2008-01-26.
44328         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44329
44330 2008-02-06  Bruno Haible  <bruno@clisp.org>
44331
44332         Fix bug introduced on 2007-06-10.
44333         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44334         !NEED_PRINTF_FLAG_ZERO.
44335
44336 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44337
44338         getloadavg: use libperfstat on AIX5
44339         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44340
44341 2008-02-03  Bruno Haible  <bruno@clisp.org>
44342
44343         * lib/diffseq.h: Add comments about required #includes.
44344         Reported by Michael Biggs <gnulib@doubleplum.net>.
44345
44346 2008-02-01  Bruno Haible  <bruno@clisp.org>
44347
44348         * users.txt: Add gnuit.
44349
44350 2008-01-31  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/md4.c (set_uint32): Mark as inline.
44353         * lib/md5.c (set_uint32): Likewise.
44354         * lib/sha1.c (set_uint32): Likewise.
44355         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44356         * m4/md5.m4 (gl_MD5): Likewise.
44357         * m4/sha1.m4 (gl_SHA1): Likewise.
44358
44359 2008-01-31  Jim Meyering  <meyering@redhat.com>
44360
44361         Use "sizeof VAR", rather than a literal "4".
44362         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44363         * lib/md4.c (md4_read_ctx): Likewise.
44364         * lib/sha1.c (sha1_read_ctx): Likewise.
44365
44366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44367
44368         * tests/test-sha1.c: New file, based on test-md5.c.
44369
44370         * modules/crypto/sha1-tests: New file.
44371
44372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44373
44374         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44375
44376 2008-01-31  Jim Meyering  <meyering@redhat.com>
44377
44378         Prefer "sizeof v" over the equivalent "4".
44379         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44380         * lib/md5.c (set_uint32): Likewise.
44381         * lib/sha1.c (set_uint32): Likewise.
44382
44383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44384
44385         * lib/sha1.c (set_uint32): Mark function as static.
44386
44387 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44388
44389         md2: clarify comments to say that alignment is not required.
44390         * lib/md2.h: Remove warning about alignment in comment.
44391         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44392         never been required.
44393
44394 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44395
44396         md4: adapt alignment constraint fix from sha1.
44397         * lib/md4.c (set_uint32): New function, from sha1.c
44398         (md4_read_ctx): Use it.
44399         (md4_finish_ctx): Doc fix.
44400         * lib/md4.h: Doc fix.
44401
44402 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44403
44404         md5: adapt alignment constraint fix from sha1.
44405         * lib/md5.c (set_uint32): New function, from sha1.c
44406         (md5_read_ctx): Use it.
44407         (md5_finish_ctx): Doc fix.
44408         * lib/md5.h: Doc fix.
44409
44410 2008-01-30  Peter Palfrader  <weasel@debian.org>
44411
44412         sha1: remove the result buffer alignment constraint
44413         * lib/sha1.c (set_uint32): New function.
44414         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44415         constraint.
44416         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44417         * lib/sha1.h: Likewise.
44418
44419 2008-01-30  Andreas Schwab  <schwab@suse.de>
44420             Bruno Haible  <bruno@clisp.org>
44421
44422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44423         correct definition of LDBL_MIN_EXP.
44424
44425 2008-01-30  Karl Berry  <karl@gnu.org>
44426
44427         * config/srclist-update: try to preserve x bit on updates.
44428         * config/srclistvars.sh: update for karl.
44429
44430 2008-01-29  Jim Meyering  <meyering@redhat.com>
44431
44432         vasnprintf.c: Avoid warning about unused label
44433         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44434         "overflow" label definition and associated code with the
44435         same cpp condition that guards the sole use of that label.
44436
44437 2008-01-26  Bruno Haible  <bruno@clisp.org>
44438
44439         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44440         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44441         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44442         * lib/isnanl-nolibm.h (isnanl): Likewise.
44443         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44444
44445 2008-01-26  Bruno Haible  <bruno@clisp.org>
44446
44447         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44448         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44449
44450 2008-01-26  Bruno Haible  <bruno@clisp.org>
44451
44452         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44453         GCC >= 4.0 built-in.
44454         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44455
44456 2008-01-26  Bruno Haible  <bruno@clisp.org>
44457
44458         Rename isnan, applicable to 'double' only, to isnand.
44459         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44460         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44461         (configure.ac): Update.
44462         (Include): Replace "isnan.h" with "isnand.h".
44463         * m4/isnand.m4: Renamed from m4/isnan.m4.
44464         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44465         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44466         instead of isnan.c.
44467         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44468         instead of HAVE_ISNAN_IN_LIBC.
44469         (isnand): Renamed from isnan.
44470         * lib/isnand.c: New file.
44471         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44472         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44473         (Makefile.am): Update.
44474         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44475         Include isnand.h instead of isnan.h.
44476         (main): Test isnand instead of isnan.
44477         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44478         isnan-nolibm.
44479         * modules/frexp (Depends-on): Likewise.
44480         * modules/frexp-tests (Depends-on): Likewise.
44481         * modules/frexp-nolibm (Depends-on): Likewise.
44482         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44483         * modules/isfinite (Depends-on): Likewise.
44484         * modules/round-tests (Depends-on): Likewise.
44485         * modules/signbit (Depends-on): Likewise.
44486         * modules/signbit-tests (Depends-on): Likewise.
44487         * modules/snprintf-posix (Depends-on): Likewise.
44488         * modules/sprintf-posix (Depends-on): Likewise.
44489         * modules/trunc-tests (Depends-on): Likewise.
44490         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44491         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44492         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44494         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44495         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44496         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44497         * modules/vasnprintf-posix (Depends-on): Likewise.
44498         * modules/vasprintf-posix (Depends-on): Likewise.
44499         * modules/vfprintf-posix (Depends-on): Likewise.
44500         * modules/vsnprintf-posix (Depends-on): Likewise.
44501         * modules/vsprintf-posix (Depends-on): Likewise.
44502         * lib/frexp.c: Include isnand.h instead of isnan.h.
44503         (ISNAN): Set to isnand instead of isnan.
44504         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44505         (gl_isfinited): Use isnand instead of isnan.
44506         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44507         (gl_signbitd): Use isnand instead of isnan.
44508         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44509         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44510         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44511         (main): Use isnand instead of isnan.
44512         * tests/test-round1.c: Include isnand.h.
44513         (main): Use isnand instead of isnan.
44514         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44515         (ISNAN): Set to isnand instead of isnan.
44516         * tests/test-trunc1.c: Include isnand.h.
44517         (main): Use isnand instead of isnan.
44518         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44519         (equal): Use isnand instead of isnan.
44520         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44521         isnand-nolibm.
44522         * NEWS: Mention the change.
44523
44524 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44525             Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44528         the GCC builtins for signbits are present and set
44529         REPLACE_SIGNBIT_USING_GCC if so.
44530         * lib/math.in.h (signbit): Define using GCC builtins if
44531         REPLACE_SIGNBIT_USING_GCC is set.
44532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44533         REPLACE_SIGNBIT_USING_GCC.
44534         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44535
44536 2008-01-25  Jim Meyering  <meyering@redhat.com>
44537
44538         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44539         * lib/poll.c: Include <config.h>, not "config.h".
44540         * tests/test-getaddrinfo.c: Likewise.
44541
44542 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44543
44544         * modules/sockets-tests: New file.
44545
44546 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44547
44548         * modules/sockets: New module, can be used to call WSA_Startup and
44549         WSA_Cleanup when needed.
44550
44551         * lib/sockets.h, lib/sockets.c: New files.
44552
44553         * m4/sockets.m4: New file.
44554
44555         * tests/test-sockets.c: New file.
44556
44557 2008-01-19  Bruno Haible  <bruno@clisp.org>
44558
44559         * doc/posix-headers: Renamed from doc/headers.
44560         * doc/posix-functions: Renamed from doc/functions.
44561         * doc/gnulib.texi: Update.
44562
44563 2008-01-19  Bruno Haible  <bruno@clisp.org>
44564
44565         * doc/glibc-functions/strcasestr.texi: Include contents of
44566         doc/functions/strcasestr.texi, fixing the list of platforms.
44567         * doc/functions/strcasestr.texi: Remove file.
44568
44569 2008-01-19  Bruno Haible  <bruno@clisp.org>
44570
44571         * doc/glibc-functions/memmem.texi: Include contents of
44572         doc/functions/memmem.texi.
44573         * doc/functions/memmem.texi: Remove file.
44574
44575 2008-01-18  Bruno Haible  <bruno@clisp.org>
44576
44577         * doc/glibc-functions/*.texi: New files.
44578         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44579         to use the new files.
44580
44581 2008-01-17  Bruno Haible  <bruno@clisp.org>
44582
44583         * tests/test-gethostname.c (main): Fix printf statement.
44584
44585 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44586
44587         * modules/gethostname-tests: New file.
44588
44589         * tests/test-gethostname.c: New file.
44590
44591 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44592
44593         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44594         used by the UNAME case.  Reported by Bruno Haible
44595         <bruno@clisp.org>.
44596
44597 2008-01-17  Eric Blake  <ebb9@byu.net>
44598
44599         Convert c-strcasestr to be more efficient.
44600         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44601         (Depends-on): Add c-strcase, remove malloca, strnlen.
44602         * tests/test-c-strcasestr.c (main): Enhance test.
44603         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44604
44605 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44606
44607         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44608         Use it in creating po/Makevars.
44609
44610 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44611
44612         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44613         Applications that requires it should initialize libgcrypt
44614         manually.
44615
44616 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44617
44618         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44619
44620 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44621
44622         Fix problem with getdate on mingw32 reported by Simon Josefsson
44623         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44624         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44625         tzname", when deciding whether to declare tzname.
44626         * lib/strftime.c (tzname): Likewise.
44627
44628 2008-01-15  Bruno Haible  <bruno@clisp.org>
44629
44630         Work around a MacOS X 10.5 bug in frexpl().
44631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44632         * doc/functions/frexpl.texi: Document the bug.
44633         Reported by Elias Pipping <pipping@gentoo.org>.
44634
44635 2008-01-14  Eric Blake  <ebb9@byu.net>
44636
44637         Touch up previous patch.
44638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44639         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44640
44641         Convert strcasestr module to use Two-Way algorithm.
44642         * modules/strcasestr-simple: New module, based on the old
44643         strcasestr, but with Two-Way rather than KMP.
44644         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44645         * lib/string.in.h (rpl_strcasestr): Declare.
44646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44647         performance.
44648         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44649         * modules/string (Makefile.am): Support strcasestr.
44650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44651         * modules/strcasestr-tests (Depends-on): Check for alarm.
44652         * tests/test-strcasestr.c: Augment test.
44653         * lib/str-two-way.h: Clean up stray macro.
44654         * NEWS: Document new module.
44655         * MODULES.html.sh (string handling): Likewise.
44656         * doc/functions/strcasestr.texi: New file.
44657         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44658         here, since it is not a POSIX function.
44659
44660 2008-01-14  Colin Watson  <cjwatson@debian.org>
44661             Bruno Haible  <bruno@clisp.org>
44662
44663         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44664         works fine; if not, set REPLACE_STRSIGNAL.
44665         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44667         REPLACE_STRSIGNAL.
44668         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44669         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44670         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44671
44672 2008-01-14  Bruno Haible  <bruno@clisp.org>
44673
44674         * modules/strsignal (Include): Change to <string.h>.
44675
44676 2008-01-14  Colin Watson  <cjwatson@debian.org>
44677
44678         * modules/argp (Notice): Add a notice recommending to change
44679         XGETTEXT_OPTIONS.
44680         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44681
44682 2008-01-13  Colin Watson  <cjwatson@debian.org>
44683
44684         * modules/strsignal-tests: New file.
44685         * tests/test-strsignal.c: New file.
44686
44687         * lib/strsignal.c: New file, from glibc with modifications.
44688         * lib/siglist.h: New file, from glibc with modifications.
44689         * lib/string.in.h (strsignal): New declaration.
44690         * m4/strsignal.m4: New file.
44691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44692         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44693         * modules/strsignal: New file.
44694         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44695         HAVE_DECL_STRSIGNAL.
44696
44697 2008-01-13  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44700         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44701         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44703
44704 2008-01-13  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44707         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44708         * lib/argp.h (__attribute__): Likewise.
44709         * lib/c-stack.c (__attribute__): Likewise.
44710         * lib/error.h (__attribute__): Likewise.
44711         * lib/fts.c (__attribute__): Likewise.
44712         * lib/openat.h (__attribute__): Likewise.
44713         * lib/stdio.in.h (__attribute__): Likewise.
44714         * lib/string.in.h (__attribute__): Likewise.
44715         * lib/utimens.c (__attribute__): Likewise.
44716         * lib/vasnprintf.h (__attribute__): Likewise.
44717         * lib/xalloc.h (__attribute__): Likewise.
44718         * lib/xprintf.h (__attribute__): Likewise.
44719         * lib/xstrtol.h (__attribute__): Likewise.
44720         * lib/xvasprintf.h (__attribute__): Likewise.
44721
44722 2008-01-12  Bruno Haible  <bruno@clisp.org>
44723
44724         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44725         * doc/glibc-headers/a.out.texi: New file.
44726         * doc/glibc-headers/aliases.texi: New file.
44727         * doc/glibc-headers/alloca.texi: New file.
44728         * doc/glibc-headers/ar.texi: New file.
44729         * doc/glibc-headers/argp.texi: New file.
44730         * doc/glibc-headers/argz.texi: New file.
44731         * doc/glibc-headers/byteswap.texi: New file.
44732         * doc/glibc-headers/crypt.texi: New file.
44733         * doc/glibc-headers/endian.texi: New file.
44734         * doc/glibc-headers/envz.texi: New file.
44735         * doc/glibc-headers/err.texi: New file.
44736         * doc/glibc-headers/error.texi: New file.
44737         * doc/glibc-headers/execinfo.texi: New file.
44738         * doc/glibc-headers/fpu_control.texi: New file.
44739         * doc/glibc-headers/fstab.texi: New file.
44740         * doc/glibc-headers/fts.texi: New file.
44741         * doc/glibc-headers/getopt.texi: New file.
44742         * doc/glibc-headers/ieee754.texi: New file.
44743         * doc/glibc-headers/ifaddrs.texi: New file.
44744         * doc/glibc-headers/libintl.texi: New file.
44745         * doc/glibc-headers/mcheck.texi: New file.
44746         * doc/glibc-headers/mntent.texi: New file.
44747         * doc/glibc-headers/obstack.texi: New file.
44748         * doc/glibc-headers/paths.texi: New file.
44749         * doc/glibc-headers/printf.texi: New file.
44750         * doc/glibc-headers/pty.texi: New file.
44751         * doc/glibc-headers/resolv.texi: New file.
44752         * doc/glibc-headers/shadow.texi: New file.
44753         * doc/glibc-headers/sysexits.texi: New file.
44754         * doc/glibc-headers/ttyent.texi: New file.
44755
44756 2008-01-12  Jim Meyering  <meyering@redhat.com>
44757
44758         announce-gen: emit Gnulib's git-based version string.
44759         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44760         New option --gnulib-version=V, where V is expected to be
44761         the output of running git describe in the gnulib directory.
44762         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44763         not useful, and plan to stop publishing an xdelta file with each
44764         coreutils release.
44765
44766         * build-aux/announce-gen: Also check for lzma-compressed files.
44767
44768 2008-01-11  Bruno Haible  <bruno@clisp.org>
44769
44770         * tests/test-memmem.c (main): Increase maximum allowed time.
44771         * tests/test-strstr.c (main): Likewise.
44772
44773 2008-01-11  Bruno Haible  <bruno@clisp.org>
44774
44775         * doc/functions/memmem.texi: Add more precisions about platforms.
44776         * doc/functions/strstr.texi: Likewise.
44777
44778 2008-01-10  Eric Blake  <ebb9@byu.net>
44779
44780         * m4/strstr.m4: Delete cruft from copy-n-paste.
44781         Reported by Bruno Haible.
44782
44783 2008-01-10  Bruno Haible  <bruno@clisp.org>
44784
44785         Make c-strstr rely on strstr.
44786         * lib/c-strstr.c: Don't include str-kmp.h.
44787         (c_strstr): Define in terms of strstr.
44788         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44789         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44790
44791 2008-01-10  Bruno Haible  <bruno@clisp.org>
44792
44793         * doc/gnulib.texi (String Functions in C Locale): New section.
44794         * doc/c-ctype.texi: New file.
44795         * doc/c-strcase.texi: New file.
44796         * doc/c-strcaseeq.texi: New file.
44797         * doc/c-strcasestr.texi: New file.
44798         * doc/c-strstr.texi: New file.
44799         * doc/c-strtod.texi: New file.
44800         * doc/c-strtold.texi: New file.
44801
44802 2008-01-10  Eric Blake  <ebb9@byu.net>
44803
44804         * lib/relocatable.h: Fix a comment.
44805
44806 2008-01-10  Eric Blake  <ebb9@byu.net>
44807
44808         Share two-way algorithm.
44809         * lib/str-two-way.h: New file, merged from...
44810         * lib/memmem.c: ...here...
44811         * lib/strstr.c: ...and here.
44812         * modules/memmem (Files): Use it.
44813         * modules/strstr (Files): Likewise.
44814
44815         Avoid quadratic strstr implementations.
44816         * lib/strstr.c: New file.
44817         * m4/strstr.m4: Likewise.
44818         * modules/strstr: Likewise.
44819         * modules/strstr-tests: Likewise.
44820         * tests/test-strstr.c: Likewise.
44821         * lib/string.in.h (rpl_strstr): Declare.
44822         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44824         * modules/string (Makefile.am): Likewise.
44825         * MODULES.html.sh (string handling): Mention new module.
44826         * doc/functions/strstr.texi (strstr): Document the bug.
44827
44828 2008-01-10  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/relocatable.h (relocate): State whether result is freshly
44831         allocated or not.
44832         * lib/relocatable.c (relocate): Return a freshly allocated string
44833         instead of a pointer to a privately held string.
44834         Reported by Sylvain Beucler <beuc@gnu.org>.
44835
44836 2008-01-10  Colin Watson  <cjwatson@debian.org>
44837
44838         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44839         s/S_ISNLK/S_ISLNK/.
44840
44841 2008-01-09  Bruno Haible  <bruno@clisp.org>
44842
44843         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44844         and other files.
44845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44846         if it's only a guess.
44847         * modules/memmem: Simplify by depending on memmem-simple.
44848
44849 2008-01-09  Bruno Haible  <bruno@clisp.org>
44850
44851         Work around OpenBSD 4.0 tdelete() bug.
44852         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44853         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44854         macros and don't redefine the enum values.
44855         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44856         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44857         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44858
44859 2008-01-09  Bruno Haible  <bruno@clisp.org>
44860
44861         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44862         (main): Don't perform the tests if setlocale did not install a UTF-8
44863         locale. Needed on OpenBSD 4.0.
44864         * modules/wcwidth-tests (Depends-on): Add localcharset.
44865
44866 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44867
44868         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44869         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44870         * NEWS: announce this.
44871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44872
44873 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44874         and Eric Blake  <ebb9@byu.net>
44875
44876         Add memmem-simple module.
44877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44878         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44879         * modules/memmem-simple: New file.
44880         * modules/memmem (Description): Tweak.
44881         * MODULES.html.sh (string handling): Mention new module.
44882         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44883         addressed by memmem-simple.
44884         * NEWS: Document the difference.
44885
44886 2008-01-09  Eric Blake  <ebb9@byu.net>
44887
44888         Give gcc some memmem optimization hints.
44889         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44890         (strcasestr): Declare as pure.
44891         * modules/memmem (Maintainer): Claim my implementation.
44892
44893 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44894
44895         Support AIX 6.1 and higher.
44896         * build-aux/config.libpath: Likewise.
44897         * build-aux/config.rpath: Likewise.
44898
44899 2008-01-08  Jim Meyering  <meyering@redhat.com>
44900             Bruno Haible  <bruno@clisp.org>
44901
44902         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44903         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44904         Reported by Peter Fales in
44905         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44906
44907 2008-01-08  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/unictype/category-of (Depends-on): Add
44910         unictype/category-none.
44911         * modules/unictype/category-and-tests (Depends-on): Add
44912         unictype/category-{L,N,Lu,Nd}.
44913         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44914         * modules/unictype/category-or-tests (Depends-on): Add
44915         unictype/category-{L,N}.
44916         * modules/unictype/category-name-tests (Depends-on): Add
44917         unictype/category-{Z,Nl}.
44918         Reported by Simon Josefsson.
44919
44920 2008-01-08  Bruno Haible  <bruno@clisp.org>
44921
44922         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44923         convention better.
44924         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44925         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44926         Reported by Peter Miller <millerp@canb.auug.org.au>.
44927
44928 2008-01-08  Eric Blake  <ebb9@byu.net>
44929
44930         Rewrite memmem to guarantee linear complexity without malloc.
44931         * lib/memmem.c (memmem): Use Two-Way rather than
44932         Knuth-Morris-Pratt, to allow O(1) space usage.
44933         (critical_factorization, two_way_short_needle)
44934         (two_way_long_needle): New functions.
44935         (knuth_morris_pratt): Delete.
44936         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44937         Add stdint.
44938         * tests/test-memmem.c (main): Add tests for periodic needle and
44939         sublinear performance.
44940         * doc/functions/memmem.texi (memmem): Document other deficiencies
44941         in cygwin and older glibc.
44942
44943 2008-01-08  Bruno Haible  <bruno@clisp.org>
44944
44945         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44946         augmentation.
44947
44948 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44949
44950         Add a configure time option: --disable-acl.
44951         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44952         AC_ARG_ENABLE(acl).
44953
44954 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44955
44956         * tests/test-localename.c: Don't include obsolete "setenv.h".
44957
44958         * modules/localename-tests (Depends-on): Need unsetenv.
44959
44960 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44961
44962         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44963
44964 2008-01-06  Colin Watson  <cjwatson@debian.org>
44965
44966         * users.txt: Add man-db.
44967
44968 2008-01-07  Bruno Haible  <bruno@clisp.org>
44969
44970         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44971         previous section name.
44972
44973 2008-01-07  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/progname.c (set_program_name): Don't strip off a leading
44976         "lt-" prefix outside a .libs directory.
44977         Suggested by Paul Eggert.
44978
44979 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44980             Bruno Haible  <bruno@clisp.org>
44981
44982         Improve memory cleanup in 'relocatable' module.
44983         * lib/relocatable.h (compute_curr_prefix): Change return type to
44984         'char *'.
44985         * lib/relocatable.c (compute_curr_prefix): Change return type to
44986         'char *'. Free curr_installdir after use.
44987         (relocate): Free curr_prefix_better after use.
44988         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44989
44990 2008-01-01  Bruno Haible  <bruno@clisp.org>
44991
44992         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44993         failure on older glibc systems.
44994         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44995
44996 2008-01-05  Eric Blake  <ebb9@byu.net>
44997
44998         Avoid quadratic system memmem.
44999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45000         Reported by Ralf Wildenhues.
45001
45002         Fix memmem test for mingw.
45003         * modules/memmem-tests (configure.ac): Check for alarm.
45004         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45005         it.
45006         * doc/functions/memmem.texi: New file.
45007         * doc/gnulib.texi (Function Substitutes): Add memmem.
45008         Reported by Bruno Haible.
45009
45010 2008-01-04  Bruno Haible  <bruno@clisp.org>
45011
45012         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45013         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45014         gl_HEADER_STRING_H_DEFAULTS.
45015
45016 2008-01-04  Eric Blake  <ebb9@byu.net>
45017
45018         Shorten duration of memmem test.
45019         * tests/test-memmem.c (main): Use alarm to declare failure if test
45020         is taking too long.
45021         Reported by Ralf Wildenhues.
45022
45023 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45024
45025         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45026         string, needed by strerror.
45027
45028 2008-01-03  Colin Watson  <cjwatson@debian.org>
45029             Bruno Haible  <bruno@clisp.org>
45030
45031         * doc/gnulib-tool.texi (Localization): New section.
45032
45033 2008-01-02  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45036         variables to 'unsigned char *' type.
45037         Reported by Paul Eggert.
45038
45039 2008-01-02  Jim Meyering  <jim@meyering.net>
45040
45041         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45042
45043 2007-12-31  Jim Meyering  <jim@meyering.net>
45044
45045         Avoid use of private FTS type name.
45046         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45047
45048 2007-12-30  Karl Berry  <karl@gnu.org>
45049
45050         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45051         work around defect in Texinfo and/or the standalone Info browser.
45052
45053 2007-12-30  Bruno Haible  <bruno@clisp.org>
45054
45055         Unify 5 copies of the KMP code.
45056         * lib/str-kmp.h: New file.
45057         * lib/c-strcasestr.c: Include str-kmp.h.
45058         (knuth_morris_pratt): Remove function.
45059         (c_strcasestr): Update.
45060         * lib/c-strstr.c: Include str-kmp.h.
45061         (knuth_morris_pratt): Remove function.
45062         (c_strcasestr): Update.
45063         * lib/mbscasestr.c: Include str-kmp.h.
45064         (knuth_morris_pratt_unibyte): Remove function.
45065         * lib/mbsstr.c: Include str-kmp.h.
45066         (knuth_morris_pratt_unibyte): Remove function.
45067         * lib/strcasestr.c: Include str-kmp.h.
45068         (knuth_morris_pratt): Remove function.
45069         (strcasestr): Update.
45070         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45071         * modules/c-strstr (Files): Likewise.
45072         * modules/mbscasestr (Files): Likewise.
45073         * modules/mbsstr (Files): Likewise.
45074         * modules/strcasestr (Files): Likewise.
45075         Suggested by Paul Eggert.
45076
45077 2007-12-30  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45080         defined.
45081
45082 2007-12-30  Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/xmalloca.h: Include xalloc.h.
45085         (xnmalloca): New macro.
45086
45087 2007-12-30  Bruno Haible  <bruno@clisp.org>
45088
45089         * lib/malloca.h (nmalloca): New macro.
45090         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45091         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45092         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45093         knuth_morris_pratt_multibyte): Likewise.
45094         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45095         knuth_morris_pratt_multibyte): Likewise.
45096         * lib/memmem.c (knuth_morris_pratt): Likewise.
45097         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45098
45099 2007-12-25  Bruno Haible  <bruno@clisp.org>
45100
45101         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45102         * lib/glob.c: Don't include openat.h.
45103         (link_exists2_p): Add back the code that deals with the
45104         !GLOB_ALTDIRFUNC case.
45105         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45106         let it do the filename concatenation.
45107         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45108         * modules/glob (Depends-on): Remove openat.
45109
45110 2007-12-31  Bruno Haible  <bruno@clisp.org>
45111
45112         * modules/dirfd (License): Change to LGPLv2+.
45113         Approved by Jim Meyering.
45114
45115 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45118         when multiplying M by sizeof (size_t).
45119
45120 2007-12-10  Martin Lambers  <marlam@marlam.de>
45121
45122         Override getpagesize on mingw.
45123         * lib/getpagesize.c: New file.
45124         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45125         * modules/getpagesize (Files): Add lib/getpagesize.c.
45126         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45128         REPLACE_GETPAGESIZE.
45129         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45130
45131 2007-12-25  Bruno Haible  <bruno@clisp.org>
45132
45133         * modules/localcharset (Notice): New field.
45134         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45135         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45136
45137 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45138             Bruno Haible  <bruno@clisp.org>
45139
45140         Avoid using the syntax symbol() in formatted documentation.
45141         * MODULES.html.sh (func_module): When replacing symbol() with a
45142         hyperlink, remove the parentheses. Show an error if some remain.
45143         Recognize and render the '...' syntax.
45144         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45145         Rework. Add paragraph about GCC's inlining.
45146         * doc/alloca.texi: Likewise.
45147         * doc/error.texi: Remove parentheses from symbol reference.
45148         * doc/gnulib-intro.texi: Likewise.
45149         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45150         * modules/fnmatch (Description): Reword to say "the ... function".
45151         * modules/full-read (Description): Likewise.
45152         * modules/full-write (Description): Likewise.
45153         * modules/safe-read (Description): Likewise.
45154         * modules/safe-write (Description): Likewise.
45155         * modules/strchrnul (Description): Likewise.
45156         * modules/trim (Description): Likewise.
45157         * modules/error (Description): Remove parentheses from symbol
45158         references.
45159         * modules/verror (Description): Likewise.
45160         Reported by Karl Berry.
45161
45162 2007-12-25  Bruno Haible  <bruno@clisp.org>
45163
45164         Fixup after 2007-10-16 commit.
45165         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45166
45167 2007-12-24  Bruno Haible  <bruno@clisp.org>
45168
45169         Make --enable-relocatable work with DESTDIR.
45170         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45171         to compute installdir from destprog.
45172         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45173         also set the RELOC_DESTDIR variable.
45174         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45175
45176 2007-12-24  Bruno Haible  <bruno@clisp.org>
45177
45178         Fix link error due to xalloc_die().
45179         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45180         of xreadlink.
45181         * lib/relocwrapper.c: Update comments.
45182         * build-aux/install-reloc: Remove xreadlink.c from file list.
45183         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45184         xreadlink.c.
45185         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45186
45187 2007-12-24  Bruno Haible  <bruno@clisp.org>
45188
45189         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45190         * lib/setenv.h: Remove file.
45191         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45192         lib/setenv.h.
45193         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45194         (Depends-on): Add stdlib.
45195         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45196         gl_FUNC_UNSETENV.
45197         (Include): Replace setenv.h with <stdlib.h>.
45198         * modules/unsetenv: New file.
45199         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45200         * lib/unsetenv.c: Include <stdlib.h> first.
45201         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45202         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45203         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45204         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45205         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45206         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45208         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45209         * doc/functions/unsetenv.texi: Update.
45210         * modules/xsetenv (Depends-on): Add unsetenv.
45211         * modules/getdate (Depends-on): Likewise.
45212         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45213         * lib/xsetenv.c: Don't include setenv.h.
45214         * lib/getdate.y: Likewise.
45215         * lib/relocwrapper.c: Likewise.
45216         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45217         (Depends-on): Add stdlib.
45218         * NEWS: Mention the changes.
45219         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45220
45221 2007-12-23  Bruno Haible  <bruno@clisp.org>
45222
45223         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45224         indentation.
45225
45226 2007-12-23  Bruno Haible  <bruno@clisp.org>
45227
45228         * lib/c-strcasestr.c: Add more comments.
45229         * lib/c-strstr.c: Likewise.
45230         * lib/mbscasestr.c: Likewise.
45231         * lib/mbsstr.c: Likewise.
45232         * lib/strcasestr.c: Likewise.
45233         * lib/memmem.c: Likewise.
45234
45235 2007-12-23  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-memmem.c: Include <string.h> first.
45238
45239 2007-12-22  Bruno Haible  <bruno@clisp.org>
45240
45241         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45242         the contents of $testsbase.
45243         Reported by Ralf Wildenhues.
45244
45245 2007-12-22  Bruno Haible  <bruno@clisp.org>
45246
45247         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45248         two variables local_ldadd_before, local_ldadd_last.
45249
45250 2007-12-20  Eric Blake  <ebb9@byu.net>
45251
45252         Work around circular library issue when cross-compiling.
45253         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45254         that progname.o does not need to pull in rpl_memcmp.
45255
45256 2007-12-19  Eric Blake  <ebb9@byu.net>
45257
45258         Fix memmem to avoid O(n^2) worst-case complexity.
45259         * lib/memmem.c (knuth_morris_pratt): New function.
45260         (memmem): Use it if first few naive iterations fail.
45261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45262         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45263         * modules/memchr (License): Likewise.
45264         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45265         malloca.
45266         * tests/test-memmem.c: Rewrite, borrowing ideas from
45267         test-mbsstr1.c; the old version wouldn't even compile!
45268         * modules/memmem-tests: New file.
45269         * lib/string.in.h (rpl_memmem): Add declaration.
45270         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45272         REPLACE_MEMMEM.
45273
45274 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45277         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45278         before any system include files, and undef after them all.  This
45279         should fix a problem on VMS reported by John E. Malmberg in
45280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45281
45282 2007-12-17  Eric Blake  <ebb9@byu.net>
45283
45284         Revert addition of verify, for BSD/OS.
45285         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45286         can't handle large files, for the sake of obsolete platforms.
45287         * modules/fseeko (Depends-on): Remove verify.
45288         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45289         * doc/functions/ftello.texi (ftello): Likewise.
45290         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45291         Reported by Larry Jones.
45292
45293 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45294
45295         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45296         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45297
45298 2007-12-17  Jim Meyering  <meyering@redhat.com>
45299
45300         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45301         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45302         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45303         * modules/getcwd (Depends-on): Add openat.
45304         Reported by Petr Salinger.
45305
45306 2007-12-17  Bruno Haible  <bruno@clisp.org>
45307
45308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45309         avoid a segmentation fault of the configure test on x86_64 systems.
45310
45311 2007-12-15  Jim Meyering  <meyering@redhat.com>
45312
45313         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45314
45315 2007-12-13  Eric Blake  <ebb9@byu.net>
45316
45317         Another fseek test.
45318         * tests/test-fseek.c (main): Also test ungetc handling.
45319         * tests/test-fseeko.c (main): Likewise.
45320         * modules/fseeko (Depends-on): Add verify.
45321         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45322         large.
45323         Reported by Larry Jones.
45324
45325         Fix fseeko on mingw.
45326         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45327         seek.
45328
45329         Beef up fseek tests.
45330         * tests/test-fseek.c (main): Also test eof handling.
45331         * tests/test-fseeko.c (main): Likewise.
45332         Reported by Larry Jones.
45333
45334 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45335
45336         Fix fseeko on BSD-based platforms.
45337         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45338         successful seek.
45339
45340 2007-12-12  Eric Blake  <ebb9@byu.net>
45341
45342         Allow circular dependency of separate libtests.a
45343         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45344         when use_libtests.
45345
45346 2007-12-11  Eric Blake  <ebb9@byu.net>
45347
45348         Fix bug with -0.0L in previous patch.
45349         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45350         * tests/test-isnan.c (main): Also test on zeroes.
45351         * tests/test-isnanf.c (main): Likewise.
45352         * tests/test-isnanl.h (main): Likewise.
45353
45354         Detect pseudo-denormals on x86 even when cross-compiling.
45355         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45356         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45357         invalid bit patterns that happen to satisfy ==.
45358
45359         Avoid link failures with separate libtests.a.
45360         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45361         last, to satisfy circular dependencies.
45362
45363 2007-12-11  Eric Blake  <ebb9@byu.net>
45364         and Bruno Haible  <bruno@clisp.org>
45365
45366         Fix OpenBSD 4.0 <float.h> handling of long double.
45367         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45368         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45369         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45370
45371 2007-12-11  Jim Meyering  <meyering@redhat.com>
45372
45373         * users.txt: Add libvirt.
45374
45375         Support versions of autoconf prior to 2.59c.
45376         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45377         if it is not already defined.
45378
45379 2007-12-09  Bruno Haible  <bruno@clisp.org>
45380
45381         Let 'gnulib-tool --import' collect sources needed for the tests in
45382         tests/ rather than in lib/.
45383         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45384         argument. If true, add rules to generate libtests.a, and put libtests.a
45385         into $(LDADD). Consider source files in subdirectories and set
45386         uses_subdirs.
45387         (func_emit_initmacro_start, func_emit_initmacro_end,
45388         func_emit_initmacro_done): Pass all arguments explicitly.
45389         (func_import): Determine two module lists main_modules,
45390         testsrelated_modules. Determine use_libtests. Determine two variables
45391         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45392         instead of just sed_transform_lib_file. Determine two variables
45393         main_files and testsrelated_files. Compute 'files' as the union of
45394         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45395         func_add_or_update. In the generated gnulib-comp.m4, collect the
45396         object files for tests/ in different variables than those for lib/.
45397         Substitute LIBTESTS_LIBDEPS.
45398         (func_create_testdir): Combine the uses_subdirs results from
45399         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45400
45401 2007-12-09  Bruno Haible  <bruno@clisp.org>
45402
45403         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45404         the build-aux directory.
45405
45406 2007-12-09  Bruno Haible  <bruno@clisp.org>
45407
45408         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45409         introduced on 2006-09-09.
45410
45411 2007-12-07  Jim Meyering  <meyering@redhat.com>
45412
45413         Let these macros work also with autoconf-2.59.
45414         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45415         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45416         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45417
45418 2007-12-06  Jim Meyering  <meyering@redhat.com>
45419
45420         Avoid a configure-time syntax error in gl_FUNC_ACL.
45421         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45422         function in each branch, before testing the cache variable.
45423
45424 2007-12-04  Eric Blake  <ebb9@byu.net>
45425
45426         Make scripts executable.
45427         * build-aux/config.guess: Add execute permissions.
45428         * build-aux/config.sub: Likewise.
45429         * build-aux/gendocs.sh: Likewise.
45430
45431         Fix frexp on mingw.
45432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45433         cross-compiling.
45434         * doc/functions/frexp.texi (frexp): Document the bug.
45435
45436         Make cygwin fseeko check more reliable.
45437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45438         version numbers, rather than unrelated feature check.
45439         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45440         * doc/functions/ftello.texi (ftello): Likewise.
45441         Reported by Bruno Haible.
45442
45443         * m4/strerror.m4: Bump version number.
45444
45445 2007-12-03  Bruno Haible  <bruno@clisp.org>
45446
45447         * doc/functions/mprotect.texi: Mention the mingw problem.
45448
45449 2007-12-03  Eric Blake  <ebb9@byu.net>
45450
45451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45452         REPLACE_STRERROR is initialized before this macro.
45453
45454 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45455
45456         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45457         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45458         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45459         put -lsec in even for programs other than 'ls'.  This fixes a problem
45460         for gettext reported by Bruno Haible in
45461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45462         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45463         Add support for Solaris 10.  This isn't efficient, but should get the
45464         job done for now.
45465
45466 2007-12-03  James Youngman  <jay@gnu.org>
45467
45468         * doc/regexprops-generic.texi: change "an close-group" to "a
45469         close-group" and "illegal" to "not allowed".
45470
45471 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45472
45473         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45474         pr_byname.h. Needed for the rare case when the maintainer has done
45475         "make maintainer-clean" in the source directory and then attempts a
45476         build outside the source directory.
45477         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45478         scripts_byname.h.
45479
45480 2007-12-02  Martin Lambers <marlam@marlam.de>
45481             Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/getpagesize.h: Remove file.
45484         * lib/unistd.in.h: Include declaration of getpagesize here.
45485         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45486         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45487         HAVE_SYS_PARAM_H.
45488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45489         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45490         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45491         (Depends-on): Add unistd.
45492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45493         (Include): Use <unistd.h> instead of getpagesize.h.
45494         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45495         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45496         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45497         gl_GETPAGESIZE invocation, already handled by module dependency.
45498         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45499
45500 2007-12-02  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/strings-tests: New file.
45503         * tests/test-strings.c: New file.
45504
45505         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45506         * lib/strings.in.h: New file.
45507         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45508         * m4/strings_h.m4: New file.
45509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45510         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45511         * modules/strings: New file.
45512         * modules/string (Makefile.am): Update.
45513         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45514         Reported by Karl Berry.
45515
45516 2007-12-01  Eric Blake  <ebb9@byu.net>
45517
45518         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45519         accomodate fix in cygwin 1.5.25.
45520
45521 2007-12-01  Jim Meyering  <meyering@redhat.com>
45522
45523         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45524         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45525         that would inhibit utf8-optimization of a regexp containing line-
45526         or buffer-anchors, e.g., `^', `$'.
45527
45528 2007-11-30  Bruno Haible  <bruno@clisp.org>
45529
45530         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45531         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45532         glthread_recursive_lock_init.
45533         * lib/lock.c (glthread_recursive_lock_init)
45534         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45536
45537 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45538
45539         New function qset_acl, like set_acl but with syscall semantics.
45540         * lib/acl.h (qset_acl): New decl.
45541         * lib/acl.c (qset_acl): New function.
45542         (set_acl): Use new function.  Use more-consistent diagnostics.
45543
45544 2007-11-28  Jim Meyering  <meyering@redhat.com>
45545
45546         * modules/physmem (License): Change from GPL to LGPLv2+.
45547
45548 2007-11-26  Bruno Haible  <bruno@clisp.org>
45549
45550         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45551         'long double' type has excess precision.
45552         Reported by Jim Meyering in
45553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45554
45555 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45556
45557         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45558         Sync from <http://gnu.org/licenses>.
45559         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45560         with license text from same location.
45561         * doc/maintain.texi, doc/standards.texi:  Sync from
45562         <http://savannah.gnu.org/projects/gnustandards>.
45563
45564 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45565         and Jim Meyering  <meyering@redhat.com>
45566
45567         Adjust getdate' grammar to accept a slightly more regular language.
45568         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45569         Before, the former was rejected.
45570         * lib/getdate.y (digits_to_date_time): New function, factored
45571         out of ...
45572         (number): ...here.  Just call digits_to_date_time.
45573         (hybrid): New non-terminal to handle an <unsigned number,
45574         signed relative offset> sequence consistently.
45575
45576 2007-11-18  Jim Meyering  <meyering@redhat.com>
45577
45578         Pull my changes from coreutils:
45579         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45580         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45581         use of $gnulib_tool_option_extras, so that it's separated from the
45582         preceding argument.
45583
45584         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45585         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45586         parent destination directories before copying a file into place.
45587
45588 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45589
45590         bootstrap: work also with 4-argument variant of AC_INIT
45591         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45592
45593 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45594
45595         Port test-getaddrinfo to Solaris.
45596         Problem reported by Bruno Haible in
45597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45598         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45599         explanation of setting 'hints'.
45600         Don't reject an implementation merely because it returns EAI_SERVICE.
45601         (EAI_SERVICE): Define to 0 if not defined.
45602
45603 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45604
45605         The license of gnu-make and posix-shell is now "GPLed build tool".
45606         * modules/gnu-make (License): Likewise.
45607         * modules/posix-shell (License): Likewise.
45608
45609         New module posix-shell, for determining a POSIX shell
45610         or perhaps something that is close enough to a POSIX shell.
45611         * m4/posix-shell.m4: New file.
45612         * modules/posix-shell: New file.
45613
45614         * MODULES.html.sh: Mention new module.
45615
45616         New module gnu-make, for determining whether we're using GNU Make.
45617         * m4/gnu-make.m4: New file.
45618         * modules/gnu-make: New file.
45619         * MODULES.html.sh: Mention new module.
45620
45621 2007-11-14  Jim Meyering  <meyering@redhat.com>
45622
45623         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45624         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45625         use this macro to create a function _definition_.
45626         Remove useless "#undef ARGMATCH_DIE".
45627
45628 2007-11-14  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/config.charset: Update for OpenBSD 4.1.
45631         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45632
45633 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45634
45635         Document 64-bit #if problems in stdint.texi.
45636         * doc/headers/stdint.texi (stdint.h): Mention problems with
45637         64-bit-#if, and how to work around them.
45638
45639         Don't insist on 'long long int' support in the preprocessor.  It
45640         breaks too many things.  For example, PRIdMAX still uses a 'long
45641         long int' format with the latest Sun compiler, even though
45642         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45643         preprocessor problem.  This causes the latest coreutils to dump
45644         core on Solaris 10 sparc with the Sun C compiler.
45645         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45646         the troublesome expressions at configure-time, not at #if-time.
45647         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45648         preprocessor.
45649         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45650         compile-time C checks, done at 'configure'-time.
45651         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45652         * modules/inttypes (Makefile): Substitute the new symbols that
45653         gl_INTTYPES_H now generates.
45654         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45655
45656 2007-11-12  Bruno Haible  <bruno@clisp.org>
45657
45658         Tests for Unicode character classification functions.
45659
45660         * modules/unictype/bidicategory-byname-tests: New file.
45661         * modules/unictype/bidicategory-name-tests: New file.
45662         * modules/unictype/bidicategory-of-tests: New file.
45663         * modules/unictype/bidicategory-test-tests: New file.
45664         * modules/unictype/block-list-tests: New file.
45665         * modules/unictype/block-of-tests: New file.
45666         * modules/unictype/block-test-tests: New file.
45667         * modules/unictype/category-C-tests: New file.
45668         * modules/unictype/category-Cc-tests: New file.
45669         * modules/unictype/category-Cf-tests: New file.
45670         * modules/unictype/category-Cn-tests: New file.
45671         * modules/unictype/category-Co-tests: New file.
45672         * modules/unictype/category-Cs-tests: New file.
45673         * modules/unictype/category-L-tests: New file.
45674         * modules/unictype/category-Ll-tests: New file.
45675         * modules/unictype/category-Lm-tests: New file.
45676         * modules/unictype/category-Lo-tests: New file.
45677         * modules/unictype/category-Lt-tests: New file.
45678         * modules/unictype/category-Lu-tests: New file.
45679         * modules/unictype/category-M-tests: New file.
45680         * modules/unictype/category-Mc-tests: New file.
45681         * modules/unictype/category-Me-tests: New file.
45682         * modules/unictype/category-Mn-tests: New file.
45683         * modules/unictype/category-N-tests: New file.
45684         * modules/unictype/category-Nd-tests: New file.
45685         * modules/unictype/category-Nl-tests: New file.
45686         * modules/unictype/category-No-tests: New file.
45687         * modules/unictype/category-P-tests: New file.
45688         * modules/unictype/category-Pc-tests: New file.
45689         * modules/unictype/category-Pd-tests: New file.
45690         * modules/unictype/category-Pe-tests: New file.
45691         * modules/unictype/category-Pf-tests: New file.
45692         * modules/unictype/category-Pi-tests: New file.
45693         * modules/unictype/category-Po-tests: New file.
45694         * modules/unictype/category-Ps-tests: New file.
45695         * modules/unictype/category-S-tests: New file.
45696         * modules/unictype/category-Sc-tests: New file.
45697         * modules/unictype/category-Sk-tests: New file.
45698         * modules/unictype/category-Sm-tests: New file.
45699         * modules/unictype/category-So-tests: New file.
45700         * modules/unictype/category-Z-tests: New file.
45701         * modules/unictype/category-Zl-tests: New file.
45702         * modules/unictype/category-Zp-tests: New file.
45703         * modules/unictype/category-Zs-tests: New file.
45704         * modules/unictype/category-and-not-tests: New file.
45705         * modules/unictype/category-and-tests: New file.
45706         * modules/unictype/category-byname-tests: New file.
45707         * modules/unictype/category-name-tests: New file.
45708         * modules/unictype/category-none-tests: New file.
45709         * modules/unictype/category-of-tests: New file.
45710         * modules/unictype/category-or-tests: New file.
45711         * modules/unictype/category-test-withtable-tests: New file.
45712         * modules/unictype/combining-class-tests: New file.
45713         * modules/unictype/ctype-alnum-tests: New file.
45714         * modules/unictype/ctype-alpha-tests: New file.
45715         * modules/unictype/ctype-blank-tests: New file.
45716         * modules/unictype/ctype-cntrl-tests: New file.
45717         * modules/unictype/ctype-digit-tests: New file.
45718         * modules/unictype/ctype-graph-tests: New file.
45719         * modules/unictype/ctype-lower-tests: New file.
45720         * modules/unictype/ctype-print-tests: New file.
45721         * modules/unictype/ctype-punct-tests: New file.
45722         * modules/unictype/ctype-space-tests: New file.
45723         * modules/unictype/ctype-upper-tests: New file.
45724         * modules/unictype/ctype-xdigit-tests: New file.
45725         * modules/unictype/decimal-digit-tests: New file.
45726         * modules/unictype/digit-tests: New file.
45727         * modules/unictype/mirror-tests: New file.
45728         * modules/unictype/numeric-tests: New file.
45729         * modules/unictype/property-alphabetic-tests: New file.
45730         * modules/unictype/property-ascii-hex-digit-tests: New file.
45731         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45732         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45733         * modules/unictype/property-bidi-block-separator-tests: New file.
45734         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45735         * modules/unictype/property-bidi-common-separator-tests: New file.
45736         * modules/unictype/property-bidi-control-tests: New file.
45737         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45738         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45739         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45740         * modules/unictype/property-bidi-european-digit-tests: New file.
45741         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45742         * modules/unictype/property-bidi-left-to-right-tests: New file.
45743         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45744         * modules/unictype/property-bidi-other-neutral-tests: New file.
45745         * modules/unictype/property-bidi-pdf-tests: New file.
45746         * modules/unictype/property-bidi-segment-separator-tests: New file.
45747         * modules/unictype/property-bidi-whitespace-tests: New file.
45748         * modules/unictype/property-byname-tests: New file.
45749         * modules/unictype/property-combining-tests: New file.
45750         * modules/unictype/property-composite-tests: New file.
45751         * modules/unictype/property-currency-symbol-tests: New file.
45752         * modules/unictype/property-dash-tests: New file.
45753         * modules/unictype/property-decimal-digit-tests: New file.
45754         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45755         * modules/unictype/property-deprecated-tests: New file.
45756         * modules/unictype/property-diacritic-tests: New file.
45757         * modules/unictype/property-extender-tests: New file.
45758         * modules/unictype/property-format-control-tests: New file.
45759         * modules/unictype/property-grapheme-base-tests: New file.
45760         * modules/unictype/property-grapheme-extend-tests: New file.
45761         * modules/unictype/property-grapheme-link-tests: New file.
45762         * modules/unictype/property-hex-digit-tests: New file.
45763         * modules/unictype/property-hyphen-tests: New file.
45764         * modules/unictype/property-id-continue-tests: New file.
45765         * modules/unictype/property-id-start-tests: New file.
45766         * modules/unictype/property-ideographic-tests: New file.
45767         * modules/unictype/property-ids-binary-operator-tests: New file.
45768         * modules/unictype/property-ids-trinary-operator-tests: New file.
45769         * modules/unictype/property-ignorable-control-tests: New file.
45770         * modules/unictype/property-iso-control-tests: New file.
45771         * modules/unictype/property-join-control-tests: New file.
45772         * modules/unictype/property-left-of-pair-tests: New file.
45773         * modules/unictype/property-line-separator-tests: New file.
45774         * modules/unictype/property-logical-order-exception-tests: New file.
45775         * modules/unictype/property-lowercase-tests: New file.
45776         * modules/unictype/property-math-tests: New file.
45777         * modules/unictype/property-non-break-tests: New file.
45778         * modules/unictype/property-not-a-character-tests: New file.
45779         * modules/unictype/property-numeric-tests: New file.
45780         * modules/unictype/property-other-alphabetic-tests: New file.
45781         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45782         * modules/unictype/property-other-grapheme-extend-tests: New file.
45783         * modules/unictype/property-other-id-continue-tests: New file.
45784         * modules/unictype/property-other-id-start-tests: New file.
45785         * modules/unictype/property-other-lowercase-tests: New file.
45786         * modules/unictype/property-other-math-tests: New file.
45787         * modules/unictype/property-other-uppercase-tests: New file.
45788         * modules/unictype/property-paired-punctuation-tests: New file.
45789         * modules/unictype/property-paragraph-separator-tests: New file.
45790         * modules/unictype/property-pattern-syntax-tests: New file.
45791         * modules/unictype/property-pattern-white-space-tests: New file.
45792         * modules/unictype/property-private-use-tests: New file.
45793         * modules/unictype/property-punctuation-tests: New file.
45794         * modules/unictype/property-quotation-mark-tests: New file.
45795         * modules/unictype/property-radical-tests: New file.
45796         * modules/unictype/property-sentence-terminal-tests: New file.
45797         * modules/unictype/property-soft-dotted-tests: New file.
45798         * modules/unictype/property-space-tests: New file.
45799         * modules/unictype/property-terminal-punctuation-tests: New file.
45800         * modules/unictype/property-test-tests: New file.
45801         * modules/unictype/property-titlecase-tests: New file.
45802         * modules/unictype/property-unassigned-code-value-tests: New file.
45803         * modules/unictype/property-unified-ideograph-tests: New file.
45804         * modules/unictype/property-uppercase-tests: New file.
45805         * modules/unictype/property-variation-selector-tests: New file.
45806         * modules/unictype/property-white-space-tests: New file.
45807         * modules/unictype/property-xid-continue-tests: New file.
45808         * modules/unictype/property-xid-start-tests: New file.
45809         * modules/unictype/property-zero-width-tests: New file.
45810         * modules/unictype/scripts-tests: New file.
45811         * modules/unictype/syntax-c-ident-tests: New file.
45812         * modules/unictype/syntax-c-whitespace-tests: New file.
45813         * modules/unictype/syntax-java-ident-tests: New file.
45814         * modules/unictype/syntax-java-whitespace-tests: New file.
45815         * tests/unictype/test-bidi_byname.c: New file.
45816         * tests/unictype/test-bidi_name.c: New file.
45817         * tests/unictype/test-bidi_of.c: New file.
45818         * tests/unictype/test-bidi_test.c: New file.
45819         * tests/unictype/test-block_list.c: New file.
45820         * tests/unictype/test-block_of.c: New file.
45821         * tests/unictype/test-block_test.c: New file.
45822         * tests/unictype/test-categ_and.c: New file.
45823         * tests/unictype/test-categ_and_not.c: New file.
45824         * tests/unictype/test-categ_byname.c: New file.
45825         * tests/unictype/test-categ_name.c: New file.
45826         * tests/unictype/test-categ_none.c: New file.
45827         * tests/unictype/test-categ_of.c: New file.
45828         * tests/unictype/test-categ_or.c: New file.
45829         * tests/unictype/test-categ_test_withtable.c: New file.
45830         * tests/unictype/test-combining.c: New file.
45831         * tests/unictype/test-decdigit.c: New file.
45832         * tests/unictype/test-digit.c: New file.
45833         * tests/unictype/test-mirror.c: New file.
45834         * tests/unictype/test-numeric.c: New file.
45835         * tests/unictype/test-pr_byname.c: New file.
45836         * tests/unictype/test-pr_test.c: New file.
45837         * tests/unictype/test-predicate-part1.h: New file.
45838         * tests/unictype/test-predicate-part2.h: New file.
45839         * tests/unictype/test-scripts.c: New file.
45840         * tests/unictype/test-sy_c_ident.c: New file.
45841         * tests/unictype/test-sy_java_ident.c: New file.
45842
45843         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45844         for Unicode 5.0.0.
45845         * tests/unictype/test-categ_Cc.c: Likewise.
45846         * tests/unictype/test-categ_Cf.c: Likewise.
45847         * tests/unictype/test-categ_Cn.c: Likewise.
45848         * tests/unictype/test-categ_Co.c: Likewise.
45849         * tests/unictype/test-categ_Cs.c: Likewise.
45850         * tests/unictype/test-categ_L.c: Likewise.
45851         * tests/unictype/test-categ_Ll.c: Likewise.
45852         * tests/unictype/test-categ_Lm.c: Likewise.
45853         * tests/unictype/test-categ_Lo.c: Likewise.
45854         * tests/unictype/test-categ_Lt.c: Likewise.
45855         * tests/unictype/test-categ_Lu.c: Likewise.
45856         * tests/unictype/test-categ_M.c: Likewise.
45857         * tests/unictype/test-categ_Mc.c: Likewise.
45858         * tests/unictype/test-categ_Me.c: Likewise.
45859         * tests/unictype/test-categ_Mn.c: Likewise.
45860         * tests/unictype/test-categ_N.c: Likewise.
45861         * tests/unictype/test-categ_Nd.c: Likewise.
45862         * tests/unictype/test-categ_Nl.c: Likewise.
45863         * tests/unictype/test-categ_No.c: Likewise.
45864         * tests/unictype/test-categ_P.c: Likewise.
45865         * tests/unictype/test-categ_Pc.c: Likewise.
45866         * tests/unictype/test-categ_Pd.c: Likewise.
45867         * tests/unictype/test-categ_Pe.c: Likewise.
45868         * tests/unictype/test-categ_Pf.c: Likewise.
45869         * tests/unictype/test-categ_Pi.c: Likewise.
45870         * tests/unictype/test-categ_Po.c: Likewise.
45871         * tests/unictype/test-categ_Ps.c: Likewise.
45872         * tests/unictype/test-categ_S.c: Likewise.
45873         * tests/unictype/test-categ_Sc.c: Likewise.
45874         * tests/unictype/test-categ_Sk.c: Likewise.
45875         * tests/unictype/test-categ_Sm.c: Likewise.
45876         * tests/unictype/test-categ_So.c: Likewise.
45877         * tests/unictype/test-categ_Z.c: Likewise.
45878         * tests/unictype/test-categ_Zl.c: Likewise.
45879         * tests/unictype/test-categ_Zp.c: Likewise.
45880         * tests/unictype/test-categ_Zs.c: Likewise.
45881         * tests/unictype/test-ctype_alnum.c: Likewise.
45882         * tests/unictype/test-ctype_alpha.c: Likewise.
45883         * tests/unictype/test-ctype_blank.c: Likewise.
45884         * tests/unictype/test-ctype_cntrl.c: Likewise.
45885         * tests/unictype/test-ctype_digit.c: Likewise.
45886         * tests/unictype/test-ctype_graph.c: Likewise.
45887         * tests/unictype/test-ctype_lower.c: Likewise.
45888         * tests/unictype/test-ctype_print.c: Likewise.
45889         * tests/unictype/test-ctype_punct.c: Likewise.
45890         * tests/unictype/test-ctype_space.c: Likewise.
45891         * tests/unictype/test-ctype_upper.c: Likewise.
45892         * tests/unictype/test-ctype_xdigit.c: Likewise.
45893         * tests/unictype/test-decdigit.h: Likewise.
45894         * tests/unictype/test-digit.h: Likewise.
45895         * tests/unictype/test-numeric.h: Likewise.
45896         * tests/unictype/test-pr_alphabetic.c: Likewise.
45897         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45899         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45900         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45901         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45902         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45903         * tests/unictype/test-pr_bidi_control.c: Likewise.
45904         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45905         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45906         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45907         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45908         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45909         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45910         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45911         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45912         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45913         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45914         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45915         * tests/unictype/test-pr_combining.c: Likewise.
45916         * tests/unictype/test-pr_composite.c: Likewise.
45917         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45918         * tests/unictype/test-pr_dash.c: Likewise.
45919         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45920         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45921         * tests/unictype/test-pr_deprecated.c: Likewise.
45922         * tests/unictype/test-pr_diacritic.c: Likewise.
45923         * tests/unictype/test-pr_extender.c: Likewise.
45924         * tests/unictype/test-pr_format_control.c: Likewise.
45925         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45926         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45927         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45928         * tests/unictype/test-pr_hex_digit.c: Likewise.
45929         * tests/unictype/test-pr_hyphen.c: Likewise.
45930         * tests/unictype/test-pr_id_continue.c: Likewise.
45931         * tests/unictype/test-pr_id_start.c: Likewise.
45932         * tests/unictype/test-pr_ideographic.c: Likewise.
45933         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45934         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45935         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45936         * tests/unictype/test-pr_iso_control.c: Likewise.
45937         * tests/unictype/test-pr_join_control.c: Likewise.
45938         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45939         * tests/unictype/test-pr_line_separator.c: Likewise.
45940         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45941         * tests/unictype/test-pr_lowercase.c: Likewise.
45942         * tests/unictype/test-pr_math.c: Likewise.
45943         * tests/unictype/test-pr_non_break.c: Likewise.
45944         * tests/unictype/test-pr_not_a_character.c: Likewise.
45945         * tests/unictype/test-pr_numeric.c: Likewise.
45946         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45947         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45948         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45949         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45950         * tests/unictype/test-pr_other_id_start.c: Likewise.
45951         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45952         * tests/unictype/test-pr_other_math.c: Likewise.
45953         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45954         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45955         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45956         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45957         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45958         * tests/unictype/test-pr_private_use.c: Likewise.
45959         * tests/unictype/test-pr_punctuation.c: Likewise.
45960         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45961         * tests/unictype/test-pr_radical.c: Likewise.
45962         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45963         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45964         * tests/unictype/test-pr_space.c: Likewise.
45965         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45966         * tests/unictype/test-pr_titlecase.c: Likewise.
45967         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45968         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45969         * tests/unictype/test-pr_uppercase.c: Likewise.
45970         * tests/unictype/test-pr_variation_selector.c: Likewise.
45971         * tests/unictype/test-pr_white_space.c: Likewise.
45972         * tests/unictype/test-pr_xid_continue.c: Likewise.
45973         * tests/unictype/test-pr_xid_start.c: Likewise.
45974         * tests/unictype/test-pr_zero_width.c: Likewise.
45975         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45976         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45977
45978 2007-11-12  Bruno Haible  <bruno@clisp.org>
45979
45980         Unicode character classification functions.
45981         * lib/unictype.h: New file.
45982         * modules/unictype/base: New file.
45983         * modules/unictype/category-L: New file.
45984         * modules/unictype/category-Lu: New file.
45985         * modules/unictype/category-Ll: New file.
45986         * modules/unictype/category-Lt: New file.
45987         * modules/unictype/category-Lm: New file.
45988         * modules/unictype/category-Lo: New file.
45989         * modules/unictype/category-M: New file.
45990         * modules/unictype/category-Mn: New file.
45991         * modules/unictype/category-Mc: New file.
45992         * modules/unictype/category-Me: New file.
45993         * modules/unictype/category-N: New file.
45994         * modules/unictype/category-Nd: New file.
45995         * modules/unictype/category-Nl: New file.
45996         * modules/unictype/category-No: New file.
45997         * modules/unictype/category-P: New file.
45998         * modules/unictype/category-Pc: New file.
45999         * modules/unictype/category-Pd: New file.
46000         * modules/unictype/category-Ps: New file.
46001         * modules/unictype/category-Pe: New file.
46002         * modules/unictype/category-Pi: New file.
46003         * modules/unictype/category-Pf: New file.
46004         * modules/unictype/category-Po: New file.
46005         * modules/unictype/category-S: New file.
46006         * modules/unictype/category-Sm: New file.
46007         * modules/unictype/category-Sc: New file.
46008         * modules/unictype/category-Sk: New file.
46009         * modules/unictype/category-So: New file.
46010         * modules/unictype/category-Z: New file.
46011         * modules/unictype/category-Zs: New file.
46012         * modules/unictype/category-Zl: New file.
46013         * modules/unictype/category-Zp: New file.
46014         * modules/unictype/category-C: New file.
46015         * modules/unictype/category-Cc: New file.
46016         * modules/unictype/category-Cf: New file.
46017         * modules/unictype/category-Cs: New file.
46018         * modules/unictype/category-Co: New file.
46019         * modules/unictype/category-Cn: New file.
46020         * modules/unictype/category-or: New file.
46021         * modules/unictype/category-of: New file.
46022         * modules/unictype/category-test: New file.
46023         * modules/unictype/category-test-withtable: New file.
46024         * modules/unictype/category-byname: New file.
46025         * modules/unictype/category-none: New file.
46026         * modules/unictype/category-and: New file.
46027         * modules/unictype/category-and-not: New file.
46028         * modules/unictype/category-name: New file.
46029         * modules/unictype/combining-class: New file.
46030         * modules/unictype/category-all: New file.
46031         * modules/unictype/bidicategory-all: New file.
46032         * modules/unictype/bidicategory-byname: New file.
46033         * modules/unictype/bidicategory-name: New file.
46034         * modules/unictype/bidicategory-of: New file.
46035         * modules/unictype/bidicategory-test: New file.
46036         * modules/unictype/decimal-digit: New file.
46037         * modules/unictype/digit: New file.
46038         * modules/unictype/numeric: New file.
46039         * modules/unictype/mirror: New file.
46040         * modules/unictype/property-white-space: New file.
46041         * modules/unictype/property-alphabetic: New file.
46042         * modules/unictype/property-other-alphabetic: New file.
46043         * modules/unictype/property-not-a-character: New file.
46044         * modules/unictype/property-default-ignorable-code-point: New file.
46045         * modules/unictype/property-other-default-ignorable-code-point: New
46046         file.
46047         * modules/unictype/property-deprecated: New file.
46048         * modules/unictype/property-logical-order-exception: New file.
46049         * modules/unictype/property-variation-selector: New file.
46050         * modules/unictype/property-private-use: New file.
46051         * modules/unictype/property-unassigned-code-value: New file.
46052         * modules/unictype/property-uppercase: New file.
46053         * modules/unictype/property-other-uppercase: New file.
46054         * modules/unictype/property-lowercase: New file.
46055         * modules/unictype/property-other-lowercase: New file.
46056         * modules/unictype/property-titlecase: New file.
46057         * modules/unictype/property-soft-dotted: New file.
46058         * modules/unictype/property-id-start: New file.
46059         * modules/unictype/property-other-id-start: New file.
46060         * modules/unictype/property-id-continue: New file.
46061         * modules/unictype/property-other-id-continue: New file.
46062         * modules/unictype/property-xid-start: New file.
46063         * modules/unictype/property-xid-continue: New file.
46064         * modules/unictype/property-pattern-white-space: New file.
46065         * modules/unictype/property-pattern-syntax: New file.
46066         * modules/unictype/property-join-control: New file.
46067         * modules/unictype/property-grapheme-base: New file.
46068         * modules/unictype/property-grapheme-extend: New file.
46069         * modules/unictype/property-other-grapheme-extend: New file.
46070         * modules/unictype/property-grapheme-link: New file.
46071         * modules/unictype/property-bidi-control: New file.
46072         * modules/unictype/property-bidi-left-to-right: New file.
46073         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46074         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46075         * modules/unictype/property-bidi-european-digit: New file.
46076         * modules/unictype/property-bidi-eur-num-separator: New file.
46077         * modules/unictype/property-bidi-eur-num-terminator: New file.
46078         * modules/unictype/property-bidi-arabic-digit: New file.
46079         * modules/unictype/property-bidi-common-separator: New file.
46080         * modules/unictype/property-bidi-block-separator: New file.
46081         * modules/unictype/property-bidi-segment-separator: New file.
46082         * modules/unictype/property-bidi-whitespace: New file.
46083         * modules/unictype/property-bidi-non-spacing-mark: New file.
46084         * modules/unictype/property-bidi-boundary-neutral: New file.
46085         * modules/unictype/property-bidi-pdf: New file.
46086         * modules/unictype/property-bidi-embedding-or-override: New file.
46087         * modules/unictype/property-bidi-other-neutral: New file.
46088         * modules/unictype/property-hex-digit: New file.
46089         * modules/unictype/property-ascii-hex-digit: New file.
46090         * modules/unictype/property-ideographic: New file.
46091         * modules/unictype/property-unified-ideograph: New file.
46092         * modules/unictype/property-radical: New file.
46093         * modules/unictype/property-ids-binary-operator: New file.
46094         * modules/unictype/property-ids-trinary-operator: New file.
46095         * modules/unictype/property-zero-width: New file.
46096         * modules/unictype/property-space: New file.
46097         * modules/unictype/property-non-break: New file.
46098         * modules/unictype/property-iso-control: New file.
46099         * modules/unictype/property-format-control: New file.
46100         * modules/unictype/property-dash: New file.
46101         * modules/unictype/property-hyphen: New file.
46102         * modules/unictype/property-punctuation: New file.
46103         * modules/unictype/property-line-separator: New file.
46104         * modules/unictype/property-paragraph-separator: New file.
46105         * modules/unictype/property-quotation-mark: New file.
46106         * modules/unictype/property-sentence-terminal: New file.
46107         * modules/unictype/property-terminal-punctuation: New file.
46108         * modules/unictype/property-currency-symbol: New file.
46109         * modules/unictype/property-math: New file.
46110         * modules/unictype/property-other-math: New file.
46111         * modules/unictype/property-paired-punctuation: New file.
46112         * modules/unictype/property-left-of-pair: New file.
46113         * modules/unictype/property-combining: New file.
46114         * modules/unictype/property-composite: New file.
46115         * modules/unictype/property-decimal-digit: New file.
46116         * modules/unictype/property-numeric: New file.
46117         * modules/unictype/property-diacritic: New file.
46118         * modules/unictype/property-extender: New file.
46119         * modules/unictype/property-ignorable-control: New file.
46120         * modules/unictype/property-test: New file.
46121         * modules/unictype/property-byname: New file.
46122         * modules/unictype/property-all: New file.
46123         * modules/unictype/scripts: New file.
46124         * modules/unictype/scripts-all: New file.
46125         * modules/unictype/block-of: New file.
46126         * modules/unictype/block-test: New file.
46127         * modules/unictype/block-list: New file.
46128         * modules/unictype/block-all: New file.
46129         * modules/unictype/syntax-c-whitespace: New file.
46130         * modules/unictype/syntax-java-whitespace: New file.
46131         * modules/unictype/syntax-c-ident: New file.
46132         * modules/unictype/syntax-java-ident: New file.
46133         * modules/unictype/ctype-alnum: New file.
46134         * modules/unictype/ctype-alpha: New file.
46135         * modules/unictype/ctype-cntrl: New file.
46136         * modules/unictype/ctype-digit: New file.
46137         * modules/unictype/ctype-graph: New file.
46138         * modules/unictype/ctype-lower: New file.
46139         * modules/unictype/ctype-print: New file.
46140         * modules/unictype/ctype-punct: New file.
46141         * modules/unictype/ctype-space: New file.
46142         * modules/unictype/ctype-upper: New file.
46143         * modules/unictype/ctype-xdigit: New file.
46144         * modules/unictype/ctype-blank: New file.
46145         * lib/unictype/bidi_byname.c: New file.
46146         * lib/unictype/bidi_name.c: New file.
46147         * lib/unictype/bidi_of.c: New file.
46148         * lib/unictype/bidi_test.c: New file.
46149         * lib/unictype/bitmap.h: New file.
46150         * lib/unictype/block_test.c: New file.
46151         * lib/unictype/blocks.c: New file.
46152         * lib/unictype/categ_C.c: New file.
46153         * lib/unictype/categ_Cc.c: New file.
46154         * lib/unictype/categ_Cf.c: New file.
46155         * lib/unictype/categ_Cn.c: New file.
46156         * lib/unictype/categ_Co.c: New file.
46157         * lib/unictype/categ_Cs.c: New file.
46158         * lib/unictype/categ_L.c: New file.
46159         * lib/unictype/categ_Ll.c: New file.
46160         * lib/unictype/categ_Lm.c: New file.
46161         * lib/unictype/categ_Lo.c: New file.
46162         * lib/unictype/categ_Lt.c: New file.
46163         * lib/unictype/categ_Lu.c: New file.
46164         * lib/unictype/categ_M.c: New file.
46165         * lib/unictype/categ_Mc.c: New file.
46166         * lib/unictype/categ_Me.c: New file.
46167         * lib/unictype/categ_Mn.c: New file.
46168         * lib/unictype/categ_N.c: New file.
46169         * lib/unictype/categ_Nd.c: New file.
46170         * lib/unictype/categ_Nl.c: New file.
46171         * lib/unictype/categ_No.c: New file.
46172         * lib/unictype/categ_P.c: New file.
46173         * lib/unictype/categ_Pc.c: New file.
46174         * lib/unictype/categ_Pd.c: New file.
46175         * lib/unictype/categ_Pe.c: New file.
46176         * lib/unictype/categ_Pf.c: New file.
46177         * lib/unictype/categ_Pi.c: New file.
46178         * lib/unictype/categ_Po.c: New file.
46179         * lib/unictype/categ_Ps.c: New file.
46180         * lib/unictype/categ_S.c: New file.
46181         * lib/unictype/categ_Sc.c: New file.
46182         * lib/unictype/categ_Sk.c: New file.
46183         * lib/unictype/categ_Sm.c: New file.
46184         * lib/unictype/categ_So.c: New file.
46185         * lib/unictype/categ_Z.c: New file.
46186         * lib/unictype/categ_Zl.c: New file.
46187         * lib/unictype/categ_Zp.c: New file.
46188         * lib/unictype/categ_Zs.c: New file.
46189         * lib/unictype/categ_and.c: New file.
46190         * lib/unictype/categ_and_not.c: New file.
46191         * lib/unictype/categ_byname.c: New file.
46192         * lib/unictype/categ_name.c: New file.
46193         * lib/unictype/categ_none.c: New file.
46194         * lib/unictype/categ_of.c: New file.
46195         * lib/unictype/categ_or.c: New file.
46196         * lib/unictype/categ_test.c: New file.
46197         * lib/unictype/combining.c: New file.
46198         * lib/unictype/ctype_alnum.c: New file.
46199         * lib/unictype/ctype_alpha.c: New file.
46200         * lib/unictype/ctype_blank.c: New file.
46201         * lib/unictype/ctype_cntrl.c: New file.
46202         * lib/unictype/ctype_digit.c: New file.
46203         * lib/unictype/ctype_graph.c: New file.
46204         * lib/unictype/ctype_lower.c: New file.
46205         * lib/unictype/ctype_print.c: New file.
46206         * lib/unictype/ctype_punct.c: New file.
46207         * lib/unictype/ctype_space.c: New file.
46208         * lib/unictype/ctype_upper.c: New file.
46209         * lib/unictype/ctype_xdigit.c: New file.
46210         * lib/unictype/decdigit.c: New file.
46211         * lib/unictype/digit.c: New file.
46212         * lib/unictype/identsyntaxmap.h: New file.
46213         * lib/unictype/mirror.c: New file.
46214         * lib/unictype/numeric.c: New file.
46215         * lib/unictype/pr_alphabetic.c: New file.
46216         * lib/unictype/pr_ascii_hex_digit.c: New file.
46217         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46218         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46219         * lib/unictype/pr_bidi_block_separator.c: New file.
46220         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46221         * lib/unictype/pr_bidi_common_separator.c: New file.
46222         * lib/unictype/pr_bidi_control.c: New file.
46223         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46224         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46225         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46226         * lib/unictype/pr_bidi_european_digit.c: New file.
46227         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46228         * lib/unictype/pr_bidi_left_to_right.c: New file.
46229         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46230         * lib/unictype/pr_bidi_other_neutral.c: New file.
46231         * lib/unictype/pr_bidi_pdf.c: New file.
46232         * lib/unictype/pr_bidi_segment_separator.c: New file.
46233         * lib/unictype/pr_bidi_whitespace.c: New file.
46234         * lib/unictype/pr_byname.c: New file.
46235         * lib/unictype/pr_byname.gperf: New file.
46236         * lib/unictype/pr_combining.c: New file.
46237         * lib/unictype/pr_composite.c: New file.
46238         * lib/unictype/pr_currency_symbol.c: New file.
46239         * lib/unictype/pr_dash.c: New file.
46240         * lib/unictype/pr_decimal_digit.c: New file.
46241         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46242         * lib/unictype/pr_deprecated.c: New file.
46243         * lib/unictype/pr_diacritic.c: New file.
46244         * lib/unictype/pr_extender.c: New file.
46245         * lib/unictype/pr_format_control.c: New file.
46246         * lib/unictype/pr_grapheme_base.c: New file.
46247         * lib/unictype/pr_grapheme_extend.c: New file.
46248         * lib/unictype/pr_grapheme_link.c: New file.
46249         * lib/unictype/pr_hex_digit.c: New file.
46250         * lib/unictype/pr_hyphen.c: New file.
46251         * lib/unictype/pr_id_continue.c: New file.
46252         * lib/unictype/pr_id_start.c: New file.
46253         * lib/unictype/pr_ideographic.c: New file.
46254         * lib/unictype/pr_ids_binary_operator.c: New file.
46255         * lib/unictype/pr_ids_trinary_operator.c: New file.
46256         * lib/unictype/pr_ignorable_control.c: New file.
46257         * lib/unictype/pr_iso_control.c: New file.
46258         * lib/unictype/pr_join_control.c: New file.
46259         * lib/unictype/pr_left_of_pair.c: New file.
46260         * lib/unictype/pr_line_separator.c: New file.
46261         * lib/unictype/pr_logical_order_exception.c: New file.
46262         * lib/unictype/pr_lowercase.c: New file.
46263         * lib/unictype/pr_math.c: New file.
46264         * lib/unictype/pr_non_break.c: New file.
46265         * lib/unictype/pr_not_a_character.c: New file.
46266         * lib/unictype/pr_numeric.c: New file.
46267         * lib/unictype/pr_other_alphabetic.c: New file.
46268         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46269         * lib/unictype/pr_other_grapheme_extend.c: New file.
46270         * lib/unictype/pr_other_id_continue.c: New file.
46271         * lib/unictype/pr_other_id_start.c: New file.
46272         * lib/unictype/pr_other_lowercase.c: New file.
46273         * lib/unictype/pr_other_math.c: New file.
46274         * lib/unictype/pr_other_uppercase.c: New file.
46275         * lib/unictype/pr_paired_punctuation.c: New file.
46276         * lib/unictype/pr_paragraph_separator.c: New file.
46277         * lib/unictype/pr_pattern_syntax.c: New file.
46278         * lib/unictype/pr_pattern_white_space.c: New file.
46279         * lib/unictype/pr_private_use.c: New file.
46280         * lib/unictype/pr_punctuation.c: New file.
46281         * lib/unictype/pr_quotation_mark.c: New file.
46282         * lib/unictype/pr_radical.c: New file.
46283         * lib/unictype/pr_sentence_terminal.c: New file.
46284         * lib/unictype/pr_soft_dotted.c: New file.
46285         * lib/unictype/pr_space.c: New file.
46286         * lib/unictype/pr_terminal_punctuation.c: New file.
46287         * lib/unictype/pr_test.c: New file.
46288         * lib/unictype/pr_titlecase.c: New file.
46289         * lib/unictype/pr_unassigned_code_value.c: New file.
46290         * lib/unictype/pr_unified_ideograph.c: New file.
46291         * lib/unictype/pr_uppercase.c: New file.
46292         * lib/unictype/pr_variation_selector.c: New file.
46293         * lib/unictype/pr_white_space.c: New file.
46294         * lib/unictype/pr_xid_continue.c: New file.
46295         * lib/unictype/pr_xid_start.c: New file.
46296         * lib/unictype/pr_zero_width.c: New file.
46297         * lib/unictype/scripts.c: New file.
46298         * lib/unictype/sy_c_ident.c: New file.
46299         * lib/unictype/sy_c_whitespace.c: New file.
46300         * lib/unictype/sy_java_ident.c: New file.
46301         * lib/unictype/sy_java_whitespace.c: New file.
46302
46303         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46304         Unicode 5.0.0.
46305         * lib/unictype/blocks.h: Likewise.
46306         * lib/unictype/categ_C.h: Likewise.
46307         * lib/unictype/categ_Cc.h: Likewise.
46308         * lib/unictype/categ_Cf.h: Likewise.
46309         * lib/unictype/categ_Cn.h: Likewise.
46310         * lib/unictype/categ_Co.h: Likewise.
46311         * lib/unictype/categ_Cs.h: Likewise.
46312         * lib/unictype/categ_L.h: Likewise.
46313         * lib/unictype/categ_Ll.h: Likewise.
46314         * lib/unictype/categ_Lm.h: Likewise.
46315         * lib/unictype/categ_Lo.h: Likewise.
46316         * lib/unictype/categ_Lt.h: Likewise.
46317         * lib/unictype/categ_Lu.h: Likewise.
46318         * lib/unictype/categ_M.h: Likewise.
46319         * lib/unictype/categ_Mc.h: Likewise.
46320         * lib/unictype/categ_Me.h: Likewise.
46321         * lib/unictype/categ_Mn.h: Likewise.
46322         * lib/unictype/categ_N.h: Likewise.
46323         * lib/unictype/categ_Nd.h: Likewise.
46324         * lib/unictype/categ_Nl.h: Likewise.
46325         * lib/unictype/categ_No.h: Likewise.
46326         * lib/unictype/categ_P.h: Likewise.
46327         * lib/unictype/categ_Pc.h: Likewise.
46328         * lib/unictype/categ_Pd.h: Likewise.
46329         * lib/unictype/categ_Pe.h: Likewise.
46330         * lib/unictype/categ_Pf.h: Likewise.
46331         * lib/unictype/categ_Pi.h: Likewise.
46332         * lib/unictype/categ_Po.h: Likewise.
46333         * lib/unictype/categ_Ps.h: Likewise.
46334         * lib/unictype/categ_S.h: Likewise.
46335         * lib/unictype/categ_Sc.h: Likewise.
46336         * lib/unictype/categ_Sk.h: Likewise.
46337         * lib/unictype/categ_Sm.h: Likewise.
46338         * lib/unictype/categ_So.h: Likewise.
46339         * lib/unictype/categ_Z.h: Likewise.
46340         * lib/unictype/categ_Zl.h: Likewise.
46341         * lib/unictype/categ_Zp.h: Likewise.
46342         * lib/unictype/categ_Zs.h: Likewise.
46343         * lib/unictype/categ_of.h: Likewise.
46344         * lib/unictype/combining.h: Likewise.
46345         * lib/unictype/ctype_alnum.h: Likewise.
46346         * lib/unictype/ctype_alpha.h: Likewise.
46347         * lib/unictype/ctype_blank.h: Likewise.
46348         * lib/unictype/ctype_cntrl.h: Likewise.
46349         * lib/unictype/ctype_digit.h: Likewise.
46350         * lib/unictype/ctype_graph.h: Likewise.
46351         * lib/unictype/ctype_lower.h: Likewise.
46352         * lib/unictype/ctype_print.h: Likewise.
46353         * lib/unictype/ctype_punct.h: Likewise.
46354         * lib/unictype/ctype_space.h: Likewise.
46355         * lib/unictype/ctype_upper.h: Likewise.
46356         * lib/unictype/ctype_xdigit.h: Likewise.
46357         * lib/unictype/decdigit.h: Likewise.
46358         * lib/unictype/digit.h: Likewise.
46359         * lib/unictype/mirror.h: Likewise.
46360         * lib/unictype/numeric.h: Likewise.
46361         * lib/unictype/pr_alphabetic.h: Likewise.
46362         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46363         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46364         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46365         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46366         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46367         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46368         * lib/unictype/pr_bidi_control.h: Likewise.
46369         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46370         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46371         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46372         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46373         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46374         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46375         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46376         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46377         * lib/unictype/pr_bidi_pdf.h: Likewise.
46378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46380         * lib/unictype/pr_combining.h: Likewise.
46381         * lib/unictype/pr_composite.h: Likewise.
46382         * lib/unictype/pr_currency_symbol.h: Likewise.
46383         * lib/unictype/pr_dash.h: Likewise.
46384         * lib/unictype/pr_decimal_digit.h: Likewise.
46385         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46386         * lib/unictype/pr_deprecated.h: Likewise.
46387         * lib/unictype/pr_diacritic.h: Likewise.
46388         * lib/unictype/pr_extender.h: Likewise.
46389         * lib/unictype/pr_format_control.h: Likewise.
46390         * lib/unictype/pr_grapheme_base.h: Likewise.
46391         * lib/unictype/pr_grapheme_extend.h: Likewise.
46392         * lib/unictype/pr_grapheme_link.h: Likewise.
46393         * lib/unictype/pr_hex_digit.h: Likewise.
46394         * lib/unictype/pr_hyphen.h: Likewise.
46395         * lib/unictype/pr_id_continue.h: Likewise.
46396         * lib/unictype/pr_id_start.h: Likewise.
46397         * lib/unictype/pr_ideographic.h: Likewise.
46398         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46399         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46400         * lib/unictype/pr_ignorable_control.h: Likewise.
46401         * lib/unictype/pr_iso_control.h: Likewise.
46402         * lib/unictype/pr_join_control.h: Likewise.
46403         * lib/unictype/pr_left_of_pair.h: Likewise.
46404         * lib/unictype/pr_line_separator.h: Likewise.
46405         * lib/unictype/pr_logical_order_exception.h: Likewise.
46406         * lib/unictype/pr_lowercase.h: Likewise.
46407         * lib/unictype/pr_math.h: Likewise.
46408         * lib/unictype/pr_non_break.h: Likewise.
46409         * lib/unictype/pr_not_a_character.h: Likewise.
46410         * lib/unictype/pr_numeric.h: Likewise.
46411         * lib/unictype/pr_other_alphabetic.h: Likewise.
46412         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46413         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46414         * lib/unictype/pr_other_id_continue.h: Likewise.
46415         * lib/unictype/pr_other_id_start.h: Likewise.
46416         * lib/unictype/pr_other_lowercase.h: Likewise.
46417         * lib/unictype/pr_other_math.h: Likewise.
46418         * lib/unictype/pr_other_uppercase.h: Likewise.
46419         * lib/unictype/pr_paired_punctuation.h: Likewise.
46420         * lib/unictype/pr_paragraph_separator.h: Likewise.
46421         * lib/unictype/pr_pattern_syntax.h: Likewise.
46422         * lib/unictype/pr_pattern_white_space.h: Likewise.
46423         * lib/unictype/pr_private_use.h: Likewise.
46424         * lib/unictype/pr_punctuation.h: Likewise.
46425         * lib/unictype/pr_quotation_mark.h: Likewise.
46426         * lib/unictype/pr_radical.h: Likewise.
46427         * lib/unictype/pr_sentence_terminal.h: Likewise.
46428         * lib/unictype/pr_soft_dotted.h: Likewise.
46429         * lib/unictype/pr_space.h: Likewise.
46430         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46431         * lib/unictype/pr_titlecase.h: Likewise.
46432         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46433         * lib/unictype/pr_unified_ideograph.h: Likewise.
46434         * lib/unictype/pr_uppercase.h: Likewise.
46435         * lib/unictype/pr_variation_selector.h: Likewise.
46436         * lib/unictype/pr_white_space.h: Likewise.
46437         * lib/unictype/pr_xid_continue.h: Likewise.
46438         * lib/unictype/pr_xid_start.h: Likewise.
46439         * lib/unictype/pr_zero_width.h: Likewise.
46440         * lib/unictype/scripts.h: Likewise.
46441         * lib/unictype/scripts_byname.gperf: Likewise.
46442         * lib/unictype/sy_c_ident.h: Likewise.
46443         * lib/unictype/sy_c_whitespace.h: Likewise.
46444         * lib/unictype/sy_java_ident.h: Likewise.
46445         * lib/unictype/sy_java_whitespace.h: Likewise.
46446
46447         * lib/unictype/Makefile: New file.
46448         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46449         glibc.
46450         * lib/unictype/3level.h: New file, copied from glibc.
46451         * lib/unictype/3levelbit.h: New file.
46452
46453 2007-11-11  Bruno Haible  <bruno@clisp.org>
46454
46455         * modules/gperf: New file.
46456         * modules/iconv_open (Depends-on): Add it.
46457         (Makefile.am): Remove the GPERF definition.
46458
46459 2007-11-11  Bruno Haible  <bruno@clisp.org>
46460
46461         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46462         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46463
46464 2007-11-11  Bruno Haible  <bruno@clisp.org>
46465
46466         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46467         (usage): Remove function.
46468
46469 2007-11-11  Bruno Haible  <bruno@clisp.org>
46470
46471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46472         gl_FUNC_CEILF_LIBS.
46473         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46474         gl_FUNC_CEIL_LIBS.
46475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46476         gl_FUNC_CEILL_LIBS.
46477         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46478         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46479         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46480
46481 2007-11-11  Bruno Haible  <bruno@clisp.org>
46482
46483         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46484         roundf were declared but do not exist on functions.
46485         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46486         roundl were declared but do not exist on functions.
46487         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46488         HAVE_FLOORL_AND_CEILL, respectively.
46489         Needed for Sun C on Solaris 10.
46490
46491 2007-11-11  Bruno Haible  <bruno@clisp.org>
46492
46493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46494         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46495         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46496         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46498         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46499         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46500         HAVE_DECL_ROUNDF.
46501         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46502         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46504         of HAVE_DECL_ROUND*.
46505         * modules/math (Makefile.am): Update.
46506
46507 2007-11-10  Bruno Haible  <bruno@clisp.org>
46508
46509         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46510         ptrdiff_t as m4/intl.m4.
46511
46512 2007-11-10  Jim Meyering  <meyering@redhat.com>
46513
46514         Avoid link failure for the argmatch test.
46515         * tests/test-argmatch.c (usage): Define function to avoid a link
46516         failure: argmatch_die requires a usage function.
46517
46518 2007-11-09  Bruno Haible  <bruno@clisp.org>
46519
46520         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46521         * doc/functions/vsnprintf.texi: Likewise.
46522         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46523         with a size argument < 2.
46524
46525 2007-11-09  Bruno Haible  <bruno@clisp.org>
46526
46527         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46528         buffer. Fixes an inefficiency introduced on 2007-11-03.
46529
46530 2007-11-09  Bruno Haible  <bruno@clisp.org>
46531
46532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46533         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46534
46535 2007-11-08  Jim Meyering  <meyering@redhat.com>
46536
46537         Change cache variable name prefix "jm_" to "gl_" everywhere.
46538         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46539         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46540         * m4/uptime.m4: s/gl_/jm_/
46541
46542 2007-11-07  Bruno Haible  <bruno@clisp.org>
46543
46544         Update to GNU gettext 0.17.
46545         * m4/intl.m4: Update to GNU gettext 0.17.
46546         * m4/po.m4: Likewise.
46547         * modules/gettext (Files): Remove m4/ulonglong.m4.
46548         (configure.ac): Require gettext infrastructure from version 0.17.
46549
46550 2007-11-06  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46553         symbolic values are not defined in a public header.
46554         * lib/freadable.c (freadable) [QNX]: Likewise.
46555         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46556         * lib/freading.c (freading) [QNX]: Likewise.
46557         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46558         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46559         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46560         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46561         Reported by Alain Magloire.
46562
46563         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46564
46565 2007-11-05  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46568         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46569         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46570         Reported by Eric Blake.
46571
46572 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46573             Bruno Haible  <bruno@clisp.org>
46574
46575         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46576         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46577         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46578         (malloc): Undefine also before including <stdlib.h>.
46579         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46580         Needed on OSF/1 4.0.
46581
46582 2007-11-05  Jim Meyering  <meyering@redhat.com>
46583
46584         git-version-gen: sync from coreutils.
46585         * build-aux/git-version-gen: Add comments.
46586         Change the first '-' to '.' in the snapshot version string,
46587         e.g., 6.9-377-08144 -> 6.9.377-08144
46588         Remove first parameter.
46589         Don't declare a version "-dirty" merely because a time
46590         stamp has changed.
46591
46592 2007-11-04  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/lock.h: Protect all macro definitions containing an 'if'
46595         statement through a "do { ... } while (0)".
46596         * lib/tls.h: Likewise.
46597
46598 2007-11-04  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46601
46602 2007-11-04  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46605         * modules/fprintf-posix (Depends-on): Add nocrash.
46606         * modules/snprintf-posix (Depends-on): Likewise.
46607         * modules/sprintf-posix (Depends-on): Likewise.
46608         * modules/vasnprintf-posix (Depends-on): Likewise.
46609         * modules/vasprintf-posix (Depends-on): Likewise.
46610         * modules/vfprintf-posix (Depends-on): Likewise.
46611         * modules/vsnprintf-posix (Depends-on): Likewise.
46612         * modules/vsprintf-posix (Depends-on): Likewise.
46613         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46614         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46615         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46616         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46617         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46618         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46619         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46620
46621 2007-11-04  Bruno Haible  <bruno@clisp.org>
46622
46623         * modules/nocrash: New file.
46624         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46625         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46626
46627 2007-11-04  Bruno Haible  <bruno@clisp.org>
46628
46629         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46630         precision handling.
46631         * tests/test-vasprintf-posix.c (test_function): Likewise.
46632         * tests/test-snprintf-posix.h (test_function): Likewise.
46633         * tests/test-sprintf-posix.h (test_function): Likewise.
46634
46635         Fix *printf behaviour for large precisions on mingw and BeOS.
46636         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46637         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46639         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46641         gl_PRINTF_PRECISION and test its result. Invoke
46642         gl_PREREQ_VASNPRINTF_PRECISION.
46643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46650         * doc/functions/fprintf.texi: Update.
46651         * doc/functions/printf.texi: Update.
46652         * doc/functions/snprintf.texi: Update.
46653         * doc/functions/sprintf.texi: Update.
46654         * doc/functions/vfprintf.texi: Update.
46655         * doc/functions/vprintf.texi: Update.
46656         * doc/functions/vsnprintf.texi: Update.
46657         * doc/functions/vsprintf.texi: Update.
46658
46659 2007-11-04  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46662
46663 2007-11-04  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46666         Reported by Sylvain Beucler <beuc@gnu.org>.
46667
46668 2007-11-03  Bruno Haible  <bruno@clisp.org>
46669
46670         * tests/test-fprintf-posix2.sh: New file.
46671         * tests/test-fprintf-posix2.c: New file.
46672         * modules/fprintf-posix-tests (Files): Add them.
46673         (TESTS): Add test-fprintf-posix2.sh.
46674         (configure.ac): Check for getrlimit and setrlimit.
46675         (check_PROGRAMS): Add test-fprintf-posix2.
46676
46677         * tests/test-printf-posix2.sh: New file.
46678         * tests/test-printf-posix2.c: New file.
46679         * modules/printf-posix-tests (Files): Add them.
46680         (TESTS): Add test-printf-posix2.sh.
46681         (configure.ac): Check for getrlimit and setrlimit.
46682         (check_PROGRAMS): Add test-printf-posix2.
46683
46684         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46685         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46686         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46687         (decode_double): New function, copied from decode_long_double.
46688         (scale10_round_decimal_decoded): New function, extracted from
46689         scale10_round_decimal_long_double.
46690         (scale10_round_decimal_long_double): Use it.
46691         (scale10_round_decimal_double): New function.
46692         (floorlog10): New function.
46693         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46695         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46697         gl_PRINTF_ENOMEM and test its result. Invoke
46698         gl_PREREQ_VASNPRINTF_ENOMEM.
46699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46706         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46707         * modules/snprintf-posix (Depends-on): Likewise.
46708         * modules/sprintf-posix (Depends-on): Likewise.
46709         * modules/vasnprintf-posix (Depends-on): Likewise.
46710         * modules/vasprintf-posix (Depends-on): Likewise.
46711         * modules/vfprintf-posix (Depends-on): Likewise.
46712         * modules/vsnprintf-posix (Depends-on): Likewise.
46713         * modules/vsprintf-posix (Depends-on): Likewise.
46714         * doc/functions/fprintf.texi: Update.
46715         * doc/functions/printf.texi: Update.
46716         * doc/functions/snprintf.texi: Update.
46717         * doc/functions/sprintf.texi: Update.
46718         * doc/functions/vfprintf.texi: Update.
46719         * doc/functions/vprintf.texi: Update.
46720         * doc/functions/vsnprintf.texi: Update.
46721         * doc/functions/vsprintf.texi: Update.
46722
46723 2007-11-03  Bruno Haible  <bruno@clisp.org>
46724
46725         * modules/frexp-nolibm-tests: New file.
46726
46727         * modules/frexp-nolibm: New file.
46728         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46729
46730 2007-11-03  Bruno Haible  <bruno@clisp.org>
46731
46732         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46733         value is C99 compliant.
46734         Needed for OSF/1 5.1.
46735
46736 2007-11-03  Bruno Haible  <bruno@clisp.org>
46737
46738         Fix out-of-memory handling of vasnprintf.
46739         * lib/printf-parse.c: Include <errno.h>.
46740         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46741         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46742         is already set.
46743
46744 2007-11-02  Eric Blake  <ebb9@byu.net>
46745
46746         Fix tests on cygwin.
46747         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46748
46749 2007-11-01  Bruno Haible  <bruno@clisp.org>
46750
46751         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46752         warning.
46753         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46754         needed for POSIX compatibility.
46755
46756 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46757
46758         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46759         for compatibility with GNU.
46760
46761 2007-11-01  Bruno Haible  <bruno@clisp.org>
46762
46763         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46764         (putenv): Renamed from rpl_putenv. Change argument type from
46765         'const char *' to 'char *'.
46766         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46767         of defining putenv in config.h, just set REPLACE_PUTENV.
46768         * modules/putenv (Depends-on): Add stdlib.
46769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46770         (Include): Use <stdlib.h>.
46771         * lib/stdlib.in.h (putenv): New declaration.
46772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46773         REPLACE_PUTENV.
46774         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46775         REPLACE_PUTENV.
46776         Needed for MacOS X 10.5.0.
46777         Reported by Peter O'Gorman <peter@pogma.com>.
46778
46779 2007-11-01  Jim Meyering  <meyering@redhat.com>
46780
46781         Treat an empty date string exactly like "0".
46782         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46783         if the remaining date string (to be parsed) is empty, use "0".
46784         Reported by Mischa Molhoek and discussed in this thread:
46785         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46786
46787 2007-10-31  Bruno Haible  <bruno@clisp.org>
46788
46789         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46790         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46791         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46792         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46793         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46794         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46795
46796 2007-10-31  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46799         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46800         (AC_TYPE_LONG_LONG_INT): Use it.
46801         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46802         it as well.
46803         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46804         to m4/longlong.m4.
46805         * modules/stdint (Files): Remove m4/ulonglong.m4.
46806         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46807         m4/ulonglong.m4.
46808         * modules/strtoumax (Files): Likewise.
46809
46810 2007-10-30  Bruno Haible  <bruno@clisp.org>
46811
46812         * modules/xvasprintf-posix: New file.
46813         Suggested by Eric Blake.
46814
46815 2007-10-30  Bruno Haible  <bruno@clisp.org>
46816
46817         * modules/xprintf-posix-tests: New file.
46818         * tests/test-xprintf-posix.sh: New file.
46819         * tests/test-xprintf-posix.c: New file.
46820         * tests/test-xfprintf-posix.c: New file.
46821
46822         * modules/xprintf-posix: New file.
46823
46824 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46825
46826         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46827         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46828         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46829
46830 2007-10-29  Bruno Haible  <bruno@clisp.org>
46831
46832         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46833         contain the special marker '_cv_'.
46834         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46835         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46836         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46837         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46838         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46839         Reported by Ralf Wildenhues.
46840
46841 2007-10-29  Bruno Haible  <bruno@clisp.org>
46842
46843         * gnulib-tool (func_import): When --lgpl is not specified, set
46844         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46845         GPLv3.
46846         Reported by Simon Josefsson.
46847
46848 2007-10-28  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46851         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46852         HAVE_DECL_ISFINITE.
46853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46854         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46855         HAVE_DECL_ISFINITE.
46856
46857 2007-10-28  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46860         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46861
46862 2007-10-28  Bruno Haible  <bruno@clisp.org>
46863
46864         Fix link errors with Sun C 5.0 on Solaris 10.
46865         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46866         function is declared but not present in the compiler's libm.
46867         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46868         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46869         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46870         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46871         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46872         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46873         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46875         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46876         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46877         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46878         HAVE_DECL_FLOORL.
46879
46880 2007-10-28  Bruno Haible  <bruno@clisp.org>
46881
46882         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46883         gl_FUNC_FLOORL. Cache the result.
46884         (gl_FUNC_FLOORL): Use it.
46885         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46886         gl_FUNC_CEILL. Cache the result.
46887         (gl_FUNC_CEILL): Use it.
46888
46889         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46890         gl_FUNC_FLOOR. Cache the result.
46891         (gl_FUNC_FLOOR): Use it.
46892         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46893         gl_FUNC_CEIL. Cache the result.
46894         (gl_FUNC_CEIL): Use it.
46895
46896         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46897         gl_FUNC_FLOORF. Cache the result.
46898         (gl_FUNC_FLOORF): Use it.
46899         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46900         gl_FUNC_CEILF. Cache the result.
46901         (gl_FUNC_CEILF): Use it.
46902
46903 2007-10-28  Bruno Haible  <bruno@clisp.org>
46904
46905         * gnulib-tool: Allow specifying the LGPL version number through
46906         --lgpl=2 or --lgpl=3.
46907         (func_usage): Document --lgpl with argument.
46908         Handle --lgpl=... arguments.
46909         (func_import): Recognize also gl_LGPL calls with an argument. When
46910         --lgpl=2 is used and the module's license is just LGPL, report an
46911         error. Set sed_transform_lib_file according to the lgpl variable. In
46912         the generated files, use --lgpl or gl_LGPL invocations with argument,
46913         if necessary.
46914         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46915         an LGPv2+ license.
46916         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46917         gl_LGPL macro.
46918
46919 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46920             Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46923         (u16_uctomb_aux): Likewise.
46924         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46925         !HAVE_INLINE.
46926         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46927
46928 2007-10-28  Bruno Haible  <bruno@clisp.org>
46929
46930         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46931         Invoke AM_GETTEXT_OPTION if it exists.
46932         * modules/vasprintf: Likewise.
46933         * modules/verror: Likewise.
46934         * modules/xprintf: Likewise.
46935         * modules/xvasprintf: Likewise.
46936
46937 2007-10-27  Ben Pfaff  <blp@gnu.org>
46938
46939         * lib/math.in.h: Define isfinite macro and prototypes for
46940         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46941         implementations.
46942         * m4/math_h.m4: New substitutions for isfinite module.
46943         * lib/isfinite.c: New file.
46944         * m4/isfinite.m4: New file.
46945         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46946         * modules/isfinite: New file.
46947         * modules/isfinite-tests: New file.
46948         * tests/tests-isfinite.c: New file.
46949         * doc/functions/isfinite.texi: Mention isfinite module.
46950         * MODULES.html.sh: Mention new module.
46951
46952 2007-10-27  Ben Pfaff  <blp@gnu.org>
46953
46954         Ralf Wildenhues reported that Tru64 4.0D declares the round
46955         functions but does not have definitions.
46956         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46957         cannot be found in any library, set the output variable to
46958         "missing" instead of "".
46959         * m4/round.m4: Also use our substitute if we cannot find round in
46960         any library, even if it is declared.
46961         * m4/roundf.m4: Likewise for roundf.
46962         * m4/roundl.m4: Likewise for roundl.
46963         * lib/math.in.h: Undefine roundf, round, roundl before defining
46964         their replacements, to allow for hypothetical systems where these
46965         may be defined as macros but not available in libraries.
46966
46967 2007-10-27  Bruno Haible  <bruno@clisp.org>
46968
46969         * doc/gnulib.texi: Invoke @firstparagraphindent.
46970         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46971         changes in gnulib.
46972         (Source changes): New section.
46973
46974 2007-10-26  Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46977         borrowed from autoconf.
46978
46979 2007-10-26  Bruno Haible  <bruno@clisp.org>
46980
46981         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46982         strerror returned the empty string. Needed on HP-UX 11.00.
46983
46984 2007-10-24  Micah Cowan  <micah@cowan.name>
46985
46986         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46987         * build-aux/bootstrap: Remove support for now-unnecessary option,
46988         --cvs-user, and envvars CVS_USER, CVS_RSH.
46989
46990 2007-10-24  Jim Meyering  <meyering@redhat.com>
46991
46992         Avoid diagnostics from sha1sum when there is no cached checksum.
46993         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46994         if the po.s1 file hasn't been created yet.
46995
46996         * build-aux/bootstrap: Sync from coreutils:
46997         2007-10-24  Jim Meyering  <meyering@redhat.com>
46998         Get gnulib from the git repository, not from an obsolete cvs one.
46999         * build-aux/bootstrap: Suggestion from Micah Cowan.
47000         2007-10-04  Jim Meyering  <jim@meyering.net>
47001         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47002         (update_po_files): Work also when there are no .po files in po/.
47003
47004 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47005
47006         * README: Append ".git" to git and cg examples.
47007         Problem reported by Benoit Sigoure.
47008
47009 2007-10-23  Micah Cowan  <micah@cowan.name>
47010
47011         * users.txt: Add wget.
47012
47013 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47014
47015         Fix linking of some unistdio tests on FreeBSD.
47016         * modules/unistdio/u16-vsnprintf-tests
47017         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47018         * modules/unistdio/u16-vsprintf-tests
47019         (test_u16_vsnprintf1_LDADD): Likewise.
47020         * modules/unistdio/u32-vsnprintf-tests
47021         (test_u32_vsnprintf1_LDADD): Likewise.
47022         * modules/unistdio/u32-vsprintf-tests
47023         (test_u32_vsprintf1_LDADD): Likewise.
47024         * modules/unistdio/u8-vsnprintf-tests
47025         (test_u8_vsnprintf1_LDADD): Likewise.
47026         * modules/unistdio/u8-vsprintf-tests
47027         (test_u8_vsprintf1_LDADD): Likewise.
47028         * modules/unistdio/ulc-vsnprintf-tests
47029         (test_ulc_vsnprintf1_LDADD): Likewise.
47030         * modules/unistdio/ulc-vsprintf-tests
47031         (test_ulc_vsprintf1_LDADD): Likewise.
47032
47033         Fix linking of some uniconv tests on FreeBSD.
47034         * modules/uniconv/u16-conv-from-enc-tests
47035         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47036         * modules/uniconv/u16-conv-to-enc-tests
47037         (test_u16_conv_to_enc_LDADD): Likewise.
47038         * modules/uniconv/u16-strconv-from-enc-tests
47039         (test_u16_strconv_from_enc_LDADD): Likewise.
47040         * modules/uniconv/u16-strconv-to-enc-tests
47041         (test_u16_strconv_to_enc_LDADD): Likewise.
47042         * modules/uniconv/u32-conv-from-enc-tests
47043         (test_u32_conv_from_enc_LDADD): Likewise.
47044         * modules/uniconv/u32-conv-to-enc-tests
47045         (test_u32_conv_to_enc_LDADD): Likewise.
47046         * modules/uniconv/u32-strconv-from-enc-tests
47047         (test_u32_strconv_from_enc_LDADD): Likewise.
47048         * modules/uniconv/u32-strconv-to-enc-tests
47049         (test_u32_strconv_to_enc_LDADD): Likewise.
47050         * modules/uniconv/u8-conv-from-enc-tests
47051         (test_u8_conv_from_enc_LDADD): Likewise.
47052         * modules/uniconv/u8-conv-to-enc-tests
47053         (test_u8_conv_to_enc_LDADD): Likewise.
47054         * modules/uniconv/u8-strconv-from-enc-tests
47055         (test_u8_strconv_from_enc_LDADD): Likewise.
47056         * modules/uniconv/u8-strconv-to-enc-tests
47057         (test_u8_strconv_to_enc_LDADD): Likewise.
47058
47059 2007-10-22  Bruno Haible  <bruno@clisp.org>
47060
47061         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47062         size.
47063
47064 2007-10-22  Eric Blake  <ebb9@byu.net>
47065
47066         Tweak x*printf documentation.
47067         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47068         variable name and comments.
47069         Suggested by Bruno Haible.
47070
47071 2007-10-22  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/acl.c (copy_acl): Fix file name in comment.
47074
47075 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47076
47077         Fix Tru64 problem with stdbool.h.
47078         * lib/stdbool.in.h (false, true):
47079         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47080         Don't declare as an enum in this situation; it runs afoul of Tru64.
47081         Problem reported by Steven M. Schweda in
47082         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47083
47084 2007-10-22  Eric Blake  <ebb9@byu.net>
47085
47086         Also wrap vf?printf.
47087         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47088         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47089         (xvprintf, xvfprintf): New functions.
47090
47091 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47092
47093         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47094         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47095
47096         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47097         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47098
47099 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47102         by Bruno Haible.
47103
47104 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47105
47106         * lib/getloadavg.c
47107         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47108         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47109
47110         * tests/test-i-ring.c: Work for C89.
47111
47112 2007-10-22  Bruno Haible  <bruno@clisp.org>
47113
47114         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47115         -1u, in preprocessor expression, so that we don't test for the bug
47116         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47118
47119 2007-10-22  Eric Blake  <ebb9@byu.net>
47120
47121         * tests/test-yesno.sh: Silence stderr during test.
47122
47123 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47124
47125         * modules/crypto/gc-camellia: New file.
47126
47127         * m4/gc-camellia.m4: New file.
47128
47129         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47130
47131         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47132
47133 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47134
47135         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47136         --help to stdout.  Reported by sms@antinode.org (Steven
47137         M. Schweda).
47138
47139 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47140
47141         * users.txt: Fix link to libksba.
47142
47143 2007-10-21  Ben Pfaff  <blp@gnu.org>
47144
47145         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47146         round.c roundf implementation that depends on floorf and ceilf to
47147         be tested unconditionally.
47148
47149 2007-10-21  Ben Pfaff  <blp@gnu.org>
47150
47151         * m4/check-libm-func.m4: Removed.
47152         * m4/check-math-lib.m4: New file.
47153         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47154         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47155         definition and lack of AC_LIBOBJ([roundf]).
47156         * m4/roundl.m4: Ditto, and similarly for roundl.
47157         * modules/round: Reference new m4 file.
47158         * modules/roundf: Ditto.
47159         * modules/roundl: Ditto.
47160         * tests/test-round2.c (main): Use ROUND instead of round.
47161         Bug report from Bruno Haible.
47162
47163 2007-10-21  Bruno Haible  <bruno@clisp.org>
47164
47165         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47166         context.
47167
47168 2007-10-21  Bruno Haible  <bruno@clisp.org>
47169
47170         * tests/test-wcwidth.c (main): Allow negative result for some control
47171         characters.
47172
47173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47174         Needed on OSF/1 5.1.
47175
47176 2007-10-21  Bruno Haible  <bruno@clisp.org>
47177
47178         * tests/test-floorf1.c: Include isnanf.h.
47179         (main): Use isnanf() instead of isnan().
47180         * tests/test-ceilf1.c: Include isnanf.h.
47181         (main): Use isnanf() instead of isnan().
47182         * tests/test-truncf1.c: Include isnanf.h.
47183         (main): Use isnanf() instead of isnan().
47184         * tests/test-roundf1.c: Include isnanf.h.
47185         (main): Use isnanf() instead of isnan().
47186
47187 2007-10-21  Eric Blake  <ebb9@byu.net>
47188
47189         * users.txt: Update URL for m4.
47190
47191 2007-10-21  Bruno Haible  <bruno@clisp.org>
47192
47193         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47194
47195 2007-10-21  Bruno Haible  <bruno@clisp.org>
47196
47197         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47198         Git's management files if the CVS files are not present.
47199
47200 2007-10-20  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47203         gcc-3.4.x.
47204
47205 2007-10-20  Ben Pfaff  <blp@gnu.org>
47206
47207         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47208         implementations.
47209         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47210         * lib/round.c: New file.
47211         * lib/roundf.c: New file.
47212         * lib/roundl.c: New file.
47213         * m4/round.m4: New file.
47214         * m4/roundf.m4: New file.
47215         * m4/roundl.m4: New file.
47216         * m4/check-libm-func-m4: New file.
47217         * modules/math: Replace round, roundf, roundl related @VARS@ in
47218         math.in.h.
47219         * modules/round: New file.
47220         * modules/round-tests: New file.
47221         * modules/roundf: New file.
47222         * modules/roundf-tests: New file.
47223         * modules/roundl: New file.
47224         * modules/roundl-tests: New file.
47225         * tests/test-round1.c: New file.
47226         * tests/test-round2.c: New file.
47227         * tests/test-roundf1.c: New file.
47228         * tests/test-roundf2.c: New file.
47229         * tests/test-roundl.c: New file.
47230         * doc/functions/round.texi: Mention round module.
47231         * doc/functions/roundf.texi: Mention roundf module.
47232         * doc/functions/roundl.texi: Mention roundl module.
47233         * MODULES.html.sh: Mention new modules.
47234         Thanks to Bruno Haible for suggestions.
47235
47236 2007-10-20  Jim Meyering  <meyering@redhat.com>
47237
47238         * lib/xprintf.c: Include <config.h> unconditionally.
47239
47240         Change xprintf's license to GPL.
47241         * modules/xprintf (License): s/LGPL/GPL/, since this module
47242         depends on modules (exit and exitfail) which are GPL.
47243         Suggestion from Bruno Haible.
47244
47245         xprintf fixes.
47246         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47247         Use a clearer diagnostic.
47248         Patch from Bruno Haible.
47249
47250 2007-10-20  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47253         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47255
47256 2007-10-20  Bruno Haible  <bruno@clisp.org>
47257
47258         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47259         precision in the comparison result > x - 1 or similar.
47260         * tests/test-ceilf2.c (correct_result_p): Likewise.
47261         * tests/test-truncf2.c (correct_result_p): Likewise.
47262         * tests/test-trunc2.c (correct_result_p): Likewise.
47263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47264
47265 2007-10-20  Bruno Haible  <bruno@clisp.org>
47266
47267         * modules/ceil: New file.
47268         * m4/ceil.m4: New file.
47269         * doc/functions/ceil.texi: Mention the 'ceil' module.
47270
47271 2007-10-20  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/floor: New file.
47274         * m4/floor.m4: New file.
47275         * doc/functions/floor.texi: Mention the 'floor' module.
47276
47277 2007-10-20  Bruno Haible  <bruno@clisp.org>
47278
47279         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47280         of %a.
47281         * modules/floorf-tests (Depends-on): Likewise.
47282         * modules/truncf-tests (Depends-on): Likewise.
47283         * modules/trunc-tests (Depends-on): Likewise.
47284         Reported by Ben Pfaff.
47285
47286 2007-10-19  Jim Meyering  <meyering@redhat.com>
47287
47288         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47289         Don't bother testing specific errno values.  Just test ferror.
47290
47291         New module: xprintf
47292         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47293
47294 2007-10-19  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47297         syntax.
47298         * modules/javaexec (Makefile.am): Likewise.
47299         * modules/relocatable-prog (Makefile.am): Likewise.
47300         Suggested by Jim Meyering.
47301
47302 2007-10-18  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47305         Reported by Jim Meyering.
47306
47307 2007-10-18  Eric Blake  <ebb9@byu.net>
47308
47309         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47310
47311 2007-10-18  Bruno Haible  <bruno@clisp.org>
47312
47313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47314         the format string into writable memory. Needed in Fortify conditions.
47315
47316 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47317             Bruno Haible  <bruno@clisp.org>
47318
47319         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47320         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47321         * modules/trim (Depends-on): Add mbchar.
47322         (configure.ac): Add gl_FUNC_MBRTOWC.
47323         (Makefile.am): Augment lib_SOURCES.
47324
47325 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         Modify glob.c to use fstatat and dirfd, to simplify it.
47328         Suggested by Eric Blake.
47329         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47330         Don't include <stdbool.h>; not used.
47331         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47332         (link_exists_p): Simplify implementation, since we can now assume
47333         dirfd and fstatat.
47334         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47335
47336 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47337
47338         * gnulib-tool (func_get_dependencies): Fix sed script to
47339         match only tests.
47340
47341 2007-10-17  Bruno Haible  <bruno@clisp.org>
47342
47343         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47344         allow locale names without encoding suffix.
47345         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47346         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47347
47348 2007-10-16  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47351         * lib/getgroups.c (getgroups): Likewise.
47352         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47353
47354 2007-10-16  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47357         * modules/malloc-posix (License): Likewise.
47358         * modules/realloc-posix (License): Likewise.
47359         * modules/calloc-posix (License): Likewise.
47360         * modules/intprops (License): Change from GPL to LGPL, with
47361         Paul Eggert's approval.
47362
47363 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47364
47365         Merge glibc changes into lib/glob.c.
47366
47367         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47368         2007-10-15 04:59:03 UTC.  Here are the changes:
47369
47370         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47371
47372         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47373
47374         * lib/glob.c: Add some branch prediction throughout.
47375
47376         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47377
47378         [BZ #5103]
47379         * lib/glob.c (glob): Recognize patterns starting \/.
47380
47381         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47382
47383         [BZ #3996]
47384         * lib/glob.c (attribute_hidden): Define if not defined.
47385         (glob): Unescape dirname, filename or username when needed and not
47386         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47387         is NULL.  Handle unescaped [ in pattern without closing ].
47388         Don't pass GLOB_CHECK down to recursive glob for directories.
47389         (__glob_pattern_type): New function.
47390         (__glob_pattern_p): Implement using __glob_pattern_type.
47391         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47392         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47393         Remove unreachable code.
47394
47395         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47396
47397         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47398         explain why there are no leaks.
47399
47400         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47401
47402         [BZ #3253]
47403         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47404         time, rather allocate increasingly bigger arrays of pointers, if
47405         possible with alloca, if too large with malloc.
47406
47407 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47408
47409         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47410         Problem reported by H.Merijn Brand in
47411         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47412         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47413         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47414
47415 2007-10-15  Bruno Haible  <bruno@clisp.org>
47416
47417         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47418         with explicit rpl_ prefix.
47419         * lib/fopen.c (fopen): Likewise.
47420         * lib/freopen.c (freopen): Likewise.
47421         * lib/iconv.c (iconv): Likewise.
47422         * lib/iconv_close.c (iconv_close): Likewise.
47423
47424 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47425
47426         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47427
47428 2007-10-15  Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47431         <stddef.h> instead of <stdlib.h> since we only need NULL.
47432         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47433
47434 2007-10-15  Bruno Haible  <bruno@clisp.org>
47435
47436         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47437         Replace paragraph talking about LIBOBJS.
47438         Reported by Colin Watson <cjwatson@debian.org>.
47439
47440 2007-10-15  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47443         <stdlib.h> before using NULL.
47444
47445 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47446
47447         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47448         Reported by Albert Chin <china@thewrittenword.com>.
47449
47450 2007-10-14  Bruno Haible  <bruno@clisp.org>
47451
47452         * modules/iconv_open-utf-tests: New file.
47453         * tests/test-iconv-utf.c: New file.
47454
47455         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47456         * modules/iconv_open-utf: New file.
47457         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47458         (iconv, iconv_close): New declarations.
47459         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47460         be defined.
47461         (iconv_open): Add special handling of conversion between UTF-8 and
47462         UTF-{16,32}{BE,LE}.
47463         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47464         * lib/iconv_close.c: New file.
47465         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47466         gl_FUNC_ICONV_OPEN.
47467         (gl_FUNC_ICONV_OPEN): Use it.
47468         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47469         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47470         and REPLACE_ICONV_UTF.
47471         * modules/iconv_open (Depends-on): Add c-strcase.
47472         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47473         ICONV_CONST.
47474         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47475
47476 2007-10-13  Albert Chin  <china@thewrittenword.com>
47477             Bruno Haible  <bruno@clisp.org>
47478
47479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47480         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47481
47482 2007-10-13  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47485         defined, use the ISO C99 inline semantics.
47486         * lib/argp.h (ARGP_EI): Likewise.
47487
47488 2007-10-13  Bruno Haible  <bruno@clisp.org>
47489
47490         Handle 'inline' change in gcc 4.3.0.
47491         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47492         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47493         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47494         argp_fmtstream_point): Disable 'extern' declaration if the function
47495         definition is going to be provided inline.
47496         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47497         semantics, not the ISO C99 inline semantics.
47498         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47499         'extern' declaration if the function definition is going to be provided
47500         inline.
47501         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47502         the GNU C inline semantics, not the ISO C99 inline semantics. With
47503         GCC 4.2, avoid a warning.
47504
47505 2007-10-13  Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/freading.h (freading): Enable the use of __freading for
47508         glibc >= 2.7.
47509         * lib/freading.c (freading): Likewise.
47510
47511 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47512
47513         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47514         "warning: C99 inline functions are not supported; using GNU89".
47515
47516 2007-10-12  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47519         of 2.
47520         * tests/test-ceilf2.c: New file.
47521         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47522
47523         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47524         * modules/ceilf-tests: Update.
47525
47526 2007-10-12  Bruno Haible  <bruno@clisp.org>
47527
47528         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47529         of 2.
47530         * tests/test-floorf2.c: New file.
47531         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47532
47533         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47534         * modules/floorf-tests: Update.
47535
47536 2007-10-12  Bruno Haible  <bruno@clisp.org>
47537
47538         * tests/test-trunc2.c: New file.
47539         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47540
47541         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47542         * modules/trunc-tests: Update.
47543
47544 2007-10-12  Bruno Haible  <bruno@clisp.org>
47545
47546         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47547         of 2.
47548         * tests/test-truncf2.c: New file.
47549         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47550
47551         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47552         * modules/truncf-tests: Update.
47553
47554 2007-10-11  Eric Blake  <ebb9@byu.net>
47555
47556         Don't claim strerror is broken on Interix.
47557         * doc/functions/strerror.texi (strerror): Known broken systems are
47558         now Solaris 8, and not Interix.
47559         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47560         Interix on cross-compile.
47561         Reported by Martin Koeppe in
47562         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47563
47564 2007-10-11  Bruno Haible  <bruno@clisp.org>
47565
47566         * modules/i-ring-tests: New file.
47567         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47568         instead of assert.
47569
47570 2007-10-11  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/filenamecat-tests: New file.
47573         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47574         * lib/filenamecat.c: Remove test code.
47575
47576 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47579
47580         * lib/strerror.c: Include <string.h> always, to test interface,
47581         and to remove the need for the dummy.
47582         Include intprops.h to compute width instead of doing it ourselves
47583         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47584         (strerror): Define it to return NULL if there's no system strerror.
47585         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47586         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47587         ancient pre-strerror Unix systems well any more.  Saying "unknown
47588         system error" is enough.
47589         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47590         simpler strerror.c implementation.
47591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47592         Simplify the tests to reflect the simpler strerror implementation.
47593         * modules/strerror (Depends-on): Add intprops.
47594
47595 2007-10-09  Eric Blake  <ebb9@byu.net>
47596
47597         Silence test-fpending.
47598         * modules/fpending-tests (Files): Add wrapper script.
47599         * tests/test-fpending.sh: New file.
47600
47601 2007-10-09  Bruno Haible  <bruno@clisp.org>
47602
47603         * MODULES.html.sh (func_module): Don't create a hyperlink for
47604         function names like 'printf_frexp'.
47605         (Misc): Add crc, memxor.
47606         (Characteristics of floating types): New section.
47607         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47608         isnanf-nolibm, signbit, trunc, truncf, truncl.
47609         (Enhancements for ISO C 99 functions): New subsection Input/output.
47610         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47611         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47612         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47613         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47614         (Enhancements for POSIX:2001 functions): Add chdir-long.
47615         (File system functions): Add areadlink, chdir-safer, read-file.
47616         Remove cycle-check.
47617         (File system as inode set): New section.
47618         (Date and time): Add gethrxtime.
47619         (Multithreading): Add openmp.
47620         (Internationalization functions): Add localename.
47621         (Unicode string functions): Add unistr/u*-mbsnlen.
47622         (Support for maintaining and releasing projects): Add git-version-gen.
47623         (Lone files): Remove directories.
47624
47625 2007-10-08  Ben Pfaff  <blp@gnu.org>
47626
47627         * lib/xmalloca.h: Fix typo in comment.
47628
47629 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47630
47631         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47632         when avoiding problems with integer overflow.  Use a portable test
47633         instead.
47634
47635 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47636
47637         * modules/dummy (License): Change to LGPLv2+.
47638         * modules/float (License): Likewise
47639         * modules/realloc (License): Likewise
47640         * modules/stdlib (License): Likewise
47641
47642 2007-10-07  Bruno Haible  <bruno@clisp.org>
47643
47644         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47645         * floor.c (TWO_MANT_DIG): Likewise.
47646         * ceil.c (TWO_MANT_DIG): Likewise.
47647         Reported by Ben Pfaff.
47648
47649 2007-10-07  Bruno Haible  <bruno@clisp.org>
47650
47651         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47652         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47653         * lib/frexp.c (FUNC): Likewise.
47654         * lib/printf-frexp.h (printf_frexp): Likewise.
47655         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47656         * lib/printf-frexp.c (FUNC): Likewise.
47657         Suggested by Jim Meyering.
47658
47659 2007-10-07  Jim Meyering  <meyering@redhat.com>
47660
47661         Make xnanosleep's integer overflow test more robust.
47662         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47663         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47664
47665 2007-10-07  Bruno Haible  <bruno@clisp.org>
47666
47667         * NEWS: Mention the license change.
47668
47669         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47670         abbreviations in the modules files.
47671
47672         Change copyright notice from GPLv2+ to GPLv3+.
47673         * README: Change copyright notice.
47674         * MODULES.html.sh: Likewise.
47675         * build-aux/bootstrap.conf: Likewise.
47676         * build-aux/config.libpath: Likewise.
47677         * build-aux/csharpcomp.sh.in: Likewise.
47678         * build-aux/csharpexec.sh.in: Likewise.
47679         * build-aux/install-reloc: Likewise.
47680         * build-aux/javacomp.sh.in: Likewise.
47681         * build-aux/javaexec.sh.in: Likewise.
47682         * build-aux/ldd.sh.in: Likewise.
47683         * build-aux/reloc-ldflags: Likewise.
47684         * build-aux/relocatable.sh.in: Likewise.
47685         * build-aux/x-to-1.in: Likewise.
47686         * check-module: Likewise.
47687         * config/srclistvars.sh: Likewise.
47688         * gnulib-tool: Likewise.
47689         * lib/acl-internal.h: Likewise.
47690         * lib/acl.c: Likewise.
47691         * lib/acl.h: Likewise.
47692         * lib/acl_entries.c: Likewise.
47693         * lib/areadlink-with-size.c: Likewise.
47694         * lib/areadlink.c: Likewise.
47695         * lib/areadlink.h: Likewise.
47696         * lib/argmatch.c: Likewise.
47697         * lib/argmatch.h: Likewise.
47698         * lib/argp-ba.c: Likewise.
47699         * lib/argp-eexst.c: Likewise.
47700         * lib/argp-fmtstream.c: Likewise.
47701         * lib/argp-fmtstream.h: Likewise.
47702         * lib/argp-fs-xinl.c: Likewise.
47703         * lib/argp-help.c: Likewise.
47704         * lib/argp-namefrob.h: Likewise.
47705         * lib/argp-parse.c: Likewise.
47706         * lib/argp-pin.c: Likewise.
47707         * lib/argp-pv.c: Likewise.
47708         * lib/argp-pvh.c: Likewise.
47709         * lib/argp-xinl.c: Likewise.
47710         * lib/argp.h: Likewise.
47711         * lib/at-func.c: Likewise.
47712         * lib/atanl.c: Likewise.
47713         * lib/backupfile.c: Likewise.
47714         * lib/backupfile.h: Likewise.
47715         * lib/basename.c: Likewise.
47716         * lib/binary-io.h: Likewise.
47717         * lib/byteswap.in.h: Likewise.
47718         * lib/c-stack.c: Likewise.
47719         * lib/c-stack.h: Likewise.
47720         * lib/c-strcasestr.c: Likewise.
47721         * lib/c-strcasestr.h: Likewise.
47722         * lib/c-strstr.c: Likewise.
47723         * lib/c-strstr.h: Likewise.
47724         * lib/c-strtod.c: Likewise.
47725         * lib/calloc.c: Likewise.
47726         * lib/canon-host.c: Likewise.
47727         * lib/canon-host.h: Likewise.
47728         * lib/canonicalize-lgpl.c: Likewise.
47729         * lib/canonicalize.c: Likewise.
47730         * lib/canonicalize.h: Likewise.
47731         * lib/ceil.c: Likewise.
47732         * lib/ceilf.c: Likewise.
47733         * lib/ceill.c: Likewise.
47734         * lib/chdir-long.c: Likewise.
47735         * lib/chdir-long.h: Likewise.
47736         * lib/chdir-safer.c: Likewise.
47737         * lib/chdir-safer.h: Likewise.
47738         * lib/chown.c: Likewise.
47739         * lib/classpath.c: Likewise.
47740         * lib/classpath.h: Likewise.
47741         * lib/clean-temp.c: Likewise.
47742         * lib/clean-temp.h: Likewise.
47743         * lib/cloexec.c: Likewise.
47744         * lib/close-stream.c: Likewise.
47745         * lib/closein.c: Likewise.
47746         * lib/closein.h: Likewise.
47747         * lib/closeout.c: Likewise.
47748         * lib/closeout.h: Likewise.
47749         * lib/concat-filename.c: Likewise.
47750         * lib/copy-file.c: Likewise.
47751         * lib/copy-file.h: Likewise.
47752         * lib/count-one-bits.h: Likewise.
47753         * lib/crc.c: Likewise.
47754         * lib/crc.h: Likewise.
47755         * lib/creat-safer.c: Likewise.
47756         * lib/csharpcomp.c: Likewise.
47757         * lib/csharpcomp.h: Likewise.
47758         * lib/csharpexec.c: Likewise.
47759         * lib/csharpexec.h: Likewise.
47760         * lib/cycle-check.c: Likewise.
47761         * lib/cycle-check.h: Likewise.
47762         * lib/diacrit.c: Likewise.
47763         * lib/diacrit.h: Likewise.
47764         * lib/diffseq.h: Likewise.
47765         * lib/dirchownmod.c: Likewise.
47766         * lib/dirent.in.h: Likewise.
47767         * lib/dirfd.c: Likewise.
47768         * lib/dirfd.h: Likewise.
47769         * lib/dirname.c: Likewise.
47770         * lib/dirname.h: Likewise.
47771         * lib/dummy.c: Likewise.
47772         * lib/dup-safer.c: Likewise.
47773         * lib/dup2.c: Likewise.
47774         * lib/eealloc.h: Likewise.
47775         * lib/error.c: Likewise.
47776         * lib/error.h: Likewise.
47777         * lib/euidaccess.c: Likewise.
47778         * lib/exclude.c: Likewise.
47779         * lib/exclude.h: Likewise.
47780         * lib/execute.c: Likewise.
47781         * lib/execute.h: Likewise.
47782         * lib/exitfail.c: Likewise.
47783         * lib/exitfail.h: Likewise.
47784         * lib/expl.c: Likewise.
47785         * lib/fatal-signal.c: Likewise.
47786         * lib/fatal-signal.h: Likewise.
47787         * lib/fbufmode.c: Likewise.
47788         * lib/fbufmode.h: Likewise.
47789         * lib/fchdir.c: Likewise.
47790         * lib/fchmodat.c: Likewise.
47791         * lib/fchownat.c: Likewise.
47792         * lib/fcntl--.h: Likewise.
47793         * lib/fcntl-safer.h: Likewise.
47794         * lib/fcntl.in.h: Likewise.
47795         * lib/fd-safer.c: Likewise.
47796         * lib/fflush.c: Likewise.
47797         * lib/file-has-acl.c: Likewise.
47798         * lib/file-set.c: Likewise.
47799         * lib/file-type.c: Likewise.
47800         * lib/file-type.h: Likewise.
47801         * lib/fileblocks.c: Likewise.
47802         * lib/filemode.c: Likewise.
47803         * lib/filemode.h: Likewise.
47804         * lib/filename.h: Likewise.
47805         * lib/filenamecat.c: Likewise.
47806         * lib/filenamecat.h: Likewise.
47807         * lib/findprog.c: Likewise.
47808         * lib/findprog.h: Likewise.
47809         * lib/float.in.h: Likewise.
47810         * lib/floor.c: Likewise.
47811         * lib/floorf.c: Likewise.
47812         * lib/floorl.c: Likewise.
47813         * lib/fopen-safer.c: Likewise.
47814         * lib/fopen.c: Likewise.
47815         * lib/fpending.c: Likewise.
47816         * lib/fpending.h: Likewise.
47817         * lib/fprintf.c: Likewise.
47818         * lib/fprintftime.h: Likewise.
47819         * lib/fpucw.h: Likewise.
47820         * lib/fpurge.c: Likewise.
47821         * lib/fpurge.h: Likewise.
47822         * lib/freadable.c: Likewise.
47823         * lib/freadable.h: Likewise.
47824         * lib/freadahead.c: Likewise.
47825         * lib/freadahead.h: Likewise.
47826         * lib/freading.c: Likewise.
47827         * lib/freading.h: Likewise.
47828         * lib/free.c: Likewise.
47829         * lib/freopen.c: Likewise.
47830         * lib/frexp.c: Likewise.
47831         * lib/frexpl.c: Likewise.
47832         * lib/fseek.c: Likewise.
47833         * lib/fseterr.c: Likewise.
47834         * lib/fseterr.h: Likewise.
47835         * lib/fstatat.c: Likewise.
47836         * lib/fstrcmp.c: Likewise.
47837         * lib/fstrcmp.h: Likewise.
47838         * lib/fsusage.c: Likewise.
47839         * lib/fsusage.h: Likewise.
47840         * lib/ftell.c: Likewise.
47841         * lib/ftello.c: Likewise.
47842         * lib/fts-cycle.c: Likewise.
47843         * lib/fts.c: Likewise.
47844         * lib/fts_.h: Likewise.
47845         * lib/full-read.c: Likewise.
47846         * lib/full-read.h: Likewise.
47847         * lib/full-write.c: Likewise.
47848         * lib/full-write.h: Likewise.
47849         * lib/fwritable.c: Likewise.
47850         * lib/fwritable.h: Likewise.
47851         * lib/fwriteerror.c: Likewise.
47852         * lib/fwriteerror.h: Likewise.
47853         * lib/fwriting.c: Likewise.
47854         * lib/fwriting.h: Likewise.
47855         * lib/gcd.c: Likewise.
47856         * lib/gcd.h: Likewise.
47857         * lib/getcwd.c: Likewise.
47858         * lib/getdate.h: Likewise.
47859         * lib/getdate.y: Likewise.
47860         * lib/getdomainname.c: Likewise.
47861         * lib/getdomainname.h: Likewise.
47862         * lib/getgroups.c: Likewise.
47863         * lib/gethostname.c: Likewise.
47864         * lib/gethrxtime.c: Likewise.
47865         * lib/gethrxtime.h: Likewise.
47866         * lib/getloadavg.c: Likewise.
47867         * lib/getndelim2.c: Likewise.
47868         * lib/getndelim2.h: Likewise.
47869         * lib/getnline.c: Likewise.
47870         * lib/getnline.h: Likewise.
47871         * lib/getopt.c: Likewise.
47872         * lib/getopt.in.h: Likewise.
47873         * lib/getopt1.c: Likewise.
47874         * lib/getopt_int.h: Likewise.
47875         * lib/getpagesize.h: Likewise.
47876         * lib/getsubopt.c: Likewise.
47877         * lib/gettime.c: Likewise.
47878         * lib/getugroups.c: Likewise.
47879         * lib/getugroups.h: Likewise.
47880         * lib/getusershell.c: Likewise.
47881         * lib/gl_anyavltree_list1.h: Likewise.
47882         * lib/gl_anyavltree_list2.h: Likewise.
47883         * lib/gl_anyhash_list1.h: Likewise.
47884         * lib/gl_anyhash_list2.h: Likewise.
47885         * lib/gl_anylinked_list1.h: Likewise.
47886         * lib/gl_anylinked_list2.h: Likewise.
47887         * lib/gl_anyrbtree_list1.h: Likewise.
47888         * lib/gl_anyrbtree_list2.h: Likewise.
47889         * lib/gl_anytree_list1.h: Likewise.
47890         * lib/gl_anytree_list2.h: Likewise.
47891         * lib/gl_anytree_oset.h: Likewise.
47892         * lib/gl_anytreehash_list1.h: Likewise.
47893         * lib/gl_anytreehash_list2.h: Likewise.
47894         * lib/gl_array_list.c: Likewise.
47895         * lib/gl_array_list.h: Likewise.
47896         * lib/gl_array_oset.c: Likewise.
47897         * lib/gl_array_oset.h: Likewise.
47898         * lib/gl_avltree_list.c: Likewise.
47899         * lib/gl_avltree_list.h: Likewise.
47900         * lib/gl_avltree_oset.c: Likewise.
47901         * lib/gl_avltree_oset.h: Likewise.
47902         * lib/gl_avltreehash_list.c: Likewise.
47903         * lib/gl_avltreehash_list.h: Likewise.
47904         * lib/gl_carray_list.c: Likewise.
47905         * lib/gl_carray_list.h: Likewise.
47906         * lib/gl_linked_list.c: Likewise.
47907         * lib/gl_linked_list.h: Likewise.
47908         * lib/gl_linkedhash_list.c: Likewise.
47909         * lib/gl_linkedhash_list.h: Likewise.
47910         * lib/gl_list.c: Likewise.
47911         * lib/gl_list.h: Likewise.
47912         * lib/gl_oset.c: Likewise.
47913         * lib/gl_oset.h: Likewise.
47914         * lib/gl_rbtree_list.c: Likewise.
47915         * lib/gl_rbtree_list.h: Likewise.
47916         * lib/gl_rbtree_oset.c: Likewise.
47917         * lib/gl_rbtree_oset.h: Likewise.
47918         * lib/gl_rbtreehash_list.c: Likewise.
47919         * lib/gl_rbtreehash_list.h: Likewise.
47920         * lib/gl_sublist.c: Likewise.
47921         * lib/gl_sublist.h: Likewise.
47922         * lib/group-member.c: Likewise.
47923         * lib/group-member.h: Likewise.
47924         * lib/hard-locale.c: Likewise.
47925         * lib/hard-locale.h: Likewise.
47926         * lib/hash-pjw.c: Likewise.
47927         * lib/hash-pjw.h: Likewise.
47928         * lib/hash-triple.c: Likewise.
47929         * lib/hash.c: Likewise.
47930         * lib/hash.h: Likewise.
47931         * lib/human.c: Likewise.
47932         * lib/human.h: Likewise.
47933         * lib/i-ring.c: Likewise.
47934         * lib/i-ring.h: Likewise.
47935         * lib/idcache.c: Likewise.
47936         * lib/imaxabs.c: Likewise.
47937         * lib/imaxdiv.c: Likewise.
47938         * lib/inet_pton.c: Likewise.
47939         * lib/inet_pton.h: Likewise.
47940         * lib/intprops.h: Likewise.
47941         * lib/inttostr.c: Likewise.
47942         * lib/inttostr.h: Likewise.
47943         * lib/inttypes.in.h: Likewise.
47944         * lib/isapipe.c: Likewise.
47945         * lib/isdir.c: Likewise.
47946         * lib/isnan.c: Likewise.
47947         * lib/isnan.h: Likewise.
47948         * lib/isnanf.c: Likewise.
47949         * lib/isnanf.h: Likewise.
47950         * lib/isnanl-nolibm.h: Likewise.
47951         * lib/isnanl.c: Likewise.
47952         * lib/isnanl.h: Likewise.
47953         * lib/javacomp.c: Likewise.
47954         * lib/javacomp.h: Likewise.
47955         * lib/javaexec.c: Likewise.
47956         * lib/javaexec.h: Likewise.
47957         * lib/javaversion.c: Likewise.
47958         * lib/javaversion.h: Likewise.
47959         * lib/javaversion.java: Likewise.
47960         * lib/lbrkprop.h: Likewise.
47961         * lib/lchmod.h: Likewise.
47962         * lib/lchown.c: Likewise.
47963         * lib/ldexpl.c: Likewise.
47964         * lib/linebreak.c: Likewise.
47965         * lib/linebreak.h: Likewise.
47966         * lib/linebuffer.c: Likewise.
47967         * lib/linebuffer.h: Likewise.
47968         * lib/locale.in.h: Likewise.
47969         * lib/logl.c: Likewise.
47970         * lib/long-options.c: Likewise.
47971         * lib/long-options.h: Likewise.
47972         * lib/lstat.c: Likewise.
47973         * lib/lstat.h: Likewise.
47974         * lib/math.in.h: Likewise.
47975         * lib/mbchar.c: Likewise.
47976         * lib/mbchar.h: Likewise.
47977         * lib/mbfile.h: Likewise.
47978         * lib/mbiter.h: Likewise.
47979         * lib/mbscasecmp.c: Likewise.
47980         * lib/mbscasestr.c: Likewise.
47981         * lib/mbschr.c: Likewise.
47982         * lib/mbscspn.c: Likewise.
47983         * lib/mbslen.c: Likewise.
47984         * lib/mbsncasecmp.c: Likewise.
47985         * lib/mbsnlen.c: Likewise.
47986         * lib/mbspbrk.c: Likewise.
47987         * lib/mbspcasecmp.c: Likewise.
47988         * lib/mbsrchr.c: Likewise.
47989         * lib/mbssep.c: Likewise.
47990         * lib/mbsspn.c: Likewise.
47991         * lib/mbsstr.c: Likewise.
47992         * lib/mbstok_r.c: Likewise.
47993         * lib/mbswidth.c: Likewise.
47994         * lib/mbswidth.h: Likewise.
47995         * lib/mbuiter.h: Likewise.
47996         * lib/memcasecmp.c: Likewise.
47997         * lib/memcasecmp.h: Likewise.
47998         * lib/memchr.c: Likewise.
47999         * lib/memcmp.c: Likewise.
48000         * lib/memcoll.c: Likewise.
48001         * lib/memcoll.h: Likewise.
48002         * lib/memcpy.c: Likewise.
48003         * lib/memrchr.c: Likewise.
48004         * lib/mkancesdirs.c: Likewise.
48005         * lib/mkdir-p.c: Likewise.
48006         * lib/mkdir-p.h: Likewise.
48007         * lib/mkdir.c: Likewise.
48008         * lib/mkdirat.c: Likewise.
48009         * lib/mkdtemp.c: Likewise.
48010         * lib/mkstemp-safer.c: Likewise.
48011         * lib/mkstemp.c: Likewise.
48012         * lib/modechange.c: Likewise.
48013         * lib/modechange.h: Likewise.
48014         * lib/mountlist.c: Likewise.
48015         * lib/mountlist.h: Likewise.
48016         * lib/mpsort.c: Likewise.
48017         * lib/nanosleep.c: Likewise.
48018         * lib/obstack.c: Likewise.
48019         * lib/obstack.h: Likewise.
48020         * lib/open-safer.c: Likewise.
48021         * lib/open.c: Likewise.
48022         * lib/openat-die.c: Likewise.
48023         * lib/openat-priv.h: Likewise.
48024         * lib/openat-proc.c: Likewise.
48025         * lib/openat.c: Likewise.
48026         * lib/openat.h: Likewise.
48027         * lib/pagealign_alloc.c: Likewise.
48028         * lib/pagealign_alloc.h: Likewise.
48029         * lib/physmem.c: Likewise.
48030         * lib/physmem.h: Likewise.
48031         * lib/pipe-safer.c: Likewise.
48032         * lib/pipe.c: Likewise.
48033         * lib/pipe.h: Likewise.
48034         * lib/posixtm.c: Likewise.
48035         * lib/posixtm.h: Likewise.
48036         * lib/posixver.c: Likewise.
48037         * lib/printf-frexp.c: Likewise.
48038         * lib/printf-frexp.h: Likewise.
48039         * lib/printf-frexpl.c: Likewise.
48040         * lib/printf-frexpl.h: Likewise.
48041         * lib/printf.c: Likewise.
48042         * lib/progname.c: Likewise.
48043         * lib/progname.h: Likewise.
48044         * lib/progreloc.c: Likewise.
48045         * lib/putenv.c: Likewise.
48046         * lib/quote.c: Likewise.
48047         * lib/quote.h: Likewise.
48048         * lib/quotearg.c: Likewise.
48049         * lib/quotearg.h: Likewise.
48050         * lib/raise.c: Likewise.
48051         * lib/readline.c: Likewise.
48052         * lib/readline.h: Likewise.
48053         * lib/readlink.c: Likewise.
48054         * lib/readtokens.c: Likewise.
48055         * lib/readtokens.h: Likewise.
48056         * lib/readtokens0.c: Likewise.
48057         * lib/readtokens0.h: Likewise.
48058         * lib/readutmp.c: Likewise.
48059         * lib/readutmp.h: Likewise.
48060         * lib/realloc.c: Likewise.
48061         * lib/relocwrapper.c: Likewise.
48062         * lib/rename-dest-slash.c: Likewise.
48063         * lib/rename.c: Likewise.
48064         * lib/rmdir.c: Likewise.
48065         * lib/rpmatch.c: Likewise.
48066         * lib/safe-read.c: Likewise.
48067         * lib/safe-read.h: Likewise.
48068         * lib/safe-write.c: Likewise.
48069         * lib/safe-write.h: Likewise.
48070         * lib/same-inode.h: Likewise.
48071         * lib/same.c: Likewise.
48072         * lib/same.h: Likewise.
48073         * lib/save-cwd.c: Likewise.
48074         * lib/save-cwd.h: Likewise.
48075         * lib/savedir.c: Likewise.
48076         * lib/savedir.h: Likewise.
48077         * lib/savewd.c: Likewise.
48078         * lib/savewd.h: Likewise.
48079         * lib/search.in.h: Likewise.
48080         * lib/setenv.c: Likewise.
48081         * lib/setenv.h: Likewise.
48082         * lib/settime.c: Likewise.
48083         * lib/sh-quote.c: Likewise.
48084         * lib/sh-quote.h: Likewise.
48085         * lib/sig2str.c: Likewise.
48086         * lib/sig2str.h: Likewise.
48087         * lib/signal.in.h: Likewise.
48088         * lib/signbitd.c: Likewise.
48089         * lib/signbitf.c: Likewise.
48090         * lib/signbitl.c: Likewise.
48091         * lib/sigprocmask.c: Likewise.
48092         * lib/sincosl.c: Likewise.
48093         * lib/sleep.c: Likewise.
48094         * lib/sprintf.c: Likewise.
48095         * lib/sqrtl.c: Likewise.
48096         * lib/stat-time.h: Likewise.
48097         * lib/stdio--.h: Likewise.
48098         * lib/stdio-safer.h: Likewise.
48099         * lib/stdlib--.h: Likewise.
48100         * lib/stdlib-safer.h: Likewise.
48101         * lib/stdlib.in.h: Likewise.
48102         * lib/stpcpy.c: Likewise.
48103         * lib/stpncpy.c: Likewise.
48104         * lib/strchrnul.c: Likewise.
48105         * lib/strcspn.c: Likewise.
48106         * lib/strerror.c: Likewise.
48107         * lib/strftime.c: Likewise.
48108         * lib/strftime.h: Likewise.
48109         * lib/striconveh.c: Likewise.
48110         * lib/striconveh.h: Likewise.
48111         * lib/striconveha.c: Likewise.
48112         * lib/striconveha.h: Likewise.
48113         * lib/stripslash.c: Likewise.
48114         * lib/strnlen1.c: Likewise.
48115         * lib/strnlen1.h: Likewise.
48116         * lib/strtod.c: Likewise.
48117         * lib/strtoimax.c: Likewise.
48118         * lib/strtok_r.c: Likewise.
48119         * lib/strtol.c: Likewise.
48120         * lib/strtoll.c: Likewise.
48121         * lib/strtoul.c: Likewise.
48122         * lib/strtoull.c: Likewise.
48123         * lib/sysexits.in.h: Likewise.
48124         * lib/tempname.c: Likewise.
48125         * lib/tempname.h: Likewise.
48126         * lib/timespec.h: Likewise.
48127         * lib/tls.c: Likewise.
48128         * lib/tls.h: Likewise.
48129         * lib/tmpdir.c: Likewise.
48130         * lib/tmpdir.h: Likewise.
48131         * lib/tmpfile-safer.c: Likewise.
48132         * lib/tmpfile.c: Likewise.
48133         * lib/trigl.c: Likewise.
48134         * lib/trigl.h: Likewise.
48135         * lib/trim.c: Likewise.
48136         * lib/trim.h: Likewise.
48137         * lib/trunc.c: Likewise.
48138         * lib/truncf.c: Likewise.
48139         * lib/truncl.c: Likewise.
48140         * lib/tsearch.c: Likewise.
48141         * lib/unicodeio.c: Likewise.
48142         * lib/unicodeio.h: Likewise.
48143         * lib/unistd--.h: Likewise.
48144         * lib/unistd-safer.h: Likewise.
48145         * lib/unistdio/ulc-fprintf.c: Likewise.
48146         * lib/unistdio/ulc-vfprintf.c: Likewise.
48147         * lib/unlinkdir.c: Likewise.
48148         * lib/unlinkdir.h: Likewise.
48149         * lib/unlocked-io.h: Likewise.
48150         * lib/unsetenv.c: Likewise.
48151         * lib/userspec.c: Likewise.
48152         * lib/utime.c: Likewise.
48153         * lib/utimecmp.c: Likewise.
48154         * lib/utimecmp.h: Likewise.
48155         * lib/utimens.c: Likewise.
48156         * lib/verify.h: Likewise.
48157         * lib/verror.c: Likewise.
48158         * lib/verror.h: Likewise.
48159         * lib/version-etc-fsf.c: Likewise.
48160         * lib/version-etc.c: Likewise.
48161         * lib/version-etc.h: Likewise.
48162         * lib/vfprintf.c: Likewise.
48163         * lib/vprintf.c: Likewise.
48164         * lib/vsprintf.c: Likewise.
48165         * lib/w32spawn.h: Likewise.
48166         * lib/wait-process.c: Likewise.
48167         * lib/wait-process.h: Likewise.
48168         * lib/wcwidth.c: Likewise.
48169         * lib/write-any-file.c: Likewise.
48170         * lib/xalloc-die.c: Likewise.
48171         * lib/xalloc.h: Likewise.
48172         * lib/xasprintf.c: Likewise.
48173         * lib/xgetcwd.c: Likewise.
48174         * lib/xgetcwd.h: Likewise.
48175         * lib/xgetdomainname.c: Likewise.
48176         * lib/xgetdomainname.h: Likewise.
48177         * lib/xgethostname.c: Likewise.
48178         * lib/xmalloc.c: Likewise.
48179         * lib/xmalloca.c: Likewise.
48180         * lib/xmalloca.h: Likewise.
48181         * lib/xmemcoll.c: Likewise.
48182         * lib/xnanosleep.c: Likewise.
48183         * lib/xreadlink.c: Likewise.
48184         * lib/xreadlink.h: Likewise.
48185         * lib/xsetenv.c: Likewise.
48186         * lib/xsetenv.h: Likewise.
48187         * lib/xstriconv.c: Likewise.
48188         * lib/xstriconv.h: Likewise.
48189         * lib/xstrndup.c: Likewise.
48190         * lib/xstrndup.h: Likewise.
48191         * lib/xstrtod.c: Likewise.
48192         * lib/xstrtod.h: Likewise.
48193         * lib/xstrtol-error.c: Likewise.
48194         * lib/xstrtol.c: Likewise.
48195         * lib/xstrtol.h: Likewise.
48196         * lib/xtime.h: Likewise.
48197         * lib/xvasprintf.c: Likewise.
48198         * lib/xvasprintf.h: Likewise.
48199         * lib/yesno.c: Likewise.
48200         * lib/yesno.h: Likewise.
48201         * posix-modules: Likewise.
48202         * tests/test-alloca-opt.c: Likewise.
48203         * tests/test-arcfour.c: Likewise.
48204         * tests/test-arctwo.c: Likewise.
48205         * tests/test-argmatch.c: Likewise.
48206         * tests/test-argp-2.sh: Likewise.
48207         * tests/test-argp.c: Likewise.
48208         * tests/test-arpa_inet.c: Likewise.
48209         * tests/test-array_list.c: Likewise.
48210         * tests/test-array_oset.c: Likewise.
48211         * tests/test-atexit.c: Likewise.
48212         * tests/test-avltree_list.c: Likewise.
48213         * tests/test-avltree_oset.c: Likewise.
48214         * tests/test-avltreehash_list.c: Likewise.
48215         * tests/test-base64.c: Likewise.
48216         * tests/test-binary-io.c: Likewise.
48217         * tests/test-byteswap.c: Likewise.
48218         * tests/test-c-ctype.c: Likewise.
48219         * tests/test-c-strcasecmp.c: Likewise.
48220         * tests/test-c-strcasestr.c: Likewise.
48221         * tests/test-c-strncasecmp.c: Likewise.
48222         * tests/test-c-strstr.c: Likewise.
48223         * tests/test-canonicalize-lgpl.c: Likewise.
48224         * tests/test-canonicalize.c: Likewise.
48225         * tests/test-carray_list.c: Likewise.
48226         * tests/test-ceilf.c: Likewise.
48227         * tests/test-ceill.c: Likewise.
48228         * tests/test-count-one-bits.c: Likewise.
48229         * tests/test-crc.c: Likewise.
48230         * tests/test-dirname.c: Likewise.
48231         * tests/test-fbufmode.c: Likewise.
48232         * tests/test-fcntl.c: Likewise.
48233         * tests/test-fflush.c: Likewise.
48234         * tests/test-floorf.c: Likewise.
48235         * tests/test-floorl.c: Likewise.
48236         * tests/test-fopen.c: Likewise.
48237         * tests/test-fprintf-posix.c: Likewise.
48238         * tests/test-fprintf-posix.h: Likewise.
48239         * tests/test-fpurge.c: Likewise.
48240         * tests/test-freadable.c: Likewise.
48241         * tests/test-freadahead.c: Likewise.
48242         * tests/test-freading.c: Likewise.
48243         * tests/test-freopen.c: Likewise.
48244         * tests/test-frexp.c: Likewise.
48245         * tests/test-frexpl.c: Likewise.
48246         * tests/test-fseek.c: Likewise.
48247         * tests/test-fseeko.c: Likewise.
48248         * tests/test-fseterr.c: Likewise.
48249         * tests/test-fstrcmp.c: Likewise.
48250         * tests/test-ftell.c: Likewise.
48251         * tests/test-ftello.c: Likewise.
48252         * tests/test-fwritable.c: Likewise.
48253         * tests/test-fwriting.c: Likewise.
48254         * tests/test-getaddrinfo.c: Likewise.
48255         * tests/test-getpass.c: Likewise.
48256         * tests/test-gettimeofday.c: Likewise.
48257         * tests/test-hmac-md5.c: Likewise.
48258         * tests/test-hmac-sha1.c: Likewise.
48259         * tests/test-iconv.c: Likewise.
48260         * tests/test-iconvme.c: Likewise.
48261         * tests/test-inttypes.c: Likewise.
48262         * tests/test-isnan.c: Likewise.
48263         * tests/test-isnanf.c: Likewise.
48264         * tests/test-isnanl-nolibm.c: Likewise.
48265         * tests/test-isnanl.c: Likewise.
48266         * tests/test-isnanl.h: Likewise.
48267         * tests/test-ldexpl.c: Likewise.
48268         * tests/test-linked_list.c: Likewise.
48269         * tests/test-linkedhash_list.c: Likewise.
48270         * tests/test-locale.c: Likewise.
48271         * tests/test-localename.c: Likewise.
48272         * tests/test-lock.c: Likewise.
48273         * tests/test-lseek.c: Likewise.
48274         * tests/test-malloca.c: Likewise.
48275         * tests/test-math.c: Likewise.
48276         * tests/test-mbscasecmp.c: Likewise.
48277         * tests/test-mbscasestr1.c: Likewise.
48278         * tests/test-mbscasestr2.c: Likewise.
48279         * tests/test-mbscasestr3.c: Likewise.
48280         * tests/test-mbscasestr4.c: Likewise.
48281         * tests/test-mbschr.c: Likewise.
48282         * tests/test-mbscspn.c: Likewise.
48283         * tests/test-mbsncasecmp.c: Likewise.
48284         * tests/test-mbspbrk.c: Likewise.
48285         * tests/test-mbspcasecmp.c: Likewise.
48286         * tests/test-mbsrchr.c: Likewise.
48287         * tests/test-mbsspn.c: Likewise.
48288         * tests/test-mbsstr1.c: Likewise.
48289         * tests/test-mbsstr2.c: Likewise.
48290         * tests/test-mbsstr3.c: Likewise.
48291         * tests/test-md5.c: Likewise.
48292         * tests/test-memmem.c: Likewise.
48293         * tests/test-netinet_in.c: Likewise.
48294         * tests/test-open.c: Likewise.
48295         * tests/test-printf-frexp.c: Likewise.
48296         * tests/test-printf-frexpl.c: Likewise.
48297         * tests/test-printf-posix.c: Likewise.
48298         * tests/test-printf-posix.h: Likewise.
48299         * tests/test-rbtree_list.c: Likewise.
48300         * tests/test-rbtree_oset.c: Likewise.
48301         * tests/test-rbtreehash_list.c: Likewise.
48302         * tests/test-read-file.c: Likewise.
48303         * tests/test-rijndael.c: Likewise.
48304         * tests/test-search.c: Likewise.
48305         * tests/test-signbit.c: Likewise.
48306         * tests/test-sleep.c: Likewise.
48307         * tests/test-snprintf-posix.c: Likewise.
48308         * tests/test-snprintf-posix.h: Likewise.
48309         * tests/test-snprintf.c: Likewise.
48310         * tests/test-sprintf-posix.c: Likewise.
48311         * tests/test-sprintf-posix.h: Likewise.
48312         * tests/test-stat-time.c: Likewise.
48313         * tests/test-stdbool.c: Likewise.
48314         * tests/test-stdint.c: Likewise.
48315         * tests/test-stdio.c: Likewise.
48316         * tests/test-stdlib.c: Likewise.
48317         * tests/test-stpncpy.c: Likewise.
48318         * tests/test-strcasestr.c: Likewise.
48319         * tests/test-striconv.c: Likewise.
48320         * tests/test-striconveh.c: Likewise.
48321         * tests/test-striconveha.c: Likewise.
48322         * tests/test-string.c: Likewise.
48323         * tests/test-sys_select.c: Likewise.
48324         * tests/test-sys_socket.c: Likewise.
48325         * tests/test-sys_stat.c: Likewise.
48326         * tests/test-sys_time.c: Likewise.
48327         * tests/test-sysexits.c: Likewise.
48328         * tests/test-time.c: Likewise.
48329         * tests/test-tls.c: Likewise.
48330         * tests/test-trunc.c: Likewise.
48331         * tests/test-truncf.c: Likewise.
48332         * tests/test-truncl.c: Likewise.
48333         * tests/test-unistd.c: Likewise.
48334         * tests/test-vasnprintf-posix.c: Likewise.
48335         * tests/test-vasnprintf-posix2.c: Likewise.
48336         * tests/test-vasnprintf.c: Likewise.
48337         * tests/test-vasprintf-posix.c: Likewise.
48338         * tests/test-vasprintf.c: Likewise.
48339         * tests/test-verify.c: Likewise.
48340         * tests/test-vfprintf-posix.c: Likewise.
48341         * tests/test-vprintf-posix.c: Likewise.
48342         * tests/test-vsnprintf-posix.c: Likewise.
48343         * tests/test-vsnprintf.c: Likewise.
48344         * tests/test-vsprintf-posix.c: Likewise.
48345         * tests/test-wchar.c: Likewise.
48346         * tests/test-wctype.c: Likewise.
48347         * tests/test-wcwidth.c: Likewise.
48348         * tests/test-xstrtol.c: Likewise.
48349         * tests/test-xvasprintf.c: Likewise.
48350         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48351         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48352         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48353         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48354         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48355         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48356         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48357         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48358         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48359         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48360         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48361         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48362         * tests/uniname/test-uninames.c: Likewise.
48363         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48364         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48365         * tests/unistdio/test-u16-printf1.h: Likewise.
48366         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48367         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48368         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48369         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48370         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48371         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48372         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48373         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48374         * tests/unistdio/test-u32-printf1.h: Likewise.
48375         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48376         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48377         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48378         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48379         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48380         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48381         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48382         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48383         * tests/unistdio/test-u8-printf1.h: Likewise.
48384         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48385         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48386         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48387         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48388         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48389         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48390         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48391         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48392         * tests/unistdio/test-ulc-printf1.h: Likewise.
48393         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48394         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48395         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48396         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48397         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48398         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48399         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48400         * tests/uniwidth/test-u16-width.c: Likewise.
48401         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48402         * tests/uniwidth/test-u32-width.c: Likewise.
48403         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48404         * tests/uniwidth/test-u8-width.c: Likewise.
48405         * tests/uniwidth/test-uc_width.c: Likewise.
48406         * config/srclist-update: Likewise.
48407         (fixlicense): Update to GPLv3+.
48408
48409         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48410         * tests/test-tsearch.c: Change copyright notice.
48411
48412         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48413         * lib/c-strcaseeq.h: Change copyright notice.
48414         * lib/streq.h: Likewise.
48415         * lib/uniconv.h: Likewise.
48416         * lib/uniconv/u-conv-from-enc.h: Likewise.
48417         * lib/uniconv/u-conv-to-enc.h: Likewise.
48418         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48419         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48420         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48421         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48422         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48423         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48424         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48425         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48426         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48427         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48428         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48429         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48430         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48431         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48432         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48433         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48434         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48435         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48436         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48437         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48438         * lib/uniname.h: Likewise.
48439         * lib/uniname/uniname.c: Likewise.
48440         * lib/unistdio.h: Likewise.
48441         * lib/unistdio/u-asnprintf.h: Likewise.
48442         * lib/unistdio/u-asprintf.h: Likewise.
48443         * lib/unistdio/u-printf-args.c: Likewise.
48444         * lib/unistdio/u-printf-args.h: Likewise.
48445         * lib/unistdio/u-printf-parse.h: Likewise.
48446         * lib/unistdio/u-snprintf.h: Likewise.
48447         * lib/unistdio/u-sprintf.h: Likewise.
48448         * lib/unistdio/u-vasprintf.h: Likewise.
48449         * lib/unistdio/u-vsnprintf.h: Likewise.
48450         * lib/unistdio/u-vsprintf.h: Likewise.
48451         * lib/unistdio/u16-asnprintf.c: Likewise.
48452         * lib/unistdio/u16-asprintf.c: Likewise.
48453         * lib/unistdio/u16-printf-parse.c: Likewise.
48454         * lib/unistdio/u16-snprintf.c: Likewise.
48455         * lib/unistdio/u16-sprintf.c: Likewise.
48456         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48457         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48458         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48459         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48460         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48461         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48462         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48463         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48464         * lib/unistdio/u16-vasnprintf.c: Likewise.
48465         * lib/unistdio/u16-vasprintf.c: Likewise.
48466         * lib/unistdio/u16-vsnprintf.c: Likewise.
48467         * lib/unistdio/u16-vsprintf.c: Likewise.
48468         * lib/unistdio/u32-asnprintf.c: Likewise.
48469         * lib/unistdio/u32-asprintf.c: Likewise.
48470         * lib/unistdio/u32-printf-parse.c: Likewise.
48471         * lib/unistdio/u32-snprintf.c: Likewise.
48472         * lib/unistdio/u32-sprintf.c: Likewise.
48473         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48474         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48475         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48476         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48477         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48478         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48479         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48480         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48481         * lib/unistdio/u32-vasnprintf.c: Likewise.
48482         * lib/unistdio/u32-vasprintf.c: Likewise.
48483         * lib/unistdio/u32-vsnprintf.c: Likewise.
48484         * lib/unistdio/u32-vsprintf.c: Likewise.
48485         * lib/unistdio/u8-asnprintf.c: Likewise.
48486         * lib/unistdio/u8-asprintf.c: Likewise.
48487         * lib/unistdio/u8-printf-parse.c: Likewise.
48488         * lib/unistdio/u8-snprintf.c: Likewise.
48489         * lib/unistdio/u8-sprintf.c: Likewise.
48490         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48491         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48492         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48493         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48494         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48495         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48496         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48497         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48498         * lib/unistdio/u8-vasnprintf.c: Likewise.
48499         * lib/unistdio/u8-vasprintf.c: Likewise.
48500         * lib/unistdio/u8-vsnprintf.c: Likewise.
48501         * lib/unistdio/u8-vsprintf.c: Likewise.
48502         * lib/unistdio/ulc-asnprintf.c: Likewise.
48503         * lib/unistdio/ulc-asprintf.c: Likewise.
48504         * lib/unistdio/ulc-printf-parse.c: Likewise.
48505         * lib/unistdio/ulc-snprintf.c: Likewise.
48506         * lib/unistdio/ulc-sprintf.c: Likewise.
48507         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48508         * lib/unistdio/ulc-vasprintf.c: Likewise.
48509         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48510         * lib/unistdio/ulc-vsprintf.c: Likewise.
48511         * lib/unistr.h: Likewise.
48512         * lib/unistr/u-cpy-alloc.h: Likewise.
48513         * lib/unistr/u-cpy.h: Likewise.
48514         * lib/unistr/u-endswith.h: Likewise.
48515         * lib/unistr/u-move.h: Likewise.
48516         * lib/unistr/u-set.h: Likewise.
48517         * lib/unistr/u-startswith.h: Likewise.
48518         * lib/unistr/u-stpcpy.h: Likewise.
48519         * lib/unistr/u-stpncpy.h: Likewise.
48520         * lib/unistr/u-strcat.h: Likewise.
48521         * lib/unistr/u-strcpy.h: Likewise.
48522         * lib/unistr/u-strcspn.h: Likewise.
48523         * lib/unistr/u-strdup.h: Likewise.
48524         * lib/unistr/u-strlen.h: Likewise.
48525         * lib/unistr/u-strncat.h: Likewise.
48526         * lib/unistr/u-strncpy.h: Likewise.
48527         * lib/unistr/u-strnlen.h: Likewise.
48528         * lib/unistr/u-strpbrk.h: Likewise.
48529         * lib/unistr/u-strspn.h: Likewise.
48530         * lib/unistr/u-strstr.h: Likewise.
48531         * lib/unistr/u-strtok.h: Likewise.
48532         * lib/unistr/u16-check.c: Likewise.
48533         * lib/unistr/u16-chr.c: Likewise.
48534         * lib/unistr/u16-cmp.c: Likewise.
48535         * lib/unistr/u16-cpy-alloc.c: Likewise.
48536         * lib/unistr/u16-cpy.c: Likewise.
48537         * lib/unistr/u16-endswith.c: Likewise.
48538         * lib/unistr/u16-mblen.c: Likewise.
48539         * lib/unistr/u16-mbsnlen.c: Likewise.
48540         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48541         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48542         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48543         * lib/unistr/u16-mbtouc.c: Likewise.
48544         * lib/unistr/u16-mbtoucr.c: Likewise.
48545         * lib/unistr/u16-move.c: Likewise.
48546         * lib/unistr/u16-next.c: Likewise.
48547         * lib/unistr/u16-prev.c: Likewise.
48548         * lib/unistr/u16-set.c: Likewise.
48549         * lib/unistr/u16-startswith.c: Likewise.
48550         * lib/unistr/u16-stpcpy.c: Likewise.
48551         * lib/unistr/u16-stpncpy.c: Likewise.
48552         * lib/unistr/u16-strcat.c: Likewise.
48553         * lib/unistr/u16-strchr.c: Likewise.
48554         * lib/unistr/u16-strcmp.c: Likewise.
48555         * lib/unistr/u16-strcpy.c: Likewise.
48556         * lib/unistr/u16-strcspn.c: Likewise.
48557         * lib/unistr/u16-strdup.c: Likewise.
48558         * lib/unistr/u16-strlen.c: Likewise.
48559         * lib/unistr/u16-strmblen.c: Likewise.
48560         * lib/unistr/u16-strmbtouc.c: Likewise.
48561         * lib/unistr/u16-strncat.c: Likewise.
48562         * lib/unistr/u16-strncmp.c: Likewise.
48563         * lib/unistr/u16-strncpy.c: Likewise.
48564         * lib/unistr/u16-strnlen.c: Likewise.
48565         * lib/unistr/u16-strpbrk.c: Likewise.
48566         * lib/unistr/u16-strrchr.c: Likewise.
48567         * lib/unistr/u16-strspn.c: Likewise.
48568         * lib/unistr/u16-strstr.c: Likewise.
48569         * lib/unistr/u16-strtok.c: Likewise.
48570         * lib/unistr/u16-to-u32.c: Likewise.
48571         * lib/unistr/u16-to-u8.c: Likewise.
48572         * lib/unistr/u16-uctomb-aux.c: Likewise.
48573         * lib/unistr/u16-uctomb.c: Likewise.
48574         * lib/unistr/u32-check.c: Likewise.
48575         * lib/unistr/u32-chr.c: Likewise.
48576         * lib/unistr/u32-cmp.c: Likewise.
48577         * lib/unistr/u32-cpy-alloc.c: Likewise.
48578         * lib/unistr/u32-cpy.c: Likewise.
48579         * lib/unistr/u32-endswith.c: Likewise.
48580         * lib/unistr/u32-mblen.c: Likewise.
48581         * lib/unistr/u32-mbsnlen.c: Likewise.
48582         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48583         * lib/unistr/u32-mbtouc.c: Likewise.
48584         * lib/unistr/u32-mbtoucr.c: Likewise.
48585         * lib/unistr/u32-move.c: Likewise.
48586         * lib/unistr/u32-next.c: Likewise.
48587         * lib/unistr/u32-prev.c: Likewise.
48588         * lib/unistr/u32-set.c: Likewise.
48589         * lib/unistr/u32-startswith.c: Likewise.
48590         * lib/unistr/u32-stpcpy.c: Likewise.
48591         * lib/unistr/u32-stpncpy.c: Likewise.
48592         * lib/unistr/u32-strcat.c: Likewise.
48593         * lib/unistr/u32-strchr.c: Likewise.
48594         * lib/unistr/u32-strcmp.c: Likewise.
48595         * lib/unistr/u32-strcpy.c: Likewise.
48596         * lib/unistr/u32-strcspn.c: Likewise.
48597         * lib/unistr/u32-strdup.c: Likewise.
48598         * lib/unistr/u32-strlen.c: Likewise.
48599         * lib/unistr/u32-strmblen.c: Likewise.
48600         * lib/unistr/u32-strmbtouc.c: Likewise.
48601         * lib/unistr/u32-strncat.c: Likewise.
48602         * lib/unistr/u32-strncmp.c: Likewise.
48603         * lib/unistr/u32-strncpy.c: Likewise.
48604         * lib/unistr/u32-strnlen.c: Likewise.
48605         * lib/unistr/u32-strpbrk.c: Likewise.
48606         * lib/unistr/u32-strrchr.c: Likewise.
48607         * lib/unistr/u32-strspn.c: Likewise.
48608         * lib/unistr/u32-strstr.c: Likewise.
48609         * lib/unistr/u32-strtok.c: Likewise.
48610         * lib/unistr/u32-to-u16.c: Likewise.
48611         * lib/unistr/u32-to-u8.c: Likewise.
48612         * lib/unistr/u32-uctomb.c: Likewise.
48613         * lib/unistr/u8-check.c: Likewise.
48614         * lib/unistr/u8-chr.c: Likewise.
48615         * lib/unistr/u8-cmp.c: Likewise.
48616         * lib/unistr/u8-cpy-alloc.c: Likewise.
48617         * lib/unistr/u8-cpy.c: Likewise.
48618         * lib/unistr/u8-endswith.c: Likewise.
48619         * lib/unistr/u8-mblen.c: Likewise.
48620         * lib/unistr/u8-mbsnlen.c: Likewise.
48621         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48622         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48623         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48624         * lib/unistr/u8-mbtouc.c: Likewise.
48625         * lib/unistr/u8-mbtoucr.c: Likewise.
48626         * lib/unistr/u8-move.c: Likewise.
48627         * lib/unistr/u8-next.c: Likewise.
48628         * lib/unistr/u8-prev.c: Likewise.
48629         * lib/unistr/u8-set.c: Likewise.
48630         * lib/unistr/u8-startswith.c: Likewise.
48631         * lib/unistr/u8-stpcpy.c: Likewise.
48632         * lib/unistr/u8-stpncpy.c: Likewise.
48633         * lib/unistr/u8-strcat.c: Likewise.
48634         * lib/unistr/u8-strchr.c: Likewise.
48635         * lib/unistr/u8-strcmp.c: Likewise.
48636         * lib/unistr/u8-strcpy.c: Likewise.
48637         * lib/unistr/u8-strcspn.c: Likewise.
48638         * lib/unistr/u8-strdup.c: Likewise.
48639         * lib/unistr/u8-strlen.c: Likewise.
48640         * lib/unistr/u8-strmblen.c: Likewise.
48641         * lib/unistr/u8-strmbtouc.c: Likewise.
48642         * lib/unistr/u8-strncat.c: Likewise.
48643         * lib/unistr/u8-strncmp.c: Likewise.
48644         * lib/unistr/u8-strncpy.c: Likewise.
48645         * lib/unistr/u8-strnlen.c: Likewise.
48646         * lib/unistr/u8-strpbrk.c: Likewise.
48647         * lib/unistr/u8-strrchr.c: Likewise.
48648         * lib/unistr/u8-strspn.c: Likewise.
48649         * lib/unistr/u8-strstr.c: Likewise.
48650         * lib/unistr/u8-strtok.c: Likewise.
48651         * lib/unistr/u8-to-u16.c: Likewise.
48652         * lib/unistr/u8-to-u32.c: Likewise.
48653         * lib/unistr/u8-uctomb-aux.c: Likewise.
48654         * lib/unistr/u8-uctomb.c: Likewise.
48655         * lib/unitypes.h: Likewise.
48656         * lib/uniwidth.h: Likewise.
48657         * lib/uniwidth/cjk.h: Likewise.
48658         * lib/uniwidth/u16-strwidth.c: Likewise.
48659         * lib/uniwidth/u16-width.c: Likewise.
48660         * lib/uniwidth/u32-strwidth.c: Likewise.
48661         * lib/uniwidth/u32-width.c: Likewise.
48662         * lib/uniwidth/u8-strwidth.c: Likewise.
48663         * lib/uniwidth/u8-width.c: Likewise.
48664         * lib/uniwidth/width.c: Likewise.
48665
48666 2007-10-07  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48669         The file is still under LGPL (see modules/inttypes).
48670
48671 2007-10-06  Bruno Haible  <bruno@clisp.org>
48672
48673         * modules/trunc (Dependencies): Add 'extensions'.
48674         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48675         Reported by Ben Pfaff <blp@gnu.org>.
48676
48677 2007-10-06  Bruno Haible  <bruno@clisp.org>
48678
48679         * modules/freopen-tests: New file.
48680         * tests/test-freopen.c: New file.
48681
48682         * modules/fopen-tests: New file.
48683         * tests/test-fopen.c: New file.
48684
48685         * modules/fopen: New file.
48686         * lib/fopen.c: New file.
48687         * m4/fopen.m4: New file.
48688         * modules/freopen: New file.
48689         * lib/freopen.c: New file.
48690         * m4/freopen.m4: New file.
48691         * lib/stdio.in.h (fopen, freopen): New declarations.
48692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48693         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48694         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48695         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48696         * doc/functions/fopen.texi: Mention the 'fopen' module.
48697         * doc/functions/freopen.texi: Mention the 'freopen' module.
48698
48699 2007-10-06  Bruno Haible  <bruno@clisp.org>
48700
48701         * modules/open-tests: New file.
48702         * tests/test-open.c: New file.
48703
48704         * modules/open: New file.
48705         * lib/open.c: New file.
48706         * m4/open.m4: New file.
48707         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48708         lib/open.c does.
48709         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48710         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48711         macros.
48712         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48713         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48714         REPLACE_OPEN.
48715         * doc/functions/open.texi: Mention the 'open' module.
48716
48717 2007-10-04  Bruno Haible  <bruno@clisp.org>
48718
48719         * modules/ceill-tests: New file.
48720         * tests/test-ceill.c: New file.
48721
48722         * modules/ceill: New file.
48723         * lib/ceill.c: Replace entire file.
48724         * m4/ceill.m4: New file.
48725         * lib/math.in.h (ceill): Replace declaration.
48726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48727         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48728         * doc/functions/ceill.texi: Mention the 'ceill' module.
48729         * modules/mathl (Files): Remove lib/ceill.c.
48730         (Depends-on): Add ceill.
48731
48732 2007-10-04  Bruno Haible  <bruno@clisp.org>
48733
48734         * modules/ceilf-tests: New file.
48735         * tests/test-ceilf.c: New file.
48736
48737         * modules/ceilf: New file.
48738         * lib/ceil.c: New file.
48739         * lib/ceilf.c: New file.
48740         * m4/ceilf.m4: New file.
48741         * lib/math.in.h (ceilf): New declaration.
48742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48743         HAVE_DECL_CEILF.
48744         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48745         HAVE_DECL_CEILF.
48746         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48747
48748 2007-10-04  Bruno Haible  <bruno@clisp.org>
48749
48750         * modules/floorl-tests: New file.
48751         * tests/test-floorl.c: New file.
48752
48753         * modules/floorl: New file.
48754         * lib/floorl.c: Replace entire file.
48755         * m4/floorl.m4: New file.
48756         * lib/math.in.h (floorl): Replace declaration.
48757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48758         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48759         * doc/functions/floorl.texi: Mention the 'floorl' module.
48760         * modules/mathl (Files): Remove lib/floorl.c.
48761         (Depends-on): Add floorl.
48762
48763 2007-10-04  Bruno Haible  <bruno@clisp.org>
48764
48765         * modules/floorf-tests: New file.
48766         * tests/test-floorf.c: New file.
48767
48768         * modules/floorf: New file.
48769         * lib/floor.c: New file.
48770         * lib/floorf.c: New file.
48771         * m4/floorf.m4: New file.
48772         * lib/math.in.h (floorf): New declaration.
48773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48774         HAVE_DECL_FLOORF.
48775         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48776         HAVE_DECL_FLOORF.
48777         * doc/functions/floorf.texi: Mention the 'floorf' module.
48778
48779 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48780             Bruno Haible  <bruno@clisp.org>
48781
48782         Advertise for the Git server instead of the CVS server.
48783         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48784         repository instead of the CVS one.
48785         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48786         about all VCS systems generically.
48787         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48788
48789 2007-10-04  Bruno Haible  <bruno@clisp.org>
48790
48791         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48792         means.
48793         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48794
48795 2007-10-04  Bruno Haible  <bruno@clisp.org>
48796
48797         * modules/truncl-tests: New file.
48798         * tests/test-truncl.c: New file.
48799
48800         * modules/truncl: New file.
48801         * lib/truncl.c: New file.
48802         * m4/truncl.m4: New file.
48803         * lib/math.in.h (truncl): New declaration.
48804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48805         HAVE_DECL_TRUNCL.
48806         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48807         HAVE_DECL_TRUNCL.
48808         * doc/functions/truncl.texi: Mention the 'truncl' module.
48809
48810 2007-10-04  Bruno Haible  <bruno@clisp.org>
48811
48812         * modules/truncf-tests: New file.
48813         * tests/test-truncf.c: New file.
48814
48815         * modules/truncf: New file.
48816         * lib/trunc.c: Make paramerizable through USE_* macros.
48817         * lib/truncf.c: New file.
48818         * m4/truncf.m4: New file.
48819         * lib/math.in.h (truncf): New declaration.
48820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48821         HAVE_DECL_TRUNCF.
48822         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48823         HAVE_DECL_TRUNCF.
48824         * doc/functions/truncf.texi: Mention the 'truncf' module.
48825
48826 2007-10-03  Bruno Haible  <bruno@clisp.org>
48827
48828         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48829         augmentation also for tests modules.
48830         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48831         * modules/atexit-tests (Makefile.am): Likewise.
48832         * modules/binary-io-tests (Makefile.am): Likewise.
48833         * modules/c-strcase-tests (Makefile.am): Likewise.
48834         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48835         * modules/canonicalize-tests (Makefile.am): Likewise.
48836         * modules/closein-tests (Makefile.am): Likewise.
48837         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48838         * modules/freadahead-tests (Makefile.am): Likewise.
48839         * modules/fseek-tests (Makefile.am): Likewise.
48840         * modules/fseeko-tests (Makefile.am): Likewise.
48841         * modules/ftell-tests (Makefile.am): Likewise.
48842         * modules/ftello-tests (Makefile.am): Likewise.
48843         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48844         * modules/isnanl-tests (Makefile.am): Likewise.
48845         * modules/lseek-tests (Makefile.am): Likewise.
48846         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48847         * modules/mbscasestr-tests (Makefile.am): Likewise.
48848         * modules/mbschr-tests (Makefile.am): Likewise.
48849         * modules/mbscspn-tests (Makefile.am): Likewise.
48850         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48851         * modules/mbspbrk-tests (Makefile.am): Likewise.
48852         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48853         * modules/mbsrchr-tests (Makefile.am): Likewise.
48854         * modules/mbsspn-tests (Makefile.am): Likewise.
48855         * modules/mbsstr-tests (Makefile.am): Likewise.
48856         * modules/printf-posix-tests (Makefile.am): Likewise.
48857         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48858         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48859         * modules/tsearch-tests (Makefile.am): Likewise.
48860         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48861         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48862         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48863         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48864         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48865         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48866         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48867         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48868         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48869         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48870         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48871         * modules/xstrtol-tests (Makefile.am): Likewise.
48872         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48873         * modules/yesno-tests (Makefile.am): Likewise.
48874
48875 2007-10-03  Bruno Haible  <bruno@clisp.org>
48876
48877         * modules/trunc-tests: New file.
48878         * tests/test-trunc.c: New file.
48879
48880         * modules/trunc: New file.
48881         * lib/trunc.c: New file.
48882         * m4/trunc.m4: New file.
48883         * lib/math.in.h (trunc): New declaration.
48884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48885         HAVE_DECL_TRUNC.
48886         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48887         HAVE_DECL_TRUNC.
48888         * doc/functions/trunc.texi: Mention the 'trunc' module.
48889
48890 2007-10-03  Bruno Haible  <bruno@clisp.org>
48891
48892         * tests/test-fpending.c: New file, mostly copied
48893         from coreutils/lib/t-fpending.c.
48894         * modules/fpending-tests: New file.
48895
48896 2007-10-03  Bruno Haible  <bruno@clisp.org>
48897
48898         Port the stdio extensions to QNX (untested).
48899         * lib/fseterr.c (fseterr): Add support for QNX.
48900         * lib/fbufmode.c (fbufmode): Likewise.
48901         * lib/freadable.c (freadable): Likewise.
48902         * lib/fwritable.c (fwritable): Likewise.
48903         * lib/freading.c (freading): Likewise.
48904         * lib/fwriting.c (fwriting): Likewise.
48905         * lib/freadahead.c (freadahed): Likewise.
48906         * lib/fpurge.c (fpurge): Likewise.
48907         * lib/fseeko.c (rpl_fseeko): Likewise.
48908
48909 2007-10-03  Bruno Haible  <bruno@clisp.org>
48910             Jim Meyering  <jim@meyering.net>
48911             Eric Blake  <ebb9@byu.net>
48912
48913         * doc/relocatable.texi: Use @command instead of @program.
48914
48915 2007-10-02  Jim Meyering  <jim@meyering.net>
48916
48917         Perform one more "_.h" -> ".in.h" substitution.
48918         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48919         instead of unistd_.h here, too.
48920
48921 2007-10-01  Bruno Haible  <bruno@clisp.org>
48922
48923         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48924         Needed for the alloca-opt module.
48925
48926 2007-09-30  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48929         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48930         alloca_.h.
48931         * lib/argz.in.h: Renamed from lib/argz_.h.
48932         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48933         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48934         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48935         byteswap_.h.
48936         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48937         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48938         dirent_.h.
48939         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48940         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48941         fcntl_.h.
48942         * lib/float.in.h: Renamed from lib/float_.h.
48943         * modules/float (Files, Makefile.am): Use float.in.h instead of
48944         float_.h.
48945         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48946         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48947         fnmatch_.h.
48948         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48949         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48950         getopt_.h.
48951         * lib/glob.in.h: Renamed from lib/glob_.h.
48952         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48953         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48954         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48955         iconv_.h.
48956         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48957         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48958         inttypes_.h.
48959         * lib/locale.in.h: Renamed from lib/locale_.h.
48960         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48961         locale_.h.
48962         * lib/math.in.h: Renamed from lib/math_.h.
48963         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48964         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48965         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48966         of netinet_in_.h. Add dependency.
48967         * lib/poll.in.h: Renamed from lib/poll_.h.
48968         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48969         * lib/search.in.h: Renamed from lib/search_.h.
48970         * modules/search (Files, Makefile.am): Use search.in.h instead of
48971         search_.h.
48972         * lib/signal.in.h: Renamed from lib/signal_.h.
48973         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48974         _signal.h.
48975         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48976         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48977         stdbool_.h.
48978         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48979         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48980         stdint_.h.
48981         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48982         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48983         stdio_.h.
48984         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48985         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48986         stdlib_.h.
48987         * lib/string.in.h: Renamed from lib/string_.h.
48988         * modules/string (Files, Makefile.am): Use string.in.h instead of
48989         string_.h.
48990         * doc/gnulib-tool.texi (Initial import): Update.
48991         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48992         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48993         of sys_select_.h. Add dependency.
48994         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48995         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48996         of sys_socket_.h.
48997         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48998         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48999         sys_stat_.h.
49000         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49001         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49002         sys_time_.h.
49003         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49004         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49005         sysexits_.h.
49006         * lib/time.in.h: Renamed from lib/time_.h.
49007         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49008         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49009         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49010         unistd_.h.
49011         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49012         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49013         wchar_.h.
49014         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49015         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49016         wctype_.h.
49017         * build-aux/bootstrap (slurp): Update.
49018         * lib/.cppi-disable: Update.
49019
49020 2007-09-30  Bruno Haible  <bruno@clisp.org>
49021
49022         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49023         Needed on BeOS.
49024
49025 2007-09-30  Bruno Haible  <bruno@clisp.org>
49026
49027         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49028
49029 2007-09-29  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49032
49033 2007-09-29  Bruno Haible  <bruno@clisp.org>
49034
49035         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49036         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49037         * build-aux/install-reloc: Compile also areadlink.c.
49038         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49039
49040 2007-09-29  Bruno Haible  <bruno@clisp.org>
49041
49042         * gnulib-tool (func_emit_initmacro_done): Indentation.
49043
49044 2007-09-29  Bruno Haible  <bruno@clisp.org>
49045
49046         * README: Add CVS checkout update instructions.
49047         Info from Bob Proulx <bob@proulx.com>.
49048
49049 2007-09-28  Eric Blake  <ebb9@byu.net>
49050
49051         Provide move-if-change.
49052         * build-aux/move-if-change: New file, based on best practice
49053         rather than any canonical upstream location.
49054
49055 2007-09-28  Jim Meyering  <jim@meyering.net>
49056
49057         Fix canonicalize loop-detection corner case.
49058         Do not attempt to stat the symlink values stored via seen_triple.
49059         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49060         on linux-2.6.18, (but not 2.6.22).
49061         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49062         triple_compare.  The former compares dev,ino,filename, while the latter
49063         would actually stat dirname(filename) when dev and ino were equal.
49064         * lib/hash-triple.c: Install <string.h>.
49065         (STREQ): Define.
49066         (triple_compare_ino_str): New function.
49067         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49068
49069 2007-09-28  Eric Blake  <ebb9@byu.net>
49070
49071         Enforce that AC_REPLACE_FUNCS files exist.
49072         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49073         override check for typos.
49074
49075         Fix test-closein on Solaris 10.
49076         * tests/test-closein.c (main): Don't assume stdin can be inherited
49077         closed on all systems.
49078         * tests/test-closein.sh: Likewise.
49079         Reported by Piotr Tarnowski.
49080
49081 2007-09-28  Jim Meyering  <jim@meyering.net>
49082
49083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49084
49085 2007-09-27  Jim Meyering  <jim@meyering.net>
49086
49087         canonicalize: Avoid a false-positive cycle failure.
49088         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49089         Sort.  Remove cycle-check.
49090         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49091         not cycle-check.h.
49092         (seen_triple): New function.
49093         (canonicalize_filename_mode): Use it instead of cycle-check.
49094         * tests/test-canonicalize.c: Add a test for this bug.
49095         * tests/test-canonicalize.sh: Set up and run the test.
49096
49097         New module, file-set, from coreutils.
49098         * modules/file-set: Define it.
49099         * lib/file-set.c, lib/file-set.h: Implement.
49100
49101         New module, hash-triple, from coreutils.
49102         * modules/hash-triple: Define it.
49103         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49104
49105 2007-09-25  Eric Blake  <ebb9@byu.net>
49106
49107         Fix strerror on Interix.
49108         * lib/string_.h (strerror): Declare replacement.
49109         * doc/functions/strerror.texi (strerror): Document the Interix
49110         shortcoming.
49111         * modules/string (Makefile.am): Support new hooks.
49112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49113         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49114         gl_FUNC_STRERROR_SEPARATE.
49115         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49116         * lib/strerror.c (rpl_strerror): Provide replacement.
49117         * modules/strerror (Depends-on): Add string.
49118         (configure.ac): Detect use of module.
49119         * tests/test-strerror.c: New file.
49120         * modules/strerror-tests: New test module.
49121         * modules/argp (Depends-on): Add strerror.
49122         * modules/error (Depends-on): Likewise.
49123         Reported by Martin Koeppe.
49124
49125 2007-09-24  Bruno Haible  <bruno@clisp.org>
49126
49127         * README: Update git instructions.
49128
49129 2007-09-24  Eric Blake  <ebb9@byu.net>
49130
49131         Revert fpending breakage from 2007-09-08.
49132         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49133         __fpending.c.
49134
49135 2007-09-24  Jim Meyering  <jim@meyering.net>
49136
49137         filenamecat.c: Add a test.
49138         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49139         showing how the function works when DIR is the empty string.
49140
49141 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49142
49143         * tests/test-canonicalize.sh: Turn on executable bit.
49144
49145 2007-09-19  Eric Blake  <ebb9@byu.net>
49146
49147         * README: Update CVS instructions.
49148
49149 2007-09-18  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/areadlink: New file.
49152         * lib/areadlink.h (areadlink): New declaration.
49153         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49154
49155 2007-09-17  Jim Meyering  <jim@meyering.net>
49156
49157         * lib/savewd.c (ESTALE) [!defined]: Define.
49158         Reported to be required on Interix by Martin Koeppe.
49159
49160 2007-09-17  Bruno Haible  <bruno@clisp.org>
49161
49162         * gnulib-tool (func_version): Use $version.
49163
49164 2007-09-16  Bruno Haible  <bruno@clisp.org>
49165
49166         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49167         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49168         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49169         Reported by Greg Schafer <gschafer@zip.com.au>.
49170
49171 2007-09-15  Bruno Haible  <bruno@clisp.org>
49172
49173         * gnulib-tool (sed): Try a little harder to make bash understand the
49174         alias.
49175         Reported by Bruce Korb <bruce.korb@gmail.com>.
49176
49177 2007-09-13  Eric Blake  <ebb9@byu.net>
49178
49179         * ChangeLog: Remove conflict markers.
49180
49181 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49182
49183         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49184         Reported by Bruno Haible <bruno@clisp.org>.
49185
49186 2007-09-12  Bruno Haible  <bruno@clisp.org>
49187
49188         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49189         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49190         is not defined.
49191
49192 2007-09-12  Eric Blake  <ebb9@byu.net>
49193
49194         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49195         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49196         Autoconf definition.
49197         * modules/euidaccess (Depends-on): Add extensions, for
49198         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49199         * modules/fnmatch (Depends-on): Likewise.
49200         * modules/getaddrinfo (Depends-on): Likewise.
49201         * modules/getdelim (Depends-on): Likewise.
49202         * modules/getline (Depends-on): Likewise.
49203         * modules/getsubopt (Depends-on): Likewise.
49204         * modules/gettext (Depends-on): Likewise.
49205         * modules/group-member (Depends-on): Likewise.
49206         * modules/mbchar (Depends-on): Likewise.
49207         * modules/memmem (Depends-on): Likewise.
49208         * modules/mempcpy (Depends-on): Likewise.
49209         * modules/memrchr (Depends-on): Likewise.
49210         * modules/pagealign_alloc (Depends-on): Likewise.
49211         * modules/readutmp (Depends-on): Likewise.
49212         * modules/stpcpy (Depends-on): Likewise.
49213         * modules/stpncpy (Depends-on): Likewise.
49214         * modules/strchrnul (Depends-on): Likewise.
49215         * modules/strndup (Depends-on): Likewise.
49216         * modules/strsep (Depends-on): Likewise.
49217         * modules/strverscmp (Depends-on): Likewise.
49218         * modules/vasprintf (Depends-on): Likewise.
49219         * modules/wcwidth (Depends-on): Likewise.
49220         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49221         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49222         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49224         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49225         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49226         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49227         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49228         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49229         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49231         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49232         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49233         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49234         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49235         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49236         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49237         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49238         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49242         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49243         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49244         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49246         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49247         so that lock.m4 can be used in gettext without extensions module.
49248
49249 2007-09-11  Bruno Haible  <bruno@clisp.org>
49250
49251         * m4/isc-posix.m4: Remove file.
49252         Suggested by Eric Blake.
49253
49254 2007-09-11  Eric Blake  <ebb9@byu.net>
49255
49256         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49257
49258 2007-09-10  Bruno Haible  <bruno@clisp.org>
49259
49260         * posix-modules: Fix typo in error message.
49261         Reported by Matt <mkraai@beckman.com>.
49262
49263 2007-09-09  Bruno Haible  <bruno@clisp.org>
49264
49265         * doc/functions/getdelim.texi: Update list of platforms lacking the
49266         function.
49267         * doc/functions/getline.texi: Likewise.
49268
49269 2007-09-09  Jim Meyering  <jim@meyering.net>
49270
49271         * lib/hash.c (hash_initialize): Detect calloc failure.
49272         Reported by Bruno Haible.
49273
49274 2007-09-09  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49277         malloc or realloc fails.
49278
49279 2007-09-09  Bruno Haible  <bruno@clisp.org>
49280
49281         * modules/getcwd (Depends-on): Add malloc-posix.
49282         * modules/glob (Depends-on): Likewise.
49283         * modules/putenv (Depends-on): Likewise.
49284         * modules/strdup (Depends-on): Likewise.
49285         * modules/getdelim (Depends-on): Add realloc-posix.
49286         * modules/read-file (Depends-on): Likewise.
49287
49288 2007-09-09  Bruno Haible  <bruno@clisp.org>
49289
49290         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49291         (gl_FUNC_MALLOC_POSIX): Require it.
49292         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49293         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49294         * modules/realloc (Files): Add m4/malloc.m4.
49295         * modules/calloc (Files): Likewise.
49296
49297 2007-09-09  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/malloc-posix: New file.
49300         * modules/malloc (Depends-on): Add malloc-posix.
49301         * lib/malloc.c: Include errno.h.
49302         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49303         and a POSIX-compatible malloc into a single function. Set ENOMEM
49304         when returning NULL.
49305         * m4/malloc.m4: New file.
49306         * doc/functions/malloc.texi: Mention the malloc-posix module.
49307         * lib/stdlib_.h (malloc): New declaration.
49308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49309         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49310         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49311         and HAVE_MALLOC_POSIX.
49312
49313 2007-09-09  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/realloc-posix: New file.
49316         * modules/realloc (Depends-on): Add realloc-posix.
49317         * lib/realloc.c: Include errno.h.
49318         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49319         and a POSIX-compatible realloc into a single function. Set ENOMEM
49320         when returning NULL.
49321         * m4/realloc.m4: New file.
49322         * doc/functions/realloc.texi: Mention the realloc-posix module.
49323         * lib/stdlib_.h (realloc): New declaration.
49324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49325         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49326         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49327         and HAVE_REALLOC_POSIX.
49328
49329 2007-09-09  Bruno Haible  <bruno@clisp.org>
49330
49331         * modules/calloc-posix: New file.
49332         * modules/calloc (Depends-on): Add calloc-posix.
49333         * lib/calloc.c: Include errno.h.
49334         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49335         and a POSIX-compatible calloc into a single function. Set ENOMEM
49336         when returning NULL.
49337         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49338         * doc/functions/calloc.texi: Mention the calloc-posix module.
49339         * lib/stdlib_.h (calloc): New declaration.
49340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49341         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49342         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49343         and HAVE_CALLOC_POSIX.
49344
49345 2007-09-09  Bruno Haible  <bruno@clisp.org>
49346
49347         Allow for modules to show an arbitrary notice.
49348         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49349         * gnulib-tool: New option --extract-notice.
49350         (func_usage): Document it.
49351         (sed_extract_prog): Update.
49352         (func_get_notice): New function.
49353         (func_modules_notice): New function.
49354         (func_import, func_create_testdir): Invoke it.
49355         Suggested by Jim Meyering.
49356
49357 2007-09-09  Bruno Haible  <bruno@clisp.org>
49358
49359         * gnulib-tool: New options --verbose, --quiet.
49360         (func_usage): Document them.
49361         (verbose): New variable.
49362         (func_execute_command): New function.
49363         (func_import): Don't show the module list and the file list if
49364         $verbose < 0.
49365         (func_create_testdir): Likewise. Use func_execute_command.
49366         (func_create_megatestdir): Use func_execute_command.
49367
49368 2007-09-08  Bruno Haible  <bruno@clisp.org>
49369
49370         * gnulib-tool (func_import): Prefer rsync over wget when available,
49371         for fetching the PO files.
49372
49373 2007-09-08  Bruno Haible  <bruno@clisp.org>
49374
49375         * posix-modules: New file. Portions copied from gnulib-tool.
49376         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49377
49378 2007-09-08  Jim Meyering  <jim@meyering.net>
49379
49380         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49381         * lib/fpending.h: Rename from __fpending.h.
49382         * lib/fpending.c: Rename from __fpending.c.
49383         Include "fpending.h", not "__fpending.h".
49384         * lib/__fpending.h, lib/__fpending.c: Remove files.
49385         * modules/fpending (Files): Reflect new file names.
49386         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49387
49388 2007-09-08  Bruno Haible  <bruno@clisp.org>
49389
49390         * m4/inttypes-h.m4: Remove stub file.
49391
49392 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49393
49394         * doc/headers/stdint.texi: Discuss #include_next issue.
49395
49396 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49399
49400 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49401
49402         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49403         in variable name.
49404
49405 2007-09-03  Jim Meyering  <jim@meyering.net>
49406
49407         New module: git-version-gen.
49408         * modules/git-version-gen: New file.
49409
49410         Import changes from coreutils for bootstrap script.
49411
49412         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49413
49414         bootstrap: uses rsync to download the .po files
49415         * build-aux/bootstrap (po_download_command_format): New global.
49416         (download_po_files): Use rsync.
49417         (update_po_files): Don't remove .po files after download,
49418         so future rsync runs can take advantage of the copies.
49419
49420         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49421
49422         Solve the unnecessary-.po-file-regeneration problem once and for all.
49423         * build-aux/bootstrap (download_po_files): New function, renamed from
49424         get_translations.  Now, downloads, but doesn't update LINGUAS.
49425         (update_po_files): New function.
49426
49427         bootstrap: Ignore more.
49428         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49429         uniwidth to e.g., lib/.gitignore.
49430         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49431
49432         * build-aux/bootstrap: New setting: vc_ignore.
49433         (insert_sorted_if_absent): Create $file if absent.
49434         Adapt to new, possibly empty, list: $vc_ignore.
49435
49436         bootstrap: generate more ignorable names
49437         * build-aux/bootstrap (slurp): When generating ignorable names,
49438         also map .sin to .sed, .gperf to .c, and .y to .c.
49439
49440 2007-09-03  Jim Meyering  <jim@meyering.net>
49441
49442         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49443         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49444
49445 2007-09-02  Bruno Haible  <bruno@clisp.org>
49446
49447         Fix mis-recognition of 'mcs' on QNX 6.
49448         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49449         output contains the string "Mono".
49450         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49451         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49452
49453 2007-09-01  Bruno Haible  <bruno@clisp.org>
49454
49455         Fix collision between uniwidth/* and linebreak modules.
49456         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49457         u32_width): Remove declarations.
49458         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49459         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49460         streq3, streq2, streq1, streq0): Remove functions.
49461         (STREQ): Remove macro.
49462         (is_cjk_encoding): Remove function.
49463         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49464         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49465         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49466         * NEWS: Document the change.
49467
49468 2007-09-01  Bruno Haible  <bruno@clisp.org>
49469
49470         * lib/streq.h: Add double-inclusion guard.
49471
49472 2007-09-01  Karl Berry  <karl@gnu.org>
49473
49474         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49475
49476 2007-08-28  Jim Meyering  <jim@meyering.net>
49477
49478         Rename mreadlink_with_size to areadlink_with_size.
49479         * NEWS: Document the change.
49480         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49481         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49482         * lib/mreadlink.h: Rename this to...
49483         * lib/areadlink.h: ...this.
49484         * modules/mreadlink-with-size: Rename this to...
49485         * modules/areadlink-with-size: ...this.
49486         * lib/canonicalize.c: Reflect the renaming.
49487         * modules/canonicalize: Likewise.
49488
49489 2007-08-26  Bruno Haible  <bruno@clisp.org>
49490
49491         * gnulib-tool (func_import): When deciding which files to remove,
49492         consider also dangling symbolic links.
49493         Reported by Eric Blake.
49494
49495 2007-08-26  Bruno Haible  <bruno@clisp.org>
49496
49497         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49498
49499 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49500
49501         * lib/readline.c: Don't include getline.h, the prototype is now
49502         found in stdio.h.
49503
49504 2007-08-23  Jim Meyering  <jim@meyering.net>
49505
49506         Getdelim touchup.
49507         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49508         around the funlockfile call, since funlockfile never sets errno.
49509         Don't set errno upon failed realloc.
49510
49511 2007-08-22  Eric Blake  <ebb9@byu.net>
49512
49513         Getline touchups.
49514         * lib/getdelim.c (getdelim): Revert regression that required *n to
49515         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49516         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49517         getdelim, rather than whether implementation is missing.
49518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49519         * lib/stdio_.h (getline): Also declare if replacement is
49520         required.
49521         * doc/functions/getdelim.texi: New file.
49522         * doc/functions/getline.texi: Likewise.
49523         * doc/gnulib.texi (Function Substitutes): Add new files.
49524         Reported by Bruno Haible.
49525
49526 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49527
49528         * users.txt: Add Guile.
49529
49530 2007-08-22  Eric Blake  <ebb9@byu.net>
49531
49532         * tests/test-getdelim.c (main): Use remove, not unlink.
49533         * tests/test-getline.c (main): Likewise.
49534
49535         Move getline and getdelim into stdio.h, per POSIX 200x.
49536         * modules/getline (Files): Remove getline.h.
49537         (Depends-on): Add stdio.
49538         (configure.ac): Add module indicator.
49539         * modules/getdelim (Files): Remove getdelim.h.
49540         (Depends-on): Add stdio.
49541         (configure.ac): Add module indicator.
49542         * modules/stdio (Makefile.am): Work with new indicators.
49543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49545         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49546         * lib/getdelim.h: Delete.
49547         * lib/getline.h: Delete.
49548         * lib/stdio_.h (getdelim, getline): Declare.
49549         * modules/getdelim-tests: New module.
49550         * modules/getline-tests: Likewise.
49551         * tests/test-getdelim.c: New file.
49552         * tests/test-getline.c: Likewise.
49553         * NEWS: Document the change.
49554         * lib/getline.c: Update choice of header.
49555         * lib/csharpcomp.c: Likewise.
49556         * lib/getpass.c: Likewise.
49557         * lib/javacomp.c: Likewise.
49558         * lib/javaversion.c: Likewise.
49559         * lib/yesno.c: Likewise.
49560         * lib/getdelim.c: Likewise.
49561         (getdelim): Set errno on failure, and avoid memory leak.
49562
49563 2007-08-19  Bruno Haible  <bruno@clisp.org>
49564
49565         * modules/closein (Depends-on): Add freadahead.
49566         * lib/closein.c: Include freadahead.h.
49567         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49568         is zero.
49569
49570 2007-08-19  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/freadahead-tests: New file.
49573         * tests/test-freadahead.sh: New file.
49574         * tests/test-freadahead.c: New file.
49575
49576         * modules/freadahead: New file.
49577         * lib/freadahead.h: New file.
49578         * lib/freadahead.c: New file.
49579         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49580         fbufmode, fpurge, freadable, fwritable.
49581
49582 2007-08-19  Eric Blake  <ebb9@byu.net>
49583
49584         Test yesno in combination with closein.
49585         * lib/yesno.c (yesno): Document use of stdin.
49586         * modules/yesno-tests (Files): New module.
49587         * tests/test-yesno.c (main): New file.
49588         * tests/test-yesno.sh: Likewise.
49589
49590 2007-08-19  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49593         * lib/fseeko.c (rpl_fseeko): Likewise.
49594         * lib/fseterr.c (fseterr): Likewise.
49595
49596 2007-08-19  Bruno Haible  <bruno@clisp.org>
49597
49598         * tests/test-lseek.c (main): Disable a test for BeOS.
49599         * doc/functions/lseek.texi: Document the BeOS bug.
49600
49601 2007-08-19  Bruno Haible  <bruno@clisp.org>
49602             Eric Blake  <ebb9@byu.net>
49603
49604         * lib/lseek.c: Include <sys/stat.h>.
49605         (rpl_lseek): Add workaround code also for Unix platforms.
49606         Needed for BeOS.
49607         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49608         * doc/functions/lseek.texi: Document BeOS definiency.
49609
49610 2007-08-18  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/fstrcmp-tests: New file.
49613         * tests/test-fstrcmp.c: New file.
49614
49615 2007-08-18  Bruno Haible  <bruno@clisp.org>
49616
49617         * modules/fstrcmp: New file, from GNU gettext with modifications.
49618         * lib/fstrcmp.h: New file, from GNU gettext.
49619         * lib/fstrcmp.c: New file, from GNU gettext.
49620         * MODULES.html.sh (String handling): Add fstrcmp.
49621
49622 2007-08-18  Bruno Haible  <bruno@clisp.org>
49623
49624         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49625         'bool'.
49626         (diag, compareseq): Remove const from the ctxt argument.
49627         (USE_HEURISTIC): Undefine at the end.
49628
49629 2007-08-18  Jim Meyering  <jim@meyering.net>
49630
49631         New file: lib/idcache.h
49632         * NEWS: Mention the addition.
49633         * modules/idcache (Files): Add lib/idcache.h
49634         * lib/idcache.c: Include "idcache.h".
49635         Don't include <sys/types.h>.
49636         Add a FIXME comment.
49637         Move file-scoped "static" declarations to the top.
49638         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49639
49640 2007-08-17  Bruno Haible  <bruno@clisp.org>
49641         and Paul Eggert  <eggert@cs.ucla.edu>
49642
49643         * MODULES.html.sh: Add diffseq.
49644         * modules/diffseq: New file.
49645         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49646         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49647
49648 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49649
49650         Import changes from coreutils for bootstrap script.
49651
49652         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49653
49654         * build-aux/bootstrap (slurp): Work even in environments where
49655         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49656         current code does not slurp files whose names start with ".", and
49657         this looks like it might be a troublesome area.
49658
49659         2007-07-11  Jim Meyering  <jim@meyering.net>
49660
49661         If there's a GPL vN copyright comment, require that N == 3.
49662
49663         2007-07-08  Jim Meyering  <jim@meyering.net>
49664
49665         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49666         * build-aux/bootstrap (mam_template): Move definition out of loop.
49667
49668         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49669
49670         * build-aux/bootstrap (symlink_to_dir): Rename function from
49671         symlink_to_gnulib.  Add a directory parameter.  Update all
49672         callers.
49673         (cp_mark_as_generated): Also check for -- and link to -- files in
49674         gl/.
49675
49676         2007-07-08  Jim Meyering  <jim@meyering.net>
49677
49678         Adapt to deeper hierarchy in gnulib.
49679         * build-aux/bootstrap (symlink_to_dir): If the destination
49680         directory doesn't exist, create it. This is required at least for
49681         "lib/uniwidth/cjk.h".
49682
49683         2007-05-15  Jim Meyering  <jim@meyering.net>
49684
49685         * build-aux/bootstrap: Now that generated Makefile.am files
49686         are no longer under version control, they must be created at
49687         bootstrap time.
49688
49689 2007-08-14  Ben Pfaff  <blp@gnu.org>
49690
49691         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49692
49693 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49696         given the changes below.
49697         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49698         even on hosts that have padding bits beyond the supported 64.
49699
49700 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49701
49702         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49703         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49704         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49705         depends on it.
49706         (xstrtol_error): Remove.
49707         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49708         but with a different signature.
49709         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49710         * lib/xstrtol-error.c: Include exitfail.h.
49711         (xstrtol_fatal): New function, with a different signature from the
49712         old xstrtol_error, so that the caller need not worry about passing
49713         in an exit status, or about storage management of the option argument.
49714         (xstrtol_error): Now a static function.  Redo signature to
49715         implement xstrtol_fatal.  Output the correct number of hyphens in
49716         front of the option so that the caller need not worry about
49717         storage management.
49718         (N_): New macro.
49719         (_): Remove; not used now.
49720         * modules/xstrtol: Depend on getopt.
49721         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49722         of old STRTOL_FATAL_ERROR macro.
49723         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49724         of test program.
49725         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49726         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49727
49728 2007-08-08  Eric Blake  <ebb9@byu.net>
49729
49730         * lib/xstrtol-error.c: Add missing include.
49731
49732         Move xstrtol messages into gnulib domain, when --pobase is used.
49733         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49734         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49735         * modules/xstrtol (Files): Distribute new file.
49736         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49737         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49738         * tests/test-xstrtol.c: ...into new file.
49739         * tests/test-xstrtoul.c: Also test xstrtoul.
49740         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49741         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49742         * tests/test-xstrtol.sh: Drive the tests.
49743         * tests/test-xstrtoimax.sh: Likewise.
49744         * tests/test-xstrtoumax.sh: Likewise.
49745         * modules/xstrtol-tests: New module.
49746         * modules/xstrtoimax-tests: Likewise.
49747         * modules/xstrtoumax-tests: Likewise.
49748
49749 2007-08-08  Jim Meyering  <jim@meyering.net>
49750
49751         New function: mfile_name_concat.
49752         * lib/filenamecat.c (mfile_name_concat): New function, just like
49753         file_name_concat, but return NULL upon failure rather than exiting
49754         with a diagnostic.
49755         * lib/filenamecat.h: Declare it.
49756
49757 2007-08-07  Bruno Haible  <bruno@clisp.org>
49758
49759         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49760         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49761         warning from gcc.
49762         Reported by Eric Blake.
49763
49764 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49765
49766         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49767         * modules/crypto/arcfour (License): Likewise.
49768         * modules/crypto/des-tests (License): Likewise.
49769         * modules/crypto/gc-arctwo-tests (License): Likewise.
49770         * modules/crypto/gc-des-tests (License): Likewise.
49771         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49772         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49773         * modules/crypto/gc-md2-tests (License): Likewise.
49774         * modules/crypto/gc-md4-tests (License): Likewise.
49775         * modules/crypto/gc-md5-tests (License): Likewise.
49776         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49777         * modules/crypto/gc-rijndael-tests (License): Likewise.
49778         * modules/crypto/gc-sha1-tests (License): Likewise.
49779         * modules/crypto/gc-tests (License): Likewise.
49780         * modules/crypto/hmac-md5 (License): Likewise.
49781         * modules/crypto/hmac-sha1 (License): Likewise.
49782         * modules/crypto/md2-tests (License): Likewise.
49783         * modules/crypto/md4-tests (License): Likewise.
49784         * modules/crypto/md5 (License): Likewise.
49785         * modules/crypto/rijndael (License): Likewise.
49786         * modules/crypto/sha1 (License): Likewise.
49787         * modules/memxor (License): Likewise.
49788
49789 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49790         and Bruno Haible  <bruno@clisp.org>
49791
49792         * NEWS: Describe interface changes to human, xstrtol.
49793         * lib/human.h: Include <xstrtol.h>.
49794         (human_options): Return enum strtol_error, not int.  Remove
49795         bool arg; take int * instead.
49796         * lib/human.c: Don't include "gettext.h".
49797         (_): Remove; no longer used.
49798         Don't include <xstrtol.h>, since human.h does it.
49799         (human_options): Adjust to abovementioned interface changes.
49800         Do not report error to stderr; that's now the caller's
49801         responsibility.
49802         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49803         interface change.
49804         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49805         Str, Argument_type_string.  All uses changed.  Put " argument"
49806         in diagnostics to make them clearer.  Change wording of suffix
49807         message for clarity.
49808         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49809         Argument_type_string.
49810         (STRTOL_FATAL_WARN): Remove; no longer used.
49811         * modules/human (Depends-on): Remove gettext-h.
49812
49813 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49814
49815         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49816
49817 2007-07-31  Bruno Haible  <bruno@clisp.org>
49818
49819         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49820         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49821         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49822
49823 2007-07-31  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49826         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49827
49828 2007-07-30  Bruno Haible  <bruno@clisp.org>
49829
49830         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49831         * modules/c-ctype (License): Likewise.
49832         * modules/c-strcase (License): Likewise.
49833         * modules/check-version (License): Likewise.
49834         * modules/iconv (License): Likewise.
49835         * modules/iconv_open (License): Likewise.
49836         * modules/read-file (License): Likewise.
49837         * modules/striconv (License): Likewise.
49838         * modules/strverscmp (License): Likewise.
49839         * modules/vasprintf (License): Likewise.
49840         * modules/crypto/des (License): Likewise.
49841         * modules/crypto/gc (License): Likewise.
49842         * modules/crypto/gc-arcfour (License): Likewise.
49843         * modules/crypto/gc-arctwo (License): Likewise.
49844         * modules/crypto/gc-des (License): Likewise.
49845         * modules/crypto/gc-hmac-md5 (License): Likewise.
49846         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49847         * modules/crypto/gc-md2 (License): Likewise.
49848         * modules/crypto/gc-md4 (License): Likewise.
49849         * modules/crypto/gc-md5 (License): Likewise.
49850         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49851         * modules/crypto/gc-random (License): Likewise.
49852         * modules/crypto/gc-rijndael (License): Likewise.
49853         * modules/crypto/gc-sha1 (License): Likewise.
49854         * modules/crypto/md2 (License): Likewise.
49855         * modules/crypto/md4 (License): Likewise.
49856
49857 2007-07-30  Jim Meyering  <jim@meyering.net>
49858
49859         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49860         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49861         it has valid stat data.  This bug would cause du not to count the
49862         sizes of inaccessible directories.
49863         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49864         in <http://bugzilla.redhat.com/250077>.
49865
49866 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49867             Bruno Haible  <bruno@clisp.org>
49868
49869         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49870         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49871         #include_next, gives a diagnostic about it, but reports no error in
49872         the exit code.
49873         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49874
49875 2007-07-24  Ben Pfaff  <blp@gnu.org>
49876
49877         Improve name: "count-one-bits" is better than "popcount".
49878         * MODULES.html.sh: Update name.
49879         * lib/popcount.h: Renamed lib/count-one-bits.h.
49880         (popcount): Renamed count_one_bits.
49881         (popcountl): Renamed count_one_bits_l.
49882         (popcountll): Renamed count_one_bits_ll.
49883         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49884         * modules/popcount: Renamed module/count-one-bits.
49885         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49886         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49887
49888 2007-07-23  Ben Pfaff  <blp@gnu.org>
49889
49890         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49891         better code generation, and add U to large constants to avoid
49892         warnings, in non-GCC case.
49893         Suggested by Bruno Haible.
49894
49895 2007-07-23  Ben Pfaff  <blp@gnu.org>
49896
49897         * lib/popcount.h: Use verify_true instead of if...abort.
49898         * modules/popcount: Depend on verify module.
49899         Suggested by Jim Meyering.
49900
49901 2007-07-23  Bruno Haible  <bruno@clisp.org>
49902
49903         * gnulib-tool (func_import): Create a .cvsignore file also when the
49904         directory is not yet in CVS but the toplevel directory is. When
49905         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49906         Reported by Karl Berry.
49907
49908 2007-07-22  Ben Pfaff  <blp@gnu.org>
49909
49910         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49911         case.
49912         Suggested by Eric Blake.
49913
49914 2007-07-22  Ben Pfaff  <blp@gnu.org>
49915
49916         New module: popcount.
49917         * MODULES.html.sh: Add popcount.
49918         * modules/popcount: New file.
49919         * modules/popcount-tests: New file.
49920         * tests/test-popcount.c: New file.
49921         * lib/popcount.h: New file.
49922         * m4/popcount.m4: New file.
49923
49924 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * build-aux/announce-gen: Update to GPLv3.
49927
49928         * build-aux/config.guess: Update from config.
49929
49930 2007-07-21  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49933         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49934
49935 2007-07-20  Jim Meyering  <jim@meyering.net>
49936
49937         * check-module: Diagnose a self-dependency.
49938
49939 2007-07-19  Bruno Haible  <bruno@clisp.org>
49940
49941         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49942         empty.
49943         Reported by Eric Blake.
49944
49945 2007-07-18  Bruno Haible  <bruno@clisp.org>
49946
49947         * gnulib-tool: New options --po-base, --po-domain.
49948         (func_usage): Document them.
49949         (pobase, po_domain): New variables.
49950         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49951         DEFAULT_TEXT_DOMAIN.
49952         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49953         (func_import): Consider pobase and po_domain. Create a po/ directory.
49954         (func_create_testdir): Set pobase and po_domain to empty.
49955         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49956         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49957
49958 2007-07-18  Bruno Haible  <bruno@clisp.org>
49959
49960         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49961         EXTRA_DIST augmentation for files in build-aux/.
49962
49963 2007-07-16  Bruno Haible  <bruno@clisp.org>
49964
49965         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49966         * modules/getdelim (License): Likewise.
49967
49968 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49969
49970         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49971         * modules/d-type (License): Likewise.
49972         * modules/extensions (License): Likewise.
49973         * modules/fnmatch (License): Likewise.
49974         * modules/fseeko (License): Likewise.
49975         * modules/getaddrinfo (License): Likewise.
49976         * modules/getline (License): Likewise.
49977         * modules/getlogin_r (License): Likewise.
49978         * modules/getpass (License): Likewise.
49979         * modules/gettimeofday (License): Likewise.
49980         * modules/glob (License): Likewise.
49981         * modules/inet_ntop (License): Likewise.
49982         * modules/malloc (License): Likewise.
49983         * modules/malloca (License): Likewise.
49984         * modules/memmem (License): Likewise.
49985         * modules/mempcpy (License): Likewise.
49986         * modules/memset (License): Likewise.
49987         * modules/minmax (License): Likewise.
49988         * modules/mktime (License): Likewise.
49989         * modules/netinet_in (License): Likewise.
49990         * modules/pathmax (License): Likewise.
49991         * modules/poll (License): Likewise.
49992         * modules/regex (License): Likewise.
49993         * modules/snprintf (License): Likewise.
49994         * modules/stdbool (License): Likewise.
49995         * modules/stdint (License): Likewise.
49996         * modules/stdio (License): Likewise.
49997         * modules/strcase (License): Likewise.
49998         * modules/strcasestr (License): Likewise.
49999         * modules/strdup (License): Likewise.
50000         * modules/string (License): Likewise.
50001         * modules/strndup (License): Likewise.
50002         * modules/strnlen (License): Likewise.
50003         * modules/strpbrk (License): Likewise.
50004         * modules/strptime (License): Likewise.
50005         * modules/strsep (License): Likewise.
50006         * modules/sys_select (License): Likewise.
50007         * modules/sys_socket (License): Likewise.
50008         * modules/sys_stat (License): Likewise.
50009         * modules/sys_time (License): Likewise.
50010         * modules/time (License): Likewise.
50011         * modules/time_r (License): Likewise.
50012         * modules/timegm (License): Likewise.
50013         * modules/unistd (License): Likewise.
50014         * modules/vsnprintf (License): Likewise.
50015         * modules/wctype (License): Likewise.
50016
50017 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50018
50019         * modules/argz (License): LGPLv2+.
50020
50021 2007-07-15  Karl Berry  <karl@gnu.org>
50022
50023         * doc/gnulib.texi: revise node structure per new fdl.texi.
50024
50025 2007-07-14  Bruno Haible  <bruno@clisp.org>
50026
50027         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50028         the output file.
50029         * lib/uniname/uninames.h: Regenerated.
50030
50031 2007-07-14  Karl Berry  <karl@gnu.org>
50032
50033         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50034         omitting sectioning and index commands.
50035
50036 2007-07-13  Bruno Haible  <bruno@clisp.org>
50037
50038         New gnulib-tool option --more-symlinks.
50039         * gnulib-tool (func_usage): Document --more-symlinks.
50040         (do_copyrights): New variable.
50041         Recognize option --more-symlinks.
50042         (func_import): Don't add a copyright notice transform to
50043         sed_transform_lib_file if do_copyrights is empty.
50044
50045 2007-07-13  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/vasnprintf.c (decimal_point_char): Define also if
50048         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50049         && !NEED_PRINTF_DIRECTIVE_A.
50050         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50051         Gary V. Vaughan <gary@gnu.org>.
50052
50053 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * lib/inttypes_.h: Undo previous change, since it was fixed
50056         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50057
50058 2007-07-13  Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50061         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50062
50063 2007-07-13  Jim Meyering  <jim@meyering.net>
50064
50065         df: Don't fail for Tru64's "file-on-file mount".
50066         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50067         so we fall through and use statfs instead.  Details here:
50068         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50069         Reported by Albert Chin.
50070
50071 2007-07-13  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50074         * modules/configmake (License): Likewise.
50075         * modules/gettext (License): Likewise.
50076         * modules/gettext-h (License): Likewise.
50077         * modules/include_next (License): Likewise.
50078         * modules/link-warning (License): Likewise.
50079         * modules/localcharset (License): Likewise.
50080         * modules/localename (License): Likewise.
50081         * modules/lock (License): Likewise.
50082         * modules/relocatable-lib-lgpl (License): Likewise.
50083         * modules/size_max (License): Likewise.
50084         * modules/vasnprintf (License): Likewise.
50085         * modules/wchar (License): Likewise.
50086         * modules/xsize (License): Likewise.
50087
50088 2007-07-13  Bruno Haible  <bruno@clisp.org>
50089
50090         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50091         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50092
50093 2007-07-12  Bruno Haible  <bruno@clisp.org>
50094
50095         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50096         in the modules files.
50097
50098 2007-07-11  Karl Berry  <karl@gnu.org>
50099
50100         * MODULES.html.sh (func_module): use
50101          sed -e '\|^'"${includefile}"'$|d'
50102          instead of /.../d, to avoid errors on $includefile's containing /.
50103
50104 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50105
50106         * gnulib-tool (func_import): Avoid duplication of --avoid
50107         statements
50108         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50109         names to `_' in variable names.
50110
50111 2007-07-10  Eric Blake  <ebb9@byu.net>
50112
50113         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50114         * NEWS: Document this change.
50115
50116 2007-07-08  Bruno Haible  <bruno@clisp.org>
50117
50118         Update to Unicode 5.0.
50119         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50120         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50121         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50122         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50123         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50124         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50125         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50126         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50127         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50128         U+10A3F, U+1D242..U+1D244.
50129         (nonspacing_table_ind): Update.
50130         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50131         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50132
50133 2007-07-08  Bruno Haible  <bruno@clisp.org>
50134
50135         Update to Unicode 5.0.
50136         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50137         code transform. Extend the name index field of unicode_name_to_code and
50138         unicode_code_to_name from 16 to 24 bits.
50139         * lib/uniname/uniname.c (unicode_character_name,
50140         unicode_name_character): Add the range 0x12xxx to the code transform.
50141         * lib/uniname/uninames.h: Regenerated.
50142         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50143
50144 2007-07-07  Bruno Haible  <bruno@clisp.org>
50145
50146         * modules/wcwidth-tests: New file.
50147         * tests/test-wcwidth.c: New file.
50148
50149         Work around MacOS X wcwidth() bug.
50150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50151         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50152         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50153         original wcwidth in non-UTF-8 locales.
50154         * modules/wcwidth (Depends-on): Add localcharset, streq,
50155         uniwidth/width.
50156         * doc/functions/wcwidth.texi: Update.
50157
50158 2007-07-07  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50161         (wcwidth): New declaration.
50162         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50163         macros.
50164         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50165         here. Prepare for creating <wchar.h> unconditionally.
50166         * modules/wchar (Depends-on): Add link-warning.
50167         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50168         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50169         * lib/wcwidth.h: Remove file.
50170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50171         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50172         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50173         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50174         (Include): Replace wcwidth.h with <wchar.h>.
50175         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50176         * lib/mbchar.h: Don't include wcwidth.h.
50177         * lib/mbswidth.c: Likewise.
50178         * NEWS: Mention the change.
50179
50180 2007-07-07  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50183         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50184         definition with an external declaration.
50185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50186         defined as a function. Remove AC_C_INLINE requirement.
50187         * modules/wcwidth (Files): Add lib/wcwidth.c.
50188         (Makefile.am): Remove redundant statement.
50189
50190 2007-07-07  Bruno Haible  <bruno@clisp.org>
50191
50192         * MODULES.html.sh (Unicode string functions): Add the new modules.
50193
50194         * tests/uniwidth/test-u32-strwidth.c: New file.
50195         * modules/uniwidth/u32-strwidth-tests: New file.
50196
50197         * lib/uniwidth/u32-strwidth.c: New file.
50198         * modules/uniwidth/u32-strwidth: New file.
50199
50200         * tests/uniwidth/test-u16-strwidth.c: New file.
50201         * modules/uniwidth/u16-strwidth-tests: New file.
50202
50203         * lib/uniwidth/u16-strwidth.c: New file.
50204         * modules/uniwidth/u16-strwidth: New file.
50205
50206         * tests/uniwidth/test-u8-strwidth.c: New file.
50207         * modules/uniwidth/u8-strwidth-tests: New file.
50208
50209         * lib/uniwidth/u8-strwidth.c: New file.
50210         * modules/uniwidth/u8-strwidth: New file.
50211
50212         * tests/uniwidth/test-u32-width.c: New file.
50213         * modules/uniwidth/u32-width-tests: New file.
50214
50215         * lib/uniwidth/u32-width.c: New file.
50216         * modules/uniwidth/u32-width: New file.
50217
50218         * tests/uniwidth/test-u16-width.c: New file.
50219         * modules/uniwidth/u16-width-tests: New file.
50220
50221         * lib/uniwidth/u16-width.c: New file.
50222         * modules/uniwidth/u16-width: New file.
50223
50224         * tests/uniwidth/test-u8-width.c: New file.
50225         * modules/uniwidth/u8-width-tests: New file.
50226
50227         * lib/uniwidth/u8-width.c: New file.
50228         * modules/uniwidth/u8-width: New file.
50229
50230         * tests/uniwidth/test-uc_width.c: New file.
50231         * modules/uniwidth/width-tests: New file.
50232
50233         * lib/uniwidth/width.c: New file, from GNU libiconv.
50234         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50235         * modules/uniwidth/width: New file.
50236
50237         * lib/uniwidth.h: New file, from GNU libiconv.
50238         * modules/uniwidth/base: New file.
50239
50240 2007-07-07  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/uniname.h: New file, from GNU gettext.
50243         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50244         * lib/uniname/uninames.h: New file, from GNU gettext.
50245         * lib/uniname/uniname.c: New file, from GNU gettext.
50246         * tests/uniname/test-uninames.sh: New file.
50247         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50248         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50249         * modules/uniname/base: New file.
50250         * modules/uniname/uniname: New file.
50251         * modules/uniname/uniname-tests: New file.
50252         * MODULES.html.sh (Unicode string functions): Add the new modules.
50253
50254 2007-07-06  Bruno Haible  <bruno@clisp.org>
50255
50256         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50257
50258 2007-07-06  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50261         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50262         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50263         include <sys/time.h>.
50264         Reported by Eric Blake.
50265
50266 2007-07-06  Eric Blake  <ebb9@byu.net>
50267
50268         Fix testing canonicalize on cygwin.
50269         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50270         Revert patch from 2007-06-19.
50271         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50272         canonicalize module is also in use.
50273         * tests/test-canonicalize.c: New file.
50274         * tests/test-canonicalize.sh: Likewise.
50275         * modules/canonicalize-tests: Likewise.
50276
50277 2007-07-06  Jim Meyering  <jim@meyering.net>
50278
50279         * lib/getugroups.c (getugroups): Detect getgrent failure.
50280         Adjust comment to reflect reality: this function may return -1.
50281
50282 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50283
50284         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50285         the new TP address.
50286         (usage): Fix typo
50287         (gnulib_mk): New variable.
50288
50289 2007-07-05  Jim Meyering  <jim@meyering.net>
50290
50291         Don't let endgrent clobber errno, no matter how improbable.
50292         * lib/getugroups.c (getugroups): Save and restore errno around
50293         endgrent call.
50294
50295         Close the group DB even when failing with 2^31 or more members.
50296         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50297
50298 2007-07-04  Jim Meyering  <jim@meyering.net>
50299
50300         * lib/getugroups.h: New file.
50301         * lib/getugroups.c: Include "getugroups.h".
50302         Remove uses of "register" keyword.
50303         Move local variable, "cp", down into scope where used.
50304         Give "username" parameter the "const" attribute.
50305         * modules/getugroups (Files): Add lib/getugroups.h
50306
50307 2007-07-04  Karl Berry  <karl@gnu.org>
50308
50309         * MODULES.html.sh (func_all_modules): Complete rename of
50310         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50311
50312 2007-07-02  Bruno Haible  <bruno@clisp.org>
50313
50314         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50315         mode, when inttypes.h comes from gnulib.
50316         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50317
50318 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50319
50320         * NEWS: Mention lgpl module name change.
50321
50322         * modules/lgpl-2.1: Renamed from lgpl.
50323
50324         * NEWS: Mention gpl module name change.
50325
50326         * modules/gpl-3.0: New file, based on gpl-2.0.
50327
50328         * modules/gpl-2.0: Renamed from gpl.
50329
50330         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50331         doc/gpl-2.0.texi.
50332
50333 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50336         #define __STDC_LIMIT_MACROS temporarily while including
50337         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50338         Problem reported by Joel E. Denny in
50339         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50340
50341 2007-07-01  Bruno Haible  <bruno@clisp.org>
50342
50343         * lib/unistdio.h: New file.
50344         * lib/unistdio/u-asnprintf.h: New file.
50345         * lib/unistdio/u-asprintf.h: New file.
50346         * lib/unistdio/u-printf-args.c: New file.
50347         * lib/unistdio/u-printf-args.h: New file.
50348         * lib/unistdio/u-printf-parse.h: New file.
50349         * lib/unistdio/u-snprintf.h: New file.
50350         * lib/unistdio/u-sprintf.h: New file.
50351         * lib/unistdio/u-vasprintf.h: New file.
50352         * lib/unistdio/u-vsnprintf.h: New file.
50353         * lib/unistdio/u-vsprintf.h: New file.
50354         * lib/unistdio/ulc-asnprintf.c: New file.
50355         * lib/unistdio/ulc-asprintf.c: New file.
50356         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50357         * lib/unistdio/ulc-printf-parse.c: New file.
50358         * lib/unistdio/ulc-snprintf.c: New file.
50359         * lib/unistdio/ulc-sprintf.c: New file.
50360         * lib/unistdio/ulc-vasnprintf.c: New file.
50361         * lib/unistdio/ulc-vasprintf.c: New file.
50362         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50363         * lib/unistdio/ulc-vsnprintf.c: New file.
50364         * lib/unistdio/ulc-vsprintf.c: New file.
50365         * lib/unistdio/u8-asnprintf.c: New file.
50366         * lib/unistdio/u8-asprintf.c: New file.
50367         * lib/unistdio/u8-printf-parse.c: New file.
50368         * lib/unistdio/u8-snprintf.c: New file.
50369         * lib/unistdio/u8-sprintf.c: New file.
50370         * lib/unistdio/u8-vasnprintf.c: New file.
50371         * lib/unistdio/u8-vasprintf.c: New file.
50372         * lib/unistdio/u8-vsnprintf.c: New file.
50373         * lib/unistdio/u8-vsprintf.c: New file.
50374         * lib/unistdio/u8-u8-asnprintf.c: New file.
50375         * lib/unistdio/u8-u8-asprintf.c: New file.
50376         * lib/unistdio/u8-u8-snprintf.c: New file.
50377         * lib/unistdio/u8-u8-sprintf.c: New file.
50378         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50379         * lib/unistdio/u8-u8-vasprintf.c: New file.
50380         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50381         * lib/unistdio/u8-u8-vsprintf.c: New file.
50382         * lib/unistdio/u16-asnprintf.c: New file.
50383         * lib/unistdio/u16-asprintf.c: New file.
50384         * lib/unistdio/u16-printf-parse.c: New file.
50385         * lib/unistdio/u16-snprintf.c: New file.
50386         * lib/unistdio/u16-sprintf.c: New file.
50387         * lib/unistdio/u16-vasnprintf.c: New file.
50388         * lib/unistdio/u16-vasprintf.c: New file.
50389         * lib/unistdio/u16-vsnprintf.c: New file.
50390         * lib/unistdio/u16-vsprintf.c: New file.
50391         * lib/unistdio/u16-u16-asnprintf.c: New file.
50392         * lib/unistdio/u16-u16-asprintf.c: New file.
50393         * lib/unistdio/u16-u16-snprintf.c: New file.
50394         * lib/unistdio/u16-u16-sprintf.c: New file.
50395         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50396         * lib/unistdio/u16-u16-vasprintf.c: New file.
50397         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50398         * lib/unistdio/u16-u16-vsprintf.c: New file.
50399         * lib/unistdio/u32-asnprintf.c: New file.
50400         * lib/unistdio/u32-asprintf.c: New file.
50401         * lib/unistdio/u32-printf-parse.c: New file.
50402         * lib/unistdio/u32-snprintf.c: New file.
50403         * lib/unistdio/u32-sprintf.c: New file.
50404         * lib/unistdio/u32-vasnprintf.c: New file.
50405         * lib/unistdio/u32-vasprintf.c: New file.
50406         * lib/unistdio/u32-vsnprintf.c: New file.
50407         * lib/unistdio/u32-vsprintf.c: New file.
50408         * lib/unistdio/u32-u32-asnprintf.c: New file.
50409         * lib/unistdio/u32-u32-asprintf.c: New file.
50410         * lib/unistdio/u32-u32-snprintf.c: New file.
50411         * lib/unistdio/u32-u32-sprintf.c: New file.
50412         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50413         * lib/unistdio/u32-u32-vasprintf.c: New file.
50414         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50415         * lib/unistdio/u32-u32-vsprintf.c: New file.
50416         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50417         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50418         * tests/unistdio/test-ulc-printf1.h: New file.
50419         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50420         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50421         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50422         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50423         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50424         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50425         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50426         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50427         * tests/unistdio/test-u8-asnprintf1.c: New file.
50428         * tests/unistdio/test-u8-asnprintf1.h: New file.
50429         * tests/unistdio/test-u8-printf1.h: New file.
50430         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50431         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50432         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50433         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50434         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50435         * tests/unistdio/test-u8-vasprintf1.c: New file.
50436         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50437         * tests/unistdio/test-u8-vsprintf1.c: New file.
50438         * tests/unistdio/test-u16-asnprintf1.c: New file.
50439         * tests/unistdio/test-u16-asnprintf1.h: New file.
50440         * tests/unistdio/test-u16-printf1.h: New file.
50441         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50442         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50443         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50444         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50445         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50446         * tests/unistdio/test-u16-vasprintf1.c: New file.
50447         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50448         * tests/unistdio/test-u16-vsprintf1.c: New file.
50449         * tests/unistdio/test-u32-asnprintf1.c: New file.
50450         * tests/unistdio/test-u32-asnprintf1.h: New file.
50451         * tests/unistdio/test-u32-printf1.h: New file.
50452         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50453         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50454         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50455         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50456         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50457         * tests/unistdio/test-u32-vasprintf1.c: New file.
50458         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50459         * tests/unistdio/test-u32-vsprintf1.c: New file.
50460         * modules/unistdio/base: New file.
50461         * modules/unistdio/u-printf-args: New file.
50462         * modules/unistdio/ulc-asnprintf: New file.
50463         * modules/unistdio/ulc-asprintf: New file.
50464         * modules/unistdio/ulc-fprintf: New file.
50465         * modules/unistdio/ulc-printf-parse: New file.
50466         * modules/unistdio/ulc-snprintf: New file.
50467         * modules/unistdio/ulc-sprintf: New file.
50468         * modules/unistdio/ulc-vasnprintf: New file.
50469         * modules/unistdio/ulc-vasprintf: New file.
50470         * modules/unistdio/ulc-vfprintf: New file.
50471         * modules/unistdio/ulc-vsnprintf: New file.
50472         * modules/unistdio/ulc-vsprintf: New file.
50473         * modules/unistdio/u8-asnprintf: New file.
50474         * modules/unistdio/u8-asprintf: New file.
50475         * modules/unistdio/u8-printf-parse: New file.
50476         * modules/unistdio/u8-snprintf: New file.
50477         * modules/unistdio/u8-sprintf: New file.
50478         * modules/unistdio/u8-vasnprintf: New file.
50479         * modules/unistdio/u8-vasprintf: New file.
50480         * modules/unistdio/u8-vsnprintf: New file.
50481         * modules/unistdio/u8-vsprintf: New file.
50482         * modules/unistdio/u8-u8-asnprintf: New file.
50483         * modules/unistdio/u8-u8-asprintf: New file.
50484         * modules/unistdio/u8-u8-snprintf: New file.
50485         * modules/unistdio/u8-u8-sprintf: New file.
50486         * modules/unistdio/u8-u8-vasnprintf: New file.
50487         * modules/unistdio/u8-u8-vasprintf: New file.
50488         * modules/unistdio/u8-u8-vsnprintf: New file.
50489         * modules/unistdio/u8-u8-vsprintf: New file.
50490         * modules/unistdio/u16-asnprintf: New file.
50491         * modules/unistdio/u16-asprintf: New file.
50492         * modules/unistdio/u16-printf-parse: New file.
50493         * modules/unistdio/u16-snprintf: New file.
50494         * modules/unistdio/u16-sprintf: New file.
50495         * modules/unistdio/u16-vasnprintf: New file.
50496         * modules/unistdio/u16-vasprintf: New file.
50497         * modules/unistdio/u16-vsnprintf: New file.
50498         * modules/unistdio/u16-vsprintf: New file.
50499         * modules/unistdio/u16-u16-asnprintf: New file.
50500         * modules/unistdio/u16-u16-asprintf: New file.
50501         * modules/unistdio/u16-u16-snprintf: New file.
50502         * modules/unistdio/u16-u16-sprintf: New file.
50503         * modules/unistdio/u16-u16-vasnprintf: New file.
50504         * modules/unistdio/u16-u16-vasprintf: New file.
50505         * modules/unistdio/u16-u16-vsnprintf: New file.
50506         * modules/unistdio/u16-u16-vsprintf: New file.
50507         * modules/unistdio/u32-asnprintf: New file.
50508         * modules/unistdio/u32-asprintf: New file.
50509         * modules/unistdio/u32-printf-parse: New file.
50510         * modules/unistdio/u32-snprintf: New file.
50511         * modules/unistdio/u32-sprintf: New file.
50512         * modules/unistdio/u32-vasnprintf: New file.
50513         * modules/unistdio/u32-vasprintf: New file.
50514         * modules/unistdio/u32-vsnprintf: New file.
50515         * modules/unistdio/u32-vsprintf: New file.
50516         * modules/unistdio/u32-u32-asnprintf: New file.
50517         * modules/unistdio/u32-u32-asprintf: New file.
50518         * modules/unistdio/u32-u32-snprintf: New file.
50519         * modules/unistdio/u32-u32-sprintf: New file.
50520         * modules/unistdio/u32-u32-vasnprintf: New file.
50521         * modules/unistdio/u32-u32-vasprintf: New file.
50522         * modules/unistdio/u32-u32-vsnprintf: New file.
50523         * modules/unistdio/u32-u32-vsprintf: New file.
50524         * modules/unistdio/ulc-asnprintf-tests: New file.
50525         * modules/unistdio/ulc-vasnprintf-tests: New file.
50526         * modules/unistdio/ulc-vasprintf-tests: New file.
50527         * modules/unistdio/ulc-vsnprintf-tests: New file.
50528         * modules/unistdio/ulc-vsprintf-tests: New file.
50529         * modules/unistdio/u8-asnprintf-tests: New file.
50530         * modules/unistdio/u8-vasnprintf-tests: New file.
50531         * modules/unistdio/u8-vasprintf-tests: New file.
50532         * modules/unistdio/u8-vsnprintf-tests: New file.
50533         * modules/unistdio/u8-vsprintf-tests: New file.
50534         * modules/unistdio/u16-asnprintf-tests: New file.
50535         * modules/unistdio/u16-vasnprintf-tests: New file.
50536         * modules/unistdio/u16-vasprintf-tests: New file.
50537         * modules/unistdio/u16-vsnprintf-tests: New file.
50538         * modules/unistdio/u16-vsprintf-tests: New file.
50539         * modules/unistdio/u32-asnprintf-tests: New file.
50540         * modules/unistdio/u32-vasnprintf-tests: New file.
50541         * modules/unistdio/u32-vasprintf-tests: New file.
50542         * modules/unistdio/u32-vsnprintf-tests: New file.
50543         * modules/unistdio/u32-vsprintf-tests: New file.
50544         * MODULES.html.sh (Unicode string functions): Add the new modules.
50545
50546 2007-07-01  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/sprintf.c (sprintf): Limit the available length estimation,
50549         to avoid address wraparound.
50550         * lib/vsprintf.c (vsprintf): Likewise.
50551         * modules/sprintf-posix (Dependencies): Add stdint.
50552         * modules/vsprintf-posix (Dependencies): Likewise.
50553
50554 2007-07-01  Bruno Haible  <bruno@clisp.org>
50555
50556         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50557         Windows PATH as well. Conservative double-quoting. Comments.
50558
50559 2007-07-01  Bruno Haible  <bruno@clisp.org>
50560             Eric Blake  <ebb9@byu.net>
50561             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50562
50563         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50564         empty components in $PATH, denoting '.'.
50565
50566 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50567
50568         * gnulib-tool: Fix indentation.
50569         (func_create_megatestdir): Likewise.
50570         Report by Bruno Haible.
50571
50572 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50573
50574         Sync from Automake.
50575         * build-aux/gnupload: Fix shell portability issues with for loops.
50576         Report by Karl Berry.
50577
50578 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50579
50580         * build-aux/maint.mk (POURL): Use translationproject.org.
50581
50582 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50583             Bruno Haible  <bruno@clisp.org>
50584
50585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50586         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50587         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50588         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50589         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50590
50591 2007-06-27  Bruno Haible  <bruno@clisp.org>
50592
50593         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50594         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50595
50596 2007-06-26  Karl Berry  <karl@gnu.org>
50597
50598         * MODULES.html.sh: remove xreadlink-with-size.
50599
50600 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50603         method that I hope also handles the double-include problem noted
50604         by Bruno Haible in
50605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50606
50607 2007-06-23  Bruno Haible  <bruno@clisp.org>
50608
50609         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50610         Don't let the 'mostlyclean' target fail if the last subdirectory could
50611         not be removed.
50612         Reported by Karl Berry.
50613
50614 2007-06-23  Bruno Haible  <bruno@clisp.org>
50615
50616         * gnulib-tool (echo): Add a speedier workaround for ksh.
50617         * tests/test-echo.sh: Likewise.
50618
50619 2007-06-23  Bruno Haible  <bruno@clisp.org>
50620
50621         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50622         * tests/test-echo.sh: Likewise.
50623
50624 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50625
50626         * gnulib-tool (IFS): Initialize early, so we don't set it to
50627         empty later.
50628         (self_abspathname): Rewrite algorithm to set it, reindent.
50629         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50630         (func_create_megatestdir): Merge some sed scripts.
50631
50632 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50633
50634         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50635         exposed by Sun Studio 11 cc on Solaris 8.
50636
50637 2007-06-22  Bruno Haible  <bruno@clisp.org>
50638
50639         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50640         backslashes.
50641         * tests/test-echo.sh: New file.
50642
50643 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50644
50645         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50646         simplify `sed_replace_build_aux' scripts, they are portable but
50647         echoing them with `echo' is not.
50648         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50649
50650 2007-06-21  Karl Berry  <karl@gnu.org>
50651
50652         * config/srclist.txt: guess we can't handle the licenses via
50653         srclist at the moment.
50654
50655 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * MODULES.html.sh: Add include_next.
50658         * modules/include_next: New file.
50659
50660 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50661
50662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50663         INCLUDE_NEXT.
50664         (gl_CHECK_NEXT_HEADERS): New macro.
50665         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50666         the obsolescent gl_ABSOLUTE_HEADER.
50667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50668         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50669         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50670         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50671         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50672         * m4/math_h.m4 (gl_MATH_H): Likewise.
50673         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50674         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50675         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50676         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50677         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50678         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50679         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50681         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50684         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50685         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50687         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50688         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50689         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50690         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50691         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50692         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50693         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50694         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50695         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50696         * lib/float_.h: Likewise.
50697         * lib/inttypes_.h: Likewise.
50698         * lib/math_.h: Likewise.
50699         * lib/search_.h: Likewise.
50700         * lib/signal_.h: Likewise.
50701         * lib/stdint_.h: Likewise.
50702         * lib/stdio_.h: Likewise.
50703         * lib/stdlib_.h: Likewise.
50704         * lib/string_.h: Likewise.
50705         * lib/sys_stat_.h: Likewise.
50706         * lib/sys_time_.h: Likewise.
50707         * lib/time_.h: Likewise.
50708         * lib/unistd_.h: Likewise.
50709         * lib/wchar_.h: Likewise.
50710         * lib/wctype_.h: Likewise.
50711         * lib/dirent_.h: Likewise.
50712         * lib/iconv_.h: Likewise.
50713         * lib/locale_.h: Likewise.
50714         * lib/netinet_in_.h: Likewise.
50715         * lib/sys_select_.h: Likewise.
50716         * lib/sys_socket_.h: Likewise.
50717         * lib/sysexits_.h: Likewise.
50718         * modules/fcntl (Depends-on): Depend on include_next, not
50719         absolute_header.
50720         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50721         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50722         * modules/fchdir: Likewise.
50723         * modules/float: Likewise.
50724         * modules/iconv_open: Likewise.
50725         * modules/inttypes: Likewise.
50726         * modules/locale: Likewise.
50727         * modules/math: Likewise.
50728         * modules/netinet_in: Likewise.
50729         * modules/search: Likewise.
50730         * modules/signal: Likewise.
50731         * modules/stdint: Likewise.
50732         * modules/stdio: Likewise.
50733         * modules/stdlib: Likewise.
50734         * modules/string: Likewise.
50735         * modules/sys_select: Likewise.
50736         * modules/sys_socket: Likewise.
50737         * modules/sys_stat: Likewise.
50738         * modules/sys_time: Likewise.
50739         * modules/sysexits: Likewise.
50740         * modules/time: Likewise.
50741         * modules/unistd: Likewise.
50742         * modules/wchar: Likewise.
50743         * modules/wctype: Likewise.
50744         * modules/sys_stat: Change maintainer to "all".
50745         * modules/unistd: Likewise.
50746
50747 2007-06-20  Karl Berry  <karl@gnu.org>
50748
50749         * config/srclist.txt: track www changes in license files.
50750
50751 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50752
50753         * build-aux/bootstrap: Remove stray dot.
50754         Make sure build_aux settings are honored when linking
50755         gnulib_extra_files.
50756
50757 2007-06-19  Eric Blake  <ebb9@byu.net>
50758
50759         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50760         Allow compilation on cygwin.
50761
50762 2007-06-19  Jim Meyering  <jim@meyering.net>
50763
50764         xreadlink-with-size: Remove module.  No longer used.
50765         Ex-callers now use xreadlink or mreadlink-with-size.
50766         * modules/xreadlink-with-size: Remove module.
50767         * lib/xreadlink-with-size.c: Remove file.
50768         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50769         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50770         just before the function definition *is* accurate.
50771
50772         Eliminate one way canonicalize_filename_mode could exit.
50773         * lib/canonicalize.c (canonicalize_filename_mode):
50774         Use mreadlink_with_size, not xreadlink_with_size.
50775
50776 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50777
50778         Detect porting problems to FreeBSD/arm, which has time_t wider than
50779         long int.  Original problem reported for GNU diff by Xin Li in
50780         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50781         * modules/getdate (Depends-on): Add intprops, verify.
50782         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50783         is an integer type no wider than long int.
50784
50785 2007-06-18  Jim Meyering  <jim@meyering.net>
50786
50787         New module: mreadlink-with-size.
50788         * MODULES.html.sh: Add mreadlink-with-size.
50789         * modules/mreadlink-with-size: New module
50790         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50791         not xreadlink-with-size.
50792         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50793
50794 2007-06-16  Bruno Haible  <bruno@clisp.org>
50795
50796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50797         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50798         Reported by Gary V. Vaughan <gary@gnu.org>.
50799
50800 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         Revamp lchown so that it lives in unistd.h where it belongs.
50803         * lib/lchown.h: Remove.
50804         * lib/dirchownmod.c: Don't include lib/lchown.h.
50805         * lib/fchownat.c: Likewise.
50806         * lib/openat.c: Likewise.
50807         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50808         does not follow symlinks.
50809         (EOPNOTSUPP): Define if not defined.
50810         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50811         is defined to 0.
50812         (lchown): New decl.
50813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50814         Do not check for lchown decl.
50815         Set REPLACE_LCHOWN.
50816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50817         REPLACE_LCHOWN.
50818         * modules/chown: Make it clear it follows symlinks.
50819         * modules/lchown: Make it clear it doesn't follow symlinks.
50820         (Files): Remove lib/lchown.h
50821         (Depends-on): Add unistd.
50822         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50823         (Include): Include <unistd.h>, not "lchown.h".
50824         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50825         REPLACE_LCHOWN.
50826
50827 2007-06-15  Jim Meyering  <jim@meyering.net>
50828
50829         Change license (GPL to LGPL) of fsusage and dependents.
50830         * modules/fsusage (License): Change to LGPL.
50831         * modules/full-read (License): Likewise.
50832         * modules/full-write (License): Likewise.
50833         * modules/safe-read (License): Likewise.
50834         * modules/safe-write (License): Likewise.
50835
50836 2007-06-14  Ben Pfaff  <blp@gnu.org>
50837
50838         Missing part of allocsa -> malloca transition.
50839         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50840         gl_MALLOCA.
50841
50842 2007-06-12  Bruno Haible  <bruno@clisp.org>
50843
50844         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50845         to ia64, x86_64, i386.
50846         Reported by Eric Blake.
50847
50848 2007-06-12  Bruno Haible  <bruno@clisp.org>
50849
50850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50851         cross-compiling to x86_64.
50852
50853 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50854
50855         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50856         glitch reported by Ralf Wildenhues in
50857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50858
50859         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50860         Vin Shelton.
50861
50862 2007-06-11  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50865         replacement string.
50866         Reported by Eric Blake.
50867
50868 2007-06-10  Bruno Haible  <bruno@clisp.org>
50869
50870         Prepare vasnprintf code for use with Unicode strings.
50871         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50872         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50873         TYPE_U32_STRING.
50874         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50875         a_u32_string variants.
50876         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50877         * lib/printf-args.c: Don't include config.h and the specification
50878         header if PRINTF_FETCHARGS is already defined.
50879         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50880         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50881         TYPE_U16_STRING, TYPE_U32_STRING.
50882         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50883         u16_directive, u16_directives, u32_directive, u32_directives): New
50884         types.
50885         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50886         New declarations.
50887         * lib/printf-parse.c: Don't include config.h and the specification
50888         header if PRINTF_PARSE is already defined. Eliminate the set of
50889         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50890         them now. Include c-ctype.h.
50891         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50892         directive and CHAR_T_ONLY_ASCII.
50893         * lib/vasnprintf.c: Don't include config.h and the specification header
50894         if VASNPRINTF is already defined.
50895         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50896         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50897         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50898         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50899         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50900         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50901         code accordingly.
50902         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50903         pad_ourselves also in this case, with the 'c' and 's' directives, and
50904         with a different notion of "width".
50905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50906
50907 2007-06-10  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/unistr/u32-mbsnlen: New file.
50910         * lib/unistr/u32-mbsnlen.c: New file.
50911
50912         * modules/unistr/u16-mbsnlen: New file.
50913         * lib/unistr/u16-mbsnlen.c: New file.
50914
50915         * modules/unistr/u8-mbsnlen: New file.
50916         * lib/unistr/u8-mbsnlen.c: New file.
50917
50918         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50919         declarations.
50920
50921 2007-06-10  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/string_.h (mbsnlen): New declaration.
50924         * lib/mbsnlen.c: New file.
50925         * m4/mbsnlen.m4: New file.
50926         * modules/mbsnlen: New file.
50927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50928         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50929         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50930
50931 2007-06-10  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50934
50935 2007-06-10  Bruno Haible  <bruno@clisp.org>
50936
50937         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50938         * lib/mbuiter.h: Likewise.
50939
50940 2007-06-10  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50943         declaration.
50944
50945 2007-06-10  Karl Berry  <karl@gnu.org>
50946
50947         * config/srclist.txt: remove gettext entries, Bruno prefers
50948         to update individually.
50949
50950 2007-06-10  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50953         'maxlen'. Ensure only length + width bytes are allocated, not
50954         length + 1 + width.
50955
50956 2007-06-09  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50959         (CHAR_T): Remove macro.
50960         (VASNPRINTF): Update.
50961
50962 2007-06-09  Bruno Haible  <bruno@clisp.org>
50963
50964         * MODULES.html.sh (Unicode string functions): Add the new modules.
50965
50966         * modules/uniconv/u32-conv-to-enc: New file.
50967         * lib/uniconv/u32-conv-to-enc.c: New file.
50968         * modules/uniconv/u32-conv-to-enc-tests: New file.
50969         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50970
50971         * modules/uniconv/u16-conv-to-enc: New file.
50972         * lib/uniconv/u16-conv-to-enc.c: New file.
50973         * lib/uniconv/u-conv-to-enc.h: New file.
50974         * modules/uniconv/u16-conv-to-enc-tests: New file.
50975         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50976
50977         * modules/uniconv/u8-conv-to-enc: New file.
50978         * lib/uniconv/u8-conv-to-enc.c: New file.
50979         * modules/uniconv/u8-conv-to-enc-tests: New file.
50980         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50981
50982         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50983         u32_conv_to_encoding): New declarations.
50984
50985 2007-06-09  Bruno Haible  <bruno@clisp.org>
50986
50987         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50988
50989 2007-06-09  Bruno Haible  <bruno@clisp.org>
50990
50991         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50992         * modules/malloca: Renamed from modules/allocsa, updated.
50993         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50994         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50995         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50996         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50997         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50998         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50999         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51000         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51001         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51002         * modules/c-strcasestr (Depends-on): Update.
51003         * lib/c-strcasestr.c: Update.
51004         * modules/c-strstr (Depends-on): Update.
51005         * lib/c-strstr.c: Update.
51006         * modules/canonicalize-lgpl (Depends-on): Update.
51007         * lib/canonicalize-lgpl.c: Update.
51008         * modules/clean-temp (Depends-on): Update.
51009         * lib/clean-temp.c: Update.
51010         * modules/csharpcomp (Depends-on): Update.
51011         * lib/csharpcomp.c: Update.
51012         * modules/csharpexec (Depends-on): Update.
51013         * lib/csharpexec.c: Update.
51014         * modules/javacomp (Depends-on): Update.
51015         * lib/javacomp.c: Update.
51016         * modules/javaexec (Depends-on): Update.
51017         * lib/javaexec.c: Update.
51018         * modules/mbscasestr (Depends-on): Update.
51019         * lib/mbscasestr.c: Update.
51020         * modules/mbsstr (Depends-on): Update.
51021         * lib/mbsstr.c: Update.
51022         * modules/setenv (Depends-on): Update.
51023         * lib/setenv.c: Update.
51024         * modules/strcasestr (Depends-on): Update.
51025         * lib/strcasestr.c: Update.
51026         * modules/striconveha (Depends-on): Update.
51027         * lib/striconveha.c: Update.
51028         * modules/relocatable-prog-wrapper (Files): Update.
51029         * lib/relocwrapper.c: Update.
51030         * build-aux/install-reloc: Update.
51031         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51032
51033 2007-06-08  Bruno Haible  <bruno@clisp.org>
51034
51035         Port to uClibc.
51036         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51037         * lib/fpurge.c (fpurge): Likewise.
51038         * lib/freading.c (freading): Likewise.
51039         * lib/fseeko.c (rpl_fseeko): Likewise.
51040         * lib/fseterr.c (fseterr): Likewise.
51041         * lib/fwriting.c (fwriting): Likewise.
51042         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51043
51044 2007-06-08  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51047         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51048         * modules/gettext (Files): Add m4/intlmacosx.m4.
51049
51050 2007-06-07  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/localename-tests: New file.
51053         * tests/test-localename.c: New file.
51054
51055         New module 'localename'.
51056         * lib/localename.h: New file.
51057         * lib/localename.c: New file, from GNU gettext.
51058         * m4/localename.m4: New file.
51059         * modules/localename: New file.
51060
51061 2007-06-07  Bruno Haible  <bruno@clisp.org>
51062
51063         Work around the lack of <wchar.h> on some builds of uClibc.
51064         * doc/headers/wchar.texi: Update.
51065         * lib/wchar_.h: Include <wchar.h> only if it exists.
51066         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51067         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51068         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51069         doesn't exist.
51070         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51071         * modules/mbfile (Depends-on): Add wchar.
51072         * modules/mbiter (Depends-on): Likewise.
51073         * modules/mbuiter (Depends-on): Likewise.
51074         Reported by Simon Josefsson.
51075
51076 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51077
51078         Work around problem reported by Steven M. Schweda in
51079         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51080         Tru64 5.1B with the Compaq compiler environment installed declares
51081         an 'isblank' function but does not define it in the C library.
51082         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51083         * lib/regex_internal.h (isblank): Likewise.
51084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51085         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51086
51087 2007-06-05  Bruno Haible  <bruno@clisp.org>
51088
51089         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51090         ia64.
51091         * modules/printf-safe: New file.
51092         * modules/fprintf-posix (Depends-on): Add printf-safe.
51093         * modules/printf-posix (Depends-on): Likewise.
51094         * modules/snprintf-posix (Depends-on): Likewise.
51095         * modules/sprintf-posix (Depends-on): Likewise.
51096         * modules/vasnprintf-posix (Depends-on): Likewise.
51097         * modules/vasprintf-posix (Depends-on): Likewise.
51098         * modules/vfprintf-posix (Depends-on): Likewise.
51099         * modules/vprintf-posix (Depends-on): Likewise.
51100         * modules/vsnprintf-posix (Depends-on): Likewise.
51101         * modules/vsprintf-posix (Depends-on): Likewise.
51102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51103         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51104         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51105         "no" on i386, x86_64, ia64.
51106         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51107         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51108         on i386, x86_64, ia64.
51109         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51110         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51111         on i386, x86_64, ia64.
51112         * tests/test-vasnprintf-posix.c: Include float.h.
51113         (LDBL80_WORDS): New macro.
51114         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51115         on i386, x86_64, ia64.
51116         * tests/test-vasprintf-posix.c: Include float.h.
51117         (LDBL80_WORDS): New macro.
51118         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51119         on i386, x86_64, ia64.
51120         * tests/test-snprintf-posix.c: Include float.h.
51121         * tests/test-sprintf-posix.c: Likewise.
51122         * tests/test-vsnprintf-posix.c: Likewise.
51123         * tests/test-vsprintf-posix.c: Likewise.
51124
51125 2007-06-05  Bruno Haible  <bruno@clisp.org>
51126
51127         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51129         non-IEEE numbers on i386, x86_64, ia64.
51130         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51131         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51132         * tests/test-isnanl.h: Include float.h.
51133         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51134
51135 2007-06-05  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51138         also the %a / %A. Handle the %a / %A code before this extra handling.
51139
51140 2007-06-05  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51143         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51144
51145 2007-06-05  Bruno Haible  <bruno@clisp.org>
51146
51147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51148         typo in variable name.
51149
51150 2007-06-05  Eric Blake  <ebb9@byu.net>
51151
51152         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51153         Reported by Simon Josefsson.
51154
51155 2007-06-04  Bruno Haible  <bruno@clisp.org>
51156
51157         Avoid test failures on some PowerPC platforms.
51158         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51159         Define differently for PowerPC.
51160         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51161         Reported by Gary V. Vaughan <gary@gnu.org>.
51162
51163 2007-06-02  Bruno Haible  <bruno@clisp.org>
51164
51165         Fix test-stdint failure on FreeBSD/ia64.
51166         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51167         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51168         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51169         * doc/headers/stdint.texi: Update.
51170
51171 2007-06-01  Bruno Haible  <bruno@clisp.org>
51172
51173         * tests/test-binary-io.c (main): Pass a third argument to open().
51174         Reported by Gary V. Vaughan <gary@gnu.org>.
51175
51176 2007-06-01  Bruno Haible  <bruno@clisp.org>
51177
51178         * doc/functions/frexpl.texi: Update for mingw.
51179
51180 2007-06-01  Bruno Haible  <bruno@clisp.org>
51181
51182         * tests/test-lseek.c (main): Disable test of errno for invalid third
51183         argument.
51184         * doc/functions/lseek.texi: Update.
51185         Reported by Gary V. Vaughan <gary@gnu.org>.
51186
51187 2007-05-28  Bruno Haible  <bruno@clisp.org>
51188
51189         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51190
51191 2007-05-31  Eric Blake  <ebb9@byu.net>
51192
51193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51194         cross compiling.
51195
51196 2007-05-30  Eric Blake  <ebb9@byu.net>
51197         and Bruno Haible  <bruno@clisp.org>
51198
51199         Work around mingw test failures exposed by m4-1.4.9b.
51200         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51201         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51202         moment.
51203
51204 2007-05-30  Bruno Haible  <bruno@clisp.org>
51205
51206         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51207         assuming that they are closed. Needed on HP-UX 11.
51208
51209 2007-05-29  Bruno Haible  <bruno@clisp.org>
51210
51211         Fix a problem with #include_next.
51212         * lib/dirent_.h: Split the double-inclusion guard.
51213         * lib/fcntl_.h: Likewise.
51214         * lib/float_.h: Likewise.
51215         * lib/iconv_.h: Likewise.
51216         * lib/inttypes_.h: Likewise.
51217         * lib/locale_.h: Likewise.
51218         * lib/math_.h: Likewise.
51219         * lib/netinet_in_.h: Likewise.
51220         * lib/search_.h: Likewise.
51221         * lib/signal_.h: Likewise.
51222         * lib/stdint_.h: Likewise.
51223         * lib/stdio_.h: Likewise.
51224         * lib/stdlib_.h: Likewise.
51225         * lib/string_.h: Likewise.
51226         * lib/sys_select_.h: Likewise.
51227         * lib/sys_socket_.h: Likewise.
51228         * lib/sys_stat_.h: Likewise.
51229         * lib/sys_time_.h: Likewise.
51230         * lib/sysexits_.h: Likewise.
51231         * lib/time_.h: Likewise.
51232         * lib/unistd_.h: Likewise.
51233         * lib/wchar_.h: Likewise.
51234         * lib/wctype_.h: Likewise.
51235
51236 2007-05-29  Bruno Haible  <bruno@clisp.org>
51237
51238         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51239         for the moment.
51240
51241 2007-05-29  Bruno Haible  <bruno@clisp.org>
51242
51243         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51244         invocation.
51245         Reported by Eric Blake.
51246
51247 2007-05-29  Bruno Haible  <bruno@clisp.org>
51248
51249         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51250         compiling case.
51251
51252 2007-05-29  Eric Blake  <ebb9@byu.net>
51253             Bruno Haible  <bruno@clisp.org>
51254
51255         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51256         cross compiles.
51257
51258 2007-05-28  Eric Blake  <ebb9@byu.net>
51259
51260         * modules/closein-tests (test_closein_LDADD): Support test on
51261         cygwin with libtool.
51262
51263 2007-05-28  Bruno Haible  <bruno@clisp.org>
51264
51265         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51266         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51267         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51268         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51269         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51270         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51271         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51272         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51273         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51274
51275 2007-05-28  Eric Blake  <ebb9@byu.net>
51276
51277         Unconditionally include <config.h> in unit tests.
51278         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51279         * tests/test-allocsa.c, tests/test-arcfour.c,
51280         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51281         tests/test-array_list.c, tests/test-array_oset.c,
51282         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51283         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51284         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51285         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51286         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51287         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51288         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51289         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51290         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51291         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51292         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51293         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51294         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51295         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51296         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51297         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51298         test-md5.c, test-memmem.c, test-printf-posix.c,
51299         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51300         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51301         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51302         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51303         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51304         test-vasnprintf-posix2.c, test-vasnprintf.c,
51305         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51306         test-vfprintf-posix.c, test-vprintf-posix.c,
51307         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51308         test-xvasprintf.c: Likewise.
51309
51310 2007-05-28  Bruno Haible  <bruno@clisp.org>
51311
51312         * gnulib-tool (func_import): Remember the --with-tests command-line
51313         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51314         Reported by Eric Blake.
51315
51316 2007-05-28  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/ftell-tests: New file.
51319         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51320         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51321
51322         * lib/ftell.c: New file.
51323         * modules/ftell: New file.
51324         * m4/ftell.m4: New file.
51325         * doc/functions/ftell.texi: Update.
51326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51327         REPLACE_FTELL.
51328         * lib/stdio_.h (rpl_ftell): New declaration.
51329         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51330         REPLACE_FTELL.
51331
51332 2007-05-28  Eric Blake  <ebb9@byu.net>
51333
51334         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51335
51336 2007-05-28  Bruno Haible  <bruno@clisp.org>
51337
51338         * modules/fseek-tests: New file.
51339         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51340         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51341
51342         * lib/fseek.c: New file.
51343         * modules/fseek: New file.
51344         * m4/fseek.m4: New file.
51345         * doc/functions/fseek.texi: Update.
51346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51347         REPLACE_FSEEK.
51348         * lib/stdio_.h (rpl_fseek): New declaration.
51349         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51350         REPLACE_FSEEK.
51351
51352 2007-05-28  Bruno Haible  <bruno@clisp.org>
51353
51354         * lib/stdio_.h (fflush): More comments.
51355
51356 2007-05-28  Bruno Haible  <bruno@clisp.org>
51357
51358         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51359         runtime test.
51360
51361 2007-05-28  Eric Blake  <ebb9@byu.net>
51362
51363         Improve lseek module.
51364         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51365         * lib/unistd_.h (lseek): Scale back link warning message.
51366         * tests/test-lseek.c: Beef up test.
51367         * tests/test-lseek.sh: Exercise more facets of lseek.
51368         Reported by Bruno Haible.
51369
51370 2007-05-28  Bruno Haible  <bruno@clisp.org>
51371
51372         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51373         to define.
51374
51375 2007-05-27  Bruno Haible  <bruno@clisp.org>
51376
51377         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51378
51379 2007-05-27  Bruno Haible  <bruno@clisp.org>
51380
51381         * modules/openmp: New file.
51382         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51383         Noah Misch.
51384
51385 2007-05-26  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/chdir-long (Depends-on): Add fchdir.
51388         * modules/chdir-safer (Depends-on): Likewise.
51389         * modules/fts (Depends-on): Likewise.
51390         * modules/fts-lgpl (Depends-on): Likewise.
51391         * modules/openat (Depends-on): Likewise.
51392         * modules/savewd (Depends-on): Likewise.
51393
51394 2007-05-24  Eric Blake  <ebb9@byu.net>
51395
51396         Fix lseek on mingw.
51397         * modules/lseek: New module.
51398         * m4/lseek.m4: New file.
51399         * lib/lseek.c: New file.
51400         * modules/lseek-tests: New file.
51401         * tests/test-lseek.c: New file.
51402         * tests/test-lseek.sh: New file.
51403         * MODULES.html.sh: Document lseek module.
51404         * modules/fflush (Depends-on): Add lseek, fseeko.
51405         * modules/fseeko (Depends-on): Likewise.
51406         * modules/ftello (Depends-on): Likewise.
51407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51408         broken.
51409         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51410         broken.
51411         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51412         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51413         * lib/ftello.c (rpl_ftello): Likewise.
51414         * tests/test-fseeko.c (main): Test this.
51415         * tests/test-fseeko.sh: Likewise.
51416         * tests/test-ftello.c (main): Likewise.
51417         * tests/test-ftello.sh: Likewise.
51418         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51419         implies replacing fseek.
51420         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51421         HAVE_FTELLO.
51422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51423         * modules/unistd (Makefile.am): Likewise.
51424         * lib/unistd_.h (lseek): Declare a replacement.
51425         * doc/functions/lseek.texi (lseek): Document this fix.
51426         * doc/functions/fseek.texi (fseek): Likewise.
51427         * doc/functions/ftell.texi (ftell): Likewise.
51428
51429 2007-05-24  Bruno Haible  <bruno@clisp.org>
51430
51431         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51432         in the printed representation of a NaN.
51433         * tests/test-vasprintf-posix.c (test_function): Likewise.
51434         * tests/test-snprintf-posix.h (test_function): Likewise.
51435         * tests/test-sprintf-posix.h (test_function): Likewise.
51436         Reported by Eric Blake.
51437
51438 2007-05-23  Eric Blake  <ebb9@byu.net>
51439
51440         Fix fseeko/ftello on cygwin 1.5.24.
51441         * doc/functions/fseeko.texi (fseeko): Document the fix.
51442         * doc/functions/ftello.texi (ftello): Document the fix.
51443         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51444         * doc/functions/stdout.text (stdout): New file.
51445         * doc/functions/stderr.text (stderr): New file.
51446         * doc/gnulib.texi (Function Substitutes): Use new files.
51447         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51448         prior to 1.7.0.
51449         * tests/test-ftello.c (main): Likewise for ftello.
51450         * tests/test-fseeko.sh: New file.
51451         * tests/test-ftello.sh: New file.
51452         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51453         with seekable stdin.
51454         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51456         (gl_REPLACE_FSEEKO): New macro.
51457         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51458         * modules/fseeko (Files): Distribute fseeko.c.
51459         * modules/ftello (Files): Distribute ftello.c.
51460         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51461         mode.
51462         * lib/ftello.c (rpl_ftello): New file.
51463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51464         fseeko, ftello.
51465         (gl_STDIN_LARGE_OFFSET): New macro.
51466         * modules/stdio (Makefile.am): Perform the replacement.
51467         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51468
51469 2007-05-23  Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51472         GNULIB_POSIXCHECK is defined.
51473
51474 2007-05-21  Bruno Haible  <bruno@clisp.org>
51475
51476         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51477         Check also the output for NaN arguments. When cross-compiling, guess
51478         no on IRIX.
51479         * lib/vasnprintf.c: Update comments.
51480         * tests/test-vasnprintf-posix.c (strisnan): New function.
51481         (test_function): Use it.
51482         * tests/test-vasprintf-posix.c (strisnan): New function.
51483         (test_function): Use it.
51484         * tests/test-snprintf-posix.h (strisnan): New function.
51485         (test_function): Use it.
51486         * tests/test-sprintf-posix.h (strisnan): New function.
51487         (test_function): Use it.
51488         Reported by Eric Blake.
51489
51490 2007-05-20  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51493         numbers that fails on BeOS.
51494         * doc/functions/frexpl.texi: Update.
51495
51496 2007-05-20  Jim Meyering  <jim@meyering.net>
51497
51498         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51499         forced upon us by glibc-2.6.
51500
51501 2007-05-20  Bruno Haible  <bruno@clisp.org>
51502
51503         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51504         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51505         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51506         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51507         NEED_PRINTF_INFINITE.
51508         (is_infinitel): New function.
51509         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51511         gl_PREREQ_VASNPRINTF_INFINITE.
51512         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51514         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51515         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51516         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51517         gl_PREREQ_VASNPRINTF_INFINITE.
51518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51525         * doc/functions/fprintf.texi: Update.
51526         * doc/functions/printf.texi: Update.
51527         * doc/functions/snprintf.texi: Update.
51528         * doc/functions/sprintf.texi: Update.
51529         * doc/functions/vfprintf.texi: Update.
51530         * doc/functions/vprintf.texi: Update.
51531         * doc/functions/vsnprintf.texi: Update.
51532         * doc/functions/vsprintf.texi: Update.
51533
51534 2007-05-20  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51537         was not found in libc.
51538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51539
51540 2007-05-20  Bruno Haible  <bruno@clisp.org>
51541
51542         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51543         printed as "-nan" instead of "nan".
51544         * tests/test-vasprintf-posix.c (test_function): Likewise.
51545         * tests/test-snprintf-posix.h (test_function): Likewise.
51546         * tests/test-sprintf-posix.h (test_function): Likewise.
51547         Needed for HP-UX 11.
51548
51549 2007-05-20  Jim Meyering  <jim@meyering.net>
51550
51551         Fix buggy test for the fchownat-deref bug.
51552         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51553         symlink required for the run-test.  Without it, this test would
51554         always declare that fchownat doesn't work, and client code would
51555         unnecessarily use the replacement function with fixed libc.
51556         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51557         Reported by Greg Schafer.
51558
51559 2007-05-19  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51562         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51563         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51564         Needed for IRIX 6.5 and Solaris 2.5.1.
51565
51566 2007-05-19  Bruno Haible  <bruno@clisp.org>
51567
51568         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51569         (test_function): Skip tests involving -0.0 on platforms where
51570         -0.0 = 0.0.
51571         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51572         (test_function): Skip tests involving -0.0 on platforms where
51573         -0.0 = 0.0.
51574         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51575         (test_function): Skip tests involving -0.0 on platforms where
51576         -0.0 = 0.0.
51577         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51578         (test_function): Skip tests involving -0.0 on platforms where
51579         -0.0 = 0.0.
51580         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51581         tests.
51582         * tests/test-printf-posix.h (test_function): Likewise.
51583         * tests/test-printf-posix.output: Remove all -0.0 related results.
51584         Needed for IRIX 6.5.
51585
51586 2007-05-19  Bruno Haible  <bruno@clisp.org>
51587
51588         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51589         printed as "nan0x7fffffff" instead of "nan".
51590         * tests/test-vasprintf-posix.c (test_function): Likewise.
51591         * tests/test-snprintf-posix.h (test_function): Likewise.
51592         * tests/test-sprintf-posix.h (test_function): Likewise.
51593         * tests/test-fprintf-posix.h (NaN): Remove macro.
51594         (test_function): Remove all NaN related tests.
51595         * tests/test-printf-posix.h (NaN): Remove macro.
51596         (test_function): Remove all NaN related tests.
51597         * tests/test-printf-posix.output: Remove all NaN related results.
51598         Needed for IRIX 6.5.
51599
51600 2007-05-19  Bruno Haible  <bruno@clisp.org>
51601
51602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51604
51605 2007-05-19  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/float_.h: New file.
51608         * m4/float_h.m4: New file.
51609         * modules/float: New file.
51610         * modules/isnanl (Dependencies): Add float.
51611         * modules/isnanl-nolibm (Dependencies): Likewise.
51612         * modules/mathl (Dependencies): Likewise.
51613         * modules/printf-frexpl (Dependencies): Likewise.
51614         * modules/signbit (Dependencies): Likewise.
51615         * modules/vasnprintf (Dependencies): Likewise.
51616         * doc/headers/float.texi: Update.
51617
51618 2007-05-19  Jim Meyering  <jim@meyering.net>
51619
51620         * lib/utimens.c (gl_futimens): Rename from futimens,
51621         now that glibc-2.6 declares futimens.
51622         * lib/utimens.h: Likewise.
51623
51624 2007-05-19  Bruno Haible  <bruno@clisp.org>
51625
51626         Avoid test failures on mingw.
51627         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51628         * tests/test-printf-posix.sh: Likewise.
51629         * tests/test-vfprintf-posix.sh: Likewise.
51630         * tests/test-vprintf-posix.sh: Likewise.
51631
51632 2007-05-19  Bruno Haible  <bruno@clisp.org>
51633
51634         Fix *printf result for NaN, Inf, -0.0 on mingw.
51635         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51636         * lib/vasnprintf.c: Include math.h and isnan.h.
51637         (is_infinite_or_zero): New function.
51638         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51639         values in the %f, %F, %e, %E, %g, %G directives.
51640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51642         gl_PRINTF_INFINITE and test its result. Invoke
51643         gl_PREREQ_VASNPRINTF_INFINITE.
51644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51651         * doc/functions/fprintf.texi: Update.
51652         * doc/functions/printf.texi: Update.
51653         * doc/functions/snprintf.texi: Update.
51654         * doc/functions/sprintf.texi: Update.
51655         * doc/functions/vfprintf.texi: Update.
51656         * doc/functions/vprintf.texi: Update.
51657         * doc/functions/vsnprintf.texi: Update.
51658         * doc/functions/vsprintf.texi: Update.
51659
51660 2007-05-19  Bruno Haible  <bruno@clisp.org>
51661
51662         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51663         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51664         Instead of multiplying with 10^k, set extra_zeroes to k.
51665         (scale10_round_long_double): Remove function.
51666
51667 2007-05-18  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51670         introduced on 2007-05-06.
51671
51672 2007-05-18  Bruno Haible  <bruno@clisp.org>
51673
51674         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51675         %g directives.
51676         * tests/test-vasprintf-posix.c (test_function): Likewise.
51677         * tests/test-snprintf-posix.h (test_function): Likewise.
51678         * tests/test-sprintf-posix.h (test_function): Likewise.
51679
51680 2007-05-18  Bruno Haible  <bruno@clisp.org>
51681
51682         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51683         (strmatch): New function.
51684         (test_function): Test the %f directive on numbers of various exponents.
51685         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51686         (strmatch): New function.
51687         (test_function): Test the %f directive on numbers of various exponents.
51688         * tests/test-snprintf-posix.h (strmatch): New function.
51689         (test_function): Test the %f directive on numbers of various exponents.
51690         * tests/test-sprintf-posix.h (strmatch): New function.
51691         (test_function): Test the %f directive on numbers of various exponents.
51692         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51693         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51694         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51695         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51696
51697 2007-05-18  Bruno Haible  <bruno@clisp.org>
51698
51699         Add support for 'long double' number output.
51700         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51701         * lib/vasnprintf.c: Include math.h and float+.h.
51702         (mp_limb_t): New type.
51703         (GMP_LIMB_BITS): New macro.
51704         (mp_twolimb_t): New type.
51705         (GMP_TWOLIMB_BITS): New macro.
51706         (mpn_t): New type.
51707         (multiply, divide, convert_to_decimal, decode_long_double,
51708         scale10_round_long_double, scale10_round_decimal_long_double,
51709         floorlog10l): New functions.
51710         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51711         for the %f, %F, %e, %E, %g, %G directives.
51712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51713         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51714         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51715         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51723         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51724         * modules/snprintf-posix (Depends-on): Likewise.
51725         * modules/sprintf-posix (Depends-on): Likewise.
51726         * modules/vasnprintf-posix (Depends-on): Likewise.
51727         * modules/vasprintf-posix (Depends-on): Likewise.
51728         * modules/vfprintf-posix (Depends-on): Likewise.
51729         * modules/vsnprintf-posix (Depends-on): Likewise.
51730         * modules/vsprintf-posix (Depends-on): Likewise.
51731         * modules/vasnprintf (Files): Add lib/float+.h.
51732         * doc/functions/fprintf.texi: Update.
51733         * doc/functions/printf.texi: Update.
51734         * doc/functions/snprintf.texi: Update.
51735         * doc/functions/sprintf.texi: Update.
51736         * doc/functions/vfprintf.texi: Update.
51737         * doc/functions/vprintf.texi: Update.
51738         * doc/functions/vsnprintf.texi: Update.
51739         * doc/functions/vsprintf.texi: Update.
51740
51741 2007-05-18  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51744
51745 2007-05-18  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51748         for printing 64-bit integers. Needed for mingw.
51749
51750 2007-05-18  Bruno Haible  <bruno@clisp.org>
51751
51752         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51753         gl_FUNC_FREXPL_WORKS.
51754         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51755
51756 2007-05-18  Bruno Haible  <bruno@clisp.org>
51757
51758         * modules/frexpl-nolibm-tests: New file.
51759
51760         * modules/frexpl-nolibm: New file.
51761         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51762
51763 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51764
51765         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51766         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51767         GCC 4.2, which otherwise issues a lot of warnings.
51768         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51769         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51770         Likewise.
51771         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51772         * modules/iconv_open (iconv.h): Likewise.
51773         * modules/locale (locale.h): Likewise.
51774         * modules/netinet_in (netinet/in.h): Likewise.
51775         * modules/sys_select (sys_select.h): Likewise.
51776         * modules/sys_socket (sys/socket.h): Likewise.
51777         * modules/sys_stat (sys/stat.h): Likewise.
51778         * modules/sysexits (sysexits.h): Likewise.
51779         * modules/unistd (unistd.h): Likewise.
51780
51781 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51782
51783         * modules/closein-tests (Makefile.am): Distribute
51784         `test-closein.sh'.
51785
51786 2007-05-17  Bruno Haible  <bruno@clisp.org>
51787
51788         * tests/test-printf-posix.output: Renamed from
51789         tests/test-fprintf-posix.out.
51790         * modules/fprintf-posix-tests: Update.
51791         * modules/printf-posix-tests: Update.
51792         * modules/vfprintf-posix-tests: Update.
51793         * modules/vprintf-posix-tests: Update.
51794         * tests/test-fprintf-posix.sh: Update.
51795         * tests/test-printf-posix.sh: Update.
51796         * tests/test-vfprintf-posix.sh: Update.
51797         * tests/test-vprintf-posix.sh: Update.
51798         Reported by Ralf Wildenhues.
51799
51800 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51801
51802         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51803         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51804         GCC 4.2, which otherwise issues a lot of warnings.
51805         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51806         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51807         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51808         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51809         it should no longer be needed.
51810         * lib/string_.h: Likewise.
51811         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51812         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51813         * modules/inttypes (inttypes.h): Likewise.
51814         * modules/math (math.h): Likewise.
51815         * modules/search (search.h): Likewise.
51816         * modules/signal (signal.h): Likewise.
51817         * modules/stdint (stdint.h): Likewise.
51818         * modules/stdio (stdio.h): Likewise.
51819         * modules/stdlib (stdlib.h): Likewise.
51820         * modules/string (string.h): Likewise.
51821         * modules/sys_time (sys/time.h): Likewise.
51822         * modules/time (time.h): Likewise.
51823         * modules/wchar (wchar.h): Likewise.
51824         * modules/wctype (wtype.h): Likewise.
51825
51826 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51827
51828         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51829
51830 2007-05-13  Bruno Haible  <bruno@clisp.org>
51831
51832         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51833         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51834         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51835         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51836         (gl_PREREQ_STRTOK_R): Don't require it here.
51837
51838 2007-05-13  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51841         when used in C++ mode.
51842
51843 2007-05-12  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/linebuffer.h: Tweak doc.
51846         * lib/linebuffer.c: Likewise.
51847
51848 2007-05-12  James Youngman  <jay@gnu.org>
51849
51850         * lib/linebuffer.c (readlinebuffer_delim): New function,
51851         like readlinebuffer, but use a caller-specified delimiter.
51852         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51853         as the delimiter.
51854         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51855
51856 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51857
51858         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51859         * modules/openat (Files): Remove openat-die.c.
51860         (Depends-on): Add openat-die.
51861         * modules/openat-die: New module.
51862
51863 2007-05-06  Bruno Haible  <bruno@clisp.org>
51864
51865         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51866         Update with info about Cygwin.
51867         * doc/functions/fprintf.texi: Update.
51868         * doc/functions/printf.texi: Update.
51869         * doc/functions/snprintf.texi: Update.
51870         * doc/functions/sprintf.texi: Update.
51871         * doc/functions/vfprintf.texi: Update.
51872         * doc/functions/vprintf.texi: Update.
51873         * doc/functions/vsnprintf.texi: Update.
51874         * doc/functions/vsprintf.texi: Update.
51875         Reported by Eric Blake.
51876
51877 2007-05-06  Bruno Haible  <bruno@clisp.org>
51878
51879         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51880         padding ourselves for the floating-point directives.
51881         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51884         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51885         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51893         * tests/test-snprintf-posix.h (test_function): Also check the width
51894         and some flags in the %f directive.
51895         * tests/test-sprintf-posix.h (test_function): Likewise.
51896         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51897         * tests/test-vasprintf-posix.c (test_function): Likewise.
51898         * doc/functions/fprintf.texi: Update.
51899         * doc/functions/printf.texi: Update.
51900         * doc/functions/snprintf.texi: Update.
51901         * doc/functions/sprintf.texi: Update.
51902         * doc/functions/vfprintf.texi: Update.
51903         * doc/functions/vprintf.texi: Update.
51904         * doc/functions/vsnprintf.texi: Update.
51905         * doc/functions/vsprintf.texi: Update.
51906
51907 2007-05-06  Bruno Haible  <bruno@clisp.org>
51908
51909         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51910         pass the ' flag character to sprintf or snprintf.
51911         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51914         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51915         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51923         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51924         flag.
51925         * tests/test-sprintf-posix.h (test_function): Likewise.
51926         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51927         * tests/test-vasprintf-posix.c (test_function): Likewise.
51928         * doc/functions/fprintf.texi: Update.
51929         * doc/functions/printf.texi: Update.
51930         * doc/functions/snprintf.texi: Update.
51931         * doc/functions/sprintf.texi: Update.
51932         * doc/functions/vfprintf.texi: Update.
51933         * doc/functions/vprintf.texi: Update.
51934         * doc/functions/vsnprintf.texi: Update.
51935         * doc/functions/vsprintf.texi: Update.
51936
51937 2007-05-01  Bruno Haible  <bruno@clisp.org>
51938
51939         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51940
51941 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51944         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51945
51946 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51947
51948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51949         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51951
51952 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51953
51954         * lib/argp-help.c (struct hol_entry): New member `ord'.
51955         (HOL_ENTRY_PTRCMP): Use ord for comparison
51956         (hol_sort): Initialize ord.
51957
51958 2007-05-01  Bruno Haible  <bruno@clisp.org>
51959
51960         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51961         Reported by Eric Blake.
51962         * doc/gnulib.texi (Function Substitutes): Update.
51963
51964 2007-05-01  Bruno Haible  <bruno@clisp.org>
51965
51966         * doc/functions.texi: Remove file, now redundant through
51967         doc/functions/*.texi.
51968
51969 2007-05-01  Bruno Haible  <bruno@clisp.org>
51970
51971         * modules/argp (Depends-on): Add sleep.
51972
51973 2007-05-01  Bruno Haible  <bruno@clisp.org>
51974
51975         * modules/sleep-tests: New file.
51976         * tests/test-sleep.c: New file.
51977
51978         * modules/sleep: New file.
51979         * lib/sleep.c: New file.
51980         * m4/sleep.m4: New file.
51981         * lib/unistd_.h (sleep): New declaration.
51982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51983         HAVE_SLEEP.
51984         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51985         * doc/functions/sleep.texi: Document the sleep module.
51986
51987 2007-05-01  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/sigprocmask.h: Remove file.
51990         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51991         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51992         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51993         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51994         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51995         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51996         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51997         HAVE_SIGSET_T as a shell variable.
51998         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51999         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52000         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52001         (Depends-on): Add signal. Remove verify.
52002         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52003         (Include): Mention <signal.h> instead of sigprocmask.h.
52004         * NEWS: Mention the change.
52005         * lib/fatal-signal.c: Don't include sigprocmask.h.
52006
52007 2007-05-01  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/signal: New file.
52010         * lib/signal_.h: New file.
52011         * m4/signal_h.m4: New file.
52012
52013 2007-05-01  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52016         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52017         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52018         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52019
52020 2007-05-01  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52023         configure time.
52024         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52025         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52026         * modules/sys_stat (Makefile.am): Substitute their values into
52027         sys/stat.h.
52028
52029 2007-05-01  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52032         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52033         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52034
52035 2007-05-01  Bruno Haible  <bruno@clisp.org>
52036
52037         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52038         'assert' module here.
52039
52040 2007-05-01  Bruno Haible  <bruno@clisp.org>
52041
52042         * doc/functions/*.texi: New files.
52043         * doc/functions/google-ranking.txt: New file.
52044         * doc/gnulib.texi (Function Substitutes): New chapter.
52045         (ctime, inet_ntoa): Remove sections.
52046         * doc/ctime.texi: Remove file.
52047         * doc/inet_ntoa.texi: Remove file.
52048         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52049         dependencies.
52050         (%.info): New rule, specifying a --reference-limit.
52051
52052 2007-05-01  Bruno Haible  <bruno@clisp.org>
52053
52054         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52055
52056 2007-05-01  Bruno Haible  <bruno@clisp.org>
52057
52058         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52059         the portability of 'mkdir' to mingw systems.
52060
52061 2007-05-01  Bruno Haible  <bruno@clisp.org>
52062
52063         * doc/headers/google-ranking.txt: New file.
52064
52065 2007-04-30  Eric Blake  <ebb9@byu.net>
52066
52067         Prefer fseeko to fseek.
52068         * modules/getpass (Depends-on): Add fseeko.
52069         * lib/getpass.c (getpass): Use fseeko, not fseek.
52070
52071 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52072
52073         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52074         assumes the sorting is stable, while most qsort implementations
52075         are not.  Use argument addresses to ensure they never compare as
52076         equal.
52077
52078         * tests/test-argp-2.sh (usage-indent test): Fix output
52079         (func_compare): Restore diff options
52080         * tests/test-argp.c: Restore #include "progname.h"
52081
52082 2007-04-29  Bruno Haible  <bruno@clisp.org>
52083
52084         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52086         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52087         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52088         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52089         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52090         (TESTS, check_PROGRAMS): Add test-snprintf.
52091         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52092         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52093         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52094         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52095         assertions that fail on HP-UX, OSF/1, or IRIX.
52096         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52097
52098 2007-04-29  Bruno Haible  <bruno@clisp.org>
52099
52100         * MODULES.html.sh (posix_functions): Remove 'contents'.
52101
52102 2007-04-29  Karl Berry  <karl@gnu.org>
52103
52104         * config/srclist.txt (gendocs_template_min): new entry.
52105
52106 2007-04-29  Bruno Haible  <bruno@clisp.org>
52107
52108         Work around fpurge bug on BSD systems.
52109         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52110         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52111         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52112         fpurge to rpl_fpurge if the system already has this function.
52113         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52114         the case where the system already has this function. Correct invariants
52115         on BSD systems.
52116         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52117         BSD systems.
52118
52119 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52120
52121         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52122         proposed by Sven Verdoolaege.
52123
52124         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52125         options.
52126         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52127         (usage and help tests): Update
52128
52129 2007-04-29  Bruno Haible  <bruno@clisp.org>
52130
52131         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52132         Print more information in case of failure. Disable a test on BeOS.
52133
52134 2007-04-29  Bruno Haible  <bruno@clisp.org>
52135
52136         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52137         This helps debugging on systems on which no gdb is available.
52138
52139 2007-04-29  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/freading.h: Improve comments.
52142         * lib/fwriting.h: Likewise.
52143         * tests/test-freading.c (main): Don't check freading immediately after
52144         repositioning. Needed for glibc.
52145
52146 2007-04-29  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/freading.c (freading): Trivial simplification.
52149
52150 2007-04-28  Bruno Haible  <bruno@clisp.org>
52151
52152         * tests/test-fwriting.c (main): Also test the interaction between
52153         fflush and fwriting.
52154         * modules/fwriting-tests (Depends-on): Add fflush.
52155
52156         * tests/test-freading.c (main): Also test the interaction between
52157         fflush and freading.
52158         * modules/freading-tests (Depends-on): Add fflush.
52159
52160 2007-04-28  Bruno Haible  <bruno@clisp.org>
52161
52162         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52163         fseeko and ftello.
52164         Suggested by Eric Blake.
52165
52166 2007-04-28  Jim Meyering  <jim@meyering.net>
52167
52168         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52169         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52170         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52171
52172 2007-04-27  Eric Blake  <ebb9@byu.net>
52173
52174         * doc/headers/assert.texi (assert.h): Document assert module use.
52175
52176 2007-04-27  Bruno Haible  <bruno@clisp.org>
52177
52178         * doc/headers/*.texi: New files.
52179         * doc/gnulib.texi (Header File Substitutes): New chapter.
52180         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52181         dependencies.
52182         (standards.info ,standards.html, standards.dvi): Update dependencies.
52183         (mostlyclean, clean): New targets.
52184
52185 2007-04-27  Bruno Haible  <bruno@clisp.org>
52186
52187         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52188         * modules/sysexits (Files, Makefile.am): Update.
52189
52190         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52191         * modules/sys_socket (Files, Makefile.am): Update.
52192
52193         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52194         * modules/sys_stat (Files, Makefile.am): Update.
52195
52196 2007-04-27  Eric Blake  <ebb9@byu.net>
52197
52198         * lib/freading.h: Improve comments.
52199         * lib/fwriting.h: Likewise.
52200         * lib/fflush.c: Likewise.
52201
52202         Fix closein for mingw.
52203         * modules/closein-tests: Add tests for closein.
52204         * tests/test-closein.c: New file.
52205         * tests/test-closein.sh: Likewise.
52206         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52207         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52208
52209 2007-04-27  Bruno Haible  <bruno@clisp.org>
52210
52211         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52212         version is < 6.
52213         * lib/math_.h [__DECC]: Likewise.
52214         * lib/stdio_.h [__DECC]: Likewise.
52215         * lib/stdlib_.h [__DECC]: Likewise.
52216         * lib/string_.h [__DECC]: Likewise.
52217         * lib/time_.h [__DECC]: Likewise.
52218         * lib/wchar_.h [__DECC]: Likewise.
52219         * lib/wctype_.h [__DECC]: Likewise.
52220
52221 2007-04-27  Bruno Haible  <bruno@clisp.org>
52222
52223         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52224
52225 2007-04-27  Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/fflush.c: Add comments.
52228         * modules/fpurge-tests (Depends-on): Add fflush.
52229         * modules/freadable-tests (Depends-on): Likewise.
52230         * modules/fwritable-tests (Depends-on): Likewise.
52231
52232 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52233
52234         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52235         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52236         Report by Bruno Haible <bruno@clisp.org>.
52237
52238 2007-04-26  Eric Blake  <ebb9@byu.net>
52239
52240         Fix fflush on mingw.
52241         * modules/fflush (Depends-on): Add freading.
52242         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52243         but unread data.
52244
52245 2007-04-26  Eric Blake  <ebb9@byu.net>
52246         and Bruno Haible  <bruno@clisp.org>
52247
52248         Implement freading and fwriting.
52249         * lib/freading.c: New file.
52250         * lib/freading.h: Likewise.
52251         * m4/freading.m4: Likewise.
52252         * modules/freading: Likewise.
52253         * modules/freading-tests: Likewise.
52254         * tests/test-freading.c: Likewise.
52255         * lib/fwriting.c: New file.
52256         * lib/fwriting.h: Likewise.
52257         * m4/fwriting.m4: Likewise.
52258         * modules/fwriting: Likewise.
52259         * modules/fwriting-tests: Likewise.
52260         * tests/test-fwriting.c: Likewise.
52261         * MODULES.html.sh (File stream based Input/Output): Mention them.
52262
52263 2007-04-26  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52266         'long' when we assume it.
52267         Suggested by Eric Blake.
52268
52269 2007-04-26  Bruno Haible  <bruno@clisp.org>
52270
52271         Ensure fseeko, ftello are declared on glibc systems.
52272         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52273         * modules/fseeko (configure.ac-early): Likewise.
52274         * modules/ftello (configure.ac-early): Likewise.
52275         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52276         AC_FUNC_FSEEKO for this.
52277         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52278         (gl_CHECK_FSEEKO): Remove macro.
52279
52280 2007-04-26  Bruno Haible  <bruno@clisp.org>
52281
52282         * tests/test-fflush.c (main): Also check the ftell result after
52283         fflush and fseek/fseeko.
52284         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52285         file descriptor position cache in the stream.
52286         * lib/fseeko.c (rpl_fseeko): Likewise.
52287
52288 2007-04-26  Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/fflush-tests (Depends-on): Add fseeko.
52291
52292 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52293             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52294
52295         * lib/argz_.h: ensure error_t definition is obtained in same
52296         mechanism system argz.h would have.
52297         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52298         argz facilities are known bad.  Err on the side of caution if
52299         cross-compiling.
52300
52301 2007-04-25  Eric Blake  <ebb9@byu.net>
52302
52303         * lib/fpurge.c (includes): Use stdlib.h for free.
52304         * tests/test-fflush.c (main): Also test fflush-fseeko.
52305
52306 2007-04-25  Bruno Haible  <bruno@clisp.org>
52307
52308         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52309         * lib/fseeko.c: New file.
52310         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52311         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52312         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52313         gl_FUNC_FSEEKO.
52314         (gl_FUNC_FSEEKO): Invoke it.
52315         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52316         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52317         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52318
52319 2007-04-25  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/fflush (Depends-on): Add ftello.
52322
52323 2007-04-25  Bruno Haible  <bruno@clisp.org>
52324
52325         * modules/ftello-tests: New file.
52326         * tests/test-ftello.c: New file.
52327
52328         * modules/ftello: New file.
52329         * m4/ftello.m4: New file.
52330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52331         HAVE_FTELLO.
52332         * lib/stdio_.h (ftello): New declaration.
52333         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52334         HAVE_FTELLO.
52335
52336 2007-04-25  Bruno Haible  <bruno@clisp.org>
52337
52338         * modules/fseeko-tests: New file.
52339         * tests/test-fseeko.c: New file.
52340
52341         * modules/fseeko: New file.
52342         * m4/fseeko.m4: New file.
52343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52344         HAVE_FSEEKO.
52345         * lib/stdio_.h (fseeko): New declaration.
52346         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52347         HAVE_FSEEKO.
52348
52349 2007-04-25  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52352
52353 2007-04-25  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52356         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52357         * tests/test-unistd.c: Likewise.
52358         * tests/test-fcntl.c: Likewise.
52359
52360 2007-04-23  Eric Blake  <ebb9@byu.net>
52361
52362         * lib/fflush.c: Fix missing include.
52363         Reported by Bruno Haible.
52364
52365 2007-04-23  Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52368         Reported by Eric Blake.
52369
52370 2007-04-23  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52373
52374 2007-04-23  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52377
52378 2007-04-23  Bruno Haible  <bruno@clisp.org>
52379
52380         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52381         Needed on HP-UX 11.
52382
52383 2007-04-16  Eric Blake  <ebb9@byu.net>
52384
52385         Make fflush rely on fpurge.
52386         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52387         open coding all variants.
52388         * modules/fflush (Depends-on): Add fpurge and unistd.
52389         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52390         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52391
52392         Fix --with-tests compilation on cygwin.
52393         * modules/argmatch-tests (Makefile.am): List gnulib library first
52394         in LDADD.
52395         * modules/argp-tests (Makefile.am): Likewise.
52396         * modules/array-list-tests (Makefile.am): Likewise.
52397         * modules/array-oset-tests (Makefile.am): Likewise.
52398         * modules/avltree-list-tests (Makefile.am): Likewise.
52399         * modules/avltree-oset-tests (Makefile.am): Likewise.
52400         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52401         * modules/carray-list-tests (Makefile.am): Likewise.
52402         * modules/dirname-tests (Makefile.am): Likewise.
52403         * modules/frexp-tests (Makefile.am): Likewise.
52404         * modules/isnanl-tests (Makefile.am): Likewise.
52405         * modules/linked-list-tests (Makefile.am): Likewise.
52406         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52407         * modules/lock-tests (Makefile.am): Likewise.
52408         * modules/rbtree-list-tests (Makefile.am): Likewise.
52409         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52410         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52411         * modules/tls-tests (Makefile.am): Likewise.
52412         * modules/tsearch-tests (Makefile.am): Likewise.
52413         * modules/xvasprintf-tests (Makefile.am): Likewise.
52414
52415         Fix fpurge for cygwin.
52416         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52417         value.
52418         * modules/fpurge-tests (Depends-on): Clean up trash.
52419
52420 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52421
52422         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52423
52424         * m4/autobuild.m4: Re-indent.
52425
52426 2007-04-13  Bruno Haible  <bruno@clisp.org>
52427
52428         * modules/fpurge-tests: New file.
52429         * tests/test-fpurge.c: New file.
52430
52431         * modules/fpurge: New file.
52432         * lib/fpurge.h: New file.
52433         * lib/fpurge.c: New file.
52434         * m4/fpurge.m4: New file.
52435
52436 2007-04-13  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/fbufmode-tests: New file.
52439         * tests/test-fbufmode.c: New file.
52440
52441         * modules/fbufmode: New file.
52442         * lib/fbufmode.h: New file.
52443         * lib/fbufmode.c: New file.
52444         * m4/fbufmode.m4: New file.
52445
52446 2007-04-13  Bruno Haible  <bruno@clisp.org>
52447
52448         * modules/fwritable-tests: New file.
52449         * tests/test-fwritable.c: New file.
52450
52451         * modules/fwritable: New file.
52452         * lib/fwritable.h: New file.
52453         * lib/fwritable.c: New file.
52454         * m4/fwritable.m4: New file.
52455
52456 2007-04-13  Bruno Haible  <bruno@clisp.org>
52457
52458         * modules/freadable-tests: New file.
52459         * tests/test-freadable.c: New file.
52460
52461         * modules/freadable: New file.
52462         * lib/freadable.h: New file.
52463         * lib/freadable.c: New file.
52464         * m4/freadable.m4: New file.
52465
52466 2007-04-13  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52469         MOSTLYCLEANFILES.
52470
52471 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52474         gzip bootstrap.conf to avoid dragging in i18n machinery.
52475         (gnulib_tool_option): Use it.
52476
52477 2007-04-13  Bruno Haible  <bruno@clisp.org>
52478
52479         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52480         %F directives.
52481         * tests/test-vasprintf-posix.c (test_function): Likewise.
52482         * tests/test-snprintf-posix.h (test_function): Likewise.
52483         * tests/test-sprintf-posix.h (test_function): Likewise.
52484         * tests/test-fprintf-posix.h (test_function): Likewise.
52485         * tests/test-printf-posix.h (test_function): Likewise.
52486         * tests/test-fprintf-posix.out: Likewise.
52487
52488 2007-04-13  Bruno Haible  <bruno@clisp.org>
52489
52490         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52491         * modules/tls-tests (configure.ac): Likewise.
52492         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52493
52494 2007-04-13  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/tls.c (glthread_tls_get): Fix return type.
52497         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52498
52499 2007-04-12  Eric Blake  <ebb9@byu.net>
52500
52501         * modules/gettime (Depends-on): Remove gettime.
52502         Reported by Dmitry V. Levin.
52503
52504 2007-04-12  Bruno Haible  <bruno@clisp.org>
52505
52506         * modules/fflush (Include): Mention <stdio.h>.
52507         * modules/strtoimax (Include): Mention <inttypes.h>.
52508         * modules/strtoumax (Include): Likewise.
52509
52510 2007-04-12  Eric Blake  <ebb9@byu.net>
52511
52512         * .cvsignore: New file.
52513         * .gitignore: Likewise.
52514
52515 2007-04-12  Bruno Haible  <bruno@clisp.org>
52516
52517         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52518         not before, since $(LDADD) often contains libgnu.a.
52519         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52520         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52521         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52522         Needed on Cygwin.
52523
52524 2007-04-12  Eric Blake  <ebb9@byu.net>
52525
52526         Work around glibc's failure to flush stdin on fclose.
52527         * lib/closein.c (close_stdin): Flush stdin before closing.
52528
52529         Work around glibc's failure to reset seekable stdin on exit.
52530         * modules/closein: New module.
52531         * lib/closein.c: New file.
52532         * lib/closein.h: Likewise.
52533         * m4/closein.m4: Likewise.
52534         * MODULES.html.sh (File stream based Input/Output): Document it.
52535
52536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52537
52538         * gnulib-tool: Rename generated 'autobuild' script to
52539         'do-autobuild' in --create-megatestdir output.
52540
52541         * doc/gnulib.texi (Build robot for gnulib): Fix.
52542
52543 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52544
52545         * modules/sysexits (Depends-on): Add absolute-header.
52546
52547 2007-04-12  Eric Blake  <ebb9@byu.net>
52548
52549         No need to preserve errno on success.
52550         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52551         Reported by Bruno Haible.
52552
52553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52554
52555         * MODULES.html.sh (Support for maintaining and releasing
52556         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52557
52558 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52559
52560         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52561
52562 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52563
52564         * modules/autobuild: New module.
52565
52566         * m4/autobuild.m4: New file.
52567
52568 2007-04-11  Bruno Haible  <bruno@clisp.org>
52569
52570         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52571         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52598         Reported by Eric Blake.
52599
52600 2007-04-11  Bruno Haible  <bruno@clisp.org>
52601
52602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52603
52604 2007-04-10  Bruno Haible  <bruno@clisp.org>
52605
52606         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52607         for NaN and Infinity. Needed on FreeBSD 6.1.
52608         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52609         regarding results for "%010a" of Infinity and NaN.
52610         * tests/test-vasprintf-posix.c (test_function): Likewise.
52611         * tests/test-snprintf-posix.h (test_function): Likewise.
52612         * tests/test-sprintf-posix.h (test_function): Likewise.
52613         * tests/test-fprintf-posix.h (test_function): Likewise.
52614         * tests/test-printf-posix.h (test_function): Likewise.
52615         * tests/test-fprintf-posix.out: Likewise.
52616
52617 2007-04-10  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/locale-tests: New file.
52620         * tests/test-locale.c: New file.
52621
52622         * modules/locale: New file.
52623         * lib/locale_.h: New file.
52624         * m4/locale_h.m4: New file.
52625
52626 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52627             Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52630         be determined, test for availability of the copysignf, copysign,
52631         copysignl functions.
52632         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52633         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52634         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52635
52636 2007-04-09  Eric Blake  <ebb9@byu.net>
52637
52638         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52639         * modules/stdio (Makefile.am): Support fflush.
52640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52641         * modules/fflush: New file.
52642         * lib/fflush.c: Likewise.
52643         * m4/fflush.m4: Likewise.
52644         * modules/fflush-tests: New test.
52645         * tests/test-fflush.c: Likewise.
52646         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52647
52648 2007-04-06  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52651         (VASNPRINTF): Use signbit for faster determination whether to print a
52652         minus sign.
52653         * modules/vasnprintf (Files): Remove lib/float+.h.
52654         * modules/fprintf-posix (Depends-on): Add signbit.
52655         * modules/snprintf-posix (Depends-on): Likewise.
52656         * modules/sprintf-posix (Depends-on): Likewise.
52657         * modules/vasnprintf-posix (Depends-on): Likewise.
52658         * modules/vasprintf-posix (Depends-on): Likewise.
52659         * modules/vfprintf-posix (Depends-on): Likewise.
52660         * modules/vsnprintf-posix (Depends-on): Likewise.
52661         * modules/vsprintf-posix (Depends-on): Likewise.
52662
52663 2007-04-06  Bruno Haible  <bruno@clisp.org>
52664
52665         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52666         * tests/test-frexpl.c (main): Likewise.
52667         * tests/test-ldexpl.c (main): Likewise.
52668         * modules/frexp-tests (Depends-on): Add signbit.
52669         * modules/frexpl-tests (Depdends-on): Likewise.
52670         * modules/ldexpl-tests (Depdends-on): Likewise.
52671
52672 2007-04-06  Bruno Haible  <bruno@clisp.org>
52673
52674         * modules/signbit-tests: New file.
52675         * tests/test-signbit.c: New file.
52676
52677         * modules/signbit: New file.
52678         * lib/signbitf.c: New file.
52679         * lib/signbitd.c: New file.
52680         * lib/signbitl.c: New file.
52681         * m4/signbit.m4: New file.
52682         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52683         (signbit): New macro.
52684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52685         REPLACE_SIGNBIT.
52686         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52687         REPLACE_FREXPL into math.h.
52688
52689 2007-04-06  Bruno Haible  <bruno@clisp.org>
52690
52691         * modules/isnanf-nolibm-tests: New file.
52692         * tests/test-isnanf.c: New file.
52693
52694         * modules/isnanf-nolibm: New file.
52695         * lib/isnanf.h: New file.
52696         * lib/isnanf.c: New file.
52697         * lib/isnan.c: Consider the USE_FLOAT macro.
52698         * m4/isnanf.m4: New file.
52699
52700 2007-04-06  Bruno Haible  <bruno@clisp.org>
52701
52702         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52703         (Link): New section.
52704
52705         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52706
52707 2007-04-06  Bruno Haible  <bruno@clisp.org>
52708
52709         Assume the 'long double' type.
52710         * m4/longdouble.m4: Remove file.
52711         * config/srclist.txt: Don't mention longdouble.m4.
52712         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52713         * lib/float+.h: Likewise.
52714         * lib/frexp.c: Likewise.
52715         * lib/printf-args.h: Likewise.
52716         * lib/printf-args.c: Likewise.
52717         * lib/printf-frexp.c: Likewise.
52718         * lib/printf-parse.c: Likewise.
52719         * lib/vasnprintf.c: Likewise.
52720         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52721         * m4/intl.m4: Likewise.
52722         * m4/isnanl.m4: Likewise.
52723         * m4/printf.m4: Likewise.
52724         * m4/printf-frexpl.m4: Likewise.
52725         * m4/vasnprintf.m4: Likewise.
52726         * modules/allocsa (Files): Remove m4/longdouble.m4.
52727         * modules/gettext (Files): Likewise.
52728         * modules/relocatable-prog-wrapper (Files): Likewise.
52729         * modules/vasnprintf (Files): Likewise.
52730         * modules/isnanl (Files): Likewise.
52731         (Include): Simplify.
52732         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52733         (Include): Simplify.
52734         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52735         (Include): Simplify.
52736         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52737         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52738         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52739         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52740         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52741         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52742         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52743         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52744         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52745         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52746         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52747         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52748         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52749         * tests/test-isnanl.c: Likewise.
52750         * tests/test-snprintf-posix.h: Likewise.
52751         * tests/test-sprintf-posix.h: Likewise.
52752         * tests/test-vasnprintf-posix.c: Likewise.
52753         * tests/test-vasnprintf-posix2.c: Likewise.
52754         * tests/test-vasprintf-posix.c: Likewise.
52755
52756 2007-04-06  Bruno Haible  <bruno@clisp.org>
52757
52758         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52759         * lib/math_.h [__DECC]: Include the overridden include file through
52760         #include_next, outside the double-inclusion guard.
52761         * lib/stdio_.h [__DECC]: Likewise.
52762         * lib/stdlib_.h [__DECC]: Likewise.
52763         * lib/string_.h [__DECC]: Likewise.
52764         * lib/time_.h [__DECC]: Likewise.
52765         * lib/wchar_.h [__DECC]: Likewise.
52766         * lib/wctype_.h [__DECC]: Likewise.
52767         * lib/inttypes_.h [__DECC]: Likewise.
52768         Reported by Albert Chin <china@thewrittenword.com> in
52769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52770
52771 2007-04-04  Eric Blake  <ebb9@byu.net>
52772
52773         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52774         1.5.x.
52775
52776 2007-04-04  Bruno Haible  <bruno@clisp.org>
52777
52778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52779         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52780
52781 2007-04-04  Bruno Haible  <bruno@clisp.org>
52782
52783         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52784         results for "%010a" of Infinity and NaN.
52785         * tests/test-vasprintf-posix.c (test_function): Likewise.
52786         * tests/test-snprintf-posix.h (test_function): Likewise.
52787         * tests/test-sprintf-posix.h (test_function): Likewise.
52788         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52789         * tests/test-printf-posix.h (test_function): Likewise.
52790         * tests/test-fprintf-posix.out: Update.
52791         Needed for FreeBSD 6.1.
52792
52793 2007-04-04  Bruno Haible  <bruno@clisp.org>
52794
52795         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52796         directly used by the gnulib modules nor by gnulib-tool.
52797
52798 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52799
52800         * DEPENDENCIES: Give overall description of version dependency
52801         desirability.  Use more-typical names for apps.
52802         Add shell, coreutils, diffutils, grep, tar, gzip.
52803
52804 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52805
52806         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52807
52808 2007-04-04  Karl Berry  <karl@gnu.org>
52809
52810         * MODULES.html.sh (func_module): missing '.
52811
52812 2007-04-03  Bruno Haible  <bruno@clisp.org>
52813
52814         * modules/argmatch-tests (Makefile.am): New variable
52815         test_argmatch_LDADD.
52816         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52817         * modules/array-list-tests (Makefile.am): New variable
52818         test_array_list_LDADD.
52819         * modules/array-oset-tests (Makefile.am): New variable
52820         test_array_oset_LDADD.
52821         * modules/avltree-list-tests (Makefile.am): New variable
52822         test_avltree_list_LDADD.
52823         * modules/avltree-oset-tests (Makefile.am): New variable
52824         test_avltree_oset_LDADD.
52825         * modules/avltreehash-list-tests (Makefile.am): New variable
52826         test_avltreehash_list_LDADD.
52827         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52828         test_canonicalize_lgpl_LDADD.
52829         * modules/carray-list-tests (Makefile.am): New variable
52830         test_carray_list_LDADD.
52831         * modules/dirname-tests (Makefile.am): New variable
52832         test_dirname_LDADD.
52833         * modules/linked-list-tests (Makefile.am): New variable
52834         test_linked_list_LDADD.
52835         * modules/linkedhash-list-tests (Makefile.am): New variable
52836         test_linkedhash_list_LDADD.
52837         * modules/rbtree-list-tests (Makefile.am): New variable
52838         test_rbtree_list_LDADD.
52839         * modules/rbtree-oset-tests (Makefile.am): New variable
52840         test_rbtree_oset_LDADD.
52841         * modules/rbtreehash-list-tests (Makefile.am): New variable
52842         test_rbtreehash_list_LDADD.
52843         * modules/xvasprintf-tests (Makefile.am): New variable
52844         test_xvasprintf_LDADD.
52845         Reported by Eric Blake.
52846
52847 2007-04-03  Eric Blake  <ebb9@byu.net>
52848
52849         * DEPENDENCIES: Weaken m4 requirements.
52850
52851 2007-04-03  Bruno Haible  <bruno@clisp.org>
52852
52853         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52854         * modules/isnanl-tests (configure.ac): Likewise.
52855
52856 2007-04-03  Ben Pfaff  <blp@gnu.org>
52857
52858         * modules/iconv_open: Add $(srcdir)/ to source directory
52859         references in Makefile fragments that call gperf, to fix VPATH
52860         builds.
52861
52862 2007-04-03  Bruno Haible  <bruno@clisp.org>
52863
52864         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52865         * lib/ldexpl.c: Undo last change.
52866
52867 2007-04-03  Bruno Haible  <bruno@clisp.org>
52868
52869         * modules/printf-frexpl (Depends-on): Undo last change.
52870         (Files): Add m4/ldexpl.m4.
52871
52872 2007-04-03  Bruno Haible  <bruno@clisp.org>
52873
52874         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52875         * modules/isnanl (Link): New section.
52876
52877         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52878         * modules/frexp (Link): New section.
52879
52880         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52881         * modules/frexpl (Link): New section.
52882
52883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52884         * modules/ldexpl (Link): New section.
52885
52886 2007-04-03  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/TEMPLATE-EXTENDED: New file.
52889         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52890
52891 2007-04-03  Bruno Haible  <bruno@clisp.org>
52892
52893         * DEPENDENCIES: New file.
52894         Suggested by Simon Josefsson.
52895
52896 2007-04-03  Bruno Haible  <bruno@clisp.org>
52897
52898         * doc/gnulib.texi: Escape @.
52899
52900 2007-04-03  James Youngman  <jay@gnu.org>
52901         and Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52904         birthtime on all systems that have birthtime, not just those which
52905         use st_birthtimensec rather than st_birthtim.  Putting zero in
52906         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52907         that the birth time is not available for files on an NFS mount.
52908
52909 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52910
52911         * modules/memxor: Move back from crypto/, suggested by Bruno.
52912         * modules/crypto/hmac-sha1: Fix memxor dependency.
52913
52914         * modules/crypto/gc: Moved from ../.
52915
52916 2007-04-02  Eric Blake  <ebb9@byu.net>
52917
52918         * lib/ldexpl.c (includes): Avoid libm.
52919
52920         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52921
52922 2007-04-02  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52925         on IRIX.
52926
52927 2007-04-02  Bruno Haible  <bruno@clisp.org>
52928
52929         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52930         x86 or x86_64 platforms running MacOS X.
52931         Reported by Ryan Schmidt <@ryandesign.com>.
52932
52933 2007-04-02  Bruno Haible  <bruno@clisp.org>
52934
52935         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52936         i386.
52937
52938 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52939
52940         * modules/crypto/arcfour: Moved from ../.
52941         * modules/crypto/arcfour-tests: Moved from ../.
52942         * modules/crypto/arctwo: Moved from ../.
52943         * modules/crypto/arctwo-tests: Moved from ../.
52944         * modules/crypto/des: Moved from ../.
52945         * modules/crypto/des-tests: Moved from ../.
52946         * modules/crypto/gc-arcfour: Moved from ../.
52947         * modules/crypto/gc-arcfour-tests: Moved from ../.
52948         * modules/crypto/gc-arctwo: Moved from ../.
52949         * modules/crypto/gc-arctwo-tests: Moved from ../.
52950         * modules/crypto/gc-des: Moved from ../.
52951         * modules/crypto/gc-des-tests: Moved from ../.
52952         * modules/crypto/gc-hmac-md5: Moved from ../.
52953         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52954         * modules/crypto/gc-hmac-sha1: Moved from ../.
52955         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52956         * modules/crypto/gc-md2: Moved from ../.
52957         * modules/crypto/gc-md2-tests: Moved from ../.
52958         * modules/crypto/gc-md4: Moved from ../.
52959         * modules/crypto/gc-md4-tests: Moved from ../.
52960         * modules/crypto/gc-md5: Moved from ../.
52961         * modules/crypto/gc-md5-tests: Moved from ../.
52962         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52963         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52964         * modules/crypto/gc-random: Moved from ../.
52965         * modules/crypto/gc-rijndael: Moved from ../.
52966         * modules/crypto/gc-rijndael-tests: Moved from ../.
52967         * modules/crypto/gc-sha1: Moved from ../.
52968         * modules/crypto/gc-sha1-tests: Moved from ../.
52969         * modules/crypto/gc-tests: Moved from ../.
52970         * modules/crypto/hmac-md5: Moved from ../.
52971         * modules/crypto/hmac-md5-tests: Moved from ../.
52972         * modules/crypto/hmac-sha1: Moved from ../.
52973         * modules/crypto/hmac-sha1-tests: Moved from ../.
52974         * modules/crypto/md2: Moved from ../.
52975         * modules/crypto/md2-tests: Moved from ../.
52976         * modules/crypto/md4: Moved from ../.
52977         * modules/crypto/md4-tests: Moved from ../.
52978         * modules/crypto/md5: Moved from ../.
52979         * modules/crypto/md5-tests: Moved from ../.
52980         * modules/crypto/memxor: Moved from ../.
52981         * modules/crypto/rijndael: Moved from ../.
52982         * modules/crypto/rijndael-tests: Moved from ../.
52983         * modules/crypto/sha1: Moved from ../.
52984
52985 2007-03-30  James Youngman  <jay@gnu.org>
52986
52987         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52988         rename() to change the ctime of a file (because ctime is unaffected
52989         by rename on jfs2 on AIX 5.1).
52990         (main): Start by doing cleanup, in case a previous run failed leaving
52991         test files behind.
52992
52993 2007-03-31  Bruno Haible  <bruno@clisp.org>
52994
52995         Support old proprietary implementations of iconv.
52996         * modules/iconv_open: New file.
52997         * lib/iconv_.h: New file.
52998         * m4/iconv_h.m4: New file.
52999         * lib/iconv_open.c: New file.
53000         * lib/iconv_open-aix.gperf: New file.
53001         * lib/iconv_open-hpux.gperf: New file.
53002         * lib/iconv_open-irix.gperf: New file.
53003         * lib/iconv_open-osf.gperf: New file.
53004         * m4/iconv_open.m4: New file.
53005         * modules/linebreak (Depends-on): Add iconv_open.
53006         * modules/striconv (Depends-on): Likewise.
53007         * modules/striconveh (Depends-on): Likewise.
53008         * modules/unicodeio (Depends-on): Likewise.
53009         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53010         (iconv_t)(-1).
53011         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53012         conversion if cd is (iconv_t)(-1).
53013         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53014         is not possible.
53015
53016 2007-03-31  Bruno Haible  <bruno@clisp.org>
53017
53018         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53019         work on Solaris either. Protect also second use of "autodetect_jp".
53020
53021 2007-03-31  Bruno Haible  <bruno@clisp.org>
53022
53023         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53024         the function is not present.
53025
53026 2007-03-31  Bruno Haible  <bruno@clisp.org>
53027
53028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53029         the function is not present.
53030
53031 2007-03-31  Bruno Haible  <bruno@clisp.org>
53032
53033         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53034         a bug in HP-UX iconv_open().
53035
53036 2007-03-31  Bruno Haible  <bruno@clisp.org>
53037
53038         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53039         (Mathematics <math.h>): New section, add fpieee.
53040         (Input/output <stdio.h>): Add fseterr.
53041         (Mathematics <math.h>): New section, add printf-frexp.
53042         (Container data structures): Add sublist.
53043         (Core language properties): Add fpucw, inline.
53044         (Functions for greatest-width integer types <inttypes.h>): Add
53045         imaxabs, imaxdiv, inttypes.
53046         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53047         isnanl-nolibm, ldexp.
53048         (Mathematics <math.h>): New section, add printf-frexpl.
53049         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53050         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53051         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53052         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53053         (Unicode string functions): Add unistr/u*-mbtoucr.
53054         (Java): Add javacomp-script, javaexec-script.
53055         (C#): Add csharpcomp-script, csharpexec-script.
53056         (Support for building libraries and executables): Add havelib,
53057         relocatable-*.
53058         (Support for maintaining and releasing projects): Renamed from
53059         'Support for maintaining and release projects'. Add announce-gen.
53060
53061 2007-03-31  Bruno Haible  <bruno@clisp.org>
53062
53063         * README: Talk primarily about git.
53064         (git and CVS): Renamed from CVS.
53065         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53066         gnulib is available through git.
53067         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53068
53069 2007-03-30  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53072         * lib/poll_.h: Likewise.
53073         * lib/stat_.h: Likewise.
53074         * lib/sys_time_.h: Likewise.
53075         * lib/sysexit_.h: Likewise.
53076         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53077         * lib/stdbool_.h: Likewise.
53078         * lib/byteswap_.h: Add double-inclusion guard.
53079
53080 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53081
53082         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53083
53084 2007-03-30  Karl Berry  <karl@gnu.org>
53085
53086         * config/srclist-update: double space after USA in the license
53087         substitution, since that's how it's usually (?) written.
53088
53089 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53090
53091         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53092         reported by Bruno Haible.
53093
53094 2007-03-29  Bruno Haible  <bruno@clisp.org>
53095
53096         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53097         a bug in AIX iconv().
53098
53099 2007-03-29  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/ldexpl-tests: New file.
53102         * tests/test-ldexpl.c: New file.
53103
53104 2007-03-29  Bruno Haible  <bruno@clisp.org>
53105
53106         * lib/ldexpl.c: Include fpucw.h.
53107         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53108         multiplication.
53109         * modules/ldexpl (Depends-on): Add fpucw.
53110
53111 2007-03-29  Bruno Haible  <bruno@clisp.org>
53112
53113         * modules/ldexpl: New file.
53114         * m4/ldexpl.m4: New file.
53115         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53116         set.
53117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53118         REPLACE_LDEXPL.
53119         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53120         REPLACE_LDEXPL.
53121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53122         gl_FUNC_LDEXPL_WORKS.
53123         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53124         * modules/mathl (Files): Remove lib/ldexpl.c.
53125         (Depends-on): Add ldexpl.
53126
53127 2007-03-29  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53130
53131 2007-03-29  Bruno Haible  <bruno@clisp.org>
53132
53133         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53134         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53135         and possibly also HP-UX.
53136         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53137         work on AIX, IRIX, HP-UX, OSF/1.
53138         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53139         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53140         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53141         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53142         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53143         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53144
53145 2007-03-29  Bruno Haible  <bruno@clisp.org>
53146
53147         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53148
53149 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53152         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53153
53154 2007-03-29  Eric Blake  <ebb9@byu.net>
53155
53156         * lib/acl-internal.h: Remove redundant include.
53157         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53158         Cygwin when a file is locked.
53159
53160 2007-03-29  Bruno Haible  <bruno@clisp.org>
53161
53162         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53163         file.
53164         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53165
53166 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53169         try to remove a parent directory if the child couldn't be removed
53170         (except for the first rmdir, which could fail because the child
53171         doesn't exist).  Problem reported by Jeff Blaine in
53172         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53173
53174 2007-03-28  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/striconveh.c (utf8conv_carefully): New function.
53177         (mem_cd_iconveh_internal): Invoke it.
53178
53179 2007-03-28  Bruno Haible  <bruno@clisp.org>
53180
53181         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53182         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53183         input.
53184         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53185         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53186         unistr/u8-uctomb.
53187
53188 2007-03-28  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/unistr/u8-mbtoucr: New file.
53191         * lib/unistr/u8-mbtoucr.c: New file.
53192         * modules/unistr/u16-mbtoucr: New file.
53193         * lib/unistr/u16-mbtoucr.c: New file.
53194         * modules/unistr/u16-mbtoucr: New file.
53195         * lib/unistr/u16-mbtoucr.c: New file.
53196         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53197
53198 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53199             Bruno Haible  <bruno@clisp.org>
53200
53201         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53202         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53203         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53204
53205         * m4/stdio_h.m4: Add stubs for vasprintf too.
53206
53207         * modules/stdio: Support vasprintf in sed command.
53208
53209         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53210         vasprintf.h.  Add stdio module indicator.
53211
53212         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53213         vasprintf.h.
53214
53215         * lib/vasprintf.h: File removed.
53216
53217         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53218         * lib/vasprintf.c: Ditto.
53219         * lib/xvasprintf.c: Ditto.
53220         * tests/test-vasprintf-posix.c: Ditto.
53221         * tests/test-vasprintf.c: Ditto.
53222
53223 2007-03-27  Bruno Haible  <bruno@clisp.org>
53224
53225         Make vasnprintf multithread-safe.
53226         * lib/vasnprintf.c (decimal_point_char): New function.
53227         (VASNPRINTF): Use it.
53228         Suggested by Simon Josefsson.
53229
53230 2007-03-27  Eric Blake  <ebb9@byu.net>
53231
53232         Support sub-second birthtime on cygwin.
53233         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53234         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53235         (get_stat_birthtime): Also work with st_birthtim.
53236
53237 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53240         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53241         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53242         (get_stat_birthtime_ns): Simplify compile-time tests.
53243         (get_stat_birthtime): Change the API to look like
53244         get_stat_mtime etc., except return a negative tv_nsec on error.
53245         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53246         Don't check for "spare" fields.
53247         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53248         or for struct stat.st_birthtime, as these tests aren't used.
53249         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53250
53251 2007-03-27  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/stat-time.h: Include <sys/stat.h>.
53254
53255 2007-03-27  James Youngman  <jay@gnu.org>
53256
53257         * lib/stat-time.h (get_stat_birthtime): New function for
53258           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53259         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53260           and its variants.
53261         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53262         * modules/stat-time-test: New file.
53263         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53264
53265 2007-03-26  Bruno Haible  <bruno@clisp.org>
53266
53267         Better support of signalling NaNs.
53268         * lib/atanl.c: Include isnanl.h.
53269         (atanl): Perform test for NaN at the beginning of the function and
53270         through a call to isnanl.
53271         * lib/cosl.c: Include isnanl.h.
53272         (cosl): Perform test for NaN at the beginning of the function and
53273         through a call to isnanl.
53274         * lib/ldexpl.c: Include isnanl.h.
53275         (ldexpl): Perform test for NaN through a call to isnanl.
53276         * lib/logl.c: Include isnanl.h.
53277         (logl): Perform test for NaN at the beginning of the function and
53278         through a call to isnanl.
53279         * lib/sinl.c: Include isnanl.h.
53280         (sinl): Perform test for NaN at the beginning of the function and
53281         through a call to isnanl.
53282         * lib/sqrtl.c: Include isnanl.h.
53283         (sqrtl): Perform test for NaN at the beginning of the function and
53284         through a call to isnanl.
53285         * lib/tanl.c: Include isnanl.h.
53286         (tanl): Perform test for NaN at the beginning of the function and
53287         through a call to isnanl.
53288         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53289         * modules/mathl (Depends-on): Add isnanl.
53290
53291 2007-03-26  Eric Blake  <ebb9@byu.net>
53292
53293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53294         regression in logic sense of previous patch.
53295
53296 2007-03-26  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53299         unportable shell command "if ! ...".
53300         Reported by Ralf Wildenhues.
53301
53302 2007-03-25  Bruno Haible  <bruno@clisp.org>
53303
53304         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53305         <sysexits.h> file, and only add EX_CONFIG.
53306         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53307         absolute file name and whether it is sufficient. Substitute also
53308         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53309         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53310         ABSOLUTE_SYSEXITS_H into sysexits.h.
53311
53312 2007-03-25  Bruno Haible  <bruno@clisp.org>
53313
53314         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53315         hints is NULL.
53316
53317 2007-03-25  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53320         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53321
53322 2007-03-25  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/vasnprintf.c: Include langinfo.h.
53325         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53326         multithread-safe.
53327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53336         Reported by Simon Josefsson.
53337
53338 2007-03-25  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53341         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53342         * modules/vasnprintf (Depends-on): Add stdint.
53343
53344 2007-03-25  Bruno Haible  <bruno@clisp.org>
53345
53346         * modules/fpieee: New file.
53347         * m4/fpieee.m4: New file.
53348         * modules/isnan-nolibm (Depends-on): Add fpieee.
53349         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53350         * modules/isnanl (Depends-on): Add fpieee.
53351
53352 2007-03-25  Bruno Haible  <bruno@clisp.org>
53353
53354         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53355
53356 2007-03-25  Bruno Haible  <bruno@clisp.org>
53357
53358         Avoid test failures on IRIX 6.5.
53359         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53360         (main): Use it.
53361         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53362         macros.
53363         (main): Use them.
53364
53365 2007-03-25  Bruno Haible  <bruno@clisp.org>
53366
53367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53368         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53369         exists but doesn't work.
53370         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53371         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53373         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53374         math.h.
53375
53376 2007-03-25  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53379         returns inf. Needed on IRIX 6.5.
53380
53381 2007-03-25  Bruno Haible  <bruno@clisp.org>
53382
53383         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53384         (main): Use isnanl instead of x != x idiom.
53385         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53386
53387         * tests/test-frexp.c: Include isnan.h.
53388         (main): Use isnan instead of x != x idiom.
53389         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53390
53391 2007-03-25  Bruno Haible  <bruno@clisp.org>
53392
53393         * tests/test-frexp.c (NaN): New function/macro.
53394         (main): Use it instead of 0.0 / 0.0.
53395         * tests/test-isnan.c (NaN): New function/macro.
53396         (main): Use it instead of 0.0 / 0.0.
53397         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53398         (test_function): Use it instead of 0.0 / 0.0.
53399         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53400         (test_function): Use it instead of 0.0 / 0.0.
53401         * tests/test-snprintf-posix.h (NaN): New function/macro.
53402         (test_function): Use it instead of 0.0 / 0.0.
53403         * tests/test-sprintf-posix.h (NaN): New function/macro.
53404         (test_function): Use it instead of 0.0 / 0.0.
53405         * tests/test-fprintf-posix.h (NaN): New function/macro.
53406         (test_function): Use it instead of 0.0 / 0.0.
53407         * tests/test-printf-posix.h (NaN): New function/macro.
53408         (test_function): Use it instead of 0.0 / 0.0.
53409
53410         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53411
53412 2007-03-25  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53415
53416 2007-03-25  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/regexec.c (merge_state_with_log): Make static.
53419
53420 2007-03-25  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/trigl.c (kernel_rem_pio2): Make static.
53423
53424 2007-03-25  Bruno Haible  <bruno@clisp.org>
53425
53426         * lib/sincosl.c (sincosl_table): Make static.
53427
53428 2007-03-25  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53431         if the compiler does not support C99.
53432
53433 2007-03-25  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/time (Makefile.am): Ensure all rule action lines start with a
53436         tab.
53437
53438 2007-03-24  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/tsearch-tests: New file.
53441         * tests/test-tsearch.sh: New file.
53442         * tests/test-tsearch.c: New file, mostly copied from glibc.
53443
53444         * modules/search-tests: New file.
53445         * tests/test-search.c: New file.
53446
53447         * modules/search: New file.
53448         * lib/search_.h: New file, incorporating lib/tsearch.h.
53449         * m4/search_h.m4: New file.
53450         * lib/tsearch.h: Remove file.
53451         * lib/tsearch.c: Include search.h instead of tsearch.h.
53452         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53453         HAVE_TSEARCH.
53454         * modules/tsearch (Files): Remove lib/tsearch.h.
53455         (Depends-on): Add search.
53456         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53457         (Include): Change tsearch.h into search.h.
53458
53459 2007-03-24  Bruno Haible  <bruno@clisp.org>
53460
53461         * modules/fpucw: New file.
53462         * lib/fpucw.h: New file.
53463         * lib/frexp.c: Include fpucw.h.
53464         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53465         (FUNC): Use them.
53466         * lib/printf-frexp.c: Include fpucw.h.
53467         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53468         (FUNC): Use them.
53469         * lib/vasnprintf.c: Include fpucw.h.
53470         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53471         'long double' calculations.
53472         * tests/test-frexpl.c: Include fpucw.h.
53473         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53474         * tests/test-printf-frexpl.c: Include fpucw.h.
53475         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53476         * modules/frexpl (Depends-on): Add fpucw.
53477         * modules/printf-frexpl (Depends-on): Likewise.
53478         * modules/fprintf-posix (Depends-on): Likewise.
53479         * modules/snprintf-posix (Depends-on): Likewise.
53480         * modules/sprintf-posix (Depends-on): Likewise.
53481         * modules/vasnprintf-posix (Depends-on): Likewise.
53482         * modules/vasprintf-posix (Depends-on): Likewise.
53483         * modules/vfprintf-posix (Depends-on): Likewise.
53484         * modules/vsnprintf-posix (Depends-on): Likewise.
53485         * modules/vsprintf-posix (Depends-on): Likewise.
53486         * modules/frexpl-tests (Depends-on): Likewise.
53487         * modules/printf-frexpl-tests (Depends-on): Likewise.
53488
53489 2007-03-24  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/float+.h: New file.
53492         * lib/isnan.c: Include float+.h.
53493         (SIZE): New macro.
53494         (FUNC): Compare only SIZE bytes of the value.
53495         * lib/vasnprintf.c: Include float+.h.
53496         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53497         SIZEOF_LDBL or SIZEOF_DBL bytes.
53498         * modules/isnan-nolibm (Files): Add lib/float+.h.
53499         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53500         * modules/isnanl (Files): Add lib/float+.h.
53501         * modules/vasnprintf (Files): Add lib/float+.h.
53502
53503 2007-03-24  Bruno Haible  <bruno@clisp.org>
53504
53505         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53506         include isnanl-nolibm.h.
53507
53508 2007-03-24  Bruno Haible  <bruno@clisp.org>
53509
53510         * tests/test-read-file.c (main): Don't produce spurious output for
53511         expected situations. Make the test fail if it encountered unexpected
53512         results.
53513
53514 2007-03-24  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53517         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53518
53519 2007-03-24  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53522
53523 2007-03-24  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53526         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53527
53528         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53529         * modules/utf8-ucs4: Turn into a symbolic link to module
53530         unistr/u8-mbtouc.
53531
53532         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53533         utf8-ucs4-unsafe.
53534         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53535         unistr/u8-mbtouc-unsafe.
53536
53537         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53538         * modules/utf16-ucs4: Turn into a symbolic link to module
53539         unistr/u16-mbtouc.
53540
53541         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53542         utf16-ucs4-unsafe.
53543         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53544         unistr/u16-mbtouc-unsafe.
53545
53546         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53547         * modules/ucs4-utf8: Turn into a symbolic link to module
53548         unistr/u8-ubtomb.
53549
53550         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53551         * modules/ucs4-utf16: Turn into a symbolic link to module
53552         unistr/u16-ubtomb.
53553
53554 2007-03-24  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53557         Enable the function only if HAVE_INLINE.
53558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53559         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53560         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53561         Enable the function only if HAVE_INLINE.
53562         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53563         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53564         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53565         Enable the function only if HAVE_INLINE.
53566         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53567         Enable the function only if HAVE_INLINE.
53568         * modules/utf8-ucs4: Update.
53569         * modules/utf8-ucs4-unsafe: Update.
53570         * modules/utf16-ucs4: Update.
53571         * modules/utf16-ucs4-unsafe: Update.
53572         * modules/ucs4-utf8: Update.
53573         * modules/ucs4-utf16: Update.
53574
53575 2007-03-24  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/utf8-ucs4.h: Remove file.
53578         * lib/utf8-ucs4-unsafe.h: Remove file.
53579         * lib/utf16-ucs4.h: Remove file.
53580         * lib/utf16-ucs4-unsafe.h: Remove file.
53581         * lib/ucs4-utf8.h: Remove file.
53582         * lib/ucs4-utf16.h: Remove file.
53583         * lib/unistr.h: Include their previous contents.
53584         * m4/utf-ucs4.m4: Remove file.
53585         * m4/ucs4-utf.m4: Remove file.
53586         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53587         (Depends-on): Add unistr/base.
53588         (configure.ac): Remove gl_UTF_UCS4.
53589         (Makefile.am): Update.
53590         (Include): Change to unistr.h.
53591         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53592         (Depends-on): Add unistr/base.
53593         (configure.ac): Remove gl_UTF_UCS4.
53594         (Makefile.am): Update.
53595         (Include): Change to unistr.h.
53596         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53597         (Depends-on): Add unistr/base.
53598         (configure.ac): Remove gl_UTF_UCS4.
53599         (Makefile.am): Update.
53600         (Include): Change to unistr.h.
53601         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53602         (Depends-on): Add unistr/base.
53603         (configure.ac): Remove gl_UTF_UCS4.
53604         (Makefile.am): Update.
53605         (Include): Change to unistr.h.
53606         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53607         (Depends-on): Add unistr/base.
53608         (configure.ac): Remove gl_UCS4_UTF.
53609         (Makefile.am): Update.
53610         (Include): Change to unistr.h.
53611         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53612         (Depends-on): Add unistr/base.
53613         (configure.ac): Remove gl_UCS4_UTF.
53614         (Makefile.am): Update.
53615         (Include): Change to unistr.h.
53616         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53617         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53618         utf8-ucs4-unsafe.h.
53619         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53620         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53621         utf16-ucs4-unsafe.h.
53622         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53623         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53624         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53625         * lib/unistr/u8-strchr.c: Likewise.
53626         * lib/unistr/u8-strrchr.c: Likewise.
53627         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53628         * lib/unistr/u16-strchr.c: Likewise.
53629         * lib/unistr/u16-strrchr.c: Likewise.
53630         * lib/striconveh.c: Update.
53631         * lib/linebreak.c: Update.
53632
53633 2007-03-24  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53636         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53637
53638 2007-03-22  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53641
53642 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * MODULES.html.sh (File system functions): New module write-any-file.
53645         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53646         * m4/write-any-file.m4: New files.
53647
53648 2007-03-23  Eric Blake  <ebb9@byu.net>
53649
53650         * gnulib-tool: Rearrange space-tab sequences, since some editors
53651         like to eat them.
53652
53653 2007-03-23  Eric Blake  <ebb9@byu.net>
53654
53655         * lib/version-etc.c (version_etc_va): Update license wording to
53656         be more concise.  Recommended by Richard Stallman.
53657
53658 2007-03-22  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/poll.c (MSG_PEEK): New fallback definition.
53661
53662 2007-03-22  Bruno Haible  <bruno@clisp.org>
53663
53664         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53665         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53666         (main): Update.
53667         Fixes a compilation error on BeOS.
53668
53669 2007-03-22  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/frexpl-tests: New file.
53672         * tests/test-frexpl.c: New file.
53673
53674         * modules/frexpl: New file.
53675         * m4/frexpl.m4: New file.
53676         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53677         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53679         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53680         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53681         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53682
53683 2007-03-22  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/frexpl.c: Share code with lib/frexp.c.
53686         * modules/mathl (Files): Add lib/frexp.c.
53687         (Depends-on): Add isnanl-nolibm.
53688
53689 2007-03-22  Bruno Haible  <bruno@clisp.org>
53690
53691         * modules/printf-frexp (Files): Add m4/frexp.m4.
53692         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53693         only if the found frexp function actually works.
53694
53695 2007-03-22  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/frexp.c: Remove older implementation that uses divisions.
53698
53699 2007-03-21  Bruno Haible  <bruno@clisp.org>
53700
53701         * modules/frexp-tests: New file.
53702         * tests/test-frexp.c: New file.
53703
53704         * modules/frexp: New file.
53705         * lib/frexp.c: New file.
53706         * m4/frexp.m4: New file.
53707         * lib/math_.h (frexp): New declaration.
53708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53709         REPLACE_FREXP.
53710         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53711
53712 2007-03-21  Bruno Haible  <bruno@clisp.org>
53713
53714         * modules/isnanl-tests: New file.
53715         * tests/test-isnanl.c: New file.
53716
53717         * modules/isnanl: New file.
53718         * lib/isnanl.h: New file.
53719         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53720         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53721         gl_FUNC_ISNANL_WORKS.
53722         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53723         New macros.
53724
53725 2007-03-21  Bruno Haible  <bruno@clisp.org>
53726
53727         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53728         lib/isnanl.h.
53729         (Include): Update.
53730         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53731         * lib/vasnprintf.c: Update.
53732         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53733         tests/test-isnanl.h, remove tests/test-isnanl.c.
53734         (Makefile.am): Update.
53735         * tests/test-isnanl-nolibm.c: New file.
53736         * tests/test-isnanl.h: New file.
53737         * tests/test-isnanl.c: Remove file.
53738
53739 2007-03-21  Jim Meyering  <jim@meyering.net>
53740
53741         When trying to open ".", treat ESTALE like EACCES.
53742         * lib/savewd.c (savewd_save): Resort to forking not just upon
53743         failure with EACCES, but also when errno is ESTALE.
53744
53745 2007-03-20  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53748         Needed on AIX 5.1. Reported by Matthew Woehlke.
53749
53750 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53751
53752         Suggestions by Bruno Haible:
53753         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53754         our own.
53755         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53756         * modules/acl (Depends-on): Add gettext.
53757
53758 2007-03-19  Bruno Haible  <bruno@clisp.org>
53759
53760         * modules/iconvme: Remove file.
53761         * lib/iconvme.h: Remove file.
53762         * lib/iconvme.c: Remove file.
53763         * m4/iconvme.m4: Remove file.
53764
53765 2007-03-19  Bruno Haible  <bruno@clisp.org>
53766
53767         * doc/relocatable-maint.texi: Break long shell script line.
53768         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53769
53770 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53773         handle file_has_acl.
53774         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53775         * lib/acl.c: Move header inclusions and related macro defns into
53776         lib/acl-internal.h.
53777         (S_ISLNK): Remove defn, since that's now done for us.
53778         (file_has_acl): Move to lib/file-has-acl.c.
53779         Call acl_trivial if available.  This is the crucial part of the fix.
53780         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53781         shared within the library.  Rewrite a bit, partly to make it compatible
53782         with the GNU coding style.
53783         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53784         Remove unnecessary double-quotes.
53785         Don't test for acl_to_text; the build will catch that.
53786         Replace acl_entries if it doesn't exist and it is needed.
53787         Check for -lsec and acl_trivial (as used on Solaris 10).
53788         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53789         lib/file-has-acl.c.
53790         (Depends-on): Add sys_stat, for S_ISLNK.
53791
53792 2007-03-19  Ben Pfaff  <blp@gnu.org>
53793
53794         * doc/gnulib.texi: Fix typos.
53795         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53796
53797 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53798
53799         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53800         If size is zero here, buf must be zero.
53801
53802 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53803
53804         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53805         <bruno@clisp.org>.
53806
53807 2007-03-18  Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53810         Suggested by Eric Blake.
53811
53812 2007-03-18  Ben Pfaff  <blp@gnu.org>
53813
53814         * doc/relocatable.texi: Recommend using as prefix a directory
53815         that does not exist and will never be created.  Based on
53816         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53817         and others.
53818
53819 2007-03-17  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/fchownat.c: Include lchown.h.
53822
53823 2007-03-17  Bruno Haible  <bruno@clisp.org>
53824
53825         Fix endless loop when the given allocated size was > INT_MAX.
53826         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53827         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53828         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53829         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53830         * lib/sprintf.c (sprintf): Likewise.
53831
53832 2007-03-17  Bruno Haible  <bruno@clisp.org>
53833
53834         * tests/test-argp-2.sh (func_compare): Output a context diff.
53835
53836 2007-03-17  Bruno Haible  <bruno@clisp.org>
53837
53838         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53839         locale's decimal-point character.
53840
53841 2007-03-17  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53844         before comparing it. Needed because on some platforms (e.g. x86) a
53845         'long double' occupies less bytes than sizeof (long double).
53846
53847 2007-03-17  Bruno Haible  <bruno@clisp.org>
53848
53849         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53850         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53851         * tests/test-getaddrinfo.c (simple): Likewise.
53852         * tests/test-read-file.c (main): Likewise.
53853
53854 2007-03-17  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53857
53858 2007-03-17  Bruno Haible  <bruno@clisp.org>
53859
53860         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53861         unused variable.
53862
53863 2007-03-17  Bruno Haible  <bruno@clisp.org>
53864
53865         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53866         * tests/test-c-strncasecmp.c: Likewise.
53867
53868 2007-03-17  Bruno Haible  <bruno@clisp.org>
53869
53870         * modules/stdlib (Depends-on): Add unistd.
53871         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53872         Needed for MacOS X 10.3.
53873
53874 2007-03-17  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53877
53878 2007-03-17  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53881
53882 2007-03-17  Bruno Haible  <bruno@clisp.org>
53883
53884         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53885         to reflect files copied from gnulib (with or without modifications).
53886         Suggested by Jim Meyering.
53887
53888 2007-03-17  Eric Blake  <ebb9@byu.net>
53889
53890         * NEWS: Document stdlib change from 2007-02-18.
53891
53892 2007-03-17  Jim Meyering  <jim@meyering.net>
53893
53894         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53895         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53896         someone uses a name containing shell meta-characters.
53897         Reported by Alfred M. Szmidt.
53898
53899         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53900
53901 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53902
53903         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53904         and copy gettext configuration files only if configure.ac contains
53905         a use of AM_GNU_GETTEXT_VERSION.
53906
53907 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53908
53909         * build-aux/bootstrap (gnulib_name): New variable.
53910         (gnulib_tool_options): Use it.
53911
53912 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53913
53914         * tests/test-des.c: Use new namespace.
53915
53916 2007-03-15  Bruno Haible  <bruno@clisp.org>
53917
53918         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53919         Reported by James Youngman <jay@gnu.org>.
53920
53921 2007-03-15  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53924         declared prototype. Needed with cc on OSF/1 5.1.
53925
53926 2007-03-15  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53929         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53930         (struct gl_list_implementation): Add dispose_fn argument to the
53931         'create_empty', 'create' methods.
53932         (struct gl_list_impl_base): Add field 'dispose_fn'.
53933         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53934         argument.
53935         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53936         dispose_fn argument.
53937         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53938         dispose_fn on the dropped values.
53939         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53940         dispose_fn argument.
53941         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53942         dropped values.
53943         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53944         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53945         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53946         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53947         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53948         argument.
53949         (gl_tree_list_free): Call dispose_fn on the dropped values.
53950         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53951         the dropped values.
53952         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53953         Add dispose_fn argument.
53954         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53955         Call dispose_fn on the dropped values.
53956         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53957         Add dispose_fn argument.
53958         (gl_sublist_create): Initialize the 'dispose_fn' field.
53959         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53960         * tests/test-array_list.c (main): Update.
53961         * tests/test-carray_list.c (main): Update.
53962         * tests/test-avltree_list.c (main): Update.
53963         * tests/test-rbtree_list.c (main): Update.
53964         * tests/test-avltreehash_list.c (main): Update.
53965         * tests/test-rbtreehash_list.c (main): Update.
53966         * tests/test-linked_list.c (main): Update.
53967         * tests/test-linkedhash_list.c (main): Update.
53968         * tests/test-array_oset.c (main): Update.
53969
53970 2007-03-15  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53973         (gl_oset_create_empty): Add dispose_fn argument.
53974         (struct gl_oset_implementation): Add dispose_fn argument to
53975         'create_empty' method.
53976         (struct gl_oset_impl_base): Add dispose_fn field.
53977         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53978         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53979         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53980         values.
53981         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53982         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53983         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53984         dropped value.
53985         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53986         dropped value.
53987         * tests/test-array_oset.c (main): Update.
53988         * tests/test-avltree_oset.c (main): Update.
53989         * tests/test-rbtree_oset.c (main): Update.
53990         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53991
53992 2007-03-13  Bruno Haible  <bruno@clisp.org>
53993
53994         * tests/test-stdbool.c (i): Update after last patch.
53995
53996 2007-03-12  Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53999         the iswprint macro. Needed on Solaris 2.5.1.
54000
54001 2007-03-12  Bruno Haible  <bruno@clisp.org>
54002
54003         * tests/test-printf-frexp.c (main): Declare x as volatile.
54004
54005 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54006
54007         * doc/gnulib.texi (Build robot for gnulib): New section.
54008
54009 2007-03-12  Jim Meyering  <jim@meyering.net>
54010
54011         * build-aux/bootstrap: New file.
54012         * build-aux/bootstrap.conf: New file, from coreutils.
54013
54014 2007-03-11  Bruno Haible  <bruno@clisp.org>
54015
54016         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54017
54018 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54019
54020         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54021         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54022         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54023
54024 2007-03-11  Bruno Haible  <bruno@clisp.org>
54025
54026         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54027         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54028
54029 2007-03-11  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54032         formula. Needed for SunPRO C 5.0.
54033
54034 2007-03-11  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/long-options (Depends-on): Add getopt.
54037
54038 2007-03-11  Bruno Haible  <bruno@clisp.org>
54039
54040         * modules/modechange (Depends-on): Add stdbool.
54041
54042 2007-03-11  Bruno Haible  <bruno@clisp.org>
54043
54044         * modules/i-ring (Depends-on): Add stdbool.
54045
54046 2007-03-11  Bruno Haible  <bruno@clisp.org>
54047
54048         * modules/gc-des (Depends-on): Add stdbool.
54049
54050 2007-03-11  Bruno Haible  <bruno@clisp.org>
54051
54052         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54053
54054 2007-03-11  Bruno Haible  <bruno@clisp.org>
54055
54056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54057
54058 2007-03-11  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54061
54062 2007-03-11  Bruno Haible  <bruno@clisp.org>
54063
54064         * lib/vasnprintf.c (sprintf): Undefine.
54065
54066 2007-03-11  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54069         initializers in SunPRO C and Compaq C compilers.
54070
54071 2007-03-11  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54074         decrementing code ANSI C compliant.
54075
54076 2007-03-11  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54079         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54080
54081 2007-03-11  Bruno Haible  <bruno@clisp.org>
54082
54083         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54084         <stdbool.h> substitute doesn't pass.
54085
54086 2007-03-11  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54089
54090 2007-03-11  Bruno Haible  <bruno@clisp.org>
54091
54092         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54093         script, for submission to autobuild.josefsson.org.
54094
54095 2007-03-10  Bruno Haible  <bruno@clisp.org>
54096
54097         * modules/canonicalize-lgpl-tests: New file.
54098         * tests/test-canonicalize-lgpl.sh: New file.
54099         * tests/test-canonicalize-lgpl.c: New file.
54100
54101         * modules/c-strcase-tests: New file.
54102         * tests/test-c-strcase.sh: New file.
54103         * tests/test-c-strcasecmp.c: New file.
54104         * tests/test-c-strncasecmp.c: New file.
54105
54106         * modules/atexit-tests: New file.
54107         * tests/test-atexit.sh: New file.
54108         * tests/test-atexit.c: New file.
54109
54110 2007-03-10  Bruno Haible  <bruno@clisp.org>
54111
54112         * tests/test-binary-io.sh: Use temporary filenames that are not so
54113         likely to clash with those of other tests (in a parallel make).
54114         * tests/test-binary-io.c: Likewise.
54115
54116 2007-03-10  Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54119         fallback; use #error instead.
54120         Suggested by Simon Josefsson.
54121
54122 2007-03-10  Bruno Haible  <bruno@clisp.org>
54123
54124         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54125         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54126         first and the last.
54127
54128 2007-03-10  Bruno Haible  <bruno@clisp.org>
54129
54130         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54131
54132 2007-03-10  Bruno Haible  <bruno@clisp.org>
54133
54134         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54135         "make distcheck".
54136         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54137         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54138         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54139
54140 2007-03-10  Bruno Haible  <bruno@clisp.org>
54141
54142         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54143         variable.
54144         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54145         variable.
54146
54147 2007-03-09  Eric Blake  <ebb9@byu.net>
54148         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54149
54150         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54151         types are not being provided by gnulib.
54152         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54153         types are supported.
54154
54155 2007-03-10  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/stdio_.h (__attribute__): New macro.
54158         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54159         vsprintf): Specify __attribute__ __format__ for GCC.
54160         Suggested by Eric Blake.
54161
54162 2007-03-09  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/printf-posix-tests: New file.
54165         * tests/test-printf-posix.sh: New file.
54166         * tests/test-printf-posix.c: New file.
54167
54168         * modules/printf-posix: New file.
54169         * lib/printf.c: New file.
54170         * m4/printf-posix-rpl.m4: New file.
54171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54172         REPLACE_PRINTF.
54173         * lib/stdio_.h (printf): New declaration.
54174         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54175         ____strfmon____): New macros.
54176         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54177         REPLACE_PRINTF.
54178
54179 2007-03-09  Bruno Haible  <bruno@clisp.org>
54180
54181         * tests/test-vasnprintf-posix2.sh: New file.
54182         * tests/test-vasnprintf-posix2.c: New file.
54183         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54184         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54185         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54186
54187         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54188         a locale dependent decimal point, rather than always '.'.
54189
54190 2007-03-09  Eric Blake  <ebb9@byu.net>
54191
54192         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54193         spite of platforms like Tandem/NSK that define it to -1.
54194
54195 2007-03-08  Bruno Haible  <bruno@clisp.org>
54196
54197         * modules/vprintf-posix-tests: New file.
54198         * tests/test-vprintf-posix.sh: New file.
54199         * tests/test-vprintf-posix.c: New file.
54200         * tests/test-printf-posix.h: New file.
54201
54202         * modules/vprintf-posix: New file.
54203         * lib/vprintf.c: New file.
54204         * m4/vprintf-posix.m4: New file.
54205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54206         REPLACE_VPRINTF.
54207         * lib/stdio_.h (vprintf): New declaration.
54208         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54209         REPLACE_VPRINTF.
54210
54211 2007-03-08  Bruno Haible  <bruno@clisp.org>
54212
54213         * modules/fprintf-posix-tests: New file.
54214         * tests/test-fprintf-posix.sh: New file.
54215         * tests/test-fprintf-posix.c: New file.
54216
54217         * modules/fprintf-posix: New file.
54218         * lib/fprintf.c: New file.
54219         * m4/fprintf-posix.m4: New file.
54220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54221         REPLACE_FPRINTF.
54222         * lib/stdio_.h (fprintf): New declaration.
54223         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54224         REPLACE_FPRINTF.
54225
54226 2007-03-08  Bruno Haible  <bruno@clisp.org>
54227
54228         * modules/vfprintf-posix-tests: New file.
54229         * tests/test-vfprintf-posix.sh: New file.
54230         * tests/test-vfprintf-posix.c: New file.
54231         * tests/test-fprintf-posix.h: New file.
54232         * tests/test-fprintf-posix.out: New file.
54233
54234         * modules/vfprintf-posix: New file.
54235         * lib/vfprintf.c: New file.
54236         * m4/vfprintf-posix.m4: New file.
54237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54238         REPLACE_VFPRINTF.
54239         * lib/stdio_.h (vfprintf): New declaration.
54240         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54241         REPLACE_VFPRINTF.
54242
54243 2007-03-08  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54246
54247 2007-03-08  Bruno Haible  <bruno@clisp.org>
54248
54249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54250         instead of 'expr' invocations.
54251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54256         Suggested by Paul Eggert.
54257
54258 2007-03-08  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/fseterr-tests: New file.
54261         * tests/test-fseterr.c: New file.
54262
54263         * modules/fseterr: New file.
54264         * lib/fseterr.h: New file.
54265         * lib/fseterr.c: New file.
54266
54267 2007-03-08  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54270         * lib/getopt_.h: Likewise.
54271         * lib/mbswidth.h: Likewise.
54272         * lib/setenv.h: Likewise.
54273         * lib/vasnprintf.h: Likewise.
54274         * lib/vasprintf.h: Likewise.
54275         * lib/verror.h: Likewise.
54276         * lib/xsetenv.h: Likewise.
54277         * lib/xvasprintf.h: Likewise.
54278
54279 2007-03-08  Jim Meyering  <jim@meyering.net>
54280
54281         * users.txt: Add parted.
54282
54283         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54284
54285 2007-03-07  Bruno Haible  <bruno@clisp.org>
54286
54287         * m4/printf.m4: Make the shell script snippets copy&pastable.
54288
54289 2007-03-02  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/netinet_in_.h: New file.
54292         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54293         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54294         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54295         (Depends-on): Add absolute-header.
54296         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54297         into netinet/in.h.
54298
54299 2007-03-03  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/sys_select_.h: New file.
54302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54303         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54304         * modules/sys_select (Files): Add lib/sys_select_.h.
54305         (Depends-on): Add absolute-header.
54306         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54307         into sys/select.h.
54308
54309 2007-03-02  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54312         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54313         values.
54314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54315         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54316         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54317         * modules/sys_socket (Depends-on): Add absolute-header.
54318         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54319         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54320         (Include): Remove requirement of inclusion of <sys/types.h>.
54321
54322 2007-03-02  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/byteswap_.h (bswap_32): Fix formula.
54325
54326 2007-03-06  Bruno Haible  <bruno@clisp.org>
54327
54328         * modules/sprintf-posix-tests: New file.
54329         * tests/test-sprintf-posix.c: New file.
54330
54331         * modules/sprintf-posix: New file.
54332         * lib/sprintf.c: New file.
54333         * m4/sprintf-posix.m4: New file.
54334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54335         REPLACE_SPRINTF.
54336         * lib/stdio_.h (sprintf): New declaration.
54337         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54338         REPLACE_SPRINTF.
54339
54340 2007-03-06  Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/vsprintf-posix-tests: New file.
54343         * tests/test-vsprintf-posix.c: New file.
54344         * tests/test-sprintf-posix.h: New file.
54345
54346         * modules/vsprintf-posix: New file.
54347         * lib/vsprintf.c: New file.
54348         * m4/vsprintf-posix.m4: New file.
54349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54350         REPLACE_VSPRINTF.
54351         * lib/stdio_.h (vsprintf): New declaration.
54352         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54353         REPLACE_VSPRINTF.
54354
54355 2007-03-06  Bruno Haible  <bruno@clisp.org>
54356
54357         * modules/vsnprintf (Depend-on): Remove minmax.
54358
54359 2007-03-06  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/snprintf-posix-tests: New file.
54362         * tests/test-snprintf-posix.c: New file.
54363
54364         * modules/snprintf-posix: New file.
54365         * m4/snprintf-posix.m4: New file.
54366         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54367         gl_FUNC_SNPRINTF.
54368         (gl_FUNC_SNPRINTF): Invoke it.
54369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54370         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54371         is set.
54372         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54373
54374 2007-03-06  Bruno Haible  <bruno@clisp.org>
54375
54376         * modules/vsnprintf-posix-tests: New file.
54377         * tests/test-vsnprintf-posix.c: New file.
54378         * tests/test-snprintf-posix.h: New file.
54379
54380         * modules/vsnprintf-posix: New file.
54381         * m4/vsnprintf-posix.m4: New file.
54382         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54383         gl_FUNC_VSNPRINTF.
54384         (gl_FUNC_VSNPRINTF): Invoke it.
54385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54386         * lib/stdio_.h (vsnprintf): Define as a replacement if
54387         REPLACE_VSNPRINTF is set.
54388         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54389
54390 2007-03-06  Bruno Haible  <bruno@clisp.org>
54391
54392         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54394
54395 2007-03-06  Bruno Haible  <bruno@clisp.org>
54396
54397         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54398         (asinl): Declare also if HAVE_DECL_ASINL is set.
54399         (atanl): Declare also if HAVE_DECL_ATANL is set.
54400         (ceill): Declare also if HAVE_DECL_CEILL is set.
54401         (cosl): Declare also if HAVE_DECL_COSL is set.
54402         (expl): Declare also if HAVE_DECL_EXPL is set.
54403         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54404         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54405         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54406         (logl): Declare also if HAVE_DECL_LOGL is set.
54407         (sinl): Declare also if HAVE_DECL_SINL is set.
54408         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54409         (tanl): Declare also if HAVE_DECL_TANL is set.
54410         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54413         declaration of frexpl, ldexpl.
54414         * modules/printf-frexpl (Depends-on): Add math.
54415         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54416
54417 2007-03-05  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54420         frexpl and ldexpl are declared.
54421         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54422
54423 2007-03-05  Bruno Haible  <bruno@clisp.org>
54424
54425         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54426         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54427
54428 2007-03-05  Bruno Haible  <bruno@clisp.org>
54429
54430         * lib/stdio_.h: Include <stddef.h>.
54431
54432 2007-03-05  Bruno Haible  <bruno@clisp.org>
54433
54434         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54435
54436 2007-03-05  Bruno Haible  <bruno@clisp.org>
54437
54438         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54439         NetBSD 4, from Ralf Wildenhues.
54440
54441 2007-03-04  Bruno Haible  <bruno@clisp.org>
54442
54443         * lib/vasprintf.h: Update #if logic for the case when the functions
54444         exist but are overridden.
54445
54446 2007-03-04  Bruno Haible  <bruno@clisp.org>
54447
54448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54449         implementations: glibc-2.4 and MacOS X 10.3.
54450         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54451         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54452         * tests/test-vasprintf-posix.c (test_function): Likewise.
54453
54454 2007-03-04  Bruno Haible  <bruno@clisp.org>
54455
54456         * modules/vasprintf-posix-tests: New file.
54457         * tests/test-vasprintf-posix.c: New file.
54458
54459         * modules/vasprintf-posix: New file.
54460         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54461         defined.
54462         * m4/vasprintf-posix.m4: New file.
54463         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54464         gl_FUNC_VASPRINTF.
54465         (gl_FUNC_VASPRINTF): Invoke it.
54466         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54467         here.
54468         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54469
54470 2007-03-04  Bruno Haible  <bruno@clisp.org>
54471
54472         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54473         REPLACE_GETTIMEOFDAY.
54474         * modules/sys_time (Makefile.am): Likewise.
54475         * m4/sys_time_h.m4: Likewise.
54476         * m4/gettimeofday.m4: Likewise.
54477
54478 2007-03-04  Bruno Haible  <bruno@clisp.org>
54479
54480         * modules/vasnprintf-posix-tests: New file.
54481         * tests/test-vasnprintf-posix.c: New file.
54482
54483         * modules/vasnprintf-posix: New file.
54484         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54485         printf-frexpl.h.
54486         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54487         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54488         REPLACE_VASNPRINTF is defined.
54489         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54490         gl_FUNC_VASNPRINTF.
54491         (gl_FUNC_VASNPRINTF): Invoke it.
54492         * m4/vasnprintf-posix.m4: New file.
54493         * m4/printf.m4: New file.
54494
54495 2007-03-04  Bruno Haible  <bruno@clisp.org>
54496
54497         Compile progreloc.c only if --enable-relocatable is specified.
54498         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54499         if --enable-relocatable was specified.
54500         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54501         lib_SOURCES.
54502
54503 2007-03-04  Jim Meyering  <jim@meyering.net>
54504
54505         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54506         Use it consistently, rather than enumerating errno constants.
54507
54508 2007-03-04  Bruno Haible  <bruno@clisp.org>
54509
54510         * modules/xvasprintf-tests: New file.
54511         * tests/test-xvasprintf.c: New file.
54512
54513         * modules/vasprintf-tests: New file.
54514         * tests/test-vasprintf.c: New file.
54515
54516         * modules/vasnprintf-tests: New file.
54517         * tests/test-vasnprintf.c: New file.
54518
54519         * modules/vsnprintf-tests: New file.
54520         * tests/test-vsnprintf.c: New file.
54521
54522         * modules/snprintf-tests: New file.
54523         * tests/test-snprintf.c: New file.
54524
54525 2007-03-04  Bruno Haible  <bruno@clisp.org>
54526
54527         Compile relocatable.c only if --enable-relocatable is specified.
54528         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54529         gl_RELOCATABLE_LIBRARY.
54530         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54531         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54532         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54533         gl_RELOCATABLE_LIBRARY.
54534         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54535         (Makefile.am): Remove lib_SOURCES.
54536         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54537         gl_RELOCATABLE_LIBRARY.
54538         (Makefile.am): Remove lib_SOURCES.
54539         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54540         always.
54541         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54542         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54543
54544 2007-03-04  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/argmatch-tests: New file.
54547         * tests/test-argmatch.c: New file.
54548
54549         * tests/test-allocsa.c (main): Halve the number of loop runs.
54550
54551         * modules/alloca-opt-tests: New file.
54552         * tests/test-alloca-opt.c: New file.
54553
54554 2007-03-04  Jim Meyering  <jim@meyering.net>
54555
54556         Work around difference between Linux ACLs and Solaris 10 ZFS.
54557         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54558         for EINVAL.
54559
54560 2007-03-03  Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/relocatable-prog (Depends-on): Add back progreloc's
54563         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54564
54565 2007-03-03  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54568         * modules/relocatable-lib: New file.
54569
54570 2007-03-03  Bruno Haible  <bruno@clisp.org>
54571
54572         * modules/relocatable-prog: Renamed from modules/relocatable.
54573         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54574
54575 2007-03-03  Bruno Haible  <bruno@clisp.org>
54576
54577         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54578         m4/relocatable-lib.m4.
54579         (Depends-on): Remove 'relocatable'.
54580         (configure.ac): Add gl_RELOCATABLE_NOP.
54581
54582 2007-03-03  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/relocatable-prog-wrapper: New file.
54585         * modules/relocatable (Depends-on): Add it. Remove all other
54586         dependencies except progname.
54587         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54588
54589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54590         (gl_FUNC_STRERROR): Nop.
54591         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54592
54593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54594         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54595
54596         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54597         (gl_FUNC_READLINK): Update.
54598
54599         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54600
54601 2007-03-03  Bruno Haible  <bruno@clisp.org>
54602
54603         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54604         * modules/xreadlink (Depends-on): Add unistd.
54605         * modules/xreadlink-with-size (Depends-on): Likewise.
54606
54607 2007-03-03  Bruno Haible  <bruno@clisp.org>
54608
54609         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54610         extracted from gt_FUNC_SETENV.
54611         (gt_FUNC_SETENV): Remove macro.
54612         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54613         remove gt_FUNC_SETENV.
54614
54615 2007-03-03  Bruno Haible  <bruno@clisp.org>
54616
54617         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54618         ENABLE_RELOCATABLE here.
54619         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54620
54621 2007-03-03  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54624         * tests/test-rbtreehash_list.c: Include progname.h.
54625         (main): Call set_program_name.
54626
54627         * modules/rbtree-oset-tests (Depends-on): Add progname.
54628         * tests/test-rbtree_oset.c: Include progname.h.
54629         (main): Call set_program_name.
54630
54631         * modules/rbtree-list-tests (Depends-on): Add progname.
54632         * tests/test-rbtree_list.c: Include progname.h.
54633         (main): Call set_program_name.
54634
54635         * modules/linked-list-tests (Depends-on): Add progname.
54636         * tests/test-linked_list.c: Include progname.h.
54637         (main): Call set_program_name.
54638
54639 2007-03-03  Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54642         All uses of __restrict changed to _Restrict_.
54643         * lib/glob_.h (__restrict): Remove macro.
54644
54645 2007-03-02  Bruno Haible  <bruno@clisp.org>
54646
54647         * modules/gettext (configure.ac): Require gettext infrastructure
54648         from version 0.16.1.
54649
54650 2007-03-02  Bruno Haible  <bruno@clisp.org>
54651
54652         * modules/linkedhash-list-tests (Depends-on): Add progname.
54653         * tests/test-linkedhash_list.c: Include progname.h.
54654         (main): Call set_program_name.
54655
54656         * modules/carray-list-tests (Depends-on): Add progname.
54657         * tests/test-carray_list.c: Include progname.h.
54658         (main): Call set_program_name.
54659
54660         * modules/avltreehash-list-tests (Depends-on): Add progname.
54661         * tests/test-avltreehash_list.c: Include progname.h.
54662         (main): Call set_program_name.
54663
54664         * modules/avltree-oset-tests (Depends-on): Add progname.
54665         * tests/test-avltree_oset.c: Include progname.h.
54666         (main): Call set_program_name.
54667
54668         * modules/avltree-list-tests (Depends-on): Add progname.
54669         * tests/test-avltree_list.c: Include progname.h.
54670         (main): Call set_program_name.
54671
54672         * modules/array-oset-tests (Depends-on): Add progname.
54673         * tests/test-array_oset.c: Include progname.h.
54674         (main): Call set_program_name.
54675
54676         * modules/array-list-tests (Depends-on): Add progname.
54677         * tests/test-array_list.c: Include progname.h.
54678         (main): Call set_program_name.
54679
54680         * modules/argp-tests (Depends-on): Add progname.
54681         * tests/test-argp.c: Include argp.h first. Include progname.h.
54682         (main): Call set_program_name.
54683
54684 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * doc/gnulib-tool.texi (Initial import): Reword description of
54687         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54688         limited effect even if defined after the first system include.
54689
54690 2007-03-01  Bruno Haible  <bruno@clisp.org>
54691
54692         * build-aux/config.libpath: Update to libtool-1.5.22.
54693         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54694
54695 2007-03-01  Bruno Haible  <bruno@clisp.org>
54696
54697         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54698         foo_CFLAGS.
54699         Reported by Ralf Wildenhues.
54700
54701 2007-03-01  Bruno Haible  <bruno@clisp.org>
54702
54703         * build-aux/install-reloc: Remove object files left over by some
54704         compilers.
54705         Reported by Ralf Wildenhues.
54706
54707 2007-03-01  Bruno Haible  <bruno@clisp.org>
54708
54709         * build-aux/install-reloc: Break long lines.
54710
54711 2007-03-01  Bruno Haible  <bruno@clisp.org>
54712
54713         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54714         Reported by Ralf Wildenhues.
54715
54716 2007-03-01  Bruno Haible  <bruno@clisp.org>
54717
54718         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54719         include ordering constraints.
54720
54721 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54722
54723         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54725         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54726         as another example.
54727         * lib/time_.h: Fix misspelling.
54728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54729         Require gl_HEADER_TIME_H_DEFAULTS.
54730         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54731         * m4/time_r.m4 (gl_TIME_R): Likewise.
54732         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54733
54734 2007-03-01  Bruno Haible  <bruno@clisp.org>
54735
54736         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54737         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54738
54739 2007-03-01  Jim Meyering  <jim@meyering.net>
54740
54741         * modules/xreadlink (Maintainer): Add my name.
54742         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54743
54744 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54745             Bruno Haible  <bruno@clisp.org>
54746
54747         * build-aux/install-reloc: Compile also c-ctype.c.
54748         * build-aux/relocatable.sh.in: New file.
54749         * doc/relocatable.texi: New file.
54750         * doc/relocatable-maint.texi: New file.
54751         * doc/gnulib.texi: Include relocatable-maint.texi.
54752         * lib/progreloc.c: Include unistd.h unconditionally.
54753         * lib/relocwrapper.c: Include unistd.h unconditionally.
54754         Include c-ctype.h.
54755         (add_dotbin): Use c_tolower.
54756         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54757         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54758         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54759         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54760         to m4/relocatable-lib.m4.
54761         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54762         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54763         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54764         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54765         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54766         * modules/relocatable: New file.
54767         * modules/relocatable-lib: New file.
54768         * modules/relocatable-script: New file.
54769
54770 2007-02-28  Bruno Haible  <bruno@clisp.org>
54771
54772         Import --enable-relocatable infrastructure.
54773         * build-aux/config.libpath: New file, from GNU gettext.
54774         * build-aux/install-reloc: New file, from GNU gettext.
54775         * build-aux/reloc-ldflags: New file, from GNU gettext.
54776         * lib/relocatable.h: New file, from GNU gettext.
54777         * lib/relocatable.c: New file, from GNU gettext.
54778         * lib/relocwrapper.c: New file, from GNU gettext.
54779         * m4/relocatable.m4: New file, from GNU gettext.
54780
54781 2007-02-28  Bruno Haible  <bruno@clisp.org>
54782
54783         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54784
54785         * modules/xreadlink: New file, from GNU gettext with modifications.
54786         * lib/xreadlink.c: New file, from GNU gettext.
54787         * lib/xreadlink.h: Add comments.
54788         (xreadlink): New declaration.
54789
54790         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54791         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54792         lib/xreadlink-with-size.c.
54793         (configure.ac): Remove gl_XREADLINK invocation.
54794         (Makefile.am): Augment lib_SOURCES.
54795         * m4/xreadlink.m4: Remove file.
54796         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54797         (xreadlink_with_size): Renamed from xreadink.
54798         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54799         * modules/canonicalize (Depends-on): Replace xreadlink with
54800         xreadlink-with-size.
54801         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54802
54803 2007-02-25  Jim Meyering  <jim@meyering.net>
54804
54805         * build-aux/announce-gen: When complaining about excess arguments,
54806         list them.
54807
54808 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * README: Document signed integer overflow situation more
54811         accurately.
54812
54813 2007-02-25  Bruno Haible  <bruno@clisp.org>
54814
54815         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54816         'a' or 'A' conversion.
54817
54818 2007-02-25  Bruno Haible  <bruno@clisp.org>
54819
54820         * modules/filename: Renamed from modules/pathname.
54821         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54822         lib/concatpath.c with lib/concat-filename.c.
54823         (Makefile.am): Update.
54824         (Include): Replace pathname.h with filename.h.
54825         * lib/filename.h: Renamed from lib/pathname.h.
54826         (concatenated_filename): Renamed from concatenated_pathname.
54827         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54828         (concatenated_filename): Renamed from concatenated_pathname.
54829         * lib/findprog.c: Include filename.h instead of pathname.h.
54830         (find_in_path): Update.
54831         * lib/javacomp.c: Include filename.h instead of pathname.h.
54832         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54833         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54834         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54835         is_oldgcj_14_13_usable, is_javac_usable): Update.
54836         * lib/javaexec.c: Include filename.h instead of pathname.h.
54837         (execute_java_class): Update.
54838         * modules/findprog: Update.
54839         * modules/javacomp: Update.
54840         * modules/javaexec: Update.
54841         * MODULES.html.sh (File system functions): Add 'filename', remove
54842         'pathname'.
54843
54844 2007-02-25  Bruno Haible  <bruno@clisp.org>
54845
54846         * modules/printf-frexpl-tests: New file.
54847         * tests/test-printf-frexpl.c: New file.
54848
54849         * modules/printf-frexpl: New file.
54850         * lib/printf-frexpl.h: New file.
54851         * lib/printf-frexpl.c: New file.
54852         * m4/printf-frexpl.m4: New file.
54853
54854 2007-02-25  Bruno Haible  <bruno@clisp.org>
54855
54856         * modules/printf-frexp-tests: New file.
54857         * tests/test-printf-frexp.c: New file.
54858
54859         * modules/printf-frexp: New file.
54860         * lib/printf-frexp.h: New file.
54861         * lib/printf-frexp.c: New file.
54862         * m4/printf-frexp.m4: New file.
54863
54864 2007-02-25  Bruno Haible  <bruno@clisp.org>
54865
54866         Assume automake >= 1.10 for the tests.
54867         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54868         * modules/arctwo-tests: Likewise.
54869         * modules/argp-tests: Likewise.
54870         * modules/avltree-list-tests: Likewise.
54871         * modules/avltree-oset-tests: Likewise.
54872         * modules/avltreehash-list-tests: Likewise.
54873         * modules/carray-list-tests: Likewise.
54874         * modules/crc-tests: Likewise.
54875         * modules/des-tests: Likewise.
54876         * modules/gc-arcfour-tests: Likewise.
54877         * modules/gc-arctwo-tests: Likewise.
54878         * modules/gc-des-tests: Likewise.
54879         * modules/gc-hmac-md5-tests: Likewise.
54880         * modules/gc-hmac-sha1-tests: Likewise.
54881         * modules/gc-md2-tests: Likewise.
54882         * modules/gc-md4-tests: Likewise.
54883         * modules/gc-md5-tests: Likewise.
54884         * modules/gc-pbkdf2-sha1-tests: Likewise.
54885         * modules/gc-rijndael-tests: Likewise.
54886         * modules/gc-sha1-tests: Likewise.
54887         * modules/gc-tests: Likewise.
54888         * modules/getaddrinfo-tests: Likewise.
54889         * modules/hmac-md5-tests: Likewise.
54890         * modules/hmac-sha1-tests: Likewise.
54891         * modules/linked-list-tests: Likewise.
54892         * modules/linkedhash-list-tests: Likewise.
54893         * modules/lock-tests: Likewise.
54894         * modules/md2-tests: Likewise.
54895         * modules/md4-tests: Likewise.
54896         * modules/md5-tests: Likewise.
54897         * modules/rbtree-list-tests: Likewise.
54898         * modules/rbtree-oset-tests: Likewise.
54899         * modules/rbtreehash-list-tests: Likewise.
54900         * modules/read-file-tests: Likewise.
54901         * modules/rijndael-tests: Likewise.
54902         * modules/stdint-tests: Likewise.
54903         * modules/tls-tests: Likewise.
54904
54905 2007-02-24  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54908         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54909         function; instead check whether isnan with a double argument links.
54910         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54911         function; instead check whether isnan with a 'long double' argument
54912         links.
54913         Reported by Eric Blake <ebb9@byu.net>.
54914
54915 2007-02-24  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54918         defined.
54919         * lib/isnanl.c: Remove all code. Just include isnan.c.
54920         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54921
54922 2007-02-25  Jim Meyering  <jim@meyering.net>
54923
54924         Avoid conflicting types for 'unsetenv' on FreeBSD.
54925         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54926         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54927         in stdlib.h.
54928
54929 2007-02-24  Bruno Haible  <bruno@clisp.org>
54930
54931         * modules/isnanl-nolibm-tests: New file.
54932         * tests/test-isnanl.c: New file.
54933
54934         * modules/isnanl-nolibm: New file.
54935         * lib/isnanl.h: New file.
54936         * lib/isnanl.c: New file.
54937         * m4/isnanl.m4: New file.
54938
54939 2007-02-24  Bruno Haible  <bruno@clisp.org>
54940
54941         * modules/isnan-nolibm-tests: New file.
54942         * tests/test-isnan.c: New file.
54943
54944         * modules/isnan-nolibm: New file.
54945         * lib/isnan.h: New file.
54946         * lib/isnan.c: New file.
54947         * m4/isnan.m4: New file.
54948
54949 2007-02-24  Bruno Haible  <bruno@clisp.org>
54950
54951         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54952         assume that an exponent fits in 20 bits.
54953
54954 2007-02-24  Jim Meyering  <jim@meyering.net>
54955
54956         * m4/regex.m4: Update the description of the configure-time option,
54957         --without-included-regex, to state accurately what the defaults are,
54958         and perhaps to give people an idea why using this option is risky.
54959
54960 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54961
54962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54963         loops on small arguments.  This attempts to avoid the problem
54964         Bruno Haible reported for AIX 4.3.2 in
54965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54966
54967 2007-02-23  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54970         Needed for help2man.
54971
54972 2007-02-23  Karl Berry  <karl@gnu.org>
54973
54974         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54975         exists, foo.h should be cvs-ignored, not committed.
54976
54977 2007-02-23  Eric Blake  <ebb9@byu.net>
54978
54979         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54980         * lib/stat-time.h (includes): Likewise.
54981         * lib/utimecmp.c (includes): Likewise.
54982         * lib/utimens.h (includes): Likewise.
54983         * lib/getdate.y (includes): Also include "timespec.h" for use
54984         internal to the module.
54985         * modules/utimens (Depends-on): Revert yesterday's patch.
54986         * modules/nanosleep (Depends-on): Add missing dependency.
54987
54988 2007-02-22  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/glob.c: Don't include getlogin_r.h.
54991
54992 2007-02-22  Jim Meyering  <jim@meyering.net>
54993
54994         * modules/utimens (Depends-on): Add timespec, required for
54995         utimens.h's inclusion of timespec.h.
54996
54997 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54998
54999         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55000         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55001         Schwab in
55002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55003         I'll try to think of a better way to fix the Solaris problem.
55004
55005         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55006         like glibc; on Solaris 10, it fails with errno == EINVAL.
55007         POSIX says the behavior is unspecified if the first argument is NULL,
55008         so play it safe and never pass NULL to the system getcwd.
55009
55010 2007-02-21  Jim Meyering  <jim@meyering.net>
55011
55012         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55013         of gettimeofday.  It would conflict with the one now always
55014         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55015         an IRIX 6.5 build failure.
55016
55017 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55018
55019         Minor fixups to port to Solaris 10 with Sun C 5.8.
55020         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55021         * modules/getcwd (Depends-on): Add dirfd.
55022         * lib/putenv.c (putenv): #undef it.
55023         (rpl_putenv): New decl.
55024         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55025
55026 2007-02-20  Bruno Haible  <bruno@clisp.org>
55027
55028         * modules/stdio-tests: New file.
55029         * tests/test-stdio.c: New file.
55030
55031         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55032         (Depends-on): Add stdio.
55033         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55034         (Include): Use <stdio.h> instead of vsnprintf.h.
55035         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55036         HAVE_DECL_VSNPRINTF.
55037         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55038
55039         * modules/snprintf (Files): Remove lib/snprintf.h.
55040         (Depends-on): Add stdio.
55041         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55042         (Include): Use <stdio.h> instead of snprintf.h.
55043         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55044         HAVE_DECL_SNPRINTF.
55045         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55046         * lib/getaddrinfo.c: Likewise.
55047
55048         * modules/stdio: New file.
55049         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55050         * lib/snprintf.h: Remove file.
55051         * lib/vsnprintf.h: Remove file.
55052         * lib/.cppi-disable: Remove snprintf.h.
55053         * m4/stdio_h.m4: New file.
55054         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55055
55056 2007-02-20  Jim Meyering  <jim@meyering.net>
55057
55058         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55059         used by e.g., mingw.  From Bruno Haible.
55060
55061 2007-02-19  Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55064         warnings.
55065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55066
55067 2007-02-19  Bruno Haible  <bruno@clisp.org>
55068
55069         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55070         from mingw users.
55071
55072 2007-02-19  Bruno Haible  <bruno@clisp.org>
55073
55074         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55075         warnings.
55076         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55077
55078 2007-02-19  Jim Meyering  <jim@meyering.net>
55079
55080         Don't use FD after a successful "fdopendir (fd)".
55081         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55082         Reset it by calling dirfd on the just-obtained DIR*.
55083
55084         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55085         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55086
55087 2007-02-18  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/readlink.c: Include <unistd.h>.
55090         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55091         HAVE_READLINK.
55092         * modules/readlink (Depends-on): Add unistd.
55093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55094         (Include): Add <unistd.h>.
55095
55096         * lib/getlogin_r.h: Remove file.
55097         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55098         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55099         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55100         HAVE_DECL_GETLOGIN_R.
55101         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55103         (Include): Use <unistd.h> instead of getlogin_r.h.
55104
55105         * lib/getcwd.h: Remove file.
55106         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55107         * lib/xgetcwd.c: Likewise.
55108         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55109         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55110         * modules/getcwd (Files): Remove lib/getcwd.h.
55111         (Depends-on): Add unistd.
55112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55113         (Include): Use <unistd.h> instad of getcwd.h.
55114
55115         * lib/ftruncate.c: Include <unistd.h> first.
55116         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55117         Set HAVE_FTRUNCATE.
55118         * modules/ftruncate (Depends-on): Add unistd.
55119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55120
55121         * lib/fchdir.c: Include <unistd.h> first.
55122         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55124         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55125         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55126         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55127
55128         * lib/dup2.c: Include <unistd.h> first.
55129         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55130         HAVE_DUP2.
55131         * modules/dup2 (Depends-on): Add unistd.
55132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55133
55134         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55135         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55136         REPLACE_CHOWN. Don't define chown as a macro here.
55137         * modules/chown (Depends-on): Add unistd.
55138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55139
55140         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55141         Add definition for GL_LINK_WARNING.
55142         (chown, dup2): New declarations.
55143         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55144         link warning.
55145         (ftruncate): New declaration.
55146         (getcwd): New declaration, taken from old getcwd.h.
55147         (getlogin_r): New declaration, taken from old getlogin_r.h.
55148         (readlink): New declaration.
55149         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55150         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55151         (gl_PREREQ_UNISTD): Remove macro.
55152         (gl_UNISTD_MODULE_INDICATOR): New macro.
55153         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55154         many new variables. Don't set UNISTD_H.
55155         * modules/unistd (Description): Change.
55156         (Depends-on): Add link-warning.
55157         (configure.ac): Update.
55158         (Makefile.am): Create unistd.h always. Substitute many new variables
55159         into it.
55160
55161 2007-02-18  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55164         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55165         HAVE_GETSUBOPT.
55166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55167         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55168         * lib/getsubopt.h: Remove file.
55169         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55170         (Depends-on): Add stdlib.
55171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55172         (Includes): Use <stdlib.h> instead of getsubopt.h.
55173         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55174         Set HAVE_GETSUBOPT.
55175         * lib/getsubopt.c: Don't include getsubopt.h.
55176
55177 2007-02-18  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/fchdir (Depends-on): Add dup2.
55180
55181 2007-02-18  Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/stdlib_.h: Handle glibc's special invocation convention
55184         specially.
55185
55186 2007-02-18  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/stdlib-tests: New file.
55189         * tests/test-stdlib.c: New file.
55190
55191         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55192         (Depends-on): Add stdlib.
55193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55194         (Includes): Use <stdlib.h> instead of mkstemp.h.
55195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55196         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55197         * lib/mkstemp.c: Don't include mkstemp.h.
55198         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55199         * lib/stdlib--.h: Don't include mkstemp.h.
55200
55201         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55202         (Depends-on): Add stdlib.
55203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55204         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55205         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55206         HAVE_MKDTEMP.
55207         * lib/mkdtemp.c: Don't include mkdtemp.h.
55208         * lib/clean-temp.c: Don't include mkdtemp.h.
55209
55210         * modules/exit (Files): Remove lib/exit.h.
55211         (Depends-on): Add stdlib.
55212         (Makefile.am): Remove lib_SOURCES.
55213         (Include): Use <stdlib.h> instead of exit.h.
55214         * lib/argmatch.c: Don't include exit.h.
55215         * lib/execute.c: Likewise.
55216         * lib/pagealign_alloc.c: Likewise.
55217         * lib/pipe.c: Likewise.
55218         * lib/wait-process.c: Likewise.
55219         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55220         * lib/exitfail.c: Likewise.
55221         * lib/savewd.c: Likewise.
55222         * lib/xsetenv.c: Likewise.
55223
55224         * modules/stdlib: New file.
55225         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55226         and extra comments about mkstemp().
55227         * lib/exit.h: Remove file.
55228         * lib/mkdtemp.h: Remove file.
55229         * lib/mkstemp.h: Remove file.
55230         * m4/stdlib_h.m4: New file.
55231         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55232
55233 2007-02-18  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/math-tests: New file.
55236         * tests/test-math.c: New file.
55237
55238         * modules/math: New file.
55239         * modules/mathl (Files): Remove lib/mathl.h.
55240         (Depends-on): Add math.
55241         (Makefile.am): Don't mention mathl.h.
55242         (Include): Use <math.h> instead of mathl.h.
55243         * lib/math_.h: New file.
55244         * lib/mathl.h: Remove file.
55245         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55246         mathl.h.
55247         * lib/asinl.c: Likewise.
55248         * lib/atanl.c: Likewise.
55249         * lib/ceill.c: Likewise.
55250         * lib/cosl.c: Likewise.
55251         * lib/expl.c: Likewise.
55252         * lib/floorl.c: Likewise.
55253         * lib/frexpl.c: Likewise.
55254         * lib/ldexpl.c: Likewise.
55255         * lib/logl.c: Likewise.
55256         * lib/sincosl.c: Likewise.
55257         * lib/sinl.c: Likewise.
55258         * lib/sqrtl.c: Likewise.
55259         * lib/tanl.c: Likewise.
55260         * lib/trigl.c: Likewise.
55261         * m4/math_h.m4: New file.
55262         * MODULES.html.sh (Mathematics): Add math.
55263
55264 2007-02-17  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/wctype-tests: New file.
55267         * tests/test-wctype.c: New file.
55268
55269         * modules/wchar-tests: New file.
55270         * tests/test-wchar.c: New file.
55271
55272         * modules/unistd-tests: New file.
55273         * tests/test-unistd.c: New file.
55274
55275         * modules/time-tests: New file.
55276         * tests/test-time.c: New file.
55277
55278         * modules/sysexits-tests: New file.
55279         * tests/test-sysexits.c: New file.
55280
55281         * modules/sys_time-tests: New file.
55282         * tests/test-sys_time.c: New file.
55283
55284         * modules/sys_stat-tests: New file.
55285         * tests/test-sys_stat.c: New file.
55286
55287         * modules/sys_socket-tests: New file.
55288         * tests/test-sys_socket.c: New file.
55289
55290         * modules/sys_select-tests: New file.
55291         * tests/test-sys_select.c: New file.
55292
55293         * modules/string-tests: New file.
55294         * tests/test-string.c: New file.
55295
55296         * modules/stdbool-tests: New file.
55297         * tests/test-stdbool.c: New file.
55298
55299         * modules/netinet_in-tests: New file.
55300         * tests/test-netinet_in.c: New file.
55301
55302         * modules/inttypes-tests: New file.
55303         * tests/test-inttypes.c: New file.
55304
55305         * modules/fcntl-tests: New file.
55306         * tests/test-fcntl.c: New file.
55307
55308         * modules/byteswap-tests: New file.
55309         * tests/test-byteswap.c: New file.
55310
55311         * modules/arpa_inet-tests: New file.
55312         * tests/test-arpa_inet.c: New file.
55313
55314 2007-02-17  Bruno Haible  <bruno@clisp.org>
55315
55316         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55317         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55318         if the corresponding module is not enabled. Emit link warnings if
55319         the function is used nevertheless.
55320         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55321         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55322         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55323         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55324         * modules/inttypes (Depends-on): Add link-warning.
55325         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55326         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55327         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55328         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55329         * modules/imaxdiv (configure.ac): Likewise.
55330         * modules/strtoimax (configure.ac): Likewise.
55331         * modules/strtoumax (configure.ac): Likewise.
55332
55333 2007-02-17  Bruno Haible  <bruno@clisp.org>
55334
55335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55336         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55337         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55338         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55339
55340 2007-02-17  Bruno Haible  <bruno@clisp.org>
55341
55342         * modules/link-warning: New file.
55343         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55344         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55345         * modules/string (Depends-on): Add link-warning.
55346         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55347         string.h.
55348         * MODULES.html.sh (Support for building libraries and executables): Add
55349         link-warning.
55350
55351 2007-02-17  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55354         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55355         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55356         long lines.
55357
55358 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55359             Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/tmpfile: New file.
55362         * lib/tmpfile.c: New file.
55363         * m4/tmpfile.m4: New file.
55364         * MODULES.html.sh (func_all_modules): New section "Input/output".
55365
55366 2007-02-15  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55369         (supports_delete_on_close): New function.
55370         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55371
55372 2007-02-14  Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/mbspcasecmp-tests: New file.
55375         * tests/test-mbspcasecmp.sh: New file.
55376         * tests/test-mbspcasecmp.c: New file.
55377
55378         New module mbspcasecmp.
55379         * modules/mbspcasecmp: New file.
55380         * lib/mbspcasecmp.c: New file.
55381         * lib/string_.h (strncasecmp): Change warning message.
55382         (mbspcasecmp): New declaration.
55383         * m4/mbspcasecmp.m4: New file.
55384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55385         GNULIB_MBSPCASECMP.
55386         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55387         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55388
55389 2007-02-14  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/mbsncasecmp-tests: New file.
55392         * tests/test-mbsncasecmp.sh: New file.
55393         * tests/test-mbsncasecmp.c: New file.
55394
55395         New module mbsncasecmp.
55396         * modules/mbsncasecmp: New file.
55397         * lib/mbsncasecmp.c: New file.
55398         * lib/string_.h (mbsncasecmp): New declaration.
55399         * m4/mbsncasecmp.m4: New file.
55400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55401         GNULIB_MBSNCASECMP.
55402         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55403         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55404
55405 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55408         Verify that it doesn't overlap with our flags.
55409         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55410         do not have the desired effect in multibyte locales; instead, use
55411         mbscasecmp.
55412         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55413         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55414         we don't require GNU fnmatch ourselves (if our users require it, they
55415         should do so explicitly).
55416
55417         Fix regex code so it doesn't rely on strcasecmp.
55418         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55419         Otherwise, include gnulib's langinfo.h.
55420         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55421         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55422         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55423         * modules/regex (FILES): Remove m4/codeset.m4.
55424         (Depends-on): Add localcharset.  Remove strcase.
55425
55426 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55427
55428         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55430
55431 2007-02-13  Bruno Haible  <bruno@clisp.org>
55432
55433         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55435
55436 2007-02-12  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55439         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55440         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55441         time warning rather than a link error.
55442
55443 2007-02-12  Bruno Haible  <bruno@clisp.org>
55444
55445         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55446         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55448
55449 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55452         args, not 2.
55453
55454 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55455
55456         New module 'time', so that apps can include <time.h> as per
55457         POSIX and GNU instead of separate include files like time_r.h
55458         and timegm.h.  This implementation tries out a simpler approach
55459         for replacing decls in standard include files (as compared to
55460         the string module), somewhat as an experiment.
55461
55462         * config/srclist.txt: Comment out mktime.c for now.
55463         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55464         since it doesn't apply any more.  Use generic wording instead.
55465         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55466         'time'.
55467         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55468         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55469         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55470         Don't include <sys/types.h>; no longer needed since we assume C89.
55471         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55472         * lib/strftime.c: Likewise.
55473         * lib/time_r.c: Likewise.
55474         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55475         * lib/nanosleep.c: Include <time.h> first, to check interface.
55476         * lib/strptime.c: Likewise.
55477         * lib/time_r.c: Likewise.
55478         * lib/timegm.c: Likewise.
55479         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55480         needed.
55481         * lib/timegm.c: Don't include timegm.h; no longer needed.
55482         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55483         time.h now handles any problems in that area.
55484         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55485         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55486         that time.h defines struct timespec.
55487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55488         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55489         handles that.
55490         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55491         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55492         needed.  Set REPLACE_LOCALTIME.
55493         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55494         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55495         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55496         nanosleep; time_h.m4 now does that.  Don't require
55497         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55498         module handles this now.
55499         * modules/getdate (Depends-on): Remove timespec.  Add time.
55500         * modules/nanosleep (Depends-on): Likewise.
55501         * modules/stat-time (Depends-on): Likewise.
55502         * modules/nanosleep (Include): Include time.h, not timespec.h.
55503         * modules/strptime (Files): Remove lib/strptime.h.
55504         (Depends-on): Add extensions, time.
55505         (Include): Include time.h, not strptime.h.
55506         * modules/time_r (Files): Remove lib/time_r.h.
55507         (Depends-on): Add time.
55508         (Include): Include time.h, not time_r.h.
55509         * modules/timegm: Likewise.
55510         * modules/timespec (Description): Now does timespec-related decls
55511         of our own, instead of struct timespec itself.
55512         (Depends-on): Add time; remove extensions.
55513         (Maintainer): Add self.
55514         * modules/utimecmp (Depends-on): Add time; remove timespec.
55515         * modules/utimens (Depends-on): Likewise.
55516         * modules/xnanosleep (Depends-on): Likewise.
55517
55518 2007-02-11  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/c-strstr.c: Include allocsa.h.
55521         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55522         * lib/c-strcasestr.c: Include allocsa.h.
55523         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55524         * lib/strcasestr.c: Include allocsa.h.
55525         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55526         * lib/mbsstr.c: Include allocsa.h.
55527         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55528         allocsa/freesa instead of malloc/free.
55529         * lib/mbscasestr.c: Include allocsa.h.
55530         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55531         allocsa/freesa instead of malloc/free.
55532         * modules/c-strstr (Depends-on): Add allocsa.
55533         * modules/c-strcasestr (Depends-on): Likewise.
55534         * modules/strcasestr (Depends-on): Likewise.
55535         * modules/mbsstr (Depends-on): Likewise.
55536         * modules/mbscasestr (Depends-on): Likewise.
55537
55538 2007-02-11  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55541
55542         * modules/mbsspn-tests: New file.
55543         * tests/test-mbsspn.sh: New file.
55544         * tests/test-mbsspn.c: New file.
55545
55546 2007-02-11  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55549
55550         * modules/mbspbrk-tests: New file.
55551         * tests/test-mbspbrk.sh: New file.
55552         * tests/test-mbspbrk.c: New file.
55553
55554 2007-02-11  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55557         unneeded cast.
55558
55559         * modules/mbscspn-tests: New file.
55560         * tests/test-mbscspn.sh: New file.
55561         * tests/test-mbscspn.c: New file.
55562
55563 2007-02-11  Bruno Haible  <bruno@clisp.org>
55564
55565         * modules/mbscasecmp-tests: New file.
55566         * tests/test-mbscasecmp.sh: New file.
55567         * tests/test-mbscasecmp.c: New file.
55568
55569 2007-02-11  Bruno Haible  <bruno@clisp.org>
55570
55571         Ensure O(n) worst-case complexity of mbscasestr.
55572         * lib/mbscasestr.c: Include stdbool.h.
55573         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55574         functions.
55575         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55576         the bookkeeping indicates that it's worth it.
55577         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55578
55579         * modules/mbscasestr-tests: New file.
55580         * tests/test-mbscasestr1.c: New file.
55581         * tests/test-mbscasestr2.sh: New file.
55582         * tests/test-mbscasestr2.c: New file.
55583         * tests/test-mbscasestr3.sh: New file.
55584         * tests/test-mbscasestr3.c: New file.
55585         * tests/test-mbscasestr4.sh: New file.
55586         * tests/test-mbscasestr4.c: New file.
55587         * m4/locale-tr.m4: New file.
55588
55589 2007-02-11  Bruno Haible  <bruno@clisp.org>
55590
55591         Ensure O(n) worst-case complexity of mbsstr.
55592         * lib/mbsstr.c: Include stdbool.h.
55593         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55594         functions.
55595         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55596         bookkeeping indicates that it's worth it.
55597         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55598
55599         * modules/mbsstr-tests: New file.
55600         * tests/test-mbsstr1.c: New file.
55601         * tests/test-mbsstr2.sh: New file.
55602         * tests/test-mbsstr2.c: New file.
55603         * tests/test-mbsstr3.sh: New file.
55604         * tests/test-mbsstr3.c: New file.
55605         * m4/locale-fr.m4: New file.
55606
55607 2007-02-11  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/mbsrchr.c (mbsrchr): Fix bug.
55610
55611         * modules/mbsrchr-tests: New file.
55612         * tests/test-mbsrchr.sh: New file.
55613         * tests/test-mbsrchr.c: New file.
55614
55615 2007-02-11  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/mbschr.c (mbschr): Fix bug.
55618
55619         * modules/mbschr-tests: New file.
55620         * tests/test-mbschr.sh: New file.
55621         * tests/test-mbschr.c: New file.
55622         * m4/locale-zh.m4: New file.
55623
55624 2007-02-11  Bruno Haible  <bruno@clisp.org>
55625
55626         Support for copying multibyte string iterators.
55627         * lib/mbiter.h: Include <string.h>.
55628         (mbiter_multi_copy): New function.
55629         (mbi_copy): New macro.
55630         * lib/mbuiter.h: Include <string.h>.
55631         (mbuiter_multi_copy): New function.
55632         (mbui_copy): New macro.
55633
55634 2007-02-11  Bruno Haible  <bruno@clisp.org>
55635
55636         New module mbslen.
55637         * modules/mbslen: New file.
55638         * lib/mbslen.c: New file.
55639         * lib/string_.h (mbslen): New declaration.
55640         * m4/mbslen.m4: New file.
55641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55642         GNULIB_MBSLEN.
55643         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55644         * MODULES.html.sh (Internationalization functions): Add mbslen.
55645
55646 2007-02-11  Bruno Haible  <bruno@clisp.org>
55647
55648         Ensure O(n) worst-case complexity of strcasestr substitute.
55649         * lib/strcasestr.c: Include stdbool.h.
55650         (knuth_morris_pratt): New function.
55651         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55652         bookkeeping indicates that it's worth it.
55653         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55654
55655         * modules/strcasestr-tests: New file.
55656         * tests/test-strcasestr.c: New file.
55657
55658 2007-02-11  Bruno Haible  <bruno@clisp.org>
55659
55660         Ensure O(n) worst-case complexity of c_strcasestr.
55661         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55662         (knuth_morris_pratt): New function.
55663         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55664         the bookkeeping indicates that it's worth it.
55665         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55666
55667         * modules/c-strcasestr-tests: New file.
55668         * tests/test-c-strcasestr.c: New file.
55669
55670 2007-02-11  Bruno Haible  <bruno@clisp.org>
55671
55672         Ensure O(n) worst-case complexity of c_strstr.
55673         * lib/c-strstr.c: Include stdbool.h, string.h.
55674         (knuth_morris_pratt): New function.
55675         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55676         bookkeeping indicates that it's worth it.
55677         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55678
55679         * lib/c-strstr.c: Complete rewrite for maintainability.
55680
55681         * modules/c-strstr-tests: New file.
55682         * tests/test-c-strstr.c: New file.
55683
55684 2007-02-11  Bruno Haible  <bruno@clisp.org>
55685
55686         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55687         5.2.1 and earlier, whereby \055 was treated just like the range
55688         delimiter '-'.
55689         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55690
55691 2007-02-08  Bruno Haible  <bruno@clisp.org>
55692
55693         * modules/regex (Depends-on): Add stdbool.
55694         Reported by Dalibor Topic <robilad@kaffe.org>.
55695
55696 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55697
55698         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55699         Prefer returning from main to exiting from it.
55700         Remove unnecessary parens after sizeof.
55701
55702 2007-02-05  Bruno Haible  <bruno@clisp.org>
55703
55704         New module mbssep.
55705         * modules/mbssep: New file.
55706         * lib/mbssep.c: New file.
55707         * lib/string_.h (strsep): Add a conditional link warning.
55708         (mbssep): New declaration.
55709         * m4/mbssep.m4: New file.
55710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55711         GNULIB_MBSSEP.
55712         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55713         * MODULES.html.sh (Internationalization functions): Add mbssep.
55714
55715 2007-02-05  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55718         Optimize search in case of 1 delimiter.
55719
55720 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55721
55722         * lib/acl.h: Include sys/types.h before sys/acl.h.
55723
55724 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55725
55726         Merge upstream fix for glibc bugzilla #3957:
55727
55728         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55729
55730         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55731         bit for RE_HAT_LISTS_NOT_NEWLINE.
55732         (build_charclass_op): Remove bogus comment.
55733
55734 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55735
55736         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55737
55738 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55741         * lib/memmem.c [!defined _LIBC]: Include config.h.
55742
55743 2007-02-04  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55746         warning message.
55747
55748 2007-02-04  Bruno Haible  <bruno@clisp.org>
55749
55750         New module mbstok_r.
55751         * modules/mbstok_r: New file.
55752         * lib/mbstok_r.c: New file.
55753         * lib/string_.h (strtok_r): Change argument names to match the
55754         comments. Add a conditional link warning.
55755         (mbstok_r): New declaration.
55756         * m4/mbstok_r.m4: New file.
55757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55758         GNULIB_MBSTOK_R.
55759         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55760         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55761
55762 2007-02-04  Bruno Haible  <bruno@clisp.org>
55763
55764         New module mbsspn.
55765         * modules/mbsspn: New file.
55766         * lib/mbsspn.c: New file.
55767         * lib/string_.h (strspn): Add a conditional link warning.
55768         (mbsspn): New declaration.
55769         * m4/mbsspn.m4: New file.
55770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55771         GNULIB_MBSSPN.
55772         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55773         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55774
55775 2007-02-04  Bruno Haible  <bruno@clisp.org>
55776
55777         New module mbspbrk.
55778         * modules/mbspbrk: New file.
55779         * lib/mbspbrk.c: New file.
55780         * lib/string_.h (strpbrk): Add a conditional link warning.
55781         (mbspbrk): New declaration.
55782         * m4/mbspbrk.m4: New file.
55783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55784         GNULIB_MBSPBRK.
55785         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55786         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55787
55788 2007-02-04  Bruno Haible  <bruno@clisp.org>
55789
55790         New module mbscspn.
55791         * modules/mbscspn: New file.
55792         * lib/mbscspn.c: New file.
55793         * lib/string_.h (strcspn): Add a conditional link warning.
55794         (mbscspn): New declaration.
55795         * m4/mbscspn.m4: New file.
55796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55797         GNULIB_MBSCSPN.
55798         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55799         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55800
55801 2007-02-04  Bruno Haible  <bruno@clisp.org>
55802
55803         New module mbscasestr, reduced goal of strcasestr.
55804         * modules/mbscasestr: New file.
55805         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55806         (mbscasestr): Renamed from strcasestr.
55807         * lib/strcasestr.c: Don't include mbuiter.h.
55808         (strcasestr): Remove support for multibyte locales.
55809         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55810         Change the conditional link warning.
55811         (mbscasestr): New declaration.
55812         * m4/mbscasestr.m4: New file.
55813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55814         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55815         REPLACE_STRCASESTR.
55816         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55818         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55820         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55821         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55822         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55823         (Depends-on): Remove mbuiter.
55824         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55825
55826 2007-02-04  Bruno Haible  <bruno@clisp.org>
55827
55828         Simplify handling of strncasecmp.
55829         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55830         the conditional link warning.
55831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55832         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55833         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55834         * modules/strcase (configure.ac): Don't invoke
55835         gl_STRING_MODULE_INDICATOR.
55836         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55837
55838 2007-02-04  Bruno Haible  <bruno@clisp.org>
55839
55840         New module mbscasecmp, reduced goal of strcasecmp.
55841         * modules/mbscasecmp: New file.
55842         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55843         (mbscasecmp): Renamed from strcasecmp.
55844         * lib/strcasecmp.c: Don't include mbuiter.h.
55845         (strcasecmp): Remove support for multibyte locales.
55846         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55847         Change the conditional link warning.
55848         (mbscasecmp): New declaration.
55849         * m4/mbscasecmp.m4: New file.
55850         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55851         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55852         REPLACE_STRCASECMP.
55853         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55855         GNULIB_MBSCASECMP.
55856         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55857         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55858         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55859         (Depends-on): Remove mbuiter.
55860         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55861
55862 2007-02-04  Bruno Haible  <bruno@clisp.org>
55863
55864         New module mbsstr. Remove module strstr.
55865         * modules/mbsstr: New file.
55866         * modules/strstr: Remove file.
55867         * lib/mbsstr.c: Renamed from lib/strstr.c.
55868         (mbsstr): Renamed from strstr.
55869         * lib/string_.h (strstr): Remove declaration. Change the conditional
55870         link warning.
55871         (mbsstr): New declaration.
55872         * m4/mbsstr.m4: New file.
55873         * m4/strstr.m4: Remove file.
55874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55875         REPLACE_STRSTR.
55876         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55877         Don't initialize GNULIB_STRSTR.
55878         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55879         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55880         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55881         (Support for systems lacking ANSI C 89): Remove strstr.
55882
55883 2007-02-04  Bruno Haible  <bruno@clisp.org>
55884
55885         New module mbsrchr.
55886         * modules/mbsrchr: New file.
55887         * lib/mbsrchr.c: New file.
55888         * lib/string_.h (strrchr): Add a conditional link warning.
55889         (mbsrchr): New declaration.
55890         * m4/mbsrchr.m4: New file.
55891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55892         GNULIB_MBSRCHR.
55893         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55894         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55895
55896 2007-02-04  Bruno Haible  <bruno@clisp.org>
55897
55898         New module mbschr.
55899         * modules/mbschr: New file.
55900         * lib/mbschr.c: New file.
55901         * lib/string_.h (strchr): Add a conditional link warning.
55902         (mbschr): New declaration.
55903         * m4/mbschr.m4: New file.
55904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55905         GNULIB_MBSCHR.
55906         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55907         * MODULES.html.sh (Internationalization functions): Add mbschr.
55908
55909 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55912
55913         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55914
55915 2007-02-04  Bruno Haible  <bruno@clisp.org>
55916
55917         New module description section 'configure.ac-early'.
55918         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55919         (func_get_autoconf_early_snippet): New function.
55920         (func_import, func_create_testdir): Use it. Remove special cases for
55921         modules 'extensions' and 'lock'.
55922         * modules/extensions (configure.ac-early): Require
55923         gl_USE_SYSTEM_EXTENSIONS.
55924         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55925
55926 2007-02-04  Bruno Haible  <bruno@clisp.org>
55927
55928         Make use of gcj-4.3's -fsource and -ftarget option.
55929         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55930         and if so try the options -fsource and -ftarget.
55931         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55932         source_version, ftarget_option, target_version arguments.
55933         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55934         (is_envjavac_oldgcj_14_14_usable): Renamed from
55935         is_envjavac_gcj_14_14_usable.
55936         (is_envjavac_oldgcj_14_13_usable): Renamed from
55937         is_envjavac_gcj_14_13_usable.
55938         (is_gcj_present): Update.
55939         (is_gcj_43, is_gcj43_usable): New functions.
55940         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55941         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55942         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55943         try the options -fsource and -ftarget.
55944
55945 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55946
55947         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55948         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55949         larger value.
55950
55951 2007-02-03  Jim Meyering  <jim@meyering.net>
55952
55953         Give tools a better chance to allocate space for very large buffers.
55954         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55955
55956         Make pwd and readlink work also when run with an unreadable parent dir
55957         on systems with openat support.
55958         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55959         provided getcwd function, even when we have openat support.
55960         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55961
55962 2007-02-02  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55965         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55966         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55967         portability problems if one of these functions is only used on specific
55968         platforms.
55969         Reported by Paul Eggert.
55970
55971 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55972
55973         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55974         is causing more trouble than it's curing.
55975         * lib/regex_internal.h (__mempcpy): Remove.
55976         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55977         (and make the code a tad smaller to boot).
55978         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55979
55980 2007-02-02  Jim Meyering  <jim@meyering.net>
55981
55982         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55983         section, not in the Makefile.am: one.
55984
55985 2007-02-02  Eric Blake  <ebb9@byu.net>
55986
55987         * lib/strchrnul.c: Always include config.h first.
55988
55989         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55990         gnulib strstr is not necessary here.
55991
55992 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55993
55994         * m4/socklen.m4: Fix typo.
55995
55996 2007-02-02  Eric Blake  <ebb9@byu.net>
55997
55998         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55999         * modules/netinet_in (Makefile.am): Likewise.
56000
56001 2007-02-01  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/string_.h (GL_LINK_WARNING): New macro.
56004         (strcasecmp, strstr, strcasestr): If provided by the system,
56005         conditionally define as a macro that leads to a warning instead of to
56006         an error.
56007         (strncasecmp): Conditionally define as a macro that leads to a warning.
56008
56009 2007-02-01  Karl Berry  <karl@gnu.org>
56010
56011         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56012
56013 2007-02-01  Bruno Haible  <bruno@clisp.org>
56014
56015         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56016         renamings.
56017
56018 2007-02-01  Eric Blake  <ebb9@byu.net>
56019
56020         * modules/regex (Depends-on): Revert dependence on mempcpy.
56021         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56022         module's definition of mempcpy.
56023         Reported by Paul Eggert.
56024
56025 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56028         the symbol XYZ before redefining it.  This fixes a problem with
56029         programs that don't use XYZ, when compiled on systems that define
56030         XYZ to something else.
56031
56032 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56033
56034         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56035         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56036         writeable to group or other and (2) is intended to have a special
56037         mode bit that is set or cleared.  In such a case, the directory
56038         should be neither group- nor other-writeable until the special
56039         mode bits are right.
56040
56041 2007-01-31  Eric Blake  <ebb9@byu.net>
56042
56043         * modules/mountlist (Depends-on): Add strstr.
56044
56045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56046         bug.
56047         * modules/string (Makefile.am): Remove redundant replacement.
56048         * modules/regex (Depends-on): Add mempcpy.
56049
56050 2007-01-31  Bruno Haible  <bruno@clisp.org>
56051
56052         New module description field 'Link'.
56053         * gnulib-tool (func_usage): Document --extract-link-directive.
56054         (sed_extract_prog): Recognize 'Link' directive.
56055         (func_get_link_directive): New function.
56056         (func_import): Show summary of link directives.
56057         Handle --extract-link-directive option.
56058         * modules/acl (Link): New section.
56059         * modules/clock-time (Link): New section.
56060         * modules/euidaccess (Link): New section.
56061         * modules/gettext (Link): New section.
56062         * modules/iconv (Link): New section.
56063         * modules/lock (Link): New section.
56064         * modules/nanosleep (Link): New section.
56065         * modules/readline (Link): New section.
56066
56067 2007-01-27  Bruno Haible  <bruno@clisp.org>
56068
56069         Enforce the use of gnulib modules for unportable <string.h> functions.
56070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56072         (gl_HEADER_STRING_H_BODY): Require it.
56073         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56074         the symbol XYZ to one that gives a link error.
56075         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56076         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56077         * modules/mempcpy (configure.ac): Likewise.
56078         * modules/memrchr (configure.ac): Likewise.
56079         * modules/stpcpy (configure.ac): Likewise.
56080         * modules/stpncpy (configure.ac): Likewise.
56081         * modules/strcase (configure.ac): Likewise.
56082         * modules/strcasestr (configure.ac): Likewise.
56083         * modules/strchrnul (configure.ac): Likewise.
56084         * modules/strdup (configure.ac): Likewise.
56085         * modules/strndup (configure.ac): Likewise.
56086         * modules/strnlen (configure.ac): Likewise.
56087         * modules/strpbrk (configure.ac): Likewise.
56088         * modules/strsep (configure.ac): Likewise.
56089         * modules/strstr (configure.ac): Likewise.
56090         * modules/strtok_r (configure.ac): Likewise.
56091
56092 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56093
56094         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56095
56096 2007-01-30  Jim Meyering  <jim@meyering.net>
56097
56098         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56099
56100 2007-01-29  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56103         * lib/execute.c: Likewise.
56104         * lib/pipe.c: Likewise.
56105         * lib/printf-args.h: Likewise.
56106         * lib/printf-args.c: Likewise.
56107         * lib/printf-parse.c: Likewise.
56108         * lib/vasnprintf.c: Likewise.
56109
56110 2007-01-29  Eric Blake  <ebb9@byu.net>
56111
56112         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56113         declaration.
56114
56115 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56116
56117         * lib/strptime.h (strptime): Use 'restrict' for args where
56118         POSIX requires this.
56119         * lib/strptime.c (strptime): Likewise.
56120         Change license notice from LGPL to GPL, since gnulib-tool will
56121         change this as needed.
56122         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56123         defined.
56124         Include "strptime.h" first, to check interface.
56125         Do not #undef _LIBC and _NL_CURRENT.
56126         Do not include <stdlib.h>; no longer needed.
56127         Include "time_r.h" and declare ptime_locale_status
56128         only if _LIBC is not defined.
56129         (__P): Remove unused macro.
56130         (match_string): Bring back glibc version, but use it only if _LIBC
56131         is defined.
56132         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56133         Remove unnecessary assertion and abort() call.
56134         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56135         * m4/strptime.m4: Fix serial number comment.
56136         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56137         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56138         (Depends-on): Add time_r.
56139
56140 2007-01-29  Bruno Haible  <bruno@clisp.org>
56141
56142         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56143         strptime.
56144         * modules/strptime (Depends-on): Add stdbool.
56145         * lib/strptime.h: Include <time.h> always. Add comments.
56146
56147 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56148
56149         * modules/strptime: New file.
56150         * lib/strptime.h: New file.
56151         * lib/strptime.c: New file.
56152         * m4/strptime.m4: New file.
56153
56154 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         * MODULES.html.sh: New module mpsort.
56157         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56158
56159         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56160         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56162         All uses changed.
56163         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56164         All uses changed.
56165         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56166         to _Restrict_.
56167         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56168         the parameter matches the prototype.
56169
56170 2007-01-28  Jim Meyering  <jim@meyering.net>
56171
56172         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56173         sys/time.h here, reverting that part of the previous patch:
56174         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56175
56176 2007-01-28  Bruno Haible  <bruno@clisp.org>
56177
56178         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56179         value of $(SYS_TIME_H).
56180         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56181         remove it conditionally, too. [added by Jim Meyering]
56182         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56183         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56184         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56185         GETTIMEOFDAY_REPLACEMENT to 1.
56186
56187 2007-01-28  Bruno Haible  <bruno@clisp.org>
56188
56189         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56190         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56192         Set UNISTD_H instead of UNISTD_H2.
56193         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56194
56195 2007-01-28  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56198         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56199
56200 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56201
56202         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56203         (func_create_testdir): Ensure C locale for `grep' and `tr'
56204         character ranges.
56205         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56206         ACLOCAL_AMFLAGS parsing state machine.
56207
56208 2007-01-27  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/unistr/base: Update.
56211
56212 2007-01-27  Bruno Haible  <bruno@clisp.org>
56213
56214         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56215         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56216         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56217         modules/unistr/u32-mbtouc.
56218         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56219         * lib/unistr.h: Update.
56220         * lib/linebreak.c: Update.
56221         * modules/unistr/u32-mbtouc: Renamed from
56222         modules/unistr/u32-mbtouc-safe.
56223         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56224         * lib/unistr.h: Update.
56225         * lib/unistr/u32-to-u8.c: Update.
56226         * lib/unistr/u32-to-u16.c: Update.
56227
56228 2007-01-27  Bruno Haible  <bruno@clisp.org>
56229
56230         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56231         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56232         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56233         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56234         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56235         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56236         modules/unistr/u16-mbtouc.
56237         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56238         * lib/unistr.h: Update.
56239         * lib/linebreak.c: Update.
56240         * modules/linebreak: Update.
56241         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56242         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56243         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56244         * modules/unistr/u16-mbtouc: Renamed from
56245         modules/unistr/u16-mbtouc-safe.
56246         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56247         * lib/unistr.h: Update.
56248         * lib/unistr/u16-to-u8.c: Update.
56249         * modules/unistr/u16-to-u8: Update.
56250         * lib/unistr/u16-to-u32.c: Update.
56251         * modules/unistr/u16-to-u32: Update.
56252
56253 2007-01-27  Bruno Haible  <bruno@clisp.org>
56254
56255         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56256         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56257         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56258         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56259         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56260         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56261         modules/unistr/u8-mbtouc.
56262         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56263         * lib/unistr.h: Update.
56264         * lib/striconveh.c: Update.
56265         * modules/striconveh: Update.
56266         * lib/linebreak.c: Update.
56267         * modules/linebreak: Update.
56268         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56269         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56270         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56271         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56272         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56273         * lib/unistr.h: Update.
56274         * lib/striconveh.c: Update.
56275         * modules/striconveh: Update.
56276         * lib/unistr/u8-to-u16.c: Update.
56277         * modules/unistr/u8-to-u16: Update.
56278         * lib/unistr/u8-to-u32.c: Update.
56279         * modules/unistr/u8-to-u32: Update.
56280
56281 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56282
56283         Sync from Libtool.
56284         * lib/argz.c: Do not include strings.h nor memory.h, include
56285         string.h unconditionally.  Patch by Simon Josefsson.
56286
56287 2007-01-27  Bruno Haible  <bruno@clisp.org>
56288
56289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56290         from gl_HEADER_STRING_H_BODY.
56291         (gl_HEADER_STRING_H_BODY): Require it.
56292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56293         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56294         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56295         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56297         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56299         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56300         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56302         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56303         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56304         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56305         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56307
56308 2007-01-27  Bruno Haible  <bruno@clisp.org>
56309
56310         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56311         check_PROGRAMS into noinst_PROGRAMS.
56312         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56313         check_PROGRAMS in this case.
56314         (func_import): Set for_test to false.
56315         (func_create_testdir): Set for_test to true.
56316
56317 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56318             Bruno Haible  <bruno@clisp.org>
56319
56320         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56321         (Depends-on): Add string.
56322         (Includes): Use <string.h> instead of strcasestr.h.
56323         * modules/string (Makefile.am): Also substitute the value of
56324         REPLACE_STRCASESTR.
56325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56326         assume strcasestr is declared in <string.h> not <strings.h>. Also
56327         set REPLACE_STRCASESTR.
56328         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56329         REPLACE_STRCASESTR.
56330         * lib/strcasestr.h: Remove file.
56331         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56332         * lib/string_.h (strcasestr): New declaration.
56333
56334 2007-01-27  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/string_.h: Use 'extern'.
56337
56338 2007-01-27  Jim Meyering  <jim@meyering.net>
56339
56340         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56341         of set-but-not-used local, "q".
56342
56343         * lib/mempcpy.c: Include <config.h> before <string.h>.
56344         This fixes a compilation error on HP-UX, due to the system's
56345         "restrict"-using mempcpy prototype.
56346
56347 2007-01-26  Bruno Haible  <bruno@clisp.org>
56348
56349         Small optimization.
56350         * lib/javacomp.c: Include c-strstr.h.
56351          (is_envjavac_gcj): Use c_strstr instead of strstr.
56352         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56353
56354 2007-01-26  Bruno Haible  <bruno@clisp.org>
56355
56356         * MODULES.html.sh (Unicode string functions): Add the new modules.
56357
56358         * modules/uniconv/u32-strconv-to-locale: New file.
56359         * lib/uniconv/u32-strconv-to-locale.c: New file.
56360
56361         * modules/uniconv/u16-strconv-to-locale: New file.
56362         * lib/uniconv/u16-strconv-to-locale.c: New file.
56363
56364         * modules/uniconv/u8-strconv-to-locale: New file.
56365         * lib/uniconv/u8-strconv-to-locale.c: New file.
56366
56367         * modules/uniconv/u32-strconv-from-locale: New file.
56368         * lib/uniconv/u32-strconv-from-locale.c: New file.
56369
56370         * modules/uniconv/u16-strconv-from-locale: New file.
56371         * lib/uniconv/u16-strconv-from-locale.c: New file.
56372
56373         * modules/uniconv/u8-strconv-from-locale: New file.
56374         * lib/uniconv/u8-strconv-from-locale.c: New file.
56375
56376         * modules/uniconv/u32-strconv-to-enc: New file.
56377         * lib/uniconv/u32-strconv-to-enc.c: New file.
56378         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56379         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56380
56381         * modules/uniconv/u16-strconv-to-enc: New file.
56382         * lib/uniconv/u16-strconv-to-enc.c: New file.
56383         * lib/uniconv/u-strconv-to-enc.h: New file.
56384         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56385         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56386
56387         * modules/uniconv/u8-strconv-to-enc: New file.
56388         * lib/uniconv/u8-strconv-to-enc.c: New file.
56389         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56390         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56391
56392         * modules/uniconv/u32-strconv-from-enc: New file.
56393         * lib/uniconv/u32-strconv-from-enc.c: New file.
56394         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56395         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56396
56397         * modules/uniconv/u16-strconv-from-enc: New file.
56398         * lib/uniconv/u16-strconv-from-enc.c: New file.
56399         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56400         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56401
56402         * modules/uniconv/u8-strconv-from-enc: New file.
56403         * lib/uniconv/u8-strconv-from-enc.c: New file.
56404         * lib/uniconv/u-strconv-from-enc.h: New file.
56405         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56406         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56407
56408         * modules/uniconv/u32-conv-from-enc: New file.
56409         * lib/uniconv/u32-conv-from-enc.c: New file.
56410         * modules/uniconv/u32-conv-from-enc-tests: New file.
56411         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56412
56413         * modules/uniconv/u16-conv-from-enc: New file.
56414         * lib/uniconv/u16-conv-from-enc.c: New file.
56415         * lib/uniconv/u-conv-from-enc.h: New file.
56416         * modules/uniconv/u16-conv-from-enc-tests: New file.
56417         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56418
56419         * modules/uniconv/u8-conv-from-enc: New file.
56420         * lib/uniconv/u8-conv-from-enc.c: New file.
56421         * modules/uniconv/u8-conv-from-enc-tests: New file.
56422         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56423
56424         * modules/uniconv/base: New file.
56425         * lib/uniconv.h: New file.
56426
56427 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * doc/gnulib-tool.texi (Initial import): Update to match current
56430         behavior with strdup module.
56431         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56432         * lib/memmem.h: Remove; all uses removed.  This is now done
56433         by <string.h>.
56434         * lib/mempcpy.h: Likewise.
56435         * lib/memrchr.h: Likewise.
56436         * lib/stpcpy.h: Likewise.
56437         * lib/stpncpy.h: Likewise.
56438         * lib/strcase.h: Likewise.
56439         * lib/strchrnul.h: Likewise.
56440         * lib/strdup.h: Likewise.
56441         * lib/strndup.h: Likewise.
56442         * lib/strnlen.h: Likewise.
56443         * lib/strpbrk.h: Likewise.
56444         * lib/strsep.h: Likewise.
56445         * lib/strstr.h: Likewise.
56446         * lib/strtok_r.h: Likewise.
56447         * lib/string_.h: New file.
56448         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56449         Rely on <string.h> instead.
56450         * lib/canon-host.c: Likewise.
56451         * lib/chdir-long.c: Likewise.
56452         * lib/concatpath.c: Likewise.
56453         * lib/exclude.c: Likewise.
56454         * lib/fchdir.c: Likewise.
56455         * lib/getaddrinfo.c: Likewise.
56456         * lib/getcwd.c: Likewise.
56457         * lib/getsubopt.c: Likewise.
56458         * lib/glob.c: Likewise.
56459         * lib/hard-locale.c: Likewise.
56460         * lib/iconvme.c: Likewise.
56461         * lib/javacomp.c: Likewise.
56462         * lib/mempcpy.c: Likewise.
56463         * lib/memrchr.c: Likewise.
56464         * lib/regex_internal.h: Likewise.
56465         * lib/stpncpy.c: Likewise.
56466         * lib/strcasecmp.c: Likewise.
56467         * lib/strchrnul.c: Likewise.
56468         * lib/strdup.c: Likewise.
56469         * lib/striconv.c: Likewise.
56470         * lib/striconveh.c: Likewise.
56471         * lib/striconveha.c: Likewise.
56472         * lib/strncasecmp.c: Likewise.
56473         * lib/strndup.c: Likewise.
56474         * lib/strnlen.c: Likewise.
56475         * lib/strsep.c: Likewise.
56476         * lib/strstr.c: Likewise.
56477         * lib/strtok_r.c: Likewise.
56478         * lib/userspec.c: Likewise.
56479         * lib/w32spawn.h: Likewise.
56480         * lib/xstrndup.c: Likewise.
56481         * lib/mountlist.c (strstr): Remove decl.
56482         * m4/string_h.m4: New file.
56483         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56486         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56487         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56488         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56489         Set REPLACE_STRCASECMP if necessary.
56490         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56491         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56492         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56493         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56494         HAVE_DECL_STRDUP if necessary.
56495         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56496         since gl_FUNC_STRNDUP does that now.
56497         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56498         Check for decl here...
56499         (gl_PREREQ_STRNLEN): ... not here.
56500         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56501         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56502         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56504         necessary.
56505         * modules/string: New file.
56506         * modules/memmem (Files): Remove special-purpose include file.
56507         (Depends-on): Add string.
56508         (Include): Include <string.h>, not the removed file.
56509         * modules/mempcpy: Likewise.
56510         * modules/memrchr: Likewise.
56511         * modules/stpcpy: Likewise.
56512         * modules/stpncpy: Likewise.
56513         * modules/strcase: Likewise.
56514         * modules/strchrnul: Likewise.
56515         * modules/strdup: Likewise.
56516         * modules/strndup: Likewise.
56517         * modules/strnlen: Likewise.
56518         * modules/strpbrk: Likewise.
56519         * modules/strsep: Likewise.
56520         * modules/strstr: Likewise.
56521         * modules/strtok_r: Likewise.
56522         * tests/test-dirname.c: Don't include "strdup.h", since
56523         <string.h> now suffices.
56524         * tests/test-memmem.c: Don't include "memmem.h", since
56525         <string.h> now suffices.
56526
56527 2007-01-25  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56530         *resultp is 0.
56531
56532         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56533         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56534         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56535         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56536
56537         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56538         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56539         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56540         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56541         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56542         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56543
56544 2007-01-24  Bruno Haible  <bruno@clisp.org>
56545
56546         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56548         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56549         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56550         gl_FUNC_FTS_CORE.
56551         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56552         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56553         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56554         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56555         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56556         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56557         gl_FUNC_FCHOWNAT.
56558         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56559         gl_FUNC_STRFTIME.
56560         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56561         Reported by Ralf Wildenhues.
56562
56563 2007-01-24  Bruno Haible  <bruno@clisp.org>
56564
56565         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56566         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56567         gl_GETADDRINFO.
56568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56569         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56570         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56571
56572 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56575         Don't use 'exit'; just return from 'main'.
56576         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56577
56578         * lib/fnmatch_.h: Readjust white space and comments to match
56579         glibc, to avoid spurious diffs.
56580
56581 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56582
56583         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56584         2004-12-01 change by Jakub Jelinek, since this code won't compile
56585         if !LIBC.  Problem reported by Bob Proulx.
56586
56587 2007-01-23  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/striconveh.c: Include c-strcaseeq.h.
56590         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56591         * modules/striconveh (Depends-on): Add c-strcaseeq.
56592
56593 2007-01-23  Bruno Haible  <bruno@clisp.org>
56594
56595         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56596
56597         * modules/c-strcaseeq: New file.
56598         * lib/c-strcaseeq.h: New file.
56599
56600         * modules/streq: New file.
56601         * lib/streq.h: New file.
56602
56603 2007-01-23  Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/striconveha-tests: New file.
56606         * tests/test-striconveha.c: New file.
56607
56608         * lib/striconveha.h: Include <stdbool.h>.
56609         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56610         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56611         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56612         (mem_iconveha): New function.
56613         (str_iconveha_notranslit): Renamed from str_iconveha.
56614         (str_iconveha): New function.
56615         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56616         c-strcase.
56617
56618 2007-01-23  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56621         encodings without forgiving before trying any encoding with handler.
56622         (str_iconveha): Try all encodings without forgiving before trying any
56623         encoding with handler.
56624
56625 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56626
56627         Import the following changes from libc.
56628
56629         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56630
56631         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56632
56633         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56634
56635         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56636         normal_bracket label.
56637
56638         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56639
56640         [BZ #361]
56641         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56642         to normal_bracket after fetching the next character.
56643
56644 2007-01-22  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56647         argument.
56648         * lib/striconveh.c (iconv_carefully_1): New function.
56649         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56650         argument.
56651         (str_cd_iconveh): Update.
56652         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56653         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56654         * tests/test-striconveh.c (MAGIC): New macro.
56655         (new_offsets): New function.
56656         (main): Test call with and without offsets.
56657
56658 2007-01-22  Bruno Haible  <bruno@clisp.org>
56659
56660         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56661         * modules/sys_select (Makefile.am): Likewise.
56662         * modules/sys_socket (Makefile.am): Likewise.
56663         * modules/sys_time (Makefile.am): Likewise.
56664
56665 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56666
56667         * modules/gettimeofday (License): Change from GPL to LGPL, since
56668         gettimeofday is a library function.
56669
56670 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56671
56672         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56673
56674 2007-01-21  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56677
56678 2007-01-21  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/striconveha: New file.
56681         * lib/striconveha.h: New file.
56682         * lib/striconveha.c: New file.
56683         * MODULES.html.sh (Internationalization functions): Add striconveha.
56684         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56685         string.
56686         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56687
56688 2007-01-21  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56691         * lib/striconveh.c (str_iconveh): Likewise.
56692
56693 2007-01-21  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/striconveh.h (mem_iconveh): New declaration.
56696         * lib/striconveh.c (mem_iconveh): New function.
56697         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56698
56699 2007-01-21  Bruno Haible  <bruno@clisp.org>
56700
56701         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56702
56703         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56704         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56705         original result buffer.
56706         (str_cd_iconveh): Update.
56707         * tests/test-striconveh.c (main): Update.
56708
56709         * lib/striconv.h (mem_cd_iconv): Change specification.
56710         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56711         result buffer.
56712         (str_cd_iconv): Update.
56713         * tests/test-striconv.c (main): Update.
56714
56715 2007-01-21  Bruno Haible  <bruno@clisp.org>
56716
56717         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56718
56719 2007-01-20  Jim Meyering  <jim@meyering.net>
56720
56721         * lib/userspec.c (parse_with_separator): If a user or group string
56722         starts with "+", skip the corresponding name-to-ID look-up, since
56723         such a look-up must fail: user and group names may not include "+".
56724
56725 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56728         since we now assume the sys_time module.
56729         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56730         check for sys/time.h; no longer needed.
56731         * modules/poll (Depends-on): Depend on sys_time.
56732
56733 2007-01-18  Bruno Haible  <bruno@clisp.org>
56734
56735         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56736         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56737
56738         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56739         gettimeofday.
56740
56741         * tests/test-gettimeofday.c: Include <time.h>.
56742         (dummy): Remove variable.
56743
56744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56745         gl_HEADER_SYS_TIME_H.
56746         (gl_HEADER_SYS_TIME_H): New macro.
56747
56748         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56749         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56751         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56752         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56754         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56755         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56756         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56757         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56758         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56759
56760         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56761         last change; it caused a compilation error when cross-compiling to
56762         Cygwin.
56763
56764 2007-01-18  Jim Meyering  <jim@meyering.net>
56765
56766         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56767         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56768         than the race-prone "test -d sys || mkdir sys".
56769         (configure.ac): Use AC_PROG_MKDIR_P.
56770         * modules/sys_select: Likewise.
56771         * modules/sys_socket: Likewise.
56772         * modules/sys_time: Likewise.
56773
56774 2007-01-18  Eric Blake  <ebb9@byu.net>
56775
56776         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56777         replace gettimeofday.
56778         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56779         name, to avoid infinite recursion.
56780
56781 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56782
56783         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56784         module sys_time.
56785         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56786         assume timespec.h defines struct timeval.
56787         * lib/settime.c: Likewise.
56788         * lib/utimens.c: Likewise.
56789         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56790         since we now assume the gettimeofday module.
56791         * lib/tempname.c (__gen_tempname): Likewise.
56792         * lib/gettimeofday.h: Remove.
56793         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56794         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56795         Include <time.h>, for 'time()'.
56796         (localtime_buffer_addr): Also use this workaround if
56797         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56798         to simplify the uses.  All uses changed.
56799         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56800         that #undef is inside {}, and 'const' follows type name consistently.
56801         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56802         (gettimeofday): Do not use the maximum possible value for
56803         tv->tv_usec, since that might break usages other than ls.c.
56804         Instead, we'll leave ls.c alone.  This undoes today's patch
56805         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56806         we've never observed the problem but might as well keep the
56807         canary.
56808         * lib/nanosleep.c: Include timespec.h first, for interface check.
56809         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56810         now assume the sys_time module.
56811         * lib/tempname.c: Likewise.
56812         * lib/timespec.h: Likewise.
56813         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56814         needed.
56815         * lib/strftime.c: Likewise.
56816         * lib/timespec.h: Likewise.
56817         * lib/posixtm.c: Include posixtm.h first, for interface check.
56818         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56819         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56820         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56821         * lib/sys_time_.h: New file.
56822         * lib/timespec.h (struct timespec): Use long int, not long.
56823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56824         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56825         Remove obsolescent call to AC_HEADER_TIME.
56826         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56829         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56830         Likewise.
56831         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56832         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56834         into the sys_time module.  Check for gettimeofday just once.
56835         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56836         for gettimeofday signature to just check the signature.  Merely
56837         compile it, since linking doesn't test signature.  Improve test for
56838         whether gettimeofday.o is actually needed.
56839         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56840         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56841         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56842         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56843         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56844         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56845         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56846         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56847         than worrying about sys/time.h.
56848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56849         Don't bother worrying about TIME_WITH_SYS_TIME.
56850         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56851         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56852         * m4/sys_time_h.m4: New file.
56853         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56854         Don't include sys/time.h.  Return from main rather than exiting.
56855         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56856         all uses changed.
56857         * modules/gethrxtime (Depends-on): Add sys_time.
56858         * modules/gettime (Depends-on): Likewise.
56859         * modules/gettimeofday (Depends-on): Likewise.
56860         * modules/nanosleep (Depends-on): Likewise.
56861         * modules/settime (Depends-on): Likewise.
56862         * modules/tempname (Depends-on): Likewise.
56863         * modules/utimens (Depends-on): Likewise.
56864         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56865         (Include): Change back to <sys/time.h>.
56866         (Maintainer): Add self.
56867         * modules/sys_time: New file.
56868         * modules/tempname (Depends-on): Add gettimeofday.
56869         * tests/test-gettimeofday.c: Include <sys/time.h>
56870         rather than gettimeofday.h.
56871
56872 2007-01-17  Bruno Haible  <bruno@clisp.org>
56873
56874         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56875         the license default to GPL.
56876         (func_create_testdir): Don't complain if a module is LGPL and its
56877         tests module depends on GPLed modules.
56878
56879 2007-01-17  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/gettimeofday.c (gettimeofday): Add code for the case
56882         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56883         maximum possible value for tv->tv_usec, rather than the minimum one.
56884
56885 2005-10-08  Martin Lambers  <marlam@marlam.de>
56886 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56887 2007-01-16  Bruno Haible  <bruno@clisp.org>
56888
56889         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56890         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56891         gl_FUNC_GETTIMEOFDAY.
56892         (Include): Add gettimeofday.h.
56893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56894         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56895         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56896         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56897         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56898         * lib/gettimeofday.h: New file.
56899         * lib/gettimeofday.c: Include <sys/timeb.h>.
56900         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56901         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56902         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56903         fall back on time().
56904
56905         * tests/test-gettimeofday.c: New file.
56906         * modules/gettimeofday-tests: New file.
56907
56908 2007-01-16  Eric Blake  <ebb9@byu.net>
56909
56910         * modules/fnmatch (Depends-on): Depend on wchar.
56911         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56912         * m4/fnmatch.m4: Likewise.
56913         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56914         * m4/mbchar.m4: Likewise.
56915         * modules/mbswidth (Depends-on): Depend on wchar.
56916         * lib/mbswidth.c: Assume <wchar.h>.
56917         * m4/mbswidth.m4: Likewise.
56918         * modules/quotearg (Depends-on): Depend on wchar.
56919         * lib/quotearg.c: Assume <wchar.h>.
56920         * m4/quotearg.m4: Likewise.
56921         * modules/regex (Depends-on): Depend on wchar.
56922         * lib/regex_internal.h: Assume <wchar.h>.
56923         * m4/regex.m4: Likewise.
56924         * modules/stdint (Depends-on): Depend on wchar.
56925         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56926         * m4/stdint.m4: Likewise.
56927         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56928         * modules/strftime (Depends-on): Depend on wchar.
56929         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56930         * modules/strtol (Depends-on): Depend on wchar.
56931         * lib/strtol.c: Assume <wchar.h>.
56932         * modules/wcwidth (Depends-on): Depend on wchar.
56933         * lib/wcwidth.h: Assume <wchar.h>.
56934         * m4/wcwidth.m4: Likewise.
56935
56936 2007-01-16  Bruno Haible  <bruno@clisp.org>
56937
56938         * modules/csharpexec-script: New, created from...
56939         * modules/csharpexec: ... this.
56940
56941 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56942
56943         * modules/javaexec-script: New, created from...
56944         * modules/javaexec: ... this.
56945
56946 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56947
56948         * modules/poll (Dependencies): Add sys_select.
56949
56950 2007-01-15  Jim Meyering  <jim@meyering.net>
56951
56952         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56953         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56954         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56955         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56956
56957 2007-01-15  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/striconveh: New file.
56960         * lib/striconveh.h: New file.
56961         * lib/striconveh.c: New file.
56962         * MODULES.html.sh (Internationalization functions): Add striconveh.
56963
56964         * modules/striconveh-tests: New file.
56965         * tests/test-striconveh.c: New file.
56966
56967 2007-01-15  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56970         not from GNU libiconv or GNU libc.
56971
56972 2007-01-15  Bruno Haible  <bruno@clisp.org>
56973
56974         * doc/gnulib-intro.texi (Copyright): Explain the different license
56975         terms for module descriptions, autoconf macros, tests, documentation.
56976
56977 2007-01-14  Bruno Haible  <bruno@clisp.org>
56978
56979         * modules/striconv-tests: New file.
56980         * tests/test-striconv.c: New file.
56981
56982 2007-01-14  Bruno Haible  <bruno@clisp.org>
56983
56984         * modules/iconv-tests: New file.
56985         * tests/test-iconv.c: New file.
56986
56987 2007-01-14  Bruno Haible  <bruno@clisp.org>
56988
56989         * gnulib-tool (func_get_license): For test modules, use the license of
56990         the main module.
56991
56992 2007-01-14  Bruno Haible  <bruno@clisp.org>
56993
56994         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56995         if iconv is found to exist.
56996
56997 2007-01-14  Bruno Haible  <bruno@clisp.org>
56998
56999         * modules/c-ctype-tests: New file.
57000         * tests/test-c-ctype.c: New file.
57001
57002 2007-01-14  Bruno Haible  <bruno@clisp.org>
57003
57004         * modules/binary-io-tests: New file.
57005         * tests/test-binary-io.sh: New file.
57006         * tests/test-binary-io.c: New file.
57007
57008 2007-01-14  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/array-oset-tests: New file.
57011         * tests/test-array_oset.c: New file.
57012
57013 2007-01-14  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/array-list-tests: New file.
57016         * tests/test-array_list.c: New file.
57017
57018 2007-01-14  Bruno Haible  <bruno@clisp.org>
57019
57020         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57021         and make.
57022         Reported by Simon Josefsson in
57023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57024
57025 2007-01-14  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/allocsa-tests: New file.
57028         * tests/test-allocsa.c: New file.
57029
57030 2007-01-14  Bruno Haible  <bruno@clisp.org>
57031
57032         * modules/fchdir (Depends-on): Add absolute-header.
57033         * modules/unistd (Depends-on): Likewise.
57034
57035 2006-12-30  Bruno Haible  <bruno@clisp.org>
57036
57037         * modules/fchdir: New file.
57038         * modules/unistd (Files): Add lib/unistd_.h.
57039         (Makefile.am): Generate unistd.h from unistd_.h.
57040         * lib/fchdir.c: New file.
57041         * lib/dirent_.h: New file.
57042         * lib/unistd_.h: New file.
57043         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57044         * m4/fchdir.m4: New file.
57045         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57046         (gl_HEADER_UNISTD): Invoke it.
57047         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57048         function.
57049         * lib/backupfile.c (opendir, closedir): Undefine.
57050         * lib/chown.c (open, close): Undefine.
57051         * lib/clean-temp.c (open, close): Undefine.
57052         * lib/copy-file.c (open, close): Undefine.
57053         * lib/execute.c (open, close): Undefine.
57054         * lib/fsusage.c (open, close): Undefine.
57055         * lib/gc-gnulib.c (open, close): Undefine.
57056         * lib/getcwd.c (opendir, closedir): Undefine.
57057         * lib/glob.c (opendir, closedir): Undefine.
57058         * lib/javacomp.c (open, close): Undefine.
57059         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57060         * lib/openat-proc.c (open, close): Undefine.
57061         * lib/pagealign_alloc.c (open, close): Undefine.
57062         * lib/pipe.c (open, close): Undefine.
57063         * lib/progreloc.c (open, close): Undefine.
57064         * lib/savedir.c (opendir, closedir): Undefine.
57065         * lib/utime.c (open, close): Undefine.
57066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57067
57068 2007-01-10  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57071
57072 2007-01-12  Eric Blake  <ebb9@byu.net>
57073
57074         Provide a robust <wchar.h>.  Further simplifications are now
57075         possible in other modules, but not included here.
57076         * modules/wchar: New module.
57077         * m4/wchar.m4: New file.
57078         * lib/wchar_.h: Likewise.
57079         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57080         of the new module.
57081         * MODULES.html.sh (Extended multibyte and wide character utilities):
57082         New section.
57083
57084 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57085
57086         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57087         to a reasonable default for memory allocation.
57088         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57089         file system that reports garbage st_size values for symlinks.
57090         Problem reported by Liyang Hu.
57091
57092 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57093
57094         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57095         Emacs .#* auto-save files).
57096
57097 2007-01-11  Bruno Haible  <bruno@clisp.org>
57098
57099         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57100         directory.
57101
57102 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         Use @...@ consistently in lib/wctype_.h.
57105         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57106         on it being set to 1 or 0.
57107         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57108         go back to AC_SUBSTing it.
57109         * modules/wctype (Makefile.am): Undo previous change.
57110
57111 2007-01-10  Eric Blake  <ebb9@byu.net>
57112
57113         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57114         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57115         * modules/wctype (Makefile.am): Likewise.
57116         Reported by Chris McGuire.
57117
57118 2007-01-10  Jim Meyering  <jim@meyering.net>
57119
57120         fts.c: a small readability/maintainability improvement
57121         * lib/fts.c (fts_read): Make this code slightly more readable and
57122         maintainable by hoisting the "sp->fts_cur = p" assignments to
57123         immediately follow the statements that set P.  Derived from
57124         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57125
57126 2007-01-10  Eric Blake  <ebb9@byu.net>
57127
57128         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57129         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57131         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57132         Reported by Chris McGuire.
57133
57134 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57135
57136         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57137         in sed script.
57138
57139 2007-01-09  Bruno Haible  <bruno@clisp.org>
57140
57141         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57142         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57143         variables.
57144         (func_module): Use them.
57145
57146 2007-01-09  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/unistr/base: New file.
57149         * lib/unistr.h: New file.
57150
57151         * modules/unistr/u8-to-u16: New file.
57152         * lib/unistr/u8-to-u16.c: New file.
57153
57154         * modules/unistr/u8-to-u32: New file.
57155         * lib/unistr/u8-to-u32.c: New file.
57156
57157         * modules/unistr/u16-to-u8: New file.
57158         * lib/unistr/u16-to-u8.c: New file.
57159
57160         * modules/unistr/u16-to-u32: New file.
57161         * lib/unistr/u16-to-u32.c: New file.
57162
57163         * modules/unistr/u32-to-u8: New file.
57164         * lib/unistr/u32-to-u8.c: New file.
57165
57166         * modules/unistr/u32-to-u16: New file.
57167         * lib/unistr/u32-to-u16.c: New file.
57168
57169         * modules/unistr/u8-check: New file.
57170         * modules/unistr/u16-check: New file.
57171         * modules/unistr/u32-check: New file.
57172         * lib/unistr/u8-check.c: New file.
57173         * lib/unistr/u16-check.c: New file.
57174         * lib/unistr/u32-check.c: New file.
57175
57176         * modules/unistr/u8-chr: New file.
57177         * modules/unistr/u16-chr: New file.
57178         * modules/unistr/u32-chr: New file.
57179         * lib/unistr/u8-chr.c: New file.
57180         * lib/unistr/u16-chr.c: New file.
57181         * lib/unistr/u32-chr.c: New file.
57182
57183         * modules/unistr/u8-cmp: New file.
57184         * modules/unistr/u16-cmp: New file.
57185         * modules/unistr/u32-cmp: New file.
57186         * lib/unistr/u8-cmp.c: New file.
57187         * lib/unistr/u16-cmp.c: New file.
57188         * lib/unistr/u32-cmp.c: New file.
57189
57190         * modules/unistr/u8-cpy: New file.
57191         * modules/unistr/u16-cpy: New file.
57192         * modules/unistr/u32-cpy: New file.
57193         * lib/unistr/u8-cpy.c: New file.
57194         * lib/unistr/u16-cpy.c: New file.
57195         * lib/unistr/u32-cpy.c: New file.
57196         * lib/unistr/u-cpy.h: New file.
57197
57198         * modules/unistr/u8-cpy-alloc: New file.
57199         * modules/unistr/u16-cpy-alloc: New file.
57200         * modules/unistr/u32-cpy-alloc: New file.
57201         * lib/unistr/u8-cpy-alloc.c: New file.
57202         * lib/unistr/u16-cpy-alloc.c: New file.
57203         * lib/unistr/u32-cpy-alloc.c: New file.
57204         * lib/unistr/u-cpy-alloc.h: New file.
57205
57206         * modules/unistr/u8-endswith: New file.
57207         * modules/unistr/u16-endswith: New file.
57208         * modules/unistr/u32-endswith: New file.
57209         * lib/unistr/u8-endswith.c: New file.
57210         * lib/unistr/u16-endswith.c: New file.
57211         * lib/unistr/u32-endswith.c: New file.
57212         * lib/unistr/u-endswith.h: New file.
57213
57214         * modules/unistr/u8-mblen: New file.
57215         * modules/unistr/u16-mblen: New file.
57216         * modules/unistr/u32-mblen: New file.
57217         * lib/unistr/u8-mblen.c: New file.
57218         * lib/unistr/u16-mblen.c: New file.
57219         * lib/unistr/u32-mblen.c: New file.
57220
57221         * modules/unistr/u8-mbtouc: New file.
57222         * modules/unistr/u16-mbtouc: New file.
57223         * modules/unistr/u32-mbtouc: New file.
57224         * lib/unistr/u8-mbtouc.c: New file.
57225         * lib/unistr/u16-mbtouc.c: New file.
57226         * lib/unistr/u32-mbtouc.c: New file.
57227
57228         * modules/unistr/u8-mbtouc-safe: New file.
57229         * modules/unistr/u16-mbtouc-safe: New file.
57230         * modules/unistr/u32-mbtouc-safe: New file.
57231         * lib/unistr/u8-mbtouc-safe.c: New file.
57232         * lib/unistr/u16-mbtouc-safe.c: New file.
57233         * lib/unistr/u32-mbtouc-safe.c: New file.
57234
57235         * modules/unistr/u8-move: New file.
57236         * modules/unistr/u16-move: New file.
57237         * modules/unistr/u32-move: New file.
57238         * lib/unistr/u8-move.c: New file.
57239         * lib/unistr/u16-move.c: New file.
57240         * lib/unistr/u32-move.c: New file.
57241         * lib/unistr/u-move.h: New file.
57242
57243         * modules/unistr/u8-next: New file.
57244         * modules/unistr/u16-next: New file.
57245         * modules/unistr/u32-next: New file.
57246         * lib/unistr/u8-next.c: New file.
57247         * lib/unistr/u16-next.c: New file.
57248         * lib/unistr/u32-next.c: New file.
57249
57250         * modules/unistr/u8-prev: New file.
57251         * modules/unistr/u16-prev: New file.
57252         * modules/unistr/u32-prev: New file.
57253         * lib/unistr/u8-prev.c: New file.
57254         * lib/unistr/u16-prev.c: New file.
57255         * lib/unistr/u32-prev.c: New file.
57256
57257         * modules/unistr/u8-set: New file.
57258         * modules/unistr/u16-set: New file.
57259         * modules/unistr/u32-set: New file.
57260         * lib/unistr/u8-set.c: New file.
57261         * lib/unistr/u16-set.c: New file.
57262         * lib/unistr/u32-set.c: New file.
57263         * lib/unistr/u-set.h: New file.
57264
57265         * modules/unistr/u8-startswith: New file.
57266         * modules/unistr/u16-startswith: New file.
57267         * modules/unistr/u32-startswith: New file.
57268         * lib/unistr/u8-startswith.c: New file.
57269         * lib/unistr/u16-startswith.c: New file.
57270         * lib/unistr/u32-startswith.c: New file.
57271         * lib/unistr/u-startswith.h: New file.
57272
57273         * modules/unistr/u8-stpcpy: New file.
57274         * modules/unistr/u16-stpcpy: New file.
57275         * modules/unistr/u32-stpcpy: New file.
57276         * lib/unistr/u8-stpcpy.c: New file.
57277         * lib/unistr/u16-stpcpy.c: New file.
57278         * lib/unistr/u32-stpcpy.c: New file.
57279         * lib/unistr/u-stpcpy.h: New file.
57280
57281         * modules/unistr/u8-stpncpy: New file.
57282         * modules/unistr/u16-stpncpy: New file.
57283         * modules/unistr/u32-stpncpy: New file.
57284         * lib/unistr/u8-stpncpy.c: New file.
57285         * lib/unistr/u16-stpncpy.c: New file.
57286         * lib/unistr/u32-stpncpy.c: New file.
57287         * lib/unistr/u-stpncpy.h: New file.
57288
57289         * modules/unistr/u8-strcat: New file.
57290         * modules/unistr/u16-strcat: New file.
57291         * modules/unistr/u32-strcat: New file.
57292         * lib/unistr/u8-strcat.c: New file.
57293         * lib/unistr/u16-strcat.c: New file.
57294         * lib/unistr/u32-strcat.c: New file.
57295         * lib/unistr/u-strcat.h: New file.
57296
57297         * modules/unistr/u8-strchr: New file.
57298         * modules/unistr/u16-strchr: New file.
57299         * modules/unistr/u32-strchr: New file.
57300         * lib/unistr/u8-strchr.c: New file.
57301         * lib/unistr/u16-strchr.c: New file.
57302         * lib/unistr/u32-strchr.c: New file.
57303
57304         * modules/unistr/u8-strcmp: New file.
57305         * modules/unistr/u16-strcmp: New file.
57306         * modules/unistr/u32-strcmp: New file.
57307         * lib/unistr/u8-strcmp.c: New file.
57308         * lib/unistr/u16-strcmp.c: New file.
57309         * lib/unistr/u32-strcmp.c: New file.
57310
57311         * modules/unistr/u8-strcpy: New file.
57312         * modules/unistr/u16-strcpy: New file.
57313         * modules/unistr/u32-strcpy: New file.
57314         * lib/unistr/u8-strcpy.c: New file.
57315         * lib/unistr/u16-strcpy.c: New file.
57316         * lib/unistr/u32-strcpy.c: New file.
57317         * lib/unistr/u-strcpy.h: New file.
57318
57319         * modules/unistr/u8-strcspn: New file.
57320         * modules/unistr/u16-strcspn: New file.
57321         * modules/unistr/u32-strcspn: New file.
57322         * lib/unistr/u8-strcspn.c: New file.
57323         * lib/unistr/u16-strcspn.c: New file.
57324         * lib/unistr/u32-strcspn.c: New file.
57325         * lib/unistr/u-strcspn.h: New file.
57326
57327         * modules/unistr/u8-strdup: New file.
57328         * modules/unistr/u16-strdup: New file.
57329         * modules/unistr/u32-strdup: New file.
57330         * lib/unistr/u8-strdup.c: New file.
57331         * lib/unistr/u16-strdup.c: New file.
57332         * lib/unistr/u32-strdup.c: New file.
57333         * lib/unistr/u-strdup.h: New file.
57334
57335         * modules/unistr/u8-strlen: New file.
57336         * modules/unistr/u16-strlen: New file.
57337         * modules/unistr/u32-strlen: New file.
57338         * lib/unistr/u8-strlen.c: New file.
57339         * lib/unistr/u16-strlen.c: New file.
57340         * lib/unistr/u32-strlen.c: New file.
57341         * lib/unistr/u-strlen.h: New file.
57342
57343         * modules/unistr/u8-strmblen: New file.
57344         * modules/unistr/u16-strmblen: New file.
57345         * modules/unistr/u32-strmblen: New file.
57346         * lib/unistr/u8-strmblen.c: New file.
57347         * lib/unistr/u16-strmblen.c: New file.
57348         * lib/unistr/u32-strmblen.c: New file.
57349
57350         * modules/unistr/u8-strmbtouc: New file.
57351         * modules/unistr/u16-strmbtouc: New file.
57352         * modules/unistr/u32-strmbtouc: New file.
57353         * lib/unistr/u8-strmbtouc.c: New file.
57354         * lib/unistr/u16-strmbtouc.c: New file.
57355         * lib/unistr/u32-strmbtouc.c: New file.
57356
57357         * modules/unistr/u8-strncat: New file.
57358         * modules/unistr/u16-strncat: New file.
57359         * modules/unistr/u32-strncat: New file.
57360         * lib/unistr/u8-strncat.c: New file.
57361         * lib/unistr/u16-strncat.c: New file.
57362         * lib/unistr/u32-strncat.c: New file.
57363         * lib/unistr/u-strncat.h: New file.
57364
57365         * modules/unistr/u8-strncmp: New file.
57366         * modules/unistr/u16-strncmp: New file.
57367         * modules/unistr/u32-strncmp: New file.
57368         * lib/unistr/u8-strncmp.c: New file.
57369         * lib/unistr/u16-strncmp.c: New file.
57370         * lib/unistr/u32-strncmp.c: New file.
57371
57372         * modules/unistr/u8-strncpy: New file.
57373         * modules/unistr/u16-strncpy: New file.
57374         * modules/unistr/u32-strncpy: New file.
57375         * lib/unistr/u8-strncpy.c: New file.
57376         * lib/unistr/u16-strncpy.c: New file.
57377         * lib/unistr/u32-strncpy.c: New file.
57378         * lib/unistr/u-strncpy.h: New file.
57379
57380         * modules/unistr/u8-strnlen: New file.
57381         * modules/unistr/u16-strnlen: New file.
57382         * modules/unistr/u32-strnlen: New file.
57383         * lib/unistr/u8-strnlen.c: New file.
57384         * lib/unistr/u16-strnlen.c: New file.
57385         * lib/unistr/u32-strnlen.c: New file.
57386         * lib/unistr/u-strnlen.h: New file.
57387
57388         * modules/unistr/u8-strpbrk: New file.
57389         * modules/unistr/u16-strpbrk: New file.
57390         * modules/unistr/u32-strpbrk: New file.
57391         * lib/unistr/u8-strpbrk.c: New file.
57392         * lib/unistr/u16-strpbrk.c: New file.
57393         * lib/unistr/u32-strpbrk.c: New file.
57394         * lib/unistr/u-strpbrk.h: New file.
57395
57396         * modules/unistr/u8-strrchr: New file.
57397         * modules/unistr/u16-strrchr: New file.
57398         * modules/unistr/u32-strrchr: New file.
57399         * lib/unistr/u8-strrchr.c: New file.
57400         * lib/unistr/u16-strrchr.c: New file.
57401         * lib/unistr/u32-strrchr.c: New file.
57402
57403         * modules/unistr/u8-strspn: New file.
57404         * modules/unistr/u16-strspn: New file.
57405         * modules/unistr/u32-strspn: New file.
57406         * lib/unistr/u8-strspn.c: New file.
57407         * lib/unistr/u16-strspn.c: New file.
57408         * lib/unistr/u32-strspn.c: New file.
57409         * lib/unistr/u-strspn.h: New file.
57410
57411         * modules/unistr/u8-strstr: New file.
57412         * modules/unistr/u16-strstr: New file.
57413         * modules/unistr/u32-strstr: New file.
57414         * lib/unistr/u8-strstr.c: New file.
57415         * lib/unistr/u16-strstr.c: New file.
57416         * lib/unistr/u32-strstr.c: New file.
57417         * lib/unistr/u-strstr.h: New file.
57418
57419         * modules/unistr/u8-strtok: New file.
57420         * modules/unistr/u16-strtok: New file.
57421         * modules/unistr/u32-strtok: New file.
57422         * lib/unistr/u8-strtok.c: New file.
57423         * lib/unistr/u16-strtok.c: New file.
57424         * lib/unistr/u32-strtok.c: New file.
57425         * lib/unistr/u-strtok.h: New file.
57426
57427         * modules/unistr/u8-uctomb: New file.
57428         * modules/unistr/u16-uctomb: New file.
57429         * modules/unistr/u32-uctomb: New file.
57430         * lib/unistr/u8-uctomb.c: New file.
57431         * lib/unistr/u16-uctomb.c: New file.
57432         * lib/unistr/u32-uctomb.c: New file.
57433
57434         * MODULES.html.sh (Unicode string functions): Add the new modules.
57435
57436 2007-01-08  Bruno Haible  <bruno@clisp.org>
57437
57438         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57439         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57440         subdirectories.
57441
57442 2007-01-08  Karl Berry  <karl@gnu.org>
57443
57444         * doc/error.texi: mention that main() fns must set program_name
57445         when progname is used.
57446
57447 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57448
57449         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57450         WCTYPE_H is empty, for the benefit of builds from non-distclean
57451         directories.  Problem reported by Eric Blake in
57452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57453
57454 2007-01-08  Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57457         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57458         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57459         PROVIDE_CANONICALIZE_FILENAME_MODE.
57460         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57461
57462 2007-01-08  Bruno Haible  <bruno@clisp.org>
57463
57464         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57465         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57466         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57467         * lib/fts.c: Likewise.
57468         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57469
57470 2006-12-25  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/utf8-ucs4-safe: New file.
57473         * lib/utf8-ucs4-safe.h: New file.
57474         * lib/unistr/utf8-ucs4-safe.c: New file.
57475
57476         * modules/utf16-ucs4-safe: New file.
57477         * lib/utf16-ucs4-safe.h: New file.
57478         * lib/unistr/utf16-ucs4-safe.c: New file.
57479
57480         * MODULES.html.sh (Unicode string functions): Add the new modules.
57481
57482 2007-01-08  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57485         (Depends-on): Add unitypes.
57486         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57487         (u8_mbtouc_aux): Move out to separate file.
57488         (u8_mbtouc): Use ucs4_t, uint8_t types.
57489         * lib/unistr/utf8-ucs4.c: New file.
57490
57491         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57492         (Depends-on): Add unitypes.
57493         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57494         (u16_mbtouc_aux): Move out to separate file.
57495         (u16_mbtouc): Use ucs4_t, uint16_t types.
57496         * lib/unistr/utf16-ucs4.c: New file.
57497
57498         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57499         (Depends-on): Add unitypes.
57500         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57501         (u8_uctomb_aux): Move out to separate file.
57502         (u8_uctomb): Use ucs4_t, uint8_t types.
57503         * lib/unistr/ucs4-utf8.c: New file.
57504
57505         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57506         (Depends-on): Add unitypes.
57507         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57508         (u16_uctomb_aux): Move out to separate file.
57509         (u16_uctomb): Use ucs4_t, uint16_t types.
57510         * lib/unistr/ucs4-utf16.c: New file.
57511
57512 2006-12-25  Bruno Haible  <bruno@clisp.org>
57513
57514         * modules/unitypes: New file.
57515         * lib/unitypes.h: New file.
57516         * MODULES.html.sh (func_all_modules): New section "Unicode string
57517         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57518         this section. Add unitypes.
57519
57520 2007-01-08  Bruno Haible  <bruno@clisp.org>
57521
57522         Avoid variable names that conflict with those from libtool.
57523         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57524         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57525         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57526         library_names_spec to acl_library_names_spec, hardcode_* to
57527         acl_hardcode_*.
57528         Reported by Ralf Wildenhues.
57529
57530 2007-01-08  Bruno Haible  <bruno@clisp.org>
57531
57532         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57533         definition.
57534         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57535         definition.
57536         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57537         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57538         definition.
57539         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57540         definition.
57541         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57542         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57543         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57544         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57545         definition.
57546         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57547         definition.
57548         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57549         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57550         GC_USE_<algorithm>.
57551         * lib/gc-libgcrypt.c: Likewise.
57552         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57553         * modules/gc-arctwo (configure.ac): Likewise.
57554         * modules/gc-des (configure.ac): Likewise.
57555         * modules/gc-hmac-md5 (configure.ac): Likewise.
57556         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57557         * modules/gc-md2 (configure.ac): Likewise.
57558         * modules/gc-md4 (configure.ac): Likewise.
57559         * modules/gc-md5 (configure.ac): Likewise.
57560         * modules/gc-random (configure.ac): Likewise.
57561         * modules/gc-rijndael (configure.ac): Likewise.
57562         * modules/gc-sha1 (configure.ac): Likewise.
57563
57564 2007-01-08  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57567         macro definition.
57568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57569         definition.
57570         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57571         definition.
57572         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57573         * modules/fcntl-safer (configure.ac): Likewise.
57574         * modules/fopen-safer (configure.ac): Likewise.
57575         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57576         GNULIB_FWRITEERROR macro definition.
57577
57578 2007-01-08  Bruno Haible  <bruno@clisp.org>
57579
57580         * m4/gnulib-common.m4: New file.
57581         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57582         (func_get_filelist): Add m4/gnulib-common.m4.
57583
57584 2007-01-08  Bruno Haible  <bruno@clisp.org>
57585
57586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57587         command.
57588
57589 2007-01-08  Jim Meyering  <jim@meyering.net>
57590
57591         Use a more robust test for a "can't happen" condition.
57592         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57593         narrowed the st_size value.  Presuming the "can't happen" condition
57594         is true, that narrowing could conceivably convert an invalid st_size
57595         value into a valid one.  Instead, use a change based on Matthew
57596         Woehlke's original patch.
57597
57598         Slight readability improvement: use an assert-like macro
57599         in place of literal "abort ()" uses.
57600         * lib/fts.c (fts_assert): Define.
57601         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57602         Use this macro instead of a bare 'abort'.
57603
57604 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57607         simply work around them.
57608         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57609         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57610         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57611         declaring.
57612         Don't bother to define as macros, since the standard doesn't require it.
57613         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57614         longer worry about IRIX 5.3.
57615         (HAVE_WCTYPE_CTMP_BUG): Remove.
57616
57617 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57620         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57621         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57622         Problems reported by Georg Schwarz for IRIX 5.3.
57623
57624         * gnulib-tool (autoconf_minversion): Take the maximum version number
57625         found, not the minimum.  Problem reported by James Youngman.
57626
57627 2007-01-03  Karl Berry  <karl@gnu.org>
57628
57629         * doc/error.texi: new file, explaining interaction with progname.
57630         * doc/gnulib.texi: include it.  Update copyright.
57631
57632 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57633
57634         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57635         AC_CANONICAL_HOST, to improve autobuild outputs.
57636
57637 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57638             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57639
57640         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57641         sockets, server sockets, and other file descriptors.  Count errors
57642         to compute the return value.  Reorder the code a bit to be easier
57643         to follow.  Don't set event bits that were not requested (except
57644         POLLERR and POLLHUP).
57645
57646 2007-01-01  Bruno Haible  <bruno@clisp.org>
57647
57648         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57649
57650 2007-01-03  Jim Meyering  <jim@meyering.net>
57651
57652         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57653
57654 2007-01-02  Bruno Haible  <bruno@clisp.org>
57655
57656         * modules/settime (Include): Require timespec.h.
57657         * modules/nanosleep (Include): Likewise.
57658
57659 2007-01-01  Bruno Haible  <bruno@clisp.org>
57660
57661         * gnulib-tool (func_emit_copyright_notice): Bump year.
57662         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57663
57664 2007-01-01  Bruno Haible  <bruno@clisp.org>
57665
57666         Improve support for OpenBSD.
57667         * build-aux/config.rpath (libname_spec): Export.
57668         (library_names_spec): New variable. Export.
57669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57670         library_names_spec from the config.rpath output. Locate shared library
57671         through the name pattern in library_names_spec.
57672
57673 2007-01-01  Eric Blake  <ebb9@byu.net>
57674
57675         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57676
57677 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57678
57679         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57680         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57681         assume the C locale, and avoid an "eval" that could cause trouble.
57682         Problem with SORT reported by Bob Proulx.
57683
57684         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57685         Define.  Trivial patch from Henning Nielsen Lund, originally
57686         sent to bug-grep@gnu.org today.
57687
57688 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57691         struct stat.  Problem reported by Henning Nielsen Lund.
57692         * lib/acl.c: Include acl.h first, to check interface.  Don't
57693         bother to include sys/types.h and sys/stat.h again.
57694
57695 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57696
57697         Import the following change from libc; problem reported by
57698         Sven Verdoolaege.
57699
57700         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57701
57702         [BZ #1373]
57703         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57704
57705 2006-12-28  Jim Meyering  <jim@meyering.net>
57706
57707         * build-aux/announce-gen: Do not assume that the package
57708         builds any of tar.gz, tar.bz2, and .xdelta files.
57709         Suggestion from Simon Josefsson.
57710
57711 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57712
57713         * modules/announce-gen: New file.
57714
57715 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57718         handles its gotchas now.
57719         * lib/mbswidth.c: Likewise.
57720         * lib/wcwidth.h: Likewise.
57721         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57722         and iswcntrl; the wctype module does this stuff now.
57723         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57725         * modules/mbchar (Depends-on): Add wctype.
57726         * modules/mbswidth (Depends-on): Likewise.
57727         * modules/wcwidth (Depends-on): Likewise.
57728
57729 2006-12-27  Eric Blake  <ebb9@byu.net>
57730
57731         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57732         module uses more than what <wctype.h> is required to provide.
57733
57734 2006-12-26  Eric Blake  <ebb9@byu.net>
57735
57736         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57737
57738 2006-12-26  Eric Blake  <ebb9@byu.net>
57739
57740         * modules/absolute-header: New module.
57741         * modules/fcntl (Depends-on): Depend on it.
57742         * modules/inttypes (Depends-on): Likewise.
57743         * modules/stdint (Depends-on): Likewise.
57744         * modules/sys_stat (Depends-on): Likewise.
57745         * modules/wctype (Depends-on): Likewise.
57746         * MODULES.html.sh (Support for building libraries and
57747         executables): Document it.
57748
57749 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * gnulib-tool (SED): Remove, undoing previous change.
57752         The problem was that it broke coreutils on Solaris, because
57753         "sed --posix" leaked into a makefile.
57754         (sed): New alias, if 'alias' and GNU sed.
57755
57756 2006-12-24  Jim Meyering  <jim@meyering.net>
57757
57758         Work around an fchownat bug in glibc-2.4:
57759         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57760         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57761         in spite of the -P option.
57762         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57763         New macros.
57764         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57765         * modules/openat (Files): Add lib/fchownat.c.
57766         * lib/openat.c (fchownat): Don't define here.  Move to...
57767         * lib/fchownat.c: ...this new file.
57768
57769 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         Fix bug reported by Bruno Haible in
57772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57773         where quotearg.c didn't compile on Mac OS X 10.2 because it
57774         lacks <wchar.h> and wint_t.
57775         * lib/wctype_.h (__wctype_wint_t): New type.
57776         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57777         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57778         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57779         Arg is now of type __wctype_wint_t, not wint_t.
57780         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57781         substitute HAVE_WINT_T.
57782         * modules/wctype (Files): Add m4/wint_t.m4.
57783         (wctype.h): Substitute HAVE_WINT_T.
57784
57785 2006-12-23  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57788
57789 2006-12-23  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57792         S_ISLNK.
57793         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57794         mingw.
57795
57796 2006-12-22  Bruno Haible  <bruno@clisp.org>
57797
57798         * lib/copy-file.c: Include acl.h.
57799         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57800         Close the file descriptors only after being done with copy_acl.
57801         * modules/copy-file (Depends-on): Add acl.
57802
57803 2006-12-22  Bruno Haible  <bruno@clisp.org>
57804
57805         * gnulib-tool (SED): New variable.
57806         Use $SED instead of sed everywhere.
57807
57808 2006-12-22  Bruno Haible  <bruno@clisp.org>
57809
57810         * modules/no-c++: New file.
57811         * m4/no-c++.m4: New file.
57812         * MODULES.html.sh (Support for building libraries and executables):
57813         Add no-c++.
57814
57815 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57816
57817         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57818         Include <limits.h>, and use its INT_MAX to rewrite the
57819         j loop so that it does not overflow 'int'.  Problem reported by
57820         Ralf Wildenhues in
57821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57822         Play it safe by shifting left by 1 rather than multiplying by 2,
57823         as GCC is less likely to optimize this away when the value
57824         is signed (when it assumes overflow leads to undefined behavior).
57825         Also, don't assume time_t uses two's complement.
57826
57827 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * MODULES.html.sh: New module wctype.
57830         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57831         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57832         <wctype.h>, since the new wctype module should fix this.
57833         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57834         the wctype module should arrange for it.
57835         * lib/regex_internal.h: Likewise.
57836         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57837         since the wctype module should handle this now.
57838         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57839         * modules/fnmatch (Depends-on): Add wctype.
57840         * modules/quotearg (Depends-on): Likewise.
57841         * modules/regex (Depends-on): Likewise.
57842
57843 2006-12-19  Bruno Haible  <bruno@clisp.org>
57844
57845         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57846         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57847
57848 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57849
57850         * modules/savewd (Depends-on): Fix dependency on fcntl.
57851
57852 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57855         conforms to C99, rather than relying on the user's environment
57856         setting of STDINT_H.
57857
57858 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57859         and Eric Blake  <ebb9@byu.net>
57860
57861         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57862         This is more consistent with the other defines here.
57863         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57864         Port to z/OS.  Problem reported by Paul Gilmartin.
57865         Change local vars to use gl_ prefix rather than ac_.
57866         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57867         with other defines.
57868         * modules/double-slash-root: New module.
57869         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57870         (Depends-on): Add double-slash-root.
57871         * MODULES.html.sh (File system functions): Mention new module.
57872
57873 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57874
57875         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57876         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57877         This is for the benefit of gzip, which doesn't do i18n.
57878
57879 2006-12-12  Jim Meyering  <jim@meyering.net>
57880
57881         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57882         Reported by Andreas Schwab <schwab@suse.de>.
57883
57884 2006-12-12  Bruno Haible  <bruno@clisp.org>
57885
57886         Merge these changes.
57887         2006-09-05  Bruno Haible  <bruno@clisp.org>
57888         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57889         iconv_alloc succeeded.
57890         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57891         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57892         test for " && dest " at the end - dest is always != NULL there. Call
57893         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57894         with 2xNULL arguments, also to flush the state storage. Handle the
57895         IRIX iconv behaviour. Realloc the final result, to throw away unused
57896         memory.
57897
57898 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57901         and fchmodat unconditionally, since glibc 2.4 has them.
57902         Problem reported by Arkadiusz Miskiewicz.
57903
57904 2006-12-10  Bruno Haible  <bruno@clisp.org>
57905
57906         * gnulib-tool (func_import): Show the include files only for those
57907         modules that are copied and specified.
57908         Reported by Karl Berry.
57909
57910 2006-12-08  Jim Meyering  <jim@meyering.net>
57911
57912         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57913         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57914
57915         * build-aux/announce-gen: Add two new options, both optional:
57916         --bootstrap-tools=TOOL_LIST
57917               a comma-separated list of tools, e.g.,
57918               autoconf,automake,bison,gnulib
57919         --gnulib-snapshot-date=DATE
57920               if gnulib is in the bootstrap tool list,
57921               then report this as the snapshot date.
57922               If not specified, use the current date/time.
57923               If you specify a date here, be sure it's UTC.
57924
57925 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57926
57927         * tests/test-argp-2.sh: Fix test to match actual output.
57928         (func_compare): Fix sed script to be portable.
57929
57930 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57933         workaround for this case.  It is not autoconfigured now; offhand
57934         it's hard to see how to autoconfigure it.
57935
57936 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57939         a directory that is about to be chowned.  Such a directory's
57940         initial file permissions should permit the owner only and this
57941         should not be changed until after the chown, since the group and
57942         other bits would be incorrect if they granted permission before
57943         the chown.
57944
57945         Fix porting problem for iswctype reported by Georg Schwarz in:
57946         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57947         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57948         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57950         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57951
57952 2006-12-03  Jim Meyering  <jim@meyering.net>
57953
57954         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57955         p->fts_statp may not yet be defined.
57956         (fts_read): Instead, set it in the caller, once p->fts_statp is
57957         sure to be defined, and corresponds to a top-level directory.
57958         This bug made du -x fail.  Here's the coreutils test case:
57959         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57960         Reported by Mike Frysinger.
57961
57962 2006-12-01  Jim Meyering  <jim@meyering.net>
57963
57964         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57965         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57966         Reported by Simon Josefsson.
57967
57968 2006-11-30  Jim Meyering  <jim@meyering.net>
57969
57970         * m4/warning.m4: Use the all-permissive copyright notice
57971         recommended by RMS (rather than LGPL).
57972         * m4/vararrays.m4: Likewise.
57973         * m4/flexmember.m4: Likewise.
57974
57975 2006-11-29  Bruno Haible  <bruno@clisp.org>
57976
57977         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57978         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57979         using +=.
57980         Reported by Simon Josefsson <simon@josefsson.org>.
57981
57982 2006-11-28  James Youngman <jay@gnu.org>
57983
57984         * README: Advise users that they might find the bug-gnulib@gnu.org
57985         and autotools-announce@gnu.org mailing lists useful.
57986
57987 2006-11-28  Bruno Haible  <bruno@clisp.org>
57988
57989         * m4/ptrdiff_max.m4: Remove file.
57990
57991 2006-11-21  Bruno Haible  <bruno@clisp.org>
57992
57993         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57994         _AC_COMPUTE_INT.
57995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57996         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57997         _AC_COMPUTE_INT.
57998         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57999         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58000         _AC_COMPUTE_INT.
58001         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58002
58003 2006-11-28  Jim Meyering  <jim@meyering.net>
58004
58005         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58006         warning from "gcc -Wshadow" about shadowing the builtin.
58007
58008 2006-11-27  Bruno Haible  <bruno@clisp.org>
58009
58010         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58011         _AC_COMPUTE_INT.
58012         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58013
58014 2006-11-27  Bruno Haible  <bruno@clisp.org>
58015             Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58018
58019 2006-11-26  Bruno Haible  <bruno@clisp.org>
58020
58021         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58022         noinst_LTLIBRARIES.
58023
58024 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58025             Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58028         if compiling with "gcc -ansi".
58029
58030 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         Fix some incompatibilities with gcc -ansi -pedantic.
58033         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58034         if compiling pedantically with GCC, unless it's C99 or later.
58035         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58036         it mishandles gcc -ansi -pedantic as well.
58037         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58038         if gcc -pedantic.
58039         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58040         initializers for struct if -pedantic, unless it's C99 or later.
58041
58042 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58043
58044         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58045         Don't close an fd more than once. Identical atimes indicate
58046         success, not failure.
58047
58048 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58049
58050         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58051
58052 2006-11-23  Jim Meyering  <jim@meyering.net>
58053
58054         * build-aux/announce-gen: New file.  From coreutils.
58055
58056 2006-11-22  Jim Meyering  <jim@meyering.net>
58057
58058         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58059         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58060         (fts_read): Use a temporary to narrow the overused st_size member
58061         before using it in a switch statement.  Reported by Matthew Woehlke.
58062
58063         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58064         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58065
58066 2006-11-20  Bruno Haible  <bruno@clisp.org>
58067
58068         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58069         changequote instead of pairs of brackets.
58070         Reported by Andreas Schwab <schwab@suse.de>.
58071
58072 2006-11-21  Jim Meyering  <jim@meyering.net>
58073
58074         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58075         so as to remain compatible with older compilers.
58076         Patch from Michael Deutschmann.
58077
58078 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * MODULES.html.sh (File system functions): Add openat.
58081
58082         * lib/openat.h (rpl_fstatat): New macro, if
58083         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58084         (fstatat): Define to rpl_fstatat under the same conditions,
58085         unless COMPILING_FSTATAT.
58086         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58087         seems to have the bug.
58088         * lib/fstatat.c: New file.
58089         * modules/openat (Files): Add it.
58090
58091 2006-11-20  Bruno Haible  <bruno@clisp.org>
58092
58093         * Makefile: New file.
58094
58095 2006-11-20  Jim Meyering  <jim@meyering.net>
58096
58097         The beginnings of syntax-related checks for gnulib.
58098         * lib/Makefile: New file.
58099         * lib/t-idcache: New script.  Ensure that the two halves of
58100         idcache.c stay in sync.
58101
58102         * lib/idcache.c: Adjust comments in user- and group- portions to
58103         be more accurate, and to be consistent with one another.
58104
58105 2006-11-20  Jim Meyering  <jim@meyering.net>
58106
58107         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58108         continue using the flexible array member (thus, this module performs
58109         half as many malloc calls), with the addition that...
58110         (getgroup, getuser): Consistently record a non-match via an empty
58111         "name" string, and map an empty string match to a NULL return value.
58112         * modules/idcache (Depends-on): Re-add flexmember.
58113
58114         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58115         (getuidbyname, getgroup, getgidbyname): Likewise.
58116
58117         Use cleaner syntax: NULL rather than 0.
58118         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58119
58120 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58123         It mishandled the case where the group was missing.
58124         Problem reported by Greg Schafer.
58125         * modules/idcache: Likewise.
58126
58127 2006-11-18  Jim Meyering  <jim@meyering.net>
58128
58129         * check-module (%exempt_header): Add exception for some
58130         conditionally-included headers.
58131
58132         * modules/i-ring (Depends-on): Add verify.
58133         (License): Change to LGPL.
58134
58135 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58138         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58139         and inttostr.h.  Use snprintf rather than uinttostr, so that
58140         LGPLed code doesn't depend on GPLed.
58141
58142 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58143
58144         * modules/inline (License): Change from GPL to LGPL.
58145
58146 2006-11-17  Jim Meyering  <jim@meyering.net>
58147
58148         * modules/d-type (License): Switch to LGPL.
58149
58150 2006-11-15  Bruno Haible  <bruno@clisp.org>
58151
58152         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58153
58154 2006-11-15  Eric Blake  <ebb9@byu.net>
58155
58156         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58157         the module dependency.
58158
58159 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58160             Bruno Haible  <bruno@clisp.org>
58161
58162         * gnulib-tool (func_create_testdir): Add license consistency check.
58163
58164 2006-11-15  Eric Blake  <ebb9@byu.net>
58165
58166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58167         random "(cached)" in configure output.
58168
58169 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58170
58171         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58172         test for conforming inttypes.h is both announced and cached.
58173
58174         * MODULES.html.sh (seen_modules, seen_files): New variables.
58175         (func_module): Rewrite to use a few less gnulib-tool and sed
58176         invocations.  Avoid a couple of quadratic algorithms for ...
58177         (missed_modules, missed_files): ... these, with ...
58178         (func_append, func_tmpdir): ... these new functions, from
58179         gnulib-tool.  Analogously, install traps for cleanup.
58180
58181         * tests/test-gc.c (main): Remove unused variables.
58182         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58183
58184 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * modules/inttostr (License): Change to LGPL.
58187
58188 2006-11-14  Eric Blake  <ebb9@byu.net>
58189
58190         * modules/tempname (License): Change to LGPL.
58191
58192 2006-11-14  Eric Blake  <ebb9@byu.net>
58193
58194         * doc/functions.texi (Function Portability): *printf functions on
58195         Cygwin now understand all POSIX size specifiers.
58196
58197 2006-11-14  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/c-ctype (License): Change to LGPL.
58200
58201 2006-11-12  Bruno Haible  <bruno@clisp.org>
58202
58203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58204         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58205         for GNOME libraries, for which the include files are installed in
58206         subdirectories of $prefix/include.
58207
58208 2006-11-12  Bruno Haible  <bruno@clisp.org>
58209
58210         * m4/lib-link.m4: Require at least autoconf-2.54.
58211         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58212         name to underscores for the --with option.
58213
58214 2006-11-13  Bruno Haible  <bruno@clisp.org>
58215
58216         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58217         the tests directory.
58218         Reported by Ralf Wildenhues.
58219
58220 2006-11-13  Bruno Haible  <bruno@clisp.org>
58221
58222         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58223         (func_emit_initmacro_end): Undo the override here.
58224         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58225         Works around the famous automake error in coreutils.
58226
58227 2006-11-13  Eric Blake  <ebb9@byu.net>
58228
58229         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58230         element, not its node.
58231
58232 2006-11-12  Bruno Haible  <bruno@clisp.org>
58233
58234         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58235         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58236
58237 2006-11-12  Bruno Haible  <bruno@clisp.org>
58238
58239         * gnulib-tool: New option --local-symlink.
58240         (func_usage): Document it.
58241         (lsymbolic): New variable.
58242         (func_import, func_create_testdir): If --symlink was not specified,
58243         test whether --local-symlink was specified and the file comes from
58244         the local_gnulib_dir.
58245
58246 2006-11-12  Bruno Haible  <bruno@clisp.org>
58247
58248         * gnulib-tool (func_ln): New function.
58249         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58250
58251 2006-11-12  Bruno Haible  <bruno@clisp.org>
58252
58253         Finish support for source files in subdirectories.
58254         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58255         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58256         AUTOMAKE_OPTIONS.
58257         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58258
58259 2006-11-12  Bruno Haible  <bruno@clisp.org>
58260
58261         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58262         EXTRA_lib_SOURCES augmentation.
58263         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58264
58265 2006-11-12  Jim Meyering  <jim@meyering.net>
58266
58267         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58268         file descriptors.  This also averts a failure on systems with
58269         native openat support when a traversed directory lacks "x" access.
58270         * lib/fts_.h: Include "i-ring.h"
58271         (struct FTS) [fts_fd_ring]: New member.
58272         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58273         (FCHDIR): Add parentheses.
58274         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58275         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58276         When descending, rather than simply closing the previous
58277         fts_cwd_fd value, push that file descriptor onto the ring.
58278         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58279         (fts_open): Initialize the new fd_ring member.
58280         (fts_close): Clear the ring.
58281         (fts_safe_changedir): When possible, use our new fd_ring to skip
58282         the diropen and fstat and dev/ino comparison that would normally
58283         accompany a virtual `chdir ("..")'.
58284
58285         * modules/fts (Depends-on): Add i-ring.
58286         * modules/i-ring: New module.
58287         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58288         * m4/i-ring.m4: New file.
58289
58290 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58291
58292         * gnulib-tool (func_create_testdir): Fix replacement of
58293         `build-aux' in configure.ac.  Run autotools in gltests
58294         subdirectory.
58295         (func_create_testdir, func_create_megatestdir, test): There is
58296         no need for '--force' in most autotool invocations in a new
58297         tree.  Actually fail the whole test if any of the tools, or the
58298         configure or make stages fail.
58299
58300         Sync from Automake.
58301         * build-aux/gnupload: Revert last change.  Add pointer to upload
58302         instructions of the GNU Maintenance Instructions.
58303         Suggestion by Karl Berry.
58304
58305 2006-11-10  Jim Meyering  <jim@meyering.net>
58306
58307         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58308
58309 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58312         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58313         (bind_textdomain_codeset) [! ENABLE_NLS]:
58314         Evaluate all the arguments.  That way, callers get compatible behavior
58315         if the arguments have side effects.  Also, it avoids some GCC
58316         diagnostics in some cases; Joel E. Denny reported problems when Bison
58317         was configured with --enable-gcc-warnigs.
58318
58319 2006-11-10  Jim Meyering  <jim@meyering.net>
58320
58321         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58322         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58323         account.
58324
58325 2006-11-10  Jim Meyering  <jim@meyering.net>
58326
58327         * modules/inline: New file/module.
58328         * modules/xalloc (Files): Remove m4/inline.m4.
58329         (Depends-on): Add inline, instead.
58330         * modules/oset: Likewise.
58331         * modules/list: Likewise.
58332
58333 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58336         Problem reported by Matthew Woehlke.
58337
58338 2006-11-09  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/tempname.c (gen_tempname): Remove variant that invokes
58341         __gen_tempname.
58342         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58343         __gen_tempname.
58344
58345 2006-11-08  Bruno Haible  <bruno@clisp.org>
58346
58347         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58348         to 'yes' instead of 'cross-compiling'.
58349
58350 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         * lib/quotearg.h (quotearg_free): New decl.
58353         * lib/quotearg.c (quotearg_free): New function.
58354         (slot0, nslots, slotvec0, slotvec):
58355         Now file-scope so that quotearg_free can get at them.
58356
58357 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58358
58359         Sync from Automake.
58360         * build-aux/gnupload: Add missing 'gnu' to example URL.
58361         Report by Karl Berry.
58362
58363 2006-11-08  Bruno Haible  <bruno@clisp.org>
58364
58365         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58366         Suggested by Paul Eggert.
58367
58368 2006-11-08  Jim Meyering  <jim@meyering.net>
58369
58370         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58371         It's already included if !_LIBC.
58372         (fts_safe_changedir): Add a comment.
58373
58374 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58377         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58378         Matthew Woehlke.
58379
58380         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58381         definitions up, to avoid colliding with change below.
58382         (static_inline) [HAVE_INLINE]: New macro.
58383         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58384         Provide extern decls when !HAVE_INLINE.  Do not define unless
58385         static_inline is defined, either by us or by xmalloc.c.  Use
58386         static_inline rather than static inline.
58387         (XCALLOC): Optimize sizeof(T) = 1 case.
58388         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58389
58390 2006-11-07  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58393         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58394         AC_C_INLINE.
58395         * modules/xalloc (Files): Add m4/inline.m4.
58396
58397 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58398
58399         * README: Fix typo.
58400         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58401         (Miscellanous Notes): ...from this.
58402
58403 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58404
58405         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58406         Mention that offsetof should be used instead of sizeof.
58407         From Bruno Haible.
58408
58409 2006-11-07  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58412
58413 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58416         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58417         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58418         (gl_tree_add_before, gl_tree_add_after):
58419         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58420         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58421         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58422         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58423         (gl_linked_add_after, gl_linked_add_at): Likewise.
58424         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58425         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58426         (gl_tree_add_before, gl_tree_add_after): Likewise.
58427         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58428         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58429         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58430
58431 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58432
58433         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58434
58435 2006-11-06  Bruno Haible  <bruno@clisp.org>
58436
58437         * m4/inline.m4: New file.
58438         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58439         * modules/list (Files): Add m4/inline.m4.
58440         * modules/oset (Files): Likewise.
58441
58442 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * lib/idcache.c: Include <stddef.h>, for offsetof.
58445         (struct userid.name): Change from char * to a flexible array member.
58446         All uses changed.
58447         * modules/idcache (Depends-on): Add flexmember.
58448
58449         * MODULES.html.sh (Core language properties): New module flexmember.
58450         * modules/flexmember, m4/flexmember.m4: New files.
58451
58452         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58453         inline functions that are identical with the old xnmalloc_inline,
58454         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58455         that we can avoid some unnecessary integer multiplications and
58456         divisions in the common case where the element size is known at
58457         compile time.
58458         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58459         needed.
58460         (xnboundedmalloc): Remove.
58461         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58462         arguments, for consistency with rest of this header.
58463         (xcharalloc): Rewrite using XNMALLOC.
58464         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58465         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58466         versions have been moved to lib/xalloc.h and renamed to be the
58467         non-*_inline versions.
58468         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58469         and xnrealloc functions, since those functions are now inline and
58470         now call us.
58471         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58472         renaming described above.
58473         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58474         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58475         captures the dependency in AC_C_INLINE.
58476
58477         New module canonicalize-lgpl, proposed by Charles Wilson in
58478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58479         with a few small changes afterwards.
58480         * MODULES.html.sh (File system functions): New module
58481         canonicalize-lgpl.
58482         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58483         and canonicalize_file_name.
58484         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58485         * modules/canonicalize-lgpl: New files.
58486
58487 2006-11-05  Bruno Haible  <bruno@clisp.org>
58488
58489         * gnulib-tool (func_import, func_create_testdir): Create directories
58490         also for files in subdirectories of lib/.
58491
58492 2006-11-05  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58495         ANSI C compliant.
58496
58497 2006-11-03  Bruno Haible  <bruno@clisp.org>
58498
58499         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58500         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58501         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58502         (xnboundedmalloc): New inline function.
58503         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58504         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58505         xmalloc.
58506         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58507         xmalloc.
58508         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58509         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58510         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58511         xmalloc.
58512         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58513         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58514         xmalloc.
58515         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58516         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58517         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58518         xmalloc.
58519         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58520         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58521         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58522         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58523         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58524         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58525         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58526
58527 2006-11-03  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/c-ctype.h [C++]: Define functions without name mangling.
58530         * lib/fwriteerror.h [C++]: Likewise.
58531         * lib/gcd.h [C++]: Likewise.
58532         * lib/linebreak.h [C++]: Likewise.
58533
58534 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58535
58536         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58537         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58538         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58539         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58540         Check for functions and headers just once.
58541         Check for declaration of canonicalize_file_name.
58542         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58543
58544 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58545
58546         * gnulib-tool (func_import): Fix typo in actioncmd.
58547
58548 2006-11-02  Bruno Haible  <bruno@clisp.org>
58549
58550         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58551         newline sequence in the Makefile.am snippet as a space, like "make"
58552         does.
58553         Reported by Roger Persson <perrog@gmail.com>.
58554
58555 2006-11-01  Bruno Haible  <bruno@clisp.org>
58556
58557         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58558         already declared in <string.h>.
58559         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58560
58561 2006-11-01  Bruno Haible  <bruno@clisp.org>
58562
58563         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58564         * lib/strcase.h: Include <string.h>.
58565         (strcasecmp): Define to rpl_strcasecmp here.
58566
58567 2006-11-01  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58570
58571 2006-11-01  Eric Blake  <ebb9@byu.net>
58572
58573         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58574
58575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58576
58577 2006-10-29  Bruno Haible  <bruno@clisp.org>
58578
58579         Make it compile in C++ mode.
58580         * lib/full-write.c (full_rw): Add a cast.
58581
58582 2006-11-01  Bruno Haible  <bruno@clisp.org>
58583
58584         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58585         be POSIX compliant.
58586         Reported by Roger Persson <perrog@gmail.com>.
58587
58588 2006-11-01  Eric Blake  <ebb9@byu.net>
58589
58590         * lib/getopt_.h: Fix comments.
58591
58592 2006-10-31  Eric Blake  <ebb9@byu.net>
58593
58594         * modules/tmpdir (Depends-on): Add sys_stat.
58595         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58596         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58597         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58598         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58599         tempname.
58600
58601 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         Avoid some C++ diagnostics reported by Bruno Haible.
58604         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58605         xmalloc.
58606         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58607         (struct slotvec): Move to top level.
58608         (quotearg_n_options): Rewrite to avoid xmalloc.
58609         * lib/xalloc.h (xcharalloc): New function.
58610         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58611         [defined __cplusplus]: Add function template that provides result
58612         type propagation.  This part of the change is from Bruno Haible.
58613
58614 2006-10-29  Bruno Haible  <bruno@clisp.org>
58615
58616         Make it compile in C++ mode.
58617         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58618         * lib/strnlen1.c (strnlen1): Cast memchr result.
58619         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58620         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58621         (create_temp_dir): Rename local variable 'template'.
58622         (compile_csharp_using_sscli): Add cast.
58623         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58624         * lib/findprog.c (find_in_path): Likewise.
58625         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58626         * lib/wait-process.c (register_slave_subprocess): Likewise.
58627
58628 2006-10-22  Bruno Haible  <bruno@clisp.org>
58629
58630         * modules/tsearch: New file.
58631         * lib/tsearch.h: New file.
58632         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58633         * m4/tsearch.m4: New file.
58634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58635
58636 2006-10-29  Eric Blake  <ebb9@byu.net>
58637
58638         * lib/arcfour.c: Assume config.h.
58639         * lib/arctwo.c: Likewise.
58640         * lib/base64.c: Likewise.
58641         * lib/check-version.c: Likewise.
58642         * lib/crc.c: Likewise.
58643         * lib/des.c: Likewise.
58644         * lib/gc-gnulib.c: Likewise.
58645         * lib/gc-libgcrypt.c: Likewise.
58646         * lib/gc-pbkdf2-sha1.c: Likewise.
58647         * lib/getaddrinfo.c: Likewise.
58648         * lib/getdelim.c: Likewise.
58649         * lib/getline.c: Likewise.
58650         * lib/hmac-md5.c: Likewise.
58651         * lib/hmac-sha1.c: Likewise.
58652         * lib/iconvme.c: Likewise.
58653         * lib/md2.c: Likewise.
58654         * lib/md4.c: Likewise.
58655         * lib/memxor.c: Likewise.
58656         * lib/read-file.c: Likewise.
58657         * lib/readline.c: Likewise.
58658         * lib/rijndael-alg-fst.c: Likewise.
58659         * lib/rijndael-api-fst.c: Likewise.
58660         * lib/xgetdomainname.c: Likewise.
58661
58662 2006-10-28  Eric Blake  <ebb9@byu.net>
58663
58664         * lib/xstrndup.c: Assume config.h.
58665
58666 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58669         stat-macros.h is now for our own macros, whereas stat_h is for
58670         macros in the <sys/stat.h> name space.
58671         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58672         (STAT_MACROS_H): Remove.
58673         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58674         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58675         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58676         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58677         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58678         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58679         Move these macros to ...
58680         * lib/stat_.h: here.  Don't include stat-macros.h.
58681         * lib/canonicalize.c: Don't include stat-macros.h.
58682         * lib/chown.c: Likewise.
58683         * lib/euidaccess.c: Likewise.
58684         * lib/file-type.c: Likewise.
58685         * lib/filemode.c: Likewise.
58686         * lib/glob.c: Likewise.
58687         * lib/isapipe.c: Likewise.
58688         * lib/lchown.c: Likewise.
58689         * lib/lstat.c: Likewise.
58690         * lib/mkdir-p.c: Likewise.
58691         * lib/rmdir.c: Likewise.
58692         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58694         unless mkdir isn't declared, to speed up 'configure'.
58695         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58696         would define all the S_* symbols.
58697         * modules/canonicalize (Depends-on):
58698         Depend on sys_stat, not stat-macros.
58699         * modules/chown: Likewise.
58700         * modules/euidaccess: Likewise.
58701         * modules/filemode: Likewise.
58702         * modules/file-type: Likewise.
58703         * modules/glob: Likewise.
58704         * modules/isapipe: Likewise.
58705         * modules/lchown: Likewise.
58706         * modules/lstat: Likewise.
58707         * modules/mkancesdirs: Likewise.
58708         * modules/rmdir: Likewise.
58709         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58710         * modules/modechange: Likewise.
58711         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58712         (configure.ac): Remove gl_STAT_MACROS.
58713         * modules/sys_stat (Depends-on): Remove stat-macros.
58714
58715 2006-10-27  Bruno Haible  <bruno@clisp.org>
58716
58717         * m4/signed.m4: Remove file.
58718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58719         invocation.
58720         * modules/vasnprintf (Files): Remove m4/signed.m4.
58721
58722 2006-10-27  Bruno Haible  <bruno@clisp.org>
58723
58724         Update to GNU gettext 0.16.
58725         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58726         m4/inttypes-h.m4, m4/signed.m4.
58727         * m4/gettext.m4: Update to GNU gettext 0.16.
58728         * m4/intl.m4: New file, from GNU gettext.
58729         * m4/intldir.m4: New file, from GNU gettext.
58730         * config/srclist.txt: Update
58731
58732 2006-10-27  Eric Blake  <ebb9@byu.net>
58733
58734         * MODULES.html.sh: Document tempname.
58735         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58736         dependencies.
58737         (Files): Move lib/tempname.c...
58738         * modules/tempname: ...to this new module.
58739         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58740         (gl_PREREQ_TEMPNAME): Move...
58741         * m4/tempname.m4: ...to this new file.
58742         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58743         * modules/sys_stat (Depends-on): Add stat-macros.
58744         * lib/stat_.h (includes): Pick up stat macros.
58745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58746         if stat macros are broken.
58747         * lib/tempname.c (includes): No need to include "stat-macros.h".
58748         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58749         (direxists, __path_search) [!_LIBC]: Don't compile these in
58750         gnulib; the tmpdir module covers that.
58751         * lib/tempname.h: New file.
58752
58753 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * COPYING: Explain how gnulib-tool converts licence headers.
58756         Almost all wording by Eric Blake.
58757
58758 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * lib/mbchar.h (is_basic_table): Make read-only.
58761         * lib/mbchar.c (is_basic_table): Likewise.
58762         Reported by John Darrington.
58763
58764 2006-10-25  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/progname.h (set_program_name): Undefine before defining.
58767
58768 2006-10-25  Bruno Haible  <bruno@clisp.org>
58769
58770         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58771         false for non-gcc C++ compilers.
58772         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58773
58774 2006-10-24  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58777         iconv implementations like Irix iconv.
58778
58779 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * modules/vararrays: New file.
58782         * m4/vararrays.m4: New file, taken from diffutils.
58783         * MODULES.html.sh: New module vararrays.
58784
58785 2006-10-24  Karl Berry  <karl@gnu.org>
58786
58787         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58788         Don't call GNU Unix.
58789
58790 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58791
58792         * users.txt: Add Libtool.
58793
58794         Sync from Libtool:
58795
58796         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58797
58798         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58799         to gnulib's policy of including config.h unconditionally.
58800
58801 2006-10-24  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/wcwidth (Files): Add m4/wint_t.m4.
58804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58805         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58806
58807 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58808
58809         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58810         to pacify GCC with some -W flags enabled.  Problem reported by
58811         Bruno Haible.
58812
58813 2006-10-24  Jim Meyering  <jim@meyering.net>
58814
58815         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58816         Reported by Karl Berry.
58817
58818 2006-10-23  Bruno Haible  <bruno@clisp.org>
58819
58820         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58821
58822 2006-10-24  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/gl_list.h: Use C comment style, not C++ comment style.
58825
58826 2006-10-23  Eric Blake  <ebb9@byu.net>
58827
58828         * lib/getaddrinfo.c (includes): Add missing include.
58829
58830 2006-10-23  Bruno Haible  <bruno@clisp.org>
58831             Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         Ability to rename obstack_free.
58834         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58835         obstack_free.
58836         (obstack_free): Invoke the __obstack_free macro.
58837         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58838
58839 2006-10-23  Bruno Haible  <bruno@clisp.org>
58840             Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58843         __argc, __argv from the declaration. (They are defined as macros on
58844         mingw.)
58845
58846 2006-10-22  Bruno Haible  <bruno@clisp.org>
58847
58848         * doc/gnulib-intro.texi: New file.
58849         * doc/gnulib.texi: Include it.
58850
58851 2006-10-21  Bruno Haible  <bruno@clisp.org>
58852
58853         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58854         "Introduction", "Miscellanous Notes", "Particular Modules".
58855
58856 2006-10-21  Bruno Haible  <bruno@clisp.org>
58857
58858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58859         Change mostlyclean-local rule to avoid sh syntax error from bash
58860         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58861
58862 2006-10-23  Jim Meyering  <jim@meyering.net>
58863
58864         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58865         in place of snprintf.
58866
58867         * modules/inttostr (Files): Add lib/uinttostr.c.
58868         * lib/uinttostr.c (inttostr): New file/function.
58869         * lib/inttostr.h (uinttostr): Declare.
58870         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58871         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58872         Add uinttostr.
58873         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58874
58875 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * lib/canonicalize.c (ELOOP): Define if not already defined.
58878         Problem reported by Bruno Haible in
58879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58880
58881 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58882
58883         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58884         Problem reported by Perry Smith and Ville Laurikari.
58885
58886         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58887         uses.
58888
58889 2006-10-19  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58892         for mingw.
58893
58894 2006-10-19  Bruno Haible  <bruno@clisp.org>
58895
58896         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58897         Needed for mingw.
58898
58899 2006-10-19  Bruno Haible  <bruno@clisp.org>
58900
58901         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58902
58903 2006-10-19  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58906         it.
58907
58908 2006-10-19  Bruno Haible  <bruno@clisp.org>
58909
58910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58911         invocation.
58912
58913 2006-10-19  Bruno Haible  <bruno@clisp.org>
58914
58915         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58916         mountlist by default.
58917
58918 2006-10-16  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/c-strstr.c: Include c-strstr.h.
58921
58922 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58923
58924         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58925         in a slash.
58926
58927 2006-10-18  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/lock.h [C++]: Wrap definitions in extern "C".
58930
58931 2006-10-18  Bruno Haible  <bruno@clisp.org>
58932
58933         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58934         gl_LIBOBJS list.
58935
58936 2006-10-18  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58939
58940 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58941
58942         * lib/xstrtol.h: Include gettext.h.
58943         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58944         Problem reported by Eric Blake.
58945         * modules/xstrtol (Depends-on): Add gettext-h.
58946
58947 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58948
58949         * lib/strftime.c (advance): New macro.
58950         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58951         incomplete type, so you can't add 0 to it.  Problem and patch
58952         reported by Eelco Dolstra for dietlibc.
58953
58954 2006-10-18  Jim Meyering  <jim@meyering.net>
58955
58956         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58957         type for a local, and rename it: s/up/user_proc/.
58958
58959 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58960
58961         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58962         READ_UTMP_USER_PROCESS.
58963         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58964
58965 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58968         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58969
58970 2006-10-17  Eric Blake  <ebb9@byu.net>
58971
58972         * lib/sigprocmask.c (sigprocmask): Fix typo.
58973
58974         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58975
58976         * modules/clean-temp (Makefile.am): Don't add to make output...
58977         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58978         config.h.
58979
58980 2006-10-17  Bruno Haible  <bruno@clisp.org>
58981
58982         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58983         differently if DEFAULT_TEXT_DOMAIN is set.
58984
58985 2006-10-16  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/clean-temp.c: Include fwriteerror.h.
58988
58989 2006-10-16  Bruno Haible  <bruno@clisp.org>
58990
58991         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58992
58993 2006-10-16  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58996         * lib/sigprocmask.h: Include <sys/types.h>.
58997         (sigset_t): Use the system's definition if present.
58998
58999 2006-10-17  Eric Blake  <ebb9@byu.net>
59000
59001         * lib/xvasprintf.c (includes): Assume config.h.
59002         * lib/xasprintf.c (includes): Likewise.
59003
59004 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59005
59006         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59007         at least as wide as intmax_t.
59008
59009 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59010
59011         (Imported from Automake.)
59012         * build-aux/gnupload: Update to version 1.1 of directive file.
59013
59014 2006-10-16  Eric Blake  <ebb9@byu.net>
59015
59016         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59017         match Automake 1.10a.
59018
59019 2006-10-14  Bruno Haible  <bruno@clisp.org>
59020
59021         * modules/sigprocmask: New file.
59022         * lib/sigprocmask.h: New file.
59023         * lib/sigprocmask.c: New file.
59024         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59025         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59026         request sigprocmask.o.
59027         (gl_PREREQ_SIGPROCMASK): New macro.
59028         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59029         (Depends-on): Add sigprocmask.
59030         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59031         gt_SIGNALBLOCKING. Test for 'raise' only once.
59032         * lib/fatal-signal.c: Include sigprocmask.h.
59033         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59034         unblock_fatal_signals): Define always.
59035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59036         sigprocmask.
59037
59038 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         Sync from Automake.
59041         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59042         which incorrectly sets the mode of an existing destination
59043         directory.  In some cases the unpatched install-sh could do the
59044         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59045         system.  We hope this is rare in practice, but it's clearly worth
59046         fixing.  Problem reported by Alex Unleashed in
59047         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59048         Also, don't bother to check for -m bugs unless we're using -m;
59049         suggested by Stepan Kasal.
59050
59051 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59052
59053         Sync from Automake.
59054         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59055         `-c' flag, so they appear at the same position as in %FASTDEP%
59056         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59057         which ignores unknown options only after the first non-option.
59058         Bug report against M4 by Nelson H. F. Beebe.
59059
59060 2006-10-13  Jim Meyering  <jim@meyering.net>
59061
59062         Fix a bug in yesterday's change.
59063         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59064         p->fts_statp->st_dev would be used uninitialized.
59065         Ensures that we always call fts_stat on the very first entry.
59066         Miklos Szeredi reported that find -xdev stopped working.
59067
59068 2006-10-12  Bruno Haible  <bruno@clisp.org>
59069
59070         * gnulib-tool (func_get_automake_snippet): Append an automatically
59071         computed EXTRA_DIST augmentation.
59072         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59073         * modules/alloca-opt (Makefile.am): Likewise.
59074         * modules/allocsa (Makefile.am): Likewise.
59075         * modules/arcfour (Makefile.am): Likewise.
59076         * modules/arctwo (Makefile.am): Likewise.
59077         * modules/argmatch (Makefile.am): Likewise.
59078         * modules/argz (Makefile.am): Likewise.
59079         * modules/atexit (Makefile.am): Likewise.
59080         * modules/backupfile (Makefile.am): Likewise.
59081         * modules/byteswap (Makefile.am): Likewise.
59082         * modules/c-strtod (Makefile.am): Likewise.
59083         * modules/c-strtold (Makefile.am): Likewise.
59084         * modules/calloc (Makefile.am): Likewise.
59085         * modules/canon-host (Makefile.am): Likewise.
59086         * modules/canonicalize (Makefile.am): Likewise.
59087         * modules/chdir-long (Makefile.am): Likewise.
59088         * modules/chdir-safer (Makefile.am): Likewise.
59089         * modules/check-version (Makefile.am): Likewise.
59090         * modules/chown (Makefile.am): Likewise.
59091         * modules/cloexec (Makefile.am): Likewise.
59092         * modules/close-stream (Makefile.am): Likewise.
59093         * modules/closeout (Makefile.am): Likewise.
59094         * modules/crc (Makefile.am): Likewise.
59095         * modules/csharpexec (Makefile.am): Likewise.
59096         * modules/cycle-check (Makefile.am): Likewise.
59097         * modules/des (Makefile.am): Likewise.
59098         * modules/dev-ino (Makefile.am): Likewise.
59099         * modules/dirfd (Makefile.am): Likewise.
59100         * modules/dirname (Makefile.am): Likewise.
59101         * modules/dup2 (Makefile.am): Likewise.
59102         * modules/eealloc (Makefile.am): Likewise.
59103         * modules/error (Makefile.am): Likewise.
59104         * modules/euidaccess (Makefile.am): Likewise.
59105         * modules/exclude (Makefile.am): Likewise.
59106         * modules/exitfail (Makefile.am): Likewise.
59107         * modules/fcntl-safer (Makefile.am): Likewise.
59108         * modules/fcntl (Makefile.am): Likewise.
59109         * modules/file-type (Makefile.am): Likewise.
59110         * modules/fileblocks (Makefile.am): Likewise.
59111         * modules/filemode (Makefile.am): Likewise.
59112         * modules/filenamecat (Makefile.am): Likewise.
59113         * modules/fnmatch (Makefile.am): Likewise.
59114         * modules/fopen-safer (Makefile.am): Likewise.
59115         * modules/fpending (Makefile.am): Likewise.
59116         * modules/fprintftime (Makefile.am): Likewise.
59117         * modules/free (Makefile.am): Likewise.
59118         * modules/fsusage (Makefile.am): Likewise.
59119         * modules/ftruncate (Makefile.am): Likewise.
59120         * modules/fts (Makefile.am): Likewise.
59121         * modules/gc-arcfour (Makefile.am): Likewise.
59122         * modules/gc-des (Makefile.am): Likewise.
59123         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59124         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59125         * modules/gc-md4 (Makefile.am): Likewise.
59126         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59127         * modules/gc-sha1 (Makefile.am): Likewise.
59128         * modules/gc (Makefile.am): Likewise.
59129         * modules/getaddrinfo (Makefile.am): Likewise.
59130         * modules/getcwd (Makefile.am): Likewise.
59131         * modules/getdelim (Makefile.am): Likewise.
59132         * modules/getdomainname (Makefile.am): Likewise.
59133         * modules/getgroups (Makefile.am): Likewise.
59134         * modules/gethostname (Makefile.am): Likewise.
59135         * modules/gethrxtime (Makefile.am): Likewise.
59136         * modules/getline (Makefile.am): Likewise.
59137         * modules/getloadavg (Makefile.am): Likewise.
59138         * modules/getlogin_r (Makefile.am): Likewise.
59139         * modules/getndelim2 (Makefile.am): Likewise.
59140         * modules/getopt (Makefile.am): Likewise.
59141         * modules/getpagesize (Makefile.am): Likewise.
59142         * modules/getpass-gnu (Makefile.am): Likewise.
59143         * modules/getpass (Makefile.am): Likewise.
59144         * modules/getsubopt (Makefile.am): Likewise.
59145         * modules/gettime (Makefile.am): Likewise.
59146         * modules/gettimeofday (Makefile.am): Likewise.
59147         * modules/getugroups (Makefile.am): Likewise.
59148         * modules/getusershell (Makefile.am): Likewise.
59149         * modules/glob (Makefile.am): Likewise.
59150         * modules/group-member (Makefile.am): Likewise.
59151         * modules/hard-locale (Makefile.am): Likewise.
59152         * modules/hash (Makefile.am): Likewise.
59153         * modules/hmac-md5 (Makefile.am): Likewise.
59154         * modules/hmac-sha1 (Makefile.am): Likewise.
59155         * modules/human (Makefile.am): Likewise.
59156         * modules/idcache (Makefile.am): Likewise.
59157         * modules/imaxabs (Makefile.am): Likewise.
59158         * modules/imaxdiv (Makefile.am): Likewise.
59159         * modules/inet_ntop (Makefile.am): Likewise.
59160         * modules/inet_pton (Makefile.am): Likewise.
59161         * modules/intprops (Makefile.am): Likewise.
59162         * modules/inttostr (Makefile.am): Likewise.
59163         * modules/inttypes (Makefile.am): Likewise.
59164         * modules/isapipe (Makefile.am): Likewise.
59165         * modules/javaversion (Makefile.am): Likewise.
59166         * modules/lchmod (Makefile.am): Likewise.
59167         * modules/lchown (Makefile.am): Likewise.
59168         * modules/localcharset (Makefile.am): Likewise.
59169         * modules/long-options (Makefile.am): Likewise.
59170         * modules/lstat (Makefile.am): Likewise.
59171         * modules/malloc (Makefile.am): Likewise.
59172         * modules/mathl (Makefile.am): Likewise.
59173         * modules/mbchar (Makefile.am): Likewise.
59174         * modules/md2 (Makefile.am): Likewise.
59175         * modules/md4 (Makefile.am): Likewise.
59176         * modules/md5 (Makefile.am): Likewise.
59177         * modules/memcasecmp (Makefile.am): Likewise.
59178         * modules/memchr (Makefile.am): Likewise.
59179         * modules/memcmp (Makefile.am): Likewise.
59180         * modules/memcoll (Makefile.am): Likewise.
59181         * modules/memcpy (Makefile.am): Likewise.
59182         * modules/memmem (Makefile.am): Likewise.
59183         * modules/memmove (Makefile.am): Likewise.
59184         * modules/mempcpy (Makefile.am): Likewise.
59185         * modules/memrchr (Makefile.am): Likewise.
59186         * modules/memset (Makefile.am): Likewise.
59187         * modules/memxor (Makefile.am): Likewise.
59188         * modules/mkancesdirs (Makefile.am): Likewise.
59189         * modules/mkdir-p (Makefile.am): Likewise.
59190         * modules/mkdir (Makefile.am): Likewise.
59191         * modules/mkdtemp (Makefile.am): Likewise.
59192         * modules/mkstemp (Makefile.am): Likewise.
59193         * modules/mktime (Makefile.am): Likewise.
59194         * modules/modechange (Makefile.am): Likewise.
59195         * modules/mountlist (Makefile.am): Likewise.
59196         * modules/nanosleep (Makefile.am): Likewise.
59197         * modules/obstack (Makefile.am): Likewise.
59198         * modules/openat (Makefile.am): Likewise.
59199         * modules/pagealign_alloc (Makefile.am): Likewise.
59200         * modules/pathmax (Makefile.am): Likewise.
59201         * modules/physmem (Makefile.am): Likewise.
59202         * modules/poll (Makefile.am): Likewise.
59203         * modules/posixtm (Makefile.am): Likewise.
59204         * modules/posixver (Makefile.am): Likewise.
59205         * modules/putenv (Makefile.am): Likewise.
59206         * modules/quote (Makefile.am): Likewise.
59207         * modules/quotearg (Makefile.am): Likewise.
59208         * modules/raise (Makefile.am): Likewise.
59209         * modules/read-file (Makefile.am): Likewise.
59210         * modules/readline (Makefile.am): Likewise.
59211         * modules/readlink (Makefile.am): Likewise.
59212         * modules/readtokens (Makefile.am): Likewise.
59213         * modules/readutmp (Makefile.am): Likewise.
59214         * modules/realloc (Makefile.am): Likewise.
59215         * modules/regex (Makefile.am): Likewise.
59216         * modules/rename-dest-slash (Makefile.am): Likewise.
59217         * modules/rename (Makefile.am): Likewise.
59218         * modules/rijndael (Makefile.am): Likewise.
59219         * modules/rmdir (Makefile.am): Likewise.
59220         * modules/rpmatch (Makefile.am): Likewise.
59221         * modules/safe-read (Makefile.am): Likewise.
59222         * modules/safe-write (Makefile.am): Likewise.
59223         * modules/same-inode (Makefile.am): Likewise.
59224         * modules/same (Makefile.am): Likewise.
59225         * modules/save-cwd (Makefile.am): Likewise.
59226         * modules/savedir (Makefile.am): Likewise.
59227         * modules/setenv (Makefile.am): Likewise.
59228         * modules/settime (Makefile.am): Likewise.
59229         * modules/sha1 (Makefile.am): Likewise.
59230         * modules/sig2str (Makefile.am): Likewise.
59231         * modules/snprintf (Makefile.am): Likewise.
59232         * modules/stat-macros (Makefile.am): Likewise.
59233         * modules/stat-time (Makefile.am): Likewise.
59234         * modules/stdbool (Makefile.am): Likewise.
59235         * modules/stdint (Makefile.am): Likewise.
59236         * modules/stdlib-safer (Makefile.am): Likewise.
59237         * modules/stpcpy (Makefile.am): Likewise.
59238         * modules/stpncpy (Makefile.am): Likewise.
59239         * modules/strcase (Makefile.am): Likewise.
59240         * modules/strcasestr (Makefile.am): Likewise.
59241         * modules/strchrnul (Makefile.am): Likewise.
59242         * modules/strcspn (Makefile.am): Likewise.
59243         * modules/strdup (Makefile.am): Likewise.
59244         * modules/strerror (Makefile.am): Likewise.
59245         * modules/strftime (Makefile.am): Likewise.
59246         * modules/strndup (Makefile.am): Likewise.
59247         * modules/strnlen (Makefile.am): Likewise.
59248         * modules/strpbrk (Makefile.am): Likewise.
59249         * modules/strsep (Makefile.am): Likewise.
59250         * modules/strstr (Makefile.am): Likewise.
59251         * modules/strtod (Makefile.am): Likewise.
59252         * modules/strtoimax (Makefile.am): Likewise.
59253         * modules/strtok_r (Makefile.am): Likewise.
59254         * modules/strtol (Makefile.am): Likewise.
59255         * modules/strtoll (Makefile.am): Likewise.
59256         * modules/strtoul (Makefile.am): Likewise.
59257         * modules/strtoull (Makefile.am): Likewise.
59258         * modules/strtoumax (Makefile.am): Likewise.
59259         * modules/strverscmp (Makefile.am): Likewise.
59260         * modules/sys_socket (Makefile.am): Likewise.
59261         * modules/sys_stat (Makefile.am): Likewise.
59262         * modules/sysexits (Makefile.am): Likewise.
59263         * modules/time_r (Makefile.am): Likewise.
59264         * modules/timegm (Makefile.am): Likewise.
59265         * modules/timespec (Makefile.am): Likewise.
59266         * modules/tmpfile-safer (Makefile.am): Likewise.
59267         * modules/trim (Makefile.am): Likewise.
59268         * modules/unistd-safer (Makefile.am): Likewise.
59269         * modules/unlinkdir (Makefile.am): Likewise.
59270         * modules/unlocked-io (Makefile.am): Likewise.
59271         * modules/userspec (Makefile.am): Likewise.
59272         * modules/utime (Makefile.am): Likewise.
59273         * modules/utimecmp (Makefile.am): Likewise.
59274         * modules/utimens (Makefile.am): Likewise.
59275         * modules/vasnprintf (Makefile.am): Likewise.
59276         * modules/vasprintf (Makefile.am): Likewise.
59277         * modules/vsnprintf (Makefile.am): Likewise.
59278         * modules/xalloc (Makefile.am): Likewise.
59279         * modules/xgetcwd (Makefile.am): Likewise.
59280         * modules/xnanosleep (Makefile.am): Likewise.
59281         * modules/xreadlink (Makefile.am): Likewise.
59282         * modules/xstrtod (Makefile.am): Likewise.
59283         * modules/xstrtol (Makefile.am): Likewise.
59284         * modules/xstrtold (Makefile.am): Likewise.
59285         * modules/yesno (Makefile.am): Likewise.
59286         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59287
59288 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59289
59290         * modules/error (Makefile.am): Distribute files through
59291         EXTRA_DIST, not lib_SOURCES.
59292
59293 2006-10-12  Eric Blake  <ebb9@byu.net>
59294
59295         * modules/error (Makefile.am): Distribute files in /lib.
59296         * modules/obstack (Makefile.am): Likewise.
59297
59298 2006-10-12  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/acl (Makefile.am): Distribute all files in lib/ through
59301         EXTRA_DIST.
59302         * modules/arcfour (Makefile.am): Likewise.
59303         * modules/arctwo (Makefile.am): Likewise.
59304         * modules/argmatch (Makefile.am): Likewise.
59305         * modules/argz (Makefile.am): Likewise.
59306         * modules/atexit (Makefile.am): Likewise.
59307         * modules/backupfile (Makefile.am): Likewise.
59308         * modules/c-strtod (Makefile.am): Likewise.
59309         * modules/c-strtold (Makefile.am): Likewise.
59310         * modules/calloc (Makefile.am): Likewise.
59311         * modules/canon-host (Makefile.am): Likewise.
59312         * modules/canonicalize (Makefile.am): Likewise.
59313         * modules/chdir-long (Makefile.am): Likewise.
59314         * modules/chdir-safer (Makefile.am): Likewise.
59315         * modules/check-version (Makefile.am): Likewise.
59316         * modules/chown (Makefile.am): Likewise.
59317         * modules/cloexec (Makefile.am): Likewise.
59318         * modules/close-stream (Makefile.am): Likewise.
59319         * modules/closeout (Makefile.am): Likewise.
59320         * modules/crc (Makefile.am): Likewise.
59321         * modules/cycle-check (Makefile.am): Likewise.
59322         * modules/des (Makefile.am): Likewise.
59323         * modules/dirfd (Makefile.am): Likewise.
59324         * modules/dirname (Makefile.am): Likewise.
59325         * modules/dup2 (Makefile.am): Likewise.
59326         * modules/euidaccess (Makefile.am): Likewise.
59327         * modules/exclude (Makefile.am): Likewise.
59328         * modules/exitfail (Makefile.am): Likewise.
59329         * modules/fcntl-safer (Makefile.am): Likewise.
59330         * modules/file-type (Makefile.am): Likewise.
59331         * modules/fileblocks (Makefile.am): Likewise.
59332         * modules/filemode (Makefile.am): Likewise.
59333         * modules/filenamecat (Makefile.am): Likewise.
59334         * modules/fnmatch (Makefile.am): Likewise.
59335         * modules/fopen-safer (Makefile.am): Likewise.
59336         * modules/fpending (Makefile.am): Likewise.
59337         * modules/fprintftime (Makefile.am): Likewise.
59338         * modules/free (Makefile.am): Likewise.
59339         * modules/fsusage (Makefile.am): Likewise.
59340         * modules/ftruncate (Makefile.am): Likewise.
59341         * modules/fts (Makefile.am): Likewise.
59342         * modules/gc (Makefile.am): Likewise.
59343         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59344         * modules/getaddrinfo (Makefile.am): Likewise.
59345         * modules/getcwd (Makefile.am): Likewise.
59346         * modules/getdelim (Makefile.am): Likewise.
59347         * modules/getdomainname (Makefile.am): Likewise.
59348         * modules/getgroups (Makefile.am): Likewise.
59349         * modules/gethostname (Makefile.am): Likewise.
59350         * modules/gethrxtime (Makefile.am): Likewise.
59351         * modules/getline (Makefile.am): Likewise.
59352         * modules/getloadavg (Makefile.am): Likewise.
59353         * modules/getlogin_r (Makefile.am): Likewise.
59354         * modules/getopt (Makefile.am): Likewise.
59355         * modules/getpass (Makefile.am): Likewise.
59356         * modules/getpass-gnu (Makefile.am): Likewise.
59357         * modules/getsubopt (Makefile.am): Likewise.
59358         * modules/gettime (Makefile.am): Likewise.
59359         * modules/gettimeofday (Makefile.am): Likewise.
59360         * modules/getugroups (Makefile.am): Likewise.
59361         * modules/getusershell (Makefile.am): Likewise.
59362         * modules/glob (Makefile.am): Likewise.
59363         * modules/group-member (Makefile.am): Likewise.
59364         * modules/hard-locale (Makefile.am): Likewise.
59365         * modules/hash (Makefile.am): Likewise.
59366         * modules/hmac-md5 (Makefile.am): Likewise.
59367         * modules/hmac-sha1 (Makefile.am): Likewise.
59368         * modules/human (Makefile.am): Likewise.
59369         * modules/idcache (Makefile.am): Likewise.
59370         * modules/imaxabs (Makefile.am): Likewise.
59371         * modules/imaxdiv (Makefile.am): Likewise.
59372         * modules/inet_ntop (Makefile.am): Likewise.
59373         * modules/inet_pton (Makefile.am): Likewise.
59374         * modules/inttostr (Makefile.am): Likewise.
59375         * modules/isapipe (Makefile.am): Likewise.
59376         * modules/lchown (Makefile.am): Likewise.
59377         * modules/long-options (Makefile.am): Likewise.
59378         * modules/lstat (Makefile.am): Likewise.
59379         * modules/malloc (Makefile.am): Likewise.
59380         * modules/mathl (Makefile.am): Likewise.
59381         * modules/mbchar (Makefile.am): Likewise.
59382         * modules/md2 (Makefile.am): Likewise.
59383         * modules/md4 (Makefile.am): Likewise.
59384         * modules/md5 (Makefile.am): Likewise.
59385         * modules/memcasecmp (Makefile.am): Likewise.
59386         * modules/memchr (Makefile.am): Likewise.
59387         * modules/memcmp (Makefile.am): Likewise.
59388         * modules/memcoll (Makefile.am): Likewise.
59389         * modules/memcpy (Makefile.am): Likewise.
59390         * modules/memmem (Makefile.am): Likewise.
59391         * modules/memmove (Makefile.am): Likewise.
59392         * modules/mempcpy (Makefile.am): Likewise.
59393         * modules/memrchr (Makefile.am): Likewise.
59394         * modules/memset (Makefile.am): Likewise.
59395         * modules/memxor (Makefile.am): Likewise.
59396         * modules/mkancesdirs (Makefile.am): Likewise.
59397         * modules/mkdir (Makefile.am): Likewise.
59398         * modules/mkdir-p (Makefile.am): Likewise.
59399         * modules/mkdtemp (Makefile.am): Likewise.
59400         * modules/mkstemp (Makefile.am): Likewise.
59401         * modules/mktime (Makefile.am): Likewise.
59402         * modules/modechange (Makefile.am): Likewise.
59403         * modules/mountlist (Makefile.am): Likewise.
59404         * modules/nanosleep (Makefile.am): Likewise.
59405         * modules/openat (Makefile.am): Likewise.
59406         * modules/pagealign_alloc (Makefile.am): Likewise.
59407         * modules/physmem (Makefile.am): Likewise.
59408         * modules/poll (Makefile.am): Likewise.
59409         * modules/posixtm (Makefile.am): Likewise.
59410         * modules/posixver (Makefile.am): Likewise.
59411         * modules/putenv (Makefile.am): Likewise.
59412         * modules/quote (Makefile.am): Likewise.
59413         * modules/quotearg (Makefile.am): Likewise.
59414         * modules/raise (Makefile.am): Likewise.
59415         * modules/read-file (Makefile.am): Likewise.
59416         * modules/readline (Makefile.am): Likewise.
59417         * modules/readlink (Makefile.am): Likewise.
59418         * modules/readtokens (Makefile.am): Likewise.
59419         * modules/readutmp (Makefile.am): Likewise.
59420         * modules/realloc (Makefile.am): Likewise.
59421         * modules/regex (Makefile.am): Likewise.
59422         * modules/rename (Makefile.am): Likewise.
59423         * modules/rename-dest-slash (Makefile.am): Likewise.
59424         * modules/rijndael (Makefile.am): Likewise.
59425         * modules/rmdir (Makefile.am): Likewise.
59426         * modules/rpmatch (Makefile.am): Likewise.
59427         * modules/safe-read (Makefile.am): Likewise.
59428         * modules/safe-write (Makefile.am): Likewise.
59429         * modules/same (Makefile.am): Likewise.
59430         * modules/save-cwd (Makefile.am): Likewise.
59431         * modules/savedir (Makefile.am): Likewise.
59432         * modules/setenv (Makefile.am): Likewise.
59433         * modules/settime (Makefile.am): Likewise.
59434         * modules/sha1 (Makefile.am): Likewise.
59435         * modules/sig2str (Makefile.am): Likewise.
59436         * modules/snprintf (Makefile.am): Likewise.
59437         * modules/stdlib-safer (Makefile.am): Likewise.
59438         * modules/stpcpy (Makefile.am): Likewise.
59439         * modules/stpncpy (Makefile.am): Likewise.
59440         * modules/strcase (Makefile.am): Likewise.
59441         * modules/strcasestr (Makefile.am): Likewise.
59442         * modules/strchrnul (Makefile.am): Likewise.
59443         * modules/strcspn (Makefile.am): Likewise.
59444         * modules/strdup (Makefile.am): Likewise.
59445         * modules/strerror (Makefile.am): Likewise.
59446         * modules/strftime (Makefile.am): Likewise.
59447         * modules/strndup (Makefile.am): Likewise.
59448         * modules/strnlen (Makefile.am): Likewise.
59449         * modules/strpbrk (Makefile.am): Likewise.
59450         * modules/strsep (Makefile.am): Likewise.
59451         * modules/strstr (Makefile.am): Likewise.
59452         * modules/strtod (Makefile.am): Likewise.
59453         * modules/strtoimax (Makefile.am): Likewise.
59454         * modules/strtok_r (Makefile.am): Likewise.
59455         * modules/strtol (Makefile.am): Likewise.
59456         * modules/strtoll (Makefile.am): Likewise.
59457         * modules/strtoul (Makefile.am): Likewise.
59458         * modules/strtoull (Makefile.am): Likewise.
59459         * modules/strtoumax (Makefile.am): Likewise.
59460         * modules/strverscmp (Makefile.am): Likewise.
59461         * modules/time_r (Makefile.am): Likewise.
59462         * modules/timegm (Makefile.am): Likewise.
59463         * modules/tmpfile-safer (Makefile.am): Likewise.
59464         * modules/unistd-safer (Makefile.am): Likewise.
59465         * modules/unlinkdir (Makefile.am): Likewise.
59466         * modules/userspec (Makefile.am): Likewise.
59467         * modules/utime (Makefile.am): Likewise.
59468         * modules/utimecmp (Makefile.am): Likewise.
59469         * modules/utimens (Makefile.am): Likewise.
59470         * modules/vasnprintf (Makefile.am): Likewise.
59471         * modules/vasprintf (Makefile.am): Likewise.
59472         * modules/vsnprintf (Makefile.am): Likewise.
59473         * modules/xalloc (Makefile.am): Likewise.
59474         * modules/xgetcwd (Makefile.am): Likewise.
59475         * modules/xnanosleep (Makefile.am): Likewise.
59476         * modules/xreadlink (Makefile.am): Likewise.
59477         * modules/xstrtod (Makefile.am): Likewise.
59478         * modules/xstrtol (Makefile.am): Likewise.
59479         * modules/xstrtold (Makefile.am): Likewise.
59480         * modules/yesno (Makefile.am): Likewise.
59481
59482 2006-10-12  Jim Meyering  <jim@meyering.net>
59483
59484         * m4/getloadavg.m4: Revert the change below.
59485
59486         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59487         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59488         fail with a symlink, which is what coreutils' ./bootstrap now
59489         creates by default.
59490
59491 2006-10-12  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59494         mingw.
59495         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59496         MSVC and mingw explicitly.
59497
59498 2006-10-11  Simon Josefsson  <jas@extundo.com>
59499             Bruno Haible  <bruno@clisp.org>
59500
59501         Add support for multiple gnulib-tool invocations in the scope of a
59502         single configure.ac file.
59503         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59504         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59505         with the same contents as the _LIBADD variable.
59506         (func_emit_initmacro_start, func_emit_initmacro_end,
59507         func_emit_initmacro_done): New functions.
59508         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59509         gl_LIBOBJS and gl_LTLIBOBJS.
59510
59511 2006-10-11  Bruno Haible  <bruno@clisp.org>
59512
59513         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59514         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59515         autoreconf. Instead, invoke autopoint explicitly but move back the
59516         *.m4 files from gnulib.
59517
59518 2006-10-11  Bruno Haible  <bruno@clisp.org>
59519
59520         * gnulib-tool (func_usage): Make module names after --create-testdir
59521         optional.
59522         (func_create_testdir): If no module was specified, use nearly all
59523         modules.
59524
59525 2006-10-12  Jim Meyering  <jim@meyering.net>
59526
59527         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59528         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59529         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59530         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59531         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59532         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59533         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59534         (fts_set_stat_required): New function.
59535         (fts_open): Defer the calls to fts_stat, if possible or requested.
59536         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59537         into fts_stat itself.
59538         (fts_read): Perform any required (deferred) fts_stat call.
59539         (fts_build): Likewise, for the directory we're about to open and read.
59540         In the readdir loop, carefully decide whether each entry will require
59541         an eventual call to fts_stat, using dirent.d_type info if available.
59542         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59543         a command line argument into this function.  Update all callers.
59544         Map a return value of FTS_DOT to FTS_D for a command line argument.
59545         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59546         Thanks to Miklos Szeredi for his tenacity and for the initial
59547         bug report about "find" failing on a FUSE-based file system.
59548
59549         * lib/fts.c (fts_open): Use consistent indentation.
59550
59551 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59552
59553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59554         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59555         reported by Jim Meyering.  All uses of cache variables renamed
59556         to match Autoconf's.
59557         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59558         the other one.
59559
59560         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59561         Fix misspelling in diagnostic.
59562
59563 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59566         defined.  Problem reported by Matthew Woehlke.
59567
59568         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59569         Add support for Tandem NonStop R series.
59570         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59571         Use new macro.
59572
59573         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59574         (has_trailing_slash): Omit size arg; all callers changed.
59575         Omit 'inline', since it doesn't help performance and we'd
59576         need to configure it.
59577         Don't count //, ///, etc. as having a trailing slash.
59578         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59579         (rpl_rename_dest_slash): On failure, use rename's errno rather
59580         than (in some cases) an incorrect or junk errno.
59581         Simplify code by removing need to compute length; this does
59582         cause it to make two passes instead of one over the file name,
59583         but it's worth it.
59584
59585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59586         change, since Autoconf's version may no longer be appropriate now
59587         that we are using CVS Autoconf's version.  Add support for Tandem.
59588
59589 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59590             Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59593         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59594         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59595         gl_AC_TYPE_LONG_LONG.
59596
59597         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59598         instead of HAVE_LONG_LONG.
59599         * lib/printf-args.c (printf_fetchargs): Likewise.
59600         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59601         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59603         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59604         gl_AC_TYPE_LONG_LONG.
59605
59606 2006-10-11  Bruno Haible  <bruno@clisp.org>
59607
59608         * m4/longlong.m4: Add comments.
59609         * m4/ulonglong.m4: Likewise.
59610
59611 2006-10-10  Bruno Haible  <bruno@clisp.org>
59612
59613         Make it possible to #define stpcpy, strdup to aliases.
59614         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59615         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59616
59617 2006-10-10  Bruno Haible  <bruno@clisp.org>
59618
59619         Make it possible to #define gcd to an alias.
59620         * lib/gcd.c: Include config.h.
59621
59622 2006-10-10  Bruno Haible  <bruno@clisp.org>
59623
59624         Make it possible to #define c_isascii to an alias.
59625         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59626         defined. Undefine the macros before defining them, to avoid gcc
59627         warnings.
59628         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59629         define NO_C_CTYPE_MACROS early.
59630
59631 2006-10-10  Bruno Haible  <bruno@clisp.org>
59632
59633         Make it possible to #define set_program_name to an alias.
59634         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59635         ENABLE_RELOCATABLE early.
59636
59637 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59640         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59641         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59642         More generally, don't assume that 64-bit signed int is available
59643         if unsigned int is, and vice versa.
59644         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59645         unsigned symbols, not on their signed counterparts.
59646         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59647         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59648         (UINT64_C, UINTMAX_C):
59649         Likewise.
59650         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59651         unsigned counterparts.
59652         (Have_long_long, Unsigned): New macros.
59653         (Int): Renamed from INT.
59654         (strtoimax): Use the new macros.
59655         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59656         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59657         * modules/inttypes (inttypes.h): Substitute
59658         HAVE_UNSIGNED_LONG_LONG_INT.
59659         * modules/stdint (stdint.h): Likewise.
59660         (Files): Add m4/ulonglong.m4.
59661
59662 2006-10-10  Bruno Haible  <bruno@clisp.org>
59663
59664         Fix a gcc -Wshadow warning.
59665         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59666         to 'bucket'.
59667         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59668         gl_linked_indexof_from_to): Likewise.
59669         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59670         Likewise.
59671         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59672         Likewise.
59673         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59674         Reported by Eric Blake.
59675
59676 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59677
59678         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59679         for NetBSD.  Problem reported by Bruno Haible.
59680
59681 2006-10-09  Jim Meyering  <jim@meyering.net>
59682
59683         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59684         Patch from Bruno Haible.
59685
59686 2006-10-09  Jim Meyering  <jim@meyering.net>
59687
59688         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59689         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59690         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59691
59692 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         Don't include <config.h> twice; this doesn't work in some cases,
59695         e.g., when config.h has "#define intmax_t long long int" and
59696         we include <config.h>, <inttypes.h>, <config.h> in that order.
59697         Problem reported by Matthew Woehlke in:
59698         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59699         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59700         * lib/fts-cycle.c: Don't include config.h.
59701         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59702         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59703         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59704         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59705         inttypes.h.
59706         * lib/xstrtoumax.c: Likewise.
59707         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59708         __strtol and the like, so that this module is more like its siblings.
59709         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59710         Remove; no longer needed now that we assume gnulib inttypes.h.
59711
59712 2006-10-08  Bruno Haible  <bruno@clisp.org>
59713
59714         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59715         option.
59716
59717 2006-10-07  Jim Meyering  <jim@meyering.net>
59718
59719         * modules/inttypes (inttypes.h): Revert what seems to have been
59720         an inadvertent part of today's change: use "|", not "/" in the
59721         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59722
59723 2006-10-07  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/sublist: New file.
59726
59727 2006-10-07  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59730         * modules/argz (argz.h): Likewise.
59731         * modules/arpa_inet (arpa/inet.h): Likewise.
59732         * modules/byteswap (byteswap.h): Likewise.
59733         * modules/configmake (configmake.h): Likewise.
59734         * modules/fcntl (fcntl.h): Likewise.
59735         * modules/fnmatch (fnmatch.h): Likewise.
59736         * modules/getopt (getopt.h): Likewise.
59737         * modules/glob (glob.h): Likewise.
59738         * modules/inttypes (inttypes.h): Likewise.
59739         * modules/netinet_in (netinet/in.h): Likewise.
59740         * modules/poll (poll.h): Likewise.
59741         * modules/stdbool (stdbool.h): Likewise.
59742         * modules/stdint (stdint.h): Likewise.
59743         * modules/sys_select (sys/select.h): Likewise.
59744         * modules/sys_socket (sys/socket.h): Likewise.
59745         * modules/sys_stat (sys/stat.h): Likewise.
59746         * modules/sysexits (sysexits.h): Likewise.
59747         * modules/unistd (unistd.h): Likewise.
59748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59749         Add a "DO NOT EDIT" comment to the generated file.
59750         (func_import): Likewise for gnulib-comp.m4.
59751
59752 2006-10-07  Bruno Haible  <bruno@clisp.org>
59753
59754         * lib/gl_sublist.h: New file.
59755         * lib/gl_sublist.c: New file.
59756
59757 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59760         name (relative to the original working directory) and the file
59761         name component (relative to the temporary working directory).  All
59762         callers changed.
59763         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59764         * lib/mkdir-p.c (make_dir_parents): Likewise.
59765         * lib/mkdir-p.h (make_dir_parents): Likewise.
59766
59767 2006-10-06  Eric Blake  <ebb9@byu.net>
59768
59769         Define several macros for use by the clean-temp module.
59770         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59771         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59772         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59773
59774         * lib/clean-temp.h (close_stream_temp): New declaration.
59775         * lib/clean-temp.c (includes): Pull in headers according to what
59776         other modules are in use.
59777         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59778
59779 2006-10-06  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59782         instead of fopen, fwriteerror.
59783
59784 2006-10-06  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59787         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59788         int.
59789         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59790         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59791         Return an error indicator.
59792         Suggested by Eric Blake.
59793
59794 2006-10-06  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59797         Reported by Eric Blake.
59798
59799 2006-10-06  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/closeout (Description): Mention stderr too.
59802
59803 2006-10-06  Bruno Haible  <bruno@clisp.org>
59804         and Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * lib/closeout.c (close_stdout): Also close stderr.
59807         * lib/closeout.h: Update comment.
59808
59809 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59810
59811         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59813         * lib/dirchownmod.c: Include lchown.h.
59814         * lib/lchown.c: Don't include files that lchown.h now includes.
59815         Don't declare chown, since lchown.h now does that.
59816         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59817         (lchown): Define to rpl_chown if lchown is declared but
59818         does not exist.  Declare using a prototype if lchown is not
59819         declared.  Add a copyright notice.
59820         * lib/mkstemp.h: Include <unistd.h>.
59821         * lib/openat.c: Include lchown.h.
59822
59823         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59824         we now test for that separately.
59825         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59826         rather than O_NOFOLLOW, when testing whether it's possible to
59827         avoid a race condition reliably.
59828         * lib/savewd.c (savewd_chdir): Likewise.
59829
59830         Remove macros that are no longer needed now that stdint.h is
59831         reliable.
59832         * lib/fsusage.c (UINTMAX_MAX): Remove.
59833         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59834         * lib/utimecmp.c (SIZE_MAX): Remove.
59835
59836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59837
59838         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59839         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59840         O_NOATIME works.
59841
59842 2006-10-05  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/gl_list.h (gl_sortedlist_search_from_to,
59845         gl_sortedlist_indexof_from_to): New declarations.
59846         (gl_list_implementation): New fields sortedlist_search_from_to,
59847         sortedlist_indexof_from_to.
59848         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59849         inline functions.
59850         * lib/gl_list.c (gl_sortedlist_search_from_to,
59851         gl_sortedlist_indexof_from_to): New functions.
59852         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59853         function.
59854         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59855         (gl_array_sortedlist_search_from_to): New function.
59856         (gl_array_list_implementation): Update.
59857         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59858         function.
59859         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59860         (gl_carray_sortedlist_search_from_to): New function.
59861         (gl_carray_list_implementation): Update.
59862         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59863         gl_linked_sortedlist_indexof_from_to): New functions.
59864         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59865         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59866         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59867         gl_tree_sortedlist_indexof_from_to): New functions.
59868         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59869         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59870         Update.
59871         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59872         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59873         Update.
59874
59875 2006-10-05  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59878         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59879         (struct gl_list_implementation): Add fields search_from_to,
59880         indexof_from_to. Remove fields search, indexof.
59881         (gl_list_search): Use the search_from_to method.
59882         (gl_list_search_from, gl_list_search_from_to): New functions.
59883         (gl_list_indexof): Use the indexof_from_to method.
59884         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59885         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59886         (gl_list_search_from, gl_list_search_from_to): New functions.
59887         (gl_list_indexof): Use the indexof_from_to method.
59888         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59889         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59890         gl_array_indexof. Add start_index, end_index arguments.
59891         (gl_array_search_from_to): Renamed from gl_array_search. Add
59892         start_index, end_index arguments.
59893         (gl_array_remove, gl_array_list_implementation): Update.
59894         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59895         gl_carray_indexof. Add start_index, end_index arguments.
59896         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59897         start_index, end_index arguments.
59898         (gl_carray_remove, gl_carray_list_implementation): Update.
59899         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59900         gl_linked_search. Add start_index, end_index arguments.
59901         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59902         start_index, end_index arguments.
59903         (gl_linked_remove): Update.
59904         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59905         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59906         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59907         field to 'size_t'.
59908         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59909         gl_tree_search. Add start_index, end_index arguments.
59910         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59911         start_index, end_index arguments.
59912         (gl_tree_remove): Update.
59913         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59914         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59915         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59916         function.
59917         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59918         gl_tree_search. Add start_index, end_index arguments.
59919         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59920         start_index, end_index arguments.
59921         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59922         Update.
59923         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59924
59925 2006-10-05  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59928
59929         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59930         fwriteerror_temp): New declarations.
59931         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59932         (descriptors): New variable.
59933         (cleanup): First, close the descriptors.
59934         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59935         fclose_temp, fwriteerror_temp): New functions.
59936
59937 2006-10-04  Jim Meyering  <jim@meyering.net>
59938
59939         * lib/fts.c (fts_open): Tiny comment change.
59940
59941 2006-10-04  Bruno Haible  <bruno@clisp.org>
59942
59943         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59944         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59945         gl_LOCK_BODY.
59946         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59947         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59948         gl_LOCK_EARLY_BODY.
59949         (gl_LOCK): Require gl_LOCK_BODY.
59950
59951 2006-10-04  Bruno Haible  <bruno@clisp.org>
59952
59953         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59954         (gl_oset_search_atleast): New declaration.
59955         (struct gl_oset_implementation): Add field 'search_atleast'.
59956         (gl_oset_search_atleast): New inline function.
59957         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59958         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59959         (gl_array_oset_implementation): Update.
59960         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59961         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59962         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59963
59964 2006-10-04  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59967
59968 2006-10-03  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59971         from gl_avltreehash_list_implementation.
59972
59973 2006-10-03  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/gl_oset.c (gl_oset_add): Fix return type.
59976
59977 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59978
59979         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59980
59981 2006-10-02  Eric Blake  <ebb9@byu.net>
59982
59983         * modules/strnlen (Depends-on): Add extensions.
59984
59985 2006-10-02  Eric Blake  <ebb9@byu.net>
59986
59987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59988         definition in 2.60+.
59989
59990 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59991
59992         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59993         checks.
59994
59995 2006-10-02  Bruno Haible  <bruno@clisp.org>
59996
59997         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59998         to the AUTOMAKE_OPTIONS.
59999         Reported by Jim Meyering.
60000
60001 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         Work around bug in Solaris 10 /proc file system:
60004         /proc/self/fd/NNN/.. isn't the parent directory of
60005         the directory whose file descriptor is NNN.  This needs to
60006         be worked around at run time, not compile time, since a
60007         program might be built on Solaris 8, where things work, and
60008         run on Solaris 10.
60009         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60010         to use the following interface instead:
60011         (OPENAT_BUFFER_SIZE): New macro.
60012         (openat_proc_name): New function.
60013         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60014         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60015         Likewise.
60016         * lib/openat-proc.c: New file.
60017         * modules/openat (Files): Add lib/openat-proc.c.
60018         (Depends-on): Add same-inode, stdbool.
60019         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60020
60021 2006-09-29  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60024         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60025         argument. Set stdout_closed before testing for ferror, not after.
60026         (fwriteerror, fwriteerror_no_ebadf): New functions.
60027
60028 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60029
60030         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60031
60032 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60033
60034         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60035         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60036
60037 2006-09-28  Jim Meyering  <jim@meyering.net>
60038
60039         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60040         Include <unistd.h>.
60041
60042 2006-09-28  Bruno Haible  <bruno@clisp.org>
60043
60044         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60045         * modules/linkedhash-list (Depends-on): Likewise.
60046         * modules/rbtreehash-list (Depends-on): Likewise.
60047
60048 2006-09-28  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/strndup.h: Simplify the redefinition of strndup.
60051         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60053
60054 2006-09-28  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60057         * lib/gl_linkedhash_list.c: Likewise.
60058         * lib/gl_rbtreehash_list.c: Likewise.
60059
60060 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60063         getaddrinfo.
60064
60065         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60066         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60067         it causes <stdio_ext.h> to cause a compile-time error.
60068         Problem reported by Nelson H. F. Beebe.
60069         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60070         of HAVE_DECL___PENDING.
60071
60072         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60073         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60074         declaration.
60075
60076 2006-09-27  Jim Meyering  <jim@meyering.net>
60077
60078         This file could end up with a definition for a function
60079         named __strndup, rather than rpl_strndup on a system with
60080         incomplete weak_alias support.
60081         * lib/strndup.c (strndup): Rename from __strndup.
60082         Remove #defines that used to map __strndup to strndup.
60083         Don't use K&R prototypes.
60084         Remove LIBC-related code, since this file is not sync'd with glibc.
60085         * lib/strndup.h: Revamp, accordingly.
60086         * m4/strndup.m4: Modernize.
60087
60088 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60089
60090         * modules/savewd (Depends-on): Add 'raise'.
60091         * lib/savewd.c: Include <signal.h>, for 'raise'.
60092
60093 2006-09-26  Jim Meyering  <jim@meyering.net>
60094
60095         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60096         when we detect Darwin 8.7.0's acl_get_file bug.
60097         Rearrange to perform the new (below) run-test while $LIBS
60098         contains any acl-related library.  Set USE_ACL at the end.
60099         (gl_ACL_GET_FILE): New function.
60100
60101 2006-09-26  Eric Blake  <ebb9@byu.net>
60102
60103         * lib/verror.c: Include <config.h> unconditionally.
60104
60105 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         * modules/clock-time (Maintainer): Add self.
60108         * modules/getlogin_r (Depends-on): Add extensions.
60109
60110 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60111
60112         * modules/clock-time: New module.
60113         * modules/nanosleep (Depends-on): Add clock-time.
60114         * modules/gethrxtime (Depends-on): Likewise.
60115         * modules/gettime (Depends-on): Likewise.
60116         * modules/settime (Depends-on): Likewise.
60117
60118         * modules/fts-lgpl: Depend on openat.
60119         * modules/mkancesdirs: Depend on savewd.
60120         * modules/mkdir-p: Likewise.
60121
60122 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60123
60124         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60125
60126         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60127         `gl_have_arbitrary_file_name_length_limit' to
60128         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60129         actually works between configure runs.
60130
60131 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60132             Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60135
60136 2006-09-25  Jim Meyering  <jim@meyering.net>
60137
60138         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60139         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60140
60141 2006-09-25  Eric Blake  <ebb9@byu.net>
60142
60143         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60144         exec's in 2006-09-18 patch when shuffling fds.
60145
60146 2006-09-25  Bruno Haible  <bruno@clisp.org>
60147
60148         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60149         Reported by Jim Meyering.
60150
60151 2006-09-24  Jim Meyering  <jim@meyering.net>
60152
60153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60154         compare a pointer against a literal "0".  That caused failures with
60155         at least HP-UX's hpcc.
60156
60157 2006-09-22  Simon Josefsson  <jas@extundo.com>
60158
60159         * modules/gc-sha1:
60160         * modules/gc-md4:
60161         * modules/gc-hmac-sha1:
60162         * modules/gc-hmac-md5:
60163         * modules/gc-des:
60164         * modules/gc-arcfour: Distribute more files.
60165
60166 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60167
60168         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60169         (gl_linked_iterator_from_to): Initialize struct completely.
60170         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60171         (gl_tree_iterator_from_to): Likewise
60172         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60173         * lib/gl_array_list.c [lint] (gl_array_iterator)
60174         (gl_array_iterator_from_to): Likewise.
60175         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60176         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60177         (gl_carray_iterator_from_to): Likewise.
60178
60179         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60180         * lib/md4.c (md4_process_block): Remove unused variable.
60181         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60182         parentheses for clarity.
60183
60184 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60185
60186         * modules/bison-i18n (Depends-on): Add gettext.
60187
60188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60189
60190         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60191         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60192         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60193         also add missing comma that caused broken test.
60194         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60195         stdlib.h, for `abort'.
60196         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60197         variables.
60198         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60199         include unistd.h if present, for `rmdir'.
60200         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60201         variables.
60202         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60203         in the process include standard headers for prototypes.
60204         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60205         gets declared on GNU/Linux.
60206         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60207         unistd.h, for `rmdir'.
60208         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60209
60210         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60211         always true.
60212         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60213
60214         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60215
60216 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60217
60218         * gnulib-tool (func_version): Create output all at once.  This
60219         may help avoid triggering unnecessary SIGPIPEs, and at any
60220         rate it doesn't hurt.
60221
60222 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60223             Bruno Haible  <bruno@clisp.org>
60224
60225         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60227         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60228
60229         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60230         (gl_FUNC_VASPRINTF): Invoke it.
60231
60232 2006-09-22  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60235         getloadavg.c as first argument.
60236
60237 2006-09-22  Bruno Haible  <bruno@clisp.org>
60238
60239         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60240         at the beginning of the gl_INIT macro.
60241         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60242         gl_GETLOADAVG.
60243
60244 2006-09-22  Bruno Haible  <bruno@clisp.org>
60245
60246         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60247         module.
60248         Suggested by Ralf Wildenhues.
60249
60250 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         Import this patch from libc:
60253
60254         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60255
60256         * lib/regex_internal.c (re_string_reconstruct): Handle
60257         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60258         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60259         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60260         re_string_context_at.
60261
60262         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60263         now requires it.
60264         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60265         gl_REGEX now does it for us.
60266         (gl_REGEX): Add test taken from
60267         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60268
60269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60270         Check that large offsets work.  Modernize Autoconf usages.
60271         Prefer "yes" to mean a good thing rather than a bad.
60272         Don't put "#define mkstemp" in config.h, as this might interfere
60273         with standard system headers that "#define mkstemp mkstemp64".
60274
60275         * modules/mkstemp (Depends-on): Add extensions, so that
60276         mkstemp is visible on some platforms.
60277         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60278         (Include): Change to "mkstemp.h" from <stdlib.h>.
60279         (Files): Add mkstemp.h.
60280
60281         * lib/mkstemp.h: New file, since some standard headers
60282         #define mkstemp.
60283         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60284         Include "mkstemp.h".
60285         Make the _LIBC code resemble glibc original more,
60286         e.g., use K&R style.
60287         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60288         (mkstemp): Remove, since mkstemp.h does this for us.
60289         * lib/stdlib--.h: Include mkstemp.h.
60290
60291         Import this patch from libc:
60292
60293         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60294
60295         * lib/tempname.c (__gen_tempname): Change attempts_min
60296         into a macro.  Use preprocessor to decide how to initialize
60297         attempts [Coverity CID 67].
60298
60299 2006-09-20  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/mkdtemp.c: Import from libc.
60302         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60303                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60304                 attempts_min into a macro.  Use preprocessor to decide how to
60305                 initialize attempts [Coverity CID 67].
60306         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60307                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60308                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60309
60310 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60311
60312         * gnulib-tool (func_exit): New function, to allow to pass the
60313         exit status portably through the trap.  Use everywhere.
60314         (--help, --version): Signal a write error.
60315         (trap): catch SIGPIPE, for write errors.
60316         Exit at the end of the trap, with the correct exit status.
60317
60318 2006-09-19  Karl Berry  <karl@gnu.org>
60319
60320         * doc/gnulib.texi: note about the license texinfo files.
60321
60322 2006-09-19  Eric Blake  <ebb9@byu.net>
60323
60324         * gnulib-tool: Avoid space-tab.
60325
60326 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60329         that prevented coreutils 6.1 from building.  Problem reported
60330         by Petter Reinholdtsen.
60331
60332 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60333
60334         * gnulib-tool (avoidlist): Fix typo that broke options like
60335         --avoid=lock that are used by coreutils bootstrap.
60336
60337 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60338
60339         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60340         more systematically.
60341
60342 2006-09-18  Jim Meyering  <jim@meyering.net>
60343
60344         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60345
60346 2006-09-18  Bruno Haible  <bruno@clisp.org>
60347
60348         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60349
60350 2006-09-18  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60353         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60354         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60355         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60356         * m4/gettext.m4: Require autoconf >= 2.52.
60357         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60358         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60359         of gl_cv_header_inttypes_h.
60360
60361 2006-09-18  Bruno Haible  <bruno@clisp.org>
60362
60363         * lib/javaversion.c: Include configmake.h.
60364
60365 2006-09-18  Bruno Haible  <bruno@clisp.org>
60366
60367         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60368         avoid that the while loops be executed in a subshell.
60369
60370 2006-09-18  Bruno Haible  <bruno@clisp.org>
60371
60372         * MODULES.html.sh (func_module): Break long lines.
60373         Suggested by Bruce Korb <bkorb@gnu.org>.
60374
60375 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60376
60377         Speed up by a factor of 1.12.
60378         * gnulib-tool (nl): New variable.
60379         (func_import): Rewrite include directive extraction to only read each
60380         directive once.
60381
60382 2006-09-17  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/javaversion (Makefile.am): Remove DEFS setting.
60385         (Depends-on): Add configmake, for PKGDATADIR definition.
60386
60387 2006-09-17  Bruno Haible  <bruno@clisp.org>
60388
60389         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60390
60391 2006-09-17  Bruno Haible  <bruno@clisp.org>
60392
60393         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60394         (func_modules_transitive_closure, func_modules_add_dummy,
60395         func_modules_to_filelist, func_import, func_create_testdir,
60396         func_create_megatestdir, ...): Use it wherever possible.
60397         Suggested by Ralf Wildenhues.
60398
60399 2006-09-16  Karl Berry  <karl@gnu.org>
60400
60401         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60402         to avoid sectioning errors.
60403         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60404         [ifinfo]: blank line after @center-ed titles.
60405         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60406         Spell FSF address consistently with others.
60407         (These changes approved by rms.)
60408
60409 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60410
60411         Speed up by a factor of 1.61.
60412         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60413         already checked module names again.
60414
60415 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60416
60417         Speed up by a factor of 1.13.
60418         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60419         for new_files, and the input to func_add_or_update.
60420
60421 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60422
60423         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60424         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60425
60426 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * modules/mkancesdirs (Depends-on): Add fcntl.
60429         * modules/savewd: New file.
60430         * MODULES.html.sh (File system functions): Add savewd.
60431
60432         * modules/configmake (Makefile.am): Add support for the
60433         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60434
60435 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * m4/savewd.m4: New file.
60438
60439 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60442         (dirchownmod): New arg FD.  All callers changed.
60443         Use FD rather than opening the directory ourself, as opening is
60444         now the caller's responsibility.
60445         * lib/dirchownmod.h: Likewise.
60446         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60447         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60448         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60449         (test_dir): Remove.
60450         (mkancesdirs): Return length of prefix of FILE that has already
60451         been made, or -2 if there is a child doing the work.  Redo
60452         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60453         ".", and treat ".." specially since it might stray back into
60454         already-created areas.  Use a subprocess if necessary.  New arg
60455         WD; all users changed.  MAKE_DIR function should now return 1
60456         if it creates a directory that is not readable.  Return -2 if
60457         a child process is spun off.
60458         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60459         Adjust signature to match code.
60460         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60461         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60462         all users changed.
60463         * lib/savewd.c, lib/savewd.h: New files.
60464
60465 2006-09-15  Jim Meyering  <jim@meyering.net>
60466
60467         * modules/rename-dest-slash: New module.
60468         * MODULES.html.sh (posix_compat): Add it here.
60469
60470         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60471
60472 2006-09-15  Jim Meyering  <jim@meyering.net>
60473
60474         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60475         file.
60476
60477         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60478
60479 2006-09-15  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/rename-dest-slash.c (has_trailing_slash): Use
60482         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60483         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60484         test before testing whether SRC is a directory.
60485         Suggestions from Bruno Haible.
60486
60487         Avoid a warning about an unused variable.
60488         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60489         into the #ifdef block where it's used.
60490
60491         * lib/rename-dest-slash.c: New file.
60492
60493 2006-09-14  Bruno Haible  <bruno@clisp.org>
60494
60495         * lib/allocsa.c: Include <config.h> unconditionally.
60496         * lib/asnprintf.c: Likewise.
60497         * lib/asprintf.c: Likewise.
60498         * lib/c-strcasecmp.c: Likewise.
60499         * lib/c-strcasestr.c: Likewise.
60500         * lib/c-strncasecmp.c: Likewise.
60501         * lib/c-strstr.c: Likewise.
60502         * lib/classpath.c: Likewise.
60503         * lib/clean-temp.c: Likewise.
60504         * lib/concatpath.c: Likewise.
60505         * lib/copy-file.c: Likewise.
60506         * lib/csharpcomp.c: Likewise.
60507         * lib/csharpexec.c: Likewise.
60508         * lib/execute.c: Likewise.
60509         * lib/fatal-signal.c: Likewise.
60510         * lib/findprog.c: Likewise.
60511         * lib/fwriteerror.c: Likewise.
60512         * lib/gl_array_list.c: Likewise.
60513         * lib/gl_array_oset.c: Likewise.
60514         * lib/gl_avltree_list.c: Likewise.
60515         * lib/gl_avltree_oset.c: Likewise.
60516         * lib/gl_avltreehash_list.c: Likewise.
60517         * lib/gl_carray_list.c: Likewise.
60518         * lib/gl_linked_list.c: Likewise.
60519         * lib/gl_linkedhash_list.c: Likewise.
60520         * lib/gl_list.c: Likewise.
60521         * lib/gl_oset.c: Likewise.
60522         * lib/gl_rbtree_list.c: Likewise.
60523         * lib/gl_rbtree_oset.c: Likewise.
60524         * lib/gl_rbtreehash_list.c: Likewise.
60525         * lib/imaxabs.c: Likewise.
60526         * lib/imaxdiv.c: Likewise.
60527         * lib/javacomp.c: Likewise.
60528         * lib/javaexec.c: Likewise.
60529         * lib/javaversion.c: Likewise.
60530         * lib/linebreak.c: Likewise.
60531         * lib/localcharset.c: Likewise.
60532         * lib/lock.c: Likewise.
60533         * lib/mbchar.c: Likewise.
60534         * lib/mbswidth.c: Likewise.
60535         * lib/mkdtemp.c: Likewise.
60536         * lib/pipe.c: Likewise.
60537         * lib/printf-args.c: Likewise.
60538         * lib/printf-parse.c: Likewise.
60539         * lib/progname.c: Likewise.
60540         * lib/progreloc.c: Likewise.
60541         * lib/readlink.c: Likewise.
60542         * lib/sh-quote.c: Likewise.
60543         * lib/stpcpy.c: Likewise.
60544         * lib/stpncpy.c: Likewise.
60545         * lib/strcasecmp.c: Likewise.
60546         * lib/strcasestr.c: Likewise.
60547         * lib/strcspn.c: Likewise.
60548         * lib/striconv.c: Likewise.
60549         * lib/strncasecmp.c: Likewise.
60550         * lib/strnlen1.c: Likewise.
60551         * lib/strstr.c: Likewise.
60552         * lib/strtok_r.c: Likewise.
60553         * lib/tls.c: Likewise.
60554         * lib/tmpdir.c: Likewise.
60555         * lib/unicodeio.c: Likewise.
60556         * lib/unsetenv.c: Likewise.
60557         * lib/vasnprintf.c: Likewise.
60558         * lib/vasprintf.c: Likewise.
60559         * lib/wait-process.c: Likewise.
60560         * lib/xallocsa.c: Likewise.
60561         * lib/xsetenv.c: Likewise.
60562         * lib/xstriconv.c: Likewise.
60563
60564 2006-09-13  Simon Josefsson  <jas@extundo.com>
60565
60566         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60567         that internally, suggested by Ralf Wildenhues
60568         <Ralf.Wildenhues@gmx.de>.
60569
60570 2006-09-13  Simon Josefsson  <jas@extundo.com>
60571
60572         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60573         @LIBOBJS@.
60574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60575
60576 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60579         longer worry about uses that don't define HAVE_CONFIG_H.
60580         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60581         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60582         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60583         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60584         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60585         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60586         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60587         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60588         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60589         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60590         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60591         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60592         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60593         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60594         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60595         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60596         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60597         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60598         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60599         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60600         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60601         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60602         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60603         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60604         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60605         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60606         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60607         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60608         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60609         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60610         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60611         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60612         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60613         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60614         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60615         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60616         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60617         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60618         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60619         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60620         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60621         Likewise.
60622
60623 2006-09-13  Eric Blake  <ebb9@byu.net>
60624
60625         * lib/getopt.c: Fix typo in last commit.
60626
60627 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60628
60629         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60630         dgettext.
60631
60632 2006-09-12  Jim Meyering  <jim@meyering.net>
60633
60634         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60635         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60636         Reported by Nelson H. F. Beebe.
60637
60638 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60639
60640         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60641         program_invocation_name and program_invocation_short_name are
60642         initialized.
60643         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60644         and program_invocation_short_name to argp.h, so they are visible
60645         to user programs.
60646         * lib/argp.h: Likewise
60647
60648 2006-09-10  Bruno Haible  <bruno@clisp.org>
60649
60650         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60651         m4/inttypes_h.m4, m4/uintmax_t.m4.
60652
60653 2006-09-10  Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60656         gl_AC_TYPE_UINTMAX_T.
60657
60658 2006-09-10  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60661
60662 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60663
60664         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60665         convention.  Text proposed by Bruno Haible.
60666         (struct argp_option): Document the use of N_() wrappers.
60667
60668         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60669         '\v', and translate the two parts separately, instead of feeding
60670         the whole string to gettext.  This allows to exclude
60671         '\v' from the strings visible to the translator by writing doc
60672         strings as N_("..") "\v" N_("..").
60673
60674 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * config/srclist.txt: Undo latest change; the bug was fixed.
60677
60678 2006-09-09  Bruno Haible  <bruno@clisp.org>
60679
60680         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60681         assignments if building a library without libtool.
60682         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60683         in func_emit_lib_Makefile_am.
60684         (func_import): When building a static library libfoo.a, arrange to
60685         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60686         (func_create_testdir): Likewise.
60687         * modules/gc (configure.ac, Makefile.am): If building statically,
60688         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60689         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60690         * modules/striconv (configure.ac, Makefile.am): Likewise.
60691         Based on a suggestion by Ralf Wildenhues.
60692
60693 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60696         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60697         Also:
60698
60699         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60700         Add year_2050_test to catch glibc bug 2821
60701         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60702
60703         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60704         Prefer #ifdef to #if.
60705
60706         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60707         Return from 'main' instead of calling 'exit'.
60708
60709 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60710
60711         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60712         returned the maximum time_t value rather than (time_t) -1.
60713         Problem originally reported by William Bardwell
60714         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60715
60716         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60717         Moved to here ...
60718         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60719         ... from here.
60720
60721 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60724         2821 is fixed.
60725
60726 2006-09-08  Jim Meyering  <jim@meyering.net>
60727
60728         Don't make generated files read-only.  That would bother too many
60729         people.  However, do retain the ability to work when targets are
60730         read-only: remove the destination and temporary files before writing
60731         them (when generated via sed or echo), or by using the -f option for
60732         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60733         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60734         * modules/byteswap, modules/configmake, modules/fcntl:
60735         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60736         * modules/localcharset, modules/netinet_in, modules/poll:
60737         * modules/stdbool, modules/stdint, modules/sys_select:
60738         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60739
60740 2006-09-08  Jim Meyering  <jim@meyering.net>
60741
60742         Avoid new build failure on FreeBSD 6.0.
60743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60744         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60745         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60746
60747 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60748
60749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60750
60751 2006-09-07  Jim Meyering  <jim@meyering.net>
60752
60753         Fix global typo in last change: use chmod u-w, not chmod u-x.
60754         Spotted by Paul Eggert and Bruce Korb.
60755         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60756         * modules/byteswap, modules/configmake, modules/fcntl:
60757         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60758         * modules/localcharset, modules/netinet_in, modules/poll:
60759         * modules/stdbool, modules/stdint, modules/sys_select:
60760         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60761
60762 2006-09-06  Jim Meyering  <jim@meyering.net>
60763
60764         Make generated files be read-only.
60765         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60766         Ensure that each generated file is now read-only.
60767         * modules/argz: Likewise.
60768         * modules/arpa_inet: Likewise.
60769         * modules/byteswap: Likewise.
60770         * modules/configmake: Likewise.
60771         * modules/fcntl: Likewise.
60772         * modules/fnmatch: Likewise.
60773         * modules/getopt: Likewise.
60774         * modules/glob: Likewise.
60775         * modules/inttypes: Likewise.
60776         * modules/netinet_in: Likewise.
60777         * modules/poll: Likewise.
60778         * modules/stdbool: Likewise.
60779         * modules/stdint: Likewise.
60780         * modules/sys_select: Likewise.
60781         * modules/sys_socket: Likewise.
60782         * modules/sys_stat: Likewise.
60783         * modules/sysexits: Likewise.
60784         * modules/localcharset: Same as above, but continue using temporary
60785         file named "t-$@" (why different?) rather than the "$@-t" used
60786         everywhere else.
60787
60788         * modules/sysexits (Makefile.am): Replace literal occurrences
60789         of "sysexit.h" more readable, and more consistent, "$@".
60790
60791 2006-09-06  Bruno Haible  <bruno@clisp.org>
60792
60793         * modules/striconv: New file.
60794         * modules/xstriconv: New file.
60795         * MODULES.html.sh (Internationalization functions): Add striconv,
60796         xstriconv.
60797
60798 2006-09-06  Bruno Haible  <bruno@clisp.org>
60799
60800         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60801         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60802         not using libtool correctly.
60803
60804 2006-09-06  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/striconv.h: New file.
60807         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60808         iconvstring.c.
60809         * lib/xstriconv.h: New file.
60810         * lib/xstriconv.c: New file.
60811
60812 2006-09-06  Bruno Haible  <bruno@clisp.org>
60813
60814         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60815         lib_..._LDFLAGS.
60816
60817 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60818
60819         * lib/argz_.h: Sync from Libtool.
60820
60821         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60822                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60823
60824         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60825
60826 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60827
60828         * modules/trim: New file.
60829
60830 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60831
60832         * lib/trim.h: New file.
60833         * lib/trim.c: New file.
60834
60835 2006-09-05  Bruno Haible  <bruno@clisp.org>
60836
60837         * MODULES.html.sh (String handling): Add trim.
60838
60839 2006-09-04  Karl Berry  <karl@gnu.org>
60840
60841         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60842         until next release.
60843
60844 2006-09-03  Bruno Haible  <bruno@clisp.org>
60845
60846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60847         correctly.
60848
60849 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60852         not gl_GETLOADAVG.  Omit unneeded semicolons.
60853         Problems reported by Ralf Wildenhues in
60854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60855         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60856         at the end, which is the usual gnulib style.
60857
60858         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60859         of doing all the work ourselves.
60860         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60861         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60862
60863 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60866         Problem reported by Ralf Wildenhues in
60867         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60868
60869         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60870         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60871
60872 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60873
60874         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60875         yesterday's patch by changing test -n to test -z.
60876
60877 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60880         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60881         the former is now obsolescent.
60882
60883         * modules/chdir-long (Depends-on): Add fcntl.
60884
60885 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60888         obsolescent, and programs should use gnulib instead.
60889         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60890         but with prefixes changed.
60891
60892 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60895         or stdbool.h, because they might not exist while configuring.
60896
60897         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60898         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60899         does that for us.
60900         (O_DIRECTORY): Remove.
60901
60902 2006-08-31  Eric Blake  <ebb9@byu.net>
60903
60904         * gnulib-tool: Don't let emacs change spaces to TAB.
60905
60906 2006-08-31  Bruno Haible  <bruno@clisp.org>
60907
60908         * gnulib-tool: When calling func_import more than once, do it in a
60909         subshell.
60910         Reported by Eric Blake <ebb9@byu.net>.
60911
60912 2006-08-31  Bruno Haible  <bruno@clisp.org>
60913
60914         * gnulib-tool (nl): Remove variable.
60915         (sed_transform_lib_file): Use more robust test for config-h module.
60916         (func_import): Fix typo in 2006-08-25 patch.
60917
60918 2006-08-31  Bruno Haible  <bruno@clisp.org>
60919
60920         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60921         specified, augment Makefile.am variables instead of assigning them.
60922
60923 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         Work around a bug in both the Linux and SunOS 64-bit kernels:
60926         nanosleep mishandles sleeps for longer than 2**31 seconds.
60927         Problem reported by Frank v Waveren in
60928         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60930         Check for nanosleep bug.
60931         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60932
60933 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60934
60935         Work around a bug in both the Linux and SunOS 64-bit kernels:
60936         nanosleep mishandles sleeps for longer than 2**31 seconds.
60937         Problem reported by Frank v Waveren in
60938         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60939         * lib/nanosleep.c (BILLION): New constant.
60940         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60941         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60942         implementation.
60943
60944 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * modules/nanosleep (Depends-on): Add gettime.
60947
60948 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60949         and Simon Josefsson  <jas@extundo.com>
60950         and Oskar Liljeblad  <oskar@osk.mine.nu>
60951
60952         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60953         * gnulib-tool (func_import): New license type 'unmodifiable license
60954         text'.
60955         * modules/fdl: Use it.  Longer description.
60956         * module/gpl, module/lgpl: New files.
60957
60958 2006-08-30  Jim Meyering  <jim@meyering.net>
60959
60960         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60961         shadowing the parameter.
60962
60963 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60964
60965         Sync from Libtool:
60966
60967         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60968
60969         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60970         sharing with gnulib.  Report by Eric Blake.
60971
60972 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60973
60974         * modules/isapipe: New file.
60975         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60976
60977 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * modules/configmake (Makefile.am): Add a comment, and omit
60980         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60981         by Bruno Haible.
60982
60983 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * m4/isapipe.m4: New file.
60986
60987 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60988
60989         * lib/isapipe.c, lib/isapipe.h: New files.
60990
60991 2006-08-29  Jim Meyering  <jim@meyering.net>
60992
60993         * modules/configmake (Makefile.am): Make configmake.h depend on
60994         Makefile.  Otherwise, a stale configmake.h could hang around.
60995
60996 2006-08-29  Eric Blake  <ebb9@byu.net>
60997
60998         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60999         resolution of upstream bug 3044.
61000
61001 2006-08-29  Bruno Haible  <bruno@clisp.org>
61002
61003         * modules/localcharset (Depends-on): Add configmake.
61004         (Makefile.am): Remove setting of LIBDIR through DEFS.
61005
61006 2006-08-29  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61009         defined.
61010
61011 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61012
61013         * modules/fcntl: New file.
61014         * modules/chdir-safer (Depends-on): Add fcntl.
61015         * modules/fts: Likewise.
61016         * modules/mkdir-p: Likewise.
61017
61018         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61019         This undoes the most recent change, since we're now addressing the
61020         problem in a different way.
61021
61022         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61023         into output, since the output might be called Makefile.am even
61024         if $makefile_name is something different.
61025         (func_import): Use $makefile_am rather than
61026         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61027         empty.
61028
61029         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61030
61031 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61032
61033         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61034         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61035         recent change to stdint.m4, since we're now addressing the problem in a
61036         different way.
61037
61038 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * m4/fcntl_h.m4: New file.
61041
61042 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61043
61044         * lib/fcntl_.h: New file.
61045         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61046         the fcntl module.
61047         * lib/dirchownmod.c: Likewise.
61048         * lib/fts.c: Likewise.
61049
61050         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61051         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61052         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61053         just before including <inttypes.h>, to avoid circular inclusion.
61054
61055 2006-08-28  Jim Meyering  <jim@meyering.net>
61056
61057         * doc/visibility.texi: Actually read and correct the grammar of the
61058         sentence affected by yesterday's change.
61059
61060 2006-08-28  Eric Blake  <ebb9@byu.net>
61061
61062         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61063         needs wrapper.
61064
61065 2006-08-28  Eric Blake  <ebb9@byu.net>
61066
61067         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61068
61069 2006-08-28  Eric Blake  <ebb9@byu.net>
61070
61071         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61072
61073 2006-08-28  Bruno Haible  <bruno@clisp.org>
61074
61075         * modules/c-strstr: New file, from GNU gettext.
61076         * MODULES.html.sh (String handling): Add c-strstr.
61077
61078 2006-08-28  Bruno Haible  <bruno@clisp.org>
61079
61080         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61081         macros.
61082         Reported by Eric Blake.
61083
61084 2006-08-28  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61087         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61088         * lib/vasprintf.c: Include errno.h, limits.h.
61089         (EOVERFLOW): New fallback definition.
61090         (vasprintf): Test here whether the string length is > INT_MAX.
61091         * lib/vsnprintf.c: Include errno.h, limits.h.
61092         (EOVERFLOW): New fallback definition.
61093         (vsnprintf): Fix bug when generated string was too long for the buffer.
61094         Test here whether the string length is > INT_MAX.
61095
61096 2006-08-28  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/inttypes_.h (SCNX*): Remove definitions.
61099         Reported by Eric Blake.
61100
61101 2006-08-28  Bruno Haible  <bruno@clisp.org>
61102
61103         * lib/c-strstr.h: New file, from GNU gettext.
61104         * lib/c-strstr.c: New file, from GNU gettext.
61105
61106 2006-08-28  Bruno Haible  <bruno@clisp.org>
61107
61108         * gnulib-tool: Reorder some statements.
61109
61110 2006-08-28  Bruno Haible  <bruno@clisp.org>
61111
61112         * gnulib-tool: New option --makefile-name.
61113         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61114         $makefile_name.
61115         (func_import): Write $makefile_name to the cache file, and read it from
61116         there unless explicitly specified. Use $makefile_name as file name
61117         instead of Makefile.am. Adjust the recommendations accordingly.
61118
61119 2006-08-28  Bruno Haible  <bruno@clisp.org>
61120
61121         * gnulib-tool (func_verify_module): Check against misapplying patch.
61122
61123 2006-08-28  Bruno Haible  <bruno@clisp.org>
61124
61125         * gnulib-tool (func_relativize, func_relconcat): New functions.
61126         Give an error if --local-dir is given with --update.
61127         Remove trailing slashes from $local_gnulib_dir.
61128         (func_import): Store the relativized $local_gnulib_dir in
61129         gnulib-cache.m4, and read it from there if not specified explicitly.
61130
61131 2006-08-28  Bruno Haible  <bruno@clisp.org>
61132
61133         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61134         is the current directory. Respect also $local_gnulib_dir.
61135
61136 2006-08-28  Bruno Haible  <bruno@clisp.org>
61137             Simon Josefsson  <jas@extundo.com>
61138
61139         BeOS portability.
61140         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61141
61142 2006-08-27  Jim Meyering  <jim@meyering.net>
61143
61144         * doc/visibility.texi: Remove duplicate word: "pointer".
61145
61146 2006-08-26  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61149         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61150         (Makefile.am): Create inttypes.h from inttypes_.h.
61151         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61152
61153         * modules/imaxabs: New file.
61154
61155         * modules/imaxdiv: New file.
61156
61157 2006-08-26  Bruno Haible  <bruno@clisp.org>
61158
61159         * m4/inttypes.m4: New file.
61160         * m4/_inttypes_h.m4: Remove file.
61161         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61162         PRI_MACROS_BROKEN.
61163         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61164
61165         * m4/imaxabs.m4: New file.
61166
61167         * m4/imaxdiv.m4: New file.
61168
61169 2006-08-26  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/inttypes_.h: New file.
61172         * lib/inttypes.h: Remove file.
61173         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61174
61175         * lib/imaxabs.c: New file.
61176
61177         * lib/imaxdiv.c: New file.
61178
61179 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61180
61181         New config-h module, so that "make" output needn't be cluttered
61182         by -DHAVE_CONFIG_H.
61183         * MODULES.html.sh (Support for building libraries and executables):
61184         Add config-h.
61185         * modules/config-h: New file.
61186         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61187         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61188         the config-h module is used.
61189
61190         New configmake module, so that "make" output needn't be cluttered
61191         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61192         * MODULES.html.sh (Support for building libraries and executables):
61193         Add configmake.
61194         * modules/configmake: New file.
61195
61196 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         * m4/config-h.m4: New file.
61199
61200 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61201
61202         * config/srclist.txt: Add elisp-comp.
61203
61204 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         * MODULES.html.sh (Support for building libraries and executables):
61207         Add elisp-comp.
61208         * build-aux/elisp-comp: New file.
61209         * modules/elisp-comp: New file.
61210
61211 2006-08-24  Bruno Haible  <bruno@clisp.org>
61212
61213         * gnulib-tool (func_create_testdir): Use non-default values of
61214         sourcebase and m4base.
61215
61216 2006-08-24  Bruno Haible  <bruno@clisp.org>
61217
61218         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61219         HTML structure.
61220
61221 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61222
61223         * modules/openat (Depends-on): Add lchown.
61224
61225 2006-08-23  Bruno Haible  <bruno@clisp.org>
61226
61227         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61228         of gl_LOCK_EARLY instead of gl_LOCK.
61229
61230 2006-08-23  Bruno Haible  <bruno@clisp.org>
61231
61232         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61233         on OSF/1 to no.
61234         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61235
61236 2006-08-23  Bruno Haible  <bruno@clisp.org>
61237
61238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61239         as unusable.
61240
61241         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61242         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61243         (gl_LOCK): New macro.
61244
61245 2006-08-22  Simon Josefsson  <jas@extundo.com>
61246
61247         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61248         to md5 module.
61249
61250 2006-08-22  Simon Josefsson  <jas@extundo.com>
61251
61252         * MODULES.html.sh: Add "Support for maintaining and release
61253         projects".
61254
61255         * build-aux/gnupload: New file, from coreutils.
61256
61257 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61258
61259         Avoid the need for AC_LIBSOURCES in m4 macros.
61260         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61261         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61262         * modules/check-version (EXTRA_DIST): Add check-version.h.
61263         * modules/crc (EXTRA_DIST): Add crc.h.
61264         * modules/des (EXTRA_DIST): Add des.h.
61265         * modules/gc (EXTRA_DIST): Add gc.h.
61266         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61267         * modules/getline (EXTRA_DIST): Add getline.h.
61268         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61269         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61270         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61271         * modules/md2 (EXTRA_DIST): Add md2.h.
61272         * modules/md4 (EXTRA_DIST): Add md4.h.
61273         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61274         * modules/read-file (EXTRA_DIST): Add read-file.h.
61275         * modules/readline (EXTRA_DIST): Add readline.h.
61276         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61277         rijndael-api-fst.h.
61278
61279 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * m4/rijndael.m4 (gl_ARCFOUR):
61282         * m4/arctwo.m4 (gl_ARCTWO):
61283         * m4/check-version.m4 (gl_CHECK_VERSION):
61284         * m4/crc.m4 (gl_CRC):
61285         * m4/des.m4 (gl_DES):
61286         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61287         * m4/gc.m4 (gl_GC):
61288         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61289         * m4/getline.m4 (gl_FUNC_GETLINE):
61290         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61291         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61292         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61293         * m4/md2.m4 (gl_MD2):
61294         * m4/md4.m4 (gl_MD4):
61295         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61296         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61297         * m4/readline.m4 (gl_FUNC_READLINE):
61298         * m4/rijndael.m4 (gl_RIJNDAEL):
61299         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61300         to get the necessary .h files and whatnot.
61301
61302 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61305         gnulib rather than the other way around.
61306         * config/srclistvars.sh (COREUTILS): Remove.
61307
61308 2006-08-22  Jim Meyering  <jim@meyering.net>
61309
61310         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61311
61312         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61313
61314 2006-08-22  Eric Blake  <ebb9@byu.net>
61315
61316         * modules/regexprops-generic: New file.
61317         * MODULES.html.sh (Support for building documentation): List it.
61318
61319 2006-08-22  Eric Blake  <ebb9@byu.net>
61320
61321         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61322         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61324         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61325
61326 2006-08-22  Bruno Haible  <bruno@clisp.org>
61327
61328         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61329         and lib_LTLIBRARIES like the other lib_* variables.
61330
61331 2006-08-22  Bruno Haible  <bruno@clisp.org>
61332
61333         * build-aux/x-to-1.in: New file, from GNU gettext.
61334
61335 2006-08-22  Bruno Haible  <bruno@clisp.org>
61336
61337         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61338         <utmpx.h> exists.
61339
61340 2006-08-22  Bruno Haible  <bruno@clisp.org>
61341
61342         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61343         <utmpx.h> exists.
61344
61345 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         BeOS portability.
61348         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61349         exist.
61350         Problem reported by Bruno Haible.
61351
61352 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61353
61354         Avoid the need for AC_LIBSOURCES in m4 macros.
61355         * modules/acl (EXTRA_DIST): Add acl.h.
61356         * modules/argmatch (Files): Add m4/argmatch.m4.
61357         (configure.ac): Add gl_ARGMATCH.
61358         (EXTRA_DIST): Renamed from lib_SOURCES, for
61359         consistency with the other modules.  Remove argmatch.c.
61360         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61361         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61362         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61363         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61364         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61365         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61366         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61367         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61368         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61369         * modules/closeout (EXTRA_DIST): Add closeout.h.
61370         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61371         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61372         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61373         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61374         dirname.h; remove basename.c and stripslash.c.
61375         * modules/exclude (EXTRA_DIST): Add exclude.h.
61376         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61377         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61378         * modules/file-type (EXTRA_DIST): Add file-type.h.
61379         * modules/filemode (EXTRA_DIST): Add filemode.h.
61380         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61381         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61382         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61383         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61384         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61385         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61386         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61387         * modules/getdate (EXTRA_DIST): Add getdate.c.
61388         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61389         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61390         * modules/getpass (EXTRA_DIST): Add getpass.h.
61391         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61392         * modules/group-member (EXTRA_DIST): Add group-member.h.
61393         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61394         * modules/hash (EXTRA_DIST): Add hash.h.
61395         * modules/human (EXTRA_DIST): Add human.h.
61396         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61397         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61398         * modules/lchown (EXTRA_DIST): Add lchown.h.
61399         * modules/long-options (EXTRA_DIST): Add long-options.h.
61400         * modules/lstat (EXTRA_DIST): Add lstat.h.
61401         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61402         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61403         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61404         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61405         * modules/memxor (EXTRA_DIST): Add memxor.h.
61406         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61407         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61408         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61409         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61410         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61411         * modules/physmem (EXTRA_DIST): Add physmem.h.
61412         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61413         * modules/posixver (EXTRA_DIST): Add posixver.h.
61414         * modules/quote (EXTRA_DIST): Add quote.h.
61415         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61416         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61417         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61418         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61419         regex_internal.h regexec.c.
61420         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61421         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61422         * modules/same (EXTRA_DIST): Add same.h.
61423         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61424         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61425         * modules/savedir (EXTRA_DIST): Add savedir.h.
61426         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61427         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61428         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61429         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61430         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61431         * modules/strdup (EXTRA_DIST): Add strdup.h.
61432         * modules/strftime (EXTRA_DIST): Add strftime.h.
61433         * modules/strndup (EXTRA_DIST): Add strndup.h.
61434         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61435         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61436         * modules/time_r (EXTRA_DIST): Add time_r.h.
61437         * modules/timespec (EXTRA_DIST): Add timespec.h.
61438         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61439         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61440         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61441         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61442         * modules/userspec (EXTRA_DIST): Add userspec.h.
61443         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61444         * modules/utimens (EXTRA_DIST): Add utimens.h.
61445         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61446         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61447         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61448         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61449         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61450         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61451         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61452         * modules/yesno (EXTRA_DIST): Add yesno.h.
61453
61454 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61455
61456         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61457
61458         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61459         * m4/dev-ino.m4, same-inode.m4: Remove.
61460
61461         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61462         * m4/acl.m4 (AC_FUNC_ACL):
61463         * m4/backupfile.m4 (gl_BACKUPFILE):
61464         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61465         * m4/canon-host.m4 (gl_CANON_HOST):
61466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61468         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61469         * m4/cloexec.m4 (gl_CLOEXEC):
61470         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61471         * m4/closeout.m4 (gl_CLOSEOUT):
61472         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61473         * m4/dirname.m4 (gl_DIRNAME):
61474         * m4/exclude.m4 (gl_EXCLUDE):
61475         * m4/exitfail.m4 (gl_EXITFAIL):
61476         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61477         * m4/file-type.m4 (gl_FILE_TYPE):
61478         * m4/filemode.m4 (gl_FILEMODE):
61479         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61480         * m4/fpending.m4 (gl_FUNC_FPENDING):
61481         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61482         * m4/fts.m4 (gl_FUNC_FTS):
61483         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61484         * m4/getdate.m4 (gl_GETDATE):
61485         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61486         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61487         * m4/getpass.m4 (gl_FUNC_GETPASS):
61488         * m4/gettime.m4 (gl_GETTIME):
61489         * m4/getugroups.m4 (gl_GETUGROUPS):
61490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61491         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61492         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61493         * m4/hash.m4 (gl_HASH):
61494         * m4/idcache.m4 (gl_IDCACHE):
61495         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61496         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61497         * m4/long-options.m4 (gl_LONG_OPTIONS):
61498         * m4/lstat.m4 (gl_FUNC_LSTAT):
61499         * m4/md5.m4 (gl_MD5):
61500         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61501         * m4/memcoll.m4 (gl_MEMCOLL):
61502         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61503         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61504         * m4/memxor.m4 (gl_MEMXOR):
61505         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61507         * m4/modechange.m4 (gl_MODECHANGE):
61508         * m4/mountlist.m4 (gl_MOUNTLIST):
61509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61510         * m4/openat.m4 (gl_FUNC_OPENAT):
61511         * m4/pathmax.m4 (gl_PATHMAX):
61512         * m4/physmem.m4 (gl_PHYSMEM):
61513         * m4/posixtm.m4 (gl_POSIXTM):
61514         * m4/posixver.m4 (gl_POSIXVER):
61515         * m4/quote.m4 (gl_QUOTE):
61516         * m4/quotearg.m4 (gl_QUOTEARG):
61517         * m4/readtokens.m4 (gl_READTOKENS):
61518         * m4/readutmp.m4 (gl_READUTMP):
61519         * m4/regex.m4 (gl_REGEX):
61520         * m4/safe-read.m4 (gl_SAFE_READ):
61521         * m4/safe-write.m4 (gl_SAFE_WRITE):
61522         * m4/same.m4 (gl_SAME):
61523         * m4/save-cwd.m4 (gl_SAVE_CWD):
61524         * m4/savedir.m4 (gl_SAVEDIR):
61525         * m4/settime.m4 (gl_SETTIME):
61526         * m4/sha1.m4 (gl_SHA1):
61527         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61528         * m4/stat-macros.m4 (gl_STAT_MACROS):
61529         * m4/stat-time.m4 (gl_STAT_TIME):
61530         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61531         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61532         * m4/strdup.m4 (gl_FUNC_STRDUP):
61533         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61534         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61535         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61536         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61537         * m4/time_r.m4 (gl_TIME_R):
61538         * m4/timespec.m4 (gl_TIMESPEC):
61539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61540         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61541         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61542         * m4/userspec.m4 (gl_USERSPEC):
61543         * m4/utimecmp.m4 (gl_UTIMECMP):
61544         * m4/utimens.m4 (gl_UTIMENS):
61545         * m4/xalloc.m4 (gl_XALLOC):
61546         * m4/xgetcwd.m4 (gl_XGETCWD):
61547         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61548         * m4/xreadlink.m4 (gl_XREADLINK):
61549         * m4/xstrtod.m4 (gl_XSTRTOD):
61550         * m4/yesno.m4 (gl_YESNO):
61551         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61552         to get the necessary .h files and whatnot.
61553
61554 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61555             Bruno Haible  <bruno@clisp.org>
61556
61557         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61558         /bin/sh understanding of '!' conditional negation.
61559
61560 2006-08-21  Jim Meyering  <jim@meyering.net>
61561
61562         * modules/openat (Depends-on): Really alphabetize.
61563
61564         * modules/acl (Depends-on): Add error and quote.
61565
61566         * check-module (find_included_lib_files): Add at-func.c to the
61567         ok-to-include-more-than-once white list.
61568
61569         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61570
61571 2006-08-21  Bruno Haible  <bruno@clisp.org>
61572
61573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61574         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61575         Reported by Martin Lambers <marlam@marlam.de>.
61576
61577 2006-08-21  Bruno Haible  <bruno@clisp.org>
61578
61579         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61580         specify an installation location, don't emit a noinst_LIBRARIES or
61581         noinst_LTLIBRARIES assignment.
61582
61583 2006-08-21  Bruno Haible  <bruno@clisp.org>
61584
61585         BeOS portability.
61586         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61587         BeOS has mbrtowc() but no <wctype.h>.
61588
61589 2006-08-21  Bruno Haible  <bruno@clisp.org>
61590
61591         BeOS portability.
61592         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61593         exist.
61594
61595 2006-08-21  Bruno Haible  <bruno@clisp.org>
61596
61597         BeOS portability.
61598         * lib/mbchar.h: Include <wctype.h> only if it exists.
61599
61600 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         Remove files that are no longer needed by their respective modules.
61603         * m4/obstack.m4: Remove.
61604         * m4/strerror_r.m4: Remove.
61605         * m4/uint32_t.m4: Remove.
61606         * m4/uintptr_t.m4: Remove.
61607         * m4/ullong_max.m4: Remove.
61608         * m4/xstrtoimax.m4: Remove.
61609         * m4/xstrtoumax.m4: Remove.
61610
61611         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61612         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61613         dependencies now capture this.
61614
61615         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61616         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61617         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61618         * m4/human.m4 (gl_HUMAN): Likewise.
61619         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61620         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61621
61622         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61623
61624         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61625         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61626         stdint.
61627         * m4/human.m4 (gl_HUMAN): Likewise.
61628         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61629         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61630         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61631         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61632         * m4/xstrtol (gl_XSTRTOL): Likewise.
61633
61634         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61635         AC_TYPE_LONG_LONG_INT.
61636         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61637         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61638         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61639         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61640
61641         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61642         on stdbool.
61643
61644         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61645         (gl_PREREQ_XSTRTOUL): Remove.
61646
61647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61648
61649         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61650         mode.
61651
61652 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61653
61654         Add and change modules to make it easier for coreutils to use
61655         gnulib-tool.
61656         * modules/backupfile (Files): Remove m4/d-ino.m4.
61657         (Depends-on): Add d-ino.
61658         * modules/cycle-check (Depends-on): Add stdint.
61659         (lib_SOURCES): Add cycle-check.h.
61660         * modules/d-ino: New module.
61661         * modules/d-type: New module.
61662         * modules/error (Files): Remove m4/strerror_r.m4.
61663         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61664         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61665         m4/inttypes_h.m4, m4/uintmax_t.m4.
61666         (Depends-on): Add stdint.
61667         (lib_SOURCES): Add fsusage.h.
61668         * modules/getcwd (Files): Remove d-ino.m4.
61669         (Depends-on): Add d-ino.
61670         * modules/getndelim2 (Depends-on): Add stdint.
61671         * modules/glob (Files): Remove m4/d-type.m4.
61672         (Depends-on): Add d-type.
61673         * modules/host-os: New module.
61674         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61675         m4/inttypes_h.m4, m4/uintmax_t.m4.
61676         * Depends-on: Add stdint.
61677         (lib_SOURCES): Add human.h.
61678         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61679         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61680         m4/uintmax_t.m4, m4/ulonglong.m4.
61681         (Depends-on): Add stdint.
61682         (EXTRA_DIST): Add inttostr.h.
61683         * modules/lchmod: New module.
61684         * modules/link-follow: New module.
61685         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61686         (Depends-on): Add lchmod.
61687         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61688         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61689         (Depends-on): Add stdint.
61690         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61691         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61692         (Depends-on): Add stdint.
61693         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61694         * modules/perl: New module.
61695         * modules/regex (Depends-on): Add stdint.
61696         * modules/rmdir-errno: New module.
61697         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61698         m4/intmax_t.m4.
61699         (Depends-on): Add stdint.
61700         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61701         m4/uintmax_t.m4.
61702         (Depends-on): Add stdint.
61703         * modules/unlink-busy: New module.
61704         * modules/utimecmp (Depends-on): Add stdint.
61705         * modules/uptime: New module.
61706         * modules/winsz-ioctl: New module.
61707         * modules/winsz-termios: New module.
61708         * modules/xnanosleep (Depends-on): Add nanosleep.
61709         * modules/ullong_max: Remove.
61710         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61711         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61712         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61713         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61714         (Depends-on): Add inttypes.
61715         (lib_SOURCES): Add xstrtol.h.
61716         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61717         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61718         * MODULES.html.sh: Move 'assert' into the assert section.
61719         Move 'dummy' into the linking section.
61720         Remove ullong_max.
61721         Add section for compatibility checks for POSIX:2001 functions,
61722         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61723         winsz-ioctl, and winsz-termios into it.
61724         Add lchmod.
61725         Add top-level Misc section and put host-os, perl, and uptime
61726         into it.
61727
61728 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61731         now assume the stdint module.  Do not include inttypes.h.
61732         * lib/fsusage.h: Likewise.
61733         * lib/getndelim2.c: Likewise.
61734         * lib/human.h: Likewise.
61735         * lib/inttostr.h: Likewise.
61736         * lib/obstack.c: Likewise.
61737         * lib/regex_internal.h: Likewise.
61738         * lib/tempname.c: Likewise.
61739         * lib/utimecmp.c: Likewise.
61740         * lib/xstrtol.h: Likewise.
61741
61742         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61743
61744         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61745         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61746         * lib/xtime.h: Likewise.
61747
61748 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61749
61750         * modules/openat (Files): Add lib/fchmodat.c.
61751         Fixes problem reported by Jay Youngman.
61752
61753 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61756         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61757
61758 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61759             Bruno Haible  <bruno@clisp.org>
61760
61761         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61762         and is a script that invokes bison. Tighten the code. Add comments.
61763
61764 2006-08-18  Jim Meyering  <jim@meyering.net>
61765
61766         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61767         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61768         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61769         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61770
61771 2006-08-18  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/bison-i18n: New file.
61774         * MODULES.html.sh (Internationalization functions): Add it.
61775
61776 2006-08-18  Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61779         sys/statvfs.h. When getmntinfo was found, check its declaration and
61780         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61781
61782 2006-08-18  Bruno Haible  <bruno@clisp.org>
61783
61784         * m4/bison-i18n.m4: New file, from bison.
61785
61786 2006-08-18  Bruno Haible  <bruno@clisp.org>
61787
61788         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61789         (ME_DUMMY): Treat "kernfs" as a dummy.
61790         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61791
61792 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         Update from coreutils.
61795
61796         2006-08-15  Jim Meyering  <jim@meyering.net>
61797
61798         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61799
61800         2006-01-17  Jim Meyering  <jim@meyering.net>
61801
61802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61803
61804         2006-01-11  Jim Meyering  <jim@meyering.net>
61805
61806         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61807         Check for the lchmod function.
61808
61809 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         Update from coreutils.
61812
61813         * lib/__fpending.h: Add copyright notice.
61814         * lib/fprintftime.h: Likewise.
61815         * lib/savedir.c: Use (C) in copyright notice.
61816         * lib/savedir.h: Likewise.
61817
61818         2006-08-15  Jim Meyering  <jim@meyering.net>
61819
61820         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61821         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61822         in support of the EXPECTED_ERRNO macro.
61823         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61824         definitions.  Instead, define the appropriate symbols and include
61825         "at-func.c".
61826         * lib/mkdirat.c (mkdirat): Likewise.
61827         * lib/fchmodat.c (fchmodat): Likewise.
61828         (ENOSYS): Remove definition.
61829         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61830         it.  Don't include "unistd--.h" -- it wasn't ever used.
61831
61832         2006-01-17  Jim Meyering  <jim@meyering.net>
61833
61834         Rewrite fts.c not to change the current working directory,
61835         by using openat, fstatat, fdopendir, etc..
61836
61837         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61838         (HAVE_OPENAT_SUPPORT): Define.
61839         [_LIBC] (fchdir): Don't undef or define; no longer used.
61840         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61841         Now, this `function' always succeeds, and consumes its file descriptor
61842         parameter -- so callers must not close such FDs.  Update callers.
61843         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61844         (diropen): Add parameter, SP.  Adjust all callers.
61845         Implement using diropen_fd, rather than open.
61846         (fts_open): Initialize new member, fts_cwd_fd.
61847         Remove fts_rft-setting code.
61848         (fts_close): Close fts_cwd_fd, if necessary.
61849         (__opendir2): Define in terms of opendir or opendirat,
61850         depending on whether the FST_NOCHDIR flag is set.
61851         (fts_build): Since fts_safe_changedir consumes its FD, and since
61852         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61853         and close the dup'd file descriptor upon failure.
61854         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61855         (fts_safe_changedir): Tweak semantics to reflect that this function
61856         now calls cwd_advance_fd and hence consumes its FD argument.
61857         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61858         [struct FTS] (fts_rft): Remove now-unused member.
61859         [struct FTS] (fts_cycle.state): Improve comment.
61860
61861         * lib/openat.c (openat_needs_fchdir): New function.
61862         * lib/openat.h (openat_needs_fchdir): Declare it.
61863
61864 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61865
61866         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61867         Problem and fix reported by Pádraig Brady in
61868         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61869
61870 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61873
61874 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * lib/memcoll.c (memcoll): Optimize for the common case where the
61877         arguments are bytewise equal.
61878
61879 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * doc/regexprops-generic.texi: Add a copyright notice.
61882
61883 2006-08-15  Bruno Haible  <bruno@clisp.org>
61884
61885         * modules/tmpdir (License): Change to LGPL.
61886
61887 2006-08-15  Bruno Haible  <bruno@clisp.org>
61888
61889         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61890         module.
61891
61892 2006-08-14  Simon Josefsson  <jas@extundo.com>
61893
61894         * config/srclist.txt: Add gnupload.
61895
61896 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         Change copyright notice from LGPL 2 to GPL 2, since that's the
61899         standard form used in the gnulib repository.
61900         * tests/test-lock.c: Likewise.
61901         * tests/test-stdint.c: Likewise.
61902         * tests/test-tls.c: Likewise.
61903
61904         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61905         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61906         Add copyright notice.
61907
61908         * check-module: Add copyright notice.  Output a copyright
61909         notice if "--version" is specified.
61910         * modules/COPYING: New file.
61911         * tests/test-getaddrinfo.c: Add copyright notice.
61912         * tests/test-verify.c: Likewise.
61913
61914 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         Change copyright notice from LGPL 2 to GPL 2, since that's the
61917         standard form used in the gnulib repository.
61918         * lib/lock.c: LGPL -> GPL.
61919         * lib/lock.h: Likewise.
61920         * lib/strnlen1.c: Likewise.
61921         * lib/strnlen1.h: Likewise.
61922         * lib/tls.c: Likewise.
61923         * lib/tls.h: Likewise.
61924         * lib/tmpdir.c: Likewise.
61925
61926         * lib/TODO: Remove; this belongs only in coreutils.
61927
61928 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         Add copyright notices to long-enough files that lack them, since
61931         otherwise the files aren't clearly free.  Use the same notice that
61932         getdate.texi already uses.
61933         * doc/alloca-opt.texi: Add copyright notice.
61934         * doc/alloca.texi: Likewise.
61935         * doc/ctime.texi: Likewise.
61936         * doc/functions.texi: Likewise.
61937         * doc/gcd.texi: Likewise.
61938         * doc/gnulib-tool.texi: Likewise.
61939         * doc/inet_ntoa.texi: Likewise.
61940         * doc/visibility.texi: Likewise.
61941
61942         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61943         * doc/quote.texi: Add copyright notice.
61944
61945         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61946         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61947         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61948         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61949         is now obsolete, and give a pointer to the Sun list.
61950         Add copyright notice.
61951
61952 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * config/srclistvars.sh: Add copyright notice.
61955
61956 2006-08-14  Eric Blake  <ebb9@byu.net>
61957
61958         Import the following change from libc:
61959
61960         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61961
61962         Upstream bug 2997.
61963         * lib/misc/error.c: Add space between program name and message if file
61964         name is missing.
61965
61966 2006-08-12  Karl Berry  <karl@gnu.org>
61967
61968         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61969         remove, these originate in gnulib now.
61970
61971 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61972
61973         * doc/Makefile (standards.info standards.html standards.dvi):
61974         Also depend on make-stds.texi.
61975
61976 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61979         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61980
61981         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61982         in wchar_t.  Problem reported by Eric Blake.
61983
61984         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61985         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61986         Also, help the compiler to keep LEN in a register.
61987
61988 2006-08-11  Eric Blake  <ebb9@byu.net>
61989
61990         * users.txt: Sort.  Add tar.
61991
61992 2006-08-11  Bruno Haible  <bruno@clisp.org>
61993
61994         * users.txt: New file.
61995
61996 2006-08-11  Bruno Haible  <bruno@clisp.org>
61997
61998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61999         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62000
62001 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * modules/snprintf (Depends-on): Remove minmax.
62004         (Maintainer): Add self and Bruno.
62005
62006 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62007
62008         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62009         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62010         (EOVERFLOW): Define if the system does not.
62011         Do not include "minmax.h"; it wasn't used.
62012         (snprintf): Don't assume size_t promotes to an unsigned type.
62013         Fix bug when generated string was too long for the buffer: the
62014         buffer's contents are supposed to be the initial prefix of the
62015         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62016         exceeds INT_MAX; do the check ourselves.
62017
62018         Import the following changes from libc:
62019
62020         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62021
62022         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62023         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62024         set wc to the byte which couldn't be converted.
62025         (re_string_reconstruct): Don't clear valid_raw_len before calling
62026         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62027         tip_context using re_string_context_at.
62028
62029         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62030
62031         * lib/posix/regex.h: g++ still cannot handled [restrict].
62032
62033         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62034
62035         * lib/posix/regex.h: Remove special handling for VMS.
62036
62037 2006-08-10  Jim Meyering  <jim@meyering.net>
62038
62039         * modules/same-inode: New module.
62040         * modules/dev-ino: New module.
62041         * modules/cycle-check: Depend on these modules, rather than simply
62042         including their .h files.
62043         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62044         required via m4/cycle-check.m4.
62045         * modules/same: Depend on new same-inode module, rather than
62046         including same-inode.h.
62047         * modules/chdir-safer: New file.
62048
62049         * modules/chown (Depends-on): Add stat-macros.
62050
62051 2006-08-10  Jim Meyering  <jim@meyering.net>
62052
62053         * m4/cycle-check.m4: New file.
62054         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62055         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62056
62057 2006-08-10  Eric Blake  <ebb9@byu.net>
62058
62059         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62060         in from original proposal.
62061
62062 2006-08-10  Eric Blake  <ebb9@byu.net>
62063         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62064
62065         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62066         namespace.
62067
62068 2006-08-10  Bruno Haible  <bruno@clisp.org>
62069
62070         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62071         as well.
62072
62073 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62074
62075         Sync from coreutils.
62076
62077         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62078
62079         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62080         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62081
62082 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         * modules/restrict: Remove; no longer needed now that we assume
62085         Autoconf 2.59 or later.
62086         * MODULES.html.sh: Remove 'restrict'.
62087         * modules/argp (Depends-on): Remove 'restrict'.
62088         * modules/base64 (Depends-on): Likewise.
62089         * modules/gc (Depends-on): Likewise.
62090         * modules/getaddrinfo (Depends-on): Likewise.
62091         * modules/glob (Depends-on): Likewise.
62092         * modules/inet_ntop (Depends-on): Likewise.
62093         * modules/inet_pton (Depends-on): Likewise.
62094         * modules/memxor (Depends-on): Likewise.
62095         * modules/regex (Depends-on): Likewise.
62096         * modules/strtok_r (Depends-on): Likewise.
62097         * modules/time_r (Depends-on): Likewise.
62098
62099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62102         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62103         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62104         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62105         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62106         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62107         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62108         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62109
62110         Merge from coreutils.
62111         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62112         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62113         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62114         * m4/time_r.m4 (gl_TIME_R): Likewise.
62115
62116 2006-08-09  Karl Berry  <karl@gnu.org>
62117
62118         * config/srclist.txt: no more gettext-tools, per Bruno.
62119
62120 2006-08-08  Eric Blake  <ebb9@byu.net>
62121
62122         * modules/verror: New module.
62123         * MODULES.html.sh: Document it.
62124
62125 2006-08-08  Eric Blake  <ebb9@byu.net>
62126
62127         * lib/verror.h, lib/verror.c: New files.
62128
62129 2006-08-08  Eric Blake  <ebb9@byu.net>
62130
62131         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62132         verror_at_line output complies with GNU Coding Standards even when
62133         file is NULL.
62134
62135 2006-08-07  Bruno Haible  <bruno@clisp.org>
62136
62137         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62138         versions of AIX.
62139         Reported by Ralf Wildenhues.
62140
62141 2006-08-07  Bruno Haible  <bruno@clisp.org>
62142
62143         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62144         in an AC_DEFUN. Needed so that the autoconf snippets can use
62145         AC_REQUIRE.
62146
62147 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62148
62149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62150         Initialize pkgdata_DATA.
62151         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62152         overriding it.
62153
62154 2006-08-06  Eric Blake  <ebb9@byu.net>
62155
62156         * lib/error.h: Fold in some upstream changes from glibc.
62157         * lib/error.c: Likewise.
62158
62159 2006-08-04  Bruno Haible  <bruno@clisp.org>
62160
62161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62162         Make the mostlyclean-local rule depend on mostlyclean-generic.
62163         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62164
62165 2006-07-31  Bruno Haible  <bruno@clisp.org>
62166
62167         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62168         <stdlib.h>, <string.h>.
62169
62170 2006-07-30  Bruno Haible  <bruno@clisp.org>
62171
62172         * modules/readlink (License): Change to LGPL.
62173
62174 2006-07-30  Bruno Haible  <bruno@clisp.org>
62175
62176         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62177         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62178         set PKGDATADIR to point to it.
62179
62180 2006-07-30  Bruno Haible  <bruno@clisp.org>
62181
62182         * modules/csharpexec (configure.ac): Comment out macro invocation.
62183         * modules/javaexec (configure.ac): Likewise.
62184         * modules/javacomp-script (configure.ac): Likewise.
62185
62186         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62187
62188 2006-07-30  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62191         linked-list.
62192
62193 2006-07-30  Bruno Haible  <bruno@clisp.org>
62194
62195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62196
62197 2006-07-30  Bruno Haible  <bruno@clisp.org>
62198
62199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62200         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62201         get removed.
62202
62203 2006-07-29  Bruno Haible  <bruno@clisp.org>
62204
62205         Make it possible for gnulib-tool to work with locally modified or
62206         augmented gnulib repositories.
62207         * gnulib-tool (func_usage): Document --local-dir option.
62208         (local_gnulib_dir): New variable.
62209         Handle --local-dir option.
62210         (func_lookup_file): New function.
62211         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62212         (func_get_description, func_get_filelist, func_get_description,
62213         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62214         func_get_automake_snippet, func_get_include_directive,
62215         func_get_license, func_get_maintainer): Use func_lookup_file.
62216         (func_import, func_create_testdir): Use func_lookup_file.
62217
62218 2006-07-29  Bruno Haible  <bruno@clisp.org>
62219
62220         * modules/setenv (Depends-on): Add unistd.
62221
62222 2006-07-29  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62225
62226 2006-07-29  Bruno Haible  <bruno@clisp.org>
62227
62228         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62229
62230 2006-07-29  Bruno Haible  <bruno@clisp.org>
62231
62232         * gnulib-tool (import, update): If there is no Makefile.am, look at
62233         aclocal.m4, instead of bailing out.
62234
62235 2006-07-29  Bruno Haible  <bruno@clisp.org>
62236
62237         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62238         Categorize the options by when they are useful.
62239
62240 2006-07-29  Bruno Haible  <bruno@clisp.org>
62241
62242         * gnulib-tool (func_usage): Document option --no-libtool.
62243         Handle option --no-libtool.
62244         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62245         for changed semantics of $libtool variable.
62246         (func_import): Likewise. If libtool is not used, show this through
62247         an option --no-libtool.
62248         (func_create_testdir): Update.
62249
62250 2006-07-29  Bruno Haible  <bruno@clisp.org>
62251
62252         * gnulib-tool (func_import): Extend error message about missing
62253         --doc-base.
62254
62255 2006-07-29  Bruno Haible  <bruno@clisp.org>
62256
62257         * gnulib-tool (func_import): Don't create the $docbase directory if
62258         there is no file to store there.
62259
62260 2006-07-29  Bruno Haible  <bruno@clisp.org>
62261
62262         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62263         relevant, look for configure.ac there, not in the current directory.
62264         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62265
62266 2006-07-29  Bruno Haible  <bruno@clisp.org>
62267
62268         * gnulib-tool (SORT): New variable.
62269         (func_usage): Undocument --assume-autoconf option.
62270         Remove --assume-autoconf option handling.
62271         (autoconf_minversion): Determine from the contents of configure.ac.
62272         (func_import): Remove autoconf_minversion handling.
62273         Suggested by Eric Blake.
62274
62275 2006-07-29  Bruno Haible  <bruno@clisp.org>
62276
62277         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62278
62279 2006-07-29  Bruno Haible  <bruno@clisp.org>
62280
62281         * config/srclist.txt (*setenv.[ch]): Remove rules.
62282
62283 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62284
62285         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62286
62287 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62288
62289         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62290         arpa/inet.h.
62291
62292 2006-07-28  Simon Josefsson  <jas@extundo.com>
62293
62294         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62295         * modules/inet_pton (Depends-on): Likewise.
62296
62297 2006-07-28  Simon Josefsson  <jas@extundo.com>
62298
62299         * m4/netinet_in_h.m4: New file.
62300
62301 2006-07-28  Simon Josefsson  <jas@extundo.com>
62302
62303         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62304         #include's.
62305
62306 2006-07-28  Simon Josefsson  <jas@extundo.com>
62307
62308         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62309         #include's.
62310
62311 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62314         setgid on directories only if they set these bits.
62315         * lib/modechange.h: Remove obsolete comment about masks.
62316
62317 2006-07-28  Eric Blake  <ebb9@byu.net>
62318
62319         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62320         macro expansion.
62321
62322 2006-07-28  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62325
62326 2006-07-28  Bruno Haible  <bruno@clisp.org>
62327
62328         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62329
62330 2006-07-28  Bruno Haible  <bruno@clisp.org>
62331
62332         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62333         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62334         Define fallbacks.
62335         Avoids link error on FreeBSD 4.x.
62336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62337
62338         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62339         encoding.
62340         * lib/mbswidth.c (iswcntrl): Likewise.
62341
62342 2006-07-27  Bruno Haible  <bruno@clisp.org>
62343
62344         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62345         test.
62346
62347 2006-07-27  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62350         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62351         defined.
62352
62353 2006-07-26  Eric Blake  <ebb9@byu.net>
62354
62355         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62356
62357 2006-07-26  Eric Blake  <ebb9@byu.net>
62358
62359         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62360         like mingw that lack mkstemp.
62361         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62362         avoid compilation warning on mingw.
62363
62364 2006-07-26  Bruno Haible  <bruno@clisp.org>
62365
62366         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62367         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62368         INT_FAST*_MIN, INTPTR_MIN.
62369
62370 2006-07-25  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/version-etc (Depends-on): Add stdarg.
62373
62374 2006-07-25  Bruno Haible  <bruno@clisp.org>
62375
62376         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62377         complex commands.
62378
62379 2006-07-25  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62382         defined in <stdarg.h> or config.h.
62383
62384 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62387         (gl_STDIO_SAFER): Remove.
62388
62389 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * MODULES.html.sh (File stream based Input/Output):
62392         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62393         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62394         * modules/fopen-safer, modules/tmpfile-safer: New files.
62395         * modules/stdio-safer: Remove.
62396
62397 2006-07-24  Bruno Haible  <bruno@clisp.org>
62398
62399         * modules/tmpdir: New file.
62400         * MODULES.html.sh (File system functions): Add it.
62401
62402 2006-07-24  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62405         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62406
62407 2006-07-24  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/clean-temp: New file.
62410
62411 2006-07-24  Bruno Haible  <bruno@clisp.org>
62412
62413         * m4/tmpdir.m4: New file, from GNU gettext.
62414
62415 2006-07-24  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/tmpdir.h: New file, from GNU gettext.
62418         * lib/tmpdir.c: New file, from GNU gettext.
62419
62420 2006-07-24  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/clean-temp.h: New file, from GNU gettext.
62423         * lib/clean-temp.c: New file, from GNU gettext.
62424
62425 2006-07-23  Eric Blake  <ebb9@byu.net>
62426
62427         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62428         (Depends-on): Add binary-io.
62429
62430 2006-07-23  Eric Blake  <ebb9@byu.net>
62431
62432         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62433
62434 2006-07-23  Eric Blake  <ebb9@byu.net>
62435
62436         * lib/tmpfile-safer.c: New file.
62437         * lib/stdio-safer.h (fopen_safer): Add prototype.
62438         * lib/stdio--.h (tmpfile): Make safer.
62439
62440 2006-07-23  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62443         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62444         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62445         gl_linked_remove_at): Use it.
62446
62447 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62448         and Simon Josefsson <jas@extundo.com>
62449
62450         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62451
62452         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62453
62454 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * modules/close-stream: New file.
62457         * modules/closeout (Description): Make it clear that it exits
62458         with a diagnostic on error.
62459         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62460         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62461
62462 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         * m4/close-stream.m4: New file.
62465
62466 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * lib/close-stream.c, lib/close-stream.h: New files.
62469
62470 2006-07-22  Bruno Haible  <bruno@clisp.org>
62471
62472         Merge from GNU gettext 0.15.
62473
62474         2006-05-01  Bruno Haible  <bruno@clisp.org>
62475
62476                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62477
62478         2006-07-22  Bruno Haible  <bruno@clisp.org>
62479
62480                 * modules/javaversion: New file.
62481                 * MODULES.html.sh (Java): Add javaversion.
62482
62483         2006-03-12  Bruno Haible  <bruno@clisp.org>
62484
62485                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62486
62487         2005-12-04  Bruno Haible  <bruno@clisp.org>
62488
62489                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62490                 (untested).
62491
62492         2006-06-21  Bruno Haible  <bruno@clisp.org>
62493
62494                 Avoid warnings from recent versions of mcs.
62495                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62496                 -o, -L, -r any more. Use options documented since mcs-1.0
62497                 instead. Similarly for -g.
62498
62499         2005-12-04  Bruno Haible  <bruno@clisp.org>
62500
62501                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62502                 .resources, not .resource.
62503
62504         2005-07-09  Bruno Haible  <bruno@clisp.org>
62505
62506                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62507                 add a .dll suffix.
62508                 Reported by Mark Junker <mjscod@gmx.de>.
62509
62510         2006-07-22  Bruno Haible  <bruno@clisp.org>
62511
62512                 * modules/gettext: Upgrade to gettext-0.15.
62513                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62514                 m4/visibility.m4.
62515                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62516
62517 2006-07-22  Bruno Haible  <bruno@clisp.org>
62518
62519         Merge from GNU gettext 0.15.
62520
62521         2006-03-25  Bruno Haible  <bruno@clisp.org>
62522
62523                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62524
62525         2006-07-21  Bruno Haible  <bruno@clisp.org>
62526
62527                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62528                 "1.1".
62529
62530         2006-05-09  Bruno Haible  <bruno@clisp.org>
62531
62532                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62533                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62534                 for the conftestver execution.
62535
62536         2006-05-01  Bruno Haible  <bruno@clisp.org>
62537
62538                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62539                 optional target-version argument. Verify that the compiler
62540                 groks source of the specified source-version, or add -source
62541                 option as necessary. Verify that the compiler produces
62542                 bytecode in the specified target-version, or add -target and
62543                 -source options as necessary. Make the result of the test
62544                 available as variable CONF_JAVAC. Also log error output in
62545                 config.log.
62546
62547         2006-03-11  Bruno Haible  <bruno@clisp.org>
62548
62549                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62550
62551         2006-05-09  Bruno Haible  <bruno@clisp.org>
62552
62553                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62554                 CLASSPATH_SEPARATOR to a semicolon.
62555
62556         2006-03-12  Bruno Haible  <bruno@clisp.org>
62557
62558                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62559                 available as variable CONF_JAVA, for subsequent autoconf
62560                 tests. Also log error output in config.log.
62561
62562         2006-07-19  Bruno Haible  <bruno@clisp.org>
62563
62564                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62565                 that getline works on glibc2 systems. Needed to avoid trouble
62566                 in relocatable.c.
62567                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62568
62569         2005-12-04  Bruno Haible  <bruno@clisp.org>
62570
62571                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62572                 launcher (untested).
62573
62574         2005-12-04  Bruno Haible  <bruno@clisp.org>
62575
62576                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62577
62578         2006-07-22  Bruno Haible  <bruno@clisp.org>
62579
62580                 * gettext.m4: Update from GNU gettext-0.15.
62581                 * nls.m4: Likewise.
62582                 * po.m4: Likewise.
62583                 * inttypes-pri.m4: Likewise.
62584                 * inttypes-h.m4: Renamed from inttypes.m4.
62585                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62586
62587 2006-07-22  Bruno Haible  <bruno@clisp.org>
62588
62589         Merge from GNU gettext 0.15.
62590
62591         2005-07-05  Bruno Haible  <bruno@clisp.org>
62592
62593                 * printf-args.c (printf_fetchargs): Work around broken
62594                 definition of wint_t on mingw.
62595
62596         2005-02-12  Bruno Haible  <bruno@clisp.org>
62597
62598                 * xallocsa.h: Add extern "C" for C++.
62599
62600         2006-05-17  Bruno Haible  <bruno@clisp.org>
62601
62602                 Cygwin portability.
62603                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62604
62605         2006-04-30  Bruno Haible  <bruno@clisp.org>
62606
62607                 * progreloc.c: Include <mach-o/dyld.h> if available.
62608                 (find_executable): Use _NSGetExecutablePath when possible.
62609
62610         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62611
62612                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62613                 function.
62614
62615         2005-12-29  Bruno Haible  <bruno@clisp.org>
62616
62617                 * progreloc.c (set_program_name_and_installdir): Fix
62618                 compilation error.
62619
62620         2005-12-04  Bruno Haible  <bruno@clisp.org>
62621
62622                 Cygwin portability.
62623                 * progreloc.c: Include <windows.h> also on Cygwin.
62624                 (find_executable): Add support for Cygwin.
62625                 (set_program_name_and_installdir): Handle also platforms with
62626                 nonempty EXEEXT.
62627
62628         2006-07-11  Bruno Haible  <bruno@clisp.org>
62629
62630                 * javacomp.c: Fix a comment.
62631                 Reported by Jim Meyering.
62632
62633         2006-04-30  Bruno Haible  <bruno@clisp.org>
62634
62635                 * javacomp.h (compile_java_class): Add source_version,
62636                 target_version arguments.
62637                 * javacomp.c: Rewritten to choose only a compiler that
62638                 respects the specified source_version and target_version.
62639
62640         2006-06-27  Bruno Haible  <bruno@clisp.org>
62641
62642                 Assume correct S_ISDIR macro.
62643                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62644
62645         2006-07-22  Bruno Haible  <bruno@clisp.org>
62646
62647                 * javaversion.h: New file, from GNU gettext.
62648                 * javaversion.c: New file, from GNU gettext.
62649                 * javaversion.java: New file, from GNU gettext.
62650                 * javaversion.class: New file, from GNU gettext.
62651
62652         2006-05-17  Bruno Haible  <bruno@clisp.org>
62653
62654                 Cygwin portability.
62655                 * javaexec.c (execute_java_class): Test for jview program
62656                 also on Cygwin.
62657
62658         2006-04-09  Bruno Haible  <bruno@clisp.org>
62659
62660                 * fatal-signal.c: Don't include string.h.
62661                 (at_fatal_signal): Use a copying loop instead of memcpy.
62662
62663         2005-12-04  Bruno Haible  <bruno@clisp.org>
62664
62665                 * csharpexec.c: Add support for 'clix' launcher (untested).
62666                 (execute_csharp_using_sscli): New function.
62667                 (execute_csharp_program): Call it.
62668
62669         2006-06-21  Bruno Haible  <bruno@clisp.org>
62670
62671                 Avoid warnings from recent versions of mcs.
62672                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62673                 -o, -L, -r any more. Use options documented since mcs-1.0
62674                 instead. Similarly for -g.
62675
62676         2005-07-09  Bruno Haible  <bruno@clisp.org>
62677
62678                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62679                 add a .dll suffix.
62680                 Reported by Mark Junker <mjscod@gmx.de>.
62681
62682         2006-06-17  Bruno Haible  <bruno@clisp.org>
62683
62684                 * config.charset: Update for NetBSD 3.0.
62685
62686         2006-05-17  Bruno Haible  <bruno@clisp.org>
62687
62688                 Cygwin portability.
62689                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62690
62691         2006-05-16  Bruno Haible  <bruno@clisp.org>
62692
62693                 * localcharset.c [CYGWIN]: Include <windows.h>.
62694                 (get_charset_aliases): For Cygwin, return the same CPxxx
62695                 aliases list as under WIN32.
62696                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62697                 the environment variables. Fall back to GetACP().
62698
62699         2006-04-05  Bruno Haible  <bruno@clisp.org>
62700
62701                 * config.charset: Update Juan Manuel Guerrero's address.
62702
62703         2005-02-12  Bruno Haible  <bruno@clisp.org>
62704
62705                 * allocsa.h: Add extern "C" for C++.
62706
62707         2005-02-10  Bruno Haible  <bruno@clisp.org>
62708
62709                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62710                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62711
62712         2006-07-22  Bruno Haible  <bruno@clisp.org>
62713
62714                 * gettext.h: Update to GNU gettext-0.15.
62715
62716 2006-07-22  Bruno Haible  <bruno@clisp.org>
62717
62718         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62719         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62720         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62721
62722 2006-07-21  Eric Blake  <ebb9@byu.net>
62723
62724         * modules/stdlib-safer: New file.
62725         * MODULES.html.sh (File stream based Input/Output): Add
62726         stdlib-safer.
62727
62728 2006-07-21  Eric Blake  <ebb9@byu.net>
62729
62730         * lib/stdlib-safer.h: New file from coreutils, required by
62731         stdlib--.h.
62732
62733 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62734
62735         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62736
62737 2006-07-20  Bruno Haible  <bruno@clisp.org>
62738
62739         * gnulib-tool: Recognize new option --assume-autoconf.
62740         (autoconf_minversion): New variable.
62741         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62742
62743 2006-07-20  Bruno Haible  <bruno@clisp.org>
62744
62745         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62746
62747 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62748
62749         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62750         Reindent and repaginate.
62751
62752 2006-07-19  Derek Price  <derek@ximbiot.com>
62753
62754         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62755         Correct grammar.
62756
62757 2006-07-17  Bruno Haible  <bruno@clisp.org>
62758
62759         * modules/list: New file.
62760         * modules/array-list: New file.
62761         * modules/carray-list, modules/carray-list-tests: New files.
62762         * modules/linked-list, modules/linked-list-tests: New files.
62763         * modules/avltree-list, modules/avltree-list-tests: New files.
62764         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62765         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62766         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62767         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62768         * modules/oset: New file.
62769         * modules/array-oset: New file.
62770         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62771         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62772         * tests/test-carray_list.c: New file.
62773         * tests/test-linked_list.c: New file.
62774         * tests/test-avltree_list.c: New file.
62775         * tests/test-rbtree_list.c: New file.
62776         * tests/test-linkedhash_list.c: New file.
62777         * tests/test-avltreehash_list.c: New file.
62778         * tests/test-rbtreehash_list.c: New file.
62779         * tests/test-avltree_oset.c: New file.
62780         * tests/test-rbtree_oset.c: New file.
62781         * MODULES.html.sh (Container data structures): New section.
62782
62783 2006-07-17  Bruno Haible  <bruno@clisp.org>
62784
62785         * m4/gl_list.m4: New file.
62786
62787 2006-07-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * lib/gl_list.h: New file.
62790         * lib/gl_list.c: New file.
62791         * lib/gl_array_list.h: New file.
62792         * lib/gl_array_list.c: New file.
62793         * lib/gl_carray_list.h: New file.
62794         * lib/gl_carray_list.c: New file.
62795         * lib/gl_linked_list.h: New file.
62796         * lib/gl_linked_list.c: New file.
62797         * lib/gl_anylinked_list1.h: New file.
62798         * lib/gl_anylinked_list2.h: New file.
62799         * lib/gl_avltree_list.h: New file.
62800         * lib/gl_avltree_list.c: New file.
62801         * lib/gl_anyavltree_list1.h: New file.
62802         * lib/gl_anyavltree_list2.h: New file.
62803         * lib/gl_rbtree_list.h: New file.
62804         * lib/gl_rbtree_list.c: New file.
62805         * lib/gl_anyrbtree_list1.h: New file.
62806         * lib/gl_anyrbtree_list2.h: New file.
62807         * lib/gl_anytree_list1.h: New file.
62808         * lib/gl_anytree_list2.h: New file.
62809         * lib/gl_linkedhash_list.h: New file.
62810         * lib/gl_linkedhash_list.c: New file.
62811         * lib/gl_anyhash_list1.h: New file.
62812         * lib/gl_anyhash_list2.h: New file.
62813         * lib/gl_avltreehash_list.h: New file.
62814         * lib/gl_avltreehash_list.c: New file.
62815         * lib/gl_rbtreehash_list.h: New file.
62816         * lib/gl_rbtreehash_list.c: New file.
62817         * lib/gl_anytreehash_list1.h: New file.
62818         * lib/gl_anytreehash_list2.h: New file.
62819
62820         * lib/gl_oset.h: New file.
62821         * lib/gl_oset.c: New file.
62822         * lib/gl_array_oset.h: New file.
62823         * lib/gl_array_oset.c: New file.
62824         * lib/gl_avltree_oset.h: New file.
62825         * lib/gl_avltree_oset.c: New file.
62826         * lib/gl_rbtree_oset.h: New file.
62827         * lib/gl_rbtree_oset.c: New file.
62828         * lib/gl_anytree_oset.h: New file.
62829
62830 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * m4/mkancesdirs.m4: New file.
62833         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62834         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62835         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62836         it.
62837
62838 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62841         * lib/mkancesdirs.h: New files.
62842         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62843         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62844         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62845         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62846         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62847         callers changed.  Revamp internals significantly, by not
62848         attempting to create directories that are temporarily more
62849         permissive than the final results.  Do not attempt to use
62850         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62851         This removes some race conditions, fixes some bugs, and simplifies
62852         things.  Use new dirchownmod function to do owner and mode changes.
62853         * lib/mkdir-p.h: Likewise.
62854         * lib/modechange.c (octal_to_mode): New function.
62855         (struct mode_change): New member mentioned.
62856         (make_node_op_equals): New arg mentioned.  All callers changed.
62857         (mode_compile): Keep track of which mode bits the user has explicitly
62858         mentioned.
62859         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62860         New arg PMODE_BITS, to keep track of which mode bits the user
62861         mentioned; it treats S_ISUID and S_ISGID speciall.
62862         All callers changed.
62863         * lib/modechange.h: Likewise.
62864
62865 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * MODULES.html.sh: Add mkancestors.
62868         * modules/mkancesdirs: New module.
62869         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62870         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62871         The chdir-safer and afs files are now orphans; I'll remove them
62872         unless someone speaks up.
62873         Add lib/dirchownmod.c, lib/dirchownmod.h.
62874         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62875         Add lchown, mkancesdirs.
62876         (Maintainer): Add self.
62877
62878 2006-07-15  Karl Berry  <karl@gnu.org>
62879
62880         * gnulib-tool: help message wording/arrangement.
62881
62882 2006-07-14  Simon Josefsson  <jas@extundo.com>
62883
62884         * doc/gnulib.texi (Libtool and Windows): New section.
62885
62886 2006-07-12  Simon Josefsson  <jas@extundo.com>
62887
62888         * modules/gendocs (License): Fix license, approved by Karl.
62889
62890 2006-07-12  Eric Blake  <ebb9@byu.net>
62891
62892         * MODULES.html.sh: Add gendocs.
62893
62894 2006-07-11  Eric Blake  <ebb9@byu.net>
62895
62896         * modules/fdl: New module, to install doc/fdl.texi.
62897         * MODULES.html.sh: Add new section for documentation modules.
62898         * gnulib-tool: Avoid space-tab.
62899         (--doc-base): New option, to manage files from doc.
62900
62901 2006-07-11  Eric Blake  <ebb9@byu.net>
62902
62903         * m4/absolute-header.m4: Fix comments to match recent change.
62904
62905 2006-07-11  Eric Blake  <ebb9@byu.net>
62906
62907         * gnulib-tool: List --doc-base before --tests-base.
62908
62909 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62910
62911         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62912
62913 2006-07-11  Bruno Haible  <bruno@clisp.org>
62914
62915         * README: Mention where to put documentation.
62916
62917 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62918
62919         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62920
62921 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62924         to stdint.m4.
62925
62926 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62929         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62930         "no/such/file/stdint.h" when there is no such file, so that
62931         the resulting C code can be parsed by dodgy compilers.
62932         Problems reported by Bob Proulx.
62933
62934 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62935
62936         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62937         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62938         macros into the GNU _D_EXACT_NAMLEN.
62939         * lib/savedir.c:  Likewise.
62940         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62941
62942 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62943         and Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62946         * m4/savedir.m4:
62947         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62948         macros into the GNU _D_EXACT_NAMLEN.
62949
62950 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62951
62952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62953         around the absolute name, to work around a problem with the HP-UX
62954         11.23 native C compiler, reported by Bob Proulx.
62955
62956 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         * doc/maintain.texi, make-stds.texi: Sync from
62959         <http://savannah.gnu.org/projects/gnustandards>.
62960
62961 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62962
62963         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62964
62965 2006-07-09  Jim Meyering  <jim@meyering.net>
62966
62967         * m4/glob.m4: Remove a doubled word in a comment.
62968
62969 2006-07-09  Jim Meyering  <jim@meyering.net>
62970
62971         * lib/argp-pv.c: Remove a doubled word in a comment.
62972         * lib/check-version.c (check_version): Likewise.
62973         * lib/javacomp.c (compile_java_class): Likewise.
62974
62975 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62978         for the benefit of people using Autoconf 2.60.  If you want to
62979         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62980         (or m4/onceonly.m4, if pre-2.57) manually.
62981
62982 2006-07-08  Jim Meyering  <jim@meyering.net>
62983
62984         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62985         comment.
62986         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62987         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62988         comment.
62989
62990 2006-07-08  Jim Meyering  <jim@meyering.net>
62991
62992         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62993
62994 2006-07-07  Simon Josefsson  <jas@extundo.com>
62995
62996         * tests/test-crc.c: Change expected crc value, the test vector
62997         were probably computed using the old broken crc.c?
62998
62999 2006-07-06  Simon Josefsson  <jas@extundo.com>
63000
63001         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63002         now the canonical place for the M4 file).
63003
63004         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63005         from the sys_socket dependency now.
63006
63007         * modules/inet_pton (Files): Ditto.
63008
63009         * modules/inet_ntop (Files): Ditto.
63010
63011 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63012
63013         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63014         not gl_PREREQ_GETUSERSHELL.
63015
63016 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63017
63018         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63019         with only one argument, for Autoconf 2.60.
63020         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63021         expand to nothing, so add a shell command to avoid syntax error.
63022         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63023
63024 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63025
63026         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63027
63028 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63029
63030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63031         no longer needed.  Check for isblank decl.
63032         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63033         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63034         of existence.
63035
63036 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * lib/getloadavg.c: Use __VMS, not VMS.
63039         * lib/getopt.c: Likewise.
63040         * lib/getpagesize.h: Likewise.
63041         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63042         and probably does not work.
63043
63044 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * lib/.cppi-disable: Add wcwidth.
63047         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63048         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63049         (ISGRAPH): Remove.  All uses changed to isgraph.
63050         (FOLD) [!defined _LIBC]: Remove special case.
63051         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63052         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63053         HAVE_ISBLANK.
63054         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63055         case.
63056
63057 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63058
63059         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63060         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63061         brackets.  Other minor changes to suppress some compiler
63062         warnings.
63063
63064 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63065         and Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63068         of invoking obsolescent AC_HEADER_DIRENT macro.
63069         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63070         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63071         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63073         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63074         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63075         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63076         * m4/readdir.m4: Remove; no longer needed.
63077
63078 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63079         and Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63082         Don't worry about this obsolete case any more.
63083         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63084         directories.
63085         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63086         worry about this obsolete case any more.
63087         * lib/fts.c: Likewise.
63088         * lib/getcwd.c: Likewise.
63089         * lib/glob.h: Likewise.
63090         * lib/savedir.c: Likewise.
63091
63092 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63095         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63096         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63097         needed.
63098         All uses removed.
63099         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63100         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63101         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63102         needed.
63103         * m4/getdate.m4 (gl_GETDATE): Likewise.
63104         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63105         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63106         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63107         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63108         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63110         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63111         needed.
63112
63113 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * lib/memcasecmp.c: Include <limits.h>.
63116         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63117         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63118         Don't assume isdigit succeeds only on '0' through '9'.
63119
63120 2006-07-05  Eric Blake  <ebb9@byu.net>
63121
63122         * modules/getaddrinfo (Depends-on): Add snprintf.
63123
63124 2006-07-05  Eric Blake  <ebb9@byu.net>
63125
63126         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63127         to avoid 'header present but could not be compiled' on cygwin.
63128
63129 2006-07-05  Eric Blake  <ebb9@byu.net>
63130
63131         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63132         missing from netdb.h.
63133         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63134
63135 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63136
63137         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63138         no longer needed.
63139         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63140         * m4/getdate.m4 (gl_GETDATE): Likewise.
63141         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63142         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63143         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63144         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63146
63147 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63148
63149         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63150         All uses of is_space replaced by isspace.
63151         * lib/exit.h: Don't talk about STDC_HEADERS.
63152         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63153         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63154         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63155         replaced by isprint etc.
63156         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63157         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63158         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63159         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63160         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63161         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63162
63163 2006-07-05  Bruno Haible  <bruno@clisp.org>
63164
63165         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63166         the function exists, before testing against AIX.
63167         Reported by Martin Lambers <marlam@marlam.de>.
63168
63169 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63172         From Mark D. Baushke.
63173
63174 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63177         to the absolute name, not just one, to bypass Sun C 5.8's
63178         "warning: #include of /usr/include/... may be non-portable".
63179
63180 2006-07-04  Eric Blake  <ebb9@byu.net>
63181
63182         * modules/dirname-tests: New test module.
63183         * tests/test-dirname.c: New file, replacing dirname.c
63184         TEST_DIRNAME section that was recently deleted.
63185
63186 2006-07-04  Bruno Haible  <bruno@clisp.org>
63187
63188         Assume ANSI C header files and <ctype.h> functions.
63189         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63190         (mbsnwidth): Use isprint, iscntrl instead.
63191
63192 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         Merge from coreutils.
63195         * MODULES.html.sh: Add xstrtold.
63196         * modules/xstrtold: New file.
63197         * modules/cycle-check (Files): Add lib/same-inode.h.
63198         * modules/dirname (Files): Add m4/double-slash-root.m4.
63199         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63200         * modules/mkdir-p (Files): Add lib/same-inode.h.
63201         * modules/same (Files): Add lib/same-inode.h.
63202
63203 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63204
63205         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63206         This is to keep the terminology clean; POSIX talks about
63207         "absolute pathnames", not "full pathnames", but the GNU
63208         Coding Standards say to use "path" for something else;
63209         so use "absolute" to keep both sides happy.
63210         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63211         Set gl_absolute_header, not gl_full_header_path.
63212         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63213         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63214         All uses changed.
63215
63216         Merge from coreutils.
63217
63218         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63221         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63222         want to require the building of c-strtod.o.
63223         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63224         needs -lm directly.
63225         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63226
63227         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63228
63229         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63230         --as-needed option if available.  Problem reported by Albert Chin in
63231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63232         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63233         cc merely issues a bunch of annoying warnings for --as-needed
63234         (this problem was reported by Bob Proulx).  Also, try linking with
63235         -lm to detect a bug in binutils 2.16 (this problem was reported
63236         by Ralf Wildenhues).
63237
63238         2006-06-18  Jim Meyering  <jim@meyering.net>
63239
63240         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63241         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63242         macro.
63243         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63244         also check for glibc-2.4's abort-inducing bug.
63245
63246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63247         Low-probability clean-up should be to use rmdir to get rid of
63248         the just-created directory, not unlink.
63249
63250         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63251         configure fail, and request a bug report to inform us about it.
63252         Add a comment that, barring reports to the contrary, in 2007 we'll
63253         assume ftruncate is universally available.
63254
63255         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63258
63259         2006-03-12  Jim Meyering  <jim@meyering.net>
63260
63261         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63262         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63263         * m4/same.m4 (gl_SAME): Likewise.
63264         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63265
63266         2006-03-11  Eric Blake  <ebb9@byu.net>
63267
63268         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63269         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63270         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63271         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63272
63273 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63276         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63277         reported by Mark D. Baushke, one in
63278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63279
63280         Merge from coreutils.
63281
63282         * lib/.cppi-disable: Add stdint_.h.
63283         * lib/.cvsignore: Add stdint.h.
63284
63285         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63288         both double and long double versions.
63289         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63290         * lib/xstrtold.c: New file.
63291         * lib/xstrtod.h (xstrtold): New decl.
63292
63293         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         * lib/filemode.c (setst): Remove.
63296         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63297         (arguably) clearer, and the generated code is a bit smaller on my
63298         Debian GNU/Linux stable x86 host.
63299
63300         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63301
63302         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63303         Assume that filemode.h includes sys/types.h and sys/stat.h.
63304         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63305         (ftypelet): Reorder to put common cases first, for efficiency.
63306         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63307         to do 'M'.
63308         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63309         of 10, for compatibility with FreeBSD.  All callers changed.
63310         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63311         types that can't be deduced solely from st_mode.  First arg is now a
63312         const pointer.
63313         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63314         (strmode): Renamed from mode_string.
63315         (filemodestring): New decl.
63316         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63317         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63318         needed.
63319         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63320
63321         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63324         fsusage.h now does that.  Include fsusage.h first, to test interface.
63325         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63326         at most one method (the old code could have generated decls that
63327         didn't conform to C89, not that this was ever exercised).
63328         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63329
63330         2006-03-19  Jim Meyering  <jim@meyering.net>
63331
63332         Work even in a chroot where d_ino values for entries in "/"
63333         don't match the stat.st_ino values for the same names.
63334         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63335         number, iterate through all entries again, using lstat instead.
63336         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63337         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63338
63339         * lib/getcwd.c (__getcwd): Clarify a comment.
63340         Use memcpy in place of a call to strcpy.
63341
63342         2006-03-12  Jim Meyering  <jim@meyering.net>
63343
63344         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63345         matches that of the current directory (which we're about to chdir ".."
63346         out of), then save the dev-ino of the parent, instead.
63347
63348         * lib/same-inode.h (SAME_INODE): New file/macro.
63349         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63350         Include "same-inode.h", instead.
63351         * lib/same.c: Likewise.
63352         * lib/cycle-check.h: Include "same-inode.h".
63353         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63354         * lib/cycle-check.c (SAME_INODE): Remove definition.
63355         * lib/root-dev-ino.h: Include "same-inode.h".
63356
63357         2006-03-11  Eric Blake  <ebb9@byu.net>
63358
63359         * lib/same.c (same_name): s/base_name/last_component/
63360         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63361         * lib/filenamecat.c (file_name_concat): Likewise.
63362
63363         2006-03-11  Eric Blake  <ebb9@byu.net>,
63364                     Paul Eggert  <eggert@cs.ucla.edu>
63365
63366         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63367         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63368         drive prefix.
63369         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63370         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63371         (last_component): New method.
63372         * lib/dirname.c (dir_len): Determine when drive letters need a
63373         subsequent slash.  Preserve // when it is special.
63374         (dir_name): Don't append dot when drive letter is absolute.
63375         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63376         * lib/basename.c (base_name): New semantics - malloc the result.
63377         Preserve // when it is special.  Preserve relative files that look
63378         like drive letters.
63379         (base_len): Preserve // when it is special.
63380         (last_component): New method, similar to old base_name semantics.
63381         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63382         base_name.  Strip redundant slashes from ///.
63383
63384 2006-07-03  Jim Meyering  <jim@meyering.net>
63385
63386         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63387         macro is used before the first cycle_check call.
63388
63389 2006-07-03  Eric Blake  <ebb9@byu.net>
63390
63391         * modules/dirname (Depends-on): Add xstrndup.
63392
63393 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63396         test cases, so that config.log is a bit easier to follow.
63397
63398 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63399
63400         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63401         both are 64 bits, since this seems to be the tradition, and this
63402         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63403         we ever run into a host that prefers long long to long in this
63404         case, we'll need another configure-time test.  Problem reported by
63405         Jim Meyering.
63406
63407 2006-07-02  Eric Blake  <ebb9@byu.net>
63408
63409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63410
63411 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * modules/inttypes (Depends-on): No longer depends on stdint.
63414         * modules/stdint (Description): Say more about assumptions.
63415         Say that the fast types might differ.  Say macros are used.
63416         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63417         (Makefile.am): Revise list of substituted symbols to match
63418         new stdint.m4.
63419         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63420         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63421         * tests/test-stdint.c (verify_same_types)
63422         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63423         the code conforms to C99/C89.
63424         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63425         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63426
63427 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63430         but fix a bug, by requiring at least 64 bits.
63431         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63432         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63433         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63434         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63435
63436         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63437         changes.  Make 2.59 a prerequisite.  Check and substitute for
63438         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63439         inttypes.h.  Do not use special include files; just use the
63440         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63441         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63442         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63443         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63444         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63445         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63446         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63447         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63448         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63449         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63450         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63451         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63452         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63453         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63454         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63455         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63456         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63457         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63458         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63459         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63460         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63461         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63462         not check for things that C99 does not require, e.g., int8_t.  If
63463         a test isn't needed unless <stdint.h> isn't working, and is
63464         unlikely to be needed for any other reason, then don't do it
63465         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63466         size_t, since we assume C89 freestanding at least.  Do not check
63467         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63468         the right thing even if the types are not defined.  Instead use:
63469         (gl_STDINT_TYPE_PROPERTIES): New macro.
63470         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63471         testing whether <sys/types.h> clashes, as Autoconf does this for
63472         us now.  All uses removed.
63473         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63474         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63475         (gl_CHECK_TYPE_SAME):
63476         Remove; no longer needed.
63477         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63478         exists, since we'll return 0 anyway in that case.
63479         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63480
63481 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63484         possible collision with system files.
63485         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63486         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63487         WCHAR_MIN and WCHAR_MAX in this case.
63488         (<stddef.h>): Do not include; no longer needed.
63489         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63490         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63491         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63492         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63493         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63494         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63495         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63496         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63497         !defined(__c99))]: Include in this case too, since it's harmless
63498         now.
63499         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63500         dangerous to do so.
63501         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63502         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63503         (_STDINT_MIN, _STDINT_MAX): New macros.
63504         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63505         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63506         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63507         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63508         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63509         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63510         macros, not typedefs; this simplifies things quite a bit.
63511         Use long int for all types narrower than int64_t.
63512         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63513         Define in terms of long long int or int64_t or long int,
63514         not int64_t or int32_t.  This saves some compile-time testing.
63515         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63516         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63517         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63518         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63519         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63520         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63521         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63522         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63523         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63524         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63525         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63526         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63527         undef any previous version and define our own version, for
63528         simplicity and consistency with the new macros for types.
63529         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63530         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63531         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63532         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63533         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63534         @WINT_T_SUFFIX@ to keep things simple here.
63535         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63536         Simplify by assuming typical 8/16/32/64 host, since we're
63537         already doing that elsewhere anyway.
63538         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63539         and assume long long int is 64 bits if available.  This
63540         speeds up 'configure'.
63541
63542 2006-07-01  Eric Blake  <ebb9@byu.net>
63543
63544         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63545         Reported by Andreas Buening.
63546
63547 2006-07-01  Eric Blake  <ebb9@byu.net>
63548
63549         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63550
63551 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63552
63553         * lib/getaddrinfo.c: fixed typo
63554
63555 2006-06-29  Jim Meyering  <jim@meyering.net>
63556
63557         * modules/strftime (Maintainer): Add my name, since with the
63558         FPRINTFTIME changes strftime.c has forked from glibc.
63559
63560 2006-06-29  Eric Blake  <ebb9@byu.net>
63561
63562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63563
63564 2006-06-29  Eric Blake  <ebb9@byu.net>
63565
63566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63567
63568 2006-06-29  Eric Blake  <ebb9@byu.net>
63569
63570         * lib/stat_.h: New file.
63571
63572 2006-06-29  Eric Blake  <ebb9@byu.net>
63573
63574         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63575         unused static function.
63576
63577 2006-06-29  Eric Blake  <ebb9@byu.net>
63578
63579         * doc/functions.texi (Function Portability): Document missing lstat
63580         on mingw.
63581
63582 2006-06-29  Eric Blake  <ebb9@byu.net>
63583
63584         * MODULES.html.sh: Add sys_stat.
63585         * modules/sys_stat: New module.
63586         * modules/mkstemp (Depends-on): Add sys_stat.
63587
63588 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63589
63590         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63591
63592 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63593
63594         * m4/c-bs-a.m4: Removed.
63595
63596 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63597
63598         * lib/strftime.c: Assume strftime() exists.
63599
63600 2006-06-29  Derek Price  <derek@ximbiot.com>
63601
63602         * modules/c-bs-a: Removed - \a is C89.
63603         * MODULES.html.sh: Remove c-bs-a.
63604
63605 2006-06-29  Bruno Haible  <bruno@clisp.org>
63606
63607         * modules/wcwidth (License): Change to LGPL.
63608
63609 2006-06-28  Simon Josefsson  <jas@extundo.com>
63610
63611         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63612         on _WIN32.
63613
63614         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63615         getnameinfo.
63616
63617 2006-06-28  Simon Josefsson  <jas@extundo.com>
63618
63619         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63620
63621 2006-06-28  Simon Josefsson  <jas@extundo.com>
63622
63623         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63624         functions there.  It will succeed on Windows XP, but on Windows
63625         2000 and (presumably) earlier, it will fail, and use the internal
63626         re-implementation.
63627         (use_win32_p): New function.
63628         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63629         Support AI_NUMERICSERV to disable getservbyname.
63630         (getnameinfo): New function, only supports
63631         NI_NUMERICHOST|NI_NUMERICSERV for now.
63632
63633         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63634         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63635         getnameinfo.
63636
63637 2006-06-28  Eric Blake  <ebb9@byu.net>
63638
63639         * modules/wcwidth: New file.
63640         * modules/mbchar (Depends-on): Add wcwidth.
63641         * modules/mbswidth (Depends-on): Add wcwidth.
63642         * MODULES.html.sh: Add wcwidth.
63643
63644 2006-06-28  Eric Blake  <ebb9@byu.net>
63645
63646         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63648
63649 2006-06-28  Eric Blake  <ebb9@byu.net>
63650
63651         * lib/xvasprintf.h: Fix comments.
63652
63653 2006-06-28  Eric Blake  <ebb9@byu.net>
63654
63655         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63656         * lib/mbswidth.c (wcwidth): Move from here...
63657         * lib/wcwidth.h: ...to this new file.
63658
63659 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63660
63661         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63662
63663         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63664         it's obsolete.
63665         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63666
63667 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63668
63669         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63670         Autoconf 2.60 says this stuff was obsolete.
63671
63672 2006-06-28  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63675
63676 2006-06-28  Bruno Haible  <bruno@clisp.org>
63677
63678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63679         gt_TYPE_WCHAR_T.
63680
63681 2006-06-28  Bruno Haible  <bruno@clisp.org>
63682
63683         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63684         declaration for wcwidth.
63685         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63686
63687 2006-06-28  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63690         (mkdir): Define using _mkdir.
63691
63692 2006-06-28  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/getaddrinfo.h: Fix POSIX URL.
63695         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63696         _WIN32.
63697         (use_win32_p): Make static.
63698         (getaddrinfo): Reject service name if it is empty or does not consist
63699         solely of decimal digits, or if its value is > 65535.
63700         (getnameinfo): Remove useless casts.
63701
63702 2006-06-27  Simon Josefsson  <jas@extundo.com>
63703
63704         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63705         Eggert and Martin Lambers.
63706
63707 2006-06-27  Simon Josefsson  <jas@extundo.com>
63708
63709         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63710         Eggert and Martin Lambers.
63711
63712 2006-06-27  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63715         result to 0, not to empty.
63716         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63717
63718 2006-06-27  Bruno Haible  <bruno@clisp.org>
63719
63720         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63721
63722 2006-06-26  Simon Josefsson  <jas@extundo.com>
63723
63724         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63725         present.
63726
63727 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63730         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63732
63733 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63734
63735         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63736
63737 2006-06-26  Bruno Haible  <bruno@clisp.org>
63738
63739         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63740
63741 2006-06-26  Bruno Haible  <bruno@clisp.org>
63742
63743         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63744
63745 2006-06-26  Bruno Haible  <bruno@clisp.org>
63746
63747         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63748         SGI C compiler in pre-C99 mode.
63749         Suggested by Mark D. Baushke and Larry Jones.
63750
63751 2006-06-26  Bruno Haible  <bruno@clisp.org>
63752
63753         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63754         WCHAR_MAX.
63755         Reported by Mark D. Baushke and Larry Jones.
63756
63757 2006-06-26  Bruno Haible  <bruno@clisp.org>
63758
63759         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63760         in pre-C99 mode.
63761         Suggested by Mark D. Baushke and Larry Jones.
63762
63763 2006-06-23  Simon Josefsson  <jas@extundo.com>
63764             Bruno Haible  <bruno@clisp.org>
63765
63766         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63767         Emit mostlyclean-local rule.
63768         (func_emit_tests_Makefile_am): Likewise.
63769         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63770
63771 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63772
63773         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63774
63775 2006-06-23  Bruno Haible  <bruno@clisp.org>
63776
63777         * tests/test-stdint.c: Update to match ISO C 99 Technical
63778         Corrigendum 1.
63779
63780 2006-06-23  Bruno Haible  <bruno@clisp.org>
63781
63782         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63783
63784 2006-06-23  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/stdint_.h: Treat IRIX like OpenBSD.
63787
63788 2006-06-23  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63791         ISO C 99 Technical Corrigendum 1.
63792
63793 2006-06-22  Simon Josefsson  <jas@extundo.com>
63794
63795         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63796         MinGW.
63797
63798 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63799
63800         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63801         needed.  Some compiler complained about some of them.  Problem reported
63802         by Larry Jones in
63803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63804
63805 2006-06-21  Simon Josefsson  <jas@extundo.com>
63806
63807         * tests/test-getaddrinfo.c: New file.
63808
63809         * modules/getaddrinfo-tests: New file.
63810
63811         * MODULES.html.sh: Add inet_pton.
63812
63813         * modules/inet_pton: New file.
63814
63815 2006-06-21  Simon Josefsson  <jas@extundo.com>
63816
63817         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63818         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63819         of using the (limited) gnulib implementation on Windows XP.
63820
63821         * m4/inet_pton.m4: New file.
63822
63823 2006-06-21  Simon Josefsson  <jas@extundo.com>
63824
63825         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63826         variable.
63827
63828         * lib/socket_.h: Don't define WINVER.
63829
63830         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63831         slightly modified to work in gnulib.
63832
63833 2006-06-21  Simon Josefsson  <jas@extundo.com>
63834
63835         * doc/gnulib.texi (Windows sockets): Add.
63836
63837 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * lib/read-file.c (fread_file): Start with buffer allocation of
63840         0 bytes rather than 1 byte; this simplifies the code.
63841         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63842         code to free buffer and save/restore errno.
63843         (internal_read_file): Remove unused local.
63844
63845 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63848         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63849         Problem reported by Denis Excoffier in
63850         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63851
63852 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63853
63854         * modules/sys_socket, modules/socklen: Include sys/types since
63855         FreeBSD 4.x's sys/socket.h needs it.
63856
63857 2006-06-19  Simon Josefsson  <jas@extundo.com>
63858
63859         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63860
63861 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63864
63865 2006-06-19  Bruno Haible  <bruno@clisp.org>
63866
63867         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63868         and FULL_PATH_INTTYPES_H in angle brackets.
63869         Reported by Mark D. Baushke <mdb@gnu.org>.
63870
63871 2006-06-17  Eric Blake  <ebb9@byu.net>
63872
63873         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63874         errno.
63875
63876 2006-06-17  Bruno Haible  <bruno@clisp.org>
63877
63878         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63879         <sys/inttypes.h>.
63880
63881 2006-06-17  Bruno Haible  <bruno@clisp.org>
63882
63883         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63884         whether errno is declared. Assume <errno.h> declares errno.
63885
63886 2006-06-17  Bruno Haible  <bruno@clisp.org>
63887
63888         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63889
63890 2006-06-17  Bruno Haible  <bruno@clisp.org>
63891
63892         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63893         problem on Solaris 2.5.1.
63894
63895 2006-06-16  Eric Blake  <ebb9@byu.net>
63896
63897         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63898         * lib/unicodeio.c [!defined errno]: Likewise.
63899         * lib/strtol.c [!defined errno]: Likewise.
63900         * lib/strtod.c [!defined errno]: Likewise.
63901
63902 2006-06-15  Eric Blake  <ebb9@byu.net>
63903
63904         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63905
63906 2006-06-15  Eric Blake  <ebb9@byu.net>
63907
63908         * config/srclist.txt (ssize_t.m4): Lose sync.
63909
63910 2006-06-15  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/stdint (Files): Include m4/full-header-path.m4,
63913         m4/size_max.m4, m4/wchar_t.m4.
63914         (Makefile.am): Many more substitutions.
63915         * modules/stdint-tests: New file.
63916         * tests/test-stdint.c: New file.
63917
63918 2006-06-15  Bruno Haible  <bruno@clisp.org>
63919
63920         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63921         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63922         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63923         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63924         gl_CHECK_TYPE_SAME): New macros.
63925
63926 2006-06-15  Bruno Haible  <bruno@clisp.org>
63927
63928         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63929
63930 2006-06-15  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/stdint_.h: Rewritten to be fully auto-configured.
63933         Fixes bug on HP-UX/IA64.
63934
63935 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * lib/getdate.y (__attribute__): Don't define if already defined.
63938         Problem reported by Larry Jones.
63939         * lib/utimens.c (__attribute__): Likewise.
63940
63941 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63944         reported by Andreas Schwab.
63945
63946 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63947             Bruno Haible  <bruno@clisp.org>
63948
63949         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63950         check for the declaration of strnlen and a run test that exposes the
63951         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63952         rpl_strndup.
63953
63954 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63955             Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63958
63959 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63960
63961         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63962         compile test, for Tru64 4.0D.
63963
63964 2006-05-28  Karl Berry  <karl@gnu.org>
63965
63966         * config/srclist.txt (printf-args.c): lose sync.
63967
63968 2006-05-26  Martin Lambers  <marlam@marlam.de>
63969
63970         * lib/getpass.c: Updates the test for the native W32 API, and adds
63971         missing includes, thus fixing compilation warnings.
63972
63973 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63974
63975         * lib/exclude.c (exclude_fnmatch): New function.
63976         (excluded_file_name): Call exclude_fnmatch.
63977         * lib/exclude.h (excluded_file_name): New prototype
63978
63979 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63980
63981         * lib/tempname.c (small_open, large_open): New macros.
63982         (__open, __open64) [!_LIBC]: Remove.
63983         (__gen_tempname): Use small_open and large_open instead of __open
63984         and __open64.  This fixes a portability bug on HP-UX 11.11i
63985         reported by Simon Wing-Tang in
63986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63987
63988 2006-05-24  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63991         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63992         Reported by Thorsten Maerz <torte@netztorte.de> via
63993         Aaron Stone <aaron@serendipity.cx>.
63994
63995 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63998         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63999         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64000         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64001         not really conditional on the cache.
64002         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64003
64004 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64007         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64008         (my_usleep): Don't mishandle maximum value.
64009
64010 2006-05-19  Jim Meyering  <jim@meyering.net>
64011
64012         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64013
64014 2006-05-17  Bruno Haible  <bruno@clisp.org>
64015
64016         Cygwin portability.
64017         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64018
64019 2006-05-17  Bruno Haible  <bruno@clisp.org>
64020
64021         * lib/stdint_.h: Fix recognition of Cygwin.
64022
64023 2006-05-15  Bruno Haible  <bruno@clisp.org>
64024
64025         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64026         on libtool patch by Ralf Wildenhues.
64027
64028 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64031         test for C99 conformance; (bool) 0.5 is an integer constant
64032         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64033         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64034
64035 2006-05-11  Simon Josefsson  <jas@extundo.com>
64036
64037         * m4/xvasprintf.m4: Fix obvious typo.
64038
64039 2006-05-11  Jim Meyering  <jim@meyering.net>
64040
64041         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64042         James Lemley.
64043
64044 2006-05-10  Simon Josefsson  <jas@extundo.com>
64045
64046         * lib/md4.c: Typo fix, update copyright years.
64047         (K1, K2): Don't use L because it turn computations into 64-bit on
64048         64-bit platforms.
64049
64050 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64053         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64054         unwanted sign propagation, e.g., on hosts with 64-bit int.
64055         There still are some problems with reeelly weird theoretical hosts
64056         (e.g., 33-bit int) but it's not worth worrying about now.
64057         * lib/sha1.c (rol): Likewise.
64058         (K1, K2, K3, K4): Remove unnecessary L suffix.
64059
64060 2006-05-10  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/des.c: Cast to avoid warnings.
64063
64064 2006-05-09  Bruno Haible  <bruno@clisp.org>
64065
64066         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64067         (Depends-on): Depend also on xsize, stdarg.
64068         (configure.ac): Add gl_XVASPRINTF.
64069
64070 2006-05-09  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/xvasprintf.m4: New file.
64073
64074 2006-05-09  Bruno Haible  <bruno@clisp.org>
64075
64076         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64077         (EOVERFLOW): Define fallback value.
64078         (xstrcat): New function.
64079         (xvasprintf): Recognize the special case of a string concatenation.
64080
64081 2006-05-08  Eric Blake  <ebb9@byu.net>
64082
64083         * gnulib-tool (func_version): Base copyright year on CVS date.
64084         (func_emit_copyright_notice): New function.
64085         (func_emit_lib_Makefile_am): Use it.
64086         (func_emit_tests_Makefile_am): Likewise.
64087         (func_import): Likewise.
64088
64089 2006-05-08  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/stdarg: New file.
64092         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64093
64094 2006-05-08  Bruno Haible  <bruno@clisp.org>
64095
64096         * m4/stdarg.m4: New file, from GNU gettext.
64097
64098 2006-05-08  Bruno Haible  <bruno@clisp.org>
64099
64100         * config/srclist.txt (build-aux/config.rpath): different from latest
64101         release.
64102
64103 2006-05-08  Bruno Haible  <bruno@clisp.org>
64104
64105         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64106
64107 2006-05-05  Jim Meyering  <jim@meyering.net>
64108
64109         * m4/warning.m4: New file, derived from bison's file by the same name.
64110
64111 2006-05-03  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/stdint_.h: Shorter URL.
64114         * lib/inttypes.h: Likewise.
64115
64116 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64119
64120 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * lib/verify.h: Document the internals better.  Most of this change
64123         was written by Bruno Haible.
64124
64125 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * doc/verify.texi: New file, partly based on a proposal by
64128         Bruno Haible.
64129
64130 2006-05-02  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64133         test from here...
64134         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64135
64136 2006-04-29  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64139         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64140
64141 2006-04-29  Bruno Haible  <bruno@clisp.org>
64142
64143         * gnulib-tool: Make --update option actually work.
64144
64145 2006-04-29  Bruno Haible  <bruno@clisp.org>
64146
64147         * doc/gcd.texi: New file.
64148         * doc/gnulib.texi: Include it.
64149
64150 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * lib/getdate.y (get_date): When adding relative date, start with the
64153         initial time, not with the result of the first mktime call.
64154
64155 2006-04-25  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_import): Output the include directives in three
64158         blocks, sorted separately.
64159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64160
64161 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64164         to define main with arguments, for C++.  Reported by Eric Blake.
64165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64166         Prefer 'int main ()' to 'int main (void)', for C++.
64167         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64169         for 'main', for C99 and C++.
64170
64171 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64174         Don't assume that exit status -1 is valid.
64175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64176         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64178         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64179         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64181         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64182         functions can be used without declaring them, or that you can
64183         exit with status -1.
64184         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64185
64186 2006-04-24  Karl Berry  <karl@gnu.org>
64187
64188         * config/srclist.txt (longdouble.m4): sync lost.
64189
64190 2006-04-24  Eric Blake  <ebb9@byu.net>
64191
64192         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64193
64194 2006-04-24  Bruno Haible  <bruno@clisp.org>
64195
64196         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64197         poll() implementation in AIX.
64198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64199
64200 2006-04-24  Bruno Haible  <bruno@clisp.org>
64201
64202         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64203         assigned exactly once.
64204
64205 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64206             Bruno Haible  <bruno@clisp.org>
64207
64208         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64209         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64210         for AM_CPPFLAGS.
64211
64212 2006-04-23  Bruno Haible  <bruno@clisp.org>
64213
64214         * modules/copy-file: Depend on unistd.
64215         * modules/execute: Likewise.
64216         * modules/fatal-signal: Likewise.
64217         * modules/findprog: Likewise.
64218         * modules/mkdtemp : Likewise.
64219         * modules/pipe: Likewise.
64220         * modules/wait-process: Likewise.
64221
64222 2006-04-23  Bruno Haible  <bruno@clisp.org>
64223
64224         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64225         condition was already detected.
64226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64227
64228 2006-04-23  Bruno Haible  <bruno@clisp.org>
64229
64230         * lib/copy-file.c: Include <unistd.h> unconditionally.
64231         * lib/execute.c: Likewise.
64232         * lib/fatal-signal.c: Likewise.
64233         * lib/findprog.c: Likewise.
64234         * lib/mkdtemp.c: Likewise.
64235         * lib/pipe.h: Likewise.
64236         * lib/pipe.c: Likewise.
64237         * lib/wait-process.h: Likewise.
64238
64239 2006-04-23  Bruno Haible  <bruno@clisp.org>
64240
64241         * gnulib-tool (func_usage): Fix --import description. Document
64242         --update.
64243         (func_import): Create temporary file in a temporary directory, if
64244         --dry-run is specified. Silence errors from 'grep' when there are no
64245         m4 files in $m4dir.
64246         (func_create_testdir): Silence errors from 'grep' when there are no
64247         m4 files in $m4dir.
64248         Reported by Karl Berry <karl@freefriends.org>.
64249
64250 2006-04-20  Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64253         one argument, so that the code will be portable to Autoconf 2.60.
64254         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64255         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64256         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64257
64258 2006-04-19  Derek Price  <derek@ximbiot.com>
64259             Eric Blake  <ebb9@byu.net>
64260
64261         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64262         rather than "/full/path.h".  Update comment to match.  Shorten &
64263         generalize m4_translit call via AS_TR_CPP.
64264
64265 2006-04-19  Derek Price  <derek@ximbiot.com>
64266             Eric Blake  <ebb9@byu.net>
64267
64268         * lib/inttypes.h: Correct grammar in comment.
64269
64270 2006-04-18  Derek Price  <derek@ximbiot.com>
64271             Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         * modules/inttypes: New file.
64274         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64275
64276 2006-04-18  Derek Price  <derek@ximbiot.com>
64277             Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64280         New files.
64281
64282 2006-04-18  Derek Price  <derek@ximbiot.com>
64283             Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         * lib/inttypes.h: New file.
64286         * lib/strtoimax.c: Assume <inttypes.h>.
64287
64288 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64291         isn't mounted.  Problem reported by Kir Kolyshkin.
64292
64293 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64296         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64297         Derek R. Price.
64298         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64299         implementation.
64300
64301 2006-04-12  Eric Blake  <ebb9@byu.net>
64302
64303         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64304         is now done automatically by the corresponding Autoconf macro.
64305
64306 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64309         time_r.h.
64310
64311 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         Merge regex changes from libc, removing some of our
64314         POSIX-conformance changes that were rejected and redoing them in a
64315         less-intrusive way.
64316
64317         * lib/regcomp.c (re_compile_internal, init_dfa):
64318         Length arg is now size_t, not Idx.  All uses changed.
64319         (peek_token): Forward decl now says internal_function.
64320         (__re_error_msgid, __re_error_msgid_idx):
64321         Now static rather than extern with attribute_hidden.
64322         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64323         For some reason libc prefers K&R style defns for external functions.
64324         (regerror) [!defined _LIBC]: Likewise.
64325         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64326         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64327         (build_range_exp, build_collating_symbol):
64328         Use K&R-style defn.
64329         (re_compile_fastmap): Use '\0' to memset, not 0.
64330         (utf8_sb_map): Make the calculations more obvious.
64331         (init_dfa, parse_bracket_exp, build_charclass_op):
64332         Call calloc and cast result, as glibc does.
64333         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64334         (build_range_exp, build_collating_symbol):
64335         Now internal functions.
64336
64337         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64338
64339         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64340         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64341         Don't depend on VMS; depend on __VMS instead, for POSIX
64342         namespace cleanness.
64343         (regoff_t): Define to ssize_t, not long int.
64344
64345         Remove the REG_ macros named below.  Instead, make the old names
64346         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64347         __USE_GNU_REGEX.
64348         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64349         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64350         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64351         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64352         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64353         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64354         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64355         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64356         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64357         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64358         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64359         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64360         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64361         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64362         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64363         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64364         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64365         (REG_NREGS):
64366         Remove.  All uses replaced by the old RE_* names.
64367         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64368         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64369         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64370         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64371         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64372         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64373         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64374         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64375         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64376         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64377         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64378         Don't bother having these macros be independent of each others'
64379         values, since they no longer exist in the POSIX name space.
64380
64381         Rename the following member names back to their old names,
64382         unless !__USE_GNU_REGEX.  All uses changed back.
64383         (buffer): Renamed from re_buffer.
64384         (allocated): Renamed from re_allocated.
64385         (used): Renamed from re_used.
64386         (syntax): Renamed from re_syntax.
64387         (fastmap): Renamed from re_fastmap.
64388         (translate): Renamed from re_translate.
64389         (can_be_null): Renamed from re_can_be_null.
64390         (regs_allocated): Renamed from re_regs_allocated.
64391         (fastmap_accurate): Renamed from re_fastmap_accurate.
64392         (no_sub): Renamed from re_no_sub.
64393         (not_bol): Renamed from re_not_bol.
64394         (not_eol): Renamed from re_not_eol.
64395         (newline_anchor): Renamed from re_newline_anchor.
64396         (num_regs): Renamed from rm_num_regs.
64397         (start): Renamed from rm_start.
64398         (end): Renamed from rm_end.
64399
64400         (free_state): Move up a bit.
64401
64402         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64403         #define to be empty.
64404         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64405         when that is what is intended.
64406         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64407         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64408         (MAX): New macro.
64409         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64410         All uses changed back to re_malloc, etc.  It's now the caller's
64411         responsibility to check for overflow; all callers changed.
64412         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64413         (re_x2nrealloc): Remove.
64414         (free_state): Remove decl.
64415
64416         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64417         (re_set_registers, re_exec):
64418         Use K&R-style defn.
64419
64420         2006-01-31  Roland McGrath  <roland@redhat.com>
64421
64422         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64423         Reported by Mike Frysinger <vapier@gentoo.org>.
64424
64425         2006-01-15  Andreas Jaeger  <aj@suse.de>
64426
64427         [BZ #1950]
64428         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64429         build_wcs_upper_buffer change.
64430         (build_wcs_upper_buffer): Change return type.
64431
64432         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64433
64434         * lib/regex_internal.h: Include <stdint.h> if available.
64435
64436         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64437
64438         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64439
64440         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64441
64442         * lib/regcomp.c: Adjust for changed secondary hash function.
64443
64444         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64445
64446         * lib/regex.h: Pretty printing.
64447         Clean up namespace a bit.
64448
64449         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64450
64451         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64452         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64453
64454         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64455                     Ulrich Drepper  <drepper@redhat.com>
64456
64457         [BZ #1302]
64458         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64459         changed.
64460         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64461
64462         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64463
64464         [BZ #281]
64465         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64466         * lib/regcomp.c: Remove unnecessary uses of
64467         unsigned RE_TRANSLATE_TYPE.
64468         * lib/regex_internal.h: Likewise.
64469         * lib/regex_internal.c: Likewise.
64470         * lib/regexec.c: Likewise.
64471         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64472
64473         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64474
64475         * lib/regexec.c (find_recover_state): Remove unnecessary
64476         initialization.
64477         (transit_state_bkref): Make DFA a const pointer.
64478         (get_subexp): Likewise.
64479         (check_arrival): Likewise.
64480         (update_cur_sifted_state): Likewise.
64481         (re_search_internal): Likewise.
64482         (prune_impossible_nodes): Likewise.
64483         (acquire_init_state_context): Likewise.
64484         (proceed_next_node): Likewise.
64485         (set_regs): Likewise.
64486         (free_fail_stack_return): Likewise.
64487         (check_arrival_expand_ecl): Mark DFA parameter as const.
64488         (check_arrival_expand_ecl_sub): Likewise.
64489         (check_subexp_limits): Likewise.
64490         (sub_epsilon_src_nodes):  Likewise.
64491         (add_epsilon_src_nodes):  Likewise.
64492         (merge_state_array): Likewise.
64493         (update_regs): Likewise.
64494         (build_trtable): Likewise.
64495         (sift_states_backward): Mark MCTX parameter as const.
64496         (build_sifted_states): Likewise.
64497         (update_cur_sifted_state): Likewise.
64498         (sift_states_mkref): Likewise.
64499         (check_arrival_expand_ecl): Mark eclosure as const.
64500         (check_dst_limits_calc_pos_1): Likewise.
64501         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64502         pointer.
64503
64504         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64505
64506         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64507         (transit_state_sb): Likewise.
64508         (transit_state_mb): Likewise.
64509         (sift_states_iter_mb): Likewise.
64510         (check_arrival_add_next_nodes): Likewise.
64511         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64512         [_LIBC] (re_search_2_stub): Use mempcpy.
64513
64514         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64515         mbrtowc for very simple UTF-8 case.
64516
64517         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64518         a pointer-to-const.
64519         (re_acquire_state_context): Likewise.
64520         * lib/regex_internal.h: Adjust prototypes.
64521
64522         * lib/regex.c: Prevent using C++ compilers.
64523
64524         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64525         (re_acquire_state_context): Likewise.
64526
64527 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64528
64529         * modules/regex (Depends-on): Add ssize_t.
64530
64531 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64534         translation table.
64535
64536 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64539
64540 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64541             Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64544         <sys/types.h> and <inttypes.h>.
64545
64546 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64547
64548         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64549         `__error_t_defined', so argp.h will not typedef the former.
64550
64551 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64552
64553         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64554         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64555         glibc names.  Even if glibc is changed to conform to POSIX, the
64556         traditional names will be available anyway, since regex depends on
64557         the extensions module.  Also, fix a longstanding typo in the
64558         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64559         reported by Emanuele Giaquinta.  Also, change sense of cached
64560         variable, so that the message makes sense.
64561
64562 2006-03-24  Simon Josefsson  <jas@extundo.com>
64563
64564         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64565         including some doc fixes.
64566         (base64_encode_alloc): Fix +1 bug on allocation failures.
64567
64568 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64569
64570         * lib/base64.c (base64_encode): Do not read past end of array with
64571         unsanitized input on systems with CHAR_BIT > 8.
64572
64573 2006-03-24  Eric Blake  <ebb9@byu.net>
64574
64575         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64576
64577 2006-03-22  Karl Berry  <karl@gnu.org>
64578
64579         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64580         * config/srclistvars.sh (COREUTILS): new var.
64581
64582 2006-03-17  Jim Meyering  <jim@meyering.net>
64583
64584         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64585         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64586
64587 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64590         no longer needs it.  Instead, check that regoff_t is as least
64591         as wide as ptrdiff_t.
64592
64593         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64594         so that our regex.h stays compatible with the installed regex.
64595         This is helpful for installers who configure --without-included-regex.
64596         Problem reported by Emanuele Giaquinta.
64597
64598 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64601         Typedef to long int, not to off_, as POSIX will likely change
64602         in that direction.
64603
64604 2006-03-15  Eric Blake  <ebb9@byu.net>
64605
64606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64607
64608 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64609
64610         * lib/argp-help.c (validate_uparams): Fix typo
64611         * lib/argp-parse.c (argp_default_options): Consistently begin help
64612         messages with a lowercase letter.
64613
64614 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64617         overrun buffers and shouldn't be used (much as gets shouldn't be
64618         used).
64619         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64620
64621 2006-03-08  Simon Josefsson  <jas@extundo.com>
64622
64623         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64624         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64625
64626 2006-03-08  Simon Josefsson  <jas@extundo.com>
64627
64628         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64629         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64630
64631 2006-03-08  Simon Josefsson  <jas@extundo.com>
64632
64633         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64634         signal that configure disabled the device.
64635
64636 2006-03-08  Simon Josefsson  <jas@extundo.com>
64637
64638         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64639         languages.
64640
64641 2006-03-07  Simon Josefsson  <jas@extundo.com>
64642
64643         * modules/getopt (Depends-on): Add unistd.
64644
64645         * modules/unistd: New file.
64646
64647 2006-03-07  Simon Josefsson  <jas@extundo.com>
64648
64649         * modules/gc-random: New file.
64650
64651 2006-03-07  Simon Josefsson  <jas@extundo.com>
64652
64653         * m4/unistd_h.m4: New file.
64654
64655 2006-03-07  Simon Josefsson  <jas@extundo.com>
64656
64657         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64658         test to be side-effect free by storing the result in the cache
64659         variable gl_cv_lib_readline, and moving the assignment of
64660         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64661         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64662
64663 2006-03-07  Simon Josefsson  <jas@extundo.com>
64664
64665         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64666         error on missing devices (the functions will return an error).
64667
64668         * m4/gc.m4: Move random stuff to gc-random.m4
64669
64670 2006-03-07  Simon Josefsson  <jas@extundo.com>
64671
64672         * lib/unistd_.h: New file.
64673
64674 2006-03-07  Simon Josefsson  <jas@extundo.com>
64675
64676         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64677
64678 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64681         Problem reported by Juan Manuel Guerrero.
64682
64683 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64686         the unistd module.
64687         * lib/getlogin_r.c: Likewise.
64688         * lib/getlogin_r.h: Likewise.
64689         * lib/glob.c: Likewise.
64690         * lib/pagealign_alloc.c: Likewise.
64691         * lib/unistd_.h: Remove; no longer needed.
64692
64693 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64694
64695         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64696         Add unistd.
64697         * modules/c-stack (Depends-on): Add unistd.
64698         * modules/getlogin_r: Likewise.
64699         * modules/glob: Likewise.
64700         * modules/pagealign_alloc: Likewise.
64701         * modules/unistd (Files): Remove lib/unistd_.h.
64702         (EXTRA_DIST): Remove.
64703         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64704         need unistd_.h.
64705         (MOSTLYCLEANFILES): Remove unistd.h-t.
64706
64707 2006-03-03  Simon Josefsson  <jas@extundo.com>
64708
64709         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64710
64711 2006-03-03  Simon Josefsson  <jas@extundo.com>
64712
64713         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64714         libidn and bison.
64715
64716 2006-03-03  Simon Josefsson  <jas@extundo.com>
64717
64718         * build-aux/maint.mk: Add indent target.
64719
64720 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64721
64722         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64723         our replacement poll.h in any case, to avoid a differing
64724         declaration from a system header.  Seen on AIX.
64725
64726 2006-03-01  Simon Josefsson  <jas@extundo.com>
64727
64728         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64729         <kasal@ucw.cz>.
64730
64731 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * modules/gettime (Depends-on): Add extensions module.
64734         * modules/nanosleep (Depends-on): Likewise.
64735         * modules/settime (Depends-on): Likewise.
64736
64737 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64740         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64741         pedantically.
64742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64743         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64744
64745         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64746         not "==".  Reported by Ralf Wildenhues.
64747
64748 2006-03-01  Karl Berry  <karl@gnu.org>
64749
64750         * doc/Copyright/request-*: new files, synced from gnuorg.
64751
64752 2006-03-01  Karl Berry  <karl@gnu.org>
64753
64754         * config/srclist.txt (Copyright/*): new entries.
64755
64756 2006-02-28  Simon Josefsson  <jas@extundo.com>
64757
64758         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64759
64760 2006-02-27  Simon Josefsson  <jas@extundo.com>
64761
64762         * lib/base64.h: Indent #define's.  From Jim Meyering
64763         <jim@meyering.net>.
64764
64765 2006-02-27  Jim Meyering  <jim@meyering.net>
64766
64767         Revert the change of 2006-02-24, so these files can continue
64768         to be sync'd from gettext.
64769         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64770         of `config.h'.
64771
64772 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         * modules/intprops: New file.
64775         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64776         Add intprops.
64777         * modules/getloadavg (Files): Remove lib/intprops.h.
64778         (Depends-on): Add intprops.
64779         * modules/human: Likewise.
64780         * modules/inttostr: Likewise.
64781         * modules/openat: Likewise.
64782         * modules/sig2str: Likewise.
64783         * modules/userspec: Likewise.
64784         * modules/utimecmp: Likewise.
64785         * modules/xnanosleep: Likewise.
64786         * modules/xstrtol: Likewise.
64787
64788 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64789
64790         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64791         * modules/lock-tests (TESTS): Use $(EXEEXT).
64792         * modules/tls-tests: Likewise.
64793         * modules/argp-tests: Likewise.
64794         (check_PROGRAMS): New var, replacing...
64795         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64796
64797 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64798
64799         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64800         `config.h'.
64801
64802 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64805
64806 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64807
64808         Sync from coreutils.
64809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64810         gl_CHDIR_SAFER.
64811
64812 2006-02-22  Jim Meyering  <jim@meyering.net>
64813
64814         Sync from coreutils.
64815         * m4/chdir-safer.m4: New file.
64816
64817 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64818
64819         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64820         AT_FDCWD exceeds INT_MAX.
64821         * lib/openat.h (AT_FDCWD): Likewise.
64822
64823 2006-02-17  Eric Blake  <address@hidden>
64824
64825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64826
64827 2006-02-16  Simon Josefsson  <jas@extundo.com>
64828
64829         * modules/getaddrinfo (Depends-on): Add sys_socket.
64830
64831 2006-02-15  Simon Josefsson  <jas@extundo.com>
64832
64833         * build-aux/maint.mk: Add dsyntax-check rule.
64834
64835 2006-02-15  Eric Blake  <ebb9@byu.net>
64836
64837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64838         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64839         'present but cannot compile' warnings on cygwin.
64840         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64841         use ws2tcpip.h if sys/socket.h works.
64842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64843         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64844
64845 2006-02-14  Simon Josefsson  <jas@extundo.com>
64846
64847         * modules/maintainer-makefile (Files): Rename.
64848
64849         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64850         and (the local) Makefile.cfg to maint-cfg.mk.
64851
64852         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64853         to the latter.
64854
64855         * modules/maintainer-makefile: New module.
64856
64857         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64858         severaly stripped to make it possible to build it up from scratch
64859         with reliable tests.
64860
64861         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64862         fixes to permit overriding the default actions when configure and
64863         makefile are not available.
64864
64865 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         Sync from coreutils.
64868         * modules/lstat (Depends-on): Don't depend on xalloc.
64869         (License): Change from GPL to LGPL, since this is now simply a
64870         replacement for a libc function.
64871
64872 2006-02-14  Jim Meyering  <jim@meyering.net>
64873
64874         Sync from coreutils.
64875
64876         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64877         failure on deficient systems, and simplify gnulib lgpl dependencies.
64878         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64879         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64880
64881         * lib/xalloc-die.c: Remove unused definition of N_.
64882
64883 2006-02-14  Jim Meyering  <jim@meyering.net>
64884
64885         Sync from coreutils.
64886         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64887         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64888         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64889         double-quote uses of that variable, to accommodate the rare case in
64890         which getmntent is available in none of the libraries checked.  This
64891         happens at least on FreeBSD 5.0.
64892
64893 2006-02-13  Simon Josefsson  <jas@extundo.com>
64894
64895         * gnulib-tool (Usage): Fix --import, from
64896         karl@freefriends.org (Karl Berry).
64897
64898 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64899
64900         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64901
64902 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64903
64904         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64905         "autoupdate" on 2005-12-12.
64906
64907 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * modules/closeout (Depends-on): Remove atexit.
64910
64911 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64914         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64915
64916 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64919         __EXTENSIONS__ if this causes compilation to fail.  Problem
64920         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64921         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64922
64923 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64926         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64928         All uses changed.
64929
64930 2006-01-26  Simon Josefsson  <jas@extundo.com>
64931
64932         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64933         prototype is visible on mingw32.
64934
64935         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64936         for mingw32.
64937
64938         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64939         mingw32).
64940
64941 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64944         attempt to open for write; this always fails, at least on POSIX
64945         hosts.  This reinstates the 2006-01-09 change, which was
64946         inadvertently removed.
64947
64948 2006-01-26  Bruno Haible  <bruno@clisp.org>
64949
64950         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64951         Reported by Paul Eggert.
64952
64953 2006-01-26  Bruno Haible  <bruno@clisp.org>
64954             Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * lib/stdbool_.h (_Bool)
64957         [(! (defined __cplusplus || defined __BEOS__)
64958           && !defined __GNUC__
64959           && !(defined __HP_cc || defined __xlc__
64960                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64961                || defined __sgi))]:
64962         #define to signed char in these cases too; this simplifies
64963         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64964         etc., separately) and makes it more conservative.
64965
64966 2006-01-25  Simon Josefsson  <jas@extundo.com>
64967
64968         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64969         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64970         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64971
64972 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64973
64974         * lib/argp-namefrob.h: Bugfix. Remove stray #
64975
64976 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64979         so that we test the test.
64980         Check for yet another HP-UX cc bug involving *bool |= bool.
64981
64982 2006-01-25  Karl Berry  <karl@gnu.org>
64983
64984         * config/srclist.txt (vasnprintf.c): sync lost.
64985
64986 2006-01-25  Jim Meyering  <jim@meyering.net>
64987
64988         Sync from the stable (b5) branch of coreutils:
64989
64990         * lib/fts.c (fts_children): Don't let close() clobber errno from
64991         failed fchdir().
64992
64993         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64994         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64995         a dangling symlink.  That can also happen at least for ELOOP.
64996         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64997         FYI, this bug predates the inclusion of fts.c in coreutils.
64998
64999         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65000         in their own block, so pre-c99 compilers don't object.
65001
65002         Avoid the double-free (first in fts_read, second in fts_close) that
65003         would occur when an `active' directory is made inaccessible (e.g.,
65004         via chmod a-x) during a traversal.
65005         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65006         before returning.  Reproduce this failure by
65007         mkdir -p a/b; cd a; chmod a-x . b
65008         Reported by Stavros Passas.
65009
65010 2006-01-25  Jim Meyering  <jim@meyering.net>
65011
65012         * lib/fileblocks.c: Remove more useless parentheses.
65013         * lib/readutmp.h: Likewise.
65014
65015 2006-01-25  Bruno Haible  <bruno@clisp.org>
65016
65017         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65018         warnings.
65019         Reported by Paul Eggert.
65020
65021 2006-01-25  Bruno Haible  <bruno@clisp.org>
65022
65023         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65024         rid of a trap command. For Solaris sh.
65025         Reported by Mark D. Baushke <mdb@gnu.org>.
65026
65027 2006-01-24  Simon Josefsson  <jas@extundo.com>
65028
65029         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65030         Bruno.
65031
65032 2006-01-24  Karl Berry  <karl@gnu.org>
65033
65034         * config/srclist.txt (argp-namefrob.h): sync lost.
65035
65036 2006-01-24  Jim Meyering  <jim@meyering.net>
65037
65038         * modules/openat (Files): Add lib/intprops.h.
65039         From Mark D. Baushke.
65040
65041 2006-01-24  Jim Meyering  <jim@meyering.net>
65042
65043         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65044         Reported by Mark D. Baushke.
65045
65046 2006-01-24  Jim Meyering  <jim@meyering.net>
65047
65048         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65049
65050 2006-01-24  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/strnlen (Maintainer): Change from glibc to all.
65053
65054 2006-01-24  Bruno Haible  <bruno@clisp.org>
65055
65056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65057         Patch by Paul Eggert.
65058
65059 2006-01-24  Bruno Haible  <bruno@clisp.org>
65060
65061         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65062         already has it.
65063         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65064         2005-11-26.
65065
65066         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65067         'signed char' to avoid problems with the built-in _Bool type.
65068         Reported by Paul Eggert on 2005-11-26.
65069
65070 2006-01-24  Bruno Haible  <bruno@clisp.org>
65071
65072         * gnulib-tool (func_import): Avoid constructing complicated sed
65073         expressions inside backquote.
65074         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65075
65076 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65077
65078         These changes imported from libc.
65079         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65080         test and two separate function calls.
65081         * lib/strndup.c (__strndup): Add libc_hidden_def.
65082
65083 2006-01-23  Simon Josefsson  <jas@extundo.com>
65084
65085         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65086         Remove the test_*_SOURCES variable: automake infers it by default.
65087         * modules/tls-tests: Likewise.
65088
65089 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         Work around porting bugs reported by Dieter in
65092         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65093         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65094         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65095         Include "getopt.h" first, to check interface.
65096         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65097         !HAVE_DECL_GETENV.
65098         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65099         (__strndup): Revert to K&R-style function dfns, the glibc style.
65100         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65101         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65102         Include strnlen.h first, to get prototype properly.
65103         (strnlen): Renamed from __strnlen.
65104         Remove weak alias.
65105
65106 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65109
65110 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * config/srclist.txt: Adjust to reflect glibc reorganization.
65113         This affects only comments.
65114
65115 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65116
65117          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65118          Reported by Bruce Korb <bkorb@gnu.org>.
65119
65120 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65123         to pacify gcc -Wswitch-default.
65124
65125 2006-01-22  Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65128         temporary buffer for sprintf, take into account the precision also
65129         for 'd', 'i', 'u', 'o', 'x', 'X'.
65130
65131 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65132
65133         * modules/argp-tests: New module
65134         * tests/test-argp.c: New file
65135         * tests/test-argp-2.sh: New file
65136
65137 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65138
65139         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65140         (__argp_base_name): Removed
65141         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65142         typo.
65143         (__argp_base_name): Provide macro definition or extern declaration
65144         depending on the configuration
65145
65146 2006-01-20  Simon Josefsson  <jas@extundo.com>
65147
65148         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65149
65150 2006-01-20  Simon Josefsson  <jas@extundo.com>
65151
65152         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65153
65154 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65157         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65158         Suggested by Bruno Haible.
65159
65160 2006-01-20  Karl Berry  <karl@gnu.org>
65161
65162         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65163         until changes propagate, I guess.
65164
65165 2006-01-19  Simon Josefsson  <jas@extundo.com>
65166
65167         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65168
65169 2006-01-19  Simon Josefsson  <jas@extundo.com>
65170
65171         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65172
65173 2006-01-19  Simon Josefsson  <jas@extundo.com>
65174
65175         * gnulib-tool: Set check_PROGRAMS.
65176
65177         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65178         modules/des-tests, modules/gc-arcfour-tests,
65179         modules/gc-arctwo-tests, modules/gc-des-tests,
65180         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65181         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65182         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65183         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65184         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65185         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65186         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65187         test_*_SOURCES.
65188
65189 2006-01-18  Simon Josefsson  <jas@extundo.com>
65190
65191         * modules/socklen (Depends-on): Depend on sys_socket.
65192
65193 2006-01-18  Simon Josefsson  <jas@extundo.com>
65194
65195         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65196         modules/des-tests, modules/gc-arcfour-tests,
65197         modules/gc-arctwo-tests, modules/gc-des-tests,
65198         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65199         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65200         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65201         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65202         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65203         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65204         $(EXEEXT) to automake TESTS variable, for mingw32.
65205
65206 2006-01-17  Simon Josefsson  <jas@extundo.com>
65207
65208         * modules/socklen (Include): Need sys/socket.h.
65209
65210 2006-01-17  Bruno Haible  <bruno@clisp.org>
65211
65212         * modules/ssize_t (Include): Add <sys/types.h>.
65213
65214 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65215
65216         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65217         it's not portable and it doesn't work with cross-compiles.
65218         Problem reported by Bruno Haible.  Fix missing-$ typo in
65219         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65220         -zignore from being used with Sun's C compiler.
65221
65222 2006-01-12  Simon Josefsson  <jas@extundo.com>
65223
65224         * lib/base64.c: Fix warning, reported by Bruno Haible
65225         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65226
65227 2006-01-12  Bruno Haible  <bruno@clisp.org>
65228
65229         * modules/ldd: New file.
65230         * build-aux/ldd.sh.in: New file.
65231         * MODULES.html.sh (Support for building libraries and executables): Add
65232         ldd.
65233
65234 2006-01-12  Bruno Haible  <bruno@clisp.org>
65235
65236         * m4/ldd.m4: New file.
65237
65238 2006-01-12  Bruno Haible  <bruno@clisp.org>
65239
65240         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65241         endless loop while replacing $auxdir with build-aux.
65242
65243 2006-01-11  Simon Josefsson  <jas@extundo.com>
65244
65245         * lib/stdint_.h (SIZE_MAX): Add missing (.
65246
65247 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65248
65249         Sync from coreutils.
65250         * lib/md5.c: Fix commentary typos.
65251         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65252         * lib/md5.h (__attribute__): Remove; unused.
65253         * lib/sha1.c: Fix commentary to match md5 better.
65254         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65255         so that we don't need to worry about alignment.  All uses changed.
65256         This merges the 2005-10-28 md5 change into sha1.
65257
65258 2006-01-11  Jim Meyering  <jim@meyering.net>
65259
65260         Sync from coreutils.
65261         * lib/md5.c (OP): Fix spacing.
65262
65263 2006-01-11  Bruno Haible  <bruno@clisp.org>
65264
65265         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65266         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65267         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65268
65269 2006-01-11  Bruno Haible  <bruno@clisp.org>
65270
65271         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65272         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65273         the "early" section as well.
65274
65275 2006-01-11  Bruno Haible  <bruno@clisp.org>
65276
65277         Avoid "ar: no archive members specified" error on MacOS X.
65278         * gnulib-tool (func_modules_add_dummy): New function.
65279         (func_import, func_create_testdir): Invoke it.
65280
65281 2006-01-11  Bruno Haible  <bruno@clisp.org>
65282
65283         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65284         with $auxdir in AC_CONFIG_FILES statements.
65285
65286 2006-01-11  Bruno Haible  <bruno@clisp.org>
65287
65288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65289         Initialize also noinst_HEADERS to empty.
65290
65291 2006-01-11  Bruno Haible  <bruno@clisp.org>
65292
65293         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65294         variables.
65295         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65296         autoreconf.
65297
65298 2006-01-11  Bruno Haible  <bruno@clisp.org>
65299
65300         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65301         overridable by the user.
65302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65303
65304 2006-01-10  Simon Josefsson  <jas@extundo.com>
65305
65306         * modules/sys_socket: New file.
65307
65308 2006-01-10  Simon Josefsson  <jas@extundo.com>
65309
65310         * m4/sys_socket_h.m4: New file.
65311
65312 2006-01-10  Simon Josefsson  <jas@extundo.com>
65313
65314         * lib/socket_.h: New file.
65315
65316 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * modules/readutmp (Maintainer): Add myself.
65319
65320 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65323         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65324         People who are still concerned with buggy memcmp implementations
65325         can invoke gl_FUNC_MEMCMP themselves.
65326
65327 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65328
65329         * lib/regex_internal.h (BITSET_WORD_BITS):
65330         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65331         preprocessor mishandles large unsigned values as if they were signed.
65332         Problem reported by Claudio Fontana in
65333         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65334
65335 2006-01-10  Jim Meyering  <jim@meyering.net>
65336
65337         Avoid the double-free (first in fts_read, second in fts_close) that
65338         would occur when an `active' directory is made inaccessible (e.g.,
65339         via chmod a-x) during a traversal.
65340         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65341         before returning.  Reproduce this failure by
65342         mkdir -p a/b; cd a; chmod a-x . b
65343         Reported by Stavros Passas.
65344
65345         Sync from coreutils.
65346         * lib/sha1.c: Tweak grammar in a comment.
65347
65348 2006-01-10  Jim Meyering  <jim@meyering.net>
65349
65350         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65351         Patch by Joerg Sonnenberger.
65352
65353 2006-01-10  Bruno Haible  <bruno@clisp.org>
65354
65355         * modules/readutmp: Depend on module free.
65356         * modules/strtok_r: Depend on module restrict.
65357
65358 2006-01-10  Bruno Haible  <bruno@clisp.org>
65359
65360         * modules/gettext (configure.ac): Add an invocation of
65361         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65362
65363 2006-01-10  Bruno Haible  <bruno@clisp.org>
65364
65365         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65366         Reported by Werner Lemberg <wl@gnu.org>.
65367
65368 2006-01-10  Bruno Haible  <bruno@clisp.org>
65369
65370         * lib/localcharset.c: Update from GNU gettext.
65371
65372 2006-01-10  Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/argp.h (__const): Remove macro. Use const instead.
65375         * lib/argp-fmtstream.h (__const): Likewise.
65376         * lib/glob_.h (__const): Remove macro.
65377         * lib/glob-libc.h: Use const instead of __const.
65378
65379 2006-01-10  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65382         variable.
65383         Needed to avoid an automake error regarding the 'gettext' module.
65384
65385 2006-01-09  Simon Josefsson  <jas@extundo.com>
65386
65387         * modules/inet_ntop (Depends-on): Add restrict.
65388
65389 2006-01-09  Simon Josefsson  <jas@extundo.com>
65390
65391         * modules/gc-rijndael-tests (License): Put under LGPL.
65392
65393         * modules/gc-des-tests (License): Likewise.
65394
65395         * modules/gc-arcfour-tests (License): Likewise.
65396
65397         * modules/gc-arctwo-tests (License): Likewise.
65398
65399         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65400
65401         * modules/gc-hmac-sha1-tests (Files): Likewise.
65402
65403         * modules/gc-hmac-md5-tests (License): Likewise.
65404
65405         * modules/gc-sha1-tests (License): Likewise.
65406
65407         * modules/gc-md5-tests (License): Likewise.
65408
65409         * modules/gc-md4-tests (License): Likewise.
65410
65411         * modules/gc-md2-tests (License): Likewise.
65412
65413         * modules/gc-tests (License): Likewise.
65414
65415         * modules/des-tests (License): Likewise.
65416
65417         * modules/md4-tests (License): Likewise.
65418
65419         * modules/md2-tests (License): Likewise.
65420
65421 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         Sync from coreutils:
65424
65425         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65426         * modules/lib-ignore: New file.
65427         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65428         chdir-safer.m4, lchmod.m4.
65429         * modules/openat: Add mkdirat.c, openat-priv.h.
65430
65431 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         Sync from coreutils.
65434         * m4/lib-ignore.m4: New file.
65435         * m4/lchmod.m4: New file.
65436
65437 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         Sync from coreutils.
65440         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65441         for write access: POSIX says that must fail.
65442         * lib/fts.c (diropen): Likewise.
65443         * lib/save-cwd.c (save_cwd): Likewise.
65444         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65445         well, for minor improvements on hosts that lack O_DIRECTORY.
65446         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65447         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65448         Fall back on chown if open failed with EACCES.
65449
65450         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65451         Report an error at compile-time if only a 1-second nominal clock
65452         resolution is found.
65453
65454         * lib/lchmod.h: New file.
65455         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65456         (make_dir_parents): Use lchown rather than chown, and
65457         lchmod rather than chmod.
65458
65459         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65460         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65461         "proc" reported by n0dalus.
65462
65463         * lib/mountlist.c: Include <limits.h>.
65464         (dev_from_mount_options)
65465         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65466         New function.  It no longer assumes "dev=" has the System V meaning
65467         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65468         (read_file_system_list)
65469         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65470         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65471         dev= in that case.
65472
65473         * lib/posixtm.h (PDS_PRE_2000): New macro.
65474         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65475         allow_century.  All usages changed.  Reject dates outside the range
65476         1969-1999 if PDS_PRE_2000 is used.
65477
65478 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         Sync from coreutils.
65481         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65482         (Time of day items): Mention the possibility of leap seconds.
65483         Problem reported by Dr. David Alan Gilbert.
65484
65485 2006-01-09  Jim Meyering  <jim@meyering.net>
65486
65487         Sync from coreutils.
65488
65489         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65490
65491         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65492
65493         * lib/modechange.c (mode_compile): Reject an invalid mode string
65494         that starts with an octal digit.  From Andreas Gruenbacher.
65495
65496         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65497         and dup to open_safer and dup_safer, respectively.
65498         (openat_permissive): Fix typo in comment.
65499
65500         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65501         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65502         (_): Remove; no longer needed.
65503         (openat): Renamed from rpl_openat; no need for rpl_openat
65504         since openat.h renames openat for us.
65505         Replace most of the body with a call to openat_permissive,
65506         to avoid duplicate code.
65507         Port to (probably hypothetical) environments were mode_t is
65508         wider than int.
65509         (openat_permissive): Require mode arg, so that we can check
65510         types better.  Put it just after flags.  Change cwd failure
65511         indicator from pointer-to-bool to pointer-to-errno-value.
65512         All callers changed.
65513         Invoke openat_save_fail and/or openat_restore_fail if
65514         cwd_errno is null, so that openat can call us.
65515         (openat_permissive, fdopendir, fstatat, unlinkat):
65516         Simplify errno handling to avoid some duplicate code,
65517         as it's OK to set errno on success.
65518         * lib/openat.h: Revamp code so that function macros depend on
65519         __OPENAT_PREFIX only, not also on AT_FDCWD.
65520         (openat_ro): Remove.  Caller changed to use openat_permissive.
65521         (openat_permissive): Now a macro, if not a function.
65522         (openat_restore_fail, openat_save_fail): Now always functions,
65523         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65524
65525         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65526         and openat.c.
65527         * lib/mkdirat.c: Include openat-priv.h.
65528         Remove definitions of macros defined therein.
65529         * lib/openat.c: Likewise.
65530
65531         * lib/mkdirat.c (mkdirat): New file and function.
65532         * lib/openat.h (mkdirat): Declare.
65533
65534         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65535
65536         * lib/openat.h (openat_permissive): Declare.
65537         (openat_ro): Define.
65538
65539         * lib/openat.c (EXPECTED_ERRNO): New macro.
65540         (openat_permissive): New function -- used in remove.c rewrite.
65541         (all functions): Set errno just before returning, only if there
65542         was an actual failure.
65543         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65544
65545         Emulate openat-family functions using Linux's procfs, if possible.
65546         Idea and some code based on Ulrich Drepper's glibc changes.
65547
65548         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65549         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65550         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65551         before falling back on save_cwd and restore_cwd.
65552         (fdopendir, fstatat, unlinkat): Likewise.
65553
65554         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65555         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65556
65557         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65558         as second argument to va_arg.  Otherwise, some versions of gcc
65559         warn that `if this code is reached, the program will abort'.
65560
65561 2006-01-09  Jim Meyering  <jim@meyering.net>
65562
65563         Sync from coreutils.
65564         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65565         Require openat-priv.h.
65566
65567 2006-01-09  Bruno Haible  <bruno@clisp.org>
65568
65569         * modules/strnlen (Include): Use strnlen.h.
65570
65571 2006-01-09  Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65574
65575 2006-01-09  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/sysexit_.h (EX_OK): New macro.
65578         Suggested by Martin Lambers <marlam@marlam.de>.
65579
65580 2006-01-09  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65583         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65584
65585 2006-01-09  Bruno Haible  <bruno@clisp.org>
65586
65587         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65588         numbers.
65589
65590 2006-01-09  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65593         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65594         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65595         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65596
65597 2006-01-09  Bruno Haible  <bruno@clisp.org>
65598
65599         * build-aux/javacomp.sh.in: New file, moved from lib/.
65600         * modules/javacomp-script (Files): Update.
65601         (configure.ac): Add AC_CONFIG_FILES invocation.
65602         (EXTRA_DIST): Remove variable.
65603
65604         * build-aux/javaexec.sh.in: New file, moved from lib/.
65605         * modules/javaexec (Files): Update.
65606         (configure.ac): Add AC_CONFIG_FILES invocation.
65607         (EXTRA_DIST): Remove javaexec.sh.in.
65608
65609         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65610         * modules/csharpcomp-script (Files): Update.
65611         (configure.ac): Add AC_CONFIG_FILES invocation.
65612         (EXTRA_DIST): Remove variable.
65613
65614         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65615         * modules/csharpexec (Files): Update.
65616         (configure.ac): Add AC_CONFIG_FILES invocation.
65617         (EXTRA_DIST): Remove csharpexec.sh.in.
65618
65619 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65620
65621         Sync from coreutils.
65622
65623         Add POSIX ACL support
65624         * lib/acl.h (copy_acl, set_acl): Add declarations.
65625         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65626         systems other than Linux.
65627         (chmod_or_fchmod): New function: use fchmod when possible,
65628         and chmod otherwise.
65629         (file_has_acl): Add a POSIX ACL implementation, with a
65630         Linux-specific subcase.
65631         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65632         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65633         acls are unsupported.
65634         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65635         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65636         are unsupported.
65637
65638 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65639
65640         Sync from coreutils.
65641         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65642
65643 2006-01-07  Bruno Haible  <bruno@clisp.org>
65644
65645         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65646         gl_EARLY.
65647
65648 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65649
65650         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65651         Problem reported for Mingw by Mark Junker.
65652
65653 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * README: Gnulib normally doesn't generate a tarball.
65656
65657 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65660         long int, not int, for nanosecond counts, so that people who are
65661         used to POSIX struct timespec won't be surprised.  Reported by Jim
65662         Meyering.
65663
65664 2005-12-28  Bruno Haible  <bruno@clisp.org>
65665
65666         * build-aux/config.rpath: Update from GNU gettext.
65667
65668 2005-12-16  Jim Meyering  <jim@meyering.net>
65669
65670         * modules/fprintftime: New module.
65671         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65672
65673 2005-12-16  Jim Meyering  <jim@meyering.net>
65674
65675         * m4/fprintftime.m4: New file.
65676
65677 2005-12-16  Jim Meyering  <jim@meyering.net>
65678
65679         * lib/fprintftime.c, lib/fprintftime.h: New files.
65680
65681 2005-12-15  Simon Josefsson  <jas@extundo.com>
65682
65683         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65684         new m4/socklen.m4.
65685
65686 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65687
65688         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65689         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65690
65691 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65692
65693         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65694         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65695         struct uparams is valid. Fall back to the default values if it is
65696         not.
65697
65698 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65699
65700         * modules/argp (Files): Add argp-pin.c
65701         (Depends-on): dirname
65702         (lib_SOURCES): Add argp-pin.c
65703
65704 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65705
65706         * m4/argp.m4:  Check if program_invocation_name and
65707         program_invocation_short_name are declared and define appropriate
65708         macros if they are not.
65709
65710 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65711
65712         * lib/argp-help.c (__argp_base_name): New function
65713         (__argp_short_program_name): Rewrite using __argp_base_name
65714         * lib/argp-namefrob.h: Define program_invocation_name and
65715         program_invocation_short_name if requested
65716         (__argp_base_name): Add prototype
65717         * lib/argp-parse.c (argp_def): Use gettext wrappers
65718         (argp_default_parser): Use __argp_base_name
65719         * lib/argp-pin.c: New file. Defines program_invocation_name and
65720         program_invocation_short_name on systems that lack them.
65721
65722 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65725         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65726         porting problem reported by Georg Schwarz in
65727         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65728
65729 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65732         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65733         porting problem reported by Georg Schwarz in
65734         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65735
65736 2005-12-05  Bruno Haible  <bruno@clisp.org>
65737
65738         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65739         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65740         Reported by Mark Junker <mjscod@gmx.de>.
65741
65742 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65745         Use implementation from Albert Chin, with some
65746         comments/corrections by Stepan Kasal and myself.
65747
65748 2005-12-02  Bruno Haible  <bruno@clisp.org>
65749
65750         * gnulib-tool (func_import): Accept GPLed build tool modules when
65751         --lgpl is given.
65752         * modules/csharpcomp-script: New file.
65753         * modules/csharpcomp: Depend on it.
65754         * modules/javacomp-script: New file.
65755         * modules/javacomp: Depend on it.
65756         Suggested by Simon Josefsson.
65757
65758 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65761         statement, to work around an HP-UX 10.20 compiler bug reported by
65762         Peter O'Gorman.
65763
65764 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         * modules/savedir (Depends-on): Add openat.
65767
65768 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65771         (uintmax_t) [defined uintmax_t]: Do not declare.
65772         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65773         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65774         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65775         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65776         sake of portability to weird hosts that C allows (though we don't
65777         know of any practical examples).
65778
65779         * lib/savedir.h (fdsavedir): New decl.
65780         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65781         contains most of the former guts of savedir.
65782         (savedir): Use savedirstream.
65783         Include "openat.h".
65784
65785 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65786
65787         * modules/obstack (Files): Add m4/ulonglong.m4.
65788         Problem reported by Davide Angelocola.
65789
65790 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65793         coreutils no longer futzes with rounding modes.
65794
65795 2005-11-14  Jim Meyering  <jim@meyering.net>
65796
65797         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65798         replacement of mkstemp.
65799
65800 2005-11-10  Simon Josefsson  <jas@extundo.com>
65801
65802         * lib/readline.c: Remove EOL.
65803
65804 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * modules/gethrxtime (Depends-on): Add gettime.
65807
65808 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65811         or gettimeofday; no longer needed.
65812
65813 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65816         time business.
65817         (gethrxtime) [! (HAVE_NANOUPTIME
65818         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65819         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65820         our own approximation.
65821
65822 2005-11-08  Eric Blake  <ebb9@byu.net>
65823
65824         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65825
65826 2005-11-08  Eric Blake  <ebb9@byu.net>
65827
65828         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65829
65830 2005-11-04  Bruno Haible  <bruno@clisp.org>
65831
65832         * gnulib-tool: Implement --update mode.
65833
65834 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         Fix porting problem reported by Theodoros V. Kalamatianos.
65837         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65838         Don't assume that futimes failing means we must fail.
65839
65840 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65843         variables to suggest the intended function of the PATH_MAX check.
65844
65845 2005-10-30  Kean Johnston  <jkj@sco.com>
65846
65847         Trivial changes to support SCO systems.
65848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65849         as PATH_MAX.
65850         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65851         where __ptr is null when no I/O is pending.
65852
65853 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65856         leave errno alone.  Problem reported by Dmitry V. Levin.
65857
65858 2005-10-28  Simon Josefsson  <jas@extundo.com>
65859
65860         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65861         Test more.
65862
65863         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65864
65865         * modules/md2, modules/md2-tests: New files.
65866
65867 2005-10-28  Simon Josefsson  <jas@extundo.com>
65868
65869         * m4/inet_ntop.m4: More tests.
65870
65871         * m4/gc-md2.m4, md2.m4: New file.
65872
65873 2005-10-28  Simon Josefsson  <jas@extundo.com>
65874
65875         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65876         "restrict" keywords, as per POSIX.  Protect the function
65877         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65878         Don't use K&R prototypes.  Check the sprintf return values.
65879         Re-define EAFNOSUPPORT if not present.  Indent.
65880
65881         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65882         suggested by Bruno Haible <bruno@clisp.org>.
65883
65884         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65885
65886         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65887
65888         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65889         libgcrypt).
65890
65891         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65892
65893         * lib/md2.h, lib/md2.c: New files.
65894
65895 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65898         errno alone.  Problem reported by Frederic Jolliton.
65899
65900 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * modules/verify (License): Change from GPL to LGPL.  This is a
65903         tiny module and there are apparently near-equivalents that are
65904         under the BSD license.
65905
65906 2005-10-24  Simon Josefsson  <jas@extundo.com>
65907
65908         * modules/sha1: Relicense to LGPL.
65909
65910 2005-10-24  Simon Josefsson  <jas@extundo.com>
65911
65912         * lib/md4.h: Shrink buffer size, now that we changed the type.
65913
65914 2005-10-23  Simon Josefsson  <jas@extundo.com>
65915
65916         * gnulib-tool (func_import): Fix --tests-base.
65917
65918 2005-10-22  Simon Josefsson  <jas@extundo.com>
65919
65920         * modules/arcfour (Depends-on): Need stdint.
65921
65922 2005-10-22  Simon Josefsson  <jas@extundo.com>
65923
65924         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65925         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65926
65927 2005-10-22  Simon Josefsson  <jas@extundo.com>
65928
65929         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65930         suggested by Bruno Haible <bruno@clisp.org>.
65931
65932 2005-10-22  Simon Josefsson  <jas@extundo.com>
65933
65934         * lib/crc.h: Include stddef.h, for size_t.
65935
65936 2005-10-22  Simon Josefsson  <jas@extundo.com>
65937
65938         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65939         arcfour_context struct (simplify test vector testing in GNU
65940         Shishi).
65941
65942 2005-10-21  Simon Josefsson  <jas@extundo.com>
65943
65944         * modules/des, modules/des-tests: New files.
65945
65946         * modules/gc-des, modules/gc-des-tests: New files.
65947
65948         * tests/test-des.c, tests/test-gc-des.c: New file.
65949
65950 2005-10-21  Simon Josefsson  <jas@extundo.com>
65951
65952         * modules/arctwo, modules/arctwo-tests: New files.
65953
65954         * tests/test-arctwo.c: New file.
65955
65956         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65957
65958         * tests/test-gc-arctwo.c: New file.
65959
65960 2005-10-21  Simon Josefsson  <jas@extundo.com>
65961
65962         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65963         Bruno Haible <bruno@clisp.org>.
65964
65965         * m4/gc-des.m4: New file.
65966
65967 2005-10-21  Simon Josefsson  <jas@extundo.com>
65968
65969         * m4/arctwo.m4: New file.
65970
65971         * m4/gc-arctwo.m4: New file.
65972
65973 2005-10-21  Simon Josefsson  <jas@extundo.com>
65974
65975         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65976         block.
65977
65978 2005-10-21  Simon Josefsson  <jas@extundo.com>
65979
65980         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65981         <bruno@clisp.org>.
65982
65983         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65984
65985         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65986         Bruno Haible <bruno@clisp.org>.
65987
65988         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65989         <bruno@clisp.org>.
65990
65991 2005-10-21  Simon Josefsson  <jas@extundo.com>
65992
65993         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65994
65995 2005-10-21  Simon Josefsson  <jas@extundo.com>
65996
65997         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65998
65999 2005-10-21  Simon Josefsson  <jas@extundo.com>
66000
66001         * lib/des.h, lib/des.c: New files.
66002
66003         * lib/gc-gnulib.c: Support DES.c
66004
66005 2005-10-21  Simon Josefsson  <jas@extundo.com>
66006
66007         * lib/arctwo.h, lib/arctwo.c: New files.
66008
66009         * lib/gc-gnulib.c: Support ARCTWO.
66010
66011 2005-10-21  Simon Josefsson  <jas@extundo.com>
66012
66013         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66014         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66015
66016 2005-10-21  Simon Josefsson  <jas@extundo.com>
66017
66018         * gnulib-tool (func_import, func_create_testdir): Define automake
66019         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66020         Makefile.am snippet),
66021         suggested by Bruno Haible <bruno@clisp.org>.
66022
66023         * modules/gc (Makefile.am): Use it.
66024
66025 2005-10-21  Bruno Haible  <bruno@clisp.org>
66026
66027         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66028         patch.
66029
66030 2005-10-19  Simon Josefsson  <jas@extundo.com>
66031
66032         * tests/test-gc-rijndael.c: New file.
66033
66034         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66035
66036 2005-10-19  Simon Josefsson  <jas@extundo.com>
66037
66038         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66039         interface too.
66040
66041 2005-10-19  Simon Josefsson  <jas@extundo.com>
66042
66043         * tests/test-gc-arcfour.c: New file.
66044
66045         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66046
66047 2005-10-19  Simon Josefsson  <jas@extundo.com>
66048
66049         * modules/gc-md4, modules/gc-md4-tests: New file.
66050
66051         * tests/test-gc-md4.c: New file.
66052
66053 2005-10-19  Simon Josefsson  <jas@extundo.com>
66054
66055         * m4/gc-md4.m4: New file.
66056
66057 2005-10-19  Simon Josefsson  <jas@extundo.com>
66058
66059         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66060         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66061         <kasal@ucw.cz>.
66062
66063 2005-10-19  Simon Josefsson  <jas@extundo.com>
66064
66065         * m4/gc-arcfour.m4: New file.
66066
66067         * m4/gc-rijndael.m4: New file.
66068
66069 2005-10-19  Simon Josefsson  <jas@extundo.com>
66070
66071         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66072
66073 2005-10-19  Simon Josefsson  <jas@extundo.com>
66074
66075         * lib/gc-gnulib.c: Support ARCFOUR.
66076
66077 2005-10-19  Simon Josefsson  <jas@extundo.com>
66078
66079         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66080         support.
66081
66082         * lib/gc.h: Add ECB enum type.
66083
66084         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66085
66086 2005-10-18  Simon Josefsson  <jas@extundo.com>
66087
66088         * tests/test-md5.c: New file.
66089
66090         * modules/md5-tests: New file.
66091
66092 2005-10-18  Simon Josefsson  <jas@extundo.com>
66093
66094         * tests/test-md4.c: New file.
66095
66096         * modules/md4, modules/md4-tests: New files.
66097
66098 2005-10-18  Simon Josefsson  <jas@extundo.com>
66099
66100         * m4/md4.m4: New file.
66101
66102 2005-10-18  Simon Josefsson  <jas@extundo.com>
66103
66104         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66105
66106 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66107
66108         * gnulib-tool (func_create_testdir): Omit the second check whether
66109         BUILT_SOURCES in nonempty.
66110
66111 2005-10-17  Simon Josefsson  <jas@extundo.com>
66112
66113         * tests/test-rijndael.c: New file.
66114
66115 2005-10-17  Simon Josefsson  <jas@extundo.com>
66116
66117         * modules/sha1: Depend on stdint instead of md5.
66118
66119         * modules/md5: Depend on stdint, remove uint32_t.
66120
66121 2005-10-17  Simon Josefsson  <jas@extundo.com>
66122
66123         * modules/gc-sha1-tests: New file.
66124
66125         * tests/test-gc-sha1.c: New file.
66126
66127 2005-10-17  Simon Josefsson  <jas@extundo.com>
66128
66129         * m4/md5.m4: Remove call to uint32_t.m4.
66130
66131 2005-10-17  Simon Josefsson  <jas@extundo.com>
66132
66133         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66134
66135         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66136         md5.h.
66137
66138         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66139
66140         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66141
66142 2005-10-17  Simon Josefsson  <jas@extundo.com>
66143
66144         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66145
66146 2005-10-17  Simon Josefsson  <jas@extundo.com>
66147
66148         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66149
66150 2005-10-17  Simon Josefsson  <jas@extundo.com>
66151
66152         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66153
66154         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66155
66156 2005-10-17  Bruno Haible  <bruno@clisp.org>
66157
66158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66159         that it can also be used in a test.
66160
66161 2005-10-16  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66164         TESTS_ENVIRONMENT, so that individual tests can augment it.
66165
66166         * gnulib-tool (func_create_testdir): Use an intermediate target for
66167         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66168         macros, like $(ALLOCA_H), which cannot be passed through the command
66169         line.
66170
66171 2005-10-15  Simon Josefsson  <jas@extundo.com>
66172
66173         * modules/rijndael-tests: New file.
66174
66175         * modules/rijndael: New file.
66176
66177 2005-10-15  Simon Josefsson  <jas@extundo.com>
66178
66179         * m4/rijndael.m4: New file.
66180
66181 2005-10-15  Simon Josefsson  <jas@extundo.com>
66182
66183         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66184
66185         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66186
66187 2005-10-14  Simon Josefsson  <jas@extundo.com>
66188
66189         * tests/test-arcfour.c: New file.
66190
66191         * modules/arcfour, modules/arcfour-tests: New files.
66192
66193 2005-10-14  Simon Josefsson  <jas@extundo.com>
66194
66195         * m4/arcfour.m4: New file.
66196
66197 2005-10-14  Simon Josefsson  <jas@extundo.com>
66198
66199         * lib/arcfour.h, lib/arcfour.c: New files.
66200
66201 2005-10-14  Roland McGrath  <roland@redhat.com>
66202
66203         Import from libc.  [BZ #1331]
66204         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66205         macro argument.
66206         Reported by Matej Vela <vela@debian.org>.
66207
66208 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66209
66210         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66211         include <wchar.h>; no longer needed.
66212
66213 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66214
66215         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66216
66217 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66218         and  Ulrich Drepper  <drepper@redhat.com>
66219
66220         Import from libc.
66221         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66222         instead of inline stream orientation test and two separate
66223         function calls.  Pay no attention to USE_IN_LIBIO.
66224
66225 2005-10-13  Simon Josefsson  <jas@extundo.com>
66226
66227         * modules/gc-hmac-md5-tests: New file.
66228
66229         * tests/test-gc-hmac-sha1.c: New file.
66230
66231         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66232
66233         * modules/gc-hmac-md5-tests: New file.
66234
66235         * tests/test-gc-md5.c: New file.
66236
66237         * modules/gc-md5-tests: New file.
66238
66239 2005-10-13  Simon Josefsson  <jas@extundo.com>
66240
66241         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66242         Move memory allocation outside of loop.
66243
66244 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66247         intermediate directory is in a read-only file system.  Problem
66248         reported by Eric Blake.
66249
66250 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66251
66252         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66253
66254 2005-10-12  Simon Josefsson  <jas@extundo.com>
66255
66256         * tests/test-hmac-sha1.c: New file.
66257
66258         * modules/hmac-sha1-tests: New file.
66259
66260         * modules/hmac-sha1: New file.
66261
66262 2005-10-12  Simon Josefsson  <jas@extundo.com>
66263
66264         * modules/gc-sha1: New file.
66265
66266 2005-10-12  Simon Josefsson  <jas@extundo.com>
66267
66268         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66269
66270         * tests/test-gc-pbkdf2-sha1.c: New file.
66271
66272 2005-10-12  Simon Josefsson  <jas@extundo.com>
66273
66274         * modules/gc-md5, modules/gc-hmac-md5: New files.
66275
66276         * modules/gc (Files): Remove md5, memxor and hmac files.
66277
66278 2005-10-12  Simon Josefsson  <jas@extundo.com>
66279
66280         * m4/gc-pbkdf2-sha1.m4: New file.
66281
66282         * m4/gc-hmac-sha1.m4: New file.
66283
66284         * m4/gc-sha1: New file.
66285
66286         * m4/hmac-sha1.m4: New file.
66287
66288 2005-10-12  Simon Josefsson  <jas@extundo.com>
66289
66290         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66291
66292         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66293
66294 2005-10-12  Simon Josefsson  <jas@extundo.com>
66295
66296         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66297         suggested by Bruno Haible <bruno@clisp.org>.
66298
66299 2005-10-12  Simon Josefsson  <jas@extundo.com>
66300
66301         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66302
66303 2005-10-12  Simon Josefsson  <jas@extundo.com>
66304
66305         * lib/gc-pbkdf2-sha1.c: New file.
66306
66307         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66308
66309 2005-10-12  Simon Josefsson  <jas@extundo.com>
66310
66311         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66312
66313         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66314
66315 2005-10-12  Simon Josefsson  <jas@extundo.com>
66316
66317         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66318         GC_USE_HMAC_MD5, respectively.
66319
66320         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66321         (gc_md5): Fix typo.
66322
66323         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66324
66325         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66326
66327         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66328
66329 2005-10-12  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66332         Reported by Stepan Kasal <kasal@ucw.cz>.
66333
66334 2005-10-11  Simon Josefsson  <jas@extundo.com>
66335
66336         * tests/test-crc.c: New file.
66337
66338         * modules/crc, modules/crc-tests: New files.
66339
66340 2005-10-11  Simon Josefsson  <jas@extundo.com>
66341
66342         * m4/crc.m4: New file.
66343
66344 2005-10-11  Simon Josefsson  <jas@extundo.com>
66345
66346         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66347
66348         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66349
66350         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66351
66352 2005-10-11  Simon Josefsson  <jas@extundo.com>
66353
66354         * lib/crc.h, lib/crc.c: New files.
66355
66356         * lib/gc.h (gc_hash_buffer): Add doc.
66357
66358 2005-10-11  Bruno Haible  <bruno@clisp.org>
66359
66360         * modules/c-strcasestr: New file.
66361         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66362
66363 2005-10-11  Bruno Haible  <bruno@clisp.org>
66364
66365         * modules/c-strcase: New file.
66366         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66367
66368 2005-10-11  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/strcasecmp.c: Include limits.h.
66371         (strcasecmp): Avoid integer overflow on exotic platforms.
66372         * lib/strncasecmp.c: Include limits.h.
66373         (strncasecmp): Avoid integer overflow on exotic platforms.
66374         Reported by Paul Eggert.
66375
66376 2005-10-11  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/c-strcasestr.h: New file, from GNU gettext.
66379         * lib/c-strcasestr.c: New file, from GNU gettext.
66380
66381 2005-10-11  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/c-strcase.h: New file, from GNU gettext.
66384         * lib/c-strcasecmp.c: New file, from GNU gettext.
66385         * lib/c-strncasecmp.c: New file, from GNU gettext.
66386
66387 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * modules/mempcpy (License): GPL -> LGPL.
66390         * modules/strchrnul (License): Likewise.
66391         * modules/sysexits (License): Likewise.
66392
66393 2005-10-08  Simon Josefsson  <jas@extundo.com>
66394
66395         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66396
66397 2005-10-07  Simon Josefsson  <jas@extundo.com>
66398
66399         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66400
66401 2005-10-06  Simon Josefsson  <jas@extundo.com>
66402
66403         * tests/test-hmac-md5.c: New file.
66404
66405         * modules/hmac-md5-tests: New file.
66406
66407         * modules/hmac-md5: New file.
66408
66409 2005-10-06  Simon Josefsson  <jas@extundo.com>
66410
66411         * m4/hmac-md5.m4: New file.
66412
66413         * m4/memxor.m4: Require gl_C_RESTRICT.
66414
66415 2005-10-06  Simon Josefsson  <jas@extundo.com>
66416
66417         * lib/memxor.c (memxor): Avoid casts and warnings.
66418
66419 2005-10-06  Simon Josefsson  <jas@extundo.com>
66420
66421         * lib/hmac-md5.c: New file.
66422
66423         * lib/hmac.h: New file.
66424
66425 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66428         promotes to int, not unsigned int, to catch the AIX 5.3
66429         compiler bug.
66430
66431 2005-10-05  Simon Josefsson  <jas@extundo.com>
66432
66433         * modules/memxor: New file.
66434
66435         * modules/iconv (Files): Move config.rpath to havelib, it is used
66436         there.
66437
66438         * modules/havelib (Files): Add config.rpath.
66439
66440 2005-10-05  Simon Josefsson  <jas@extundo.com>
66441
66442         * m4/memxor.m4: New file.
66443
66444 2005-10-05  Simon Josefsson  <jas@extundo.com>
66445
66446         * lib/memxor.c (memxor): Fix compiler error.
66447
66448         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66449         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66450
66451         * lib/memxor.h, lib/memxor.c: New files.
66452
66453         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66454         we assume all systems have it, suggested by Jim Meyering
66455         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66456         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66457         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66458         same reasons.
66459
66460 2005-10-05  Simon Josefsson  <jas@extundo.com>
66461
66462         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66463
66464 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66467         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66468         needed, since the source code now assumes these .h files.
66469
66470 2005-10-05  Derek Price  <derek@ximbiot.com>
66471
66472         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66473
66474 2005-10-05  Bruno Haible  <bruno@clisp.org>
66475
66476         * modules/stdint (License): Change to LGPL.
66477
66478 2005-10-04  Simon Josefsson  <jas@extundo.com>
66479
66480         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66481         D. Baushke" <mdb@gnu.org>.
66482
66483 2005-10-04  Bruno Haible  <bruno@clisp.org>
66484
66485         * lib/verify.h (verify_true): Provide alternative definition for C++.
66486
66487 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66490         (SSIZE_MAX): New macro, if not already defined.
66491         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66492         than 2 GiB.
66493
66494 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         Sync from coreutils.
66497         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66498         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66499         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66500         ULLONG_MAX doesn't work with 2.7.2.1.
66501
66502 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66503
66504         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66505         From Ben Pfaff.
66506
66507         * modules/exclude (Depends-on): Depend on verify.
66508         * modules/strtoimax (Depends-on): Likewise.
66509         * modules/utimecmp (Depends-on): Likewise.
66510
66511 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/exclude.c: Include verify.h.
66514         (verify): Remove.  All callers changed to use verify.h's version.
66515         * lib/strtoimax.c: Likewise.
66516         * lib/utimecmp.c: Likewis.e
66517
66518         Sync from coreutils.
66519         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66520         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66521         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66522         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66523         bother returning ENOSYS if settimeofday or stime fails; just let
66524         them return whatever errno they want to return.
66525         * lib/utimens.c: Include unistd.h, for dup2.
66526         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66527         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66528
66529 2005-10-02  Jim Meyering  <jim@meyering.net>
66530
66531         Sync from coreutils.
66532         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66533         from glibc-2.2.5 that fails for read-only files.
66534
66535 2005-10-02  Jim Meyering  <jim@meyering.net>
66536
66537         Sync from coreutils.
66538         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66539         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66540         `#if HAVE_CONFIG_H'.
66541         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66542         Remove AT_FDCWD test.
66543         Do not consume the fd unless successful.
66544         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66545         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66546         block, so that we don't even try to compile it if settimeofday is
66547         available.  This works around a compilation failure on OSF1 V5.1,
66548         due to stime requiring a `long int*' while tv_sec is `int'.
66549
66550 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66551
66552         Sync from coreutils.
66553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66554         against `yes', rather than just testing for nonempty.
66555
66556 2005-10-01  Simon Josefsson  <jas@extundo.com>
66557
66558         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66559         and Darwin.
66560
66561         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66562         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66563         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66564         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66565         Check if struct addrinfo is declared.
66566
66567 2005-10-01  Simon Josefsson  <jas@extundo.com>
66568
66569         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66570         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66571         AI_* and EAI_* definitions.  Protect function declarations.
66572
66573 2005-10-01  Jim Meyering  <jim@meyering.net>
66574
66575         Sync from coreutils.
66576
66577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66578         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66579         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66581         in the inet and nsl libraries.  Required on Solaris 5.7.
66582
66583 2005-10-01  Jim Meyering  <jim@meyering.net>
66584
66585         Sync from coreutils.
66586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66587         in the inet and nsl libraries.  Required on Solaris 5.7.
66588
66589 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66590
66591         * lib/getdelim.c (getdelim): Remove unused variables.
66592
66593 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66596         so that the code works even with ancient cpp.  Portability problem
66597         with GCC 2.7.2.1 reported by Thomas M.Ott.
66598
66599 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         * modules/regex (Depends-on): Add strcase.
66602
66603         * modules/gethostname (Licence): Change from GPL to LGPL, since
66604         gethostname.c is a trivial implementation of a standard library
66605         function.
66606         * modules/poll (License): Change from GPL to LGPL, since it's
66607         derived from LGPL code.
66608
66609 2005-09-27  Jim Meyering  <jim@meyering.net>
66610
66611         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66612         HAVE_CONFIG_H.
66613
66614         * lib/intprops.h (signed_type_or_expr__): Define.
66615         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66616         for unsigned types.
66617
66618 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/verify.h (verify_expr): Remove, replacing with:
66621         (verify_true): New macro that returns true instead of void.
66622         (verify_type__): Remove.
66623         (verify): Use verify_true rather than verify_type__.
66624
66625 2005-09-26  Bruno Haible  <bruno@clisp.org>
66626
66627         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66628         is necessary.
66629         (lib_SOURCES): Remove mbchar.c.
66630         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66631         (Files): Add m4/mbrtowc.m4.
66632         * modules/mbiter: Likewise.
66633         * modules/mbuiter: Likewise.
66634
66635 2005-09-26  Bruno Haible  <bruno@clisp.org>
66636
66637         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66638         compile mbchar.c if they are not both present.
66639         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66640         * m4/mbiter.m4 (gl_MBITER): Likewise.
66641         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66642         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66643         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66644
66645 2005-09-25  Jim Meyering  <jim@meyering.net>
66646
66647         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66648         also uses socklen_t.
66649
66650 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * lib/utimens.c (ENOSYS): Define if not already defined.
66653         (futimens): Support having a null PATH if the file descriptor
66654         is nonnegative.
66655
66656         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66657         Remove.
66658         (__attribute): Define to empty unless GCC 3.1 or later.
66659         This works around a core dump on OpenBSD 3.4, which has GCC
66660         2.95.3, which dumps core when given __attribute__(()).  It also
66661         simplifies other tests, since we really don't want to bother with
66662         worrying about which ancient version of GCC supported what.
66663         Original problem reported by Yoann Vandoorselaere, with part of
66664         the fix suggested by Derek Price.
66665
66666 2005-09-24  Jim Meyering  <jim@meyering.net>
66667
66668         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66669         so we can once again use a positive bitfield width of 1 -- now we
66670         don't have to explain why we were using a bitfield width of 2.
66671
66672 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66675         and similarly for the other external symbols.  Problem reported
66676         by James Gallager.
66677
66678         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66679         bug reported by Jim Meyering.
66680
66681         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66683         not needed, since socklen is a prerequisite module.
66684
66685 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66688         Problem reported by Eric Blake.
66689         (getaddrinfo): Initialize se so that it's not garbage.
66690         Redo internal storage allocation so that it doesn't make unportable
66691         assumptions about alignment.
66692         Fix a memory leak.
66693
66694         * lib/utimens.c (futimens): Use futimesat if available.
66695         Prefer it to futimes since it doesn't have the futimes bug.
66696
66697         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66698         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66699         Instead, declare a function that returns a pointer to an array,
66700         and use verify_type__ to declare the size of the array.
66701         Problem and germ of a solution reported by Bruno Haible.
66702         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66703         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66704
66705 2005-09-23  Jim Meyering  <jim@meyering.net>
66706
66707         Sync from coreutils.
66708         Correct build failure (socklen_t not defined) on at least
66709         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66711
66712 2005-09-23  Jim Meyering  <jim@meyering.net>
66713
66714         * modules/getaddrinfo (Depends-on): Add socklen.
66715
66716 2005-09-23  Bruno Haible  <bruno@clisp.org>
66717
66718         * tests/test-verify.c: New file.
66719
66720 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         Sync from coreutils.
66723
66724         * modules/argmatch (Depends-on): Add verify.
66725         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66726         unistd-safer.
66727         * modules/save-cwd (Depends-on): Likewise.
66728
66729         * modules/openat (Files): Add lib/openat-die.c.
66730         (Depends-on): Remove error, exitfail.
66731         Add dirname.
66732
66733         * modules/verify: New file.
66734         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66735         with "verify" module.
66736
66737 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         Sync from coreutils.
66740
66741         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66742         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66743         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66744         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66745         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66746         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66747         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66748         Don't bother checking for string.h, stdlib.h, unistd.h.
66749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66751         module's job.
66752         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66753         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66754
66755         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66756         (gl_GETDATE): Use it.
66757
66758         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66759
66760 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         Sync from coreutils.
66763
66764         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66765         stat-time.h.
66766         * lib/argmatch.h: Include verify.h
66767         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66768         (ARGMATCH_ASSERT): Remove; unused.
66769         * lib/canonicalize.c: Assume STDC_HEADERS.
66770         * lib/exclude.c: Include "strcase.h".
66771         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66772         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66773         and stdio-safer.h.
66774         (getusershell): Call fopen, not fopen_safer.
66775         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66776         Do not include unistd-safer.h.
66777         (save_cwd): Don't call fd_safer; no longer needed
66778         now that we include fcntl--.h.
66779
66780         * lib/getdate.y (relative_time): New type.
66781         (RELATIVE_TIME_0): New constant.
66782         (parser_control): Use relative_time instead of doing it ourselves.
66783         (%union): Add new relative_time rel member.
66784         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66785         Now typeless.
66786         (relunit, relunit_snumber): Now of type rel.
66787         (zone, rel, relunit, get_date): Adjust to above changes.
66788
66789         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66790         Do not include unistd-safer.h.
66791         (getloadavg): Don't call fd_safer; no longer needed
66792         now that we include fcntl--.h.
66793
66794         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66795         (make_dir_parents): Treat ENOSYS like EEXIST.
66796
66797         Improve quality of diagnostics on restore_cwd failure.
66798         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66799         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66800         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66801         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66802         each time through the loop.  Do not diagnose restore_cwd failure;
66803         that is the caller's job (and perhaps the caller does not care).
66804
66805         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66806         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66807         If the file already exists but is not a directory, don't bother
66808         to try to make its parents.
66809         Close potential file descriptor leak if we can't chdir("/") (!).
66810         Don't always return true if chdir($PWD) fails; return true only
66811         if the requested action was done successfully (except for the
66812         chdir($PWD)).
66813         Don't log final directory unless we actually made it.
66814         Refactor to avoid duplicate code to fix up permissions.
66815         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66816
66817         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66818         to make it a bit faster and (I hope) clearer.
66819         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66820         Fix bug in formats like %2N.
66821
66822         * lib/verify.h: New file.
66823
66824 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         Sync from coreutils.
66827         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66828
66829 2005-09-22  Jim Meyering  <jim@meyering.net>
66830
66831         Sync from coreutils.
66832
66833         * m4/lstat.m4 (gl_FUNC_LSTAT):
66834         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66835         Remove obsolete comment.
66836         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66837         * m4/xstrtod.m4: Likewise.
66838
66839         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66840
66841 2005-09-22  Jim Meyering  <jim@meyering.net>
66842
66843         Sync from coreutils.
66844
66845         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66846
66847         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66848         the .tm_year member, since otherwise gcc-4.0 would now warn about
66849         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66850
66851         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66852         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66853
66854         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66855         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66856         when run in a time zone for which daylight savings time is in effect
66857         for the starting date.
66858
66859         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66860         stop us from restricting permissions of just-created absolute-named
66861         directories.
66862         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66863         to restore initial working directory.
66864         * lib/mkdir-p.c (make_dir_parents): New parameter:
66865         different_working_dir, to tell caller if/when we change the working
66866         directory and are unable to return to the initial one.
66867         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66868         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66869         `return false'.  This fixes a bug introduced on 2004-07-30.
66870
66871         * lib/openat.c (fdopendir): Be sure to close the supplied
66872         file descriptor before returning.  This makes our replacement
66873         implementation a little closer to Solaris's, where fdopendir
66874         ties the file descriptor to the returned DIR* pointer.
66875         * lib/openat.c (unlinkat): New function.
66876         * lib/openat.h (unlinkat): Add prototype.
66877         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66878         (openat_restore_fail): Rename from openat_restore_die.
66879         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66880
66881         Provide an alternative to exiting immediately upon save_cwd or
66882         restore_cwd failure.  Now, an application can arrange e.g.,
66883         to perform a longjump in that case.
66884         * lib/openat.c: Include dirname.h.
66885         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66886         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66887         and openat_restore_die rather than calling error directly.
66888         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66889
66890         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66891         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66892         define.
66893
66894         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66895         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66896                             int utc, int nanoseconds);
66897         Background:
66898         date should not have to allocate a megabyte of virtual memory to
66899         handle a format argument like +%1048575T.  When implemented with
66900         strftime, it must allocate such a buffer, use strftime to fill it
66901         in, print it, then free it.
66902         With fprintftime, it simply prints everything and exits.
66903         With no need for memory allocation, that's one fewer way to fail.
66904         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66905         optional field width, not before, so we accept %9:z, not %:9z.
66906         (my_strftime): Be sure to use L_('x') for literals.
66907
66908         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66909         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66910         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66911         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66912         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66913         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66914         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66915         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66916         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66917         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66918         * lib/xgethostname.c, lib/xreadlink.c:
66919         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66920
66921         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66922         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66923         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66924         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66925         and don't include <sys/file.h>).
66926
66927 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66928
66929         Sync from coreutils.
66930
66931         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66932         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66933         [!LDAV_DONE]: Avoid unused variable warning.
66934
66935 2005-09-21  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/unicodeio.h (unicode_to_mb): New declaration.
66938
66939 2005-09-20  Derek Price  <derek@ximbiot.com>
66940
66941         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66942         getaddrinfo.h.
66943
66944 2005-09-20  Bruno Haible  <bruno@clisp.org>
66945
66946         * gnulib-tool: Remove trailing slashes from the values specified for
66947         --source-base, --m4-base, --tests-base, --aux-dir.
66948         Suggested by Simon Josefsson <jas@extundo.com>.
66949
66950 2005-09-20  Bruno Haible  <bruno@clisp.org>
66951
66952         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66953         func_modules_to_filelist, func_import, func_create_testdir): Make all
66954         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66955         change when gnulib-tool is invoked in a different locale.
66956
66957 2005-09-19  Simon Josefsson  <jas@extundo.com>
66958
66959         * m4/socklen.m4: Fix typo.
66960
66961 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66962
66963         Use a consistent style for including <config.h>.
66964         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66965         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66966         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66967         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66968         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66969         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66970         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66971         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66972         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66973         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66974         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66975         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66976         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66977         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66978         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66979         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66980         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66981         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66982         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66983         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66984         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66985         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66986         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66987         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66988         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66989         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66990         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66991         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66992         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66993         lib/xstrtoumax.c, lib/yesno.c:
66994         Standardize inclusion of config.h.
66995         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66996         lib/inttostr.h:  Removed inclusion of config.h from header files.
66997         * lib/inttostr.c:  Adjusted in-tree users.
66998         * lib/timespec.h: Remove superfluous warning to include config.h.
66999         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67000         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67001         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67002         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67003         config.h with HAVE_CONFIG_H.
67004
67005 2005-09-19  Jim Meyering  <jim@meyering.net>
67006
67007         * modules/pathmax (License): Change to LGPL.
67008
67009 2005-09-19  Derek Price  <derek@ximbiot.com>
67010
67011         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67012
67013 2005-09-19  Bruno Haible  <bruno@clisp.org>
67014
67015         * gnulib-tool (import): Provide default for --tests-base.
67016
67017 2005-09-19  Bruno Haible  <bruno@clisp.org>
67018
67019         * doc/quote.texi: New file, extracted from gnulib.texi.
67020         * doc/ctime.texi: New file, extracted from gnulib.texi.
67021         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67022         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67023         * doc/gnulib.texi: Include them.
67024
67025 2005-09-18  Bruno Haible  <bruno@clisp.org>
67026
67027         Portability fix.
67028         * gnulib-tool (func_readlink): New function.
67029         (func_ln_if_changed): Use it.
67030
67031 2005-09-18  Bruno Haible  <bruno@clisp.org>
67032
67033         * gnulib-tool: Support --with-tests also with --import.
67034         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67035         (func_import): Use variables $testsbase and $inctests. Emit a
67036         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67037         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67038         SUBDIRS += $testsdir.
67039         (func_create_testdir): Update.
67040
67041 2005-09-18  Bruno Haible  <bruno@clisp.org>
67042
67043         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67044         instead of $dry_run.
67045         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67046         (func_ln_if_changed): Don't handle dry-run here.
67047         (func_import): In dry-run mode, detect more precisely which actions
67048         would be performed, and don't use "...ing" verbs.
67049
67050 2005-09-18  Bruno Haible  <bruno@clisp.org>
67051
67052         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67053         (func_import): Use join on two temporary files instead of three nested
67054         loops, in order to determine which files are new or old.
67055
67056 2005-09-18  Bruno Haible  <bruno@clisp.org>
67057
67058         * gnulib-tool (func_import): Comment out code that spits out the
67059         new files with --dry-run.
67060
67061 2005-09-18  Bruno Haible  <bruno@clisp.org>
67062
67063         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67064
67065 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67066
67067         * lib/stat-time.h: New file.
67068         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67069         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67070         in a different way.
67071         (timespec_cmp): New function.
67072         * lib/utimecmp.c: Include stat-time.h.
67073         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67074         members exist, not on the obsolescent ST_MTIM_NSEC.
67075         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67076
67077 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67078
67079         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67080
67081 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67082
67083         * MODULES.html.sh (File system functions): Add stat-time.
67084         * modules/stat-time: New file.
67085         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67086         is now done in a different way, by the stat-time module.
67087         * modules/utimecmp (Depends-on): Add stat-time.
67088
67089 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67090
67091         * m4/st_mtim.m4: Remove.  Superseded by...
67092         * m4/stat-time.m4: New file.
67093         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67094         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67095
67096 2005-09-15  Derek Price  <derek@ximbiot.com>
67097
67098         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67099
67100 2005-09-15  Derek Price  <derek@ximbiot.com>
67101
67102         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67103         * lib/regex_internal.c: Ditto, using this...
67104         (__GNUC_PREREQ): ...new macro.
67105         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67106         using...
67107         (__GNUC_PREREQ): ...this new macro.
67108
67109         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67110
67111 2005-09-15  Derek Price  <derek@ximbiot.com>
67112             Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67115         changes, consolidating in...
67116         * lib/regex_internal.h: ...this file.
67117
67118 2005-09-13  Jim Meyering  <jim@meyering.net>
67119
67120         * lib/canon-host.c: Filter through gnu indent and reword comments
67121         slightly.
67122         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67123
67124 2005-09-13  Derek Price  <derek@ximbiot.com>
67125
67126         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67127         failure.
67128         Reported by Jim Meyering  <jim@meyering.net>.
67129
67130 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67131
67132         * lib/base64.c: Typo.
67133         (base64_encode): Put b64str in initialized data section.
67134
67135 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67136
67137         Merge glibc and coreutils changes into gnulib, plus a few
67138         extra fixes.
67139         * lib/md5.c: Use #error rather than a string.
67140         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67141         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67142         (__attribute__): Define to empty for non recent-GCC.
67143         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67144         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67145         Renamed from their non-__ counterparts, with new macros replacing
67146         them if not _LIBC.  Add __THROW attribute.
67147         (rol): Remove.
67148         (struct md5_ctx): Align buffer if using GCC.
67149         * lib/sha1.h (struct sha1_ctx): Likewise.
67150         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67151         The old name was backwards.
67152         (NOTSWAP): Remove; not used.
67153         (rol): New macro, moved here from md5.h.
67154         (sha1_process_block): Remove a FIXME that doesn't make sense.
67155
67156 2005-09-12  Derek Price  <derek@ximbiot.com>
67157
67158         Return usable errors from canon-host.
67159         * lib/canon-host.h: New file.
67160         * lib/canon-host.c (canon_host): Wrap...
67161         (canon_host_r): ...this new function, which now relies exclusively on
67162         getaddrinfo.
67163         (ch_strerror): New function.
67164         (last_cherror): New global.
67165         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67166         interface.
67167         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67168         void *.
67169         (freeaddrinfo): Free ai->ai_canonname when set.
67170
67171 2005-09-12  Derek Price  <derek@ximbiot.com>
67172
67173         Make canon-host require getaddrinfo.
67174         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67175         AC_LIBSOURCE canon-host.h.  Call...
67176         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67177         gl_GETADDRINFO.
67178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67179
67180 2005-09-12  Derek Price  <derek@ximbiot.com>
67181
67182         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67183         LGPL.
67184         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67185
67186 2005-09-12  Derek Price  <derek@ximbiot.com>
67187
67188         * lib/gai_strerror.c: Include config.h when available.  Include
67189         getaddrinfo.h before other headers to test interface.
67190         Reported by Larry Jones <lawrence.jones@ugs.com>.
67191
67192 2005-09-12  Derek Price  <derek@ximbiot.com>
67193             Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         * modules/glob (Files): Add glob-libc.h.
67196
67197 2005-09-12  Derek Price  <derek@ximbiot.com>
67198             Paul Eggert  <eggert@cs.ucla.edu>
67199
67200         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67201         glob_.h, glob-libc.h.
67202         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67203
67204 2005-09-12  Derek Price  <derek@ximbiot.com>
67205             Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67208         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67209         protecting things that should be done only in gnulib contexts.
67210         * lib/glob_.h: New file, containing only the glob things needed for
67211         gnulib.
67212         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67213         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67214         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67215         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67216         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67217         and to respect the namespace rules better.
67218
67219 2005-09-08  Simon Josefsson  <jas@extundo.com>
67220
67221         * modules/socklen: New file.
67222
67223 2005-09-08  Simon Josefsson  <jas@extundo.com>
67224
67225         * m4/socklen.m4: New file.
67226
67227 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * modules/utimens (Files): Add m4/utimbuf.m4, since
67230         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67231         Reported by Sergey Poznyakoff.
67232
67233 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67236         definitions, since that's the preferred style in glibc.
67237         Fix a minor spacing issue, and update copyright notice to match
67238         glibc's.
67239
67240 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67241
67242         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67243
67244 2005-09-06  Simon Josefsson  <jas@extundo.com>
67245
67246         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67247         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67248
67249 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67252         warning.
67253
67254 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * config/srclist.txt: Add glibc bug 1302.
67257
67258 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67259
67260         Change bitset word type from unsigned int to unsigned long int,
67261         as this has better performance on typical 64-bit hosts.
67262         Port bitset code to hosts with unusual word sizes.
67263         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67264         (build_collating_symbol):
67265         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67266         argument is a bitset.  This is merely a style issue, but it makes
67267         it clearer that an entire array is expected.
67268         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67269         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67270         Port to the case where bitset_word is not the same as unsigned int.
67271         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67272         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67273         Likewise.
67274         * lib/regexec.c (check_dst_limits_calc_pos_1,
67275         check_subexp_matching_top):
67276         (build_trtable, group_nodes_into_DFAstates):
67277         Likewise.
67278         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67279         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67280         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67281         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67282         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67283         * lib/regcomp.c (optimize_subexps, lower_subexp):
67284         Work even if bitset_word has holes in its bitwise representation.
67285         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67286         * lib/regexec.c (check_dst_limits_calc_pos_1,
67287         check_subexp_matching_top):
67288         Likewise.
67289         * lib/regex_internal.c (re_string_reconstruct):
67290         Don't assume UCHAR_MAX == 255.
67291         * lib/regex_internal.h (bitset_set_all): Likewise.
67292         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67293         All uses changed.
67294         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67295         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67296         All uses changed.
67297         (BITSET_WORD_MAX): New macro.
67298         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67299         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67300         (bitset_empty, bitset_copy):
67301         Prefer sizeof (bitset) to multiplying it out ourselves.
67302         (bitset_not_merge): Remove; unused.
67303         (bitset_contain): Return bool, not unsigned int with one bit on.
67304         All callers changed.
67305         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67306         alignment than re_node_set; do this by defining a new internal
67307         type struct dests_alloc and using it to allocate memory.
67308
67309 2005-09-05  Bruno Haible  <bruno@clisp.org>
67310
67311         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67312         links.
67313
67314 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67315
67316         * modules/size_max (Makefile.am): Add size_max.h
67317
67318 2005-09-04  Derek Price  <derek@ximbiot.com>
67319
67320         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67321
67322 2005-09-03  Simon Josefsson  <jas@extundo.com>
67323
67324         * gnulib-tool: Fix typo.
67325
67326 2005-09-03  Simon Josefsson  <jas@extundo.com>
67327
67328         * config/srclist.txt: Add glibc bug 1293.
67329
67330 2005-09-03  Derek Price  <derek@ximbiot.com>
67331
67332         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67333         From Larry Jones <lawrence.jones@ugs.com>.
67334
67335 2005-09-02  Simon Josefsson  <jas@extundo.com>
67336
67337         * modules/socklen: New file.
67338
67339 2005-09-02  Simon Josefsson  <jas@extundo.com>
67340
67341         * modules/havelib: New module.
67342
67343         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67344         Use havelib.
67345
67346 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         Check for arithmetic overflow when calculating sizes, to prevent
67349         some buffer-overflow issues.  These patches are conservative, in the
67350         sense that when I couldn't determine whether an overflow was possible,
67351         I inserted a run-time check.
67352         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67353         macros.
67354         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67355         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67356         (re_xnrealloc, re_x2nrealloc): New inline functions.
67357         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67358         parse_bracket_exp):
67359         (build_equiv_class, build_charclass): Check for arithmetic overflow
67360         in size expression calculations.
67361         * lib/regex_internal.c (re_string_realloc_buffers):
67362         (build_wcs_upper_buffer, re_node_set_add_intersect):
67363         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67364         (re_dfa_add_node, register_state): Likewise.
67365         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67366         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67367         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67368         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67369
67370 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67373         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67374
67375 2005-09-02  Bruno Haible  <bruno@clisp.org>
67376
67377         Support for lib vs. lib64 distinction on biarch platforms.
67378         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67379         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67381
67382 2005-09-02  Bruno Haible  <bruno@clisp.org>
67383
67384         * gnulib-tool (import): In the other first-use case, provide defaults
67385         as well.
67386
67387 2005-09-02  Bruno Haible  <bruno@clisp.org>
67388
67389         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67390         patches not yet found in the latest gettext release.
67391
67392 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67395         to avoid a collision with bits/local_lim.h in glibc.
67396         All uses changed.  Problem reported by Dmitry V. Levin in
67397         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67398
67399         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67400         bugs in int versus size_t comparisons.
67401         (re_string_context_at): Fix bug where the code assumed that
67402         Idx is signed.
67403
67404         Use bool where appropriate.
67405         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67406         All callers changed.
67407         (calc_eclosure_iter): Likewise, for ROOT arg.
67408         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67409         (build_charclass_op): Likewise, for NON_MATCH arg.
67410         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67411         (re_string_construct_common): Likewise, for ICASE arg.
67412         * lib/regexec.c (re_search_2_stub, re_search_stub):
67413         Likewise, for RET_LEN arg.
67414         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67415         (set_regs): Likewise, for FL_BACKTRACK arg.
67416         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67417         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67418         (calc_eclosure_iter, parse_bracket_exp):
67419         Use bool for internal variables that are booleans.
67420         * lib/regexec.c (re_search_internal, check_matching,
67421         proceed_next_node):
67422         (set_regs, build_sifted_states, sift_states_bkref):
67423         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67424         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67425         (find_collation_sequence_value):
67426         Likewise.
67427         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67428         (re_node_set_compare):
67429         Return bool, not int. All callers changed.
67430         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67431         (build_trtable, check_node_accept): Likewise.
67432         * lib/regex_internal.h: Include stdbool.h.
67433
67434         Fix bugs uncovered when converting to bool.
67435         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67436         failure instead of charging ahead blindly.
67437         * lib/regex_internal.c (register_state): Likewise.
67438         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67439         for freeing internal storage.
67440         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67441         bitset pieces used as boolean, to avoid undefined behavior
67442         on hosts that do int overflow checking.
67443
67444 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * config/srclist.txt: Add glibc bugs 1285-1287.
67447
67448 2005-09-01  Jim Meyering  <jim@meyering.net>
67449
67450         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67451         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67452         Require gl_STAT_MACROS, too.
67453
67454 2005-09-01  Bruno Haible  <bruno@clisp.org>
67455
67456         * gnulib-tool (import): In the first-use case, provide defaults.
67457
67458 2005-09-01  Bruno Haible  <bruno@clisp.org>
67459
67460         * gnulib-tool (func_import): Remove the .tmp files.
67461
67462 2005-09-01  Bruno Haible  <bruno@clisp.org>
67463
67464         * gnulib-tool (func_import): Fix handling of symbolic links.
67465
67466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67469         old glibc regex code mishandles strings longer than 2**31 bytes.
67470         This patch fixes this when the regex code is used in gnulib
67471         (i.e., outside glibc).
67472
67473         This patch should not affect the use of the regex code inside
67474         glibc.  No doubt this problem also needs to be handled for glibc
67475         as well, but the result will be an incompatible change to the
67476         glibc ABI, and the old ABI will have to be supported too.  That
67477         can be the the subject for another patch.
67478
67479         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67480         governing whether the rest of this patch is active.  By default,
67481         the macro is disabled and the patch has no effect.
67482         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67483         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67484         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67485         (re_match_2, re_set_registers): Use the new types.
67486         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67487         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67488         New macros.
67489         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67490         (re_string_context_at, bin_tree_t, re_dfastate_t):
67491         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67492         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67493         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67494         (re_string_char_size_at, re_string_wchar_at):
67495         (re_string_elem_size_at):
67496         Use the new types and macros to port to 64-bit hosts.
67497         Use unsigned types for internal values, so that the code
67498         mostly works even for arrays larger than SSIZE_MAX.
67499         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67500         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67501         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67502         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67503         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67504         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67505         (calc_inveclosure, parse_dup_op, build_range_exp):
67506         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67507         (fetch_number, create_token_tree, mark_opt_subexp):
67508         Likewise.
67509         * lib/regex_internal.c (re_string_construct_common,
67510         create_ci_newstate):
67511         (create_cd_newstate, re_string_allocate, re_string_construct):
67512         (re_string_realloc_buffers, build_wcs_upper_buffer):
67513         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67514         (re_string_reconstruct, re_string_peek_byte_case):
67515         (re_string_fetch_byte_case, re_string_context_at):
67516         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67517         (re_node_set_init_copy, re_node_set_add_intersect):
67518         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67519         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67520         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67521         (re_acquire_state, re_acquire_state_context, register_state):
67522         Likewise.
67523         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67524         search_cur_bkref_entry):
67525         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67526         (re_search_internal, re_search_2_stub, re_search_stub)
67527         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67528         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67529         (update_cur_sifted_state, check_dst_limits):
67530         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67531         (check_subexp_limits, sift_states_bkref, merge_state_array):
67532         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67533         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67534         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67535         (expand_bkref_cache, check_node_accept_bytes):
67536         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67537         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67538         (acquire_init_state_context, check_halt_node_context):
67539         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67540         (sift_states_backward, clean_state_log_if_needed):
67541         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67542         (find_recover_state, transit_state_sb, transit_state_mb):
67543         (transit_state_bkref, build_trtable, match_ctx_clean):
67544         Likewise.
67545         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67546         to work around an assumption that REG_MISSING is negative.
67547
67548         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67549         (seek_collating_symbol_entry) [defined _LIBC]:
67550         (lookup_collation_sequence_value) [defined _LIBC]:
67551         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67552         Use prototypes rather than old-style function definitions.
67553         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67554         (transit_state_sb) [0]:
67555         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67556
67557         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67558         rm_eo.
67559
67560         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67561         (optimize_subexps, lower_subexp):
67562         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67563         since the signed shift might overflow.  Use 1u<<31 instead.
67564         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67565         Likewise.
67566         * lib/regexec.c (check_dst_limits_calc_pos_1,
67567         check_subexp_matching_top): Likewise.
67568
67569         * lib/regcomp.c (optimize_subexps, lower_subexp):
67570         Use CHAR_BIT rather than 8, for clarity.
67571         * lib/regexec.c (check_dst_limits_calc_pos_1):
67572         (check_subexp_matching_top): Likewise.
67573         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67574         have to worry about portability issues when shifting it left.
67575         Remove no-longer-needed test for table_size > 0.
67576         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67577         in a word, as the resulting behavior is undefined.
67578         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67579         in one case, a <= should have been an <, and in another case the
67580         whole test was missing.
67581         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67582         the standard name CHAR_BIT.
67583         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67584         this is not true on one's complement and signed-magnitude hosts.
67585
67586         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67587         next_last_offset.
67588         (struct re_dfa_t): Remove unused member states_alloc.
67589         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67590
67591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67594         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67595         and large-file glibc and in 32-bit large-file Solaris.
67596
67597 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67600         lengths fit in regoff_t; this isn't true if regoff_t is the same
67601         width as size_t.
67602         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67603         (= START + RANGE) instead of RANGE.  This avoids overflow
67604         problems when regoff_t is the same width as size_t.
67605         All callers changed.
67606         (re_search_2_stub): Check for overflow when adding the
67607         sizes of the two strings.
67608         (re_search_stub): Check for overflow when adding START
67609         to RANGE; if it occurs, substitute the extreme value.
67610
67611 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67614
67615 2005-08-31  Jim Meyering  <jim@meyering.net>
67616
67617         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67618         a pointer-to-const.
67619         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67620         (register_state): Likewise.
67621         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67622         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67623         (group_nodes_into_DFAstates): Likewise.
67624
67625 2005-08-31  Jim Meyering  <jim@meyering.net>
67626
67627         * check-module: Add a FIXME comment.
67628
67629 2005-08-31  Eric Blake  <ebb9@byu.net>
67630
67631         * modules/unistd-safer (Files): Add unistd--.h.
67632         * modules/stdio-safer (Files): Add stdio--.h.
67633
67634 2005-08-31  Derek Price  <derek@ximbiot.com>
67635
67636         * lib/getdelim.c (getdelim): Return EOF on EOF.
67637         Reported by Larry Jones <lawrence.jones@ugs.com>.
67638
67639 2005-08-31  Bruno Haible  <bruno@clisp.org>
67640
67641         Avoid unnecessary diffs in the generated lib/Makefile.am.
67642         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67643         the generated files.
67644         (func_import): Don't set cmd.
67645
67646 2005-08-31  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/strstr.c: Include <stddef.h>, for NULL.
67649         * lib/strcasestr.c: Likewise.
67650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67651
67652 2005-08-31  Bruno Haible  <bruno@clisp.org>
67653
67654         * gnulib-tool: New option --macro-prefix.
67655         (func_import): Use macro_prefix.
67656         (import): Handle option --macro-prefix.
67657
67658 2005-08-31  Bruno Haible  <bruno@clisp.org>
67659
67660         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67661         Also use new variables cached_lgpl, cached_libtool.
67662
67663 2005-08-31  Bruno Haible  <bruno@clisp.org>
67664
67665         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67666         always instantiating them.
67667
67668 2005-08-31  Bruno Haible  <bruno@clisp.org>
67669
67670         * gnulib-tool (func_import): Read the previous cached settings
67671         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67672         earlier added by gnulib but are now dropped. Warn when a gnulib file
67673         overwrites a non-gnulib file.
67674
67675 2005-08-31  Bruno Haible  <bruno@clisp.org>
67676
67677         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67678         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67679         projects that don't keep autogenerated files in CVS. Put into
67680         actioncmd only the specified modules, not the transitive closure.
67681
67682 2005-08-31  Bruno Haible  <bruno@clisp.org>
67683
67684         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67685         Create directories that shall be filled.
67686         (import): Don't look for gl_* macros in configure.ac. Recurse across
67687         all directories containing a gnulib-cache.m4 files, if meaningful.
67688
67689 2005-08-31  Bruno Haible  <bruno@clisp.org>
67690
67691         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67692         (import): Set seen_libtool when we see gl_LIBTOOL.
67693
67694 2005-08-31  Bruno Haible  <bruno@clisp.org>
67695
67696         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67697         declaration macro definitions from generated gnulib.m4.
67698
67699 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67700
67701         * lib/iconvme.h: Add prototype for iconv_alloc.
67702
67703 2005-08-29  Simon Josefsson  <jas@extundo.com>
67704
67705         * lib/iconvme.c: Fix errno.
67706
67707 2005-08-29  Bruno Haible  <bruno@clisp.org>
67708
67709         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67710         that it works when the directory contains spaces.
67711
67712 2005-08-29  Bruno Haible  <bruno@clisp.org>
67713
67714         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67715
67716 2005-08-29  Bruno Haible  <bruno@clisp.org>
67717
67718         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67719         Emit more advice.
67720
67721 2005-08-29  Bruno Haible  <bruno@clisp.org>
67722         and Stepan Kasal  <kasal@ucw.cz>
67723
67724         * check-module: If more parameters are given, check each of them
67725         separately; add more exceptions, as noted by Jim Meyering.
67726         (check_module): New procedure.
67727         (%exempt_header): Now contains all exceptions.
67728
67729 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67730
67731         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67732
67733 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67734
67735         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67736
67737 2005-08-28  Bruno Haible  <bruno@clisp.org>
67738
67739         * m4/gnulib-tool.m4: New file.
67740
67741 2005-08-27  Jim Meyering  <jim@meyering.net>
67742
67743         * modules/unistd-safer (Files): Add pipe-safer.c.
67744         * modules/fcntl-safer (Files): Add creat-safer.c.
67745
67746 2005-08-27  Jim Meyering  <jim@meyering.net>
67747
67748         * m4/stdlib-safer.m4: New file.  From coreutils.
67749         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67751         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67752         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67753         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67754
67755 2005-08-27  Jim Meyering  <jim@meyering.net>
67756
67757         * lib/fopen-safer.c: Merge minor changes from coreutils.
67758         * lib/dup-safer.c: Likewise.
67759         * lib/fd-safer.c: Likewise.
67760
67761         Merge from coreutils.
67762         * lib/stdio--.h: New file.
67763         * lib/stdlib--.h: New file.
67764         * lib/mkstemp-safer.c: New file.
67765
67766         GNU tar needs these.
67767         * lib/pipe-safer.c: New file.
67768         * lib/creat-safer.c: New file.
67769         * lib/fcntl--.h (creat): Define to creat_safer.
67770         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67771         * lib/unistd--.h (pipe): Define to pipe_safer.
67772         * lib/unistd-safer.h: Declare pipe_safer.
67773
67774 2005-08-26  Simon Josefsson  <jas@extundo.com>
67775
67776         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67777         Haible <bruno@clisp.org>.
67778
67779 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/regex_internal.h: Remove all references to
67782         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67783         or better.
67784         (bitset_not, bitset_merge, bitset_not_merge):
67785         (bitset_mask, re_string_allocate, re_string_construct):
67786         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67787         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67788         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67789         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67790         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67791         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67792         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67793         (re_acquire_state_context):
67794         Remove unnecessary forward decls.
67795         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67796         Put __attribute at function definition,
67797         now that the function decl has been removed.
67798         * lib/regex_internal.c (re_string_peek_byte_case):
67799         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67800         Likewise.
67801
67802 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67803
67804         * m4/regex.m4: Add AC_PREREQ(2.50).
67805         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67806
67807 2005-08-25  Simon Josefsson  <jas@extundo.com>
67808
67809         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67810         __fsetlocking.
67811
67812 2005-08-25  Simon Josefsson  <jas@extundo.com>
67813
67814         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67815         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67816         GLIBC specific code.
67817
67818 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         Make regex safe for g++.  This fixes one real bug (an "err"
67821         that should have been "*err").  g++ problem reported by
67822         Sam Steingold.
67823         * lib/regex_internal.h (re_calloc): New macro, consistent with
67824         re_malloc etc.  All callers of calloc changed to use re_calloc.
67825         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67826         not int.  All callers changed.
67827         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67828         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67829         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67830         (find_recover_state): Change "err" to "*err"; this fixes what
67831         appears to be a real bug.
67832         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67833         versus int.
67834
67835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * modules/regex (Depends-on): Add malloc, since the code
67838         assumes that !malloc(0) means failure.
67839
67840 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67843
67844         alloca modernization/simplification for regex.
67845         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67846         needs to be at the start of the file, and can be moved into
67847         regex_internal.h and simplified.
67848         * lib/regex_internal.h: Include <alloca.h>.
67849         (__libc_use_alloca) [!defined _LIBC]: New macro.
67850         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67851         now works outside glibc.
67852
67853 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * config/srclist.txt: Add glibc bugs 1241, 1245.
67856
67857 2005-08-25  Jim Meyering  <jim@meyering.net>
67858
67859         * lib/open-safer.c: Include <config.h>.
67860         Otherwise, we'd lose LARGEFILE support in any file using
67861         e.g. "fcntl--.h"
67862
67863 2005-08-25  Bruno Haible  <bruno@clisp.org>
67864
67865         * m4/minmax.m4: Require autoconf 2.52.
67866         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67867         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67868         alternatives of translit over the alphabet.
67869         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67870
67871 2005-08-24  Simon Josefsson  <jas@extundo.com>
67872
67873         * tests/test-getpass.c: New file.
67874
67875 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67878         for GNU regex features.
67879
67880 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67883         * lib/regex.h (regerror): Likewise.
67884
67885         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67886         requires this.  (The code never needed it.)
67887
67888         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67889         All uses of recently-renamed identifiers changed to use the new,
67890         POSIX-compliant names.  The code will build and run just fine
67891         without these changes, but it's better to eat our own dog food
67892         and use the standard-conforming names.
67893
67894         * lib/regex.h: Fix a multitude of POSIX name space violations.
67895         These changes have an effect only for programs that define
67896         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67897         do not change anything for programs compiled in the normal way.
67898         Also, there is no effect on the ABI.
67899
67900         (_REGEX_SOURCE): New macro.
67901         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67902         defined and _GNU_SOURCE is not; this fixes a name space violation.
67903
67904         Rename the following macros to obey POSIX requirements.
67905         The old names are still visible as macros if _REGEX_SOURCE is defined.
67906         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67907         RE_BACKSLASH_ESCAPE_IN_LISTS.
67908         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67909         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67910         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67911         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67912         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67913         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67914         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67915         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67916         (REG_INTERVALS): renamed from RE_INTERVALS.
67917         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67918         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67919         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67920         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67921         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67922         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67923         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67924         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67925         RE_UNMATCHED_RIGHT_PAREN_ORD.
67926         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67927         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67928         (REG_DEBUG): renamed from RE_DEBUG.
67929         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67930         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67931         unusual, since we can't clash with the POSIX REG_ICASE.
67932         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67933         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67934         (REG_NO_SUB): renamed from RE_NO_SUB.
67935         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67936         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67937         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67938         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67939         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67940         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67941         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67942         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67943         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67944         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67945         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67946         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67947         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67948         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67949         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67950         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67951         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67952         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67953         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67954         (REG_FIXED): Renamed from REGS_FIXED.
67955         (REG_NREGS): Renamed from RE_NREGS.
67956
67957         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67958         of other REG_* macros, since POSIX says the user is allowed to
67959         #undef these macros selectively.
67960
67961         (reg_errcode_t): Update comment stating what other tables need
67962         to be consistent.
67963
67964         Rename the following enum values to obey POSIX requirements.
67965         The old names are still visible as macros.
67966         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67967         is not defined, since GNU is supposed to be a superset of POSIX as
67968         much as possible, and since we want reg_errcode_t to be a signed
67969         type for implementation consistency.
67970         (_REG_NOERROR): Renamed from REG_NOERROR.
67971         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67972         (_REG_BADPAT): Renamed from REG_BADPAT.
67973         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67974         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67975         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67976         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67977         (_REG_EBRACK): Renamed from REG_EBRACK.
67978         (_REG_EPAREN): Renamed from REG_EPAREN.
67979         (_REG_EBRACE): Renamed from REG_EBRACE.
67980         (_REG_BADBR): Renamed from REG_BADBR.
67981         (_REG_ERANGE): Renamed from REG_ERANGE.
67982         (_REG_ESPACE): Renamed from REG_ESPACE.
67983         (_REG_BADRPT): Renamed from REG_BADRPT.
67984         (_REG_EEND): Renamed from REG_EEND.
67985         (_REG_ESIZE): Renamed from REG_ESIZE.
67986         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67987         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67988         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67989         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67990         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67991
67992         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67993         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67994         changed.  But support the old name if the new one is not defined
67995         and if _REGEX_SOURCE.
67996
67997         Change the following member names in struct re_pattern_buffer.
67998         The old names are still supported if !_REGEX_SOURCE.
67999         The new names are always supported, regardless of _REGEX_SOURCE.
68000         (re_buffer): Renamed from buffer.
68001         (re_allocated): Renamed from allocated.
68002         (re_used): Renamed from used.
68003         (re_syntax): Renamed from syntax.
68004         (re_fastmap): Renamed from fastmap.
68005         (re_translate): Renamed from translate.
68006         (re_can_be_null): Renamed from can_be_null.
68007         (re_regs_allocated): Renamed from regs_allocated.
68008         (re_fastmap_accurate): Renamed from fastmap_accurate.
68009         (re_no_sub): Renamed from no_sub.
68010         (re_not_bol): Renamed from not_bol.
68011         (re_not_eol): Renamed from not_eol.
68012         (re_newline_anchor): Renamed from newline_anchor.
68013
68014         Change the following member names in struct re_registers.
68015         The old names are still supported if !_REGEX_SOURCE.
68016         The new names are always supported, regardless of _REGEX_SOURCE.
68017         (rm_num_regs): Renamed from num_regs.
68018         (rm_start): Renamed from start.
68019         (rm_end): Renamed from end.
68020
68021         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68022         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68023         Prepend __ to parameter names.
68024
68025         Undo yesterday's changes.
68026
68027 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68030         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68031         lib/regex.c.
68032
68033 2005-08-24  Jim Meyering  <jim@meyering.net>
68034
68035         Sync from coreutils.
68036         * m4/fcntl-safer.m4: New file.
68037
68038         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68039         and object files for this module.
68040
68041 2005-08-24  Jim Meyering  <jim@meyering.net>
68042
68043         Sync from coreutils.
68044         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68045
68046 2005-08-24  Jim Meyering  <jim@meyering.net>
68047
68048         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68049         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68050
68051 2005-08-24  Jim Meyering  <jim@meyering.net>
68052
68053         * modules/fcntl-safer: New module.
68054         * modules/fts (Depends-on): Add fcntl-safer.
68055         * MODULES.html.sh (File descriptor based Input/Output):
68056         Add fcntl-safer.
68057
68058 2005-08-24  Bruno Haible  <bruno@clisp.org>
68059
68060         Support for unit test modules.
68061         * modules/README: Mention tests modules.
68062         * modules/TEMPLATE-TESTS: New file.
68063         * gnulib-tool: New options --extract-tests-module, --with-tests and
68064         --tests-base (unused for the moment).
68065         (testsbase, inctests): New variables.
68066         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68067         (func_verify_module): Exclude TEMPLATE-TESTS.
68068         (func_verify_nontests_module, func_verify_tests_module): New functions.
68069         (func_get_dependencies): Add implicit dependency for tests modules.
68070         (func_get_tests_module): New function.
68071         (func_modules_transitive_closure): When --with-tests was specified,
68072         include the unit tests as well, unless explicitly avoided.
68073         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68074         (func_emit_tests_Makefile_am): New function.
68075         (func_create_testdir): When --with-tests was specified, emit a
68076         tests/ directory.
68077         * MODULES.html.sh (Future developments): Update.
68078
68079 2005-08-24  Bruno Haible  <bruno@clisp.org>
68080
68081         * modules/tls-tests: New file.
68082         * tests/test-tls.c: New file, from GNU gettext.
68083
68084 2005-08-24  Bruno Haible  <bruno@clisp.org>
68085
68086         * modules/lock-tests: New file.
68087         * tests/test-lock.c: New file, from GNU gettext.
68088
68089 2005-08-24  Bruno Haible  <bruno@clisp.org>
68090
68091         * lib/lock.h: Add multiple inclusion guard.
68092         * lib/tls.h: Add multiple inclusion guard.
68093
68094 2005-08-24  Bruno Haible  <bruno@clisp.org>
68095
68096         * gnulib-tool: Add support for the --aux-dir option to
68097         --create-testdir, --create-megatestdir, --test, --megatest.
68098         (func_create_testdir, func_create_megatestdir): Optionally emit a
68099         AC_CONFIG_AUX_DIR directive.
68100         (create-testdir, create-megatestdir, test, megatest): Provide a
68101         default value for $auxdir.
68102
68103 2005-08-24  Bruno Haible  <bruno@clisp.org>
68104
68105         * gnulib-tool (import): Use compound statement instead of subshell
68106         where possible.
68107
68108 2005-08-24  Bruno Haible  <bruno@clisp.org>
68109
68110         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68111
68112 2005-08-24  Bruno Haible  <bruno@clisp.org>
68113
68114         * gnulib-tool (func_version): Update.
68115
68116 2005-08-24  Bruno Haible  <bruno@clisp.org>
68117
68118         * gnulib-tool (func_import, func_create_testdir,
68119         func_create_megatestdir): Quote all autoconf macro arguments.
68120
68121 2005-08-24  Bruno Haible  <bruno@clisp.org>
68122
68123         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68124         option --force, because --force causes the aclocal.m4 of each
68125         subdirectory to be newer than the corresponding config.h.in.
68126
68127 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68130         All contents moved to gl_REGEX.
68131         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68132         assume that it does.
68133
68134 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68135
68136         * lib/regex.h (REG_NOSYS)
68137         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68138         Define, since POSIX requires it as of 2001.
68139         (_REG_ENOSYS)
68140         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68141         New private symbol, used to keep the enum signed in all cases.
68142         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68143         Youngman in
68144         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68145
68146         * lib/regex_internal.c (re_string_skip_chars, register_state):
68147         (calc_state_hash):
68148         Remove forward decls; no longer needed now that we use prototypes.
68149         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68150         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68151         (clean_state_log_if_needed): Likewise.
68152
68153 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * config/srclist.txt: Add glibc bugs 1231-1233.
68156
68157 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         Fix problems reported by Sam Steingold in
68160         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68161         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68162         assumed that reg_errcode_t is a signed type, which is not
68163         necessarily true if _XOPEN_SOURCE is not defined.
68164         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68165         since some compilers warn about it otherwise.
68166
68167 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68170         (init_word_char, create_initial_state, duplicate_node_closure):
68171         (fetch_token, peek_token_bracket, build_range_exp):
68172         (build_collating_symbol): Remove forward decls; no longer needed
68173         now that we use prototypes.
68174
68175         * lib/regcomp.c:
68176         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68177         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68178         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68179         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68180         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68181         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68182         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68183         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68184         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68185         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68186         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68187         (build_charclass, build_charclass_op, fetch_number, create_tree):
68188         (create_token_tree, mark_opt_subexp, duplicate_tree):
68189         Use prototypes rather than old-style definitions.
68190
68191         * lib/regex_internal.c:
68192         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68193         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68194         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68195         (re_string_reconstruct, re_string_peek_byte_case):
68196         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68197         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68198         (re_node_set_init_copy, re_node_set_add_intersect):
68199         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68200         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68201         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68202         (re_acquire_state, re_acquire_state_context, register_state):
68203         (create_ci_newstate, create_cd_newstate, free_state):
68204         Likewise.
68205         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68206         re_search_2):
68207         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68208         (re_search_internal, prune_impossible_nodes):
68209         (acquire_init_state_context, check_matching, static):
68210         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68211         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68212         (update_regs, sift_states_backward, build_sifted_states):
68213         (clean_state_log_if_needed, merge_state_array):
68214         (update_cur_sifted_state, add_epsilon_src_nodes):
68215         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68216         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68217         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68218         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68219         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68220         (check_arrival, check_arrival_add_next_nodes):
68221         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68222         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68223         (check_node_accept_bytes, check_node_accept, extend_buffers):
68224         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68225         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68226         (sift_ctx_init):
68227         Likewise.
68228
68229         * lib/regex_internal.h:
68230         (re_string_allocate, re_string_construct, re_string_reconstruct):
68231         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68232         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68233         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68234         (re_string_context_at, re_string_peek_byte_case):
68235         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68236         is defined, since we now use prototypes always.
68237
68238         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68239         C89 or better.  All uses removed.
68240
68241 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * config/srclist.txt: Add glibc bugs 1220-1227.
68244
68245 2005-08-20  Jim Meyering  <jim@meyering.net>
68246
68247         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68248         of unused local, dfa.
68249
68250 2005-08-20  Bruno Haible  <bruno@clisp.org>
68251
68252         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68253
68254 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68257         (re_node_set_insert_last, re_dfa_add_node):
68258         Rename local variables to avoid GCC shadowing warnings.
68259
68260 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68261
68262         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68263         [defined lint]: Suppress bogus uninitialized-variable warnings.
68264
68265         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68266         and let the caller return REG_ESPACE if out of space.  This
68267         removes an uninitialied-variable warning with GCC 4.0.1, and also
68268         avoids taking the address of a local variable.  All callers
68269         changed.
68270
68271 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68274         $LIBCSRC/posix/regexec.c.
68275         Add glibc bug 1217 for regcomp.c.
68276
68277 2005-08-19  Jim Meyering  <jim@meyering.net>
68278
68279         * lib/regexec.c (proceed_next_node): Redo local variables to
68280         avoid GCC shadowing warnings.
68281
68282 2005-08-18  Bruno Haible  <bruno@clisp.org>
68283
68284         * lib/strstr.c (strstr): Fix return value in multibyte case.
68285         * lib/strcasestr.c (strcasestr): Likewise.
68286
68287 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68290
68291 2005-08-17  Jim Meyering  <jim@meyering.net>
68292
68293         Make the %s format (seconds since the epoch) work for a negative
68294         number and when used with a zero-padded field width, e.g. %015s.
68295
68296         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68297         label so that it precedes the code to set `digits'.  Otherwise,
68298         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68299         print `00-22'.  Now, it prints `-0022', as it should.
68300
68301 2005-08-17  Bruno Haible  <bruno@clisp.org>
68302
68303         * modules/strstr (Files): Add m4/mbrtowc.m4.
68304         (Depends-on): Add mbuiter.
68305
68306 2005-08-17  Bruno Haible  <bruno@clisp.org>
68307
68308         * modules/strcasestr: New file.
68309         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68310         strcasestr.
68311
68312 2005-08-17  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68315
68316 2005-08-17  Bruno Haible  <bruno@clisp.org>
68317
68318         * modules/mbuiter: New file.
68319         * MODULES.html.sh (Extended multibyte and wide character utilities):
68320         Add mbuiter.
68321
68322 2005-08-17  Bruno Haible  <bruno@clisp.org>
68323
68324         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68325         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68326
68327 2005-08-17  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/strcasestr.m4: New file.
68330
68331 2005-08-17  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68334         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68335
68336 2005-08-17  Bruno Haible  <bruno@clisp.org>
68337
68338         * lib/strcasestr.h: New file.
68339         * lib/strcasestr.c: New file.
68340
68341 2005-08-17  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/strcasecmp.c: Use mbuiter.h.
68344
68345 2005-08-17  Bruno Haible  <bruno@clisp.org>
68346
68347         * lib/mbuiter.h: New file.
68348
68349 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68350
68351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68352         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68353         and gl_GETOPT are both invoked via different paths (as happens
68354         with GNU tar CVS because it uses both argp and getopt), the former
68355         wins.
68356
68357 2005-08-16  Bruno Haible  <bruno@clisp.org>
68358
68359         * modules/tls: New file.
68360         * MODULES.html.sh (Multithreading): Add tls.
68361
68362 2005-08-16  Bruno Haible  <bruno@clisp.org>
68363
68364         * modules/strnlen1: New file.
68365         * MODULES.html.sh (String handling): Add strnlen1.
68366
68367 2005-08-16  Bruno Haible  <bruno@clisp.org>
68368
68369         * modules/strcase (Files): Add m4/mbrtowc.m4.
68370         (Depends-on): Add strnlen1, mbchar.
68371
68372 2005-08-16  Bruno Haible  <bruno@clisp.org>
68373
68374         * modules/mbiter: New file.
68375         * MODULES.html.sh (Extended multibyte and wide character utilities):
68376         Add mbiter.
68377
68378 2005-08-16  Bruno Haible  <bruno@clisp.org>
68379
68380         * modules/mbfile: New file.
68381         * MODULES.html.sh (Extended multibyte and wide character utilities):
68382         Add mbfile.
68383
68384 2005-08-16  Bruno Haible  <bruno@clisp.org>
68385
68386         * modules/mbchar: New file.
68387         * MODULES.html.sh (Extended multibyte and wide character utilities):
68388         New section.
68389
68390 2005-08-16  Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/tls.m4: New file, from GNU gettext.
68393
68394 2005-08-16  Bruno Haible  <bruno@clisp.org>
68395
68396         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68397         always.
68398         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68399
68400 2005-08-16  Bruno Haible  <bruno@clisp.org>
68401
68402         * m4/mbiter.m4: New file.
68403
68404 2005-08-16  Bruno Haible  <bruno@clisp.org>
68405
68406         * m4/mbfile.m4: New file.
68407
68408 2005-08-16  Bruno Haible  <bruno@clisp.org>
68409
68410         * m4/mbchar.m4: New file.
68411
68412 2005-08-16  Bruno Haible  <bruno@clisp.org>
68413
68414         * lib/tls.h: New file, from GNU gettext.
68415         * lib/tls.c: New file, from GNU gettext.
68416
68417 2005-08-16  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/strnlen1.h: New file.
68420         * lib/strnlen1.c: New file.
68421
68422 2005-08-16  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68425         (mbi_init): Update.
68426         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68427         NUL byte, not after it.
68428
68429 2005-08-16  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/strcase.h (strcasecmp): Add note in comments.
68432         * lib/strncasecmp.c: Use code from strcasecmp.c.
68433         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68434         (strcasecmp): Work correctly in multibyte locales.
68435
68436 2005-08-16  Bruno Haible  <bruno@clisp.org>
68437
68438         * lib/mbiter.h: New file.
68439
68440 2005-08-16  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/mbfile.h: New file.
68443
68444 2005-08-16  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/mbchar.h: New file.
68447         * lib/mbchar.c: New file.
68448
68449 2005-08-16  Bruno Haible  <bruno@clisp.org>
68450
68451         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68452         the valid ones. Makes the comparison operations transitive:
68453         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68454         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68455
68456 2005-08-15  Simon Josefsson  <jas@extundo.com>
68457
68458         * modules/ssize_t (License): Change to 'unlimited'.
68459
68460         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68461
68462 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68465         Add comments for each pending glibc patch.
68466
68467 2005-08-15  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68470         __cplusplus is defined.
68471
68472 2005-08-14  Jim Meyering  <jim@meyering.net>
68473
68474         Sync from coreutils.
68475
68476         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68477         Use the hash-table-based cycle-detection code not just when
68478         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68479         Reported by James Youngman in
68480         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68481         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68482         FTS_TIGHT_CYCLE_CHECK.
68483         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68484         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68485         once again.
68486         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68487         * lib/fts.c (fd_safer): Remove decl.
68488         Include fcntl--.h rather than unistd-safer.h
68489         (fts_safe_changedir): Don't call fd_safer; no longer needed
68490         now that we include fcntl--.h.
68491
68492 2005-08-12  Simon Josefsson  <jas@extundo.com>
68493
68494         * modules/getndelim2: Use ssize_t module.
68495         * modules/getnline: Likewise.
68496         * modules/safe-read: Likewise.
68497         * modules/xreadlink: Likewise.
68498
68499         * modules/ssize_t: New file.
68500
68501 2005-08-12  Simon Josefsson  <jas@extundo.com>
68502
68503         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68504
68505 2005-08-12  Simon Josefsson  <jas@extundo.com>
68506
68507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68508         ssize_t.
68509
68510 2005-08-12  Simon Josefsson  <jas@extundo.com>
68511
68512         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68513         readline, getdelim and check_version.
68514         (Support for systems lacking ISO C 99: Sizes of integer types):
68515         Add size_max.
68516
68517 2005-08-12  Bruno Haible  <bruno@clisp.org>
68518
68519         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68520
68521 2005-08-11  Simon Josefsson  <jas@extundo.com>
68522
68523         * modules/readline: New file.
68524
68525         * modules/strnlen (Files): Add strnlen.h.
68526
68527 2005-08-11  Simon Josefsson  <jas@extundo.com>
68528
68529         * m4/readline.m4: New file.
68530
68531 2005-08-11  Simon Josefsson  <jas@extundo.com>
68532
68533         * lib/readline.h, readline.c: New file.
68534
68535 2005-08-11  Simon Josefsson  <jas@extundo.com>
68536
68537         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68538         gl_AVOID.
68539
68540 2005-08-11  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68543
68544 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68545
68546         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68547
68548 2005-08-10  Simon Josefsson  <jas@extundo.com>
68549
68550         * tests/test-iconvme.c: New file.
68551
68552 2005-08-10  Simon Josefsson  <jas@extundo.com>
68553
68554         * m4/strnlen.m4: New file.
68555
68556         * m4/strndup.m4: Don't check for strnlen declaration, done in
68557         strnlen.m4.
68558
68559 2005-08-10  Simon Josefsson  <jas@extundo.com>
68560
68561         * lib/strndup.c: Use strnlen.h.
68562
68563         * lib/strnlen.h: New file.
68564
68565 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68566
68567         * README: Typos.
68568
68569 2005-08-02  Simon Josefsson  <jas@extundo.com>
68570
68571         * modules/readline: New file.
68572
68573 2005-08-02  Simon Josefsson  <jas@extundo.com>
68574
68575         * modules/getdelim: New file.
68576
68577         * modules/getline: Rewrite, don't use getndelim2.
68578
68579 2005-08-02  Simon Josefsson  <jas@extundo.com>
68580
68581         * m4/getline.m4: Separate out getdelim stuff into separate module.
68582
68583         * m4/getdelim.m4: New file.
68584
68585 2005-08-02  Simon Josefsson  <jas@extundo.com>
68586
68587         * lib/getline.h, getline.c: Rewrite.
68588
68589         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68590
68591 2005-07-31  Bruno Haible  <bruno@clisp.org>
68592
68593         * lib/lock.h (gl_lock_initializer): New macro.
68594         (gl_lock_define_initialized): Use it.
68595         (gl_rwlock_initializer): New macro.
68596         (gl_rwlock_define_initialized): Use it.
68597         (gl_recursive_lock_initializer): New macro.
68598         (gl_recursive_lock_define_initialized): Use it.
68599
68600 2005-07-30  Karl Berry  <karl@gnu.org>
68601
68602         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68603         Report from Ben Pfaff, regarding getopt.
68604
68605 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68608         normal way.
68609         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68610         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68611         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68612         (gl_GETOPT): Use the new macros.  Most of the implementation
68613         is moved to the new macros.  This is for programs like Emacs
68614         that don't want all the functionality of gl_GETOPT.
68615
68616 2005-07-26  Bruno Haible  <bruno@clisp.org>
68617
68618         * m4/lock.m4: Update from GNU gettext.
68619
68620 2005-07-26  Bruno Haible  <bruno@clisp.org>
68621
68622         * lib/lock.h: Update from GNU gettext.
68623         * lib/lock.c: Update from GNU gettext.
68624
68625 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68628         obsolescent AC_TRY_RUN.  Include the default includes files, for
68629         'exit'.
68630
68631 2005-07-24  Bruno Haible  <bruno@clisp.org>
68632
68633         * modules/visibility: New file.
68634         * MODULES.html.sh (Misc): Add visibility.
68635
68636 2005-07-24  Bruno Haible  <bruno@clisp.org>
68637
68638         * m4/visibility.m4: New file.
68639
68640 2005-07-24  Bruno Haible  <bruno@clisp.org>
68641
68642         * doc/visibility.texi: New file.
68643
68644 2005-07-22  Bruno Haible  <bruno@clisp.org>
68645
68646         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68647         $(ALLOCA_H), redundant through BUILT_SOURCES.
68648         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68649         redundant through BUILT_SOURCES.
68650         * modules/byteswap (Makefile.am): Remove explicit dependency on
68651         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68652         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68653         $(FNMATCH_H), redundant through BUILT_SOURCES.
68654         * modules/getopt (Makefile.am): Remove explicit dependency on
68655         $(GETOPT_H), redundant through BUILT_SOURCES.
68656         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68657         redundant through BUILT_SOURCES.
68658         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68659         redundant through BUILT_SOURCES.
68660         * modules/stdbool (Makefile.am): Remove explicit dependency on
68661         $(STDBOOL_H), redundant through BUILT_SOURCES.
68662         * modules/stdint (Makefile.am): Remove explicit dependency on
68663         $(STDINT_H), redundant through BUILT_SOURCES.
68664         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68665         Remove explicit dependency on $(SYSEXITS_H).
68666         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68667
68668 2005-07-18  Simon Josefsson  <jas@extundo.com>
68669
68670         * lib/check-version.c (check_version): Accept identical versions too.
68671
68672 2005-07-18  Bruno Haible  <bruno@clisp.org>
68673
68674         * modules/lock: New file.
68675         * MODULES.html.sh (Multithreading): New section.
68676
68677 2005-07-18  Bruno Haible  <bruno@clisp.org>
68678
68679         * m4/lock.m4: New file, from GNU gettext.
68680
68681 2005-07-18  Bruno Haible  <bruno@clisp.org>
68682
68683         * lib/lock.h: New file, from GNU gettext.
68684         * lib/lock.c: New file, from GNU gettext.
68685
68686 2005-07-18  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/lock.h (gl_once_t): New type.
68689         (gl_once_define, gl_once): New macros.
68690         * lib/lock.c (fresh_once): New variable.
68691         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68692         functions.
68693
68694 2005-07-16  Simon Josefsson  <jas@extundo.com>
68695
68696         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68697         workaround, suggested by Bruno.
68698
68699 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         * modules/xalloc (Depends-on): Add xalloc-die.
68702         * modules/xvasprintf (Depends-on): Add xalloc-die.
68703
68704 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68707         with a minor change.
68708
68709 2005-07-15  Bruno Haible  <bruno@clisp.org>
68710
68711         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68712         When using lib/poll.c, define poll as rpl_poll.
68713
68714 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         * modules/argp (Depends-on): Remove unlocked-io.
68717
68718 2005-07-14  Derek Price  <derek@ximbiot.com>
68719
68720         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68721         for glob symlink bug.
68722
68723 2005-07-14  Bruno Haible  <bruno@clisp.org>
68724
68725         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68726         Instead, test for *_unlocked function declarations directly.
68727
68728 2005-07-11  Simon Josefsson  <jas@extundo.com>
68729
68730         * modules/size_max: New file.
68731
68732         * modules/xsize: Depend on size_max module for size_max.m4.
68733
68734 2005-07-11  Simon Josefsson  <jas@extundo.com>
68735
68736         * lib/size_max.h: New file.
68737
68738 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68741         copyright symbol and the year.
68742         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68743         (version_etc_va): Use parameterized copyright notice.
68744         Reword to conform to the current GNU coding standards.
68745
68746 2005-07-11  Karl Berry  <karl@gnu.org>
68747
68748         * doc/gnulib.texi (Quoting): new node.
68749         (Initial import): more info, from Patrice.
68750
68751 2005-07-11  Bruno Haible  <bruno@clisp.org>
68752
68753         * gnulib-tool (func_usage): Document option --avoid.
68754         (Command line options): Handle --avoid.
68755         (func_acceptable): New function.
68756         (func_modules_transitive_closure): Use it.
68757
68758 2005-07-11  Bruno Haible  <bruno@clisp.org>
68759
68760         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68761         Reported by Jim Meyering.
68762
68763 2005-07-10  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68766         Needed when size_t is smaller than 'unsigned int'.
68767         Reported by Paul Eggert.
68768
68769 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68770
68771         * modules/argp (Depends-on): Add unlocked-io
68772
68773 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68774
68775         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68776         block of defines.
68777
68778 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68781         fix now.
68782
68783 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68784         and Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68787         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68788
68789 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * modules/regex (Files): Add lib/regex_internal.c,
68792         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68793         (Depends-on): Add extensions.
68794         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68795
68796 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68799         pathconf.
68800         * m4/same.m4 (gl_SAME): Likewise.
68801         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68802
68803         * m4/regex.m4: Adjust to new libc regex implementation.
68804         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68805         all the .c and .h parts of (the new) regex.
68806         Quote the m4 stuff better.
68807         Check for RE_ICASE bug of old gnulib.
68808         Check for REG_STARTEND of recent libc.
68809         Rename local variables from jm_* to gl_*.
68810         Quote operand of "test -f".
68811         Say "recent enough" version of libc, not "version 2".
68812         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68813         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68814         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68815         Remove check for btowc, isascii.
68816         Require AM_LANGINFO_CODESET.
68817
68818 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/regex.c, regex.h: Sync from libc.
68821         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68822         * lib/regexec.c:
68823         New files, synced from libc, except that regex_internal.h
68824         currently has a small porting fix.
68825
68826 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68829         regex_internal.c, regexec.c.
68830         Add regex_internal.h too, but as a comment, since the libc version
68831         is currently broken in gnulib mode.
68832
68833 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         Support programs like Emacs that use gnulib but not gettext.
68836         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68837         * modules/gettext-h: New file.
68838         * modules/gettext (Files): Remove lib/gettext.h.
68839         (Depends-on): Add gettext-h.
68840         (Makefile.am): Remove lib_SOURCES.
68841         * modules/argmatch, modules/c-stack, modules/closeout:
68842         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68843         * modules/execute, modules/file-type, modules/getaddrinfo:
68844         * modules/getopt, modules/human, modules/javacomp:
68845         * modules/javaexec, modules/mkdir-p, modules/obstack:
68846         * modules/openat, modules/pagealign_alloc, modules/pipe:
68847         * modules/quotearg, modules/regex, modules/rpmatch:
68848         * modules/unicodeio, modules/userspec, modules/version-etc:
68849         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68850         * modules/xsetenv:
68851         Depend on gettext-h, not gettext.
68852
68853 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * gnulib-tool (func_import): Add support for 'public domain' license.
68856         * modules/alloca, modules/atexit, modules/memmove:
68857         Now public domain, not GPL.
68858         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68859         * modules/realloc, modules/strerror, modules/strtod:
68860         Now LGPL, not GPL.
68861
68862 2005-07-05  Bruno Haible  <bruno@clisp.org>
68863
68864         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68865         autoconf CVS. Needed for mingw.
68866
68867 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         Remove the dependency of the strftime module on the tzset module.
68870         * modules/strftime (Depends-on): Remove dependency on tzset.
68871
68872 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         Remove the dependency of the strftime module on the tzset module.
68875         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68876         gl_FUNC_TZSET_CLOBBER.
68877
68878 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         Remove the dependency of the strftime module on the tzset module.
68881         * lib/strftime.c (my_strftime)
68882         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68883         Copy the input structure, to work around some of the bug with
68884         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68885         Solaris releases, you should also use the tzset module, but we won't
68886         require it as a dependency any more since we don't want LGPLed code
68887         to depend on GPLed code.
68888
68889 2005-07-02  Jim Meyering  <jim@meyering.net>
68890
68891         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68892         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68893         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68894         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68895
68896 2005-07-02  Jim Meyering  <jim@meyering.net>
68897
68898         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68899
68900 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68903         declares only 'struct timespec;' (!).
68904
68905 2005-07-01  Jim Meyering  <jim@meyering.net>
68906
68907         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68908         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68909         * lib/save-cwd.c, tempname.c:
68910         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68911         and don't include <sys/file.h>).
68912
68913 2005-06-29  Jim Meyering  <jim@meyering.net>
68914
68915         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68916         type name.  Use the variable name instead.
68917         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68918         Likewise.
68919
68920 2005-06-28  Simon Josefsson  <jas@extundo.com>
68921
68922         * modules/check-version (Files): Add check-version.m4.
68923
68924 2005-06-28  Simon Josefsson  <jas@extundo.com>
68925
68926         * m4/check-version.m4: New file, suggested by Jim Meyering
68927         <jim@meyering.net>.
68928
68929 2005-06-28  Simon Josefsson  <jas@extundo.com>
68930
68931         * lib/check-version.h, lib/check-version.c: New files.
68932
68933 2005-06-28  Simon Josefsson  <jas@extundo.com>
68934
68935         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68936         collision with global variable.  Better indentation.  Don't
68937         increment buffer pointer beyond buffer end.  Based on comments
68938         from Paul Eggert <eggert@cs.ucla.edu>.
68939
68940         * lib/base64.h: Indent.
68941
68942 2005-06-28  Simon Josefsson  <jas@extundo.com>
68943
68944         * doc/gnulib.texi (Library version handling): New section.
68945
68946 2005-06-28  Jim Meyering  <jim@meyering.net>
68947
68948         * check-module (find_included_lib_files): Hard-code another
68949         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68950         but modules/fts-lgpl (correctly) does not list those files.
68951
68952         * modules/canonicalize (Files): Add lib/pathmax.h.
68953
68954 2005-06-25  Simon Josefsson  <jas@extundo.com>
68955
68956         * modules/check-version: New file.
68957
68958 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68961         initializer of struct addrinfo, as an indication that we don't
68962         care how many members the structure has.
68963
68964 2005-06-24  Derek Price  <derek@ximbiot.com>
68965         and Bruno Haible  <bruno@clisp.org>
68966
68967         Remove stat module & update lstat.
68968         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68969         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68970         * m4/stat.m4: Remove this file.
68971
68972 2005-06-24  Derek Price  <derek@ximbiot.com>
68973         and Bruno Haible  <bruno@clisp.org>
68974
68975         Remove stat module & update lstat.
68976         * lib/stat.c: Remove this file...
68977         (slash_aware_lstat): ...moving this content and its support...
68978         * lib/lstat.c (rpl_lstat): ...into here.
68979         * lib/lstat.h: New file.
68980
68981 2005-06-24  Derek Price  <derek@ximbiot.com>
68982         and Bruno Haible  <bruno@clisp.org>
68983
68984         Remove stat module & update lstat.
68985         * config/srclist.txt (libc sources): Remove stat.
68986
68987 2005-06-24  Derek Price  <derek@ximbiot.com>
68988         and Bruno Haible  <bruno@clisp.org>
68989
68990         Remove stat module & update lstat.
68991         * MODULES.html.sh (stat): Remove.
68992         * MODULES.html: Regenerated.
68993         * modules/lstat (Description): Correct function name.
68994         (Files): Add "lstat.h".
68995         (Depends-on): Remove stat, add xalloc, stat-macros.
68996         * modules/stat: Remove this file.
68997         (Include): Add "lstat.h", remove <sys/stat.h>.
68998
68999 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69002         (ranged_convert): Don't save conversion in a temporary struct.
69003         This causes a warning with GCC 4.0.0, and anyway in the typical
69004         case it's not worth the extra 100 bytes or so of code.
69005         (ranged_convert, __mktime_internal): When calling a function via a
69006         pointer P, use P () rather than (*P) (), as we now assume C89 or
69007         better.
69008
69009 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69012         "who -r" failed to give output.  Problem reported by Tim Waugh.
69013
69014         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69015         (xcalloc): Use it to avoid needless tests.
69016         Problem reported by Jim Meyering.
69017
69018 2005-06-20  Derek Price  <derek@ximbiot.com>
69019
69020         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69021         unnecessary for Autoconfs > 2.59c.
69022
69023 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69024
69025         * lib/argp.h (__option_is_short): Check upper limit of
69026         __key. Isprint() requires its argument to have the value
69027         of an unsigned char or EOF.
69028
69029 2005-06-16  Jim Meyering  <jim@meyering.net>
69030
69031         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69032         when either N or S is zero.
69033
69034 2005-06-16  Derek Price  <derek@ximbiot.com>
69035
69036         * m4/bison.m4: Declare YACC & YFLAGS precious.
69037
69038 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69041         multibyte string or pattern, fall back on unibyte matching.
69042         Problem reported by James Youngman.
69043
69044 2005-06-08  Bruno Haible  <bruno@clisp.org>
69045
69046         * modules/csharpcomp: New file.
69047         * MODULES.html.sh (C#): Add csharpcomp.
69048
69049 2005-06-08  Bruno Haible  <bruno@clisp.org>
69050
69051         * m4/csharpcomp.m4: New file, from GNU gettext.
69052
69053 2005-06-08  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/csharpcomp.h: New file, from GNU gettext.
69056         * lib/csharpcomp.c: New file, from GNU gettext.
69057         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69058
69059 2005-06-08  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69062         warning on mingw.
69063
69064 2005-06-07  Derek Price  <derek@ximbiot.com>
69065
69066         Sync from CVS.
69067         * lib/glob_.h: Indent nested #ifdef.
69068
69069 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         Sync from coreutils.
69072         Use "file name" when talking about file names, instead of "filename"
69073         or "path", as per the GNU coding standards.
69074         * lib/mkdir-p.c: Renamed from makepath.c.
69075         (make_dir_parents): Renamed from make_path.  All callers changed.
69076         * lib/mkdir-p.h: Likewise.  All includers changed.
69077         * lib/filenamecat.c: Renamed from path-concat.c.
69078         (file_name_concat): Renamed from path_concat.  All callers changed.
69079         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69080         * lib/filenamecat.h: Likewise.  All includers changed.
69081         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69082         in comments or local variable names.
69083         * lib/basename.c: Likewise.
69084         * lib/canonicalize.c, canonicalize.h: Likewise.
69085         * lib/dirname.c, dirname.h: Likewise.
69086         * lib/euidaccess.c: Likewise.
69087         * lib/exclude.c: Likewise
69088         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69089         * lib/fsusage.c, fsuage.h: Likewise.
69090         * lib/fts.c, fts_.h: Likewise.
69091         * lib/getcwd.c: Likewise.
69092         * lib/getloadavg.c: Likewise.
69093         * lib/mkstemp.c: Likewise.
69094         * lib/mountlist.c, mountlist.h: Likewise.
69095         * lib/openat.c, openat.h: Likewise.
69096         * lib/readlink-stub.c: Likewise.
69097         * lib/readutmp.c, readutmp.h: Likewise.
69098         * lib/rename.c: Likewise.
69099         * lib/rmdir.c: Likewise.
69100         * lib/same.c: Likewise.
69101         * lib/savedir.c: Likewise.
69102         * lib/stripslash.c: Likewise.
69103         * lib/tempname.c: Likewise.
69104         * lib/xreadlink.c: Likewise.
69105         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69106         All uses changed.
69107         * lib/exclude.h: Likewise.
69108
69109         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69110         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69111         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69112         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69113         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69114         files have been getting away with it for years (MORE/BSD 4.3
69115         is extinct now).
69116         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69117         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69118
69119         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69120         Define to 256, not 255, as per modern POSIX.
69121
69122 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         Sync from coreutils.
69125         Use "file name" when talking about file names, instead of "filename"
69126         or "path", as per the GNU coding standards.
69127         * MODULES.html.sh: mkdir-p renamed from makepath.
69128         filenamecat renamed from path-concat.
69129         * modules/filenamecat: Renamed from modules/path-concat.
69130         (Files): filenamecat.h and filenamecat.c renamed from
69131         path-concat.h and path-concat.c.
69132         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69133         (Include): filenamecat.h, not path-concat.h.
69134         * modules/mkdir-p: Renamed from modules/makepath.
69135         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69136         makepath.c.
69137         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69138         (Include): mkdir-p.h, not makepath.h.
69139
69140 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         Sync from coreutils.
69143         * m4/mkdir-p.m4: Renamed from makepath.m4.
69144         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69145         Rename files from makepath.c to mkdir-p.c, and from
69146         makepath.h to mkdir-p.h.
69147         * m4/filenamecat.m4: Renamed from path-concat.m4.
69148         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69149         Rename files from path-concat.c to filenamecat.c,
69150         and from path-concat.h to filenamecat.h.
69151         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69152         "file name" in local variables or comments.
69153         * m4/rename.m4: Likewise.
69154
69155 2005-06-01  Bruno Haible  <bruno@clisp.org>
69156
69157         * modules/csharpexec: New file.
69158         * MODULES.html.sh (C#): New section.
69159
69160 2005-06-01  Bruno Haible  <bruno@clisp.org>
69161
69162         * m4/csharp.m4: New file, from GNU gettext.
69163         * m4/csharpexec.m4: New file, from GNU gettext.
69164
69165 2005-06-01  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/csharpexec.h: New file, from GNU gettext.
69168         * lib/csharpexec.c: New file, from GNU gettext.
69169         * lib/csharpexec.sh.in: New file, from GNU gettext.
69170
69171 2005-05-31  Derek Price  <derek@ximbiot.com>
69172             Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         Sync from cvs.
69175         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69176
69177 2005-05-31  Derek Price  <derek@ximbiot.com>
69178             Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         Sync from cvs.
69181         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69182
69183 2005-05-29  Derek Price  <derek@ximbiot.com>
69184
69185         * config/srclist.txt (glob_.h, glob.c): Add these files.
69186
69187 2005-05-29  Derek Price  <derek@ximbiot.com>
69188
69189         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69190         * modules/glob: New file.
69191         * modules/getlogin_r: Add link to POSIX spec in description.
69192
69193 2005-05-29  Derek Price  <derek@ximbiot.com>
69194             Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * m4/glob.m4: New file.
69197
69198 2005-05-29  Derek Price  <derek@ximbiot.com>
69199             Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * lib/glob_.h, lib/glob.c: New files.
69202
69203 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69206         * modules/fts-lgpl (Depends-on): Remove gettext.
69207
69208 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69211         and don't require gt_INTTYPES_PRI.
69212
69213 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69216
69217         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69218         the configuration hassle isn't worth it.
69219         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69220         (LONGEST_MODIFIER, PRIuMAX): Remove.
69221
69222 2005-05-27  Bruno Haible  <bruno@clisp.org>
69223
69224         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69225
69226 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69229         _POSIX_PTHREAD_SEMANTICS for Solaris.
69230
69231 2005-05-25  Derek Price  <derek@ximbiot.com>
69232
69233         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69234
69235 2005-05-25  Derek Price  <derek@ximbiot.com>
69236             Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69239         * lib/getlogin_r.c, getlogin_r.h: New files.
69240
69241 2005-05-25  Bruno Haible  <bruno@clisp.org>
69242             Derek Price  <derek@ximbiot.com>
69243
69244         * lib/getlogin_r.h: Simplify API documentation.
69245
69246 2005-05-23  Derek Price  <derek@ximbiot.com>
69247
69248         * modules/minmax (Files): Add m4/minmax.m4.
69249         (configure.ac): Add gl_MINMAX.
69250
69251 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69254         so that unistd-safer.h (GPL'ed code) need not be included.
69255
69256 2005-05-22  Bruno Haible  <bruno@clisp.org>
69257
69258         * m4/minmax.m4: New file.
69259         Based on a patch by Derek Price <derek@ximbiot.com>.
69260
69261 2005-05-22  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69264         (INT64_MIN): Fix definition.
69265         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69266
69267         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69268         NEED_SIGNED_INT_TYPES.
69269
69270         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69271         HAVE_SYSTEM_INTTYPES.
69272
69273 2005-05-22  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69276         Also include <sys/param.h> if it defines MIN, MAX.
69277         Based on a patch by Derek Price <derek@ximbiot.com>.
69278
69279 2005-05-21  Jim Meyering  <jim@meyering.net>
69280
69281         * modules/fts (Files): Add m4/inttypes-pri.m4.
69282         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69283
69284 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         New fts module.
69287         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69288         (setup_dir, free_dir): New functions.
69289         (enter_dir, leave_dir): Define trivial
69290         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69291         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69292         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69293         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69294         Move to fts-cycle.c.
69295         (fts_open): Use setup_dir.
69296         (fts_close): Use free_dir.
69297         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69298         This adds a label and some gotos, but the alternatives were messier.
69299         Check for memory allocation failure when entering a dir.
69300         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69301         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69302         (FTS): New member fts_cycle, that is a union that contains the
69303         old active_dir_ht and cycle_state.  All uses changed to mention
69304         fts_cycle.ht and fts_cycle.state.
69305         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69306         fts.c, with the following changes:
69307         (setup_dir, free_dir): New functions.
69308         (enter_dir): Now returns bool.  Return true if successful, false
69309         if memory exhausted.  All callers changed.
69310         Do not bother partly cleaning up on
69311         memory allocation failure; that is free_dir's job.
69312         However, free ad if hash_insert fails, to avoid memory leak.
69313         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69314         fts->fts_options to see which union member to use.
69315
69316 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69319         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69320
69321 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69324
69325 2005-05-20  Jim Meyering  <jim@meyering.net>
69326
69327         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69328         Now a macro, to pacify GCC.
69329
69330 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69331
69332         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69333         of -1.
69334
69335 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69336
69337         * lib/chown.c (rpl_chown): Return -1 on failure.
69338
69339 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69342         Don't check for stddef.h.
69343         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69344         don't use its results.
69345         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69346         since we include them unconditionally.  Don't require
69347         AM_STDBOOL_H, since stdbool is a prerequisite.
69348         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69349         since we assume C89 or better.
69350         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69351         as we don't use their results.
69352         Don't check for fchdir, memmove, memset, strrchr, as we use
69353         them unconditionally.
69354         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69355         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69356
69357 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69360         Include <stddef.h> unconditionally, since we assume C89 now.
69361         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69362         * lib/fts.c: Include fts_.h first, to check interface.
69363         Do not include intprops.h; no longer needed.
69364         Include cycle-check.h and hash.h, since fts_.h no longer does.
69365         Remove unnecessary casts of closedir to void.
69366         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69367         decide whether to decrement nlinks.
69368         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69369         (FTS): Use struct hash_table * instead of Hash_table, so that
69370         we no longer need to include hash.h here.
69371
69372 2005-05-18  Jim Meyering  <jim@meyering.net>
69373
69374         * modules/dirfd (License): Change to LGPL.  Most of the code
69375         is already in the public domain.
69376
69377 2005-05-18  Jim Meyering  <jim@meyering.net>
69378
69379         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69380         Reported by Yoann Vandoorselaere.
69381
69382 2005-05-17  Jim Meyering  <jim@meyering.net>
69383
69384         * m4/fts.m4: New file, from coreutils.
69385
69386 2005-05-17  Jim Meyering  <jim@meyering.net>
69387
69388         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69389
69390 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         Sync from coreutils.
69393         * m4/unlinkdir.m4: New file.
69394
69395 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         Sync from coreutils.
69398         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69399         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69400         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69401         White space changes only.
69402         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69403         special.
69404         * lib/yesno.c: Include getline.h, not ctype.h.
69405         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69406         Use getline to remove arbitrary restriction on response length.
69407
69408 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * config/srclist-update: Spell out "Street" in FSF postal
69411         mail address; this is the style the FSF seems to prefer.
69412
69413         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69414         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69415         this updates FSF postal mail address.
69416
69417         Sync from coreutils.
69418         * modules/unlinkdir: New file.
69419         * modules/yesno (Depends-on): Add getline.
69420         * MODULES.html.sh (File system functions): Add unlinkdir.
69421
69422 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69425         lib/strsep.h:
69426         Change the initial comment to refer to GPL, not LGPL.
69427         gnulib-tool will change it to LGPL as needed.
69428
69429         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69430         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69431         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69432         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69433         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69434         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69435         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69436         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69437         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69438         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69439         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69440         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69441         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69442         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69443         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69444         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69445         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69446         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69447         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69448         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69449         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69450         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69451         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69452         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69453         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69454         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69455         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69456         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69457         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69458         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69459         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69460         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69461         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69462         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69463         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69464         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69465         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69466         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69467         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69468         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69469         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69470         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69471         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69472         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69473         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69474         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69475         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69476         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69477         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69478         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69479         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69480         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69481         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69482         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69483         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69484         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69485         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69486         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69487         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69488         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69489         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69490         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69491         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69492         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69493         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69494         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69495         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69496         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69497         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69498         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69499         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69500         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69501         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69502         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69503         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69504         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69505         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69506         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69507         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69508         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69509         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69510         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69511         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69512         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69513         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69514         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69515         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69516         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69517         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69518         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69519         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69520         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69521         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69522         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69523         lib/yesno.c, lib/yesno.h:
69524         Update FSF postal mail address.
69525
69526 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69529         tests/test-memmem.c, tests/test-stpncpy.c:
69530         Update FSF postal mail address.
69531
69532 2005-05-13  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69535         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69536         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69537         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69538         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69539         Add support for 64-bit integers in the MSVC compiler.
69540
69541 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69542
69543         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69544
69545 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69546
69547         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69548
69549 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * doc/getdate.texi (General date syntax): Don't say that date
69552         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69553         Problem reported by Nic Ferrier.
69554
69555 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69556
69557         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69558         specified in ai_socktype. Fix invalid ai_protocol
69559         check. ai_protocol is usually set to 0 or depending on
69560         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69561         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69562         ai_socktype / ai_protocol in the returned addrinfo structure.
69563
69564 2005-05-10  Simon Josefsson  <jas@extundo.com>
69565
69566         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69567         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69568
69569 2005-05-10  Karl Berry  <karl@gnu.org>
69570
69571         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69572         (from http://www.gnu.org/licenses).
69573         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69574         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69575         fdl.texi suffices.
69576
69577 2005-05-10  Karl Berry  <karl@gnu.org>
69578
69579         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69580         (COPYING.DOC): remove.
69581
69582         * config/srclist-update: new FSF address.
69583
69584 2005-05-10  Derek Price  <derek@ximbiot.com>
69585
69586         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69587         possible.
69588
69589 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69590             Bruno Haible  <bruno@clisp.org>
69591
69592         * modules/inet_ntop: New file.
69593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69594         inet_ntop.
69595
69596 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69597             Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/inet_ntop.m4: New file.
69600
69601 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69602             Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/inet_ntop.h: New file.
69605         * lib/inet_ntop.c: New file, from glibc with modifications.
69606
69607 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * modules/time_r (License): Change to LGPL.
69610         * modules/extensions (License): Change to LGPL.  Actually,
69611         the license is more permissive than that, but currently gnulib-tool
69612         doesn't know how to handle more-permissive licenses.
69613
69614         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69615         Problem reported by Dave Love.
69616
69617 2005-05-08  Jim Meyering  <jim@meyering.net>
69618
69619         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69620         blank.
69621
69622 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * modules/argmatch (Depends-on): Add stdbool.
69625         * modules/backupfile (Depends-on): Likewise.
69626         * modules/chdir-long (Depends-on): Likewise.
69627         * modules/closeout (Depends-on): Likewise.
69628         * modules/cycle-check (Depends-on): Likewise.
69629         * modules/dirname (Depends-on): Likewise.
69630         * modules/fnmatch (Depends-on): Likewise.
69631         * modules/fsusage (Depends-on): Likewise.
69632         * modules/fwriteerror (Depends-on): Likewise.
69633         * modules/getcwd (Depends-on): Likewise.
69634         * modules/getloadavg (Depends-on): Likewise.
69635         * modules/hard-locale (Depends-on): Likewise.
69636         * modules/makepath (Depends-on): Likewise.
69637         * modules/mountlist (Depends-on): Likewise.
69638         * modules/nanosleep (Depends-on): Likewise.
69639         * modules/posixtm (Depends-on): Likewise.
69640         * modules/quotearg (Depends-on): Likewise.
69641         * modules/readtokens (Depends-on): Likewise.
69642         * modules/readtokens0 (Depends-on): Likewise.
69643         * modules/readutmp (Depends-on): Likewise.
69644         * modules/save-cwd (Depends-on): Likewise.
69645         * modules/strftime (Depends-on): Likewise.
69646         * modules/userspec (Depends-on): Likewise.
69647         * modules/utimecmp (Depends-on): Likewise.
69648         * modules/xgetcwd (Depends-on): Likewise.
69649         * modules/xnanosleep (Depends-on): Likewise.
69650         * modules/xstrtod (Depends-on): Likewise.
69651         * modules/yesno (Depends-on): Likewise.
69652
69653 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69656         needless checks.
69657
69658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         Merge from coreutils.  Among other things,
69661         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69662         * lib/fd-safer.c: New file.
69663         * lib/fcntl-safer.h, open-safer.c: Remove.
69664         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69665         * lib/dup-safer.c: Include unistd-safer.h first.
69666         Don't include errno.h.
69667         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69668         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69669         * lib/file-type.c: Rely on file-type.h change.
69670         * lib/getloadavg.c: Include unistd-safer.h.
69671         (getloadavg): Use safer open.
69672         * lib/getusershell.c: Include "stdio-safer.h".
69673         (getusershell): Use safer fopen.
69674         * lib/long-options.c (long_options): Use NULL rather than 0.
69675         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69676         'free'.
69677         * lib/modechange.c: Likewise.
69678         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69679         (MODE_DONE): New constant.
69680         (struct mode_change): Remove 'next' member.
69681         (make_node_op_equals): New function; like the old one of the
69682         same name, except it allocates an array.
69683         (mode_compile, mode_create_from_ref): Use it.
69684         (mode_compile): Allocate result as an array, not a linked list.
69685         Parse octal string ourself, so that we catch mistakes like "+0".
69686         (mode_adjust): Arg is an array, not a linked list.
69687         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69688         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69689         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69690         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69691         Remove.  This is now stat-macros.h's job.
69692         (talloc): Remove.  All callers replaced by xalloc, so that
69693         our invokers don't have to worry about reporting memory failures.
69694         (make_node_op_equals): Remove.
69695         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69696         New constants.
69697         (struct mode_change): Moved here from modechange.h.
69698         (mode_append_entry): Remove.
69699         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69700         apps to have incorrect behavior.  Use simpler algorithm for head
69701         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69702         Detect more invalid usages rather than having somewhat-random behavior.
69703         Don't insert an "a=" action, as that leads to incorrect behavior.
69704         (mode_compile, mode_create_from_ref): Return NULL on error instead
69705         of an enum, since now there's only one way to have an error.  All
69706         callers changed.
69707         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69708         at the correct time.  Simplify calculation of "+u" and its ilk.
69709         Don't mishandle "+X".
69710         (mode_free): Remove "register" and localize decls.
69711         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69712         (struct mode_change): Move to modechange.c; callers don't
69713         need to see this stuff.
69714         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69715         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69716         (mode_change, mode_adjust): Reflect the new signatures noted above.
69717         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69718         that might redefine system include files.
69719         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69720         (my_usleep): Use NULL rather than (void *) 0.
69721         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69722         Use siginterrupt to specify that system calls should be interrupted.
69723         (rpl_nanosleep): Move initialization of suspended closer to call of
69724         my_usleep.
69725         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69726         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69727         (desirable_utmp_entry): New function.
69728         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69729         using x2nrealloc, to simplify logic.
69730         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69731         size calculation.  Do not assume utmp file is a regular file.
69732         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69733         (READ_UTMP_CHECK_PIDS): New constant.
69734         * lib/save-cwd.c: Include unistd-safer.h.
69735         (save_cwd): Use fd_safer.
69736         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69737         [!_LIBC] Include "stat-macros.h" instead.
69738         * lib/unistd-safer.h (fd_safer): New decl.
69739
69740 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * modules/getloadavg (Depends-on): Add unistd-safer.
69743         * modules/getusershell (Depends-on): Add stdio-safer.
69744         * modules/lstat (Depends-on): Remove xalloc.
69745         * modules/mkstemp (Depends-on): Add stat-macros.
69746         * modules/modechange (Depends-on): Remove xstrtol.
69747         Add stat-macros, xalloc.
69748         * modules/save-cwd (Depends-on): Add unistd-safer.
69749         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69750         * modules/unistd-safer (Files): Add lib/fd-safer.c
69751         (Makefile.am): Remove lib_SOURCES.
69752
69753         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69754         Remove fcntl-safer; unistd-safer supersedes it.
69755
69756 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69759         AC_HEADER_STAT.
69760         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69761         (gl_PREREQ_CHOWN): Remove.
69762         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69763         it.  Don't require AC_HEADER_STAT.
69764         (gl_PREREQ_LSTAT): Remove.
69765         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69766         Don't require AC_HEADER_STAT.
69767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69768         (gl_PREREQ_RMDIR): Remove.
69769         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69770         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69771         the stat-macros module a prerequisite.
69772         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69773         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69774         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69775         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69776         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69777         variable names.
69778         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69779         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69780         variable prefixes.
69781         * m4/fcntl-safer.m4: Remove.
69782         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69783         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69784         Invoke gl_PREREQ_FD_SAFER.
69785         (gl_PREREQ_FD_SAFER): New macro.
69786         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69787         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69788         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69789         Remove duplicate call to AC_LIBOBJ(readutmp).
69790         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69791
69792         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69793         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69794
69795 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * MODULES.html.sh (Misc): Add byteswap.
69798
69799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69800
69801         * modules/getcwd (Depends-on): Add extensions.
69802         * modules/openat (Depends-on): Likewise.
69803
69804 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69805
69806         * modules/byteswap: New file.
69807
69808 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69809
69810         * m4/byteswap.m4: New file.
69811
69812 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69813
69814         * lib/byteswap_.h: New file.
69815
69816 2005-04-25  Karl Berry  <karl@gnu.org>
69817
69818         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69819
69820 2005-04-25  Albert Chin  <china@thewrittenword.com>
69821
69822         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69823         Toolkit C bug.
69824
69825 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69826
69827         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69828         (func_ln_if_changed): Remove forcibly for no error message
69829         in case file does not exist.
69830
69831 2005-04-19  Simon Josefsson  <jas@extundo.com>
69832
69833         * gnulib-tool (Options): Make --symlink mean --symbolic.
69834
69835 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69836
69837         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69838
69839 2005-04-16  Simon Josefsson  <jas@extundo.com>
69840
69841         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69842
69843 2005-04-15  Simon Josefsson  <jas@extundo.com>
69844
69845         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69846
69847 2005-04-15  Simon Josefsson  <jas@extundo.com>
69848
69849         * gnulib-tool: Rename --symlink to --symbolic.
69850
69851 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69852
69853         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69854         symbolic links to files instead of copying/moving.  Add --aux-dir,
69855         specifying directory relative --dir where auxiliary build tools
69856         are placed.
69857
69858 2005-04-14  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/allocsa (License): Change to LGPL.
69861         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69862
69863 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69866         that "UTC +1 second" continues to work.  Problem reported
69867         by Dmitry V. Levin.
69868         (relunit_snumber): New rule.
69869         (relunit): Use it.
69870
69871 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * lib/getdate.y (universal_time_zone_table): New constant.
69874         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69875         universal_time_zone_table.
69876         (lookup_zone): Prefer universal_time_zone_table to
69877         local_time_zone_table, so that "GMT" time stamps are allowed in
69878         London during the summer.  Problem reported by Ian Abbott.
69879
69880 2005-04-12  Jim Meyering  <jim@meyering.net>
69881
69882         * lib/human.c (humblock): Set *options even when returning due to
69883         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69884         warning from gcc-4.
69885
69886 2005-04-09  Jim Meyering  <jim@meyering.net>
69887
69888         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69889         -Wuninitialized: initialize tm0.tm_year.
69890
69891 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69894         count, since there's no maximum.  All uses changed.
69895         Add member dsts_seen.
69896         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69897         not being INT_MAX.
69898         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69899         Use pc_rels_seen to decide whther a date is absolute.
69900
69901         * lib/getdate.y (number): Don't overwrite year.
69902         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69903         check.
69904
69905 2005-04-02  Simon Josefsson  <jas@extundo.com>
69906
69907         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69908         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69909
69910 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69911
69912         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69913         where no absolute path name can be longer than PATH_MAX.
69914
69915 2005-03-27  Jim Meyering  <jim@meyering.net>
69916
69917         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69918
69919 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69922         "one's complement" -> "ones' complement" in comment, as per Knuth.
69923         "value of type" -> "type or expression" in comment.
69924         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69925
69926 2005-03-26  Jim Meyering  <jim@meyering.net>
69927
69928         Comment nits.
69929         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69930         Correct typos: s/or/of/.
69931
69932 2005-03-26  Jim Meyering  <jim@meyering.net>
69933
69934         * modules/check-include-files: Move to ../ and rename to...
69935         * check-module: ...this.
69936
69937 2005-03-25  Jim Meyering  <jim@meyering.net>
69938
69939         * modules/xvasprintf (Files): Add xalloc.h.
69940
69941 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * modules/gettext (Files): config/config.rpath ->
69944         build-aux/config.rpath
69945         * modules/iconv (Files): Likewise.
69946         Problem reported by Oskar Liljeblad.
69947
69948 2005-03-23  Jim Meyering  <jim@meyering.net>
69949
69950         * modules/check-include-files: New script to check for
69951         missing dependencies, multiple includes, etc.
69952
69953         * modules/c-strtold (Depends-on): Add xalloc.
69954         * modules/c-strtod (Depends-on): Add xalloc.
69955         * modules/hash (Depends-on): Add xalloc.
69956         (Files): Remove lib/xalloc.h.
69957
69958         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69959         * modules/userspec (Files): Add lib/inttostr.h.
69960
69961 2005-03-23  Jim Meyering  <jim@meyering.net>
69962
69963         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69964
69965 2005-03-22  Jim Meyering  <jim@meyering.net>
69966
69967         * modules/stat-macros: New module.
69968         * modules/canonicalize, modules/euidaccess, modules/file-type,
69969         * modules/filemode, modules/lchown, modules/makepath,
69970         * modules/rmdir, modules/stat: Depend on new stat-macros module
69971         rather than listing lib/stat-macros.h manually.
69972         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69973
69974 2005-03-22  Jim Meyering  <jim@meyering.net>
69975
69976         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69977
69978 2005-03-22  Bruno Haible  <bruno@clisp.org>
69979
69980         * config/srclist.txt: Replace target directory 'config' with
69981         'build-aux'.
69982         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69983         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69984         ../build-aux/.
69985
69986 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * modules/chdir-long (Depends-on): Add mempcpy.
69989
69990         * modules/acl, modules/backupfile, modules/c-strtod,
69991         modules/c-strtold, modules/canon-host, modules/canonicalize,
69992         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69993         modules/exclude, modules/exitfail, modules/file-type,
69994         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69995         modules/getdate, modules/getline, modules/getpagesize,
69996         modules/getpass, modules/getugroups, modules/group-member,
69997         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69998         modules/inttostr, modules/long-options, modules/makepath,
69999         modules/md5, modules/memcasecmp, modules/memcoll,
70000         modules/modechange, modules/mountlist, modules/path-concat,
70001         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70002         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70003         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70004         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70005         modules/strftime, modules/strndup, modules/strverscmp,
70006         modules/timespec, modules/unlocked-io, modules/userspec,
70007         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70008         modules/yesno:
70009         Remove lib_SOURCES line from Makefile.am section, as this is now
70010         done automatically by the corresponding Autoconf macro.
70011
70012 2005-03-21  Jim Meyering  <jim@meyering.net>
70013
70014         Changes imported from coreutils.
70015
70016         * lib/cycle-check.c: Don't include xalloc.h.
70017
70018         * lib/path-concat.c: Don't include assert.h.
70019         (path_concat): Remove assertion that would have triggered
70020         for ABASE starting with more than one slash.
70021         Reported by Andreas Schwab.
70022
70023         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70024         properly when ABASE is an absolute file name.
70025         Correct the description of this function.
70026         Include <assert.h>.
70027         Add an assertion and a test driver.
70028         This fixes a bug introduced on 2004-07-02.
70029         Andreas Schwab reported the resulting failure of cp --parents:
70030         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70031
70032 2005-03-21  Jim Meyering  <jim@meyering.net>
70033
70034         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70036
70037 2005-03-21  Jim Meyering  <jim@meyering.net>
70038         and  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70041         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70042         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70043         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70044         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70045         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70046         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70047         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70048         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70049         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70050         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70051         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70052         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70053         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70054         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70055         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70056         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70057         for these modules.
70058
70059 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70062         (which shouldn't happen), generate nothing instead of returning 0
70063         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70064
70065 2005-03-16  Bruno Haible  <bruno@clisp.org>
70066
70067         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70068         HAVE_LONGLONG_64BIT.
70069
70070 2005-03-16  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70073         HAVE_LONGLONG_64BIT.
70074
70075 2005-03-16  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70078         HAVE_LONGLONG_64BIT.
70079
70080 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70081
70082         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70083         reliably distinguish strftime failure from empty output on POSIX
70084         hosts.
70085
70086 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70089         (iconv_string): Don't guess a size-zero buffer, as that might cause
70090         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70091         result would be 'too large', where 'too large' is (heuristically)
70092         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70093         overflow concerns.  This will prevent some unwanted malloc failures
70094         when the inputs are very large.
70095
70096 2005-03-15  Karl Berry  <karl@gnu.org>
70097
70098         * config/srclist.txt (config.rpath): from gettext.
70099         * config/config.rpath: update.
70100
70101 2005-03-15  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70104         to 'negate'.
70105
70106         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70107         variable.
70108
70109         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70110         results.
70111
70112 2005-03-14  Simon Josefsson  <jas@extundo.com>
70113
70114         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70115         <fx@gnu.org>.
70116
70117 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70120         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70121         intprops.h.
70122         * lib/strtol.c: Likewise.
70123
70124 2005-03-14  Jim Meyering  <jim@meyering.net>
70125
70126         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70127         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70128         to be nonzero so that we (and caller) can detect the difference
70129         between a valid zero-length expansion and an error return, even
70130         when the underlying strftime fails before writing anything into
70131         that location.
70132
70133 2005-03-14  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70136         Update from GNU gettext 0.14.3.
70137
70138 2005-03-10  Jim Meyering  <jim@meyering.net>
70139
70140         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70141
70142 2005-03-10  Jim Meyering  <jim@meyering.net>
70143
70144         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70145         so that this module works on systems without fchdir.
70146
70147 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         Factor int-properties macros into a single file, except for
70150         glibc-related files.
70151         * lib/intprops.h: New file.
70152         * lib/getloadavg.c: Include it instead of limits.h.
70153         (INT_STRLEN_BOUND): Remove.
70154         * lib/human.c: Include intprops.h.
70155         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70156         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70157         302/1000.
70158         * lib/inttostr.h: Include intprops.h instead of limits.h.
70159         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70160         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70161         for consistency with intprops.h.
70162         (time_t_is_integer, twos_complement_arithmetic): Use them.
70163         * lib/sig2str.h: Include <signal.h>, intprops.h.
70164         (INT_STRLEN_BOUND): Remove.
70165         * lib/strftime.c (TYPE_SIGNED): Remove.
70166         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70167         * lib/strtol.c: Adjust comments to match intprops.h.
70168         * lib/userspec.c: Include intprops.h.
70169         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70170         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70171         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70172         instead of rolling our own expressions.
70173         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70174
70175         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70176         instead of int.
70177         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70178         the right thing even if adding 1900 would overflow.  Similarly
70179         for tm_mon + 1 and tm_yday + 1.
70180         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70181         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70182         (DO_SIGNED_NUMBER): New macro.
70183         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70184
70185 2005-03-07  Bruno Haible  <bruno@clisp.org>
70186
70187         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70188
70189 2005-03-07  Bruno Haible  <bruno@clisp.org>
70190
70191         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70192
70193 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70194
70195         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70196         (func_import): Only replace files via --import when they have actually
70197         changed.
70198
70199 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70200
70201         * m4/mmap-anon.m4: New file.
70202         * m4/pagealign_alloc.m4: New file.
70203
70204 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70205             Bruno Haible  <bruno@clisp.org>
70206
70207         * modules/pagealign_alloc: New file.
70208         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70209
70210 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70211             Bruno Haible  <bruno@clisp.org>
70212
70213         * lib/pagealign_alloc.h: New file.
70214         * lib/pagealign_alloc.c: New file.
70215
70216 2005-03-03  Bruno Haible  <bruno@clisp.org>
70217
70218         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70219         Use an all-permissive copyright notice, recommended by RMS.
70220
70221 2005-03-02  Bruno Haible  <bruno@clisp.org>
70222
70223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70224         of AIX, the replacement has to be done only after <string.h> is
70225         included, therefore not in config.h. stpncpy.h does the replacement,
70226         and stpncpy.c uses it.
70227
70228 2005-03-02  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70231         stpncpy.c uses it.
70232
70233 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70236         The workaround isn't strictly needed for POSIX conformance, and
70237         it's too much of a pain to configure and maintain.  We'll ask
70238         people to fix their kernels instead.
70239         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70240         (NANOSLEEP_BUG_WORKAROUND): Remove.
70241         (xnanosleep): Remove the workaround.
70242
70243 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70246         Reported by Derek Price.
70247         (Include): Add "timespec.h".
70248
70249         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70250
70251 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70252
70253         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70254         to detect nanosleep bug.
70255
70256 2005-03-01  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70259
70260 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * modules/gethrxtime: New file.
70263         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70264         (Depends-on): Add gethrxtime.
70265         (configure.ac): Add gl_XNANOSLEEP.
70266         (Makefile.am): Remove lib_SOURCES line.
70267
70268 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70271         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70272
70273 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70276         * lib/timespec.h (gettime): Return void, since it always
70277         succeeds now.  All uses changed.
70278         * lib/gettime.c (gettime): Likewise.
70279         [HAVE_NANOTIME]: Prefer nanotime.
70280         Assume gettimeofday succeeds, as POSIX requires.
70281         Assime time () succeeds, since other code already does.
70282         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70283         (timespec_subtract): Remove.
70284         (NANOSLEEP_BUG_WORKAROUND): New constant.
70285         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70286         things considerably.  Use it only on GNU/Linux hosts, since the
70287         workaround shouldn't be needed elsewhere.
70288
70289 2005-02-24  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/gettext (Files): Add m4/glibc2.m4.
70292
70293 2005-02-24  Bruno Haible  <bruno@clisp.org>
70294
70295         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70296         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70297         * m4/progtest.m4:
70298         Update from GNU gettext 0.14.2.
70299         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70300
70301 2005-02-24  Bruno Haible  <bruno@clisp.org>
70302
70303         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70304         * lib/config.charset: Update from GNU gettext 0.14.2.
70305
70306 2005-02-24  Bruno Haible  <bruno@clisp.org>
70307
70308         * lib/gettext.h: Update from GNU gettext 0.14.2.
70309
70310 2005-02-23  Simon Josefsson  <jas@extundo.com>
70311
70312         * m4/iconvme.m4: New file.
70313
70314 2005-02-23  Jim Meyering  <jim@meyering.net>
70315
70316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70317         change.
70318         Thanks to Bruno Haible for catching it.
70319
70320 2005-02-22  Simon Josefsson  <jas@extundo.com>
70321
70322         * modules/iconvme: New file.
70323
70324         * MODULES.html.sh: Add iconvme.
70325
70326 2005-02-22  Simon Josefsson  <jas@extundo.com>
70327
70328         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70329
70330 2005-02-22  Simon Josefsson  <jas@extundo.com>
70331
70332         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70333
70334 2005-02-22  Jim Meyering  <jim@meyering.net>
70335
70336         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70337         s/ifndef/ifdef/.
70338
70339 2005-02-20  Neil Conway  <neilc@samurai.com>
70340
70341         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70342         returned by OSX/Darwin if the specified buffer is not large
70343         enough for the hostname.
70344
70345 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70346
70347         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70348         pass it to _help, otherwise the latter coredumps trying to
70349         dereference state.root_argp.
70350
70351 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70352
70353         * modules/chdir-long (Depends-on): Add memrchr.
70354         * modules/memrchr (Files): Add lib/memrchr.h.
70355         (Include): "memrchr.h".
70356
70357 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70358
70359         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70360
70361 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * lib/memrchr.h: New file.
70364         * lib/chdir-long.c: Include it.
70365         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70366         Don't bother including stddef.h.
70367
70368 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70371         inclusion.
70372         Include <sys/types.h>, for dev_t.
70373         (ME_DUMMY, ME_REMOTE): Move from here....
70374         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70375         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70376         Dmitry V. Levin.
70377         Include mountlist.h first, to test the interface.
70378
70379 2005-01-29  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/progname.c (program_name): Initialize.
70382         Needed when linking statically on MacOS X.
70383
70384 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         Sync from coreutils.
70387         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70388         (Depends-on): Add c-strtod.
70389         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70390
70391 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70392
70393         Sync from coreutils.
70394         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70395
70396         Remove files that are specific to coreutils.
70397         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70398
70399 2005-01-28  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/javacomp: New file.
70402         * MODULES.html.sh (Java): Add javacomp.
70403
70404 2005-01-28  Bruno Haible  <bruno@clisp.org>
70405
70406         * m4/javacomp.m4: New file, from GNU gettext.
70407
70408 2005-01-28  Bruno Haible  <bruno@clisp.org>
70409
70410         * lib/javacomp.sh.in: New file, from GNU gettext.
70411         * lib/javacomp.h: New file, from GNU gettext.
70412         * lib/javacomp.c: New file, from GNU gettext.
70413
70414 2005-01-26  Simon Josefsson  <jas@extundo.com>
70415
70416         * lib/gai_strerror.c: Use GPL in header.
70417
70418 2005-01-26  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/javaexec: New file.
70421         * MODULES.html.sh (Java): Add javaexec.
70422
70423 2005-01-26  Bruno Haible  <bruno@clisp.org>
70424
70425         * m4/javaexec.m4: New file, from GNU gettext.
70426
70427 2005-01-26  Bruno Haible  <bruno@clisp.org>
70428
70429         * lib/javaexec.sh.in: New file, from GNU gettext.
70430         * lib/javaexec.h: New file, from GNU gettext.
70431         * lib/javaexec.c: New file, from GNU gettext.
70432
70433 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70434
70435         * modules/lchown (Depends-on): Remove lchown.h
70436
70437 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70438
70439         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70440         must be defined if the header file was not found, in order
70441         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70442
70443 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70444
70445         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70446         initializers for struct pentry_state.
70447         (__argp_error): Check return value of __asprintf
70448         (__argp_failure): Translate error message
70449
70450         * lib/argp-parse.c: Removed braces around the expansion of N_()
70451
70452 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70455         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70456         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70457         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70458         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70459         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70460         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70461         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70462         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70463         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70464         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70465         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70466         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70467         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70468         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70469         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70470         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70471         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70472         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70473         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70474         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70475         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70476         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70477         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70478         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70479         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70480         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70481         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70482         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70483         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70484         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70485         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70486         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70487         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70488         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70489         Use an all-permissive copyright notice, recommended by RMS.
70490
70491 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * modules/chdir-long (Depends-on): Remove mempcpy.
70494
70495 2005-01-21  Jim Meyering  <jim@meyering.net>
70496
70497         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70498         same value as for Solaris 9.
70499
70500         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70501         component length.  This included changing the parameter to be
70502         of type `char *' rather than `char const *'.
70503         * lib/chdir-long.h (chdir_long): Update prototype.
70504
70505         * lib/openat.c (fdopendir, fstatat): New functions.
70506         * lib/openat.h: Include headers required for use of DIR and struct
70507         stat.
70508         [AT_SYMLINK_NOFOLLOW]: Define.
70509         (fdopendir, fstatat): Add prototypes.
70510
70511 2005-01-21  Bruno Haible  <bruno@clisp.org>
70512
70513         * modules/classpath: New file.
70514         * MODULES.html.sh (Java): Add classpath.
70515
70516 2005-01-21  Bruno Haible  <bruno@clisp.org>
70517
70518         * lib/classpath.h: New file, from GNU gettext.
70519         * lib/classpath.c: New file, from GNU gettext.
70520
70521 2005-01-20  Simon Josefsson  <jas@extundo.com>
70522
70523         * modules/version-etc-fsf: New file.
70524
70525 2005-01-20  Simon Josefsson  <jas@extundo.com>
70526
70527         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70528         * lib/version-etc.c: Remove version_etc_copyright.
70529         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70530         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70531
70532 2005-01-20  Simon Josefsson  <jas@extundo.com>
70533
70534         * lib/base64.h (isbase64): Add.
70535
70536         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70537         using a unsigned prototype, don't inline.
70538         (base64_decode): Use it.
70539
70540 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70543         it.
70544
70545 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * lib/save-cwd.c (save_cwd): Remove code to support the case
70548         where fchdir is missing or flaky.
70549
70550 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70553
70554 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70557         AC_LIBSOURCES now does this.
70558         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70559         with new ullong_max module.
70560
70561 2005-01-19  Bruno Haible  <bruno@clisp.org>
70562
70563         * modules/sh-quote: New file.
70564         * MODULES.html.sh (Executing programs): Add sh-quote.
70565
70566 2005-01-19  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/sh-quote.h: New file, from GNU gettext.
70569         * lib/sh-quote.c: New file, from GNU gettext.
70570
70571 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         Merge from coreutils.
70574         * m4/ullong_max.m4: New file.
70575         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70576         (gl_MACROS): Assume localeconv exists.
70577
70578 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70579
70580         Merge changes from coreutils, as described below in several
70581         changelogs dated today.
70582
70583         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70584         (O_DIRECTORY): Remove; not needed here, since "." must be
70585         a directory.  All uses removed.
70586         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70587         universal on Suns, and we also need to test for IRIX.
70588         Revamp code to use 'if' rather than '#if'.
70589         Avoid unnecessary comparison of cwd->desc to 0.
70590
70591         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70592         for known valid error numbers rather than observed invalid ones.
70593
70594 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * modules/ullong_max: New file.
70597
70598         * modules/chdir-long, modules/openat: New files.
70599         * modules/save-cwd (Depends-on): Depend on chdir-long.
70600         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70601
70602 2005-01-18  Jim Meyering  <jim@meyering.net>
70603
70604         Merge from coreutils.
70605         * m4/chdir-long.m4, m4/openat.m4: New files.
70606         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70607         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70608         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70609         is sane and DOES follow symlinks.  Besides, testing 20 different
70610         systems found no broken chown implementations.
70611         Prompted by a change in rsync's copy of this macro.
70612         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70613
70614         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70615
70616         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70617         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70618         NULL-means-set-to-current-time semantics.
70619         Remove temporary file immediately, rather than waiting
70620         for configure's at-exit trap code to do it.
70621
70622 2005-01-18  Jim Meyering  <jim@meyering.net>
70623
70624         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70625
70626         * lib/utimens.c (futimens): Account for the fact that futimes
70627         can also fail with errno == ENOSYS or errno == ENOENT.
70628         Patch from Dmitry V. Levin.
70629
70630         Change the name of the robust chdir function from chdir to chdir_long.
70631         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70632         (restore_cwd): Use chdir_long, not chdir.
70633         * lib/chdir-long.c: Renamed from chdir.c.
70634         * lib/chdir-long.h: Renamed from chdir.h.
70635         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70636         Hurd.
70637
70638 2005-01-18  Bruno Haible  <bruno@clisp.org>
70639
70640         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70641         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70642         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70643         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70644         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70645         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70646         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70647         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70648         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70649         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70650         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70651         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70652         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70653         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70654         Use an all-permissive copyright notice, recommended by RMS.
70655
70656 2005-01-18  Bob Proulx  <bob@proulx.com>
70657
70658         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70659         simplify offsetof() macro construct to avoid compile failure with
70660         native HP-UX 11.0 ANSI C compiler.
70661
70662 2005-01-17  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70665         redundant because stpncpy.m4 takes care of it.
70666
70667 2005-01-17  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70670
70671 2005-01-17  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70674         used.
70675
70676 2005-01-17  Bruno Haible  <bruno@clisp.org>
70677
70678         * lib/fwriteerror.h (fwriteerror): Change specification to include
70679         fclose.
70680         * lib/fwriteerror.c: Include <stdbool.h>.
70681         (fwriteerror): At the end, close the file stream. Record whether
70682         stdout was already closed.
70683
70684 2005-01-17  Bruno Haible  <bruno@clisp.org>
70685
70686         * lib/execute.c (environ): Declare if needed.
70687         * lib/pipe.c (environ): Likewise.
70688         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70689
70690 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70691
70692         * modules/argp: Depend on vsnprintf
70693
70694 2005-01-10  Jim Meyering  <jim@meyering.net>
70695
70696         * modules/closeout (Depends-on): Add atexit.
70697
70698 2005-01-06  Bruno Haible  <bruno@clisp.org>
70699
70700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70701
70702 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70705         definitions to be after all include files, to avoid collisions.
70706         Problem reported by Bob Proulx.
70707
70708 2005-01-04  Jim Meyering  <jim@meyering.net>
70709
70710         Changes imported from coreutils.
70711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70712         as the mkstemp template, use a temporary directory and an
70713         8.3-friendly template to avoid trouble on systems like DJGPP.
70714         Reported by Juan M. Guerrero via Stepan Kasal.
70715         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70716         close. Remove the temporary directory right away, rather than waiting
70717         for configure's at-exit trap code to do it.
70718         Suggestion from Stepan Kasal.
70719
70720 2005-01-01  Simon Josefsson  <jas@extundo.com>
70721
70722         * gnulib-tool: Print #include directives when --import'ing.
70723
70724 2004-12-28  Simon Josefsson  <jas@extundo.com>
70725
70726         * tests/test-base64.c: Include required header files.  Remove
70727         unused variables.
70728
70729 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * modules/error (Depends-on): Remove gettext.
70732
70733 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70736         not needed.  This removes a dependency on the gettext module.
70737         [defined _LIBC]: Do not include <libintl.h>; not needed.
70738
70739 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70742         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70743
70744 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70747         HAVE_DECL_STRTOLD.
70748
70749 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70750
70751         * modules/getdate (Depends-on): Remove alloca-opt.
70752
70753 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70756
70757 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * lib/argp-parse.c: Include <stddef.h>.
70760         (alignof, alignto): New macros.
70761         (parser_init): Don't assume that void * is aligned sufficiently
70762         for struct option.
70763
70764         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70765         need to extend the stack.
70766         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70767         large.
70768
70769 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70770
70771         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70772
70773 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70776         (2004-10-24) change.  Apparently this was a false alarm.
70777
70778         * modules/getdate: Depend on alloca-opt, not alloca.
70779
70780 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70783         Remove now-obsolete comment about AIX.
70784         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70785         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70786         (YYMAXDEPTH): New macro.
70787
70788 2004-12-18  Simon Josefsson  <jas@extundo.com>
70789
70790         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70791
70792 2004-12-18  Bruno Haible  <bruno@clisp.org>
70793
70794         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70795
70796 2004-12-18  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/fatal-signal.c (fatal_signals): Make non-const.
70799         (init_fatal_signals): New function.
70800         (uninstall_handlers, install_handlers): Ignore signals that were set to
70801         SIG_IGN.
70802         (at_fatal_signal): Call init_fatal_signals.
70803         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70804         SIG_IGN.
70805         Reported by Paul Eggert.
70806
70807 2004-12-18  Bruno Haible  <bruno@clisp.org>
70808
70809         * doc/alloca.texi: New file.
70810         * doc/alloca-opt.texi: New file.
70811
70812 2004-12-17  Jim Meyering  <jim@meyering.net>
70813
70814         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70815         Otherwise, install-sh could exit with improper exit status when
70816         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70817
70818 2004-12-16  Simon Josefsson  <jas@extundo.com>
70819
70820         * tests/test-base64.c: Add license.
70821
70822 2004-12-15  Stepan Kasal  <address@hidden>
70823
70824         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70825
70826 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * modules/getcwd (Files): Add m4/d-ino.m4.
70829         Suggested by Mark D. Baushke.
70830
70831 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/getdate.y (textint): New member "negative".
70834         (time_zone_hhmm): New function.
70835         Expect 14 shift-reduce conflicts, not 13.
70836         (o_colon_minutes): New rule.
70837         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70838         (yylex): Set the "negative" member of signed numbers.
70839
70840 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * doc/getdate.texi (Time of day items, Time zone items):
70843         Describe new formats +00:00, UTC+00:00.
70844
70845 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70848         spurious "-l"s.  Problem reported by Stepan Kasal.
70849
70850 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70853         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70854
70855 2004-12-04  Simon Josefsson  <jas@extundo.com>
70856
70857         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70858         Vandoorselaere <yoann@prelude-ids.org>.
70859
70860 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         Changes imported from coreutils.
70863         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70864         exist.
70865         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70866
70867 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         Changes imported from coreutils.
70870         * lib/hard-locale.c: Assume <locale.h> exists.
70871         Include "strdup.h".
70872         (GLIBC_VERSION): New macro.
70873         (hard_locale): Assume setlocale exists.
70874         Rewrite to avoid #ifdef.
70875         Use strdup rather than malloc + strcpy.
70876         * lib/human.c: Assume <locale.h> exists.
70877         (human_readable): Assume localeconv exists.
70878
70879 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * modules/hard-locale (Depends-on): Add strdup.
70882
70883 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70884
70885         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70886         convert T2, not T.  (Imported from libc.)
70887
70888 2004-11-30  Simon Josefsson  <jas@extundo.com>
70889
70890         * modules/restrict (License): Change to LGPL.
70891
70892 2004-11-30  Simon Josefsson  <jas@extundo.com>
70893
70894         * m4/restrict.m4: Add copyright and copying conditions.
70895
70896 2004-11-30  Simon Josefsson  <jas@extundo.com>
70897
70898         * m4/base64.m4: New file.
70899
70900 2004-11-30  Simon Josefsson  <jas@extundo.com>
70901
70902         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70903         base64.
70904
70905         * tests/test-base64.c: New file.
70906
70907         * modules/base64: New file.
70908
70909 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70912         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70913
70914         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70915
70916 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70919         (__getcwd.c): Don't restore errno; glibc doesn't.
70920         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70921         first, falling back to our code only if its results look suspicious.
70922         Ensure that the resulting buffer is only as large as necessary.
70923
70924         * lib/readutmp.c: Include readutmp.h first.
70925         Include <errno.h>, since readutmp.h no longer does that.
70926         * lib/readutmp.h: Don't include <errno.h>,
70927         <sys/param.h>, <time.h>; not needed to establish interface.
70928         (errno): Remove decl.
70929         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70930         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70931         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70932
70933 2004-11-28  Simon Josefsson  <jas@extundo.com>
70934
70935         * lib/base64.h, base64.c: New file.
70936
70937 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70940
70941 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70944         (Depends-on): Remove pathmax, same.  Add mempcpy.
70945         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70946         (Makefile.am): Append getcwd.h to lib_SOURCES.
70947         (Include): Add getcwd.h.
70948         (Maintainer): Change from Jim Meyering to "all, glibc",
70949         since getdate now uses intended-for-glibc code.
70950         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70951         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70952
70953 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70956         HP's ANSI C compiler.
70957         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70958         Declaring int functions causes warnings on some modern systems and
70959         shouldn't be needed to compile on ancient ones.
70960         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70961         defined.
70962
70963         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70964         with the following changes.
70965         (__set_errno): Parenthesize properly.
70966         Include <stdbool.h>.
70967         (MIN, MAX, MATCHING_INO): New macros.
70968         (__getcwd): Define with prototype, not K&R form.
70969         Use heuristics to allocate default buffer on stack if possible.
70970         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70971         behavior, and to avoid the PATH_MAX limit when computing
70972         ../../../../...
70973         Use MATCHING_INO to compare inode number to file.
70974         Check for arithmetic overflow in size calculations.
70975         Fix bug in reallocation of dot array that caused getcwd to fail
70976         on directories nested deeper than 75.
70977         Be more careful about saving errno on error.
70978         Do not use realloc; use only free+malloc, as this is a bit
70979         more flexible and avoids a needless copy operation.
70980         Do not inspect st_dev and st_ino for symbolic links; POSIX
70981         doesn't specify the latter.
70982         Check for closedir errors.
70983         Avoid needless casts.
70984         Use "#ifdef weak_alias" around weak_alias, to be like other
70985         glibc code.
70986         The following changes to getcwd.c have effect only when used in
70987         gnulib; they have no effect inside glibc proper.
70988         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70989         as alloca isn't used.
70990         (alloca, __alloca): Likewise.
70991         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70992         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70993         unconditionally, as gnulib assumes C89 or better.
70994         Do not include <sys/param.h>.
70995         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70996         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70997         better.
70998         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70999         Include <dirent.h> in a way that is compatible with modern Autoconf.
71000         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71001         New macros, if not already defined.
71002         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71003         Use "_LIBC", not "defined _LIBC", for consistency.
71004         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71005         a mempcpy module.
71006         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71007         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71008         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71009         credit only to Jim Meyering and adjust the copyright dates.
71010         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71011         <stdlib.h>, <unistd.h>, "pathmax.h".
71012         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71013         (INITIAL_BUFFER_SIZE): Remove.
71014         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71015
71016 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71019         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71020         Use the _ONCE methods, for efficiency.
71021         Check for fcntl.h.  In test program, include <errno.h>
71022         and <fcntl.h> if available.  Remove old K&R cruft from
71023         test program.  Check for common errors in GNU/Linux,
71024         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71025         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71027         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71028         name accordingly.
71029         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71030         accommodate new getcwd.c.
71031         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71032         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71033         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71034         that's all we need now.
71035
71036 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71037
71038         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71039         argp-parse.c depends on getopt internals, that means we should
71040         always use our getopt, to be on the safe side.
71041         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71042         order not to spoil the result of an eventual previous invocation
71043         of gl_GETOPT_SUBSTITUTE.
71044
71045 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71046
71047         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71048         redefinition warnings. To avoid them, include the defines
71049         in `#if !defined __need_getopt ... #endif'. The only place
71050         where __getopt_argv_const is used is in definitions
71051         of getopt_long and getopt_long_only below, which are as well
71052         protected by `#ifndef __need_getopt'.
71053         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71054         __need_getopt after including <stdio.h> and <unistd.h> These
71055         headers might have defined it.
71056
71057 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71060
71061 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71064         (futimens): New function, which uses futimes if available.
71065         (futimens, utimens): Support timespec==NULL, with same semantics
71066         as utime and utimens.
71067         * lib/utimens.h (futimens): New decl.
71068
71069 2004-11-23  Jim Meyering  <jim@meyering.net>
71070
71071         * lib/getopt_.h: Remove trailing blanks.
71072
71073 2004-11-23  Jim Meyering  <jim@meyering.net>
71074
71075         * lib/__fpending.c: Add comment.
71076
71077 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * modules/canonicalize (Depends-on): Add xreadlink.
71080         Problem reported by James Youngman.
71081
71082 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71085         New macros.
71086         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71087         optopt): Use them instead of invoking ## directly; otherwise, the
71088         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71089
71090 2004-11-19  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/strtok_r.c: Move comments from here...
71093         * lib/strtok_r.h: ... to here.
71094
71095 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71098         implementations that mishandle size_t overflow.
71099
71100 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71103         might fail.  Problem reported by Yoann Vandoorselaere.
71104         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71105         implementations that mishandle size_t overflow.
71106
71107 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * modules/canon-host (Depends-on): Add strdup.
71110
71111 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71114
71115 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         * lib/canon-host.c: Include "strdup.h".
71118         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71119         Use strdup instead of malloc/strcpy to duplicate strings.
71120
71121         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71122         (human_space_before_unit): New constant.
71123         * lib/human.c (human_readable): Support it.
71124
71125         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71126         (xgetcwd): Set errno correctly when failing.
71127         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71128         the failure is actually due to a PATH_MAX problem.
71129
71130         Further getopt changes to make it more likely that glibc will
71131         buy the changes back.
71132         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71133         (getopt): Use it, so to preserve glibc semantic
71134         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71135         when compiling for libc.
71136         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71137         (getopt_long, getopt_long_only): Use it.
71138
71139         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71140         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71141         (getopt): Argv is now char * const *, as per standard.
71142         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71143         not char *__getopt_argv_const *.
71144         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71145         _getopt_long_only_r): Likewise.
71146         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71147         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71148         _getopt_long_r, _getopt_long_only_r): Likewise.
71149         * lib/getopt_.h (__getopt_argv_const): Remove.
71150         (getopt): Argv is now char * const *, as per standard.
71151
71152         * lib/getdate.y (tORDINAL): New token.
71153         (day, relunit): Allow it for relative times.
71154         (relative_time_table): Use tORDINAL for ordinals.
71155
71156 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71159         Document that "second" isn't allowed as an ordinal number.
71160
71161 2004-11-16  Jim Meyering  <jim@meyering.net>
71162
71163         * modules/closeout (Depends-on): Add fpending.
71164
71165 2004-11-15  Jim Meyering  <jim@meyering.net>
71166
71167         * lib/closeout.c: Include "__fpending.h" once again.
71168         Include <stdbool.h>.
71169         (close_stdout): Don't fail just because stdout was closed initially,
71170         since some programs don't write to stdout in the normal course of
71171         operation (other than --version and --help), and we don't want this
71172         function to make e.g. `touch file >&-' fail.
71173         But do fail if it was closed and someone has tried to write to it.
71174         E.g., `printf foo >&-' must fail.
71175
71176 2004-11-13  Jim Meyering  <jim@meyering.net>
71177
71178         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71179
71180 2004-11-12  Simon Josefsson  <jas@extundo.com>
71181
71182         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71183         small doc fix is still pending.
71184
71185 2004-11-11  Simon Josefsson  <jas@extundo.com>
71186
71187         * modules/strtok_r: New file.
71188
71189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71190         strtok_r.
71191
71192 2004-11-11  Simon Josefsson  <jas@extundo.com>
71193
71194         * m4/strtok_r.m4: New file.
71195
71196         * m4/getopt.m4: Replace opterr.
71197
71198 2004-11-11  Simon Josefsson  <jas@extundo.com>
71199
71200         * lib/strtok_r.h, strtok_r.c: New file.
71201
71202 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71205         of replacing opterr, getopt, etc.  This should handle the
71206         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71207
71208 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71211         we can stop lying to compilers about the constness of argv when we
71212         are compiled outside glibc.
71213         (getopt, getopt_long, getopt_long_only): Use it.
71214         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71215         _getopt_internal, getopt): Likewise.
71216         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71217         _getopt_long_only_r): Likewise.
71218         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71219         _getopt_long_r, _getopt_long_only_r): Likewise.
71220
71221         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71222         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71223         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71224         the other external symbols.
71225         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71226         declaration, since the above renaming now works around collisions.
71227
71228 2004-11-11  Jim Meyering  <jim@meyering.net>
71229
71230         * lib/linebreak.c: Remove trailing blanks.
71231         * lib/alloca_.h: Likewise.
71232         * lib/acosl.c: Likewise.
71233         * lib/euidaccess.c: Likewise.
71234         * lib/allocsa.h: Likewise.
71235
71236 2004-11-10  Simon Josefsson  <jas@extundo.com>
71237
71238         * m4/getaddrinfo.m4: New file.
71239
71240 2004-11-10  Simon Josefsson  <jas@extundo.com>
71241
71242         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71243
71244 2004-11-10  Simon Josefsson  <jas@extundo.com>
71245
71246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71247         getaddrinfo.
71248
71249         * modules/getaddrinfo: New file.
71250
71251 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71254
71255 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * lib/mktime.c (SHR): New macro, which is a portable
71258         substitute for >> that should work even on Crays.
71259         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71260         Problem reported by Mark D. Baushke in
71261         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71262         * lib/getdate.y (SHR): Likewise.
71263         (tm_diff): Use it.
71264         * lib/strftime.c (SHR): Likewise.
71265         (tm_diff): Use it.
71266         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71267         quote_these_too, so that right shifts are well defined.  All uses
71268         changed.
71269
71270 2004-11-10  Jim Meyering  <jim@meyering.net>
71271
71272         Ensure that no close failure goes unreported.
71273         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71274         return early when it seems there's nothing to flush.
71275         Don't include __fpending.h.
71276
71277 2004-11-10  Jim Meyering  <jim@meyering.net>
71278
71279         * modules/closeout (Depends-on): Remove fpending.
71280
71281 2004-11-10  Jim Meyering  <jim@meyering.net>
71282
71283         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71284
71285 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71288         gl_FUNC_STRFTIME.
71289         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71290         and AC_REQUIRE when possible, to avoid duplicate checks.
71291         Check for <wchar.h>.
71292
71293 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71296
71297 2004-11-09  Bruno Haible  <bruno@clisp.org>
71298
71299         * m4/sockpfaf.m4: New file.
71300
71301 2004-11-05  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71304         Reported by Mark D. Baushke <mdb@cvshome.org>.
71305
71306 2004-11-04  Bruno Haible  <bruno@clisp.org>
71307
71308         2004-09-11  Bruno Haible  <bruno@clisp.org>
71309                 * allocsa.valgrind: New file.
71310         2004-02-06  Bruno Haible  <bruno@clisp.org>
71311                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71312                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71313                 Reported by Christopher Seip <chris.seip@hp.com>.
71314
71315 2004-11-04  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71318         (Makefile.am): Distribute it.
71319
71320 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71323         with errno == ERANGE if the buffer is too small.
71324         Problem reported by Mark D. Baushke.
71325
71326 2004-11-03  Albert Chin  <china@thewrittenword.com>
71327             Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71330         equivalent, substitute $ac_type for equivalent type rather than
71331         blindly using uint32_t *always* which won't work if uint32_t is not
71332         available.  Define _UINT32_T to work around typedef of uint32_t if
71333         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71334         2.5.1.
71335
71336 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * m4/jm-macros.m4: Sync from coreutils.
71339         (gl_MACROS): Check for mbrlen, for pathchk.
71340         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71341
71342 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * lib/xreadlink.c (MAXSIZE): New macro.
71345         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71346         size does not exceed MAXSIZE.  Avoid cast.
71347         As suggested by Mark D. Baushke in
71348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71349         if readlink fails with buffer size just under MAXSIZE, try again
71350         with MAXSIZE.
71351
71352 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71355
71356 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71357         and  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71360         (get_date): Overparenthesize to avoid GCC warning.
71361
71362 2004-11-02  Bruno Haible  <bruno@clisp.org>
71363
71364         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71365         returns void.
71366
71367 2004-11-02  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71370         function returns void.
71371
71372 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71375         fflush_unlocked, flockfile, funlockfile, funlockfile,
71376         fputs_unlocked, putc_unlocked.
71377
71378 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71381         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71382         already declared.
71383
71384 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * modules/getdate (Files): Add doc/getdate.texi.
71387         (Depends-on): Add setenv, xalloc.
71388
71389 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * lib/getdate.y: Add support for TZ="foo" within a date string.
71392         Fix some bugs near time_t boundaries.  Reject dates with
71393         out-of-range components, e.g., "Sept 31".
71394         Include <stdlib.h>, "setenv.h", "xalloc.h".
71395         (ISDIGIT_LOCALE): Remove; unused.
71396         Note that the TZ and time functions used here are not reentrant.
71397         (mktime_ok, get_tz): New functions.
71398         (TZBUFSIZE): New constant.
71399         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71400         This requires that we sometimes generate our own TZ="XXX..." setting.
71401
71402 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * doc/getdate.texi: New file, from coreutils with modifications for
71405         the new TZ parsing.
71406
71407 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71408
71409         * lib/mktime.c (not_equal_tm): Remove redundant check.
71410
71411 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * modules/regex (lib_SOURCES): Add regex.c.
71414         Reported by James Youngman in
71415         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71416
71417 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/getdate.y: Use Bison 1.875 features, and some minor
71420         code cleanups.  This change does not affect semantics.
71421         Don't include <stdlib.h>; no longer needed.
71422         Don't include unlocked-io.h; only the "#if TEST" code uses
71423         stdio, and performance isn't crucial there.
71424         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71425         Bison 1.875 features as described below.
71426         All uses of "PC." replaced by "pc->".
71427         (YYSTYPE): Add a forward declaration.
71428         (yylex, yyerror): Use full prototypes in forward decls.
71429         Use "%pure-parser" rather than obsolescent "%pure_parser".
71430         Use %parse-param and %lex-param instead of obsolescent
71431         YYPARSE_PARAM and YYLEX_PARAM.
71432         (meridian_table, month_and_day_table, time_units_table,
71433         relative_time_table, time_zone_table, military_table,
71434         lookup_zone, lookup_word, get_date):
71435         Use NULL instead of 0 where appropriate.
71436         (to_hour): Avoid abort (), to avoid a dependency on
71437         stdlib.h.
71438         (yyerror, yylex): Now accepts parser_control * arg.
71439         (main) [TEST]: Use '\0' rather than 0 for char.
71440
71441 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71444
71445 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71448         It's now the caller's responsibility to handle the case where
71449         !HAVE_GETPAGESIZE && !defined getpagesize.
71450
71451         * lib/mktime.c (leapyear): Arg is long int, not int.
71452
71453 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71456
71457 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71460         missing.  Problem reported by James Youngman.
71461
71462 2004-10-16  Simon Josefsson  <jas@extundo.com>
71463
71464         * gnulib-tool: Fix comments.  Fix parse problem.
71465         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71466
71467 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71470         implementation of getopt_long.  Problem reported by Alexander Taler in:
71471         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71472
71473 2004-10-15  Bruno Haible  <bruno@clisp.org>
71474
71475         * gnulib-tool: Untabify. Initialize supplied_libname.
71476         (func_usage): More homogenous output.
71477         (func_modules_transitive_closure, func_modules_to_filelist,
71478         func_emit_lib_Makefile_am): New functions.
71479         (func_import): New function, extracted from big case statement. Use
71480         func_get_license, func_modules_transitive_closure,
71481         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71482         opt_lgpl. Don't use test -a, as it's not portable.
71483         (func_create_testdir): Use func_modules_transitive_closure,
71484         func_modules_to_filelist, func_emit_lib_Makefile_am.
71485
71486 2004-10-15  Bruno Haible  <bruno@clisp.org>
71487
71488         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71489
71490 2004-10-15  Bruno Haible  <bruno@clisp.org>
71491
71492         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71493         the portions belonging to each module.
71494         Suggested by Derek Robert Price <derek@ximbiot.com>.
71495
71496 2004-10-12  Simon Josefsson  <jas@extundo.com>
71497
71498         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71499         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71500         to real functions.
71501
71502 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71503
71504         * modules/vsnprintf: New file.
71505
71506 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71507
71508         * m4/vsnprintf.m4: New file.
71509
71510 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71511
71512         * lib/vsnprintf.h: New file.
71513         * lib/vsnprintf.c: New file.
71514
71515 2004-10-11  Bruno Haible  <bruno@clisp.org>
71516
71517         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71518         vsnprintf.
71519
71520 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71523
71524 2004-10-07  Bruno Haible  <bruno@clisp.org>
71525
71526         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71527         fits into the provided buffer.
71528
71529 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * lib/diacrit.c, diacrit.h: Add GPL notice.
71532
71533         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71534         notice.
71535         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71536         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71537         This avoids a potential constant-folding bug.
71538
71539 2004-10-05  Bruno Haible  <bruno@clisp.org>
71540
71541         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71542         for the declaration of strsep.
71543
71544 2004-10-05  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71547
71548 2004-10-04  Simon Josefsson  <jas@extundo.com>
71549
71550         * modules/memmem: New file.
71551         * tests/test-memmem.c: New file.
71552         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71553
71554 2004-10-04  Simon Josefsson  <jas@extundo.com>
71555
71556         * m4/memmem.m4: New file.
71557
71558 2004-10-04  Simon Josefsson  <jas@extundo.com>
71559
71560         * lib/memmem.h: New file.
71561         * lib/memmem.c: New file, taken from glibc.
71562
71563 2004-10-04  Simon Josefsson  <jas@extundo.com>
71564
71565         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71566         '#ifdef USE_UNLOCKED_IO'.
71567
71568 2004-10-04  Simon Josefsson  <jas@extundo.com>
71569
71570         * config/srclist.txt: Add memmem from glibc.
71571
71572 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71575
71576         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71577         modules/exclude, modules/getdate, modules/getline,
71578         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71579         modules/getusershell, modules/linebuffer, modules/md5,
71580         modules/mountlist, modules/posixtm, modules/readtokens,
71581         modules/readutmp, modules/regex, modules/sha1,
71582         modules/version-etc, modules/yesno:
71583         Remove dependency on unlocked-io.
71584
71585 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71588
71589         * m4/unlocked-io.m4: Add copyright notice.
71590         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71591
71592 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71595         * lib/xmalloc.c (xmemdup): Likewise.
71596         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71597         XFREE): Remove these long-obsolescent macros.
71598         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71599         * lib/xstrdup.c: Remove.
71600
71601         * lib/regex.c (re_comp): Cast gettext return value to char *,
71602         Problem reported by Martin Neitzel via Mark D. Baushke.
71603
71604 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71607         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71608         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71609         regex.c, sha1.c, version-etc.c, yesno.c:
71610         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71611         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71612         the includer's responsibility.
71613
71614         Sync from coreutils.
71615
71616         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71617         points to the start of a string, as the C Standard says the
71618         resulting behavior is undefined.
71619
71620         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71621         simple -> simple_backups, numbered_existing ->
71622         numbered_existing_backups, numbered -> numbered_backups
71623         to avoid shadowing problems.  All uses changed.
71624         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71625         * lib/backupfile.c (check_extension, numbered_backup):
71626         Rename locals to avoid shadowing 'basename'.
71627         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71628         once.
71629
71630         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71631         * lib/.cvsignore: Add getopt.h.
71632
71633 2004-10-04  Bruno Haible  <bruno@clisp.org>
71634
71635         * modules/README: New file.
71636         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71637         not a module.
71638
71639 2004-10-02  Jim Meyering  <jim@meyering.net>
71640
71641         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71642
71643 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71644
71645         * modules/strsep: New file.
71646
71647 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71648
71649         * m4/strsep.m4: New file.
71650
71651 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71652
71653         * lib/strsep.h: New file.
71654         * lib/strsep.c: New file.
71655
71656 2004-10-01  Simon Josefsson  <jas@extundo.com>
71657
71658         * lib/snprintf.c (snprintf): Handle size==0.
71659
71660 2004-10-01  Simon Josefsson  <jas@extundo.com>
71661             Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71664         (snprintf): Declare 'args'.
71665
71666 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71667
71668         * lib/snprintf.c: Remove comments as to why each header is needed.
71669
71670 2004-10-01  Bruno Haible  <bruno@clisp.org>
71671
71672         * MODULES.html.sh: Add strsep.
71673
71674 2004-09-30  Simon Josefsson  <jas@extundo.com>
71675
71676         * modules/snprintf: New file.
71677
71678 2004-09-30  Simon Josefsson  <jas@extundo.com>
71679
71680         * m4/snprintf.m4: New file.
71681
71682 2004-09-30  Simon Josefsson  <jas@extundo.com>
71683
71684         * lib/snprintf.h, lib/snprintf.c: New files.
71685
71686 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71687
71688         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71689         (hol_entry_help): Never translate an empty string.
71690         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71691         * lib/argp.h (OPTION_NO_TRANS): New option.
71692
71693 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * modules/argp (Maintainer): Replace Simon Josefsson
71696         by Sergey Poznyakoff.
71697
71698 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71701         changes merged back into glibc.
71702
71703 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71706
71707 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71708
71709         * lib/xvasprintf.c: Include xalloc.h.
71710         (xvasprintf): Use xalloc_die, not xmalloc_die.
71711
71712 2004-09-29  Bruno Haible  <bruno@clisp.org>
71713
71714         * modules/alloca-opt: New file, derived from modules/alloca.
71715         * modules/allocsa: Depend on alloca-opt instead of alloca.
71716         * modules/setenv: Likewise.
71717         * modules/vasnprintf: Likewise.
71718         * MODULES.html.sh: Add alloca-opt.
71719
71720 2004-09-28  Simon Josefsson  <jas@extundo.com>
71721
71722         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71723         LGPL, and to replace license template from GPL to LGPL.
71724
71725 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * modules/dummy: Change license to LGPL.
71728
71729 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71732
71733 2004-09-24  Simon Josefsson  <jas@extundo.com>
71734
71735         * modules/minmax (License): Change from GPL to LGPL.
71736
71737 2004-09-23  Simon Josefsson  <jas@extundo.com>
71738
71739         * gnulib-tool (--import): Typo.
71740
71741 2004-09-23  Simon Josefsson  <jas@extundo.com>
71742
71743         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71744
71745 2004-09-22  Bruno Haible  <bruno@clisp.org>
71746
71747         * modules/*: Add 'License' field.
71748         * gnulib-tool: Accept --extract-license option.
71749         (func_get_license): New function.
71750
71751 2004-09-21  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71754         Reported by Simon Josefsson.
71755
71756 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71759         gl_AC_TYPE_LONG_LONG.
71760
71761 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71764
71765 2004-09-18  Simon Josefsson  <jas@extundo.com>
71766         and  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71769         calls with autoreconf.  Define GL_LIB.
71770
71771 2004-09-14  Karl Berry  <karl@gnu.org>
71772
71773         * config/srclist.txt: unsync setenv.c, sigh.
71774
71775 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71778         Problem reported by Bruno Haible in:
71779         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71780
71781 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * config/srclist.txt: Comment out argp-pvh.c.
71784
71785 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71788         in case some system header has #define'd it.  Problem reported by
71789         Soeren D. Schulze in
71790         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71791
71792 2004-09-09  Karl Berry  <karl@gnu.org>
71793
71794         * regex.[ch]: delete from the root.  These were supposed to be
71795                 synced with emacs cvs, but this has not happened for about
71796                 a year, and anyway nothing else uses emacs regex.[ch].
71797                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71798                 lib/regex[.ch] is untouched.
71799
71800 2004-09-09  Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71803
71804 2004-09-09  Bruno Haible  <bruno@clisp.org>
71805
71806         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71807         modifications.
71808         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71809
71810 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71811
71812         * modules/xvasprintf: New file.
71813         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71814
71815 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71816
71817         * lib/xvasprintf.h: New file.
71818         * lib/xvasprintf.c: New file.
71819         * lib/xasprintf.c: New file.
71820
71821 2004-09-08  Bruno Haible  <bruno@clisp.org>
71822
71823         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71824
71825 2004-09-08  Bruno Haible  <bruno@clisp.org>
71826
71827         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71828         length is > INT_MAX.
71829         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71830         more.
71831
71832 2004-09-08  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/stdint_.h: New file, taken from GNU clisp.
71835
71836 2004-09-08  Bruno Haible  <bruno@clisp.org>
71837             Oskar Liljeblad  <oskar@osk.mine.nu>
71838
71839         * modules/stdint: New file.
71840         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71841
71842 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         Import from coreutils.
71845         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71846         strings on unbounded length.  alloca's performance benefits aren't
71847         that important here.
71848         (V_STRDUP): Remove.
71849         (parse_with_separator): New function, with most of the internals
71850         of the old parse_user_spec.  Allow user to omit both user and group,
71851         for compatibility with FreeBSD.
71852         Clone only the user name, not the entire spec.
71853         Do not set *uid, *gid unless entirely successful.
71854         Avoid memory leak in some failing cases.
71855         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71856         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71857         (parse_user_spec): Rewrite to use parse_with_separator.
71858
71859 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         * modules/userspec: Don't depend on alloca.
71862
71863 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71866
71867 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71870         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71871         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71872
71873 2004-08-16  Simon Josefsson  <jas@extundo.com>
71874
71875         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71876         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71877         Add --dry-run for --import.
71878         Let user provided command line parameters override configure.ac
71879         settings.
71880
71881 2004-08-12  Simon Josefsson  <jas@extundo.com>
71882
71883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71884         as discussed with Paul Eggert in threads rooted at
71885         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71886         and
71887         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71888         Before, the test was empty, and relied on ELIDE_CODE in source
71889         code.)
71890         (gl_PREREQ_GETOPT): New macro.
71891         (gl_GETOPT): Use them.
71892
71893 2004-08-12  Simon Josefsson  <jas@extundo.com>
71894
71895         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71896         * lib/getopt_.h: Renamed from getopt.h.
71897
71898 2004-08-12  Simon Josefsson  <jas@extundo.com>
71899
71900         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71901         Change default library name from libfoo to libgnu.
71902         Now, if you have a configure.ac that says:
71903                 gl_SOURCE_BASE(gl)
71904                 gl_M4_BASE(gl/m4)
71905                 gl_MODULES(error getopt etcetera)
71906                 gl_INIT
71907         you can import all you need by running:
71908                 ../gnulib/gnulib-tool --import
71909
71910         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71911         (Makefile.am): Rewrite, use logic from argz.
71912         (Include): Use <getopt.h> instead of "getopt.h".
71913
71914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * modules/argp (Files): Add m4/unlocked-io.m4.
71917         (Depends-on): Add extensions.
71918
71919 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71922         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71923         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71924         Check for program_invocation_name, program_invocation_short_name,
71925         flockfile, funlockfile, features.h, _getopt_long_only_r.
71926
71927 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71930         its complicated substitute.
71931         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71932         and program_invocation_name.
71933         (__argp_basename) [!_LIBC]: Remove; the only use was
71934         replaced by its body.
71935         (__argp_short_program_name): Change condition from
71936         !defined __argp_short_program_name to
71937         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71938         to match argp-namefrob.h.
71939         (__argp_failure): Don't assume strerror_r returns char *.
71940         * lib/argp-parse.c (N_): Define unconditionally.
71941         (argp_default_options): Fill out initializers with 0 to avoid
71942         gcc warnings.
71943
71944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71947         getopt1.c.
71948
71949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         Merge from coreutils.
71952
71953         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71954
71955         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71956         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71957
71958 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         Merge from coreutils.
71961
71962         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71963         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71964         for Reliant Unix 5.43.
71965
71966         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71967         (union fooround): Use uintmax_t, not long int.
71968         The rest is a merge from libc:
71969         [defined _LIBC]: Include <shlib-compat.h>.
71970         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71971
71972         * lib/settime.c (settime): Recode to avoid warning with
71973         Sun Forte C 6U2.
71974
71975         * lib/strverscmp.c: Convert to UTF-8.
71976
71977 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71980         m4/uintmax_t.m4.
71981
71982 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * modules/xalloc-die: New file.
71985         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71986
71987         * modules/md5 (Files): Add m4/uint32_t.m4.
71988         * modules/sha1: Renamed from modules/sha.
71989         (Files):
71990         Rename lib/sha.h to lib/sha1.h.
71991         Rename lib/sha.c to lib/sha1.c.
71992         Rename m4/sha.m4 to m4/sha1.m4.
71993         (lib_SOURCES): Likewise.
71994         (configure.ac): Rename gl_SHA to gl_SHA1.
71995         (Include): sha.h -> sha1.h.
71996
71997 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72000         * m4/sha1.m4: Renamed from sha.m4.
72001         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72002
72003 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72004
72005         * lib/obstack.h (obstack_empty_p):
72006         Don't assume that chunk->contents is suitably aligned.
72007         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72008         Likewise. Problem reported by Benno in
72009         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72010
72011         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72012         readable.  This could be improved further but it'd take some work.
72013
72014 2004-08-08  Simon Josefsson  <jas@extundo.com>
72015
72016         * modules/xgethostname (Depends-on): Remove exit and error (not
72017         used).
72018
72019         * modules/getpass-gnu: Add getpass.h.
72020         (Depends-on): Add stdbool.
72021         * modules/getpass: Add getpass.h.
72022
72023 2004-08-08  Simon Josefsson  <jas@extundo.com>
72024
72025         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72026         Check getpass declaration.
72027
72028 2004-08-08  Simon Josefsson  <jas@extundo.com>
72029
72030         * lib/xgethostname.c: Don't include error.h (not used).
72031
72032         * lib/getpass.h: Add.
72033         * lib/getpass.c: Include getpass.h first.
72034
72035 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         * lib/xalloc-die.c: New file.
72038         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72039         All uses removed.
72040         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72041         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72042         xalloc-die.c.
72043         (_, N_, xalloc_die): Move to xalloc-die.c.
72044         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72045         so that we needn't mess with xalloc_msg_memory_exhausted.
72046
72047         * lib/sha1.h: Renamed from sha.h.
72048         (SHA1_H): Renamed from _SHA_H.
72049         (sha1_ctx): Renamed from sha_ctx.
72050         (sha1_init_ctx): Renamed from sha_init_ctx.
72051         (sha1_process_block): Renamed from sha_process_block.
72052         (sha1_process_bytes): Renamed from sha_process_bytes.
72053         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72054         (sha1_read_ctx): Renamed from sha_read_ctx.
72055         (sha1_stream): Renamed from sha_stream.
72056         (sha1_buffer): Renamed from sha_buffer.
72057         * lib/sha1.c: Likewise; renamed from sha.c.
72058         Do not include <sys/types.h>.
72059         Include <stddef.h> rather than <stdlib.h>.
72060
72061 2004-08-08  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72064         FILESYSTEM_PREFIX_LEN.
72065         * lib/progreloc.c: Likewise.
72066         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72067
72068 2004-08-06  Simon Josefsson  <jas@extundo.com>
72069
72070         * modules/progname (Depends-on): Don't depend on stdbool.
72071
72072 2004-08-06  Simon Josefsson  <jas@extundo.com>
72073
72074         * modules/getsubopt: New file.
72075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72076         getsubopt.
72077
72078 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         More merge from coreutils.
72081
72082         * m4/utimens.m4, m4/utimecmp.m4: New files.
72083         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72084         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72085         prereq.m4, sha.m4: Import changes from coreutils.
72086
72087 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         More merge from coreutils.
72090         * modules/raise, modules/readtokens0, modules/utimens:
72091         * modules/utimecmp, module/xnanosleep: New files.
72092         * modules/strftime: Add lib/strftime.h.
72093         Change include from <time.h> to "strftime.h".
72094         * modules/yesno: Add lib/yesno.h.
72095         * modules/backupfile: Remove lib/addext.c.
72096         * modules/euidaccess: Add stat-macros.h.
72097         * modules/canonicalize, modules/euidaccess,
72098         modules/filemode, modules/lchown, modules/makepath,
72099         modules/rmdir, modules/stat: Likewise.
72100
72101 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         Merge from tar.
72104         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72105         SIZE_MAX is a valid preprocessor constant.
72106         (__argp_basename): Change from "#ifndef _LIBC"
72107         to "#ifndef __argp_short_program_name", so that
72108         we don't compile these functions for tar.
72109
72110         More merges from coreutils.
72111         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72112         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72113         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72114         * lib/addext.c: Remove; no longer needed.
72115         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72116         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72117         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72118         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72119         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72120         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72121         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72122         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72123         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72124         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72125         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72126         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72127         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72128         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72129         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72130         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72131         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72132         Import changes from coreutils.
72133
72134 2004-08-05  Simon Josefsson  <jas@extundo.com>
72135
72136         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72137
72138 2004-08-05  Simon Josefsson  <jas@extundo.com>
72139
72140         * m4/getsubopt.m4: New file.
72141
72142 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         Merge from coreutils.
72145
72146         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72147         * m4/getcwd-path-max.m4: New files.
72148
72149         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72150         FILESYSTEM_PREFIX_LEN ->
72151         FILE_SYSTEM_PREFIX_LEN.
72152         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72153         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72154         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72155         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72156
72157         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72158         prerequisite modules now handle the DOS stuff.
72159         Don't check for unistd.h.
72160
72161 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         Merge from coreutils.
72164
72165         * lib/.gdb-history: Remove; this doesn't belong here.
72166
72167         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72168         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72169         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72170         * lib/getcwd.c: New files.
72171
72172         * lib/dirname.h: Include <stdbool.h>.
72173         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72174         for consistency with POSIX terminology.  All uses changed.
72175         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72176         (strip_trailing_slashes): Use bool for booleans.
72177         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72178
72179         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72180         sometimes returns a positive errno value even when it succeeds.
72181         (print_errno_message) [!LIBC]: Fall back on strerror if
72182         __strerror_r fails.
72183
72184         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72185         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72186         (longest_relative_suffix): New function.
72187         (path_concat): Use it.  Assume first argument is not NULL.
72188         Port to DOS.  Omit redundant separators.
72189         Report an error instead of returning NULL.
72190         Use mempcpy instead of memcpy.
72191         (xpath_concat): Remove: not declared or used.
72192
72193         * lib/same.h: Include <stdbool.h>
72194         (same_name): Return bool, not int.
72195         * lib/same.c (same_name): Likewise.
72196         (errno): Don't declare; we assume C89 or better now.
72197
72198         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72199         if not already defined.
72200
72201         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72202         * lib/dup-safer.c (errno): Likewise.
72203
72204 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         Merge from coreutils.
72207         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72208         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72209         * modules/path-concat: Don't depend on strdup.
72210
72211 2004-08-03  Simon Josefsson  <jas@extundo.com>
72212
72213         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72214         * lib/progname.h: Don't include stdbool.h.
72215
72216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72219         * MODULES.html.sh (func_all_modules): Remove fatal.
72220
72221 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72222
72223         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72224
72225 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72228         working.
72229
72230 2004-08-02  Simon Josefsson  <jas@extundo.com>
72231
72232         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72233         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72234         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72235
72236 2004-08-01  Simon Josefsson  <jas@extundo.com>
72237
72238         * lib/xgetdomainname.c: Include stdlib.h, for free().
72239
72240 2004-07-19  Bruno Haible  <bruno@clisp.org>
72241
72242         * MODULES.html.sh (func_all_modules): Add dummy.
72243
72244 2004-07-16  Simon Josefsson  <jas@extundo.com>
72245
72246         * modules/dummy: New file.
72247
72248 2004-07-16  Simon Josefsson  <jas@extundo.com>
72249
72250         * lib/dummy.c: New file.
72251
72252 2004-07-16  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/backupfile.h: Add extern "C" for C++.
72255         * lib/closeout.h: Likewise.
72256         * lib/copy-file.h: Likewise.
72257         * lib/findprog.h: Likewise.
72258         * lib/full-write.h: Likewise.
72259         * lib/pathname.h: Likewise.
72260         * lib/progname.h: Likewise.
72261         * lib/stpcpy.h: Likewise.
72262         * lib/stpncpy.h: Likewise.
72263         * lib/strcase.h: Likewise.
72264         * lib/strstr.h: Likewise.
72265         * lib/xalloc.h: Likewise.
72266
72267         * lib/mbswidth.h: Add extern "C" for C++.
72268         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72269
72270 2004-07-13  Robert Millan  <robertmh@gnu.org>
72271
72272         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72273
72274 2004-07-09  Simon Josefsson  <jas@extundo.com>
72275
72276         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72277         failed without this.)
72278
72279 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * modules/chown (Files): Add lib/fchown-stub.c, since
72282         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72283
72284 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * lib/fchown-stub.c: New file.
72287
72288 2004-06-24  Jim Meyering  <jim@meyering.net>
72289
72290         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72291
72292 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * modules/argz: Omit "#include".
72295
72296         * MODULES.html.sh (func_all_modules): Add calloc, to match
72297         2004-06-01 addition of calloc module.
72298
72299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         * m4/argz.m4: New file, which is autoupdated from libtool.
72302
72303 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72306         libtool.
72307
72308 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72309
72310         * config/srclist-update: Don't insist on "USA." before the
72311         close-comment, as libtool omits the period and puts the */ on a
72312         separate line.
72313         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72314         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72315
72316 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72317
72318         * modules/argz: New file.
72319         * MODULES.html.sh (func_all_modules): Add argz.
72320
72321 2004-06-12  Jim Meyering  <jim@meyering.net>
72322         and  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * modules/hash (Files): Add lib/xalloc.h.
72325         * modules/pipe (Depends-on): Add wait-process.
72326         * modules/stat (Depends-on): Add xalloc.
72327         * modules/userspec (Files): Add lib/userspec.h.
72328         * modules/xstrto
72329
72330         Upgrade from gettext-0.13.
72331         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72332         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72333         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72334
72335 2004-06-10  Jim Meyering  <jim@meyering.net>
72336
72337         * lib/calloc.c: New file.
72338
72339 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/getdate.y (yylex): Allow space between sign and number.
72342         Problem reported by Dan Jacobson.
72343
72344 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         Merge from coreutils CVS.
72347
72348         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72349         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72350         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72351         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72352         xstrtol.m4: Fix copyright date and/or serial number.
72353
72354         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72355         See if we need an fchown replacement.
72356         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72357         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72358         and use the replacement function if we detect either defect.
72359
72360         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72361         gl_UTIMECMP.
72362
72363 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72364         and  Jim Meyering  <jim@meyering.net>
72365
72366         Merge from coreutils CVS.
72367
72368         * lib/stat-macros.h: New file, with contents from file-type.h
72369         and coreutils' system.h.
72370         * lib/file-type.c: Include "stat-macros.h".
72371         * lib/file-type.h (file_type): Move all macro definitions to new file,
72372         stat-macros.h.
72373
72374         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72375         Wrap old code with this conditional.
72376         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72377         function that does not dereference symlinks.
72378         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72379
72380         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72381         dependency problems.
72382         (xreadlink): Accept new arg SIZE, for efficiency.
72383         All decls and uses changed.
72384         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72385
72386         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72387         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72388
72389         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72390         sysexits.h.
72391
72392 2004-06-01  Jim Meyering  <jim@meyering.net>
72393
72394         * m4/calloc.m4: New file.
72395
72396 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72399         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72400         Also, fix a typo in a diagnostic.
72401
72402 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72405         or AC_FUNC_REALLOC.
72406
72407 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72410         macros to be defined.
72411         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72412         the allocator returns NULL because the requested size is zero.
72413
72414 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72417         var.  Add comment explaining why libc still defines it.  This
72418         merges the following patch from glibc:
72419         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72420
72421 2004-05-20  Andreas Schwab  <schwab@suse.de>
72422
72423         * m4/free.m4: Replace free if it not known to work, not the other
72424         way round.
72425
72426 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72429         present in glibc since revision 1.1 of this file.
72430         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72431         obstack_alignment_mask, obstack_alloc, obstack_base,
72432         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72433         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72434         obstack_grow0, obstack_init, obstack_int_grow,
72435         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72436         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72437         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72438         nonexistent functions.
72439
72440 2004-05-18  Karl Berry  <karl@gnu.org>
72441
72442         * config/srclist.txt: break link for vasnprintf.c.
72443
72444 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         Port obstack to the AS/400, where pointers are 16 bytes wide and
72447         you cannot cast an integer to a valid pointer.  This patch is
72448         currently waiting to be integrated into glibc; see
72449         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72450
72451         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72452         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72453         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72454         (struct obstack): temp member is now a union of a pointer and
72455         an integer, instead of an integer.  All integer uses changed.
72456         This does not affect the physical layout of struct obstack,
72457         except on hosts (like the AS/400) where the size or alignment of
72458         void * is greater than that of ptrdiff_t.
72459         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72460         __STDC__)]: Store temporary in pointer member of union, not
72461         integer member.
72462         * lib/obstack.c: Include <stddef.h>, for offsetof.
72463         (struct fooalign): Remove; it doesn't need a name.
72464         (union fooround): Change double to long double, and add void *.
72465         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72466         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72467         not a macro.  Hence the values are always int; so remove all
72468         casts-to-int in uses.
72469
72470 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72471
72472         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72473         we can get this patch merged into glibc.
72474
72475 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72476             Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * m4/argp: Depend on alloca.
72479
72480 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72481             Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72484         freecoding.
72485
72486 2004-05-17  Bruno Haible  <bruno@clisp.org>
72487
72488         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72489         precision that consists of a '.' followed by an empty digit string.
72490         Patch by Tor Lillqvist <tml@iki.fi>.
72491
72492 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72495         for backward compatibility with older code.  We need our own
72496         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72497         it under some other name, and our alloca.h will define it.
72498
72499 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72500             Derek Price  <derek@ximbiot.com>
72501
72502         * lib/alloca.c: Include <alloca.h>, to get our interface.
72503         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72504         include <alloca.h> first.  Use C89 prototype for alloca; this
72505         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72506         Use #elif for simplicity, since we can assume C89 now.
72507         Don't try to source the system alloca.h since it will not be found
72508         and to prevent recursively including its replacement.
72509         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72510         * lib/regex.c: Likewise.
72511
72512 2004-05-16  Derek Price  <derek@ximbiot.com>
72513             Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         getline cleanup.  This changes the getndelim2 API: both order of
72516         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72517         no delimiter).
72518
72519         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72520         interface does that.
72521         (getline): Always use getdelim, so that we don't have two
72522         copies of this code.
72523         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72524         if available.
72525         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72526         (GETNDELIM2_MAXIMUM): New macro.
72527         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72528         instead of the old practice of delim2==0.  All callers changed.
72529         Return -1 on overflow, instead of returning junk.
72530         Do not set *linesize unless allocation succeeds.
72531         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72532         that we include sys/types.h.
72533         * lib/getnline.h: Likewise.
72534         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72535         (getndelim2): Reorder arguments.
72536         * lib/getnline.c (getnline, getndelim):
72537         Don't discard the NMAX argument.
72538         (getnline): Invoke getndelim, to avoid code duplication.
72539         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72540         of (size_t) -1 by callers of the getnline family.
72541
72542 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72545         Check for gettimeofday.
72546         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72547         Check for settimeofday, stime.
72548
72549 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72550
72551         * lib/nanosleep.c (suspended): Change its type from int to
72552         sig_atomic_t volatile.
72553         (first_call): Make it private to rpl_nanosleep, and have it
72554         be zero initially as that's a bit faster.
72555         (my_usleep): Round up fractional times instead of truncating them,
72556         as this is the usual meaning for 'sleep'.
72557
72558         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72559         doesn't work.
72560         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72561         (ENOSYS): Define if not defined.
72562         (settime): Fall back on stime if it exists and settimeofday fails.
72563         But don't bother with fallbacks if a method fails with errno == EPERM.
72564
72565 2004-05-11  Jim Meyering  <jim@meyering.net>
72566
72567         Prior to this change, the save_cwd caller required read access to the
72568         current directory on most systems (ones with the fchdir function).
72569
72570         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72571         fails, try write-only, and finally, resort to using xgetcwd.
72572
72573 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         * lib/obstack.c, obstack.h: Import changes from libc.
72576
72577 2004-04-28  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72580         also implicitly appends .exe to executables.
72581         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72582         accepts Windows pathnames.
72583         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72584         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72585         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72586         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72587         Reported by Derek Robert Price <derek@ximbiot.com>.
72588
72589 2004-04-21  Karl Berry  <karl@gnu.org>
72590
72591         * config/srclist.txt (localcharset.c): break sync.
72592
72593 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72594
72595         * m4/host-os.m4: Add a copyright notice.
72596
72597 2004-04-20  Jim Meyering  <jim@meyering.net>
72598
72599         Change UTILS_ to gl_ in AC_DEFINE'd names.
72600         Change utils_- and jm_-prefixed variables, too.
72601         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72602         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72604
72605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72606         Don't emit trailing blanks.
72607         Also rename jm_-prefixed variables to have gl_ prefix.
72608
72609         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72610         Also rename jm_-prefixed variables to have gl_ prefix.
72611
72612         * m4/jm-macros.m4: Reflect the renamings.
72613         * m4/prereq.m4: Likewise.
72614
72615 2004-04-20  Jim Meyering  <jim@meyering.net>
72616
72617         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72618         memory.
72619
72620 2004-04-20  Jim Meyering  <jim@meyering.net>
72621             Bruno Haible  <bruno@clisp.org>
72622
72623         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72624         memory when realloc fails.
72625
72626 2004-04-19  Jim Meyering  <jim@meyering.net>
72627
72628         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72629         now that readutmp.c may call `free (0)'.
72630
72631 2004-04-19  Bruno Haible  <bruno@clisp.org>
72632
72633         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72634         * m4/inttypes_h.m4: Likewise.
72635         * m4/stdint_h.m4: Likewise.
72636         * m4/intmax_t.m4: Likewise.
72637         * m4/uintmax_t.m4: Likewise.
72638
72639 2004-04-18  Jim Meyering  <jim@meyering.net>
72640
72641         * m4/prereq.m4: Don't forbid jm_ prefix.
72642
72643         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72644         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72645         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72646         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72647         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72648         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72649         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72650         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72651         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72652         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72653         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72654         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72655         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72656         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72657         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72658         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72659         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72660         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72661         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72662
72663 2004-04-18  Jim Meyering  <jim@meyering.net>
72664
72665         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72666         failure, don't leak memory and do call END_UTMP_ENT.
72667
72668 2004-04-16  Jim Meyering  <jim@meyering.net>
72669
72670         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72671         coreutils' stat program.
72672         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72673
72674 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72675
72676         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72677         C89.
72678         (CHAR_BIT): Remove, since we assume C89.
72679         Include <stdint.h> if available, as per current Autoconf CVS advice.
72680
72681 2004-03-31  Jim Meyering  <jim@meyering.net>
72682
72683         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72684         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72685         * m4/xalloc.m4: Likewise.
72686
72687 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72688
72689         Merge from coreutils.
72690
72691         * m4/inttostr.m4: New file.
72692         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72693         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72694         Require gl_CLOCK_TIME.
72695         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72696
72697 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72698
72699         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72700         not bool, to be more consistent with Unix conventions.
72701         Suggested by Bruno Haible.
72702
72703         Merge from coreutils.
72704
72705         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72706         * lib/umaxtostr.c: New files.
72707
72708         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72709         the usual <time.h> dance.
72710         (get_date): Change signature to support fractional time stamps.
72711         All callers changed.
72712         * lib/getdate.y: Include "getdate.h" first, as we can now
72713         assume C89 and don't need to worry about 'const'.
72714         Similarly, include "unlocked-io.h" near start, not in middle.
72715         Include <limits.h>.
72716         (textint.value): Use long int rather than int.
72717         (textint.digits): Use size_t rather than int.
72718         (BILLION, LOG10_BILLION): New constants.
72719         (parser_control): New member rel_ns.  Members day_ordinal,
72720         time_zone, month, day, hour, minutes, rel_year, rel_month,
72721         rel_day, rel_hour, rel_minutes, rel_seconds
72722         are now long int, not int.  Member seconds is now struct timespec,
72723         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72724         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72725         not int.
72726         (%union.intval): Now long int, not int.
72727         New member timespec.
72728         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72729         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72730         (spec): Now is a timespec or an item list.
72731         (timespec, items): New nonterminals.
72732         (time, rel, relunit, number, get_date):
72733         Add support for fractional seconds.
72734         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72735         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72736         (to_hour): First arg is now long int, not int.
72737         (to_year): Returns long int, not int.
72738         Don't treat year -70 like 70.
72739         (tm_diff): Returns long int, not int.
72740         (lookup_word): Use bool instead of int when appropriate.
72741         (yylex): Use size_t for count, not int.
72742         Detect overflow when parsing large integer constants.
72743         Add support for fractions.
72744         (get_date): Make pointers 'const' if possible.
72745         Use more-portable code to detect integer overflow.
72746         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72747         Don't use ctime; it's not reliable if the year has >4 digits.
72748
72749         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72750         This is for compatibility with BSD.
72751
72752         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72753         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72754         From coreutils' system.h.
72755
72756         * lib/userspec.c: Don't include "posixver.h".
72757         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72758         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72759         compatible extension.  Simplify code by removing a boolean int
72760         that was always nonzero if a string was nonnull.
72761
72762 2004-03-30  Jim Meyering  <jim@meyering.net>
72763
72764         Merge from coreutils.
72765
72766         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72767         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72768         on some systems one must include <grp.h> before it.
72769         Reported by Christian Krackowizer.
72770
72771 2004-03-30  Jim Meyering  <jim@meyering.net>
72772
72773         Merge from coreutils.
72774
72775         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72776
72777         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72778         an empty input stream.
72779
72780         * lib/readtokens.c: Include <stdbool.h>.
72781         (readtoken): Use `size_t' rather than int/long.
72782         All callers adjusted.
72783         Use `bool' rather than `int' where appropriate.
72784         Use memset rather than an explicit loop.
72785         Use x2nrealloc rather than xrealloc.
72786         Allow the use of `\0' as a delimiter.
72787         (readtokens): Likewise.
72788         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72789
72790 2004-03-30  Jim Meyering  <jim@meyering.net>
72791
72792         * m4/realloc.m4: Remove file, since now it does no more than
72793         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72794         the `configure.ac' section of module/realloc.
72795         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72796
72797 2004-03-30  Bruno Haible  <bruno@clisp.org>
72798
72799         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72800         nonnull.
72801
72802 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72803
72804         Merge changes to getloadavg.c from coreutils and Emacs.
72805
72806         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72807         Define to an expression, not to the empty string.
72808         Include cloexec.h and xalloc.h.
72809         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72810         Use set_cloexec_flag rather than rolling our own.
72811         * lib/cloexec.c, lib/cloexec.h: New files.
72812
72813 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72814
72815         * m4/cloexec.m4: New file.
72816
72817 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72818
72819         * lib/getopt.h: Sync with libc CVS.
72820
72821 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72822             Bruno Haible  <bruno@clisp.org>
72823
72824         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72825         mbswidth.
72826
72827 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72828             Bruno Haible  <bruno@clisp.org>
72829
72830         * lib/mbswidth.h: Include <wchar.h> only if
72831         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72832         <wchar.h>.
72833         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72834
72835 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72836
72837         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72838         Sync with libc CVS.
72839         * lib/getopt_int.h: New file, also synced from libc.
72840
72841 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72842
72843         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72844         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72845         Bring back getopt.c, getopt.h, getopt1.c.
72846
72847 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72848
72849         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72850         All uses changed.  Check for sa_sigaction member; this fixes
72851         a bug first reported by Jason Andrade in
72852         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72853
72854 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72855
72856         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72857         '#if' expressions.  Unlike the code it replaces, it does not
72858         depend on (defined _SC_PAGESIZE).  However, it does depend on
72859         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72860         first reported by Jason Andrade in
72861         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72862
72863 2004-02-25  Simon Josefsson  <jas@extundo.com>
72864
72865         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72866
72867 2004-02-25  Simon Josefsson  <jas@extundo.com>
72868
72869         * lib/strdup.h: New file.
72870         * lib/strdup.c: Include it.
72871         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72872         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72873
72874 2004-02-23  Karl Berry  <karl@gnu.org>
72875
72876         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72877         (from fencepost.gnu.org:/gd/gnuorg).
72878
72879 2004-02-23  Karl Berry  <karl@gnu.org>
72880
72881         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72882         * config/srclist.txt: add maintain/standards documents.
72883
72884 2004-02-18  Bruno Haible  <bruno@clisp.org>
72885
72886         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72887         Reported by Derek Robert Price <derek@ximbiot.com>.
72888
72889 2004-02-16  Karl Berry  <karl@gnu.org>
72890
72891         * config/mkinstalldirs, install-sh: update from automake.
72892
72893 2004-02-06  Karl Berry  <karl@gnu.org>
72894
72895         * m4/po.m4: update from gettext 0.14.1.
72896
72897 2004-02-06  Karl Berry  <karl@gnu.org>
72898
72899         * lib/config.charset: update from gettext 0.14.1.
72900
72901 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72902
72903         Add comments and code, prompted by suggestions from Bruno Haible
72904         for sh-quote.
72905         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72906         describing the enum quoting_style values.
72907         * lib/quotearg.c (quotearg_alloc): New function.
72908         (quotearg_buffer_restyled): Treat lone { and } as special.
72909         Treat = as special.  Work around bug with older shells
72910         that "see" a '\' that is really the 2nd byte of a multibyte char.
72911         Quote empty string with shell_quoting_style.
72912
72913 2004-02-03  Bruno Haible  <bruno@clisp.org>
72914
72915         * m4/pipe.m4: New file, from GNU gettext.
72916
72917 2004-02-03  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/pipe.h: New file, from GNU gettext.
72920         * lib/pipe.c: New file, from GNU gettext.
72921
72922 2004-01-27  Bruno Haible  <bruno@clisp.org>
72923
72924         * m4/execute.m4: New file, from GNU gettext.
72925
72926 2004-01-27  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/execute.h: New file, from GNU gettext.
72929         * lib/execute.c: New file, from GNU gettext.
72930         * lib/w32spawn.h: New file, from GNU gettext.
72931
72932 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72933
72934         Merge from diffutils.
72935
72936         * lib/file-type.c (file_type): Add typed memory objects.
72937         * lib/file-type.h (S_TYPEISTMO): New macro.
72938
72939         * lib/c-stack.h (c_stack_action): Remove argv argument.
72940         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72941         (die): Don't calculate message unless segv_action returns.
72942         (get_stack_location, min_address_from_argv, max_address_from_argv,
72943         volatile stack_base, volatile_stack_size): Remove.
72944         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72945         that every segmentation violation is a stack overflow.  (Ouch!)
72946         See Debian bug 136249 (still outstanding) for more info about why
72947         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72948
72949 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72950
72951         Exit-status fix from coreutils.
72952
72953         Use exit_failure consistently in place of EXIT_FAILURE,
72954         so that program exit statuses are consistent on failure.
72955
72956         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72957         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72958         * lib/argmatch.h: Comment fix to match the above.
72959         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72960         Now a macro referring to exit_failure, instead of a separate
72961         variable.  Include "exitfail.h" to get it.
72962         * lib/xstrtol.h: Include "exitfail.h".
72963         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72964
72965         * lib/long-options.c (parse_long_options): Use prototype
72966         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72967         for clarity.
72968
72969 2004-01-21  Jim Meyering  <jim@meyering.net>
72970
72971         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72972         so as not to conflict with a different-sized __mktime_internal
72973         function in GNU libc.
72974         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72975         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72976
72977 2004-01-20  Karl Berry  <karl@gnu.org>
72978
72979         * config/config.guess: update from config.
72980
72981         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72982
72983 2004-01-20  Bruno Haible  <bruno@clisp.org>
72984
72985         Safer stack allocation.
72986         * lib/setenv.c: Include allocsa.h.
72987         (alloca): Remove fallback definition.
72988         (freea): Remove macro.
72989         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72990         instead of freea.
72991
72992 2004-01-20  Bruno Haible  <bruno@clisp.org>
72993
72994         * m4/eealloc.m4: New file, from GNU gettext.
72995
72996 2004-01-20  Bruno Haible  <bruno@clisp.org>
72997
72998         * m4/allocsa.m4: New file, from GNU gettext.
72999
73000 2004-01-20  Bruno Haible  <bruno@clisp.org>
73001
73002         * lib/xallocsa.h: New file, from GNU gettext.
73003         * lib/xallocsa.c: New file, from GNU gettext.
73004
73005 2004-01-20  Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73008
73009 2004-01-20  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73012         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73013         specially.
73014
73015 2004-01-20  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73018         patch.
73019
73020 2004-01-20  Bruno Haible  <bruno@clisp.org>
73021
73022         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73023
73024 2004-01-20  Bruno Haible  <bruno@clisp.org>
73025
73026         * lib/eealloc.h: New file.
73027
73028 2004-01-20  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/binary-io.h: Avoid warnings on Cygwin.
73031
73032 2004-01-20  Bruno Haible  <bruno@clisp.org>
73033
73034         * lib/allocsa.h: New file, from GNU gettext.
73035         * lib/allocsa.c: New file, from GNU gettext.
73036
73037 2004-01-18  Karl Berry  <karl@gnu.org>
73038
73039         * doc/gpl.texi, doc/lgpl.texi: new files.
73040
73041 2004-01-18  Karl Berry  <karl@gnu.org>
73042
73043         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73044         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73045
73046 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73047
73048         Merge from coreutils.
73049
73050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73051         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73052         (gl_DEFAULT_POSIX2_VERSION): Move
73053         the documentation from 'configure' into 'config.hin',
73054         so that 'configure --help' isn't burdened by it and
73055         we don't have to worry about its formatting there.
73056         Reword the documentation so that it's more succinct
73057         and can be run together into a single paragraph.
73058         * m4/same.m4 (gl_SAME): Check for pathconf.
73059
73060 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73061
73062         Merge from coreutils.
73063
73064         * lib/posixver.c: Include posixver.h.
73065
73066         * lib/same.c: Include <stdbool.h>, <limits.h>.
73067         (_POSIX_NAME_MAX): Define if not defined.
73068         (MIN): New macro.
73069         (same_name): If file names are silently truncated, report
73070         that the file names are the same if they are the same after
73071         the silent truncation.
73072
73073         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73074         conversion function.
73075         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73076         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73077         longer needed.
73078
73079 2004-01-15  Jim Meyering  <jim@meyering.net>
73080
73081         Merge from coreutils.
73082
73083         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73084         if no library is required.
73085         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73086         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73087         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73088         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73089         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73090         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73091         value, $ac_cv_search_crypt, if it's "none required".
73092         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73093         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73094         not gl_FUNC_GETLOADAVG.
73095         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73096         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73097
73098 2004-01-15  Jim Meyering  <jim@meyering.net>
73099
73100         Merge from coreutils.
73101
73102         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73103         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73104         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73105
73106         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73107         optional configure-time default.
73108
73109         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73110
73111         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73112
73113 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73114
73115         Merge from coreutils.
73116
73117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73118         value, $ac_cv_search_nanosleep, if it's "none required".
73119
73120 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73121
73122         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73123         with like-named macro in fnmatch.c.
73124         (EXT): Use an internal constant instead.
73125
73126         Merge fnmatch patches from glibc.
73127         * lib/fnmatch.c (mbsinit): Remove define.
73128         Add libc_hidden_ver (__fnmatch, fnmatch).
73129         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73130         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73131
73132 2004-01-14  Karl Berry  <karl@gnu.org>
73133
73134         * config/install-sh: update from automake.
73135
73136 2004-01-13  Karl Berry  <karl@gnu.org>
73137
73138         * config/install-sh: update from automake.
73139
73140 2004-01-09  Karl Berry  <karl@gnu.org>
73141
73142         * config/install-sh: update from automake.
73143
73144 2004-01-05  Karl Berry  <karl@gnu.org>
73145
73146         * config/config.{sub,guess}: update from config.
73147
73148 2003-12-31  Karl Berry  <karl@gnu.org>
73149
73150         * config/depcomp: update from automake.
73151
73152 2003-12-14  Karl Berry  <karl@gnu.org>
73153
73154         * lib/config.charset: update from gettext-runtime.
73155
73156 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73157
73158         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73159         Bug reported by Alfred M. Szmidt.
73160
73161 2003-12-03  Bruno Haible  <bruno@clisp.org>
73162
73163         * m4/gettext.m4: Upgrade from gettext-0.13.
73164         * m4/po.m4: Upgrade from gettext-0.13.
73165         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73166         * m4/intmax.m4: New file, from gettext-0.13.
73167         * m4/printf-posix.m4: New file, from gettext-0.13.
73168
73169 2003-11-29  Karl Berry  <karl@gnu.org>
73170
73171         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73172
73173 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73174             Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/printf-parse.h: Don't include sys/types.h.
73177         (ARG_NONE): New macro.
73178         (char_directive): Change type of *arg_index fields to size_t.
73179         * lib/printf-parse.c: Don't include sys/types.h.
73180         (SSIZE_MAX): Remove macro.
73181         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73182         Remove unnecessary overflow check.
73183         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73184         fields.
73185
73186 2003-11-25  Bruno Haible  <bruno@clisp.org>
73187
73188         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73189
73190 2003-11-25  Bruno Haible  <bruno@clisp.org>
73191
73192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73193         gt_TYPE_SSIZE_T.
73194
73195 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73196
73197         * modules/alloca: Remove dependency on xalloc.
73198
73199 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73200
73201         * lib/alloca.c: Remove dependency on xalloc module.
73202         (xalloc_die): Remove.
73203         (memory_full) [!defined emacs]: New macro.
73204         [!defined emacs]: Don't include xalloc.h.
73205         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73206         address arithmetic overflows.  Change datatypes a bit to avoid
73207         unnecessary casts.
73208
73209 2003-11-22  Jim Meyering  <jim@meyering.net>
73210
73211         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73212         s/size/size_t/.
73213
73214 2003-11-21  Karl Berry  <karl@gnu.org>
73215
73216         * config/config.{sub,guess}: update from config.
73217
73218 2003-11-18  Karl Berry  <karl@gnu.org>
73219
73220         * config/config.{sub,guess}: update from config.
73221
73222         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73223
73224 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73225
73226         * README: Mention that S+T cannot overflow if S is the size of
73227         an existing object and T is sufficiently small.
73228
73229 2003-11-17  Jim Meyering  <jim@meyering.net>
73230
73231         On systems without utime and without a utimes function capable of
73232         dealing with a NULL struct utimbuf* argument, this utime replacement
73233         could -- in unusual circumstances -- leak a file descriptor.
73234         * lib/utime.c: Include <unistd.h> and <errno.h>.
73235         (utime_null): Be sure to close `fd' and to preserve errno.
73236         Reported by Geoff Collyer via Arnold Robbins.
73237
73238 2003-11-17  Bruno Haible  <bruno@clisp.org>
73239
73240         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73241         (Depends-on): Add xsize.
73242
73243 2003-11-17  Bruno Haible  <bruno@clisp.org>
73244
73245         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73246
73247 2003-11-17  Bruno Haible  <bruno@clisp.org>
73248
73249         * lib/vasnprintf.c (alloca): Remove fallback definition.
73250         (freea): Remove definition.
73251         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73252         Reported by Paul Eggert.
73253
73254 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73255             Bruno Haible  <bruno@clisp.org>
73256
73257         Protect against address arithmetic overflow.
73258         * lib/printf-args.h: Include stddef.h.
73259         (arguments): Change type of field 'count' to size_t.
73260         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73261         'unsigned int' where appropriate.
73262         * lib/printf-parse.h: Include sys/types.h.
73263         (char_directive): Change type of *arg_index fields to ssize_t.
73264         (char_directives): Change type of fields 'count', max_*_length to
73265         size_t.
73266         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73267         (SSIZE_MAX): Define fallback value.
73268         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73269         instead of 'int' where appropriate. Check a_allocated, d_allocated
73270         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73271         * lib/vasnprintf.c: Include xsize.h.
73272         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73273         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73274         overflow. Avoid wraparound when converting a width or precision from
73275         decimal to binary.
73276
73277 2003-11-16  Bruno Haible  <bruno@clisp.org>
73278
73279         Update from GNU gettext.
73280         * lib/printf-parse.c: Generalize to it can be compiled for wide
73281         strings.
73282         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73283         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73284         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73285         SNPRINTF): New macros.
73286         Don't include <alloca.h> if the file is used inside libintl.
73287         (local_wcslen): New function, for Solaris 2.5.1.
73288         (VASNPRINTF): Use it instead of wcslen.
73289
73290 2003-11-16  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/xsize.h (xmax): New function.
73293         (xsum, xsum3, xsum4): Declare as "pure" functions.
73294
73295 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73296
73297         * modules/xalloc (Files): Undo latest change, since xalloc.h
73298         no longer needs SIZE_MAX or PTRDIFF_MAX.
73299
73300 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73301
73302         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73303         gl_PTRDIFF_MAX.
73304
73305 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73306
73307         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73308         "return", to pacify some unknown compiler.  Problem reported
73309         by Joerg Schilling.
73310
73311 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73312
73313         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73314         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73315         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73316         heuristic is just as accurate as far as we know, and it removes a
73317         dependency on size_max.m4 and ptrdiff_max.m4.
73318
73319 2003-11-11  Bruno Haible  <bruno@clisp.org>
73320
73321         * modules/xsize (Files): Add m4/size_max.m4.
73322         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73323
73324 2003-11-11  Bruno Haible  <bruno@clisp.org>
73325
73326         * m4/size_max.m4: New file.
73327         * m4/ptrdiff_max.m4: New file.
73328         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73329         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73330         (gl_XALLOC): Invoke it.
73331
73332 2003-11-11  Bruno Haible  <bruno@clisp.org>
73333
73334         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73335         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73336         defined.
73337
73338 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73339
73340         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73341         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73342         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73343         From Bruno Haible.
73344         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73345         not (size_t) -1, since it's defined here.
73346
73347 2003-11-09  Karl Berry  <karl@gnu.org>
73348
73349         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73350
73351 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73352
73353         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73354         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73355         Reject sizes of exactly SIZE_MAX bytes.
73356         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73357         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73358
73359 2003-11-05  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73362         SIZE_MAX defined in <limits.h> on Solaris.
73363
73364 2003-11-04  Jim Meyering  <jim@meyering.net>
73365
73366         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73367         variable names, rather than @VAR@.
73368         * modules/poll: Likewise.
73369
73370 2003-11-04  Bruno Haible  <bruno@clisp.org>
73371
73372         * modules/xsize: New file.
73373         * modules/linebreak: Depend on xsize.
73374         * MODULES.html.sh (func_all_modules): Add xsize.
73375
73376 2003-11-04  Bruno Haible  <bruno@clisp.org>
73377
73378         * m4/xsize.m4: New file.
73379
73380 2003-11-04  Bruno Haible  <bruno@clisp.org>
73381
73382         * lib/xsize.h: New file.
73383         * lib/linebreak.c: Include xsize.h.
73384         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73385         argument for overflow.
73386         Suggested by Paul Eggert.
73387
73388 2003-11-03  Karl Berry  <karl@gnu.org>
73389
73390         * config/config.{guess,sub}: update from config.
73391
73392 2003-11-03  Jim Meyering  <jim@meyering.net>
73393
73394         * modules/userspec (lib_SOURCES): Add userspec.h.
73395         (Include): Add "userspec.h".
73396         Improve description.
73397
73398 2003-11-03  Jim Meyering  <jim@meyering.net>
73399
73400         * lib/userspec.c: Include "userspec.h".
73401         * lib/userspec.h: New file.
73402
73403 2003-11-03  Bruno Haible  <bruno@clisp.org>
73404
73405         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73406
73407 2003-11-03  Bruno Haible  <bruno@clisp.org>
73408
73409         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73410         available, to avoid (extremely rare) race condition.
73411         Suggested by Paul Eggert.
73412
73413 2003-11-02  Karl Berry  <karl@gnu.org>
73414
73415         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73416
73417 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73418
73419         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73420         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73421         (read_filesystem_list): Set and use me_type_malloced.
73422         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73423         whatever the type happens to be), for brevity and consistency.
73424         Check for size calculation overflow on Alphas running OSF/1.
73425
73426 2003-10-31  Jim Meyering  <jim@meyering.net>
73427
73428         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73429
73430         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73431
73432 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73433             Bruno Haible  <bruno@clisp.org>
73434
73435         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73436         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73437
73438 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73441         netbsd*-gnu*.  Suggested by Robert Millan.
73442
73443 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73444
73445         * modules/group-member: Depend on stdbool.
73446
73447 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73448
73449         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73450
73451 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73452
73453         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73454         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73455         after the 'gnu' in these cases.  This fixes some bugs in the
73456         previous change, and is based on suggestions by Robert Millan.
73457
73458 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73459
73460         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73461         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73462         no longer needed.
73463         * lib/quotearg.c (quotearg_n_options): Use it.
73464         * lib/group-member.c: Include <stdbool.h>.
73465         (free_group_info): Arg is now const *; don't free arg.
73466         (get_group_info): Now returns bool and accepts struct group_info *,
73467         rather than returning a malloc'ed struct group_info *.
73468         All uses changed.  Check for overflow in internal size calculation.
73469
73470         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73471         rather than xmalloc/xrealloc.
73472         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73473         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73474         conformance bug: the old code used a pointer after freeing the
73475         storage that it addressed.
73476         * lib/hash.c (hash_initialize): Simplify the code by using
73477         xalloc_oversized rather than doing it by hand.
73478         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73479         the buffer preserved.  Use free and xmalloc instead.
73480         * lib/quotearg.c (quotearg_n_options): Likewise.
73481         Use a simpler test for size overflow.  Don't use xalloc_oversized
73482         because unsigned int might be wider than size_t (!); this suggests
73483         that we should switch from unsigned int to size_t for slot numbers.
73484
73485 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73486
73487         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73488         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73489         NetBSD kernels.  Requested by Richard Stallman.
73490
73491 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73492
73493         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73494         to allocate the returned structure.  Do not allocate a subarray,
73495         as x2nrealloc will do that.
73496         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73497         instead of xnrealloc.
73498         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73499
73500 2003-10-27  Bruno Haible  <bruno@clisp.org>
73501
73502         * lib/stdbool_.h: Better support for BeOS.
73503
73504 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73505
73506         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73507         now uses inline.
73508
73509 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73510
73511         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73512         callers that want to do their own size-overflow checking.  Include
73513         <stdbool.h>, since xalloc_oversized returns bool.
73514         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73515         to use xalloc_oversized.
73516
73517         Add two functions x2realloc, x2nrealloc, for programs that grow
73518         arrays dynamically by doubling their sizes.
73519         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73520         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73521         New functions.
73522
73523         Port to C99 semantics for 'inline' of external functions.
73524         Bug reported by Bruno Haible.
73525         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73526         with the old contents of xnmalloc.
73527         (xnmalloc, xmalloc): Use it.
73528         (xnrealloc_inline): New static inline function,
73529         with the old contents of xnrealloc.
73530         (xnrealloc, xrealloc): Use it.
73531
73532         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73533         that.
73534
73535 2003-10-26  Karl Berry  <karl@gnu.org>
73536
73537         * config/srclist.txt (COPYING.DOC): no longer available from
73538         /gd/gnuorg; don't know where the ultimate source is.
73539
73540 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73541
73542         Fix several address-calculation bugs in the hash modules,
73543         plus some minor code cleanup.
73544
73545         * lib/hash.h: Include <stdbool.h>, for bool.
73546         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73547         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73548         hash_get_n_entries, hash_get_max_bucket_length,
73549         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73550         hash_rehash): Use size_t rather than unsigned.
73551         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73552         hash_get_n_buckets_used, hash_get_n_entries,
73553         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73554         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73555         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73556         Likewise.
73557         (SIZE_MAX): Define if not defined.
73558         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73559         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73560         hash_print):
73561         Use const * when possible.
73562         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73563         (check_tuning): Fix bug: if tuning parameters were very close to
73564         0 or 1, rounding errors could have caused subscript violations.
73565         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73566         (hash_initialize): Add 'fail:' label
73567         to free table and return NULL, and use it to simplify code.
73568         Use calloc rather than clearing the storage ourself.
73569         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73570         buffer size calculations.
73571         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73572         Include <stddef.h>, for size_t.
73573         * lib/hash-pjw.c (hash_pjw): Likewise.
73574         Switch to method described by Bruno Haible.
73575         Include <limits.h>, for CHAR_BIT.
73576         (SIZE_BITS): New macro.
73577
73578 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73579
73580         * m4/getline.m4 (AM_FUNC_GETLINE):
73581         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73582         hosts.  Problem reported by Derek Robert Price in
73583         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73584         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73585         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73586
73587 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73588
73589         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73590         ceiling the allocation at NMAX bytes rather than silently
73591         discarding input bytes before NMAX is reached.  This makes
73592         a difference only if NMAX exceeds SIZE_MAX / 2.
73593
73594         * lib/obstack.c: Merge from glibc.
73595         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73596         Add libc_hidden_def (_obstack_newchunk).
73597         (_obstack_free) [! defined _LIBC]: Remove.
73598         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73599         a clone of the function body.
73600         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73601         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73602
73603         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73604         glibc.
73605         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73606         arg to memcpy.
73607
73608         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73609         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73610         Don't use lvalue casts, as GCC plans to remove support for them
73611         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73612         was also present in the non-GCC version, indicating that this
73613         code had always been buggy and had never been widely used.
73614         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73615         Use the fast variant of each macro, rather than copying the
73616         definiens of the fast variant; that way, we'll be more likely to
73617         catch future bugs in the fast variants.
73618
73619 2003-10-20  Bruno Haible  <bruno@clisp.org>
73620
73621         * modules/wait-process: New file.
73622         * MODULES.html.sh (func_all_modules): Add wait-process.
73623
73624 2003-10-20  Bruno Haible  <bruno@clisp.org>
73625
73626         * m4/wait-process.m4: New file.
73627
73628 2003-10-20  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/wait-process.h: New file, from GNU gettext.
73631         * lib/wait-process.c: New file, from GNU gettext.
73632
73633 2003-10-19  Jim Meyering  <jim@meyering.net>
73634
73635         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73636         HPUX 10.20.
73637
73638 2003-10-18  Karl Berry  <karl@gnu.org>
73639
73640         * config/config.guess: update from config.
73641
73642 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73643
73644         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73645         (getgroups): First arg is int, not size_t.
73646         Don't let 'free' mangle errno.
73647
73648 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73649
73650         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73651
73652 2003-10-16  Karl Berry  <karl@gnu.org>
73653
73654         * config/config.{guess,sub}: update from config.
73655
73656 2003-10-16  Jim Meyering  <jim@meyering.net>
73657
73658         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73659         memcpy.
73660
73661 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73662
73663         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73664         (SIZE_MAX): Remove.
73665         (new_exclude, add_exclude_file): Initial size no longer needs to
73666         be a power of 2.
73667         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73668         our own address arithmetic overflow checking.
73669
73670         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73671         (fnmatch): Do not alloca more than 2000 wide characters;
73672         instead, use malloc for large buffers.
73673         Check for address arithmetic overflow, and return -1
73674         with errno set to ENOMEM in that case.
73675         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73676         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73677         instead, return -1.  Check for address arithmetic overflow.
73678
73679 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73680
73681         Handle invalid suffixes and overflow independently, so that
73682         callers can treat them independently as needed.  Fix some bugs in
73683         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73684         suffix for a human-readable blocksize.  The major caller-visible
73685         change is the addition of a new
73686         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73687         that both overflow and suffix chars were found.
73688
73689         * lib/human.c (humblock): Don't check separately for invalid suffix
73690         char; that is xstrtoumax's job (now that its bug is fixed).
73691         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73692         INTMAX_MAX]: New macros.
73693         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73694         TYPE_MAXIMUM): New macros.
73695         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73696         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73697         if overflow occurs, as it's what __strtol does and it's more useful
73698         in practice.
73699         (__xstrtol): If __strtol reports some error other than ERANGE,
73700         reflect it to the caller as LONGINT_INVALID.  If it reports
73701         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73702         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73703         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73704         value.
73705         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73706         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73707         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73708         [defined UINTMAX_MAX]: New macros.
73709
73710 2003-10-14  Bruno Haible  <bruno@clisp.org>
73711
73712         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73713
73714 2003-10-14  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/sig_atomic_t: New file, from GNU gettext.
73717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73718
73719 2003-10-14  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73722         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73723         Also use volatile where needed.
73724
73725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73726
73727         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73728         Change maintainer from Bruno Haible to 'all'.
73729
73730 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73731
73732         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73733
73734 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73735
73736         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73737         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73738         and define in terms of the other primitives.
73739         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73740         (SIZE_MAX): Define if not already defined.
73741         (array_size_overflow): New function.
73742         (xalloc_die): Abort instead of exiting if 'error' returns.
73743         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73744         (xmalloc, xrealloc): Use them.
73745         (xcalloc): Check for address arithmetic overflow.
73746         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73747         a bit faster than strcpy.
73748
73749 2003-10-10  Simon Josefsson  <jas@extundo.com>
73750
73751         * modules/argp (Depends-on): Add restrict and strcase.
73752
73753 2003-10-10  Simon Josefsson  <jas@extundo.com>
73754
73755         * m4/argp.m4: Add AC_C_INLINE.
73756
73757 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73758
73759         Merge getpass from libc, plus a few fixes.
73760
73761         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73762         Include <stdbool.h>.
73763         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73764         __fsetlocking to empty.
73765         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73766         do include <bits/libc-lock.h>.
73767         Do not include <fcntl.h>; not needed.
73768         [_LIBC]: Include <wchar.h>.
73769         (NOTCANCEL_MODE): New macro.
73770         (flockfile, funlockfile) [_LIBC]: New macros.
73771         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73772         [!_LIBC]: New macros.
73773         (call_fclose): New function.
73774         (getpass): Use it.  Save tty stream separately; this simplifies the
73775         code and makes it more reliable if stdin happens to equal stdout.
73776         Invoke __fsetlocking on tty.
73777         Handle thread cancellation if needed.
73778         Namespace cleanup (use __tcgetattr, __getline).
73779         Use bool for Booleans.
73780         [USE_IN_LIBIO]: Handle wide streams.
73781         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73782         stream might go where.
73783
73784         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73785         doesn't have to include <stdio.h> before us.
73786         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73787         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73788         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73789         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73790         if not declared, so that we can use getpass.c code from libc without
73791         rewriting it.
73792         (flockfile, ftrylockfile, funlockfile): New macros.
73793
73794 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73795
73796         * modules/getpass: Depend on stdbool.
73797
73798 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73799
73800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73801
73802 2003-10-07  Karl Berry  <karl@gnu.org>
73803
73804         * config/config.{guess,sub}: update from config.
73805
73806 2003-10-06  Jim Meyering  <jim@meyering.net>
73807             Bruno Haible  <bruno@clisp.org>
73808
73809         This lets translators provide better translations for the
73810         "Written by ..." part of --version output.
73811         * lib/version-etc.h: Include stdarg.h.
73812         (version_etc_copyright): Declare as readonly.
73813         (version_etc): Make this function variadic with a NULL-terminated list
73814         of author name strings.
73815         (version_etc_va): New declaration.
73816         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73817         (version_etc_copyright): Declare as readonly.
73818         (version_etc_va): New function. Provide a different translatable string
73819         for each possible number of authors < 10. Abbreviate when there are 10
73820         authors or more.
73821         (version_etc): Make this function variadic. Call version_etc_va.
73822         Suggestion from Gary V. Vaughan.
73823
73824         * lib/long-options.h (parse_long_options): Change prototype: the
73825         authors string is moved to the end and becomes variadic.
73826         * lib/long-options.c: Include stdarg.h.
73827         (parse_long_options): Make this function variadic, too.
73828         Call version_etc_va, not version_etc.
73829
73830 2003-10-06  Bruno Haible  <bruno@clisp.org>
73831
73832         * modules/version-etc-2: Remove file.
73833         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73834
73835 2003-10-06  Bruno Haible  <bruno@clisp.org>
73836
73837         * modules/fatal-signal: New file.
73838         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73839
73840 2003-10-06  Bruno Haible  <bruno@clisp.org>
73841
73842         * m4/fatal-signal.m4: New file.
73843         * m4/signalblocking.m4: New file, from GNU gettext.
73844
73845 2003-10-06  Bruno Haible  <bruno@clisp.org>
73846
73847         * lib/version-etc-2.h: Remove file.
73848         * lib/version-etc-2.c: Remove file.
73849
73850 2003-10-06  Bruno Haible  <bruno@clisp.org>
73851
73852         * lib/fatal-signal.h: New file, from GNU gettext.
73853         * lib/fatal-signal.c: New file, from GNU gettext.
73854
73855 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73856
73857         * README: Rework advice for preventing empty .o files.
73858         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73859         not <sys/types.h>.
73860
73861 2003-10-04  Karl Berry  <karl@gnu.org>
73862
73863         * lib/argp*: update from libc.
73864
73865 2003-10-04  Karl Berry  <karl@gnu.org>
73866
73867         * config/config.{guess,sub}: update from config.
73868
73869 2003-10-02  Bruno Haible  <bruno@clisp.org>
73870
73871         * modules/lchown (Include): Add lchown.h.
73872         * modules/time_r (Include): Use "..." syntax.
73873         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73874
73875 2003-10-01  Simon Josefsson  <jas@extundo.com>
73876
73877         * MODULES.html.sh (func_all_modules): Move gethostname from section
73878         'based on' to section 'lacking' POSIX:2001.
73879
73880 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73881
73882         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73883         to output mode on the same stream.
73884
73885 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73886
73887         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73888         Fix arg typo in previous patch.
73889
73890 2003-09-28  Jim Meyering  <jim@meyering.net>
73891
73892         * lib/error.c: Correct cpp indentation.
73893
73894 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73895
73896         * modules/free: New file.
73897
73898 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73899
73900         * m4/free.m4: New file.
73901
73902 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73903
73904         * lib/minmax.h (MIN, MAX)
73905         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73906         Omit the special code that used __typeof__, since we worry that
73907         it could be more trouble than it's worth.  See:
73908         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73909         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73910
73911         * lib/free.c: New file.
73912
73913 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73914
73915         Trivial fixes to Makefile.am parts of module listings.
73916         * modules/strstr: Append strstr.h to lib_SOURCES.
73917         * modules/strcase: Likewise, for strcase.h.
73918
73919 2003-09-27  Karl Berry  <karl@gnu.org>
73920
73921         * config/mkinstalldirs: update from automake.
73922
73923 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73924
73925         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73926         (error_tail): Do not loop, reallocating temporary buffer, since
73927         the output cannot contain more wide characters than the input
73928         contains bytes, the size must be big enough already.  This avoids
73929         one potential size overflow calculation.  Check for size overflow
73930         when calculating temporary buffer size.  Free temporary buffer
73931         when done, if it was allocated with malloc; this plugs a memory
73932         leak.  Remove casts from void * to pointers, that are no longer
73933         needed now that we're assuming C89 or better.
73934
73935         Merge error changes from glibc.
73936
73937         * lib/error.c, error.h: Update copyright notice header to match glibc.
73938         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73939         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73940         Disable cancellation while printing error.
73941         * lib/error.h: Prepend __ to parameter names.
73942
73943 2003-09-26  Jim Meyering  <jim@meyering.net>
73944
73945         * lib/error.c (error_tail): Move some declarations
73946         into inner scope where the local variables are used.
73947
73948 2003-09-26  Bruno Haible  <bruno@clisp.org>
73949
73950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73951         stpncpy().
73952         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73953
73954 2003-09-26  Bruno Haible  <bruno@clisp.org>
73955
73956         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73957         (stpncpy): Define as alias for gnu_stpncpy.
73958         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73959
73960 2003-09-25  Simon Josefsson  <jas@extundo.com>
73961
73962         * lib/xgetdomainname.h: New file.
73963         * lib/xgetdomainname.c: New file.
73964
73965 2003-09-25  Simon Josefsson  <jas@extundo.com>
73966             Bruno Haible  <bruno@clisp.org>
73967
73968         * modules/getdomainname: New file.
73969         * modules/xgetdomainname: New file.
73970         * MODULES.html.sh (func_all_modules): Add getdomainname,
73971         xgetdomainname.
73972
73973 2003-09-25  Simon Josefsson  <jas@extundo.com>
73974             Bruno Haible  <bruno@clisp.org>
73975
73976         * m4/getdomainname.m4: New file.
73977
73978 2003-09-25  Simon Josefsson  <jas@extundo.com>
73979             Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/getdomainname.h: New file.
73982         * lib/getdomainname.c: New file.
73983
73984 2003-09-25  Karl Berry  <karl@gnu.org>
73985
73986         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73987
73988 2003-09-25  Karl Berry  <karl@gnu.org>
73989
73990         * config/install-sh: update from automake.
73991
73992 2003-09-25  Bruno Haible  <bruno@clisp.org>
73993
73994         * modules/version-etc-2: New file, from modules/version-etc with
73995         modifications.
73996         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73997
73998 2003-09-25  Bruno Haible  <bruno@clisp.org>
73999
74000         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74001         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74002
74003 2003-09-24  Simon Josefsson  <jas@extundo.com>
74004
74005         * modules/xgethostname: Add xgethostname.h.
74006
74007 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74008
74009         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74010         the buffer associated with the argument.  Bug reported by
74011         Simon Josefsson.
74012
74013 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74014
74015         * README: Document assumptions that 'int' is at least 32 bits
74016         wide, that integer arithmetic is 2's complement without overflow,
74017         that there are no holes in integer values, that adding sizes of
74018         two nonoverlapping objects can't overflow, and that all-bits-zero
74019         yields scalar zero.  Fix spelling and capitalization typos.
74020
74021 2003-09-19  Karl Berry  <karl@gnu.org>
74022
74023         * lib/argp.h: update from libc.
74024
74025 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74026
74027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74028         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74029         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74030
74031 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74032
74033         * gnulib-tool: Use "test -h", not "test -L", for portability
74034         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74035         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74036         (sed_extract_prog): Issue s commands one-by-one, rather than
74037         using \| in one s command.
74038
74039 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74040
74041         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74042         input error, instead of returning NULL the next time we are called
74043         (and therefore losing track of errno).
74044
74045 2003-09-16  Bruno Haible  <bruno@clisp.org>
74046
74047         * gnulib-tool (func_create_testdir): Warn about duplicated
74048         dependencies.
74049
74050 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74051
74052         * modules/argmatch, modules/fatal, modules/obstack,
74053         modules/xalloc, modules/xgethostname: Sort dependencies by
74054         importance, not alphabetically.
74055
74056 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74057
74058         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74059         fails, so that the caller gets the proper errno.
74060
74061         * lib/readutmp.c (read_utmp): Likewise.
74062         Check for fstat error.  Close stream and free storage
74063         when failing.
74064
74065 2003-09-14  Karl Berry  <karl@gnu.org>
74066
74067         * config/srclist.txt (strdup.c): disable for c89 changes.
74068
74069 2003-09-14  Jim Meyering  <jim@meyering.net>
74070
74071         * lib/getloadavg.c: Correct cpp indentation.
74072         * lib/strdup.c: Likewise.
74073         * lib/vasnprintf.c: Likewise.
74074
74075 2003-09-14  Bruno Haible  <bruno@clisp.org>
74076
74077         * modules/fwriteerror: New file.
74078         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74079
74080 2003-09-14  Bruno Haible  <bruno@clisp.org>
74081
74082         * lib/fwriteerror.h: New file.
74083         * lib/fwriteerror.c: New file.
74084
74085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74086
74087         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74088         modules/xgethostname, modules/xalloc: Depend on exit.
74089
74090 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74091
74092         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74093
74094         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74095         and AC_MINIX, too, so that their extensions are available.
74096
74097         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74098         This macro has been superseded by gl_BACKUPFILE.
74099
74100         More patches to assume C89 or better.
74101
74102         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74103
74104         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74105         unconditionally.
74106         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74107         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74108         Include <string.h>, <stdlib.h> unconditionally.
74109         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74110         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74111         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74112         headers or for string.h.
74113         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74114         or strtoul.
74115
74116         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74117         headers.
74118         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74119         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74120         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74121         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74123         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74124         memcpy, memset.
74125         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74126         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74127         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74128         strtol.
74129         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74130         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74132         strtoul.
74133
74134 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74135
74136         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74137         * lib/obstack.c [!defined _LIBC]: Likewise.
74138         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74139         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74140         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74141
74142         More changes to assume C89 or better.
74143
74144         * lib/error.c (error_tail): Assume vprintf.
74145
74146         * lib/argmatch.c (getenv): Remove decl.
74147         * lib/progreloc.c (get_full_program_name): Define via prototype.
74148         * lib/setenv.c (clearenv): Likewise.
74149         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74150         needed.
74151         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74152         (malloc, memcpy): Remove decls.
74153         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74154         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74155         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74156         (memcpy): Remove macro.
74157         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74158         (__P): Remove.  All uses removed.
74159         (PTR): Remove.  All uses changed to void *.
74160         (CHAR_BIT, NULL): Remove.
74161         (spaces, zeros, memset_space, memset_zero)
74162         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74163         Remove.
74164         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74165         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74166         Define with prototype.
74167         Remove now-unnecessary prototype decl.
74168         (extra_args_spec): Assume ANSI C.  All uses changed.
74169         (extra_args_spec_iso): Remove.
74170         (my_strftime, emacs_strftimeu): Define via prototype.
74171         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74172         unconditionally.
74173         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74174         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74175         (strtoul, strtol): Remove decls.
74176         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74177         LONG_MAX): Remove.
74178         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74179         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74180         (LOCALE_PARAM_PROTO): New macro.
74181         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74182         (INTERNAL (strtol), strtol): Define with a prototype.
74183         (PARAMS): Remove.  All uses removed.
74184         * lib/tempname.c: Include <string.h> unconditionally.
74185         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74186         * lib/xgethostname.c (main): Define with a prototype.
74187         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74188         Include <stdlib.h> unconditionally.
74189         (calloc, malloc, realloc, free): Remove decls.
74190         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74191         Include <stdlib.h> unconditionally.  Sort include file names.
74192         (strtod): Remove.
74193         (xstrtod): Define with a prototype.
74194         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74195         (strtol, strtoul): Remove decls.
74196
74197 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74198
74199         More patches to assume C89 or better.
74200         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74201         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74202         string.h, memchr, STDC_HEADERS.
74203
74204 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74205
74206         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74207         Include <stdlib.h>, <string.h> unconditionally.
74208         Remove now-unnecessary cast to char *.
74209         * lib/strnlen.c: Include <string.h> unconditionally.
74210         * lib/yesno.c (yesno): Define with a prototype.
74211
74212 2003-09-11  Bruno Haible  <bruno@clisp.org>
74213
74214         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74215
74216 2003-09-10  Jim Meyering  <jim@meyering.net>
74217
74218         * lib/error.c: Correct indentation of cpp directives.
74219
74220 2003-09-10  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74223         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74224         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74225         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74226         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74227         <stdlib.h> and <string.h> checks.
74228         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74229         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74230
74231 2003-09-10  Bruno Haible  <bruno@clisp.org>
74232
74233         * lib/strcspn.c: Include <string.h> unconditionally.
74234         * lib/strpbrk.c: Include <string.h> unconditionally.
74235         * lib/strstr.c: Include <string.h> unconditionally.
74236         * lib/unicodeio.c: Include <string.h> unconditionally.
74237         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74238         * lib/unsetenv.c: Likewise.
74239         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74240         * lib/yesno.c: Include <stdlib.h> unconditionally.
74241         (rpmatch): Add prototype.
74242
74243 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74244
74245         More patches to assume C89 or better.
74246         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74247         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74248         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74249         or for string.h.
74250         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74251         stdlib.h.
74252         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74253         C headers.
74254         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74255         string.h.
74256         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74257         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74258         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74259         or for string.h.
74260         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74261         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74262         C headers.
74263         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74264         memcpy.
74265         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74266         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74267         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74268         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74269         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74270         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74271         string.h, free.
74272         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74273         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74274         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74275         C headers, or for string.h.
74276         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74277         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74278         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74279         headers, memory.h, stdlib.h, string.h, strings.h.
74280         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74281         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74282         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74283         strchr.
74284         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74285         headers, memory.h, string.h.
74286         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74287         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74288         free.
74289         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74290         headers.
74291         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74292         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74293         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74294         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74295         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74296
74297 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74298
74299         More K&R removal.
74300
74301         * lib/acosl.c (main): Use a prototype.
74302         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74303         tanl.c: Likewise.
74304
74305         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74306
74307         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74308         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74309         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74310         with a prototype.
74311         * lib/getopt.c (const): Remove macro.
74312         Include <string.h> unconditionally.
74313         (my_index): Remove; all uses changed to strchr.
74314         (strlen): Remove decl.
74315         (exchange): Remove forward decl; no longer needed.
74316         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74317         Define with prototype.
74318         * lib/getopt1.c (const): Remove macro.
74319         (getopt_long, getopt_long_only, main): Define with prototype.
74320
74321         * lib/getugroups.c: Include <string.h> unconditionally.
74322
74323         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74324         (getusershell, setusershell, endusershell, readname, main):
74325         Define with prototypes.
74326
74327         * lib/group-member.c: Include group-member.h first.
74328         Include <stdlib.h> unconditionally.
74329
74330         * lib/hard-locale.c: Include hard-locale.h first.
74331         Include <stdlib.h>, <string.h> unconditionally.
74332
74333         * lib/hash.c (free, malloc): Remove decls.
74334         Include <stdlib.h> unconditionally.
74335
74336         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74337         (getenv): Do not declare.
74338
74339         * lib/idcache.c: Include <string.h> unconditionally.
74340
74341         * lib/long-options.c: Include long-options.h first, to test interface.
74342         Include <stdlib.h> unconditionally.
74343
74344         * lib/makepath.c: Include makepath.h first, to test interface.
74345         Include <stdlib.h> and <string.h> unconditionally.
74346
74347         * lib/linebuffer.c: Include <stdlib.h>.
74348         (free): Remove decl.
74349
74350         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74351         stddef.h. rpl_malloc returns void *, not char *.
74352         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74353         prototype.
74354
74355         * lib/md5.h: Include <limits.h> unconditionally.
74356         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74357         (__P): Remove; all uses removed.
74358         * lib/md5.c: Include "md5.h" first.
74359         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74360         md5_buffer, md5_process_bytes, md5_process_block):
74361         Define with prototypes.
74362         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74363         * lib/sha.c: Include "sha.h" first.
74364         Include <stdlib.h>, <string.h> unconditionally.
74365
74366         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74367         * lib/memcmp.c (__ptr_t): Likewise.
74368         * lib/memrchr.c (__ptr_t): Likewise.
74369         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74370         Include <string.h> unconditionally.
74371         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74372         * lib/memchr.c: Include <stdlib.h> unconditionally.
74373         * lib/memchr.c (LONG_MAX): Remove.
74374         * lib/memrchr.c (LONG_MAX): Likewise.
74375         * lib/memchr.c (__memchr): Define via a prototype.
74376         * lib/memrchr.c (__memrchr): Likewise.
74377         * lib/memcmp.c (__P): Remove, and remove all uses.
74378         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74379         Remove forward decls; no longer needed.
74380         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74381         Use types required by C89 in prototype.
74382
74383         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74384         * lib/savedir.c: Likewise.
74385         * lib/mkdir.c (free): Remove decl.
74386         * lib/rmdir.c (rmdir): Define with a prototype.
74387         * lib/savedir.c: Include savedir.h first, to test interface.
74388
74389         * lib/mktime.c (STDC_HEADERS): Remove.
74390         Include <stdlib.h>, <string.h> unconditionally.
74391
74392         * lib/modechange.c: Include <stdlib.h> unconditionally.
74393         (malloc): Remove decl.
74394
74395         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74396         (free): Remove decl.
74397
74398         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74399         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74400         (This type really should be intptr_t, but that's a C99ism.)
74401         (_obstack_memcpy): Remove: all uses changed to memcpy.
74402         Include <string.h> unconditionally.
74403         (struct obstack): Assume __STDC__ for types of members
74404         chunkfun, freefun, extra_arg.
74405         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74406         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74407         obstack_begin, obstack_specify_allocation,
74408         obstack_specify_allocation_with_arg, obstack_chunkfun,
74409         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74410         Remove unprototyped decls and the macros that use them.
74411         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74412         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74413         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74414         (defined __STDC__ && __STDC__)]:
74415         Remove nonprototyped code.
74416         Include <stdlib.h> unconditionally.
74417         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74418         _obstack_allocated_p, _obstack_free, obstack_free,
74419         _obstack_memory_used, print_and_abort):
74420         Define using prototypes.
74421         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74422         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74423         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74424         obstack_next_free, obstack_object_size, obstack_room) [0]:
74425         Remove unused, unprototyped code.
74426
74427         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74428
74429         * lib/physmem.c (physmem_total, physmem_available, main): Define
74430         with prototypes.
74431
74432         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74433         (main): Define with a prototype.
74434
74435         * lib/posixver.c (getenv): Remove decl.
74436
74437         * lib/putenv.c (malloc): Returns void *, not char *.
74438         Include <string.h> unconditionally.
74439         (strchr, memcpy, NULL): Do not define.
74440
74441         * lib/readtokens.c: Include readtokens.h first, to test interface.
74442         Include <stdlib.h>, <string.h> unconditionally.
74443         (init_tokenbuffer): Define with a prototype.
74444
74445         * lib/regex.c (PARAMS): Remove.  All uses removed.
74446         All uses of _RE_ARGS removed, too.
74447         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74448         unconditionally.
74449         (bzero): Assume memset exists.
74450         (memcmp, memcpy, NULL): Remove.
74451         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74452         char, or assignments to local vars of type signed char.
74453         (init_syntax_once, PREFIX(extract_number_and_incr),
74454         PREFIX(print_partial_compiled_pattern),
74455         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74456         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74457         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74458         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74459         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74460         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74461         wcs_compile_range, byte_compile_range, truncate_wchar,
74462         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74463         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74464         count_mbs_length, wcs_re_match_2_internal,
74465         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74466         PREFIX(alt_match_null_string_p),
74467         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74468         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74469         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74470         now-unnecessary declaration, if any.
74471         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74472         regcomp, regexec):
74473         Remove now-unnecessary casts among pointer types.
74474         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74475
74476         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74477         (free): Remove decl.
74478
74479         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74480
74481         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74482         (free): Remove decl.
74483
74484         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74485         * lib/xgetcwd.c: Likewise.
74486
74487         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74488         (free): Remove decl.
74489
74490         * lib/strchrnul.c (strchrnul): Define with a prototype.
74491         Fix bug: c_in was not converted to char before searching.
74492
74493         The following changes are not K&R related:
74494
74495         * lib/group-member.h: Include <sys/types.h>, so that this file is
74496         self-contained.
74497         * lib/makepath.h: Likewise.
74498
74499         * lib/getusershell.c (readname, default_index, line_size, readname):
74500         Use size_t, not int, for sizes.
74501         (readname): If the size overflows, report an error instead of
74502         looping forever.
74503
74504 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74505
74506         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74507         libc.
74508
74509 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74510
74511         * README: New section: portability guidelines.
74512
74513 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74514
74515         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74516         C89 spec.
74517
74518 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74519
74520         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74521
74522 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74523
74524         Assume C89 or better; remove K&R cruft.
74525         A few of these changes were first proposed by Derek Robert Price
74526         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74527
74528         * lib/addext.c: Include <string.h> unconditionally.
74529         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74530         Don't declare getenv or malloc.
74531
74532         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74533         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74534         (NULL): Remove.
74535         (find_stack_direction, alloca): Use prototypes.
74536
74537         * lib/atexit.c (atexit): Define using a prototype.
74538
74539         * lib/basename.c, dirname.c, stripslash.c:
74540         Include <string.h> unconditionally.
74541
74542         * lib/bcopy.c: Include <stddef.h>.
74543         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74544
74545         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74546
74547         * lib/error.h (error, error_at_line, error_print_progname)
74548         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74549         * lib/error.c: Include error.h first, to check interface.
74550         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74551         (VA_START): Remove; all uses changeed to va_start.
74552         (exit, strerror): Remove decls.
74553         (error_print_progname): Prototype uncondionally.
74554         Don't include <errno.h>; no longer needed.
74555         (private_strerror): Remove.
74556         (error_tail): Always define.
74557         (error, error_at_line): Assume C89 or better; always use prototypes.
74558         * lib/fatal.c: Include "fatal.h" first, to test interface.
74559         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74560         (VA_START): Remove; all uses changed to va_start.
74561         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74562         this case.
74563         (exit): Remove decl.
74564         (fatal): Prototype unconditionally.  Assume va_start works.
74565         Abort at end, to pacify gcc.
74566
74567         * lib/euidaccess.c (main): Define with a prototype.
74568
74569         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74570
74571         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74572
74573         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74574         prototypes.
74575         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74576         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74577         (getenv): Remove decl.
74578         (fnmatch): Define using a prototype.
74579         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74580         (FCT): Define using a prototype.
74581
74582         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74583
74584         * lib/gethostname.c: Include <stddef.h>.
74585         (gethostname): Define with prototype.  Length is size_t, not int.
74586
74587 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74588
74589         Assume C89 or better; remove K&R cruft.
74590         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74591         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74592         string.h, getenv, malloc.
74593         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74594         headers.
74595         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74596         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74597         do not check for strerror.
74598         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74599         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74600         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74601         do not check for doprnt or vprintf.
74602         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74603         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74604
74605 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74606
74607         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74608         getversion.c should have been removed then, but was accidentally
74609         preserved.
74610
74611         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74612         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74613
74614 2003-09-08  Karl Berry  <karl@gnu.org>
74615
74616         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74617                 config, forget about prep.
74618
74619         * config/depcomp, missing: update from automake.
74620
74621 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74622
74623         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74625
74626 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74627
74628         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74629         copy_tm_result.  Bug reported by Simon Josefsson in
74630         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74631
74632 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74633
74634         * m4/time_r.m4: New file.
74635         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74636         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74637         is. Check for timegm declaration.
74638         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74639         Do not check for gmtime_r.
74640         Replace mktime if __mktime_internal does not exist and if mktime
74641         hasn't been replaced already.
74642
74643 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74644
74645         * lib/time_r.c, lib/time_r.h: New files.
74646
74647         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74648         __localtime_r.
74649         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74650         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74651
74652         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74653         __gmtime_r.
74654         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74655         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74656         Include <time_r.h>.
74657
74658         * lib/timegm.c: Switch to glibc implementation, with the following
74659         changes:
74660         [defined HAVE_CONFIG_H]: Include <config.h>.
74661         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74662         (__mktime_internal) [!defined _LIBC]: New decl.
74663         (__gmtime_r) [!defined _LIBC]: New macro and function.
74664         (timegm): Use a prototype, since gnulib assumes C89.
74665         Do not bother declaring tmp to be const, as it's not really usefu.
74666         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74667         (timegm): Declare only if HAVE_DECL_TIMEGM.
74668
74669 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74670
74671         * MODULES.html.sh (func_all_modules): Add time_r.
74672         * modules/time_r: New file.
74673         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74674         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74675
74676 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74677
74678         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74679         Bug reported by Lute Kamstra in
74680         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74681
74682         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74683         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74684         course with correspondingly smaller numbers for tomorrow and
74685         yesterday.  From Tadayoshi Funaba.  Originally installed into
74686         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74687         coreutils merge?).
74688
74689 2003-08-31  Simon Josefsson  <jas@extundo.com>
74690
74691         * modules/timegm: New file.
74692         * MODULES.html.sh (func_all_modules): Add timegm.
74693
74694 2003-08-31  Simon Josefsson  <jas@extundo.com>
74695
74696         * m4/timegm.m4: New file.
74697
74698 2003-08-31  Simon Josefsson  <jas@extundo.com>
74699
74700         * lib/timegm.h: New file.
74701         * lib/timegm.c: New file.  Based on
74702         wget-1.8.2/src/http.c:mktime_from_utc.
74703
74704 2003-08-31  Karl Berry  <karl@gnu.org>
74705
74706         * lib/argp.h: update from libc.
74707
74708 2003-08-28  Bruno Haible  <bruno@clisp.org>
74709
74710         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74711         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74712         followed by '#define fnmatch fnmatch_posix' gives an error.
74713
74714 2003-08-28  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74717         warning on QNX, which defines O_BINARY to 000000.
74718
74719 2003-08-27  Jim Meyering  <jim@meyering.net>
74720
74721         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74722         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74723         would fail after 32.  Reported by Danny Levinson.  Details here:
74724         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74725
74726 2003-08-24  Bruno Haible  <bruno@clisp.org>
74727
74728         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74729         MSVC7 <stdio.h> is included later.
74730
74731 2003-08-22  Simon Josefsson  <jas@extundo.com>
74732
74733         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74734
74735 2003-08-20  Karl Berry  <karl@gnu.org>
74736
74737         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74738
74739 2003-08-20  Bruno Haible  <bruno@clisp.org>
74740
74741         * modules/progname: New file.
74742         * MODULES.html.sh (func_all_modules): Add progname.
74743
74744 2003-08-20  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/progname.h: New file, from GNU gettext.
74747         * lib/progname.c: New file, from GNU gettext.
74748         * lib/progreloc.c: New file, from GNU gettext.
74749
74750 2003-08-19  Jim Meyering  <jim@meyering.net>
74751
74752         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74753         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74754
74755 2003-08-19  Bruno Haible  <bruno@clisp.org>
74756
74757         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74758         more.
74759
74760 2003-08-19  Bruno Haible  <bruno@clisp.org>
74761
74762         * lib/xstrdup.c: Assume <string.h> exists.
74763
74764 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74765
74766         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74767         in makefile rules.
74768
74769 2003-08-18  Jim Meyering  <jim@meyering.net>
74770
74771         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74772         * m4/lib-ld.m4: Likewise.
74773
74774 2003-08-18  Jim Meyering  <jim@meyering.net>
74775
74776         * lib/setenv.h: Indent nested cpp directive.
74777         * lib/vasnprintf.c: Remove trailing blanks.
74778
74779 2003-08-17  Simon Josefsson  <jas@extundo.com>
74780
74781         * modules/xstrndup: New file.
74782         * MODULES.html.sh (func_all_modules): Add xstrndup.
74783
74784 2003-08-17  Simon Josefsson  <jas@extundo.com>
74785
74786         * modules/argp: Fix autoconf macro name. Add more dependencies.
74787
74788 2003-08-17  Simon Josefsson  <jas@extundo.com>
74789
74790         * m4/xstrndup.m4: New file.
74791
74792 2003-08-17  Simon Josefsson  <jas@extundo.com>
74793
74794         * m4/argp.m4: New file.
74795
74796 2003-08-17  Simon Josefsson  <jas@extundo.com>
74797             Bruno Haible  <bruno@clisp.org>
74798
74799         * lib/xstrndup.h: New file.
74800         * lib/xstrndup.c: New file.
74801
74802 2003-08-17  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/strndup (Files, Include): Add lib/strndup.h.
74805
74806 2003-08-17  Bruno Haible  <bruno@clisp.org>
74807
74808         * modules/euidaccess (Files): Add lib/euidaccess.h.
74809
74810 2003-08-17  Bruno Haible  <bruno@clisp.org>
74811
74812         * lib/strndup.h: New file.
74813
74814 2003-08-17  Bruno Haible  <bruno@clisp.org>
74815
74816         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74817         like AC_GNU_SOURCE.
74818         * modules/extensions (configure.ac): Comment out the invocation of
74819         gl_USE_SYSTEM_EXTENSIONS.
74820
74821 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74822
74823         Merges from coreutils, etc.
74824         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74825         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74826         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74827         fixing a typo.
74828         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74829         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74830
74831 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74832
74833         Document merge from coreutils.
74834         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74835         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74836         * modules/utime: Add m4/utimes-null.m4.
74837
74838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74839
74840         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74841         space, undoing this 2003-08-12 change:
74842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74843
74844 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74845
74846         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74847         strtoul.c from libc, undoing this 2003-08-12 change:
74848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74849
74850 2003-08-16  Jim Meyering  <jim@meyering.net>
74851
74852         Merges from coreutils.
74853         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74854         prefix.  Adjust cache variables similarly.  Create 500 rather than
74855         just 300 files, to exercise bug on Darwin6.5, too.
74856         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74857         $missing_dir.
74858         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74859         AM_SYS_POSIX_TERMIOS.
74860         Reported by mkc@mathdogs.com.
74861         Also change use of $am_cv_sys_posix_termios
74862         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74863         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74864         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74865         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74866         in /proc/mounts until it finds one with matching device number.  This
74867         is unnecessary when the FILE argument *is* a mount point.  No stat call
74868         is necessary in that case.  So, disable the statvfs-testing code on
74869         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74870         as RedHat bug# 84846.
74871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74872         to 1MB, so as not to render systems with no stack size limit (e.g.,
74873         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74874         Include <unistd.h>.  On some systems,
74875         it is required for the definition of _SC_PAGESIZE.
74876
74877 2003-08-16  Jim Meyering  <jim@meyering.net>
74878
74879         Merge from coreutils.
74880         * lib/xstrtoimax.c: #else #if -> #elif.
74881         * lib/xstrtoumax.c: Likewise.
74882
74883 2003-08-16  Jim Meyering  <jim@meyering.net>
74884
74885         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74886         * m4/utimes.m4: Removed.
74887         * m4/utimes-null.m4: Renamed from utimes.m4.
74888
74889         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74890         to 1MB, so as not to render systems with no stack size limit (e.g.,
74891         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74892         Include <unistd.h>.  On some systems,
74893         it is required for the definition of _SC_PAGESIZE.
74894
74895 2003-08-16  Jim Meyering  <jim@meyering.net>
74896         and Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         Merges from coreutils, etc.
74899
74900         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74901         using the latest version from cvs.  This avoids problems with #line
74902         directives using a vendor (Sun) compiler.
74903         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74904         Don't set GETGROUPS_LIB here; now it's
74905         done via getgroups.m4's wrapper function.
74906         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74907         rather than just in sh-util/configure.in, so that the
74908         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74909         same.
74910         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74911         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74912         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74913         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74914         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74915         Remove code that is now done by the newly-required macros.
74916         Append $(EXEEXT) to DF_PROG.
74917         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74918         Do not invoke or require the following here,
74919         since prereq.m4 or some gnulib .m4 now does this for us:
74920         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74921         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74922         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74923         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74924         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74925         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74926         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74927         AC_FUNC_OBSTACK.
74928         Do not replace the following functions, as this is now the job
74929         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74930         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74931         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74932         atexit getpass, strdup, getpagesize.
74933         Replace 'raise'.
74934         Do not check for the following functions, as this is now the job
74935         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74936         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74937         setregid.
74938         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74939         Check for sys/sysctl.h.
74940         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74941         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74942         of checking for ssize_t ourselves.
74943
74944         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74945         Require every macro that gnulib/modules/* suggests for us.
74946         (jm_PREREQ_ADDEXT): New macro.
74947         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74948         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74949
74950         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74951         (gl_PHYSMEM): Use it.
74952         Also check for `table' function.
74953         Check for new headers and functions.
74954         Add check for sys/sysmp.h.
74955         With suggestions from Kaveh Ghazi.
74956         Ignore headers that are present but cannot be compiled.  This
74957         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74958         C 5.4.
74959
74960 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74961
74962         Document merge from coreutils.
74963         * modules/userspec: Depend on posixver.
74964         * modules/strftime: Depend on tzset.
74965
74966 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74967
74968         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74969         rather than tab, after '#' in shell-script copyright notices.
74970         Suggested by Bruno Haible.
74971
74972 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74973
74974         * config/srclist-update: Use three spaces, rather than tab, after '#'
74975         in shell-script copyright notices.  Suggested by Bruno Haible.
74976         Remove unnecessary parenthesization in regular expression.
74977
74978 2003-08-15  Jim Meyering  <jim@meyering.net>
74979
74980         Merge from coreutils.
74981         * lib/xgethostname.c: Include <stdlib.h>.
74982         (xghostname): Don't exit for anything other than memory-related
74983         failure; just return NULL.
74984         * lib/userspec.c: Include "posixver.h".
74985         (parse_user_spec): Accept `.' as a separator only
74986         in pre-POSIX-200112 mode.
74987         * lib/strtoimax.c: Use #elif rather than #else #if.
74988         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74989         Remove function, now that we can rely on a working tzset function.
74990         [!_LIBC]: Ensure that the required autoconf test has been run.
74991         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74992         Use underlying_strftime for %r.
74993         * lib/sha.c: Merge in some clean-up and optimization changes from
74994         glibc.
74995         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74996         Ensure that it is a multiple of 64.
74997         Rearrange loop exit tests so as to avoid performing an
74998         additional fread after encountering an error or EOF.
74999         * lib/realloc.c: Update copyright date.
75000
75001 2003-08-15  Jim Meyering  <jim@meyering.net>
75002         and Paul Eggert  <eggert@twinsun.com>
75003
75004         Merge from coreutils.
75005         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75006         member but strut utmpx does not.  Needed for AIX 4.3.3.
75007         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75008
75009 2003-08-15  Jim Meyering  <jim@meyering.net>
75010         and Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         Merges from coreutils, etc.
75013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75014         Require gl_FUNC_TZSET_CLOBBER.
75015         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75016         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75017         members.
75018
75019 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75020
75021         Help the merge from coreutils.
75022         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75023         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75024         * m4/tzset.m4: Use it too.
75025
75026 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75027
75028         * modules/tzset: New file.
75029
75030 2003-08-14  Jim Meyering  <jim@meyering.net>
75031
75032         Merges from coreutils.
75033         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75034         variable names, rather than @FNMATCH_H@.
75035         * modules/alloca: Likewise for $(ALLOCA_H).
75036
75037         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75038         the three copies of the literal target, `fnmatch.h'.
75039         * modules/alloca (alloca.h): Likewise.
75040
75041 2003-08-14  Jim Meyering  <jim@meyering.net>
75042
75043         Merge from coreutils.
75044         * m4/tzset.m4: New file.
75045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75046         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75047         otherwise, AIX 5.1 systems would end up using the latter.
75048         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75049         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75050         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75051         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75052
75053 2003-08-14  Jim Meyering  <jim@meyering.net>
75054
75055         Merge from coreutils.
75056         * lib/obstack.h: Whitespace changes.
75057         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75058         and xcalloc return values.
75059         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75060         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75061         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75062         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75063         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75064         error from mntctl.
75065         Use mntctl's return value to drive the entry-processing loop, since
75066         we can't rely on the value of the vmt_length member in the last
75067         entry.  On some systems doing so could result in exhausting
75068         virtual memory.  Based in part on a patch from Mike Jetzer.
75069
75070 2003-08-14  Jim Meyering  <jim@meyering.net>
75071         and Paul Eggert  <eggert@twinsun.com>
75072
75073         Merges from coreutils, plus other fixes.
75074         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75075         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75076         for credits and details.  Thanks to Kaveh Ghazi for helping
75077         to keep these files in sync.
75078         (ARRAY_SIZE): Define it.
75079         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75080         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75081         (memcasecmp): Don't assume size_t fits in unsigned int.
75082         Remove casts and duplicate code.
75083         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75084         (memcpy): Remove definition.
75085         Merge in some clean-up and optimization changes from glibc.
75086         [BLOCKSIZE]: Move definition to top of file.
75087         Ensure that it is a multiple of 64.
75088         Rearrange loop exit tests so as to avoid performing an
75089         additional fread after encountering an error or EOF.
75090         * lib/md5.h (md5_uintptr): Define.
75091         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75092         return to the initial working directory.  Preserve errno
75093         for caller.
75094         * lib/idcache.c: Include "xalloc.h".
75095         (xmalloc, xrealloc): Remove decls.
75096         (getuser): Remove casts no longer required in C89.
75097         * lib/human.c: Include stdio.h, for sprintf.
75098         * lib/group-member.c: Include "xalloc.h".
75099         (xmalloc, xrealloc): Remove decls.
75100         (get_group_info): Remove casts no longer required in C89.
75101         * lib/getusershell.c (readname): Remove casts no longer required in
75102         C89.
75103         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75104         * lib/getline.c: Whitespace fix, from coreutils.
75105
75106 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75107
75108         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75109         Check for isascii.
75110
75111         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75112         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75113         Undo previous (whitespace-only) change.
75114
75115 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75116
75117         * lib/exclude.c: Include <ctype.h>
75118         (IN_CTYPE_DOMAIN): New macro.
75119         (is_space): New fn.
75120         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75121         and empty lines.
75122
75123         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75124         Undo previous (whitespace-only) change.
75125
75126 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75127
75128         * config/srclist-update: Change update back to the old behavior,
75129         leaving whitespace alone.  Use one 'sed' command rather than a
75130         pipeline.
75131         (fixlicense): Now a variable, not a function.
75132         (remove_trailing_blanks): Remove.
75133         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75134         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75135         Undo previous (whitespace-only) change.
75136
75137 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75138
75139         Merge from coreutils.
75140         * modules/euidaccess: Add lib_SOURCES, include for new
75141         file euidaccess.h
75142
75143 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75144
75145         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75146         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75147         Normalize leading white space and remove trailing white space.
75148
75149         Merge from coreutils
75150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75151
75152         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75153         0.12.1.  These files are now being upgraded automatically by
75154         ../config/srclist-update.
75155
75156 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75157
75158         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75159         Normalize leading white space and remove trailing white space.
75160         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75161         notice, as per ../config/srclist-update.
75162
75163         Merge from coreutils.
75164         * lib/euidaccess.h: New file.
75165         * lib/euidaccess.c: Include it.
75166         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75167         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75168         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75169
75170 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75171
75172         * config/srclist-update: Add copyright notice.
75173         (remove_id_lines, remove_trailing_blanks): New constants.
75174         (fixfile): Use them to normalize spacing a bit in copied files.
75175         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75176         Normalize leading white space and remove trailing white space.
75177
75178         * config/texinfo.tex: Sync with texinfo.
75179
75180         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75181         strtoul.c from libc, to merge coreutils whitespace changes.
75182
75183         * config/srclist.txt: Get the following m4 files from gettext:
75184         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75185         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75186         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75187         wint_t.m4.
75188
75189 2003-08-12  Karl Berry  <karl@gnu.org>
75190
75191         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75192         been made.
75193
75194 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75195
75196         * modules/gnu-source, m4/gnu-source.m4:
75197         Remove; we're assuming Autoconf 2.54 or later now.
75198         Suggested by Bruno Haible.
75199         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75200
75201 2003-08-11  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75204
75205 2003-08-11  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75208         (vasnprintf): Use it instead of wcslen.
75209
75210 2003-08-11  Bruno Haible  <bruno@clisp.org>
75211
75212         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75213         value to ensure that _Bool promotes to int. Use #define for _Bool when
75214         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75215
75216 2003-08-10  Karl Berry  <karl@gnu.org>
75217
75218         * lib/regex.h: update from libc (whitespace fix).
75219
75220 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75221
75222         Merge some files from coreutils.  These changes were
75223         originally made by Jim Meyering.
75224         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75225         many older Unixes require this.
75226         * lib/alloca.c (alloca): Remove cast to argument of free;
75227         no longer needed in C89.
75228         * lib/alloca_.h, regex.h: Fix white space to match
75229         what GNU indent does.
75230
75231 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75232
75233         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75234         apparently Emacs's Unicode mode got confused before my 2003-08-05
75235         checkin.
75236
75237 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75238
75239         * m4/extensions.m4: New file.
75240         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75241         Require gl_USE_SYSTEM_EXTENSIONS.
75242         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75243         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75244
75245 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75246
75247         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75248         * modules/extensions, modules/gnu-source: New files.
75249         * modules/timespec, modules/unlocked-io: Depend on extensions.
75250
75251 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75252
75253         * modules/restrict: New file.
75254         * MODULES.html.sh (func_all_modules): Add restrict.
75255         * modules/regex: Depend on restrict.
75256
75257 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75258
75259         * m4/restrict.m4: New file.
75260         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75261
75262 2003-08-07  Bruno Haible  <bruno@clisp.org>
75263
75264         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75265         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75266
75267 2003-08-07  Bruno Haible  <bruno@clisp.org>
75268
75269         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75270         makes the module 'getndelim2' compatible with the module 'getline'.
75271
75272 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75273
75274         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75275         byte with "\201" to avoid glitches when editing that source file
75276         with multi-gnome-terminal.
75277
75278 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75279
75280         * lib/bumpalloc.h: Remove.
75281
75282 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75283
75284         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75285         * modules/bumpalloc: Remove.
75286
75287 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75288
75289         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75290         GNU coding style.
75291
75292         Merge from coreutils.
75293         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75294         1. From glibc.
75295         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75296         from Karl Berry, implemented by Jim Meyering.
75297         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75298         from Dmitry V. Levin.
75299         Remove anachronistic cast of xrealloc.
75300         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75301         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75302         type. Otherwise, it wouldn't compile with at least /bin/cc on
75303         ymp-cray-unicos9.0.2.X.
75304         Combine two mostly-identical uses of alloca into one.
75305         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75306
75307 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75308
75309         [From Emacs.]
75310
75311         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75312         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75313         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75314         obsolete NLIST_NAME_UNION.
75315         [__GNU__]: Undef BSD and FSCALE.
75316         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75317
75318 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75319
75320         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75321         an enum type, so that it's guaranteed to promote to int.  See:
75322         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75323
75324 2003-08-03  Karl Berry  <karl@gnu.org>
75325
75326         * config/depcomp: update from automake.
75327
75328 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75329
75330         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75331         (strerror): Don't assume that a printable int fits in 14 bytes.
75332
75333 2003-07-31  Bruno Haible  <bruno@clisp.org>
75334
75335         * modules/getpass-gnu: New file.
75336         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75337
75338 2003-07-31  Bruno Haible  <bruno@clisp.org>
75339
75340         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75341
75342 2003-07-24  Karl Berry  <karl@gnu.org>
75343
75344         * config/missing: update from automake.
75345
75346 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75347             Bruno Haible  <bruno@clisp.org>
75348
75349         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75350         * lib/getline.c (getline, getdelim): Likewise.
75351         Remove _GNU_SOURCE define; now it's defined in config.h through
75352         m4/getline.m4.
75353
75354 2003-07-23  Karl Berry  <karl@gnu.org>
75355
75356         * config/config.sub: update from prep.
75357
75358 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75359
75360         * modules/xalloc (Depends-on): Add exitfail.
75361         * modules/xmemcoll: Likewise.
75362
75363 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75364
75365         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75366         over-parenthesization in macros.
75367
75368         Sync with coreutils.
75369
75370         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75371         required by C99.
75372
75373         Use `exit_failure' for xalloc and xmemcoll instead of their own
75374         private exit-failure variables.
75375         * lib/xalloc.h (xalloc_exit_failure): Remove.
75376         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75377         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75378         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75379         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75380         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75381
75382 2003-07-20  Jim Meyering  <jim@meyering.net>
75383
75384         * modules/closeout (Depends-on): Add exitfail.
75385         Suggestion from Bruno Haible.
75386
75387 2003-07-19  Karl Berry  <karl@gnu.org>
75388
75389         * config/config.sub: update from prep.
75390
75391 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75392
75393         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75394         Remove.
75395         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75396         to test that it can stand by itself.  Include "exitfail.h".
75397         Clients should set exit_failure instead.
75398         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75399
75400 2003-07-18  Bruno Haible  <bruno@clisp.org>
75401
75402         * modules/getndelim2: New file.
75403         * modules/getline: Share files with module getndelim2.
75404         * modules/getnline: Depend on getndelim2 instead of sharing files with
75405         it. Add getnline.c to lib_SOURCES.
75406         * MODULES.html.sh (func_all_modules): Add getndelim2.
75407
75408 2003-07-18  Bruno Haible  <bruno@clisp.org>
75409
75410         * m4/getndelim2.m4: New file.
75411         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75412         invoke gl_PREREQ_GETNDELIM2.
75413         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75414         gl_PREREQ_GETNDELIM2.
75415         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75416         gl_GETNDELIM2.
75417
75418 2003-07-18  Bruno Haible  <bruno@clisp.org>
75419
75420         * lib/getndelim2.h: New file.
75421         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75422         getndelim2.h.
75423         (getndelim2): Make non-static. Change return type to ssize_t.
75424         * lib/getline.h: Change argument names.
75425         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75426         * lib/getnline.c: Include getndelim2.h.
75427
75428 2003-07-18  Andreas Schwab  <schwab@suse.de>
75429
75430         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75431
75432 2003-07-17  Karl Berry  <karl@gnu.org>
75433
75434         * config/config.sub: update from prep.
75435
75436 2003-07-17  Bruno Haible  <bruno@clisp.org>
75437
75438         * modules/getnline: New file.
75439         * modules/getline: Add lib/getndelim2.c to source file list.
75440         * MODULES.html.sh (func_all_modules): Add getnline.
75441
75442 2003-07-17  Bruno Haible  <bruno@clisp.org>
75443
75444         * m4/getnline.m4: New file.
75445
75446 2003-07-17  Bruno Haible  <bruno@clisp.org>
75447
75448         * m4/Makefile.am.in: Remove file.
75449         * m4/Makefile.am: Remove file.
75450         * m4/Makefile.in: Remove file.
75451
75452 2003-07-17  Bruno Haible  <bruno@clisp.org>
75453
75454         * lib/getnline.h: New file.
75455         * lib/getnline.c: New file.
75456         * lib/getndelim2.c: New file, extracted from getline.c.
75457         (getndelim2): Renamed from getdelim2, with added nmax argument.
75458         * lib/getline.c: Include getndelim2.c.
75459         (getdelim2): Moved out to getndelim2.c.
75460         (getline, getdelim): Update.
75461
75462 2003-07-17  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/Makefile.am: Remove file.
75465         * lib/Makefile.in: Remove file.
75466
75467 2003-07-17  Bruno Haible  <bruno@clisp.org>
75468
75469         * configure.in: Remove file.
75470         * Makefile.in: Remove file.
75471
75472 2003-07-17  Bruno Haible  <bruno@clisp.org>
75473
75474         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75475
75476 2003-07-16  Karl Berry  <karl@gnu.org>
75477
75478         * config/srclist-update: was running fixlicense twice, which caused
75479                 texinfo.tex to be nullified for some reason.  Simplify,
75480                 $gplsrc is no longer needed as far as I can see?
75481
75482 2003-07-16  Jim Meyering  <jim@meyering.net>
75483
75484         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75485
75486 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75487
75488         * config/srclist.txt: Get the following files from gettext-runtime/intl
75489         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75490         ref-del.sin.  From Bruno Haible.
75491         * config/srclist-update (fixfile): Change grep pattern again, since the
75492         previous fix didn't work (there was another trailing $).  Use
75493         '[$]' to escape the $s.
75494
75495 2003-07-15  Karl Berry  <karl@gnu.org>
75496
75497         * lib/vasnprintf.c: update from gettext.
75498
75499 2003-07-15  Karl Berry  <karl@gnu.org>
75500
75501         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75502         gets expanded when surrounded by '$'.
75503
75504 2003-07-15  Jim Meyering  <jim@meyering.net>
75505
75506         * modules/save-cwd: Don't depend on error.  From Derek Price.
75507
75508 2003-07-15  Jim Meyering  <jim@meyering.net>
75509
75510         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75511
75512 2003-07-14  Simon Josefsson  <jas@extundo.com>
75513
75514         * modules/mempcpy: New file.
75515         * MODULES.html.sh (func_all_modules): Add mempcpy.
75516
75517 2003-07-14  Simon Josefsson  <jas@extundo.com>
75518
75519         * m4/mempcpy.m4: New file.
75520
75521 2003-07-14  Simon Josefsson  <jas@extundo.com>
75522
75523         * lib/mempcpy.h: New file.
75524         * lib/mempcpy.c: New file.
75525
75526 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75527
75528         * modules/getdate, modules/posixtm: Depend on mktime.
75529
75530 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75531
75532         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75533         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75534         unicodeio.c, unicodeio.h, unlocked-io.h:
75535         Switch from LGPL to GPL.
75536
75537 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75538
75539         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75540         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75541         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75542         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75543         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75544         updated automatically by ../config/srclist-update.  This changes
75545         their license from LPGL to GPL.
75546
75547 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75548
75549         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75550         assumed to refer to the root of the most recent stable gettext version.
75551         * config/srclistvars.sh: Add defaults for eggert.
75552         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75553         Match "This program" as well as "The program".  This is needed
75554         for gettext.
75555
75556 2003-07-14  Jim Meyering  <jim@meyering.net>
75557
75558         Don't emit diagnostics.  Let callers do that.
75559         * lib/save-cwd.c: Don't include "error.h".
75560         (save_cwd): Don't call error.  Ensure that errno is valid
75561         when returning nonzero.
75562
75563         * lib/save-cwd.h (restore_cwd): Update prototype.
75564         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75565         Simplify.  Don't call error upon failure.  Let callers do that.
75566         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75567         when auditing is enabled.  But don't bother updating the #if.
75568
75569 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75570
75571         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75572         it breaks C++ compilation.
75573         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75574
75575 2003-07-10  Simon Josefsson  <jas@extundo.com>
75576
75577         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75578
75579 2003-07-10  Jim Meyering  <jim@meyering.net>
75580
75581         * m4/clock_time.m4: Remove trailing blank.
75582         * m4/intmax_t.m4: Likewise.
75583
75584 2003-07-10  Jim Meyering  <jim@meyering.net>
75585
75586         * lib/vasnprintf.c: Remove trailing blanks.
75587         Make cpp indentation consistent.
75588
75589 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75590
75591         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75592         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75593         Switch from LGPL to GPL.
75594
75595 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75596
75597         * config/srclist.txt: Sort sublists.  Add
75598         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75599         that differ from gnulib for one reason or another; we'd like this list
75600         to be smaller but for now let's document what we have.
75601
75602 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75603
75604         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75605         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75606         and sweeter "eval x=$x".
75607         * config/srclist.txt: Get lib/argp* from glibc.
75608
75609 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75610
75611         * lib/mktime.c: Fix some boundary cases and remove need for floating
75612         point.
75613
75614         Issue a compile-time diagnostic if time_t is floating point, or if
75615         two's complement arithmetic is not in effect, or if arithmetic
75616         right shift does not propagate the sign.  These assumptions were
75617         all in the original code but they weren't checked.
75618
75619         (TIME_T_MIDPOINT, verify): New macros.
75620         (__isleap): Remove; it has integer overflow problems.
75621         (leapyear): New function, without those problems.
75622         (ydhms_tm_diff): Remove; splitting into two parts.
75623         (ydhms_diff): New function, containing the arithmetic part of
75624         the old ydhms_tm_diff function.  Issue a compile-time
75625         diagnostic if we are not using C99 integer division.
75626         Avoid casts when possible.
75627         (guess_time_tm): New function, containing the checking part of
75628         the old ydhms_tm_diff function.  Return the new value, rather than
75629         the difference between it and the old.  Accept a new argument T
75630         so that *T specifies the old value.  Check for overflow in the result.
75631
75632         (__mktime_internal): Use a time_t offset, not a long int offset.
75633         This undoes the 2003-06-04 change, which is no longer needed now
75634         that we have better overflow checking.
75635         (localtime_offset): Likewise.
75636
75637         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75638         and long are 64-bit but int is only 32-bit.
75639         (ydhms_diff): Use long int to store year1 and yday1.
75640         Issue a compile-time diagnostic if long int is not wide enough.
75641
75642         (__mktime_internal): Use long int to store adjusted year and yday.
75643         Use plain C rather than preprocessor commands, if that doesn't
75644         affect efficiency.
75645         Check for overflow (and try to repair) after each probe
75646         rather than checking only at the very end.  This avoids some bugs
75647         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75648         does not equal GMT offset at maximum time).
75649         Use integer to check for overflow rather than floating point; this
75650         is more portable to non-IEEE hosts, and is a tad faster.
75651         When we detect that we are oscillating between two values,
75652         don't check whether tm_isdst has the requested value, since
75653         we already know the answer.  When tm_isdst has the wrong value,
75654         use a different heuristic to find the right one, based on the
75655         extreme values actually observed in practice in tz2003a,
75656         rather than the (overly optimistic) "previous 3 calendar quarters".
75657
75658         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75659         "T const" to accommodate glibc style.
75660         (check_result): Use less-confusing report format.  "long" -> "long int.
75661         (main): Likewise.
75662         Don't loop if the iteration overflows time_t.
75663         Allow a negative step in the iteration.
75664
75665 2003-07-06  Karl Berry  <karl@gnu.org>
75666
75667         * config/depcomp: update from automake.
75668         * config/config.sub: update from prep.
75669
75670 2003-07-03  Karl Berry  <karl@gnu.org>
75671
75672         * config/config.guess: update from prep.
75673
75674 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75675
75676         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75677         xreadlink.c now includes it unconditionally.
75678
75679 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75680
75681         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75682         having it depend on HAVE_SYS_TYPES_H.
75683
75684 2003-07-01  Bruno Haible  <bruno@clisp.org>
75685
75686         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75687         <sys/types.h> should be sufficient.
75688         Reported by Paul Eggert.
75689
75690 2003-06-26  Karl Berry  <karl@gnu.org>
75691
75692         * config/depcomp: update from automake.
75693
75694 2003-06-26  Bruno Haible  <bruno@clisp.org>
75695
75696         * modules/human: Depend on module stdbool.
75697
75698 2003-06-25  Bruno Haible  <bruno@clisp.org>
75699
75700         * modules/readlink: New file.
75701         * modules/xreadlink: Depend on it.
75702         * MODULES.html.sh (func_all_modules): Add readlink.
75703
75704 2003-06-25  Bruno Haible  <bruno@clisp.org>
75705
75706         * m4/readlink.m4: New file.
75707
75708 2003-06-25  Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/readlink.c: New file.
75711
75712 2003-06-22  Karl Berry  <karl@gnu.org>
75713
75714         * config/srclist.txt: update mkinstalldirs from automake.
75715         * config/mkinstalldirs: update.
75716
75717 2003-06-22  Bruno Haible  <bruno@clisp.org>
75718
75719         Portability to mingw32.
75720         * m4/ssize_t.m4: New file, from GNU gettext.
75721         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75722         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75723
75724 2003-06-22  Bruno Haible  <bruno@clisp.org>
75725
75726         * modules/safe-read: Add m4/ssize_t.m4.
75727         * modules/xreadlink: Add m4/ssize_t.m4.
75728
75729 2003-06-20  Bruno Haible  <bruno@clisp.org>
75730
75731         Assume C89, so PARAMS isn't needed.
75732         * lib/unicodeio.h (PARAMS): Remove.
75733         * lib/unicodeio.c: Don't use PARAMS.
75734
75735 2003-06-18  Karl Berry  <karl@gnu.org>
75736
75737         * config/config.{guess,sub}: update from prep.
75738
75739 2003-06-18  Jim Meyering  <jim@meyering.net>
75740
75741         Merge changes from coreutils.
75742         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75743         Remove explicit declarations of xmalloc and realloc.
75744         Include xalloc.h.
75745         (read_utmp): Remove anachronistic cast of xmalloc.
75746
75747 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75748
75749         Assume C89, so PARAMS isn't needed.
75750         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75751         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75752         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75753         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75754         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75755         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75756         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75757         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75758         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75759         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75760         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75761         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75762         no longer needed. Anyway, config.h should always be included before any
75763         other file.
75764
75765 2003-06-11  Simon Josefsson  <jas@extundo.com>
75766
75767         * modules/sysexits: New file.
75768         * MODULES.html.sh (func_all_modules): Add sysexits.
75769
75770 2003-06-11  Simon Josefsson  <jas@extundo.com>
75771
75772         * lib/sysexit_.h: New file.
75773
75774 2003-06-11  Derek Price  <derek@ximbiot.com>
75775
75776         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75777         necessary.
75778
75779 2003-06-11  Bruno Haible  <bruno@clisp.org>
75780
75781         * m4/sysexits.m4: New file.
75782
75783 2003-06-10  Simon Josefsson  <jas@extundo.com>
75784
75785         * lib/argp.h: New file, from glibc.
75786         * lib/argp-ba.c: New file, from glibc.
75787         * lib/argp-eexst.c: New file, from glibc.
75788         * lib/argp-fmtstream.c: New file, from glibc.
75789         * lib/argp-fmtstream.h: New file, from glibc.
75790         * lib/argp-fs-xinl.c: New file, from glibc.
75791         * lib/argp-help.c: New file, from glibc.
75792         * lib/argp-namefrob.h: New file, from glibc.
75793         * lib/argp-parse.c: New file, from glibc.
75794         * lib/argp-pv.c: New file, from glibc.
75795         * lib/argp-pvh.c: New file, from glibc.
75796         * lib/argp-xinl.c: New file, from glibc.
75797
75798 2003-06-10  Simon Josefsson  <jas@extundo.com>
75799
75800         * modules/strchrnul: New file.
75801
75802 2003-06-10  Simon Josefsson  <jas@extundo.com>
75803
75804         * modules/argp: New file.
75805
75806 2003-06-10  Simon Josefsson  <jas@extundo.com>
75807
75808         * m4/strchrnul.m4: New file.
75809
75810 2003-06-10  Simon Josefsson  <jas@extundo.com>
75811
75812         * lib/strchrnul.h: New file.
75813         * lib/strchrnul.c: New file.
75814
75815 2003-06-10  Bruno Haible  <bruno@clisp.org>
75816
75817         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75818
75819 2003-06-07  Karl Berry  <karl@gnu.org>
75820
75821         * config/config.{guess,sub}: update from prep.
75822
75823 2003-06-07  Jim Meyering  <jim@meyering.net>
75824
75825         * modules/strtod: Use $(...) notation, not @...@ for
75826         AC_REPLACE'd variables.
75827         * modules/localcharset: Likewise.
75828
75829 2003-06-07  Jim Meyering  <jim@meyering.net>
75830
75831         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75832         in place of my name in the copyright comment.
75833         Remove definition and uses of __P.
75834
75835         From coreutils.
75836         * lib/stat.c: Don't declare xmalloc explicitly.
75837         Instead, include "xalloc.h".
75838         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75839         xrealloc, and xcalloc return values.
75840         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75841         Improve comment.
75842         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75843
75844 2003-06-07  Bruno Haible  <bruno@clisp.org>
75845
75846         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75847         avoid AC_CONFIG_LINKS.
75848         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75849         fnmatch.h, to avoid AC_CONFIG_LINKS.
75850         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75851
75852 2003-06-07  Bruno Haible  <bruno@clisp.org>
75853
75854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75855         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75856         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75857         directory.
75858         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75859         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75860         directory.
75861
75862 2003-06-06  Jim Meyering  <jim@meyering.net>
75863
75864         Merge from coreutils.
75865         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75866         Consolidate declarations and initializations of *_base* locals.
75867
75868         Merge from coreutils.
75869         This avoids a core dump on systems without GNU putenv,
75870         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75871         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75872         (unsetenv): New static function, from GNU libc.
75873         (rpl_putenv): Use it.
75874
75875         * lib/modechange.c: Remove trailing blanks.
75876
75877         Merge from coreutils.
75878         * lib/fsusage.c: Remove declaration of statfs.
75879         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75880
75881         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75882
75883 2003-06-06  Jim Meyering  <jim@meyering.net>
75884
75885         * lib/stdbool_.h: Renamed from stdbool.h.in.
75886
75887 2003-06-06  Jim Meyering  <jim@meyering.net>
75888             Bruno Haible  <bruno@clisp.org>
75889
75890         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75891         Adjust Makefile.am snippet not to redirect directly to target.
75892         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75893
75894 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75895
75896         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75897         mismatch, look in future quarters as well as past.  This fixes a
75898         bug when processing fall-backwards gaps immediately after a long
75899         period of daylight-saving time.
75900
75901         * lib/mktime.c: Assume freestanding C89 or better.
75902         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75903         (__P): Remove; not used.
75904         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75905         (mktime, not_equal_tm, print_tm, check_result,
75906         main): Use prototypes.  Use const * where appropriate.
75907         (main): Fix typo in testing code that uncovered by above changes.
75908         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75909
75910 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75911
75912         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75913         locale.h, localeconv.  This merges changes from coreutils.
75914
75915         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75916         It can be removed after the next Autoconf is released.
75917         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75918         needed.
75919
75920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75921
75922         * lib/mktime.c: Fix Debian bug 177940
75923         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75924         (localtime_offset): Now long int, not time_t, because we want it
75925         to be guaranteed to be signed.  All uses changed.
75926         (__mktime_internal): If overflow would occur when adding offset,
75927         don't add it.
75928
75929         Merge 'human' changes from coreutils.  Rewrite to support
75930         locale-specific notations like thousands separators.
75931         * lib/human.c: Simplify authorship notice.
75932         Include human.h immediately after config.h.
75933         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75934         <limits.h>: Do not include, since human.h does.
75935         (SIZE_MAX, UINTMAX_MAX): New macros.
75936         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75937         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75938         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75939         (power_letter): Renamed from suffixes.
75940         (generate_suffix_backwards): Remove.
75941         (adjust_value): Now takes int style (because of human.h changes)
75942         and long double value (for greater precision on some platforms).
75943         (group_number): New function.
75944         (human_readable): Use it.  Use integer options, not enum.
75945         Put the options before the sizes in the arg list.
75946         Support all the new options.
75947         The old human_readable function has been removed;
75948         use inttostr.h instead.
75949         (human_readable, default_block_size, humblock):
75950         Use uintmax_t, not int, for block sizes.
75951         (human_readable_inexact, block_size_types): Remove.
75952         (block_size_opts): New constant.
75953         (human_options): Renamed from human_block_size, with new signature
75954         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75955         * lib/human.h: Add copyright and authorship notice.
75956         Include <limits.h> and <stdbool.h> unconditionally.
75957         (PARAMS): Remove.  All uses removed.
75958         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75959         (enum human_inexact_style): Remove tag; now a nameless enum.
75960         (human_floor, human_ceiling, human_round_to_even): Now have
75961         values 2, 0, 1 rather than -1, 1, 0.
75962         (human_group_digits, human_suppress_point_zero, human_autoscale,
75963         human_base_1024, human_SI, human_B): New constants.
75964         (human_readable_inexact, human_block_size): Remove.
75965         (human_readable): Size args are now uintmax_t, not int.
75966         (human_options): New decl.
75967
75968         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75969         unnecessary now that we assume C89 or better.  This change
75970         imported from coreutils.
75971
75972         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75973         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75974         in the 2003-05-30 sync from glibc.
75975
75976         .h files should stand alone, but we shouldn't include <sys/types.h>
75977         if we can get away with just <stddef.h>.
75978
75979         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75980         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75981         rather than <sys/types.h>, as we merely need size_t.
75982         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75983         to get size_t.
75984         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75985         Include <stdio.h>, to get FILE.
75986         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75987         memcasecmp.h has included <stddef.h> and all we need is size_t.
75988         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75989         our interface, instead of including <sys/types.h>
75990
75991 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75992
75993         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75994         now, as glibc mktime is buggy on non-glibc systems.
75995
75996 2003-06-03  Karl Berry  <karl@gnu.org>
75997
75998         * config/config.sub: update from prep.
75999
76000 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76001
76002         [from coreutils]
76003         Fix some minor time-related bugs with POSIX time arguments.
76004         Some valid time stamps were being rejected (notably -1, and
76005         time stamps before 1900 on 64-bit hosts).  And some invalid
76006         time stamps were being accepted, e.g. September 31.
76007
76008         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76009         that we can return (time_t) -1 successfully.
76010         * lib/posixtm.c: Likewise.
76011         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76012         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76013         (t): Remove static var.
76014         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76015         of static var.  All uses changed.
76016         (year): Do not reject years before 1900; they can occur with
76017         64-bit time_t.
76018         (posix_time_parse): Do not check for out-of-range components;
76019         that is now the caller's responsibility, since our checks were
76020         only approximations.
76021         (posixtime): Use mktime to check for out-of-range components,
76022         since it knows them exactly.
76023         If mktime returns (time_t) -1, check whether an error actually occurred
76024         by invoking localtime on -1.
76025         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76026         posixtime failures better.
76027         Improve the test data (in comments only).
76028
76029 2003-06-02  Karl Berry  <karl@gnu.org>
76030
76031         * config/mkinstalldirs (version): new variable.
76032         (--version): new option.
76033         (usage): improve message.
76034
76035 2003-05-30  Karl Berry  <karl@gnu.org>
76036
76037         * lib/mktime.c: update from libc.
76038
76039 2003-05-30  Bruno Haible  <bruno@clisp.org>
76040
76041         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76042         * config/config.rpath: Upgrade to gettext-0.12.1.
76043
76044 2003-05-30  Bruno Haible  <bruno@clisp.org>
76045
76046         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76047         * m4/nls.m4: New file, from gettext-0.12.1.
76048         * m4/po.m4: New file, from gettext-0.12.1.
76049         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76050
76051 2003-05-30  Bruno Haible  <bruno@clisp.org>
76052
76053         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76054         * lib/localcharset.h: Likewise.
76055         * lib/localcharset.c: Likewise.
76056
76057 2003-05-29  Karl Berry  <karl@gnu.org>
76058
76059         * config/config.rpath: update from gettext.
76060
76061 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76062
76063         Assume the headers required for C89 freestanding compilers.
76064         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76065         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76066         * m4/human.m4 (gl_HUMAN): Likewise.
76067         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76068         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76069         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76070         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76072         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76073
76074 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76075
76076         Assume the headers required for C89 freestanding compilers.
76077         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76078         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76079         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76080         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76081         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76082         define, since <limits.h> is guaranteed to do that.
76083         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76084         * lib/exclude.c: Include <stdbool.h> unconditionally.
76085         * lib/tempname.c: Include <stddef.h> unconditionally.
76086         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76087         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76088         <stddef.h> does that.
76089         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76090         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76091         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76092         needed.
76093         * lib/xstrtol.c: Likewise.
76094         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76095         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76096
76097         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76098         warnings on some platforms.
76099
76100         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76101         arbitrarily.
76102
76103 2003-05-26  Jim Meyering  <jim@meyering.net>
76104
76105         Merge in a change from coreutils:
76106         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76107         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76108         that condition, rather than `-1' which is slightly misleading.
76109         Change the name of the cache variable to have the gl_ prefix.
76110         Prompted by a patch from Richard Dawe for DJGPP.
76111
76112 2003-05-24  Karl Berry  <karl@gnu.org>
76113
76114         * config/config.guess: update from prep.
76115
76116 2003-05-22  Karl Berry  <karl@gnu.org>
76117
76118         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76119
76120 2003-05-20  Karl Berry  <karl@gnu.org>
76121
76122         * config/config.guess: update from prep.
76123
76124 2003-05-18  Karl Berry  <karl@gnu.org>
76125
76126         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76127         might actually be set by the user.
76128
76129         * config/depcomp, install-sh, mdate-sh: update from automake.
76130
76131 2003-05-17  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76134         invalid expansion for AC_EGREP_CPP.
76135         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76136         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76137         Suggested by Akim Demaille <akim@epita.fr> in
76138         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76139
76140 2003-05-12  Jim Meyering  <jim@meyering.net>
76141
76142         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76143         the space-padded-by-default conversion specifiers, %e, %k, %l.
76144
76145 2003-05-12  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76148         the string is longer than 4 KB.
76149
76150 2003-05-11  Karl Berry  <karl@gnu.org>
76151
76152         * config/config.{guess,sub}: update from prep.
76153
76154 2003-05-09  Bruno Haible  <bruno@clisp.org>
76155
76156         * modules/error: Add m4/strerror_r.m4 to file list.
76157
76158 2003-05-03  Bruno Haible  <bruno@clisp.org>
76159
76160         Upgrade to Unicode-4.0.
76161         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76162         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76163         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76164         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76165         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76166         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76167         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76168         Change width of U+E0100..U+E01EF from 1 to 0.
76169
76170 2003-04-25  Jim Meyering  <jim@meyering.net>
76171
76172         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76173         of type size_t, not int.
76174
76175 2003-04-25  Bruno Haible  <bruno@clisp.org>
76176
76177         * lib/copy-file.c: Include <stddef.h>, for size_t.
76178
76179 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76180
76181         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76182         code which expansion is under static control.  Patch imported from
76183         Akim Demaille's patch to Bison; see
76184         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76185
76186 2003-04-14  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76189
76190 2003-04-11  Jim Meyering  <jim@meyering.net>
76191
76192         Merge changes from Coreutils.
76193
76194         2003-03-22  Jim Meyering  <jim@meyering.net>
76195
76196         * lib/strftime.c (widen): Cast alloca return value to proper type.
76197
76198         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76199
76200         From GNU libc.
76201         * lib/strftime.c (my_strftime): Handle very large width
76202         specifications for numeric values correctly.  Improve checks for
76203         overflow.
76204
76205         2003-01-19  Jim Meyering  <jim@meyering.net>
76206
76207         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76208         definitions.
76209         (nl_get_alt_digit) [! defined my_strftime]: Define.
76210         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76211         _nl_get_alt_digit and _nl_get_walt_digit.
76212
76213         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76214         libc. These changes have no effect outside of _LIBC.
76215
76216 2003-04-10  Bruno Haible  <bruno@clisp.org>
76217
76218         * modules/findprog: New file.
76219         * MODULES.html.sh (func_all_modules): Add it.
76220
76221 2003-04-10  Bruno Haible  <bruno@clisp.org>
76222
76223         * m4/findprog.m4: New file.
76224         * m4/eaccess.m4: New file.
76225
76226 2003-04-10  Bruno Haible  <bruno@clisp.org>
76227
76228         * lib/findprog.h: New file, from GNU gettext.
76229         * lib/findprog.c: New file, from GNU gettext.
76230
76231 2003-04-05  Jim Meyering  <jim@meyering.net>
76232
76233         Merge changes from Coreutils.
76234
76235         * lib/exclude.h (PARAMS): Remove definition and uses.
76236         * lib/exclude.c: Remove uses of `PARAMS'.
76237
76238         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76239         Add test-cases for DOS filenames. Declare program_name.
76240         (main): Set up program_name.  Patch by Rich Dawe.
76241
76242         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76243         error from mntctl.
76244         Use mntctl's return value to drive the entry-processing loop, since
76245         we can't rely on the value of the vmt_length member in the last
76246         entry.  On some systems doing so could result in exhausting
76247         virtual memory.  Based in part on a patch from Mike Jetzer.
76248
76249 2003-04-04  Bruno Haible  <bruno@clisp.org>
76250
76251         * modules/linebreak: New file.
76252         * MODULES.html.sh (func_all_modules): Add it.
76253
76254 2003-04-04  Bruno Haible  <bruno@clisp.org>
76255
76256         * m4/linebreak.m4: New file.
76257
76258 2003-04-04  Bruno Haible  <bruno@clisp.org>
76259
76260         * lib/linebreak.h: New file, from GNU gettext.
76261         * lib/linebreak.c: New file, from GNU gettext with slight
76262         modifications.
76263         * lib/lbrkprop.h: New file, from GNU gettext.
76264
76265 2003-04-03  Bruno Haible  <bruno@clisp.org>
76266
76267         * modules/utf8-ucs4: New file.
76268         * modules/utf16-ucs4: New file.
76269         * modules/ucs4-utf8: New file.
76270         * modules/ucs4-utf16: New file.
76271         * MODULES.html.sh (func_all_modules): Add them.
76272
76273 2003-04-03  Bruno Haible  <bruno@clisp.org>
76274
76275         * m4/utf-ucs4.m4: New file.
76276         * m4/ucs4-utf.m4: New file.
76277
76278 2003-04-03  Bruno Haible  <bruno@clisp.org>
76279
76280         * lib/utf8-ucs4.h: New file, from GNU gettext.
76281         * lib/utf16-ucs4.h: New file, from GNU gettext.
76282         * lib/ucs4-utf8.h: New file, from GNU gettext.
76283         * lib/ucs4-utf16.h: New file, from GNU gettext.
76284
76285 2003-04-02  Bruno Haible  <bruno@clisp.org>
76286
76287         * modules/binary-io: New file.
76288         * MODULES.html.sh (func_all_modules): Add it.
76289
76290 2003-04-02  Bruno Haible  <bruno@clisp.org>
76291
76292         * lib/binary-io.h: New file, from GNU gettext.
76293
76294 2003-04-01  Bruno Haible  <bruno@clisp.org>
76295
76296         * modules/pathname: New file.
76297         * MODULES.html.sh (func_all_modules): Add it.
76298
76299 2003-04-01  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/pathname.h: New file, from GNU gettext.
76302         * lib/concatpath.c: New file, from GNU gettext.
76303
76304 2003-03-30  Bruno Haible  <bruno@clisp.org>
76305
76306         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76307
76308 2003-03-30  Bruno Haible  <bruno@clisp.org>
76309
76310         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76311         function chown() doesn't exist.
76312
76313 2003-03-28  Bruno Haible  <bruno@clisp.org>
76314
76315         * modules/copy-file: New file.
76316         * MODULES.html.sh (func_all_modules): Add it.
76317
76318 2003-03-28  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/copy-file.m4: New file.
76321
76322 2003-03-28  Bruno Haible  <bruno@clisp.org>
76323
76324         * lib/copy-file.h: New file, from GNU gettext.
76325         * lib/copy-file.c: New file, from GNU gettext.
76326
76327 2003-03-18  Jim Meyering  <jim@meyering.net>
76328
76329         * lib/quote.c (quote_n): Fix typo in comment.
76330
76331 2003-03-18  Bruno Haible  <bruno@clisp.org>
76332
76333         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76334         checking.
76335         * m4/onceonly_2_57.m4: Likewise.
76336
76337 2003-03-17  Bruno Haible  <bruno@clisp.org>
76338
76339         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76340         (m4_quote): Remove macro.
76341         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76342
76343 2003-03-14  Jim Meyering  <jim@meyering.net>
76344
76345         Merge changes from Coreutils.
76346         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76347         to be const, in order to avoid warnings.
76348         (obstack_room): Likewise.
76349         (obstack_empty_p): Likewise.
76350
76351 2003-03-14  Bruno Haible  <bruno@clisp.org>
76352
76353         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76354         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76355
76356 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76357
76358         Merge changes from Bison.
76359         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76360         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76361         when compiling Bison 1.875's `bitset bset = obstack_alloc
76362         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76363         * lib/hash.c: Include <stdbool.h> unconditionally.
76364
76365 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76366
76367         * m4/onceonly.m4 (m4_quote): New macro.
76368         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76369         Quote AC_FOREACH variable-expansions properly.
76370
76371 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76372
76373         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76374
76375 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76376
76377         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76378         Reported by Bruce Becker; see:
76379         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76380
76381 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76382             Bruno Haible  <bruno@clisp.org>
76383
76384         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76385         Reported by John Hughes, see
76386         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76387
76388 2003-02-20  Bruno Haible  <bruno@clisp.org>
76389
76390         * MODULES.html.sh (func_all_modules): Add poll.
76391
76392 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76393
76394         * modules/poll: New file.
76395
76396 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76397
76398         * lib/poll_.h: New file.
76399         * lib/poll.c: New file.
76400
76401 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76402
76403         * m4/poll.m4: New file.
76404
76405 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76406
76407         * modules/mathl: New file.
76408
76409 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76410
76411         * lib/mathl.h: New file.
76412         * lib/acosl.c: New file.
76413         * lib/asinl.c: New file.
76414         * lib/atanl.c: New file.
76415         * lib/ceill.c: New file.
76416         * lib/cosl.c: New file.
76417         * lib/expl.c: New file.
76418         * lib/floorl.c: New file.
76419         * lib/frexpl.c: New file.
76420         * lib/ldexpl.c: New file.
76421         * lib/logl.c: New file.
76422         * lib/sincosl.c: New file.
76423         * lib/sinl.c: New file.
76424         * lib/sqrtl.c: New file.
76425         * lib/tanl.c: New file.
76426         * lib/trigl.c: New file.
76427         * lib/trigl.h: New file.
76428
76429 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76430
76431         * m4/mathl.m4: New file.
76432
76433 2003-02-18  Bruno Haible  <bruno@clisp.org>
76434
76435         * MODULES.html.sh (func_all_modules): Add mathl.
76436
76437 2003-02-17  Bruno Haible  <bruno@clisp.org>
76438
76439         * modules/mkdtemp: New module.
76440         * MODULES.html.sh (func_all_modules): Add it.
76441
76442 2003-02-17  Bruno Haible  <bruno@clisp.org>
76443
76444         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76445
76446 2003-02-17  Bruno Haible  <bruno@clisp.org>
76447
76448         * lib/mkdtemp.h: New file, from GNU gettext.
76449         * lib/mkdtemp.c: New file, from GNU gettext.
76450
76451 2003-02-02  Jim Meyering  <jim@meyering.net>
76452
76453         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76454         e.g. glibc-2.2.93.
76455
76456 2003-01-31  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76459         'rpl_rename'.
76460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76461         'rpl_strnlen'.
76462         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76463         'rpl_strtod'.
76464         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76465         'rpl_utime'.
76466
76467 2003-01-31  Bruno Haible  <bruno@clisp.org>
76468
76469         * lib/rename.c: #undef rename before defining rpl_rename.
76470         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76471
76472 2003-01-30  Bruno Haible  <bruno@clisp.org>
76473
76474         * modules/vasnprintf, modules/vasprintf: New modules.
76475         * MODULES.html.sh (func_all_modules): Add them.
76476
76477 2003-01-30  Bruno Haible  <bruno@clisp.org>
76478
76479         * m4/signed.m4: New file, from GNU gettext.
76480         * m4/longdouble.m4: New file, from GNU gettext.
76481         * m4/wchar_t.m4: New file, from GNU gettext.
76482         * m4/wint_t.m4: New file, from GNU gettext.
76483         * m4/vasnprintf.m4: New file.
76484         * m4/vasprintf.m4: New file.
76485
76486 2003-01-30  Bruno Haible  <bruno@clisp.org>
76487
76488         * lib/printf-args.h: New file, from GNU gettext.
76489         * lib/printf-args.c: New file, from GNU gettext.
76490         * lib/printf-parse.h: New file, from GNU gettext.
76491         * lib/printf-parse.c: New file, from GNU gettext.
76492         * lib/vasnprintf.h: New file, from GNU gettext.
76493         * lib/vasnprintf.c: New file, from GNU gettext.
76494         * lib/asnprintf.c: New file, from GNU gettext.
76495         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76496         * lib/vasprintf.c: New file, from GNU gettext.
76497         * lib/asprintf.c: New file, from GNU gettext.
76498
76499 2003-01-29  Bruno Haible  <bruno@clisp.org>
76500
76501         * modules/stpncpy: New module.
76502         * MODULES.html.sh (func_all_modules): Add it.
76503
76504 2003-01-29  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/stpncpy.m4: New file.
76507
76508 2003-01-29  Bruno Haible  <bruno@clisp.org>
76509
76510         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76511         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76512
76513 2003-01-28  Bruno Haible  <bruno@clisp.org>
76514
76515         * modules/c-ctype: New module.
76516         * MODULES.html.sh (func_all_modules): Add it.
76517
76518 2003-01-28  Bruno Haible  <bruno@clisp.org>
76519
76520         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76521         Paul Eggert.
76522         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76523         Paul Eggert.
76524
76525 2003-01-27  Bruno Haible  <bruno@clisp.org>
76526
76527         * modules/xsetenv: New module.
76528         * MODULES.html.sh (func_all_modules): Add it.
76529
76530 2003-01-27  Bruno Haible  <bruno@clisp.org>
76531
76532         * lib/xsetenv.h: New file, from GNU gettext.
76533         * lib/xsetenv.c: New file, from GNU gettext.
76534
76535 2003-01-23  Jim Meyering  <jim@meyering.net>
76536
76537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76538         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76539
76540 2003-01-23  Bruno Haible  <bruno@clisp.org>
76541
76542         * modules/minmax: New module.
76543         * MODULES.html.sh (func_all_modules): Add it.
76544
76545 2003-01-23  Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76548         Eggert.
76549
76550 2003-01-22  Bruno Haible  <bruno@clisp.org>
76551
76552         * modules/exit: New module.
76553         * MODULES.html.sh (func_all_modules): Add it.
76554
76555 2003-01-22  Bruno Haible  <bruno@clisp.org>
76556
76557         * lib/exit.h: New file, from GNU gettext.
76558
76559 2003-01-19  Bruno Haible  <bruno@clisp.org>
76560
76561         * gnulib-tool: Recognize option --extract-maintainer.
76562         (func_get_maintainer): New function.
76563         * modules/*: Add Maintainer entry.
76564
76565 2003-01-16  Jim Meyering  <jim@meyering.net>
76566
76567         * m4/regex.m4: The `regex' struct is both input and output.
76568         Initialize it before each use.  Patch by Tim Waugh.
76569
76570 2003-01-16  Bruno Haible  <bruno@clisp.org>
76571
76572         * MODULES.html.sh: Add a table of contents. Add the module name as
76573         leftmost column. Add hyperlinks.
76574
76575 2003-01-15  Bruno Haible  <bruno@clisp.org>
76576
76577         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76578
76579 2003-01-15  Bruno Haible  <bruno@clisp.org>
76580
76581         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76582         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76583         suffix.
76584
76585 2003-01-15  Bruno Haible  <bruno@clisp.org>
76586
76587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76588
76589 2003-01-15  Bruno Haible  <bruno@clisp.org>
76590
76591         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76592         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76593
76594 2003-01-14  Jim Meyering  <jim@meyering.net>
76595
76596         * lib/same.c (same_name): Tweak a comment.
76597
76598 2003-01-14  Bruno Haible  <bruno@clisp.org>
76599
76600         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76601         when a string comparison is sufficient.
76602
76603 2003-01-14  Bruno Haible  <bruno@clisp.org>
76604
76605         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76606         'unsigned int'.
76607
76608 2003-01-14  Bruno Haible  <bruno@clisp.org>
76609
76610         * lib/hash-pjw.c: Add comment about low quality of this function.
76611
76612 2003-01-13  Bruno Haible  <bruno@clisp.org>
76613
76614         * modules/stpcpy: Distribute lib/stpcpy.h.
76615         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76616
76617 2003-01-13  Bruno Haible  <bruno@clisp.org>
76618
76619         * modules/*: Add a description.
76620         * modules/strpbrk: Fix Makefile.am snippet.
76621         * modules/strtoimax: Fix dependencies.
76622         * modules/strtoumax: Likewise.
76623
76624 2003-01-13  Bruno Haible  <bruno@clisp.org>
76625
76626         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76627         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76628         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76629
76630 2003-01-13  Bruno Haible  <bruno@clisp.org>
76631
76632         * gnulib-tool (func_create_testdir): Store config/* files in the main
76633         directory.
76634         * config.rpath: Move to ...
76635         * config/config.rpath: ... here.
76636         * modules/gettext: Contains config/config.rpath, not config.rpath.
76637         * modules/iconv: Likewise.
76638
76639 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76640
76641         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76642         to avoid collisions with libcurses and libreadline.
76643
76644         * m4/getstr.m4: Remove.
76645         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76646
76647 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76648
76649         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76650         to avoid collisions with libcurses and libreadline.
76651
76652         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76653         * lib/getstr.h, getstr.c: Remove.
76654         * lib/getline.c: Include "getline.h", to check interface.
76655         Move body of old getstr.c here: this defines MIN_CHUNK and
76656         declares getdelim2, which is renamed from getstr.
76657         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76658
76659         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76660         All uses changed.
76661         * lib/linebuffer.h: Likewise.
76662         (readline): Remove backward-compatibility macro.
76663
76664 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76665
76666         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76667         to avoid collisions with libcurses and libreadline.
76668         * getstr: Remove.
76669         * MODULES.html.sh: Remove getstr.
76670         * modules/getline: Depend on unlocked-io, not getstr.
76671
76672 2003-01-12  Jim Meyering  <jim@meyering.net>
76673
76674         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76675
76676 2003-01-10  Bruno Haible  <bruno@clisp.org>
76677
76678         * modules/alloca: Change Makefile.am requirements. Simplify Include
76679         requirements. Add lib/alloca_.h to file list.
76680
76681 2003-01-10  Bruno Haible  <bruno@clisp.org>
76682
76683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76684
76685 2003-01-10  Bruno Haible  <bruno@clisp.org>
76686
76687         * lib/alloca_.h: New file.
76688         * lib/getdate.y: Unconditionally include alloca.h.
76689         * lib/makepath.c: Likewise.
76690         * lib/setenv.c: Likewise.
76691         * lib/userspec.c: Likewise.
76692
76693 2003-01-09  Karl Berry  <karl@gnu.org>
76694
76695         * MODULES.html.sh: include `dirname $0` in PATH, to find
76696         gnulib-tool.
76697
76698 2003-01-09  Bruno Haible  <bruno@clisp.org>
76699
76700         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76701         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76702
76703 2003-01-09  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76706
76707 2003-01-09  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/stdbool.h.in: New file.
76710
76711 2003-01-09  Bruno Haible  <bruno@clisp.org>
76712
76713         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76714         * MODULES.html.sh: Likewise.
76715
76716 2003-01-08  Jim Meyering  <jim@meyering.net>
76717
76718         * lib/full-write.c: Undefine and define-away `const' after inclusion
76719         of errno.h, not before.  Suggestion from Bruno Haible.
76720
76721 2003-01-08  Bruno Haible  <bruno@clisp.org>
76722
76723         * modules/full-read: Depend on full-write.
76724
76725 2003-01-08  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/safe-read.c: Include specification header first, to ensure its
76728         selfcontainedness.
76729         * lib/full-write.c: Likewise.
76730
76731 2003-01-07  Jim Meyering  <jim@meyering.net>
76732
76733         * lib/full-write.c: Rework so that it may serve to define full_read,
76734         too.
76735         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76736
76737 2003-01-07  Bruno Haible  <bruno@clisp.org>
76738
76739         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76740         <inttypes.h>.
76741         * lib/xstrtol.h: Likewise.
76742         * lib/xstrtoimax.c: Likewise.
76743         * lib/xstrtoumax.c: Likewise.
76744         * lib/human.h: Likewise.
76745
76746         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76747         on systems that have <inttypes.h> but not <stdint.h>.
76748
76749 2003-01-07  Bruno Haible  <bruno@clisp.org>
76750
76751         * MODULES.html.sh: Add copyright notice.
76752         (missed_files): Omit CVS directory entries.
76753         (func_module): Make it work with sed-3.02.
76754         * MODULES.txt: Remove file.
76755
76756 2003-01-06  Jim Meyering  <jim@meyering.net>
76757
76758         * lib/version-etc.c: Update year in translatable copyright string.
76759
76760 2003-01-03  Karl Berry  <karl@gnu.org>
76761
76762         * config/config.{guess,sub}: update from prep.
76763
76764 2003-01-02  Karl Berry  <karl@gnu.org>
76765
76766         * doc/COPYING.DOC: belatedly updated to 1.2.
76767
76768 2003-01-01  Karl Berry  <karl@gnu.org>
76769
76770         * gnulib-tool (func_verify_module): report module name $module in
76771         error message, not $1.
76772         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76773         be created, only if it doesn't exist.
76774         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76775
76776 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76777
76778         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76779
76780 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76781
76782         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76783         memcmp if strcoll doesn't work.
76784
76785 2002-12-31  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76788         nonempty.
76789
76790 2002-12-31  Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/memcoll.c (STRCOLL): New macro.
76793         (memcoll): Use it.
76794
76795 2002-12-31  Bruno Haible  <bruno@clisp.org>
76796
76797         * lib/localcharset.h: New file.
76798         * lib/localcharset.c: Include it.
76799         * lib/unicodeio.c: Likewise.
76800
76801 2002-12-31  Bruno Haible  <bruno@clisp.org>
76802
76803         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76804         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76805
76806 2002-12-31  Bruno Haible  <bruno@clisp.org>
76807
76808         * lib/getline.h: Include <stddef.h>, for size_t.
76809
76810         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76811         * lib/unicodeio.c: Don't include <stddef.h>.
76812
76813 2002-12-31  Bruno Haible  <bruno@clisp.org>
76814
76815         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76816         HAVE_TM_ZONE.
76817
76818 2002-12-24  Karl Berry  <karl@gnu.org>
76819
76820         * config/config.guess: update from prep.
76821
76822 2002-12-24  Bruno Haible  <bruno@clisp.org>
76823
76824         General infrasructure.
76825         * m4/README: Rewritten.
76826         * m4/onceonly.m4: New file.
76827         * m4/onceonly_2_57.m4: New file.
76828
76829         Module atexit.
76830         * m4/atexit.m4: New file.
76831
76832         Module strtod.
76833         * m4/strtod.m4: New file.
76834
76835         Module strtol.
76836         * m4/strtol.m4: New file.
76837
76838         Module strtoul.
76839         * m4/strtoul.m4: New file.
76840
76841         Module memchr.
76842         * m4/memchr.m4: New file.
76843
76844         Module memcmp.
76845         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76846         (jm_FUNC_MEMCMP): Invoke it.
76847
76848         Module memcpy.
76849         * m4/memcpy.m4: New file.
76850
76851         Module memmove.
76852         * m4/memmove.m4: New file.
76853
76854         Module memset.
76855         * m4/memset.m4: New file.
76856
76857         Module strcspn.
76858         * m4/strcspn.m4: New file.
76859
76860         Module strpbrk.
76861         * m4/strpbrk.m4: New file.
76862
76863         Module strstr.
76864         * m4/strstr.m4: New file.
76865
76866         Module strerror.
76867         * m4/strerror.m4: New file.
76868
76869         Module mktime.
76870         * m4/mktime.m4: Renamed from jm-mktime.m4.
76871         (gl_PREREQ_MKTIME): New macro.
76872         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76873
76874         Module malloc.
76875         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76876         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76877         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76878
76879         Module realloc.
76880         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76881         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76882         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76883
76884         Module strftime.
76885         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76887         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76888         gl_TM_GMTOFF.
76889         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76890
76891         Module xalloc.
76892         * m4/xalloc.m4: New file.
76893
76894         Module alloca.
76895         * m4/alloca.m4: New file.
76896
76897         Module putenv.
76898         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76899         (jm_FUNC_PUTENV): Invoke it.
76900
76901         Module setenv.
76902         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76903         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76904         when invoked twice.
76905         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76906         gt_FUNC_SETENV.
76907
76908         Module memrchr.
76909         * m4/memrchr.m4: New file.
76910
76911         Module stpcpy.
76912         * m4/stpcpy.m4: New file.
76913
76914         Module strcase.
76915         * m4/strcase.m4: New file.
76916
76917         Module strdup.
76918         * m4/strdup.m4: New file.
76919
76920         Module strnlen.
76921         * m4/strnlen.m4: New file.
76922
76923         Module strndup.
76924         * m4/strndup.m4: New file.
76925
76926         Module xstrtod.
76927         * m4/xstrtod.m4: New file.
76928
76929         Module xstrtol.
76930         * m4/xstrtol.m4: New file.
76931
76932         Module getdate.
76933         * m4/getdate.m4: New file.
76934
76935         Module unlocked-io.
76936         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76937         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76938         * m4/jm-glibc-io.m4n: Remove file.
76939
76940         Module long-options.
76941         * m4/long-options.m4: New file.
76942
76943         Module md5.
76944         * m4/md5.m4: New file.
76945
76946         Module sha.
76947         * m4/sha.m4: New file.
76948
76949         Module getstr.
76950         * m4/getstr.m4: New file.
76951
76952         Module getline.
76953         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76954         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76955         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76956         simply getline. Infoke gl_PREREQ_GETLINE.
76957
76958         Module obstack.
76959         * m4/obstack.m4: New file.
76960
76961         Module hash.
76962         * m4/hash.m4: New file.
76963
76964         Module readtokens.
76965         * m4/readtokens.m4: New file.
76966
76967         Module strverscmp.
76968         * m4/strverscmp.m4: New file.
76969
76970         Module stdbool.
76971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76972         OSF/1.
76973
76974         Module strtoll.
76975         * m4/strtoll.m4: New file.
76976
76977         Module strtoull.
76978         * m4/strtoull.m4: New file.
76979
76980         Module strtoimax.
76981         * m4/strtoimax.m4: New file.
76982
76983         Module strtoumax.
76984         * m4/strtoumax.m4: New file.
76985
76986         Module xstrtoimax.
76987         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76988         jm_AC_PREREQ_XSTRTOIMAX.
76989         Moved the strtol prerequisites to strtol.m4.
76990         Moved the strtoll prerequisites to strtoll.m4.
76991         Moved the strtoimax prerequisites to strtoimax.m4.
76992
76993         Module xstrtoumax.
76994         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76995         jm_AC_PREREQ_XSTRTOUMAX.
76996         Moved the strtoul prerequisites to strtoul.m4.
76997         Moved the strtoull prerequisites to strtoull.m4.
76998         Moved the strtoumax prerequisites to strtoumax.m4.
76999
77000         Module chown.
77001         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77002         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77003
77004         Module dup2.
77005         * m4/dup2.m4: New file.
77006
77007         Module ftruncate.
77008         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77009         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77010
77011         Module getgroups.
77012         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77013         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77014
77015         Module gettimeofday.
77016         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77017         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77018         gl_PREREQ_GETTIMEOFDAY.
77019
77020         Module mkdir.
77021         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77022         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77023
77024         Module mkstemp.
77025         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77026         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77027         jm_AC_TYPE_UINTMAX_T.
77028         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77029
77030         Module stat.
77031         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77032         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77033
77034         Module lstat.
77035         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77036         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77037
77038         Module timespec.
77039         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77040         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77041         * m4/st_mtim.m4: Indentation.
77042
77043         Module nanosleep.
77044         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77045         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77046         gl_PREREQ_NANOSLEEP.
77047
77048         Module regex.
77049         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77050         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77051         (gl_REGEX): New macro.
77052
77053         Module rename.
77054         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77055         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77056
77057         Module rmdir.
77058         * m4/rmdir.m4: New file.
77059
77060         Module utime.
77061         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77062         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77063         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77064
77065         Module dirname.
77066         * m4/dirname.m4: New file.
77067
77068         Module getopt.
77069         * m4/getopt.m4: New file.
77070
77071         Module unistd-safer.
77072         * m4/unistd-safer.m4: New file.
77073
77074         Module fnmatch.
77075         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77076         declaration.
77077         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77078         (gl_FUNC_FNMATCH_POSIX): New macro.
77079         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77080         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77081         simply fnmatch.
77082
77083         Module exclude.
77084         * m4/exclude.m4: New file.
77085
77086         Module human.
77087         * m4/human.m4: New file.
77088
77089         Module acl.
77090         * m4/acl.m4: Nop.
77091
77092         Module backupfile.
77093         * m4/backupfile.m4: New file.
77094         * m4/d-ino.m4: Indentation.
77095
77096         Module fsusage.
77097         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77098         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77099         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77100
77101         Module dirfd.
77102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77103         requirements.
77104
77105         Module euidaccess.
77106         * m4/euidaccess.m4: New file.
77107
77108         Module file-type.
77109         * m4/file-type.m4: New file.
77110
77111         Module fileblocks.
77112         * m4/fileblocks.m4: New file.
77113
77114         Module filemode.
77115         * m4/filemode.m4: New file.
77116
77117         Module isdir.
77118         * m4/isdir.m4: New file.
77119
77120         Module lchown.
77121         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77122         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77123
77124         Module makepath.
77125         * m4/makepath.m4: New file.
77126
77127         Module modechange.
77128         * m4/modechange.m4: New file.
77129
77130         Module mountlist.
77131         * m4/mountlist.m4: New file.
77132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77133         Indentation.
77134
77135         Module path-concat.
77136         * m4/path-concat.m4: New file.
77137
77138         Module pathmax.
77139         * m4/pathmax.m4: New file.
77140
77141         Module same.
77142         * m4/same.m4: New file.
77143
77144         Module save-cwd.
77145         * m4/save-cwd.m4: New file.
77146
77147         Module savedir.
77148         * m4/savedir.m4: New file.
77149
77150         Module xgetcwd.
77151         * m4/xgetcwd.m4: New file.
77152         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77153
77154         Module xreadlink.
77155         * m4/xreadlink.m4: New file.
77156
77157         Module safe-read.
77158         * m4/safe-read.m4: New file.
77159
77160         Module safe-write.
77161         * m4/safe-write.m4: New file.
77162
77163         Module closeout.
77164         * m4/closeout.m4: New file.
77165
77166         Module stdio-safer.
77167         * m4/stdio-safer.m4: New file.
77168
77169         Module getpass.
77170         * m4/getpass.m4: New file.
77171
77172         Module getugroups.
77173         * m4/getugroups.m4: New file.
77174
77175         Module group-member.
77176         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77177         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77178
77179         Module idcache.
77180         * m4/idcache.m4: New file.
77181
77182         Module userspec.
77183         * m4/userspec.m4: New file.
77184
77185         Module gettime.
77186         * m4/clock_time.m4: New file.
77187         * m4/gettime.m4: New file.
77188
77189         Module settime.
77190         * m4/settime.m4: New file.
77191
77192         Module posixtm.
77193         * m4/posixtm.m4: New file.
77194
77195         Module gethostname.
77196         * m4/gethostname.m4: New file.
77197
77198         Module canon-host.
77199         * m4/canon-host.m4: New file.
77200
77201         Module gettext.
77202         * m4/codeset.m4: New file, from gettext-0.11.5.
77203         * m4/gettext.m4: New file, from gettext-0.11.5.
77204         * m4/glibc21.m4: New file, from gettext-0.11.5.
77205         * m4/iconv.m4: New file, from gettext-0.11.5.
77206         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77207         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77208         * m4/inttypes.m4: New file, from gettext-0.11.5.
77209         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77210         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77211         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77212         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77213         * m4/lib-link.m4: New file, from gettext-0.11.5.
77214         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77215         * m4/progtest.m4: New file, from gettext-0.11.5.
77216         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77217         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77218         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77219
77220         Module localcharset.
77221         * m4/localcharset.m4: New file.
77222
77223         Module hard-locale.
77224         * m4/hard-locale.m4: New file.
77225
77226         Module mbswidth.
77227         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77228         onceonly macros.
77229         * m4/mbrtowc.m4: Add comment.
77230
77231         Module memcasecmp.
77232         * m4/memcasecmp.m4: New file.
77233
77234         Module memcoll.
77235         * m4/memcoll.m4: New file.
77236
77237         Module unicodeio.
77238         * m4/unicodeio.m4: New file.
77239
77240         Module rpmatch.
77241         * m4/rpmatch.m4: New file.
77242
77243         Module yesno.
77244         * m4/yesno.m4: New file.
77245
77246         Module exitfail.
77247         * m4/exitfail.m4: New file.
77248
77249         Module c-stack.
77250         * m4/c-stack.m4 (gl_C_STACK): New macro.
77251         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77252
77253         Module error.
77254         * m4/error.m4 (gl_ERROR): New macro.
77255         (jm_PREREQ_ERROR): Use onceonly macros.
77256
77257         Module fatal.
77258         * m4/fatal.m4: New file.
77259
77260         Module getloadavg.
77261         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77262         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77263
77264         Module getpagesize.
77265         * m4/getpagesize.m4: New file.
77266
77267         Module getusershell.
77268         * m4/getusershell.m4: New file.
77269
77270         Module physmem.
77271         * m4/physmem.m4: New file.
77272
77273         Module posixver.
77274         * m4/posixver.m4: New file.
77275
77276         Module quotearg.
77277         * m4/quotearg.m4: New file.
77278
77279         Module quote.
77280         * m4/quote.m4: New file.
77281
77282         Module readutmp.
77283         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77284
77285         Module sig2str.
77286         * m4/sig2str.m4: New file.
77287
77288         Other.
77289         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77290         ulonglong.m4.
77291         * m4/intmax_t.m4: New file.
77292         * m4/d-type.m4: Indentation.
77293         * m4/jm-macros.m4: Update.
77294         * m4/prereq.m4 (jm_PREREQ): Update.
77295         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77296         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77297         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77298         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77299         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77300         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77301         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77302         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77303         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77304         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77305         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77306         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77307         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77308         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77309         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77310         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77311         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77312         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77313         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77314
77315 2002-12-24  Bruno Haible  <bruno@clisp.org>
77316
77317         * MODULES.txt: Update according to m4/ changes.
77318
77319         Module gettext.
77320         * config.rpath: New file, from gettext-0.11.5.
77321
77322         * modules/*: New module descriptions.
77323         * gnulib-tool: New file.
77324         * MODULES.html.sh: New file.
77325
77326 2002-12-21  Karl Berry  <karl@gnu.org>
77327
77328         * doc/fdl.texi: update to version 1.2.
77329
77330 2002-12-19  Karl Berry  <karl@gnu.org>
77331
77332         * config/config.guess: update from prep.
77333
77334 2002-12-18  Bruno Haible  <bruno@clisp.org>
77335
77336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77337         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77338
77339 2002-12-17  Bruno Haible  <bruno@clisp.org>
77340
77341         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77342         stdlib.h, string.h.
77343
77344 2002-12-17  Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/canon-host.c (strdup): Remove unused declaration.
77347
77348         * lib/fsusage.c: Include full_read.h.
77349         (get_fs_usage): Use full_read instead of safe_read.
77350
77351         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77352
77353 2002-12-12  Karl Berry  <karl@gnu.org>
77354
77355         * config/config.guess: update from prep.
77356
77357 2002-12-11  Bruno Haible  <bruno@clisp.org>
77358
77359         * m4/setenv.m4: New file, from gettext-0.11.5.
77360
77361 2002-12-11  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77364         not unsetenv().
77365         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77366         modifications:
77367
77368         2002-12-11  Bruno Haible  <bruno@clisp.org>
77369
77370                 * setenv.c (alloca): Fall back to malloc.
77371                 (freea): New macro.
77372                 (setenv): Use freea() to free memory allocated with alloca().
77373
77374         2002-11-13  Bruno Haible  <bruno@clisp.org>
77375
77376                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77377                 function declarations.
77378                 * unsetenv.c (unsetenv): Likewise.
77379
77380         2002-03-04  Bruno Haible  <bruno@clisp.org>
77381
77382                 Portability to AIX 4.3.3.
77383                 * unsetenv.c: New file, extracted from setenv.c.
77384                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77385
77386         2001-12-20  Bruno Haible  <bruno@clisp.org>
77387
77388                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77389                 use malloc instead. For SunOS 4.
77390
77391         2001-12-11  Bruno Haible  <bruno@clisp.org>
77392
77393                 * setenv.c: Declare alloca.
77394                 (compar_fn_t): New typedef.
77395                 (KNOWN_VALUE, STORE_VALUE): Use it.
77396
77397         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77398         setenv.h.
77399
77400 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77401
77402         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77403         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77404         Choose values that are less likely to collide with system fnmatch
77405         options.
77406         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77407         defined (e.g., a pure POSIX system).
77408         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77409         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77410
77411 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77412
77413         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77414         a pain in practice to deal with generated m4 files.  This change
77415         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77416
77417         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77418         and jm-glibc-io.m4, as they are no longer a special case.
77419         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77420         kludge and the auto-generation stuff.  Check only whether the
77421         functions are declared, not whether they exist, since older hosts
77422         that don't declare the functions can't use the optimization anyway.
77423
77424 2002-12-06  Jim Meyering  <jim@meyering.net>
77425
77426         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77427
77428         Merge in changes from libc's misc/error.c, in preparation
77429         for the merge of gnulib's changes back into libc.
77430
77431         * lib/error.c (_): Define only if not already defined.
77432         Move definition to follow all #include directives.
77433         Include unlocked-io.h only if !_LIBC.
77434         [_LIBC]: Include <libio/libioP.h>.
77435         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77436         (fflush): Tweak definition to use INTUSE.
77437         (putc): Define.
77438
77439 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77440
77441         * lib/alloca.c [defined emacs]: Include "lisp.h".
77442         (xalloc_die) [defined emacs]: New macro.
77443         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77444         [! defined emacs]: Include <xalloc.h>.
77445         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77446         (pointer): Typedef to POINTER_TYPE *.
77447         (malloc): Remove decl; we now always use xmalloc.
77448         (alloca): Use old-style definition, since Emacs needs this.
77449         Check for arithmetic overflow when computing combined size.
77450
77451 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77452
77453         Do not generate unlocked-io.h automatically, since it's easier to
77454         maintain it by hand.
77455
77456         * lib/unlocked-io.h: New file, from GNU diffutils,
77457         but with proper copyright notice and attribution.
77458         * lib/gen-uio: Remove.
77459         * lib/Makefile.am: Add copyright notice.
77460         (libfetish_a_SOURCES): Add unlocked-io.h.
77461         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77462         (DISTCLEANFILES, io_functions): Remove macros.
77463         (EXTRA_DIST): Remove gen_uio.
77464         (unlocked-io.h): Remove rule.
77465
77466 2002-12-04  Jim Meyering  <jim@meyering.net>
77467
77468         Reflect the fact that stat.c and lstat.c are no longer generated.
77469         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77470         (DISTCLEANFILES): Likewise.
77471         (EXTRA_DIST): Likewise.
77472         (all_local): Don't depend on stat.c or lstat.c.
77473         (stat.c, lstat.c): Remove rules.
77474         (EXTRA_DIST): Remove xstat.in.
77475
77476         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77477         * lib/stat.c: New file.  Contents mostly from xstat.in.
77478         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77479         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77480
77481         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77482         too.
77483         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77484
77485 2002-12-03  Jim Meyering  <jim@meyering.net>
77486
77487         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77488         but not semantics, to minimize the differences between these two files.
77489         (safe_read): Change comment to mention SAFE_READ_ERROR.
77490
77491         * lib/safe-read.c (IS_EINTR): Define.
77492         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77493
77494 2002-12-02  Jim Meyering  <jim@meyering.net>
77495
77496         * lib/safe-read.c (EINTR): Define.
77497         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77498         (INT_MAX): Provide fallback.
77499         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77500
77501         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77502
77503 2002-12-02  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77506         Define, taken from safe-read.c.
77507         (INT_MAX): Provide fallback.
77508         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77509         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77510
77511         * lib/safe-read.c (EINTR): Remove definition.
77512         (safe_read): Don't use EINTR if it is absent.
77513
77514 2002-12-01  Jim Meyering  <jim@meyering.net>
77515
77516         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77517         zero.
77518         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77519
77520 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77521
77522         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77523         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77524         with `if (! (value < limit)) abort ();', for readability.
77525
77526 2002-11-26  Karl Berry  <karl@gnu.org>
77527
77528         * lib/strdup.c: copy from libc again, with jim's ok.
77529         * lib/.cppi-disable: re-add strdup.c
77530
77531 2002-11-25  Karl Berry  <karl@gnu.org>
77532
77533         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77534         instead of "strtol.c".
77535
77536 2002-11-25  Karl Berry  <karl@gnu.org>
77537
77538         * config/install-sh: update from automake for variable quoting, $0 in
77539         error msgs, etc.
77540
77541         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77542         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77543         entry.
77544
77545 2002-11-25  Jim Meyering  <jim@meyering.net>
77546
77547         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77548
77549 2002-11-24  Karl Berry  <karl@gnu.org>
77550
77551         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77552         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77553
77554 2002-11-24  Jim Meyering  <jim@meyering.net>
77555
77556         Update from coreutils:
77557
77558         * lib/mktime.c: Merge in changes from libc.
77559
77560         Avoid a link-time failure on some Linux systems.
77561         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77562         (otherwise).
77563         (__mon_yday): Declare with the STATIC attribute.
77564         (__mktime_internal): Likewise.
77565         Based on a report from Greg Schafer.
77566
77567 2002-11-23  Jim Meyering  <jim@meyering.net>
77568
77569         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77570         Use `unsigned', not `int', as type of index.
77571
77572         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77573
77574         * lib/fsusage.c: Remove unneeded parentheses around operands of
77575         `defined'.
77576
77577 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77578
77579         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77580         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77581         so that we can be included first.
77582         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77583         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77584         No need to include stddef.h or sys/types.h any more.
77585         Surround local include files with "", not "<>".
77586         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77587         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77588         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77589         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77590         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77591         (ISPRINT): Remove; no longer needed now that we assume C89.
77592
77593         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77594         Preserve errno.
77595
77596         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77597         quotearg_char): Use SIZE_MAX rather than
77598         (size_t) -1 when we are talking about "infinity".
77599
77600         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77601
77602 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77603
77604         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77605         hint that one should use `if (! x) abort ();' rather than `assert
77606         (x);', and anyway it's one less thing to worry about configuring.
77607         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77608         hash_rehash, hash_insert): Use abort rather than assert.
77609
77610 2002-11-22  Bruno Haible  <bruno@clisp.org>
77611
77612         * lib/safe-read.h: Assume C89. Add comments.
77613         (safe_read): Change return type to size_t.
77614         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77615         byte counts > SSIZE_MAX correctly.
77616         * lib/safe-write.h: New file.
77617         * lib/safe-write.c: New file.
77618         * lib/full-read.h: New file.
77619         * lib/full-read.c: New file.
77620         * lib/full-write.h: Assume C89. Add comments.
77621         * lib/full-write.c: Include safe-write.h.
77622         (full_write): Rewritten to use safe_write.
77623         Suggested by Jim Meyering and Paul Eggert.
77624
77625 2002-11-21  Jim Meyering  <jim@meyering.net>
77626
77627         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77628
77629         Merge in changes from the coreutils.
77630
77631         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77632         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77633         <stdint.h>.
77634         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77635         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77636         int.  Work more efficiently if X is the same width as uintmax_t.
77637         Do not compare X to -1, to avoid bogus compiler warning.
77638         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77639         Don't assume that f_frsize and f_bsize are the same type.
77640
77641         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77642         warning on FreeBSD.
77643
77644         * lib/makepath.c (make_path): Restore umask *before* creating the final
77645         component.
77646         (make_path): Minor reformatting.
77647
77648         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77649         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77650         HAVE_MALLOC/HAVE_REALLOC.
77651
77652         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77653         dummy ones.  At least on GNU/Linux systems, `auto' means something
77654         else.
77655         From Michael Stone.
77656
77657 2002-11-21  Bruno Haible  <bruno@clisp.org>
77658
77659         Remove case insensitive option matching.
77660         * lib/argmatch.h (argcasematch): Remove declaration.
77661         (ARGCASEMATCH): Remove macro.
77662         (__xargmatch_internal): Remove case_sensitive argument.
77663         (XARGMATCH): Update.
77664         (XARGCASEMATCH): Remove macro.
77665         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77666         case_sensitive argument.
77667         (argcasematch): Remove function.
77668         (__xargmatch_internal): Remove case_sensitive argument.
77669         (main): Use XARGMATCH instead of XARGCASEMATCH.
77670
77671         * lib/xmalloc.c: Change compile-time error message. Add comment about
77672         required autoconf version.
77673
77674 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77675
77676         Merge argmatch cleanups from Bison.  Assume C89.
77677
77678         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77679         Include stdlib.h, for EXIT_FAILURE.
77680         Always include <string.h>, since we assume C89.
77681         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77682         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77683         Include <stddef.h> instead, since it's all we need for size_t.
77684         (PARAMS): Remove.  All uses removed.
77685         (ARRAY_CARDINALITY): Do not bother to #undef.
77686         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77687         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77688         Remove unnecessary parentheses.
77689         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77690         Insert necessary parentheses.
77691         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77692         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77693
77694 2002-11-19  Bruno Haible  <bruno@clisp.org>
77695
77696         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77697         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77698
77699         * lib/mbswidth.h (PARAMS): Remove macro.
77700         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77701         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77702
77703         * lib/gcd.h (PARAMS): Remove macro.
77704         (gcd): Use ANSI C function declarations.
77705         * lib/gcd.c (gcd): Likewise.
77706
77707 2002-11-15  Bruno Haible  <bruno@clisp.org>
77708
77709         * lib/strcspn.c: Include <stddef.h>.
77710         (strcspn): Use ANSI C function declaration. Change return type to
77711         size_t. Use NULL.
77712         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77713         (strpbrk): Use NULL.
77714         * lib/strpbrk.h (PARAMS): Remove macro.
77715         (strpbrk): Use ANSI C function declaration.
77716         * lib/strstr.c: Don't include <sys/types.h>.
77717         * lib/strstr.h (PARAMS): Remove macro.
77718         (strstr): Use ANSI C function declarations.
77719
77720 2002-11-14  Karl Berry  <karl@gnu.org>
77721
77722         * config/mkinstalldirs: `do' on separate line, instead of
77723         `for var; do'.
77724
77725 2002-11-06  Bruno Haible  <bruno@clisp.org>
77726
77727         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77728         * lib/gcd.c (gcd): Likewise.
77729
77730 2002-11-05  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/gcd.h: New file, from gettext-0.11.5.
77733         * lib/gcd.c: New file, from gettext-0.11.5.
77734
77735 2002-11-05  Bruno Haible  <bruno@clisp.org>
77736
77737         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77738         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77739         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77740         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77741
77742         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77743         <libintl.h>.
77744         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77745         <libintl.h>.
77746
77747         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77748         * lib/human.c: Include gettext.h instead of <libintl.h>.
77749         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77750         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77751         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77752         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77753         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77754         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77755         (textdomain): Remove definition.
77756         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77757
77758         * lib/long-options.c: Remove include of <libintl.h> and definition of
77759         _.
77760         * lib/same.c: Remove include of <libintl.h> and definition of _.
77761
77762 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77763
77764         * lib/config.charset: A few additions for Solaris.
77765
77766 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77767
77768         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77769         * lib/localcharset.c (locale_charset): Declare as extern "C".
77770
77771 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77772
77773         * lib/config.charset: msdos in uk_UA uses CP1125.
77774
77775 2002-11-04  Bruno Haible  <bruno@clisp.org>
77776
77777         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77778         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77779         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77780         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77781         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77782
77783 2002-11-04  Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/localcharset.c (locale_charset): Don't return an empty string.
77786
77787 2002-11-04  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77790         aliases.
77791
77792 2002-11-04  Bruno Haible  <bruno@clisp.org>
77793
77794         * lib/config.charset: Update for newest glibc. Add canonical names
77795         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77796
77797 2002-11-04  Bruno Haible  <bruno@clisp.org>
77798
77799         * lib/config.charset: Add support for NetBSD.
77800
77801 2002-11-04  Bruno Haible  <bruno@clisp.org>
77802
77803         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77804
77805 2002-11-01  Bruno Haible  <bruno@clisp.org>
77806
77807         * configure.in: Add AC_CONFIG_AUX_DIR call.
77808         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77809         test/Makefile.
77810         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77811
77812 2002-09-28  Karl Berry  <karl@gnu.org>
77813
77814         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77815         installed automake until the next release, since changes have been
77816         made.
77817
77818 2002-09-25  Karl Berry  <karl@gnu.org>
77819
77820         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77821         * lib/getopt*: copy from libc/posix.
77822         * lib/gettext.h: copy from gettext.
77823         * lib/.cppi-disable: add strdup.c, gettext.h.
77824
77825 2002-09-25  Karl Berry  <karl@gnu.org>
77826
77827         * config/srclist.txt: enable gettext.h check.
77828         * config/config.{guess,sub}: update from prep.
77829         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77830                 from automake 1.6.3.
77831         See srclist*.
77832
77833 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77834
77835         * regex.c (PATFETCH): Remove the translating fetch.
77836         (PATFETCH_RAW): Rename to PATFETCH.
77837         (set_image_of_range): New fun.
77838         (SET_RANGE_TABLE_WORK_AREA): Use it.
77839         (regex_compile): Don't translate the pattern chars so eagerly.
77840         Only do it when inserting an `exactn' bytecode or when handling
77841         a char-range.
77842         (mutually_exclusive_p): Avoid empty statement.
77843
77844 2002-07-06  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/README: Don't mention Makefile.am.in.
77847         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77848
77849 2002-07-01  Jim Meyering  <meyering@lucent.com>
77850
77851         * lib/c-stack.c: Include sys/time.h.
77852         From Volker Borchert.
77853
77854 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77855
77856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77857
77858 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77859
77860         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77861         New macro.  Use it uniformly instead of
77862         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77863         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77864         reported by Vin Shelton.
77865
77866 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77867
77868         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77869         Do not assume SA_SIGINFO behavior.
77870         Bug reported by Jim Meyering on NetBSD 1.5.2.
77871
77872 2002-06-22  Jim Meyering  <meyering@lucent.com>
77873
77874         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77875         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77876
77877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77878         now that configure.ac uses AC_GNU_SOURCE.
77879         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77880         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77881
77882         Update to latest tools.  Suggestions from Paul Eggert.
77883         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77884         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77885         * m4/fnmatch.m4: Likewise.
77886         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77887         to AC_HEADER_STDBOOL
77888
77889 2002-06-22  Jim Meyering  <meyering@lucent.com>
77890
77891         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77892         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77893
77894 2002-06-22  Jim Meyering  <meyering@lucent.com>
77895
77896         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77897
77898         * lib/exitfail.c, exitfail.h: Likewise.
77899         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77900
77901         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77902         of fnmatch.h.
77903         (EXTRA_DIST): Add fnmatch_loop.c.
77904         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77905
77906         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77907         * lib/fnmatch.c: Update from diffutils-2.8.2.
77908         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77909         * lib/fnmatch.h: Remove file.
77910
77911 2002-06-21  Jim Meyering  <meyering@lucent.com>
77912
77913         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77914         * m4/mbrtowc.m4: Likewise.
77915
77916         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77917         * m4/mbswidth.m4: Reflect name change:
77918         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77920
77921         * m4/lib-link.m4: Update from gettext-0.11.2.
77922         * m4/gettext.m4: Likewise.
77923
77924         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77925         From Alfred M. Szmidt.
77926
77927 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77928
77929         * lib/file-type.h: Report an error if neither S_ISREG nor
77930         S_IFREG is defined, instead of using a test specific to glibc
77931         2.2.  This should be safe, since POSIX requires S_ISREG and
77932         Unix Version 7 had S_IFREG.  We don't need to check for
77933         <sys/types.h> since we don't use any symbols that it defines.
77934
77935 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77936
77937         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77938         $@-t, so that each temporary file name is unique and valid in the first
77939         8 characters, for operation under DOS.
77940
77941 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77942
77943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77944
77945 2002-06-15  Jim Meyering  <meyering@lucent.com>
77946
77947         Work even with DJGPP 2.03, which lacks support for symlinks.
77948         From Richard Dawe.
77949         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77950         is defined.
77951         * lib/lchown.c (S_ISLNK): Likewise.
77952
77953 2002-06-15  Jim Meyering  <meyering@lucent.com>
77954
77955         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77956         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77957         have been included before this file.
77958
77959 2002-06-14  Jim Meyering  <meyering@lucent.com>
77960
77961         * lib/file-type.h: Use the version from diffutils-2.8.2.
77962         * lib/file-type.c: Likewise.
77963
77964 2002-06-07  Jim Meyering  <meyering@lucent.com>
77965
77966         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77967         They're needed at least for NetBSD 1.5.2.
77968         ($statxfs_includes): Include those same headers.
77969         ($statxfs_includes): Include sys/vfs.h if available.
77970         ($statxfs_includes): Likewise for sys/statvfs.h.
77971         Check for the following members in both structs statfs and statvfs:
77972         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77973
77974 2002-06-01  Jim Meyering  <meyering@lucent.com>
77975
77976         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77977         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77978
77979 2002-05-28  Jim Meyering  <meyering@lucent.com>
77980
77981         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77982         Reported by Volker Borchert.
77983
77984 2002-05-27  Jim Meyering  <meyering@lucent.com>
77985
77986         Fix a problem seen only on nonconforming systems whereby ls.c's
77987         use of localtime, and then of gettimeofday would cause trouble:
77988         the localtime call used to initialize rpl_gettimeofday's save
77989         mechanism would clobber ls's current local time information so
77990         that in any long listing the first file would always be listed
77991         with date 1970-01-01.  Analysis by Volker Borchert.
77992
77993         * lib/gettimeofday.c (localtime): Undefine.
77994         (rpl_localtime): New function.
77995
77996 2002-05-27  Jim Meyering  <meyering@lucent.com>
77997
77998         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77999         localtime.
78000
78001         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78002         use the replacement function; it wouldn't resolve at link time.
78003         Reported by Volker Borchert.
78004
78005 2002-05-22  Jim Meyering  <meyering@lucent.com>
78006
78007         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78008         file-type.h.
78009         * lib/file-type.h: New file.
78010         * lib/file-type.c (file_type): New file/function.  Extracted from
78011         diffutils.
78012
78013 2002-04-30  Jim Meyering  <meyering@lucent.com>
78014
78015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78016
78017 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78018
78019         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78020
78021 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78022
78023         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78024         Do not check for alloca.h (no longer used) or stdbool.h (was never
78025         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78026
78027 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78028
78029         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78030
78031 2002-04-29  Jim Meyering  <meyering@lucent.com>
78032
78033         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78034         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78035         Use AC_FUNC_STRNLEN here instead.
78036
78037         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78038         With autoconf-2.53a, it's part of AC_PROG_CC.
78039
78040 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78041
78042         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78043         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78044
78045 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78046
78047         * lib/sig2str.h, lib/sig2str.c: New files.
78048         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78049
78050 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78051
78052         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78053         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78054         of 127, since 64 is the largest conceivable number for ancient
78055         nonstandard hosts.
78056         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78057
78058 2002-04-28  Jim Meyering  <meyering@lucent.com>
78059
78060         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78061
78062 2002-04-24  Jim Meyering  <meyering@lucent.com>
78063
78064         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78065         (jm_PREREQ): Use it.
78066
78067         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78068         mach/mach.h fcntl.h.
78069         Check for this function: setlocale.
78070
78071 2002-04-24  Jim Meyering  <meyering@lucent.com>
78072
78073         * lib/gettext.h: New file, from Gettext.
78074         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78075         (libfetish_a_SOURCES): Add gettext.h.
78076
78077 2002-04-16  Jim Meyering  <meyering@lucent.com>
78078
78079         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78080         ut_pid, ut_id, ut_exit.
78081
78082 2002-04-16  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78085         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78086         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78087
78088 2002-04-12  Jim Meyering  <meyering@lucent.com>
78089
78090         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78091         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78092         existence of the getmntinfo function.  Needed for Darwin 5.3.
78093
78094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78095         This is necessary at least on Darwin 5.3.
78096
78097         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78098         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78099         strnlen.o in the library, and that makes some versions of ranlib
78100         object.
78101
78102 2002-04-12  Jim Meyering  <meyering@lucent.com>
78103
78104         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78105
78106 2002-04-09  Jim Meyering  <meyering@lucent.com>
78107
78108         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78109         to be more precise.  Rather than saying we're checking whether the
78110         function `works', say what we're testing.
78111         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78112         Reported by Bruno Haible.
78113
78114 2002-03-10  Jim Meyering  <meyering@lucent.com>
78115
78116         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78117         Suggestion from Santiago Vila.
78118
78119 2002-03-08  Jim Meyering  <meyering@lucent.com>
78120
78121         * lib/rename.c: Mention that this wrapper is needed also on
78122         mips-dec-ultrix4.4 systems.
78123
78124 2002-03-02  Jim Meyering  <meyering@lucent.com>
78125
78126         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78127         not HAVE_CLOCK_SETTIME.
78128
78129 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78130
78131         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78132         Check for clock_settime.
78133
78134 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78135
78136         * lib/nanosleep.h: Rename to....
78137         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78138
78139         * lib/gettime.c: New file.
78140         * lib/settime.c: New file.
78141         * lib/stime.c: Remove.
78142
78143         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78144         timespec.h.  Remove nanosleep.h.
78145
78146 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78147
78148         * m4/acl.m4: New file.
78149         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78150         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78151
78152 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78153
78154         * lib/acl.c, lib/acl.h: New files.
78155         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78156
78157 2002-02-24  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78160         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78161         cause trouble.  Reported by Nelson Beebe.
78162
78163 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78164
78165         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78166         compilers that don't know that xalloc_die never returns.
78167
78168 2002-02-20  Jim Meyering  <meyering@lucent.com>
78169
78170         * lib/getdate.c: Regenerate using bison-1.33.
78171
78172 2002-02-17  Jim Meyering  <meyering@lucent.com>
78173
78174         * config/config.guess (main): Don't use `head -1'; it's no longer
78175         portable. Use `sed 1q' instead.
78176
78177 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78178
78179         * m4/codeset.m4: Upgrade to gettext-0.11.
78180         * m4/gettext.m4: Upgrade to gettext-0.11.
78181         * m4/glibc21.m4: Upgrade to gettext-0.11.
78182         * m4/iconv.m4: Upgrade to gettext-0.11.
78183         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78184         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78185         * m4/lib-ld.m4: New file, from gettext-0.11.
78186         * m4/lib-link.m4: New file, from gettext-0.11.
78187         * m4/lib-prefix.m4: New file, from gettext-0.11.
78188         * m4/progtest.m4: Upgrade to gettext-0.11.
78189
78190 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78191
78192         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78193         (jm_PREREQ): Use it.
78194
78195 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78196
78197         * lib/posixver.c, lib/posixver.h: New files.
78198         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78199
78200 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78201             Bruno Haible  <bruno@clisp.org>
78202
78203         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78204         (fwrite_success_callback): New declaration.
78205         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78206         print_unicode_char. Call failure callback instead of error.
78207         (fwrite_success_callback): New function.
78208         (exit_failure_callback): New function.
78209         (fallback_failure_callback): New function.
78210         (print_unicode_char): Call unicode_to_mb.
78211
78212 2002-01-26  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78215         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78216
78217 2002-01-26  Jim Meyering  <meyering@lucent.com>
78218
78219         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78220
78221 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78222
78223         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78224
78225 2002-01-22  Jim Meyering  <meyering@lucent.com>
78226
78227         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78228         Otherwise, some versions of automake would omit the rule that makes
78229         Makefile from Makefile.in.
78230
78231 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78232
78233         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78234         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78235         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78236         (memcoll): Set errno to zero if there is no error.
78237
78238         * lib/quotearg.c (quotearg_buffer_restyled):
78239         Fix bug with quoting buffers containing NUL when backslashing escapes.
78240         This bug was exposed by the other changes in this patch.
78241         (quotearg_n_options): New arg ARGSIZE.
78242         All callers changed.
78243         (quoting_options_from_style): New function.
78244         (quotearg_n_style): Use it.
78245         (quotearg_n_style_mem): New function.
78246
78247         * lib/quotearg.h (quotearg_n_style_mem): New function.
78248
78249 2002-01-19  Jim Meyering  <meyering@lucent.com>
78250
78251         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78252         Remove useless quotes: DF_PROG="df".
78253         * m4/strnlen.m4: New file.
78254
78255 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78256
78257         * lib/backupfile.c (ISDIGIT): Comment fix.
78258         * lib/getdate.y (ISDIGIT): Likewise.
78259         * lib/posixtm.c (ISDIGIT, year): Likewise.
78260         * lib/strverscmp.c (ISDIGIT): Likewise.
78261         * lib/userspec.c (ISDIGIT): Likewise.
78262
78263 2002-01-16  Jim Meyering  <meyering@lucent.com>
78264
78265         * lib/getdate.y: Add three semicolons, each just before a closing
78266         brace. Bison (as of version 1.31) no longer papers over that mistake.
78267
78268 2002-01-05  Jim Meyering  <meyering@lucent.com>
78269
78270         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78271
78272 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78273
78274         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78275         not silently exit merely because the output buffer happens to
78276         have nothing pending.
78277
78278 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78279
78280         See the big note in ../ChangeLog.
78281         * lib/human.c (suffixes): Prefer K to k for 1024.
78282         (generate_suffix_backwards): New function.
78283         (human_readable_inexact): Use it.
78284         * lib/xstrtol.c (__xstrtol): If there is no number but there
78285         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78286         Accept 'K' as well as 'k'.
78287
78288 2001-12-15  Jim Meyering  <meyering@lucent.com>
78289
78290         * lib/regex.h (__restrict_arr): Update from libc.
78291
78292         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78293         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78294         (STREQ): Define.
78295
78296 2001-12-14  Jim Meyering  <meyering@lucent.com>
78297
78298         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78299         Suggestion from Bruno Haible.
78300
78301 2001-12-10  Jim Meyering  <meyering@lucent.com>
78302
78303         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78304         xrealloc, Instead, include "xalloc.h".
78305         (initbuffer): Don't cast xmalloc return value to char*.
78306         (readline): Reword comment.
78307         Don't cast xrealloc return value to char*
78308         Return NULL, not 0.
78309
78310 2001-12-09  Jim Meyering  <meyering@lucent.com>
78311
78312         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78313         about `signed and unsigned type in conditional expression'.
78314         * lib/posixtm.c (posix_time_parse): Likewise.
78315
78316         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78317
78318         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78319         to avoid a pedantic warning.
78320
78321         * lib/getstr.c: Don't include assert.h.
78322         (getstr): Remove warning-evoking assertions.
78323         Return -1 if offset parameter is out of bounds.
78324         Change the type of a local from int to size_t.
78325
78326         * lib/strftime.c (my_strftime_localtime_r): Include this function
78327         definition in the `#if ! HAVE_TM_GMTOFF' block.
78328
78329         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78330         Include xalloc.h instead.
78331
78332 2001-12-02  Jim Meyering  <meyering@lucent.com>
78333
78334         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78335         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78336         included.
78337
78338         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78339         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78340
78341 2001-11-30  Akim Demaille  <akim@epita.fr>
78342
78343         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78344         before being defined.
78345
78346 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78347
78348         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78349         First arg is int, not unsigned.
78350         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78351         (SIZE_MAX, UINT_MAX): New macros.
78352         (quotearg_n_options): Abort if N is negative.
78353         Avoid overflow check on hosts where size_t is 64 bits and int
78354         is 32 bits, as overflow is impossible there.
78355         Fix off-by-one typo that caused unnecessary reallocation.
78356
78357 2001-11-27  Jim Meyering  <meyering@lucent.com>
78358
78359         * lib/tempname.c: Merge with version from libc.
78360         * lib/regex.c: Likewise.
78361
78362         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78363         systems for which STDC_HEADERS is 0, it was not included, resulting in
78364         a warning about an integer-to-pointer conversion problem with getenv.
78365         Reported by Volker Borchert.
78366
78367 2001-11-26  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/gtod.h: Remove file.
78370         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78371         * lib/gettimeofday.c: Don't include gtod.h.
78372         (GTOD_init): Remove function.
78373         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78374         Suggestion from Volker Borchert.
78375
78376 2001-11-23  Jim Meyering  <meyering@lucent.com>
78377
78378         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78379         it.
78380         * lib/hash.c (struct hash_table): Define it here instead.
78381
78382 2001-11-22  Jim Meyering  <meyering@lucent.com>
78383
78384         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78385
78386 2001-11-20  Jim Meyering  <meyering@lucent.com>
78387
78388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78389         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78390
78391 2001-11-19  Jim Meyering  <meyering@lucent.com>
78392
78393         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78394         directory.  Use "conftestXXXXXX" as the template.
78395         Suggestion from Paul Eggert.
78396
78397         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78398         immediately, so the test doesn't mistakenly hit the max-open-files
78399         limit.
78400
78401 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78402
78403         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78404         (TEMPORARIES): New macro.
78405         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78406         removes an artificial limitation (e.g. HP-UX 10.20, where
78407         TMP_MAX is 17576).
78408
78409 2001-11-18  Jim Meyering  <meyering@lucent.com>
78410
78411         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78412
78413 2001-11-18  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78416         on SunOS 4.
78417
78418         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78419         files will be created before anything else.
78420
78421 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78422
78423         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78424         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78425
78426 2001-11-17  Jim Meyering  <meyering@lucent.com>
78427
78428         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78429         Prompted by a report from Bob Proulx.
78430
78431         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78432         Instead, require UTILS_FUNC_MKSTEMP.
78433
78434 2001-11-17  Jim Meyering  <meyering@lucent.com>
78435
78436         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78437         Now, that's done as part of AC_FUNC_STRTOD.
78438
78439 2001-11-17  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78442         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78443         rather than group writable.  Patch by Juan F. Codagnone.
78444
78445         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78446         xrealloc, Instead, include "xalloc.h".
78447
78448         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78449         Remove explicit declarations of xmalloc, xrealloc,
78450         and xstrdup.  Instead, include "xalloc.h".
78451
78452         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78453         unlocked-io.h.
78454         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78455         Likewise.
78456         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78457
78458         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78459         Reported by Padraig Brady.
78460
78461         * lib/mkstemp.c: #undef mkstemp.
78462         Include config.h.
78463         (rpl_mkstemp): Rename from mkstemp.
78464         Protoize.
78465
78466 2001-11-16  Jim Meyering  <meyering@lucent.com>
78467
78468         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78469         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78470         determine the amount of total physical memory, use pstat_getstatic.
78471         HPUX-11 doesn't define _SC_PHYS_PAGES.
78472         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78473         If sysconf couldn't be used to determine the amount of available
78474         physical memory, use both pstat_getstatic and pstat_getdynamic.
78475         Based on a patch from Bob Proulx.
78476
78477 2001-11-10  Jim Meyering  <meyering@lucent.com>
78478
78479         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78480         (jm_PREREQ): Use it.
78481
78482 2001-11-09  Jim Meyering  <meyering@lucent.com>
78483
78484         * m4/jm-macros.m4: Require autoconf-2.52f.
78485         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78486         Use these AC_-prefixed names, not the AM_-prefixed ones.
78487
78488         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78489
78490 2001-11-05  Jim Meyering  <meyering@lucent.com>
78491
78492         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78493
78494 2001-11-04  Jim Meyering  <meyering@lucent.com>
78495
78496         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78497         $DEFS.
78498
78499 2001-11-03  Jim Meyering  <meyering@lucent.com>
78500
78501         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78502         of AC_DEFUN.
78503
78504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78505         know the name of the variable in the macro definition.
78506
78507 2001-11-03  Jim Meyering  <meyering@lucent.com>
78508
78509         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78510         in argmatch_to_argument call.
78511
78512         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78513         argument.
78514
78515         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78516         e.g., a fault due to an attempt to free a NULL pointer.
78517
78518 2001-11-01  Jim Meyering  <meyering@lucent.com>
78519
78520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78521         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78522
78523 2001-11-01  Jim Meyering  <meyering@lucent.com>
78524
78525         * lib/dirfd.c, lib/dirfd.h: New files.
78526         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78527
78528         * lib/hash.c (hash_print) [TESTING]: Clean up.
78529
78530 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78531
78532         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78533         to avoid a warning if -Wall.
78534
78535 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78536
78537         * README: New file
78538         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78539         (per RMS's instructions, this is now the canonical source)
78540         * lgpl/, gpl/: New directories.
78541
78542 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78543
78544         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78545
78546 2001-10-21  Jim Meyering  <meyering@lucent.com>
78547
78548         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78549         this code would end up calling gettext even in packages built
78550         with --disable-nls.
78551         * lib/getopt.c (_): Likewise.
78552         * lib/regex.c (_): Likewise.
78553
78554 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78555
78556         * m4/error.m4 (jm_PREREQ_ERROR):
78557         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78558         AC_FUNC_STRERROR_R does that.
78559         Check for strerror declaration.
78560
78561         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78562         are supposed to have them these days.
78563         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78564         Merge changes from latest Autoconf CVS.
78565         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78566         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78567         POSIX decided to standardize on the int flavor of strerror_r.
78568
78569 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78570
78571         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78572         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78573         Use strerror_r that is only a macro, even if it is not a function.
78574         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78575         (private_strerror): Use prototypes, not old-style function definition.
78576         (print_errno_message): New function.
78577         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78578         char*-flavored one.
78579         (error_tail, error, error_at_line): Use it.
78580
78581 2001-10-11  Jim Meyering  <meyering@lucent.com>
78582
78583         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78584         and quote_n (1, ... to avoid clobbering a buffer.
78585
78586 2001-10-05  Jim Meyering  <meyering@lucent.com>
78587
78588         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78589         hash-pjw.h.
78590         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78591         * lib/hash-pjw.h: New file.
78592
78593 2001-09-30  Jim Meyering  <meyering@lucent.com>
78594
78595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78596         `struct fsstat' has the `f_fstypename' member.
78597         Use that to define FS_TYPE, which is now used to make
78598         the getfsstat link test tighter.
78599
78600 2001-09-30  Jim Meyering  <meyering@lucent.com>
78601
78602         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78603         Include <sys/ucred.h>, for Apple Darwin.
78604         Include sys/mount.h and sys/fs_types.h only if available.
78605         (FS_TYPE): Define.
78606         (read_filesystem_list): Use FS_TYPE.
78607
78608 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78609
78610         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78611         a boolean context.
78612
78613 2001-09-29  Jim Meyering  <meyering@lucent.com>
78614
78615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78616         [one-argument getmntent function]): Include stdio.h before mntent.h.
78617         SunOS 4.1.x needs it for the declaration of `FILE'.
78618         Patch by Volker Borchert.
78619
78620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78621         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78622         sys/fs_types.h, and make the link-test for getfsstat guard #include
78623         directives with appropriate #if HAVE_*_H tests so that we can
78624         detect getfsstat on Apple Darwin1.3.7 systems.
78625         Reported by Nelson Beebe.
78626         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78627
78628 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78629
78630         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78631         #defines strtoimax.  Also treat the other strto* functions
78632         like strtoimax.
78633
78634         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78635         Check for strtoul and strtoumax,
78636         as those declarations are made even in the signed case.
78637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78638         Likewise, for strtol and strtoimax.
78639
78640 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78641
78642         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78643         #defines strtoimax.  Also treat the other strto* functions
78644         like strtoimax.
78645
78646         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78647         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78648         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78649
78650 2001-09-26  Jim Meyering  <meyering@lucent.com>
78651
78652         Most macros in unlocked-io.h had the wrong number of arguments.
78653         * lib/gen-uio: New script.
78654         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78655         * lib/unlocked-io.hin: Remove file.
78656         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78657         rather than trying to embed it here.
78658         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78659         Reported by Padraig Brady.
78660
78661 2001-09-25  Volker Borchert  <bt@teknon.de>
78662
78663         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78664         `result'.
78665
78666 2001-09-24  Jim Meyering  <meyering@lucent.com>
78667
78668         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78669
78670 2001-09-23  Jim Meyering  <meyering@lucent.com>
78671
78672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78673         instead of the mere test for existence of mntent.h.  The latter
78674         would get a false-positive on AIX 3.4 systems.
78675         In the outer getmntent if-block, don't die if neither of the getmntent
78676         tests succeeds.  Instead, just fall through and continue with the
78677         remaining tests.
78678
78679 2001-09-23  Jim Meyering  <meyering@lucent.com>
78680
78681         * lib/mountlist.c: Remove useless parentheses in #if directives.
78682         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78683         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78684
78685 2001-09-22  Jim Meyering  <meyering@lucent.com>
78686
78687         * m4/gettext.m4: New file.  From gettext.
78688         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78689         * m4/progtest.m4: Likewise
78690         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78691         * m4/glibc21.m4: Likewise.
78692
78693         * m4/libintl.m4: Remove.  No longer used.
78694
78695 2001-09-22  Jim Meyering  <meyering@lucent.com>
78696
78697         * lib/localcharset.c: Update from latest gettext.
78698         * lib/config.charset: Likewise.
78699
78700 2001-09-20  Jim Meyering  <meyering@lucent.com>
78701
78702         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78703         strtoimax.
78704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78705         strtoumax.
78706
78707 2001-09-20  Jim Meyering  <meyering@lucent.com>
78708
78709         * lib/xstrtol.c (strtoimax): Guard declaration with
78710         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78711         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78712         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78713         (strtoumax): Likewise, for completeness (it wasn't necessary).
78714
78715 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78716
78717         * lib/strtoimax.c (HAVE_LONG_LONG):
78718         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78719         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78720         to work around bug in IBM C compiler.
78721
78722 2001-09-17  Jim Meyering  <meyering@lucent.com>
78723
78724         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78725         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78726         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78727         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78728         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78729         whenever the right hand side need not be expanded by the shell.
78730
78731 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78732
78733         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78734         library.  It's not correct, as some older glibcs are buggy.
78735         fnmatch wasn't fixed until glibc 2.2.
78736
78737         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78738         special shell magic here.
78739
78740 2001-09-16  Jim Meyering  <meyering@lucent.com>
78741
78742         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78743         * m4/jm-macros.m4: Require it.
78744
78745 2001-09-16  Jim Meyering  <meyering@lucent.com>
78746
78747         * lib/mkdir.c: New file.
78748
78749 2001-09-15  Jim Meyering  <meyering@lucent.com>
78750
78751         * m4/jm-macros.m4: Check for help2man.
78752
78753 2001-09-11  Jim Meyering  <meyering@lucent.com>
78754
78755         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78756         The body, by Paul Eggert, was moved here from configure.in.
78757         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78758
78759 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78760
78761         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78762         (jm_PREREQ): Use it.
78763
78764 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78765
78766         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78767         Use ssize_t, not int, to store result of readlink.
78768         Check for ssize_t overflow as well as size_t overflow,
78769         as POSIX says the result of readlink is implementation-defined
78770         when ssize_t overflows.
78771         Remove unnecessary cast to char*.
78772         Use free+malloc instead of realloc, as the storage doesn't need
78773         to be preserved and it's clearer and can be more efficient that way.
78774         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78775         * lib/xreadlink.h (xreadlink): Update prototype.
78776
78777 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78778
78779         * lib/xgetcwd.c: Revert some of the previous change; intead,
78780         fix the HAVE_GETCWD_NULL code to behave more like the
78781         !HAVE_GETCWD_NULL code used to.
78782
78783         Include "xalloc.h".
78784         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78785         invoke xalloc_die.
78786
78787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78788
78789         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78790         sys/param.h, as pathmax.h includes them.
78791
78792 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78793
78794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78795         (jm_PREREQ_XGETCWD): New macro.
78796
78797         * m4/getcwd.m4: New file.
78798
78799 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78800
78801         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78802         like the HAVE_GETCWD_NULL code.
78803         Include pathmax.h if not HAVE_GETCWD.
78804         Do not include xalloc.h.
78805         (INITIAL_BUFFER_SIZE): New symbol.
78806         Do not use xmalloc / xrealloc, since the caller is responsible for
78807         handling errors.  Preserve errno around `free' during failure.
78808         Do not overrun buffer when using getwd.
78809
78810 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78811
78812         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78813         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78814         getcwd (NULL, 0).
78815
78816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78817
78818         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78819         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78820         spotted by Jim Meyering.
78821
78822 2001-09-03  Jim Meyering  <meyering@lucent.com>
78823
78824         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78825         failure.
78826
78827 2001-09-02  Jim Meyering  <meyering@lucent.com>
78828
78829         * lib/error.c: Update from GNU libc.
78830
78831 2001-09-01  Jim Meyering  <meyering@lucent.com>
78832
78833         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78834         Used by df.
78835
78836 2001-09-01  Jim Meyering  <meyering@lucent.com>
78837
78838         * lib/xreadlink.c: New file.
78839         * lib/xreadlink.h: New file.
78840         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78841         xreadlink.h.
78842
78843         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78844         doesn't conflict with sparc Solaris 7's definition in
78845         /usr/include/sys/int_types.h.
78846
78847         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78848         files.
78849         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78850         and strncasecmp as r-values.  Unixware didn't have declarations.
78851
78852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78853
78854         * lib/xstrtol.h: Add copyright notice.
78855         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78856         LONGINT_INVALID_SUFFIX_CHAR.
78857
78858 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78859
78860         * lib/xstrtol.c (strtoimax): New decl.
78861
78862 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78863
78864         * lib/xgetcwd.c: Don't include pathmax.h.
78865         Include stdlib.h and unistd.h if available.
78866         Include xalloc.h.
78867         (xmalloc, xstrdup, free): Remove decls.
78868         (xgetcwd): Don't assume sizes fit in unsigned.
78869         Check for overflow when computing sizes.
78870         Simplify reallocation code.
78871
78872 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78873
78874         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78875         a directory's st_size can have an arbitrary value, so the old
78876         usage could waste an arbitrary amount of memory.  All uses
78877         changed.
78878         * lib/savedir.h: Update prototype.
78879
78880 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78881
78882         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78883
78884         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78885         old strtoimax.c.
78886
78887         Also, make the following further changes to make this file's
78888         configuration more similar to that of strtol.c:
78889         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78890         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78891         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78892         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78893         changed to signed values.
78894
78895         And make the following changes as well:
78896         Fix copyright notice, as 1999 was missing.
78897         (verify): New macro.
78898         (strtoimax): Check sizes at compile-time, not run-time.
78899         Prefer strtol to strtoll if both work.
78900         (main): Remove; it was not that useful and was a pain to maintain.
78901
78902         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78903
78904 2001-08-31  Jim Meyering  <meyering@lucent.com>
78905
78906         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78907         Use an initial, malloc'd, buffer of length 128 rather than
78908         a statically allocated one of length 1024.
78909
78910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78911
78912         Simplify code, partly by assuming autoconf 2.52 semantics.
78913
78914         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78915
78916         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78917         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78918         All uses removed.
78919         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78920         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78921         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78922         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78923         jm_AC_HEADER_INTTYPES_H.
78924         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78925
78926         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78927
78928         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78929         Quote first arg of AC_DEFUN.
78930         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78931         since they are needed to parse the include file even if we need
78932         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78933         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78934         but with opposite signedness.
78935
78936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78937
78938         Merge 'exclude' changes from tar 1.13.22.
78939         This fixes one or two unlikely storage allocation overflow bugs,
78940         but doesn't change user-visible behavior otherwise.
78941
78942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78943
78944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78945         (jm_PREREQ_EXCLUDE): New macro.
78946
78947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78948
78949         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78950         tm to be declared.
78951
78952 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78953
78954         * lib/hash.c: Remove '2001' from copyright notice.
78955
78956 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78957
78958         * lib/full-write.h: New file.
78959         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78960         * lib/full-write.c: Correct credits, as cccp.c no longer
78961         exists and anyway it was so heavily changed from the old cccp
78962         code as to be unrecognizable.  Include full-write.h.
78963         (full_write): Return size_t, with short writes meaning failure.
78964         All callers changed.  This fixes a bug with large buffers
78965         on 64-bit hosts.
78966         * lib/utime.c: Include full-write.h.
78967
78968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78969
78970         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78971         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78972         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78973         Include if available.
78974         (<xalloc.h>): Include
78975         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78976         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78977         collide with FNM macros.
78978         (struct patopts): New struct.
78979         (struct exclude): Use it, as exclude patterns now come with options.
78980         (new_exclude): Support above changes.
78981         (new_exclude, add_exclude_file):
78982         Initial size must now be a power of two to simplify overflow checking.
78983         (free_exclude, fnmatch_no_wildcards): New function.
78984         (excluded_filename): No longer requires options arg, as the options
78985         are determined by add_exclude.  Now returns bool, not int.
78986         (excluded_filename, add_exclude):
78987         Add support for the fancy new exclusion options.
78988         (add_exclude, add_exclude_file): Now takes int options arg.
78989         Check for arithmetic overflow when computing sizes.
78990         (add_exclude_file): xrealloc might modify errno, so don't
78991         realloc until after errno might be used.
78992
78993         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78994         New macros.
78995         (free_exclude): New decl.
78996         (add_exclude, add_exclude_file): Now takes int options arg.
78997         (excluded_filename): No longer requires options arg, as the options
78998         are determined by add_exclude.  Now returns bool, not int.
78999
79000 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79001
79002         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79003
79004 2001-08-27  Jim Meyering  <meyering@lucent.com>
79005
79006         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79007
79008         * lib/version-etc.c (N_): Remove definition.
79009         Revert most of last change.
79010         Instead, simply don't mark the `Copyright...' string for translation.
79011         Based on advice from Paul Eggert.
79012
79013         * lib/strtoxmax.c: Tweak comment.
79014
79015 2001-08-26  Jim Meyering  <meyering@lucent.com>
79016
79017         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79018
79019         * m4/xstrtoimax.m4: New file.
79020         * m4/xstrtoumax.m4: Add comments explaining why we
79021         AC_REPLACE_FUNCS(strtol).
79022
79023 2001-08-26  Jim Meyering  <meyering@lucent.com>
79024
79025         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79026         of copyright with `%s' so translators don't get an untranslated
79027         message in 2002.
79028         (COPYRIGHT_YEAR): Define.
79029         (version_etc): Use fprintf rather than fputs.
79030         Suggestion from Ulrich Drepper.
79031
79032         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79033
79034         * lib/strtoll.c: New file, from GNU libc.
79035         * lib/xstrtoimax.c: New file.
79036
79037         * lib/xstrtol.h: Add xstrtoimax.
79038         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79039         * lib/strtoimax.c: New file.  Likewise, but first define
79040         STRTOUXMAX_SIGNED.
79041
79042         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79043         ...
79044         * lib/strtoxmax.c: ... then renamed to this.
79045
79046 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79047
79048         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79049         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79050         (jm_AC_TYPE_INTMAX_T): New macro.
79051         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79052
79053         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79054
79055         * m4/longlong.m4: Renamed from ulonglong.m4.
79056         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79057         * m4/uintmax_t.m4: Removed.
79058
79059 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79060
79061         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79062         Port to Solaris 8, where 'sed' requires a space after the 'r'
79063         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79064         Redirect output to $tmp just once.
79065
79066 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79067
79068         * lib/addext.c (<errno.h>): Include.
79069         (errno): Declare if not defined.
79070         (addext): Work correctly when pathconf returns -1 and leaves
79071         errno alone because there is no limit.  Also, work even if
79072         pathconf returns a value greater than SIZE_MAX.
79073
79074 2001-08-12  Jim Meyering  <meyering@lucent.com>
79075
79076         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79077         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79078         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79079         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79080         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79081         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79082         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79083         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79084         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79085         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79086         utime.m4, utimes.m4, xstrtoumax.m4:
79087         Quote the first argument in each use of AC_DEFUN.
79088
79089 2001-08-12  Jim Meyering  <meyering@lucent.com>
79090
79091         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79092         Simply `return getcwd (NULL, 0);'.
79093         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79094         Use 1300 as initial value for length, not PATH_MAX.
79095
79096         * lib/pathmax.h: Clean up cpp syntax.
79097
79098 2001-08-12  Jim Meyering  <meyering@lucent.com>
79099
79100         * lib/gettimeofday.c: New file.
79101         * lib/gtod.h: New file.
79102         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79103
79104 2001-08-05  Jim Meyering  <meyering@lucent.com>
79105
79106         * m4/jm-macros.m4: Require autoconf-2.52.
79107
79108 2001-08-04  Jim Meyering  <meyering@lucent.com>
79109
79110         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79111         stmt, to get in sync with glibc.
79112
79113 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79114
79115         The following changes are from gettext 0.10.39 as maintained by
79116         Bruno Haible.
79117
79118         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79119         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79120         with inverted sense.  All uses changed.
79121
79122         * lib/mbswidth.c: Don't include <limits.h>.
79123         Include <stdlib.h> and <string.h> unconditionally.
79124         (iswcntrl, mbsinit, ISCNTRL): New macros.
79125         (mbsnwidth): Use K&R style function declarations.
79126         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79127         can optimize it when MB_CUR_MAX == 1.
79128         The width of control characters is zero, not 1.
79129
79130 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79131
79132         The following changes are from gettext 0.10.39 as maintained by
79133         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79134
79135         * m4/codeset.m4: Upgrade to serial AM1.
79136         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79137         all uses changed.  Quote first arg of AC_DEFUN.
79138         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79139
79140         * m4/iconv.m4: Upgrade to serial AM2.
79141         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79142         Add --with-libconv-prefix.
79143         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79144         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79145         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79146         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79147         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79148
79149         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79150         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79151         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79152         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79153         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79154         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79155         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79156         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79157         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79158
79159         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79160         string.h any more.
79161
79162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79163         not the default value.
79164
79165         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79167         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79168         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79169         Also check for iswcntrl, used for wcwidth fallback.
79170         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79171         to Autoconf 2.13.
79172
79173 2001-08-03  Jim Meyering  <meyering@lucent.com>
79174
79175         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79176         as it was in the original.  Reported by Paul Eggert.
79177
79178 2001-07-16  Jim Meyering  <meyering@lucent.com>
79179
79180         * m4/gettimeofday.m4: New file.
79181         Prompted by a report from Bernhard Baehr.
79182
79183 2001-07-15  Jim Meyering  <meyering@lucent.com>
79184
79185         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79186         stuff. Now it's in ../Makefile.cfg.
79187
79188 2001-07-15  Jim Meyering  <meyering@lucent.com>
79189
79190         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79191         (BUILT_SOURCES): Add unlocked-io.h.
79192         (io_functions): Define.
79193         (unlocked-io.h): New rule.
79194         (DISTCLEANFILES): Add unlocked-io.h.
79195         (all-local): Depend on unlocked-io.h, to ensure it is created.
79196
79197         * lib/unlocked-io.hin: New file
79198
79199         * lib/regex.c: Update from glibc.
79200
79201 2001-07-05  Jim Meyering  <meyering@lucent.com>
79202
79203         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79204         recommendation.
79205         (libfetish_a_SOURCES): Put all .h files here instead.
79206         Remove a thus-exposed (better checks in automake) duplicate and
79207         two unnecessary .h files.
79208
79209 2001-07-04  Jim Meyering  <meyering@lucent.com>
79210
79211         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79212         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79213         distcheck failure.
79214
79215 2001-07-02  Jim Meyering  <meyering@lucent.com>
79216
79217         The following changes were prompted by suggestions from Bruno Haible.
79218
79219         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79220         is now generated.
79221         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79222         definition of EXTRA_DIST.
79223         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79224         ensure that the generated file is created/updated whenever the list
79225         of $(unlocked_functions) is changed.
79226         (jm-glibc-io.m4): New rule.
79227         (unlocked-io.h): New rule -- currently unused.
79228
79229 2001-06-24  Jim Meyering  <meyering@lucent.com>
79230
79231         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79232         unmatched right bracket, rather than kludging it with an extra,
79233         falsely-matching quote in a comment.  Patch by Akim Demaille.
79234
79235 2001-06-11  Jim Meyering  <meyering@lucent.com>
79236
79237         * lib/regex.c: Update from GNU libc.
79238
79239 2001-05-27  Jim Meyering  <meyering@lucent.com>
79240
79241         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79242         Check for ut_type in struct utmp.
79243
79244 2001-05-27  Jim Meyering  <meyering@lucent.com>
79245
79246         * lib/readutmp.h (UT_TYPE): Define.
79247
79248 2001-05-24  Jim Meyering  <meyering@lucent.com>
79249
79250         * lib/argmatch.c: Include "quote.h".
79251         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79252         quote function.  Reported by Göran Uddeborg.
79253
79254 2001-05-22  Jim Meyering  <meyering@lucent.com>
79255
79256         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79257         now that we use the package-supplied version unconditionally.
79258         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79259
79260 2001-05-21  Jim Meyering  <meyering@lucent.com>
79261
79262         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79263         shell syntax errors.
79264
79265 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79266
79267         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79268
79269 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79270
79271         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79272         Don't bother to check library strftime, since
79273         we'll be using our own my_strftime function anyway.
79274         Define my_strftime instead of strftime.
79275
79276 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79277
79278         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79279         which is not yet declared.
79280
79281 2001-05-15  Jim Meyering  <meyering@lucent.com>
79282
79283         * m4/regex.m4: Use proper quoting so brackets appear in the test
79284         program.
79285         Reported by, and with help from, Bruno Haible.
79286
79287 2001-05-13  Jim Meyering  <meyering@lucent.com>
79288
79289         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79290         undefined.
79291
79292 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79293
79294         dirname code cleanup.  base_name now behaves more compatibly
79295         with POSIX basename when given file names that have trailing
79296         slashes, and similarly for dir_name.  Add new primitives
79297         base_len and dir_len.  Put the directory-name-related decls
79298         into dirname.h.
79299
79300         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79301         * lib/backupfile.c (base_name): Likewise.
79302         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79303         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79304         * lib/makepath.c (strip_trailing_slashes): Likewise.
79305         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79306         ISSLASH): Likewise.
79307         * lib/rename.c (strip_trailing_slashes): Likewise.
79308         * lib/same.c (base_name): Likewise.
79309         * lib/stripslash.c (ISSLASH): Likewise.
79310
79311         * lib/addext.c: Include <dirname.h> after size_t is defined.
79312         * lib/backupfile.c: Likewise.
79313
79314         * lib/addext.c (addext): Use base_len to trim redundant
79315         trailing slashes instead of doing it ourselves.
79316         But do not trim the last slash if it is not redundant.
79317
79318         * lib/backupfile.c (find_backup_file_name,
79319         max_backup_version): Use base_len instead of rolling it ourselves.
79320         Handle the case of "" and (on DOS) "C:" correctly.
79321
79322         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79323         needed. Include <string.h>, <dirname.h>.
79324         (base_name): Allow file names ending in slashes, other than names
79325         that are all slashes.  In this case, return the basename followed
79326         by the slashes.  This is more general, and can be used in places
79327         where the original base_name purposely had an assertion failure.
79328         (base_len): New function.
79329
79330         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79331         Do not include <assert.h>; no longer needed.
79332         Include xalloc.h.
79333         (memrchr): Remove decl.
79334         (dir_name_r): Remove.
79335         (dir_len): Renamed from dirlen.  All callers changed.
79336         Rewrite in terms of base_name, for simplicity and consistency.
79337         (dir_name): Never return NULL.  All callers changed.
79338         Do not include <stdlib.h> in test program; no longer needed.
79339         return 0; is fine for test program.
79340
79341         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79342         New macros.
79343         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79344
79345         * lib/path-concat.c (path_concat): Use base_len to compute
79346         base length, not strlen; this means we cannot rely on memcpy
79347         to null-terminate.
79348
79349         * lib/same.c (STREQ): Remove.
79350         (same_name): Handle the case where the basename ends in trailing '/'.
79351
79352         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79353         a slash was stripped.  Do not strip the last slash after a
79354         file system prefix.
79355
79356 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79357
79358         * lib/Makefile.am (libfetish_a_SOURCES):
79359         Add strftime.c, since we now compile it on all hosts.
79360
79361         * lib/strftime.c (my_strftime):
79362         Define to nstrftime if emacs, but only if my_strftime is not defined.
79363         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79364         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79365         Add one more extra argument: a nanoseconds value.
79366         All uses changed.
79367         (ns): New macro.
79368         (my_strftime function): Add %N format.
79369         (emacs_strftimeu): Renamed from emacs_strftime,
79370         with extra ut argument.
79371
79372 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79373
79374         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79375
79376 2001-04-21  Jim Meyering  <meyering@lucent.com>
79377
79378         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79379         doesn't interfere.
79380
79381 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79382
79383         * m4/ftruncate.m4: Check for chsize.
79384         Link with ftruncate.o unconditionally if ftruncate is missing.
79385         This was required when cross-compiling to i586-mingw32msvc.
79386
79387 2001-04-08  Jim Meyering  <meyering@lucent.com>
79388
79389         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79390         recomputed; that's necessary when the offset spans a DST transition.
79391         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79392
79393 2001-04-02  Jim Meyering  <meyering@lucent.com>
79394
79395         * lib/regex.h, regex.c: Update from GNU libc.
79396
79397 2001-03-24  Jim Meyering  <meyering@lucent.com>
79398
79399         * m4/jm-macros.m4: Require autoconf-2.49d.
79400
79401 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79402
79403         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79404
79405 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79406
79407         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79408
79409 2001-03-17  Jim Meyering  <meyering@lucent.com>
79410
79411         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79412         now that the version in autoconf is equivalent.
79413         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79414
79415         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79416         Suggestion from Akim Demaille.
79417
79418         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79419         (jm_PREREQ_TEMPNAME): New function.
79420
79421 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79422
79423         * lib/tempname.c (uint64_t): Define to uintmax_t if
79424         not defined, and if UINT64_MAX is not defined.
79425         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79426         Reported by John David Anglin.
79427
79428 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79429
79430         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79431         resolve alias if codeset is empty.
79432         * lib/config.charset (BeOS): Use wildcard syntax.
79433
79434 2001-03-13  Jim Meyering  <meyering@lucent.com>
79435
79436         * lib/path-concat.c (path_concat)
79437         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79438         concatenating e.g., `C:' and `foo'.
79439         From Bruno Haible.
79440
79441 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79442
79443         * lib/localcharset.c (locale_charset): Don't use
79444         setlocale(LC_CTYPE,NULL). Don't return NULL.
79445         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79446
79447 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79448
79449         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79450         support for DOS/DJGPP.
79451
79452 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79453
79454         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79455         lacks mkstemp.  Compile our own tempname.c if we compile our own
79456         mkstemp.c, as mkstemp relies on tempname.
79457
79458 2001-03-01  Jim Meyering  <meyering@lucent.com>
79459
79460         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79461         AH_VERBATIM really does output its argument verbatim.
79462
79463 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79464
79465         * lib/Makefile.am (libfetish_a_SOURCES):
79466         Add dup-safer.c, fopen-safer.c.
79467         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79468
79469         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79470         * lib/unistd-safer.h: New files.
79471
79472 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79473
79474         The mkstemp replacement is taken from glibc 2.2.2, with some
79475         portability fixes for use outside glibc, as follows:
79476
79477         * lib/tempname.c (struct_stat64): New macro.
79478         (direxists, __gen_tempname): Use it.
79479         This avoids a portability problem with Solaris 8.
79480
79481         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79482         (<stddef.h>, <stdint.h>, <string.h>):
79483         Include only if STDC_HEADERS || _LIBC.
79484         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79485         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79486         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79487         (__set_errno): Define this macro if <errno.h> doesn't.
79488         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79489         Define these macros if <stdio.h> doesn't.
79490         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79491         Define these macros if <sys/stat.h>
79492         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79493         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79494         __xstat64): Define if not _LIBC.
79495         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79496         (__gen_tempname): Invoke gettimeofday only if
79497         HAVE_GETTIMEOFDAY || _LIBC;
79498         otherwise, fall back on plain "time".
79499         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79500
79501         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79502
79503         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79504
79505 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79506
79507         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79508
79509 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79510
79511         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79512         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79513         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79515
79516 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79517
79518         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79519         Remove workaround macros for hosts that have mbrtowc but not
79520         mbstate_t, as we now insist on proper declarations for both
79521         before using mbrtowc.
79522
79523 2001-02-17  Jim Meyering  <meyering@lucent.com>
79524
79525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79526         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79527         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79528         UnixWare 7.1.1.
79529
79530         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79531         rather than AC_CACHE_VAL.
79532
79533 2001-02-17  Jim Meyering  <meyering@lucent.com>
79534
79535         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79536         around included file name.
79537
79538         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79539
79540         * lib/strftime.c: Update from GNU libc (the only changes were to
79541         comments).
79542
79543 2001-02-17  Jim Meyering  <meyering@lucent.com>
79544
79545         * lib/regex.c: Update from libc.
79546
79547 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79548
79549         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79550         clash.
79551
79552 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79553
79554         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79555         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79556         Reported by Mark Hounschell via Paul Eggert.
79557
79558 2001-02-07  Jim Meyering  <meyering@lucent.com>
79559
79560         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79561
79562 2001-02-05  Jim Meyering  <meyering@lucent.com>
79563
79564         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79565         it includes the patch required for `large file' support with at least
79566         HP-UX's 10.20 /bin/cc.
79567
79568 2001-02-03  Jim Meyering  <meyering@lucent.com>
79569
79570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79571         AS_IF, now that it works once again (mysteriously).
79572         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79573
79574 2001-01-30  Jim Meyering  <meyering@lucent.com>
79575
79576         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79577         * m4/chown.m4: Rename conftestchown to conftest.chown.
79578         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79579         s/conftestdir2/conftest.d2/.
79580         * m4/utimes.m4: s/conftestdata/conftest.data/
79581         Inspired by Pavel Roskin's change in autoconf.
79582
79583 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79584
79585         * lib/config.charset: Update for FreeBSD 4.2.
79586
79587 2001-01-27  Jim Meyering  <meyering@lucent.com>
79588
79589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79590         a use of AS_IF.
79591         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79592
79593 2001-01-26  Jim Meyering  <meyering@lucent.com>
79594
79595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79596         quotearg.c includes it.
79597
79598 2001-01-26  Jim Meyering  <meyering@lucent.com>
79599
79600         * lib/quotearg.c: Include stddef.h.
79601         * lib/quote.c: Include stddef.h.
79602         Reported by Axel Kittenberger.
79603
79604         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79605         line in double quotes so that it evokes a better diagnostic.
79606         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79607         Reported by Axel Kittenberger.
79608
79609 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79610
79611         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79612         as if it was a `charset'.
79613
79614 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79615
79616         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79617         has const.
79618
79619 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79620
79621         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79622         to avoid a warning.  Add back 'const' to inptr.
79623
79624 2001-01-20  Jim Meyering  <meyering@lucent.com>
79625
79626         Be sure that headers are checked before used in code compiled
79627         for the type checks.
79628         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79629         In place of that, invoke jm_CHECK_ALL_TYPES.
79630         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79631         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79632         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79633         The check for ssize_t was mistakenly run before the test for unistd.h.
79634
79635         The configure-time check for stdbool.h was missing.
79636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79637         (jm_PREREQ_HASH): New function.
79638
79639 2001-01-17  Jim Meyering  <meyering@lucent.com>
79640
79641         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79642         for autoconf-2.49c.
79643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79644
79645 2001-01-16  Jim Meyering  <meyering@lucent.com>
79646
79647         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79648         From Bruno Haible.
79649
79650 2001-01-14  Jim Meyering  <meyering@lucent.com>
79651
79652         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79653         foo and bar.  Create conftestdir/ in the script, not in the C code.
79654         Remove directories in the script, not in the C code.
79655         Remove conftestdir{,2} before trying to create the directory.
79656         Make the entire configure script fail if the mkdir fails.
79657
79658 2001-01-14  Jim Meyering  <meyering@lucent.com>
79659
79660         * lib/rename.c: New file.  From Volker Borchert.
79661         Include stdlib.h, string.h or strings.h, and xalloc.h.
79662         Use strip_trailing_slashes rather than open-coding it.
79663
79664 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79665
79666         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79667
79668 2001-01-03  Jim Meyering  <meyering@lucent.com>
79669
79670         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79671         of local `inptr' to avoid warning with some system declarations of
79672         iconv.
79673
79674 2001-01-02  Volker Borchert  <bt@teknon.de>
79675
79676         * m4/rename.m4: New file.
79677         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79678
79679 2001-01-01  Jim Meyering  <meyering@lucent.com>
79680
79681         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79682         even on systems with utmpx.h.  It's necessary for the declaration of
79683         utmp's ut_user member.  Reported by Andreas Jaeger.
79684
79685         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79686         available. They are required for the declarations of getgrgid and
79687         getpwuid resp.
79688         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79689         Reported by Andreas Jaeger.
79690
79691 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79692
79693         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79694         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79695         so `make install' also works in VPATH builds.
79696
79697 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79698
79699         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79700         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79701         can be used in subdirectories.
79702
79703 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79704
79705         * lib/modechange.c: Do not assume that mode_t uses the
79706         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79707         the other-execute bit of FOO even if S_IXOTH != 1.
79708
79709         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79710         WOTH, XOTH, ALLM): New macros.
79711         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79712          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79713         Use them.
79714         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79715         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79716         (mode_compile):
79717         No need to use uintmax_t; unsigned long is long enough.
79718         Don't bother to get suffix since we don't use it.
79719
79720 2000-12-26  Jim Meyering  <meyering@lucent.com>
79721
79722         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79723         better with autoheader.
79724
79725 2000-12-24  Jim Meyering  <meyering@lucent.com>
79726
79727         * lib/hash.c (is_prime): Return explicit boolean values.
79728         (hash_get_first): Return NULL to appease Irix5.6's 89.
79729         Reported by Nelson Beebe.
79730
79731 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79732
79733         * lib/localcharset.c (locale_charset): Add support for Win32.
79734
79735 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79736
79737         * lib/physmem.h, lib/physmem.c: New files.
79738
79739         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79740         (noinst_HEADERS): Add physmem.h.
79741
79742         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79743         't' for compatibility with Solaris 8 sort.
79744
79745 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79746
79747         * lib/config.charset: Add support for BeOS.
79748
79749 2000-12-17  Jim Meyering  <meyering@lucent.com>
79750
79751         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79752         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79753
79754 2000-12-16  Jim Meyering  <meyering@lucent.com>
79755
79756         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79757         N and M) would have treated it like `chown N:N FILE'.
79758
79759         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79760
79761 2000-12-16  Jim Meyering  <meyering@lucent.com>
79762
79763         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79764         SHELLS_FILE to a file name that's useful on djgpp systems.
79765         Include stdlib.h.
79766         (ADDITIONAL_DEFAULT_SHELLS): Define.
79767         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79768         Based mostly on a patch from Prashant TR.
79769
79770 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79771
79772         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79773         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79774         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79775
79776 2000-12-08  Andreas Schwab  <schwab@suse.de>
79777
79778         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79779         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79780
79781 2000-12-07  Jim Meyering  <meyering@lucent.com>
79782
79783         * lib/stripslash.c (ISSLASH): Define.
79784         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79785         `/'.
79786         From Prashant TR.
79787
79788         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79789         (dir_name_r): Declare this function as static.
79790         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79791         manifest itself on a name containing a mix of slashes and
79792         backslashes.
79793         Make this function work with names starting with a DOS-style
79794         drive letter and colon prefix.
79795         (dir_name): Append `.' if necessary.
79796         Based mostly on patches from Prashant TR and Eli Zaretskii.
79797
79798         * lib/dirname.h (dir_name_r): Remove prototype.
79799
79800 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79801
79802         * m4/off_t-format.m4: Remove this file.
79803         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79804
79805 2000-12-06  Jim Meyering  <meyering@lucent.com>
79806
79807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79808         replacement strtoull, we may well need the replacement strtoul, too.
79809         Check for declarations of strtoul and strtoull.
79810         Check for strtol.  Mainly as a cue to cause automake to include
79811         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79812         Check for limits.h -- strtol.c needs it.
79813
79814 2000-12-05  Jim Meyering  <meyering@lucent.com>
79815
79816         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79817
79818 2000-12-04  Jim Meyering  <meyering@lucent.com>
79819
79820         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79821         Also include memory.h, stdlib.h, unistd.h if appropriate.
79822         Reported by Andreas Jaeger (conflicting declaration of malloc).
79823
79824 2000-12-02  Jim Meyering  <meyering@lucent.com>
79825
79826         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79827         * m4/jm-macros.m4 (jm_MACROS): require it.
79828
79829 2000-12-02  Jim Meyering  <meyering@lucent.com>
79830
79831         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79832
79833 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79834
79835         * lib/memrchr.c: Include <config.h> before any system include file.
79836
79837 2000-11-30  Jim Meyering  <meyering@lucent.com>
79838
79839         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79840
79841 2000-11-30  Jim Meyering  <meyering@lucent.com>
79842
79843         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79844
79845 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79846
79847         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79848
79849 2000-11-26  Jim Meyering  <meyering@lucent.com>
79850
79851         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79852
79853 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79856         size of (size_t) -1; it's not portable.
79857
79858 2000-11-17  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/strstr.c: Update from GNU libc.
79861
79862 2000-11-17  Akim Demaille  <akim@epita.fr>
79863
79864         * lib/obstack.h: Formatting changes.
79865         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79866         prevent type checking.
79867         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79868         cast the value to (void *): assigning a `foo *' to a `void *'
79869         variable is valid.
79870         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79871
79872 2000-11-16  Jim Meyering  <meyering@lucent.com>
79873
79874         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79875
79876 2000-11-11  Jim Meyering  <meyering@lucent.com>
79877
79878         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79879
79880 2000-11-10  Jim Meyering  <meyering@lucent.com>
79881
79882         * lib/obstack.h: Update from GNU libc.
79883         * lib/obstack.c: Likewise.
79884
79885 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79886
79887         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79888
79889 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79890
79891         * lib/getusershell.c (setusershell): Use rewind rather than
79892         fseek/fseeko, to avoid configuration hassles with fseeko.
79893         Don't bother opening SHELLS_FILE if shellstream is NULL;
79894         it's not necessary.
79895
79896 2000-11-05  Jim Meyering  <meyering@lucent.com>
79897
79898         * lib/makepath.h (make_dir): Declare.
79899         * lib/makepath.c (make_dir): Remove `static' attribute.
79900         Tweak a comment.
79901
79902 2000-11-04  Jim Meyering  <meyering@lucent.com>
79903
79904         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79905
79906 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79907
79908         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79909         last one in a bucket, advance to the next bucket.
79910
79911 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79912
79913         * lib/fnmatch.c: Do not comment out all the code if we are using
79914         the GNU C library, because in some cases we are replacing buggy
79915         code in the GNU C library itself.
79916
79917 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79918
79919         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79920         (regex_compile): Catch bogus \(\1\).
79921
79922 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79923
79924         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79925         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79926         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79927
79928 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79929
79930         * lib/error.h, getline.h, modechange.h:
79931         Remove "2000" from Copyright line, as the file hasn't been
79932         changed this year other than in the copyright notice.
79933
79934         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79935         was changed this year.
79936
79937 2000-10-29  Jim Meyering  <meyering@lucent.com>
79938
79939         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79940         renaming.
79941         * m4/ls-mntd-fs.m4: Likewise
79942
79943 2000-10-29  Jim Meyering  <meyering@lucent.com>
79944
79945         * lib/xstat.in: Fix grammar in comment.
79946
79947 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79948
79949         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79950         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79951         doesn't define __restrict_arr.
79952
79953 2000-10-28  Jim Meyering  <meyering@lucent.com>
79954
79955         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79956         (jm_PREREQ_MEMCHR): New function.
79957
79958 2000-10-28  Jim Meyering  <meyering@lucent.com>
79959
79960         * lib/memchr.c: Update from libc.
79961         Adjust for portability:
79962         [HAVE_STDLIB_H]: Include stdlib.h.
79963         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79964         Undef __memchr, too.
79965         [!weak_alias]: Define __memchr to memchr.
79966
79967         * lib/regex.c: Update from libc.
79968         * lib/regex.h: Likewise.
79969         * lib/getopt1.c: Likewise.
79970         * lib/memcmp.c: Likewise.
79971
79972         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79973         Avoid using fseek, when possible -- it's broken by design.
79974         Patch by Ulrich Drepper.
79975
79976 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79977
79978         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79979         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79980         Giving in to popular pressure to shut up the compiler with casts.
79981
79982 2000-10-26  Jim Meyering  <meyering@lucent.com>
79983
79984         * lib/strftime.c: Update from libc.
79985
79986 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79987
79988         * regex.c: More `unsigned char' -> `re_char' changes.
79989         Also change several `int' into `re_wchar_t'.
79990         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79991         (PUSH_FAILURE_POINTER): Don't cast any more.
79992         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79993         We want GCC to complain, since this piece of code makes
79994         re_match non-reentrant, which *should* be fixed.
79995         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79996         (EXTEND_BUFFER): Use RETALLOC.
79997         (SET_LIST_BIT): Don't cast.
79998         (re_wchar_t): New type.
79999         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80000         that those two functions will always properly return.
80001         (IMMEDIATE_QUIT_CHECK): Cast to void.
80002         (analyse_first): Use recursion rather than an explicit stack.
80003         (re_compile_fastmap): Can't fail anymore.
80004         (re_search_2): Don't check re_compile_fastmap for failure.
80005         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80006         Now also sets the new value (passed in a new argument).
80007         (re_match_2_internal): Use it.
80008         Also, use a new var `reg' of type size_t when looping through regs
80009         rather than reuse the inappropriate `mcnt'.
80010
80011 2000-10-25  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/obstack.c: Update from libc.
80014
80015 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80016
80017         * regex.c (regex_compile): Change the way of handling a range from
80018         a char less than 256 to a char not less than 256.
80019
80020 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80021
80022         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80023         NT-Emacs only.
80024         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80025         so that re_search functions only quit when callers expect them to.
80026
80027 2000-10-23  Jim Meyering  <meyering@lucent.com>
80028
80029         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80030         wrong.  That set_locale call must not have any side effects.
80031         From Paul Eggert.
80032
80033 2000-10-22  Jim Meyering  <meyering@lucent.com>
80034
80035         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80036         [CYCLIC]: Remove now-unused definition.
80037
80038         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80039         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80040         Suggestion from Ulrich Drepper.
80041
80042 2000-10-21  Jim Meyering  <meyering@lucent.com>
80043
80044         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80045         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80047
80048 2000-10-21  Jim Meyering  <meyering@lucent.com>
80049
80050         * lib/dirname.c (memrchr): Declare if necessary.
80051         (dir_name): Remove the restriction that there be no
80052         trailing slashes.  Now, this code skips past them, effectively
80053         ignoring them.
80054         [TEST_DIRNAME] (main): New unit tests.
80055
80056         * lib/memrchr.c: New file from GNU libc.
80057         Undef __memrchr, too.
80058         [!weak_alias]: Define __memrchr to memrchr.
80059         Guard weak_alias use with `#ifdef weak_alias'.
80060
80061 2000-10-21  Jim Meyering  <meyering@lucent.com>
80062
80063         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80064         (dir_name): Use dir_name_r.
80065         * lib/dirname.h (dir_name_r): Declare it.
80066
80067 2000-10-17  Jim Meyering  <meyering@lucent.com>
80068
80069         * lib/quote.h (PARAMS): Define and use.
80070         Reported by Akim Demaille.
80071
80072         * lib/getopt.c: Update from libc.
80073
80074 2000-10-16  Jim Meyering  <meyering@lucent.com>
80075
80076         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80077         setlocale.
80078         From Jan Fedak.
80079
80080 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80081
80082         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80083
80084 2000-09-25  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/md5.h (rol): Define (from GnuPG).
80087
80088         * lib/sha.c: Give credit (GnuPG) where due.
80089         (M): Use rol rather than open-coding it.
80090         Add a FIXME comment.
80091
80092 2000-09-21  Jim Meyering  <meyering@lucent.com>
80093
80094         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80095         Reported by Michael Stone.
80096
80097 2000-09-20  Jim Meyering  <meyering@lucent.com>
80098
80099         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80100         (noinst_HEADERS): Add sha.h.
80101         Based on code from Scott G. Miller and from GnuPG.
80102
80103 2000-09-18  Jim Meyering  <meyering@lucent.com>
80104
80105         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80106         LIBS. Otherwise, everyone ends up linking with -lelf for some
80107         configurations.
80108         Reported by Mike Stone.
80109
80110 2000-09-15  Jim Meyering  <meyering@lucent.com>
80111
80112         * lib/regex.c: Update from libc.
80113
80114 2000-09-10  Jim Meyering  <meyering@lucent.com>
80115
80116         * lib/getopt.c (_getopt_internal): Update from glibc.
80117
80118 2000-09-09  Jim Meyering  <meyering@lucent.com>
80119
80120         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80121         think it should be used as a general replacement for isascii.
80122         * lib/fnmatch.c: Likewise.
80123         * lib/mbswidth.c: Likewise
80124         * lib/regex.c: Likewise.
80125
80126         Don't use atoi.
80127         * lib/userspec.c: Include sys/param.h and limits.h.
80128         Include xstrtol.h.
80129         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80130         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80131         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80132         UID, GID.  Check range.
80133
80134 2000-09-06  Jim Meyering  <meyering@lucent.com>
80135
80136         * lib/getopt.c (_getopt_internal): Update from glibc.
80137
80138 2000-08-30  Jim Meyering  <meyering@lucent.com>
80139
80140         * lib/strftime.c: Merge in changes from GNU libc.
80141
80142 2000-08-26  Jim Meyering  <meyering@lucent.com>
80143
80144         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80145         * m4/fpending.m4: New file.
80146
80147 2000-08-26  Jim Meyering  <meyering@lucent.com>
80148
80149         * lib/closeout.c: Include "__fpending.h".
80150         (close_stdout_status): Return right away if there's nothing to flush.
80151
80152         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80153         * lib/__fpending.c: New file.
80154         * lib/__fpending.h: New file.
80155
80156 2000-08-20  Jim Meyering  <meyering@lucent.com>
80157
80158         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80159         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80160         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80161
80162 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80163
80164         Improve fileutils installation on systems where running
80165         programs (like install) can't be unlinked.
80166         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80167         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80168
80169 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80170
80171         Standardize on "memory exhausted" instead of "Memory exhausted"
80172         or "virtual memory exhausted".
80173         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80174         "virtual memory exhausted".
80175         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80176         our own message.
80177         * lib/userspec.c (parse_user_spec): Likewise.
80178         * lib/bumpalloc.h: comment fix
80179         * lib/same.c, userspec.c: Include xalloc.h.
80180
80181         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80182         not char *const and pointing to a constant array.
80183         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80184         (xrealloc): Comment fix.
80185
80186         * lib/userspec.c (parse_user_spec):
80187         Don't translate a message until just before returning,
80188         to avoid unnecessary translation.
80189
80190 2000-08-07  Jim Meyering  <meyering@lucent.com>
80191
80192         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80193         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80194         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80195         getgroups.c, gethostname.c, getopt.h, group-member.c,
80196         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80197         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80198         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80199         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80200         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80201         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80202         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80203         yesno.c: Back out Copyright date changes for each file with no change
80204         this year.  This eases coordination with other programs using the same
80205         source code modules.  From Paul Eggert.
80206
80207 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80208
80209         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80210         not char, for compatibility with glibc 2.1.3 strftime.c.
80211
80212 2000-08-03  Greg McGary  <greg@mcgary.org>
80213
80214         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80215         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80216         (EXTEND_BUFFER): Use them.
80217
80218 2000-08-01  Jim Meyering  <meyering@lucent.com>
80219
80220         * lib/dirname.c (ISSLASH): Define.
80221         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80222         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80223         both `\' and `/' may be use as path separators.
80224         Based on a patch from Prashant TR.
80225
80226 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80227
80228         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80229         slot vector a constant, since it might get modified.
80230
80231 2000-07-31  Jim Meyering  <meyering@lucent.com>
80232
80233         * lib/xmalloc.c: Use `virtual memory exhausted', not
80234         `Memory exhausted'.
80235         * lib/obstack.c (print_and_abort): Likewise.
80236
80237 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80238
80239         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80240         buffer, so that the caller can always quote one small
80241         component of a "memory exhausted" message in slot 0.
80242         From a suggestion by Jim Meyering.
80243
80244 2000-07-30  Jim Meyering  <meyering@lucent.com>
80245
80246         * lib/makepath.c (make_path): Quote the other instance, too.
80247
80248         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80249         (STATIC_BUF_SIZE): Define.
80250         (quotearg_n_options): Use only statically allocated storage when
80251         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80252         than STATIC_BUF_SIZE.
80253
80254 2000-07-29  Jim Meyering  <meyering@lucent.com>
80255
80256         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80257         * lib/dirname.c (dir_name): Likewise.
80258
80259         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80260         `/'.
80261
80262         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80263         (dir_name): Assert that there are no trailing slashes.
80264
80265 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80266
80267         * lib/mbswidth.h (mbswidth): Add a flags argument.
80268         (mbswidth): New declaration.
80269         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80270         * lib/mbswidth.c (mbswidth): Add a flags argument.
80271         (mbsnwidth): New function.
80272
80273 2000-07-24  Jim Meyering  <meyering@lucent.com>
80274
80275         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80276
80277 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80278
80279         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80280
80281 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80282
80283         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80284         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80285         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80286         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80287         invoke multibyte primitives.
80288
80289 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80290
80291         * lib/quotearg.c:
80292         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80293         so that mbstate_t is always defined.
80294
80295         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80296         be 1 in at least one GCC installation, and this configuration
80297         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80298         performance on hosts that have mbrtowc but have only unibyte
80299         locales, but I assume these hosts are rare.
80300
80301 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80302
80303         * lib/mbswidth.c (_XOPEN_SOURCE):
80304         Don't define; this causes problems on Solaris 7.
80305         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80306
80307 2000-07-23  Jim Meyering  <meyering@lucent.com>
80308
80309         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80310         too: getgrgid, getpwuid, getuid.
80311
80312 2000-07-23  Jim Meyering  <meyering@lucent.com>
80313
80314         * lib/basename.c (base_name): Add an assertion.
80315
80316 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80317
80318         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80319         shadow its mbsinit function.
80320
80321 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80322
80323         * lib/mbswidth.h: New file.
80324         * lib/mbswidth.c: New file.
80325         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80326         (noinst_HEADERS): Add mbswidth.h.
80327
80328 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80329
80330         * lib/config.charset: Add support for FreeBSD. Improve support for
80331         HP-UX and IRIX 6.
80332
80333 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80334
80335         * m4/mbswidth.m4: New file.
80336         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80337
80338 2000-07-15  Jim Meyering  <meyering@lucent.com>
80339
80340         * lib/makepath.c: Include quote.h.
80341         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80342         corresponding argument in a `quote (...)' call.
80343         Give better diagnostics.
80344
80345         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80346         (noinst_HEADERS): Add quote.h.
80347
80348         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80349         from tar's src/misc.c.
80350         * lib/quote.h: New file.  Prototypes for same.
80351
80352 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80353
80354         From a suggestion by Bruno Haible.
80355         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80356         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80357         to decide whether to define the BeOS workaround macro;
80358         this adjusts to the change to AC_MBSTATE_T.
80359
80360 2000-07-14  Jim Meyering  <meyering@lucent.com>
80361
80362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80363         jm_AC_TYPE_UINTMAX_T.
80364
80365 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80366
80367         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80368
80369         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80370         quotearg_buffer_restyled): Add support for
80371         clocale_quoting_style.  Undo previous change to
80372         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80373         and "{RIGHT QUOTATION MARK}" msgids.
80374
80375 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80376
80377         From a suggestion by Bruno Haible.
80378         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80379         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80380         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80381         and mbstate_t, to a single-part test that simply defines mbstate_t.
80382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80383         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80384
80385 2000-07-10  Jim Meyering  <meyering@lucent.com>
80386
80387         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80388
80389         * m4/gnu-source.m4: Output to confdefs.h directly.
80390         Suggestion from Akim Demaille.
80391
80392 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80393
80394         The old behavior of quoting `like this' doesn't look good with
80395         newer, ISO-style fonts.  See:
80396         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80397
80398         Instead, quote "like this" by default.  Let the translator
80399         tailor the locale-specific quoting behavior by providing
80400         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80401
80402         * lib/quotearg.c (N_): New macro.
80403         (gettext_default): New function.
80404         (quotearg_buffer_restyled): Use
80405         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80406         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80407
80408 2000-07-09  Jim Meyering  <meyering@lucent.com>
80409
80410         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80411         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80412
80413         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80415
80416 2000-07-09  Jim Meyering  <meyering@lucent.com>
80417
80418         * lib/Most files: Update copyright dates to include 2000.
80419
80420 2000-07-08  Jim Meyering  <meyering@lucent.com>
80421
80422         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80423         if not defined.
80424         (xgethostname): Remove now-unnecessary #ifdef.
80425         Move declaration of `err' into loop where it's used.
80426
80427 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80428         and Bruno Haible  <haible@clisp.cons.org>
80429
80430         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80431         only if the test for an object-type mbstate_t fails.  This
80432         prevents us from mistakenly reporting that mbstate_t is a
80433         system object type after we "#define mbstate_t int" to work
80434         around its lack.
80435
80436 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80437         and Bruno Haible  <haible@clisp.cons.org>
80438
80439         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80440
80441 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80442
80443         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80444         to strerror_r.
80445         Include <ctype.h> for use of isalpha.
80446
80447 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80448
80449         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80450         by allocating a larger buffer. Test the gethostname return value for
80451         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80452         returns an error and ENAMETOOLONG isn't defined.
80453
80454 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80455
80456         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80457         dimension.
80458
80459 2000-07-04  Jim Meyering  <meyering@lucent.com>
80460
80461         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80462         of the deprecated AC_CHECKING.
80463
80464 2000-07-04  Jim Meyering  <meyering@lucent.com>
80465
80466         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80467         Reported by Bruno Haible.
80468
80469 2000-07-04  Jim Meyering  <meyering@lucent.com>
80470
80471         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80472         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80473         lacks mbrtowc.
80474
80475 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80476
80477         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80478         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80479
80480 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80481         and Bruno Haible  <haible@clisp.cons.org>
80482
80483         * lib/quotearg.c (mbrtowc):
80484         Assign to *pwc, and return 1 only if result is nonzero.
80485         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80486
80487 2000-07-03  Jim Meyering  <meyering@lucent.com>
80488
80489         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80490
80491 2000-07-03  Jim Meyering  <meyering@lucent.com>
80492
80493         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80494         This is necessary to get a definition of e.g., UTMP_FILE on
80495         HP-UX 10.20.
80496         From Bob Proulx.
80497
80498 2000-07-02  Jim Meyering  <meyering@lucent.com>
80499
80500         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80501
80502         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80503         AC_LIBOBJ(function_name).
80504         * m4/chown.m4: Likewise.
80505         * m4/fnmatch.m4: Likewise.
80506         * m4/ftruncate.m4: Likewise.
80507         * m4/getgroups.m4: Likewise.
80508         * m4/getline.m4: Likewise.
80509         * m4/group-member.m4: Likewise.
80510         * m4/jm-macros.m4: Likewise.
80511         * m4/lstat.m4: Likewise.
80512         * m4/malloc.m4: Likewise.
80513         * m4/memcmp.m4: Likewise.
80514         * m4/nanosleep.m4: Likewise.
80515         * m4/putenv.m4: Likewise.
80516         * m4/realloc.m4: Likewise.
80517         * m4/regex.m4: Likewise.
80518         * m4/stat.m4: Likewise.
80519         * m4/strftime.m4: Likewise.
80520
80521 2000-07-02  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/quotearg.c (mbstate_t): Don't define here.
80524
80525 2000-07-02  Jim Meyering  <meyering@lucent.com>
80526
80527         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80528
80529 2000-07-01  Jim Meyering  <meyering@lucent.com>
80530
80531         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80532
80533 2000-07-01  Jim Meyering  <meyering@lucent.com>
80534
80535         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80536         problem.
80537
80538 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80539
80540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80541         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80542
80543 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80544
80545         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80546         per change in ../m4/ls-mntd-fs.m4.
80547         (read_filesystem_list): Ignore symbolic links.
80548
80549 2000-06-29  Jim Meyering  <meyering@lucent.com>
80550
80551         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80552         for declaration of strcmp.
80553
80554         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80555
80556         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80557         Avoid warning by casting result to `char *' to remove `const'.
80558
80559 2000-06-28  Jim Meyering  <meyering@lucent.com>
80560
80561         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80562         included by quotearg.c, for which we perform this test.  From
80563         Bruno Haible.
80564
80565 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80566
80567         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80569         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80570
80571 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80572
80573         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80574
80575 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80576
80577         savedir now sets errno on failure and invokes xmalloc to get memory.
80578         Fix a couple of other minor bugs while we're at it.
80579
80580         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80581         (NAMLEN): Remove macro.
80582         (malloc, realloc): Remove decls.
80583         (stpcpy): Likewise.
80584         ("xalloc.h"): Include.
80585         (NAME_SIZE_DEFAULT): New macro.
80586         (savedir): Use xmalloc / xrealloc to allocate memory.
80587         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80588         Skip "" directory entries.
80589         Use strlen to calculate directory entry length, since the old method
80590         is rarely used these days and isn't worth supporting.
80591         Don't use a pointer after freeing it.
80592         Check for integer overflow when calculating allocation size.
80593         Use memcpy to copy entries, instead of stpcpy.
80594         Set errno properly when returning NULL.
80595         Check for readdir error.
80596
80597 2000-06-26  Jim Meyering  <meyering@lucent.com>
80598
80599         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80600
80601 2000-06-25  Jim Meyering  <meyering@lucent.com>
80602
80603         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80604         Linux header bug when _XOPEN_SOURCE is defined to 500.
80605
80606 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80607
80608         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80609         deficiency.
80610
80611 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80612
80613         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80614         Include xalloc.h.
80615         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80616
80617 2000-06-24  Jim Meyering  <meyering@lucent.com>
80618
80619         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80620         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80621         for which strerror does return char*, but which lacks a conveniently
80622         accessible declaration of the function.  If the compile-test says
80623         strerror_r doesn't work, then resort to a `run'-test that works on
80624         BeOS and segfaults on DEC Unix.
80625
80626 2000-06-24  Jim Meyering  <meyering@lucent.com>
80627
80628         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80629
80630 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80631
80632         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80634
80635 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80636
80637         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80638         (mbrtowc, mbstate_t): Define substitutes if
80639         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80640         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80641         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80642
80643 2000-06-23  Jim Meyering  <meyering@lucent.com>
80644
80645         * m4/afs.m4: Add missing AC_MSG_RESULT.
80646         Reported by Bruno Haible.
80647
80648         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80649         Suggestion from Bruno Haible.
80650
80651 2000-06-23  Jim Meyering  <meyering@lucent.com>
80652
80653         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80654
80655 2000-06-21  Jim Meyering  <meyering@lucent.com>
80656
80657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80658
80659 2000-06-21  Jim Meyering  <meyering@lucent.com>
80660
80661         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80662         (noinst_HEADERS): Add getstr.h.
80663
80664         * lib/getline.c (getstr): Move into a separate file.
80665         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80666         the following changes: new parameter, delim2; both delim[12]
80667         parameters have type `int', not `char'.  The latter would lose
80668         with 8-bit delimiters.
80669         * lib/getstr.h: New file.
80670
80671 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80672
80673         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80674         than 1024, return a memory chunk of least possible size, instead
80675         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80676         Use free/xmalloc instead of xrealloc to avoid copying for very long
80677         paths.
80678
80679 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80680
80681         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80682         the empty string.
80683
80684 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80685
80686         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80687         address, not strdup.  Include <stdlib.h> and don't declare free().
80688
80689 2000-06-19  Jim Meyering  <meyering@lucent.com>
80690
80691         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80692
80693 2000-06-18  Jim Meyering  <meyering@lucent.com>
80694
80695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80696
80697         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80698         `checking whether...' message to be consistent with that of the
80699         lstat test.
80700
80701 2000-06-18  Jim Meyering  <meyering@lucent.com>
80702
80703         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80704         Besides, these days every porting target provides a mkdir function.
80705
80706         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80707         needed. (this snippet comes from src/system.h).
80708
80709 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80710
80711         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80712
80713 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80714
80715         * lib/human.c (adjust_value): New function.
80716         (human_readable_inexact): Apply rounding style even when
80717         printing approximate values.
80718
80719 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80720
80721         * lib/human.c (human_readable_inexact): Allow an input block
80722         size that is not a multiple of the output block size, and vice versa.
80723         Reported by Piergiorgio Sartor.
80724
80725 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80726
80727         * lib/getdate.y (get_date): Apply relative times after time
80728         zone indicator, not before.  Reported by Todd A. Jacobs.
80729
80730 2000-06-13  Jim Meyering  <meyering@lucent.com>
80731
80732         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80733
80734         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80735
80736 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80737
80738         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80739
80740 2000-06-12  Jim Meyering  <meyering@lucent.com>
80741
80742         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80743         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80744         optional argument.
80745         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80746         the optional argument, `lib'.
80747
80748 2000-06-08  Jim Meyering  <meyering@lucent.com>
80749
80750         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80751
80752 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80753
80754         Rewrite largefile configuration so that we don't need to run
80755         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80756         AC_CANONICAL_HOST in configure.in -- jmm]
80757
80758         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80759         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80760         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80761         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80762         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80763         All uses changed.
80764         Instead of inspecting the output of getconf, try to compile the
80765         test program without and with the macro definition.
80766         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80767         for getconf.  Instead, check for the needed flags by compiling
80768         test programs.
80769
80770 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80771
80772         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80773
80774 2000-06-04  Jim Meyering  <meyering@lucent.com>
80775
80776         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80777         SunOS 4.1.4 for which gid_t is an unsigned type.
80778
80779 2000-06-03  Jim Meyering  <meyering@lucent.com>
80780
80781         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80782         now that autoconf requires that.
80783
80784         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80785         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80786         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80787
80788 2000-06-03  Jim Meyering  <meyering@lucent.com>
80789
80790         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80791
80792 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80793
80794         * m4/glibc21.m4: New file.
80795         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80796
80797 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80798
80799         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80800         newer, don't install charset.alias.
80801         * lib/config.charset: Change the Linux/glibc rules so they become empty
80802         on glibc-2.1 or newer.
80803
80804 2000-06-02  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/mountlist.c: Back out last change.  Instead, do this...
80807         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80808         me_dummy member using the same `ignore'-testing code.
80809         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80810         fs_type strings.
80811         From Mark D. Roth.
80812
80813 2000-05-29  Jim Meyering  <meyering@lucent.com>
80814
80815         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80816         mounts with the `ignore' attribute.  Based on a patch from
80817         Mark D. Roth.
80818
80819 2000-05-28  Jim Meyering  <meyering@lucent.com>
80820
80821         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80822         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80823         * m4/stat.m4: Likewise.
80824         * m4/lstat.m4: Likewise.
80825         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80826
80827         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80828         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80829
80830 2000-05-26  Jim Meyering  <meyering@lucent.com>
80831
80832         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80833
80834 2000-05-24  Jim Meyering  <meyering@lucent.com>
80835
80836         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80837         autoconf requires that.
80838         * m4/lib-check.m4: Likewise.
80839         * m4/jm-macros.m4: Likewise.
80840         * m4/strftime.m4: Likewise.
80841
80842         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80843         AC_CHECK_DECLS, now that autoconf requires that.
80844
80845 2000-05-22  Jim Meyering  <meyering@lucent.com>
80846
80847         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80848         * m4/lstat.m4: Likewise.
80849
80850 2000-05-22  Jim Meyering  <meyering@lucent.com>
80851
80852         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80853
80854 2000-05-20  Jim Meyering  <meyering@lucent.com>
80855
80856         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80857         (jm_PREREQ): Use it.
80858
80859 2000-05-18  Jim Meyering  <meyering@lucent.com>
80860
80861         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80862         back, too, since it may have been modified by allocate_entry.
80863         (hash_delete): Rewrite to use neither the assignment operator
80864         nor the comma operator in an if-expression.
80865
80866 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80867
80868         * lib/closeout.c:
80869         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80870         Remove; no longer needed.
80871         "quotearg.h": Add include.
80872         (file_name): Do not bother to explicitly initialize to NULL; it's less
80873         efficient on some hosts.
80874         (close_stdout_status): Remove test as to whether stdout was already
80875         closed; it breaks for the case "echo x | sort >&-".
80876         Quote file name colons.
80877         Do not assume that _("write error") lacks format strings.
80878
80879 2000-05-15  Jim Meyering  <meyering@lucent.com>
80880
80881         * lib/version-etc.c (version_etc_copyright): Update the copyright
80882         string used in all --version output.
80883
80884 2000-05-14  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/closeout.c (close_stdout_set_file_name): New function.
80887         (close_stdout_status): Use new file-scoped global.
80888         Return right away if fstat says the stdout file descriptor is invalid.
80889         * lib/closeout.h (close_stdout_set_file_name): Declare.
80890
80891 2000-05-10  Jim Meyering  <meyering@lucent.com>
80892
80893         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80894         (close_stdout_set_status): New function.
80895         * lib/closeout.h (close_stdout_set_status): Declare.
80896
80897 2000-05-09  Jim Meyering  <meyering@lucent.com>
80898
80899         * m4/gettext.m4: Rename this...
80900         * m4/libintl.m4: ...to this.
80901
80902 2000-05-08  Jim Meyering  <meyering@lucent.com>
80903
80904         * lib/long-options.c: Don't include closeout.h.
80905         (parse_long_options): Don't call close_stdout for --version.
80906
80907 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80908
80909         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80910         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80911         2.1.3 bug.  This avoids a clash when files like regex.c define
80912         _GNU_SOURCE.
80913
80914 2000-05-06  Jim Meyering  <meyering@lucent.com>
80915
80916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80917         (AC_REPLACE_FUNCS): Add strnlen.
80918
80919         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80920         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80921
80922         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80923         AC_SEARCH_LIBS call for nanosleep.
80924         (LIB_NANOSLEEP): Set and AC_SUBST.
80925
80926 2000-05-06  Jim Meyering  <meyering@lucent.com>
80927
80928         * lib/strnlen.c: Undefine __strnlen and strnlen.
80929         [!weak_alias]: Define __strnlen to strnlen.
80930
80931         * lib/atexit.c: New file, from libiberty.
80932
80933 2000-05-06  Jim Meyering  <meyering@lucent.com>
80934
80935         * lib/closeout.c (close_stdout_status): Also check for errors on the
80936         stderr stream.
80937
80938 2000-05-05  Jim Meyering  <meyering@lucent.com>
80939
80940         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80941         AC_SEARCH_LIBS call for clock_gettime.
80942         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80943
80944         * m4/search-libs.m4: Update from autoconf.
80945
80946         su doesn't work on Solaris 2.6.
80947         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80948         <shadow.h>.  Reported by Dragos Harabor.
80949
80950 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80951
80952         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80953         memcpy instead of xmalloc, xrealloc, path_concat.
80954         (locale_charset): Treat empty environment variables as absent.
80955         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80956
80957 2000-05-04  Jim Meyering  <meyering@lucent.com>
80958
80959         * lib/getopt.c: Update from glibc.
80960         * lib/obstack.c: Likewise.
80961         * lib/obstack.h: Likewise.
80962         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80963         file
80964
80965         * lib/regex.h: Likewise.
80966         * lib/strndup.c: Likewise.
80967         * lib/strnlen.c: New file, from glibc.
80968
80969 2000-05-03  Jim Meyering  <meyering@lucent.com>
80970
80971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80972
80973 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80974
80975         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80976         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80977         compile-time test, rather than inspecting host and OS, to
80978         decide whether to define _LARGEFILE_SOURCE.
80979
80980 2000-05-01  Jim Meyering  <meyering@lucent.com>
80981
80982         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80983
80984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80985         Based on a patch from Bruno Haible.
80986
80987 2000-05-01  Jim Meyering  <meyering@lucent.com>
80988
80989         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80990
80991 2000-04-29  Jim Meyering  <meyering@lucent.com>
80992
80993         * lib/path-concat.c: Declare strdup only if it's not defined.
80994         * lib/canon-host.c: Likewise.
80995
80996 2000-04-28  Jim Meyering  <meyering@lucent.com>
80997
80998         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80999         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81000         is included first, then limits.h is included by locale.h by libintl.h.
81001         From John David Anglin.
81002
81003 2000-04-25  Jim Meyering  <meyering@lucent.com>
81004
81005         * lib/makepath.c (S_IRWXUGO): Define.
81006         (make_path): Always perform explicit chmod if MODE specifies any
81007         of the `special' permission bits.  Prompted by a bug report against
81008         install from Mate Wierdl and Joost van Baal.
81009
81010 2000-04-18  Jim Meyering  <meyering@lucent.com>
81011
81012         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81013         (jm_PREREQ): Use it.
81014
81015 2000-04-18  Jim Meyering  <meyering@lucent.com>
81016
81017         * lib/README: New file.
81018
81019         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81020         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81021
81022 2000-04-17  Jim Meyering  <meyering@lucent.com>
81023
81024         Get it right :-)
81025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81026         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81027         Suggestion from Akim Demaille.
81028
81029 2000-04-17  Jim Meyering  <meyering@lucent.com>
81030
81031         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81032         the definition of it to rpl_strftime also defined-away the system's
81033         declaration.
81034
81035 2000-04-15  Jim Meyering  <meyering@lucent.com>
81036
81037         Use `C' to denote so-called `contiguous' files, the same way
81038         that tar does.
81039         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81040         (ftypelet): Use S_ISCTG.
81041         From Michael Deutschmann.
81042
81043 2000-04-14  Jim Meyering  <meyering@lucent.com>
81044
81045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81046         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81047         clobbered.
81048
81049 2000-04-14  Jim Meyering  <meyering@lucent.com>
81050
81051         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81052
81053 2000-04-13  Jim Meyering  <meyering@lucent.com>
81054
81055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81056         AH_VERBATIM to insert required #ifndef into config.h.in.
81057         Suggestion from Akim Demaille.
81058
81059 2000-04-12  Jim Meyering  <meyering@lucent.com>
81060
81061         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81062         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81063         Christian Krackowizer.
81064
81065         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81066         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81067         (AC_SYS_LARGEFILE): Require.
81068         (AM_C_PROTOTYPES): Require.
81069
81070 2000-04-08  Jim Meyering  <meyering@lucent.com>
81071
81072         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81073         names don't conflict.  Reported by Eli Zaretskii.
81074
81075 2000-04-07  Jim Meyering  <meyering@lucent.com>
81076
81077         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81078         sys/types.h, to work around system header problems on AIX 3.2.5.
81079         From Bruno Haible.
81080
81081 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81082
81083         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81084         bug.  Deal with the different error behavior of Irix iconv.
81085
81086 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81087
81088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81089         IRIX if the installer said otherwise.
81090
81091 2000-04-05  Jim Meyering  <meyering@lucent.com>
81092
81093         Portability tweaks required for ultrix4.3.
81094         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81095         (jm_CHECK_DECLS): Add getutent to the list of functions.
81096         (_jm_DECL_HEADERS): Add utmpx.h.
81097         From John David Anglin.
81098
81099         * m4/strftime.m4: Back out the 2000-04-02 change.
81100         Instead of that change, simply undefine putenv in the test program.
81101
81102 2000-04-05  Jim Meyering  <meyering@lucent.com>
81103
81104         Portability tweaks required for ultrix4.3.
81105         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81106         getutent.
81107         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81108         * lib/canon-host.c: Declare strdup.
81109         * lib/path-concat.c: Likewise.
81110         From John David Anglin.
81111
81112 2000-04-04  Jim Meyering  <meyering@lucent.com>
81113
81114         Be more DOS 8.3-friendly.
81115         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81116         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81117         * lib/Makefile.am: Reflect renaming.
81118         Reported by Eli Zaretskii.
81119
81120         Use a temporary file name that won't clash with `charset.alias'
81121         in the DOS 8.3 name space.
81122         * lib/Makefile.am (charset_tmp): Define.
81123         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81124         (uninstall-local): Likewise.
81125         Reported by Eli Zaretskii.
81126
81127 2000-04-03  Jim Meyering  <meyering@lucent.com>
81128
81129         * m4/gettext.m4: Fix typo in comment.
81130
81131         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81132         textutils/configure.in).  Suggestion from Paul Eggert.
81133         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81134
81135 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81136
81137         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81138         variable in the shell rather than using putenv, which isn't
81139         portable.  This avoids the configure-time inter-test dependency
81140         on the potentially-renamed putenv function.
81141
81142 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81143
81144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81145         before checking struct stat.st_blksize, so that
81146         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81147
81148 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81149
81150         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81151         since strftime.c uses HAVE_STRFTIME to decide whether to use
81152         the underlying strftime.
81153
81154 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81155
81156         * lib/time/strftime.c (my_strftime): Make sure we call the system
81157         strftime, not ourselves, when invoking the underlying strftime.
81158
81159 2000-03-24  Jim Meyering  <meyering@lucent.com>
81160
81161         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81162         (charset_alias): Define.
81163         (install-exec-local): Factor out common code.
81164         (uninstall-local): Split lines longer than 80.
81165         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81166         (SUFFIXES): Define.
81167         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81168         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81169
81170 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81171
81172         * lib/config.charset: Output a line containing "Packages using this
81173         file".
81174         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81175         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81176         ref-del.sed): New rules.
81177
81178 2000-03-17  Jim Meyering  <meyering@lucent.com>
81179
81180         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81181         Otherwise, include <strings.h>
81182
81183 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81184
81185         * lib/unicodeio.c (utf8_wctomb): New function.
81186         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81187         format instead of in UCS-4 with platform dependent endianness.
81188
81189 2000-03-10  Jim Meyering  <meyering@lucent.com>
81190
81191         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81192         From Marco Franzen.
81193
81194 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81195
81196         * lib/savedir.c (savedir): Work even if directory size is
81197         negative; this can happen with some screwy NFS configurations.
81198
81199 2000-03-06  Jim Meyering  <meyering@lucent.com>
81200
81201         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81202         if it's NULL (because we ran out of memory).  From Bruno Haible.
81203
81204 2000-03-05  Jim Meyering  <meyering@lucent.com>
81205
81206         * lib/localcharset.c ("path-concat.h"): Include.
81207         (get_charset_aliases): Use path_concat instead of ANSI string
81208         concatenation.
81209
81210         * lib/unicodeio.h (PARAMS): Define.
81211         Use it to guard prototype.
81212
81213 2000-03-04  Jim Meyering  <meyering@lucent.com>
81214
81215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81216         for lib/localcharset.c.
81217
81218 2000-03-04  Jim Meyering  <meyering@lucent.com>
81219
81220         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81221         installing into it.
81222         (uninstall-local): Uncomment this rule so `make distcheck' works
81223         once again.
81224
81225         * lib/unicodeio.c (<errno.h>): Include it.
81226         (errno): Declare if not defined.
81227
81228         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81229
81230         * lib/config.charset: New version, incorporating remarks from a linux
81231         i18n mailing list.  From Bruno Haible.
81232
81233 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81234
81235         * m4/codeset.m4: New file.
81236         * m4/iconv.m4: New file.
81237         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81238
81239 2000-03-03  Jim Meyering  <meyering@lucent.com>
81240
81241         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81242
81243 2000-03-02  Jim Meyering  <meyering@lucent.com>
81244
81245         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81246         the messages come out on separate lines.
81247
81248         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81249         rather than jm_CHECK_DECLARATIONS.
81250         * m4/decl.m4: Remove now-unused file.
81251
81252         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81253         geteuid.
81254
81255 2000-03-02  Jim Meyering  <meyering@lucent.com>
81256
81257         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81258
81259 2000-03-01  Jim Meyering  <meyering@lucent.com>
81260
81261         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81262         * lib/unicodeio.c: Likewise.
81263
81264 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81265
81266         * lib/config.charset: New file.
81267         * lib/localcharset.c: New file.
81268         * lib/unicodeio.h, lib/unicodeio.c: New files.
81269         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81270         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81271         (noinst_HEADERS): Add unicodeio.h.
81272         (all-local, install-exec-local, charset.alias): New targets.
81273
81274 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81275
81276         * lib/quotearg.c (ALERT_CHAR): New macro.
81277         (quotearg_buffer_restyled): Use it.
81278
81279 2000-02-27  Jim Meyering  <meyering@lucent.com>
81280
81281         * m4/check-decl.m4: Add getenv to the list.
81282
81283 2000-02-27  Jim Meyering  <meyering@lucent.com>
81284
81285         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81286         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81287
81288         * lib/backupfile.c: Guard inclusion of stdlib.h with
81289         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81290         Declare malloc if needed.
81291
81292         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81293         `#ifndef HAVE_DECL..'
81294         now that autoconf always defines the HAVE_DECL_ symbols.
81295         * lib/human.c: Likewise.
81296         * lib/same.c: Likewise.
81297         * lib/strtoumax.c: Likewise.
81298
81299         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81300         declaration check was not run.
81301         * lib/hash.c: Likewise.
81302         * lib/human.c: Likewise.
81303         * lib/same.c: Likewise.
81304         * lib/strtoumax.c: Likewise.
81305
81306         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81307         `.', then first look up the entire `.'-containing string as a login
81308         name.
81309
81310 2000-02-23  Jim Meyering  <meyering@lucent.com>
81311
81312         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81313         in place of my hack.
81314
81315 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81316
81317         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81318         (textint): New typedef.
81319         (parser_control): Member year changed from int to textint.
81320         All uses changed.
81321         (YYSTYPE): Removed; replaced by %union with int and textint members.
81322         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81323         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81324         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81325         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81326         (date, number, to_year): Use width of number in digits, not its value,
81327         to determine whether it's a 2-digit year, or a 2-digit time.
81328         (yylex): Store number of digits of numeric tokens.
81329         Reported by John Kendall.
81330
81331         (parser_control): Changed from struct parser_control to typedef (for
81332         consistency).  All uses changed.
81333
81334         (tID): Removed; not used.
81335         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81336
81337 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81338
81339         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81340         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81341
81342 2000-02-12  Jim Meyering  <meyering@lucent.com>
81343
81344         * lib/userspec.c (ISDIGIT): Define it.
81345         (isdigit): Remove definition.
81346         (is_number): Use ISDIGIT, not isdigit.
81347         <libintl.h>: Include.
81348         (_ and N_): Define.
81349         (parse_user_spec): Mark translatable strings.
81350
81351 2000-02-10  Jim Meyering  <meyering@lucent.com>
81352
81353         With these changes, nanosleep.[ch] are finally enough like the other
81354         lib/* replacement files to compile on a few more losing systems.
81355
81356         * lib/nanosleep.h: Don't include config.h.
81357         Remove prototype from declaration of nanosleep.
81358         (PARAMS): Remove now-unneeded definition.
81359         * lib/nanosleep.c: #undef nanosleep.
81360         (rpl_nanosleep): Rename from nanosleep.
81361
81362 2000-02-10  Jim Meyering  <meyering@lucent.com>
81363
81364         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81365         gnu_nanosleep to rpl_nanosleep.
81366
81367 2000-02-09  Jim Meyering  <meyering@lucent.com>
81368
81369         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81370         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81371
81372 2000-02-08  Akim Demaille  <akim@epita.fr>
81373
81374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81375         `[' and `]' and remove uses of `changequote'.
81376         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81377         (AC_SYS_LARGEFILE): Likewise.
81378         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81379         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81380         of changequote.
81381         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81382         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81383         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81384         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81385
81386 2000-02-05  Jim Meyering  <meyering@lucent.com>
81387
81388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81389         Remove explicit use of AC_HEADER_TIME.  It is required by
81390         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81391         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81392         in autoconf whereby the expansion of the latter ended up preceding
81393         the expansion of its prerequisite, AC_HEADER_TIME.
81394         Reported by Volker Borchert.
81395
81396 2000-02-03  Jim Meyering  <meyering@lucent.com>
81397
81398         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81399
81400 2000-02-03  Jim Meyering  <meyering@lucent.com>
81401
81402         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81403         rather than with `#if HAVE_UTMPNAME'.
81404
81405 2000-02-02  Jim Meyering  <meyering@lucent.com>
81406
81407         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81408         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81409         Reported by Eli Zaretskii.
81410
81411 2000-02-01  Jim Meyering  <meyering@lucent.com>
81412
81413         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81414
81415 2000-01-31  Jim Meyering  <meyering@lucent.com>
81416
81417         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81418         functions.  Add the time.h and sys/time.h headers along with the
81419         AC_REQUIRE'ment of AC_HEADER_TIME.
81420
81421 2000-01-31  Jim Meyering  <meyering@lucent.com>
81422
81423         * lib/nanosleep.h (nanosleep): Guard declaration with
81424         `#if ! HAVE_DECL_NANOSLEEP'.
81425         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81426         the declaration in that vendor's sys/timers.h.
81427         Reported by Christian Krackowizer.
81428
81429         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81430         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81431         (ISPRINT): Likewise.
81432         Reported by Tom Tromey.
81433
81434 2000-01-30  Jim Meyering  <meyering@lucent.com>
81435
81436         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81437
81438         * m4/prereq.m4 (utmp_includes): Define.
81439         Check for ut_user and ut_name members in both struct utmpx
81440         and struct utmp.
81441
81442 2000-01-30  Jim Meyering  <meyering@lucent.com>
81443
81444         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81445         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81446         header files where only utmpx.ut_user is declared.
81447
81448         * lib/readutmp.h (UT_USER): Define.
81449
81450 2000-01-29  Jim Meyering  <meyering@lucent.com>
81451
81452         * m4/lib-check.m4: New file containing library-related checks from
81453         fileutils and sh-utils (textutils had none).
81454
81455 2000-01-28  Jim Meyering  <meyering@lucent.com>
81456
81457         * m4/perl.m4: Change format of warning message to look more like that
81458         from the missing script.  Suggestion from François Pinard.
81459
81460 2000-01-25  Jim Meyering  <meyering@lucent.com>
81461
81462         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81463         well as time.h in the compile check.
81464         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81465         Fix typo in cross-compiling case: s/yes/no/.
81466
81467 2000-01-23  Jim Meyering  <meyering@lucent.com>
81468
81469         * m4/jm-macros.m4: Move df-related tests here from
81470         fileutils/configure.in
81471
81472         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81473         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81474
81475         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81476         s/space/ac_fsusage_space/.
81477         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81478
81479         * m4/ftruncate.m4: New file (derived from part of
81480         fileutils/configure.in).
81481         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81482         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81483
81484         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81485         AC_SUBST these here, rather than just in sh-util/configure.in, so
81486         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81487         all the same.
81488         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81489         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81490         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81491         (AC_SUBST(POW_LIBM)): Likewise.
81492         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81493
81494 2000-01-23  Jim Meyering  <meyering@lucent.com>
81495
81496         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81497         obstack.c.
81498
81499 2000-01-22  Jim Meyering  <meyering@lucent.com>
81500
81501         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81502
81503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81504
81505         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81506         configure.in
81507         (AC_CHECK_HEADERS): Likewise for sh-utils.
81508         (AC_CHECK_HEADERS): Likewise for textutils.
81509         Merge the three lists of headers.
81510
81511         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81512         from fileutils' configure.in.
81513
81514         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81515         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81516         check-decl.m4.
81517
81518         * m4/check-decl.m4: Use #if rather than #ifdef.
81519         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81520         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81521         (_jm_DECL_HEADERS): Define new function.
81522         (jm_CHECK_DECLARATIONS): Require it.
81523
81524 2000-01-22  Jim Meyering  <meyering@lucent.com>
81525
81526         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81527         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81528         Required for some AIX systems.  Reported by Christian Krackowizer.
81529         [TESTING] (main): New function.
81530
81531         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81532         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81533         letters.
81534
81535         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81536         iswprint.
81537
81538         * lib/strverscmp.c (ISDIGIT): Define.
81539         (strverscmp): Use ISDIGIT, not isdigit.
81540
81541 2000-01-19  Jim Meyering  <meyering@lucent.com>
81542
81543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81544         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81545         defines `struct timespec' in <sys/time.h>
81546
81547         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81548         Thanks to Akim for explaining.
81549
81550 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81551
81552         * lib/nanosleep.c (nanosleep):
81553         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81554         POSIX.1 doesn't require SA_INTERRUPT and some systems
81555         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81556         it's been part of POSIX.1 since day 1 (in 1988).
81557
81558 2000-01-17  Jim Meyering  <meyering@lucent.com>
81559
81560         * lib/interlock: Remove unused file.  Reported by François Pinard.
81561
81562 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81563
81564         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81565         alert, backslash, formfeed, and vertical tab unnecessarily in
81566         shell quoting style.
81567
81568 2000-01-16  Jim Meyering  <meyering@lucent.com>
81569
81570         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81571         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81572         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81573         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81574
81575 2000-01-16  Jim Meyering  <meyering@lucent.com>
81576
81577         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81578         because the latter didn't work.
81579
81580 2000-01-15  Jim Meyering  <meyering@lucent.com>
81581
81582         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81583         (AC_REPLACE_FUNCS): Add memcpy and memset.
81584         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81585         Add strpbrk.
81586         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81587
81588 2000-01-12  Jim Meyering  <meyering@lucent.com>
81589
81590         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81591         (jm_PREREQ): Use it.
81592         (jm_PREREQ_READUTMP): New macro.
81593         (jm_PREREQ): Use it.
81594
81595 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81596
81597         Quote multibyte characters correctly.
81598         * m4/c-bs-a.m4: New file.
81599         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81600         (jm_PREREQ): Use it.
81601
81602 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81603
81604         * m4/uintmax_t.m4: Port to autoconf 2.13.
81605
81606 2000-01-08  Jim Meyering  <meyering@ascend.com>
81607
81608         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81609         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81610
81611 2000-01-04  Jim Meyering  <meyering@ascend.com>
81612
81613         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81614         jm_STRUCT_DIRENT_D_TYPE.
81615         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81616         jm_STRUCT_DIRENT_D_INO.
81617         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81618         jm_STRUCT_UTIMBUF.
81619         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81620         renamings.
81621         * m4/utime.m4: Likewise.
81622
81623         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81624         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81625
81626 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81627
81628         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81629         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81630
81631 2000-01-02  Jim Meyering  <meyering@ascend.com>
81632
81633         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81634         remember if this is necessary.
81635
81636 1999-12-26  Jim Meyering  <meyering@ascend.com>
81637
81638         * m4/jm-macros.m4: Use it here.
81639         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81640
81641 1999-12-23  Jim Meyering  <meyering@ascend.com>
81642
81643         * m4/jm-macros.m4: Check for clock_gettime (moved from
81644         fileutils/configure.in)
81645         Check for gettimeofday.
81646
81647 1999-12-20  Jim Meyering  <meyering@ascend.com>
81648
81649         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81650         autoconf-2.14a-1999-12-20.
81651
81652 1999-12-19  Jim Meyering  <meyering@ascend.com>
81653
81654         * m4/lstat-slash.m4: New file.
81655         * m4/jm-macros.m4: Use the new macro:
81656         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81657
81658 1999-12-07  Jim Meyering  <meyering@ascend.com>
81659
81660         * m4/perl.m4: Require that File::Compare be available, too.
81661         Too many systems seem to lack it.
81662
81663         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81664         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81665
81666 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81667
81668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81669         problem with the QNX 4.25 shell, which doesn't propagate exit
81670         status of failed commands inside shell assignments.
81671
81672 1999-11-17  Jim Meyering  <meyering@ascend.com>
81673
81674         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81675
81676 1999-11-07  Jim Meyering  <meyering@ascend.com>
81677
81678         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81679
81680 1999-11-06  Jim Meyering  <meyering@ascend.com>
81681
81682         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81683         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81684
81685 1999-11-05  Jim Meyering  <meyering@ascend.com>
81686
81687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81688         configure.in of textutils, fileutils, and sh-utils into this one
81689         (shared between those packages) file.
81690         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81691         AC_STRUCT_ST_BLKSIZE.
81692
81693 1999-11-03  Jim Meyering  <meyering@ascend.com>
81694
81695         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81696         of AC_CHECK_TYPE checks includes unistd.h.
81697         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81698         Suggestion from Akim Demaille.
81699
81700 1999-10-30  Jim Meyering  <meyering@ascend.com>
81701
81702         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81703         m4-quoted string.
81704         * m4/ls-mntd-fs.m4: Likewise.
81705         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81706         * m4/jm-winsz1.m4: Likewise.
81707
81708         * m4/const.m4: Remove file, since the fix made it into the experimental
81709         version of autoconf.
81710         * m4/mktime.m4: Likewise.
81711
81712         * m4/check-type.m4: Remove file, now that the latest version of
81713         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81714
81715         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81716         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81717         AC_CHECK_TYPE.
81718
81719 1999-10-04  Jim Meyering  <meyering@ascend.com>
81720
81721         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81722
81723 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81724
81725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81726         2.95.1 bug with HP-UX 10.20.
81727
81728 1999-09-17  Jim Meyering  <meyering@ascend.com>
81729
81730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81731         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81732         due to missing strdup (against sh-utils-2.0).
81733
81734 1999-08-29  Jim Meyering  <meyering@ascend.com>
81735
81736         * m4/jm-macros.m4: Require jm_BISON.
81737         * m4/bison.m4: New file.
81738
81739 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81740
81741         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81742         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81743
81744 1999-08-05  Jim Meyering  <meyering@ascend.com>
81745
81746         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81747         to avoid conflicts with `conftest' on 8+3 filesystems.
81748         Suggestion from Eli Zaretskii.
81749
81750 1999-08-04  Jim Meyering  <meyering@ascend.com>
81751
81752         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81753         fileutils and sh-utils (textutils's getline test was inadequate).
81754         (AM_FUNC_GETLINE): Run this test.
81755         (AC_CHECK_FUNCS): Check for getdelim.
81756         Reported by Bob Proulx.
81757
81758 1999-08-02  Jim Meyering  <meyering@ascend.com>
81759
81760         * m4/jm-macros.m4: Add a comment.
81761
81762 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81763
81764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81765         <inttypes.h> defines strtoumax as a macro (and not as a
81766         function).
81767
81768 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81769
81770         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81771         that we can shift, multiply and divide unsigned long long
81772         values; Ultrix cc can't do it.
81773
81774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81775
81776         * m4/mktime.m4: New file, which is a preview of what should appear
81777         in the next public autoconf release.
81778
81779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81780
81781         * m4/lfs.m4: Remove this file.
81782         * m4/largefile.m4: New file.  It contains the old contents of
81783         lfs.m4, except that all names with prefix AC_LFS have been
81784         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81785         compatible with future autoconf versions.  Also, some minor m4
81786         quoting problems have been fixed.
81787
81788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81789
81790         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81791         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81792         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81793         and simplify the shell code.
81794
81795 1999-08-01  Jim Meyering  <meyering@ascend.com>
81796
81797         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81798         m4.
81799
81800 1999-07-20  Jim Meyering  <meyering@ascend.com>
81801
81802         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81803
81804 1999-07-15  Jim Meyering  <meyering@ascend.com>
81805
81806         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81807
81808 1999-05-22  Jim Meyering  <meyering@ascend.com>
81809
81810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81811
81812 1999-05-20  Jim Meyering  <meyering@ascend.com>
81813
81814         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81815         Add a colon after each `then' in case $4 is empty.
81816
81817 1999-05-16  Jim Meyering  <meyering@ascend.com>
81818
81819         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81820
81821 1999-05-10  Jim Meyering  <meyering@ascend.com>
81822
81823         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81824
81825         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81826         AC_FUNC_MKTIME.
81827
81828 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81829
81830         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81831
81832 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81833
81834         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81835         not CPPFLAGS, so that linking works correctly in IRIX.
81836
81837 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81838
81839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81840
81841 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81842
81843         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81844         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81846         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81847         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81848
81849         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81850
81851 1999-04-20  Jim Meyering  <meyering@ascend.com>
81852
81853         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81854         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81855         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81856
81857 1999-04-18  Jim Meyering  <meyering@ascend.com>
81858
81859         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81860         * m4/jm-macros.m4: Use it.
81861
81862 1999-04-06  Jim Meyering  <meyering@ascend.com>
81863
81864         * m4/strftime.m4: Remove test for %f.
81865
81866 1999-03-29  Jim Meyering  <meyering@ascend.com>
81867
81868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81869         superset of the AC_TYPE_* checks in the textutils, fileutils,
81870         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81871         AC_TYPE_PID_T.
81872
81873 1999-03-28  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81876         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81877         replaced e.g., in the *.sh files of the sh-utils.
81878
81879 1999-03-20  Jim Meyering  <meyering@ascend.com>
81880
81881         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81882         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81883         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81884
81885 1999-03-19  Jim Meyering  <meyering@ascend.com>
81886
81887         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81888
81889 1999-03-12  Jim Meyering  <meyering@ascend.com>
81890
81891         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81892
81893 1999-03-07  Jim Meyering  <meyering@ascend.com>
81894
81895         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81896         declared.
81897
81898 1999-02-17  Jim Meyering  <meyering@ascend.com>
81899
81900         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81901         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81902
81903 1999-02-07  Jim Meyering  <meyering@ascend.com>
81904
81905         * m4/group-member.m4: New file -- extracted from sh-utils'
81906         configure.in.
81907
81908         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81909         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81910
81911 1999-02-06  Jim Meyering  <meyering@ascend.com>
81912
81913         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81914         * m4/fnmatch.m4: Likewise.
81915         * m4/getgroups.m4: Likewise.
81916         * m4/lstat.m4: Likewise.
81917         * m4/malloc.m4: Likewise.
81918         * m4/putenv.m4: Likewise.
81919         * m4/realloc.m4: Likewise.
81920         * m4/regex.m4: Likewise.
81921         * m4/stat.m4: Likewise.
81922         * m4/strftime.m4: Likewise.
81923         Suggestion from Alain Magloire.
81924
81925         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81926         * m4/fnmatch.m4: Likewise.
81927         * m4/getgroups.m4: Likewise.
81928         * m4/getline.m4: Likewise.
81929         * m4/lstat.m4: Likewise.
81930         * m4/malloc.m4: Likewise.
81931         * m4/memcmp.m4: Likewise.
81932         * m4/putenv.m4: Likewise.
81933         * m4/realloc.m4: Likewise.
81934         * m4/regex.m4: Likewise.
81935         * m4/stat.m4: Likewise.
81936         * m4/strftime.m4: Likewise.
81937         Suggestion from Alain Magloire.
81938
81939         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81940         an argument.
81941
81942         * m4/regex.m4: Add a run-time Test for proper operation of
81943         re_compile_pattern.
81944
81945 1999-01-31  Jim Meyering  <meyering@ascend.com>
81946
81947         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81948
81949 1999-01-30  Jim Meyering  <meyering@ascend.com>
81950
81951         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81952
81953         * m4/jm-mktime.m4: Make this a wrapper around the official
81954         AM_FUNC_MKTIME rather than my private copy, now that the official one
81955         is up to date.
81956         * m4/mktime.m4: Remove file.
81957
81958         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81959         * m4/uptime.m4: Likewise.
81960         * m4/uintmax_t.m4: Likewise.
81961
81962 1999-01-28  Jim Meyering  <meyering@ascend.com>
81963
81964         * m4/jm-macros.m4: Use jm_AFS.
81965         * m4/afs.m4: New file (from fileutils' configure.in).
81966
81967         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81968         * m4/chown.m4: Likewise.
81969         * m4/d-ino.m4: Likewise.
81970         * m4/d-type.m4: Likewise.
81971         * m4/fnmatch.m4: Likewise.
81972         * m4/getgroups.m4: Likewise.
81973         * m4/gettext.m4: Likewise.
81974         * m4/jm-mktime.m4: Likewise.
81975         * m4/jm-winsz2.m4: Likewise.
81976         * m4/lcmessage.m4: Likewise.
81977         * m4/ls-mntd-fs.m4: Likewise.
81978         * m4/malloc.m4: Likewise.
81979         * m4/memcmp.m4: Likewise.
81980         * m4/putenv.m4: Likewise.
81981         * m4/realloc.m4: Likewise.
81982         * m4/st_mtim.m4: Likewise.
81983         * m4/strftime.m4: Likewise.
81984
81985 1999-01-16  Jim Meyering  <meyering@ascend.com>
81986
81987         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81988         (ARGMATCH_DIE_DECL): Define.
81989
81990 1999-01-12  Jim Meyering  <meyering@ascend.com>
81991
81992         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81993         Reported by Lars Hecking.
81994
81995 1999-01-10  Jim Meyering  <meyering@ascend.com>
81996
81997         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81998         gross kludge.
81999         * m4/inttypes_h.m4: Likewise.
82000         * m4/lstat.m4: Likewise.
82001         * m4/malloc.m4: Likewise.
82002         * m4/readdir.m4: Likewise.
82003         * m4/realloc.m4: Likewise.
82004         * m4/st_dm_mode.m4: Likewise.
82005         * m4/stat.m4: Likewise.
82006         * m4/utimbuf.m4: Likewise.
82007         * m4/utimes.m4: Likewise.
82008
82009         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82010         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82011         comments in config.h.in are meaningful.
82012
82013         * m4/jm-macros.m4: Require autoconf-2.13 here.
82014
82015         * m4/regex.m4: By default, don't use the included regex.c on systems
82016         with glibc 2.  Suggestion from Uli Drepper.
82017
82018 1999-01-02  Jim Meyering  <meyering@ascend.com>
82019
82020         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82021
82022 1998-12-18  Jim Meyering  <meyering@ascend.com>
82023
82024         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82025         Based on a suggestion from Lars Hecking.
82026
82027 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82028
82029         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82030
82031 1998-11-16  Jim Meyering  <meyering@ascend.com>
82032
82033         * m4/lfs.m4: Double-quote the `uname...` expression.
82034
82035 1998-11-14  Jim Meyering  <meyering@ascend.com>
82036
82037         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82038         * m4/stat.m4: Likewise.
82039
82040 1998-11-03  Jim Meyering  <meyering@ascend.com>
82041
82042         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82043         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82044
82045 1998-10-18  Jim Meyering  <meyering@ascend.com>
82046
82047         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82048
82049 1998-10-17  Jim Meyering  <meyering@ascend.com>
82050
82051         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82052         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82053         calls for those previously hard-coded headers.  Instead, take a new
82054         parameter.
82055         (jm_CHECK_DECLARATIONS): Reflect interface change.
82056         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82057         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82058
82059         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82060
82061 1998-10-14  Jim Meyering  <meyering@ascend.com>
82062
82063         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82064         instead of "TZ=America/Vancouver".  From Paul Eggert.
82065
82066 1998-10-11  Jim Meyering  <meyering@ascend.com>
82067
82068         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82069         This adds a test for a recently added compatibility fix for mktime.c.
82070         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82071
82072 1998-09-27  Jim Meyering  <meyering@ascend.com>
82073
82074         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82075
82076         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82077         ../configure.in, including a change from Gordon Matzigkeit to allow
82078         cross-compiling for the Hurd.
82079
82080         * m4/glibc.m4: New file/macro to test for the GNU C Library
82081         versions 1 and 2.  From Gordon Matzigkeit.
82082         Indent.
82083
82084 1998-09-21  Jim Meyering  <meyering@ascend.com>
82085
82086         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82087
82088 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82089
82090         Port nanosecond-resolution times to UnixWare 2.1.2 and
82091         pedantic Solaris 2.6.
82092
82093         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82094         AC_STRUCT_ST_MTIM.
82095         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82096         Generate name of ns member, instead of just 1 or undef.
82097         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82098
82099 1998-08-15  Jim Meyering  <meyering@ascend.com>
82100
82101         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82102         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82103         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82104         instead of jm_TYPE_SSIZE_T.
82105
82106 1998-08-12  Jim Meyering  <meyering@ascend.com>
82107
82108         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82109
82110 1998-08-02  Jim Meyering  <meyering@ascend.com>
82111
82112         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82113         in acconfig.h manually.
82114
82115 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82116
82117         * m4/st_mtim.m4: New file.
82118
82119 1998-07-28  Jim Meyering  <meyering@ascend.com>
82120
82121         * m4/utimes.m4: Undef stat.
82122
82123 1998-07-25  Jim Meyering  <meyering@ascend.com>
82124
82125         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82126         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82127
82128 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82129
82130         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82131         uid and gid actually remain unchanged.
82132
82133 1998-07-07  Jim Meyering  <meyering@ascend.com>
82134
82135         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82136
82137 1998-07-04  Jim Meyering  <meyering@ascend.com>
82138
82139         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82140         to prove that this macro can be used in packages without regex.c.
82141
82142 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82143
82144         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82145         is to be used.
82146
82147 1998-07-03  Jim Meyering  <meyering@ascend.com>
82148
82149         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82150
82151         * m4/gettext.m4: New file -- from gettext-0.10.35.
82152         * m4/lcmessage.m4: Likewise.
82153         * m4/progtest.m4: Likewise.
82154
82155         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82156         * m4/jm-macros.m4: Require the new macro.
82157
82158 1998-06-29  Jim Meyering  <meyering@ascend.com>
82159
82160         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82161         for the definition of NGROUPS (used in a system header included
82162         by sys/mount.h).
82163
82164 1998-06-28  Jim Meyering  <meyering@ascend.com>
82165
82166         * m4/ls-mntd-fs.m4: New file.
82167         * m4/fstypename.m4: New file.
82168
82169         * m4/jm-macros.m4: Require the new macro.
82170         * m4/jm-glibc-io.m4: New file.
82171
82172 1998-05-19  Jim Meyering  <meyering@ascend.com>
82173
82174         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82175         * m4/lchown.m4: New file.
82176
82177         * m4/Makefile.am.in: New file.
82178         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82179
82180 1998-05-14  Jim Meyering  <meyering@ascend.com>
82181
82182         * m4/Makefile.am (EXTRA_DIST): Add them.
82183         * m4/jm-macros.m4: New file.
82184         * m4/utimbuf.m4: New file.
82185
82186 1998-05-12  Jim Meyering  <meyering@ascend.com>
82187
82188         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82189
82190 1998-05-11  Jim Meyering  <meyering@ascend.com>
82191
82192         * m4/isc-posix.m4: New file.
82193
82194 1998-05-10  Jim Meyering  <meyering@ascend.com>
82195
82196         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82197
82198 1998-05-09  Jim Meyering  <meyering@ascend.com>
82199
82200         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82201         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82202         with automake.
82203
82204         * m4/ssize_t.m4: New file.
82205         * m4/mktime.m4: Remove file -- the new automake has this now.
82206
82207 1998-04-26  Jim Meyering  <meyering@ascend.com>
82208
82209         * m4/assert.m4: New file.
82210         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82211
82212 1998-04-05  Jim Meyering  <meyering@ascend.com>
82213
82214         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82215         (jm_PREREQ): Use it here.
82216
82217 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82218
82219         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82220         in acconfig.h.
82221
82222 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82223
82224         * m4/prereq.m4: New file.
82225         * m4/error.m4: New file.
82226         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82227
82228 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82229
82230         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82231         cache-check for the same variable -- that defeated the purpose of
82232         the test; the test program was never run.  This was a problem only
82233         on systems with losing getline functions -- HP-UX 10.20 is one.
82234         Reported by Bjorn Helgaas.
82235
82236 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82237
82238         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82239
82240 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82241
82242         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82243
82244         * m4/const.m4: New file.  Use an initializer in this declaration
82245         typedef int charset[2]; const charset x;
82246         Reported by Bob Glickstein.
82247
82248 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82249
82250         * m4/chown.m4: Fix reversed types on -1 args to chown.
82251         From Kaveh Ghazi.
82252
82253 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82254
82255         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82256         Add lseek and memchr.
82257
82258         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82259         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82260         have a 20-character limit on names.
82261
82262 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82263
82264         * m4/inttypes_h.m4: New file.
82265         * m4/uintmax_t.m4: New file.
82266         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82267
82268
82269         -----
82270
82271         Local Variables:
82272         coding: utf-8
82273         End:
82274
82275         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82276
82277         Copying and distribution of this file, with or without
82278         modification, are permitted provided the copyright notice
82279         and this notice are preserved.